OSDN Git Service

* alias.c (argument_registers): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-13  Jeffrey Law  <law@redhat.com>
2
3         * alias.c (argument_registers): Remove.
4         (init_alias_once): Initialize static_reg_base_value here.  Remove
5         initialization of argument_registers.
6         (init_alias_once_per_function): Remove.
7         (init_alias_analysis): Copy all the entries from static_reg_base_value
8         into new_reg_base_value all at once.
9         * rtl.h (init_alias_once_per_function): Remove declaration.
10         * function.c (prepare_function_start): Do not call
11         init_alias_once_per_function.
12
13         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
14         starting a sequence and emitting an INSN.
15
16 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
17
18         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
19
20 2002-06-13  David S. Miller  <davem@redhat.com>
21
22         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
23
24 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
25
26         * cpplib.c (end_directive): Handle line skipping.  Only remove
27         the rest of the line if the directive was valid.
28         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
29         expanding a traditional macro.
30         * cpptrad.c (recursive_macro): New.
31         (read_logical_line_trad): Handle skipping.
32         (scan_out_logical_line): Continue after a successful directive.
33         Don't expand macros whilst skipping, or if recursing.
34         (_cpp_create_trad_definition): scan_out_logical_line now sets
35         the output current position.
36
37 2002-06-12  Eric Christopher  <echristo@redhat.com>
38
39         From Chris Demetriou  <cgd@broadcom.com>
40         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
41         comment.
42         (ISA_HAS_MADD_MSUB): Ditto.
43         (ISA_HAS_NMADD_NMSUB): Ditto.
44
45 2002-06-12  Eric Christopher  <echristo@redhat.com>
46
47         * config.gcc: Consolidate little endian handling and
48         little/big endian targets.
49         * config/mips/elfl.h: Remove file.
50         * config/mips/elfl64.h: Ditto.
51         * config/mips/ecoffl.h: Ditto.
52         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
53
54 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
55
56         * gengtype.h (xvasprintf): New prototype.
57         (xasprintf): New prototype.
58         (struct outf): New.
59         (get_output_file): Return an outf_p.
60         (header_file): Is now an outf_p.
61         (base_files): Now are outf_p.
62         (oprintf): New.
63         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
64         rather than stdio operations.  Use xasprintf in a few places,
65         when appropriate.
66         (xvasprintf): New.
67         (xasprintf): New.
68         (struct filemap): Delete.
69         (files): Delete.
70         (output_files): New.
71         (oprintf): New.
72         (create_file): Create an outf_p.  Add parameter to indicate output
73         file name, change all callers.
74         (open_base_files): Create gtype-desc.c here.
75         (get_output_file_with_visibility): Rewrite.
76         (get_output_file_name): Just look at 'name' field in struct outf.
77         (close_output_files): Rewrite.
78
79 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
80
81         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
82         (MASK_G_FLOAT): Define.
83         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
84         (TARGET_SWITCHES): Likewise.
85         (TARGET_DEFAULT): Likewise.
86
87 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
88
89         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
90         * config/mips/mips.c (mips_output_filename): Don't print a
91         ".file" directive if we are using DWARF-2.
92         (mips_output_function_prologue): Do not emit source file
93         name for TARGET_GAS.
94
95 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
96
97         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
98         decide whether emit the short opcode.
99         * i386.h (x86_shift1): Declare.
100         (TARGET_SHIFT1): New macro.
101         * i386.c (x86_shift1): New global variable.
102
103         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
104         unconditionally; make loop to rebuild CFG; kill unnecesary
105         find_basic_block calls; kill compute_bb_for_insn call.
106         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
107         * haifa-sched.c (sched_init): Likewise.
108         * ssa-ccp.c (ssa_const_prop): Likewise.
109         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
110
111 2002-06-11  David S. Miller  <davem@redhat.com>
112
113         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
114         active_insn_p.
115
116 2002-06-11  Richard Henderson  <rth@redhat.com>
117
118         * c-common.c (builtin_define_type_max): New.
119         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
120         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
121
122         From Joseph S. Myers:
123         * glimits.h: Rewrite to expect the double underscore definitions
124         from the compiler.
125
126         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
127         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
128         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
129         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
130         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
131         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
132         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
133         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
134
135 2002-06-11  Richard Henderson  <rth@redhat.com>
136
137         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
138         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
139         (code_for_builtns): Update.
140         (alpha_init_builtins): Add __builtin_thread_pointer and
141         __builtin_set_thread_pointer.
142         (alpha_expand_builtin): Handle void builtins.
143         * doc/extend.texi (Alpha Built-in Functions): Update.
144
145 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
146
147         PR target/6997
148         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
149
150 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
151
152         * config.gcc: Make the name of the extra-modes file adjustable
153         by target stanzas.
154         (s390x, strongarm, xscale stanzas): Use this facility.
155         * configure.in: Update to match.
156         * configure: Regenerate.
157
158 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
159
160         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
161         max/mins as unsigned GE compares.
162
163 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
164
165         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
166         * config/vax/bsd.h: New file.
167         * config/vax/netbsd.h: Add missing notice.
168         (CPP_PREDEFINES): Remove.
169         (TARGET_OS_CPP_BUILTINS): Define.
170         (CPP_SPEC): Use NETBSD_CPP_SPEC.
171         * config/vax/openbsd.h: Update copyright years.
172         (CPP_PREDEFINES): Remove.
173         (TARGET_OS_CPP_BUILTINS): Define.
174         * config/vax/ultrix.h: Likewise.
175         * config/vax/vaxv.h: Likewise.
176         * config/vax/vms.h: Likewise.
177         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
178         (CPP_PREDEFINES, CPP_SPEC): Remove.
179
180 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
181
182         * i386.md (addqi_1_slp, subqi_1_slp
183         (andqi_ext0, testqi_ext0): Remove unnecesary check.
184         (addhi*, addqi*): Simplify "dec" condition.
185         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
186         (and, or, xor to QImode splitters): New.
187         (iorqi_ext*): New.
188         (xorqi_ext_0): New.
189         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
190         (andqi_ext_1_rex64): New.
191         (ashrqi*_slp): New.
192         (ashlqi*_slp): New.
193         (lshlqi*_slp): New.
194         (rotrqi3*_slp): New.
195         (rotlqi3*_slp): New.
196
197 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
198
199         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
200         softfloat.h.
201         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
202         (CPP_ENDIAN_LITTLE_SPEC): Delete.
203         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
204         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
205         __LONG_DOUBLE_128__ setting, _CALL_* setting.
206         (CPP_DEFAULT_SPEC): Delete.
207         (CPP_FLOAT_DEFAULT_SPEC): Delete.
208         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
209         (CPP_SYSV_DEFAULT_SPEC): Delete.
210         (CPP_ENDIAN_BIG_SPEC): Delete.
211         (CPP_ENDIAN_LITTLE_SPEC): Delete.
212         (CPP_ENDIAN_SPEC): Delete.
213         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
214         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
215         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
216         cpp_longdouble_default.
217         * config/rs6000/softfloat.h: Delete.
218         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
219         (EXTRA_SPECS): Delete cpp_cpu.
220         (TARGET_CPU_CPP_BUILTINS): New.
221         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
222         prototype.
223         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
224         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
225         (CPP_DEFAULT_SPEC): Delete.
226         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
227         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
228         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
229         (CPP_DEFAULT_SPEC): Delete.
230         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
231         (CPLUSPLUS_CPP_SPEC): Likewise.
232         (CPP_CPU_SPEC): Delete.
233         (CPP_DEFAULT_SPEC): Delete.
234         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
235         (CPLUSPLUS_CPP_SPEC): Likewise.
236         (CPP_CPU_SPEC): Delete.
237         (CPP_DEFAULT_SPEC): Delete.
238         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
239         (CPP_DEFAULT_SPEC): Delete.
240         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
241         (CPP_DEFAULT_SPEC): Delete.
242
243         * doc/gty.texi: Small updates.
244
245 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
246
247         * objc/objc-act.c (warn_with_ivar): Adjust calls to
248         diagnostic_count_error.
249         (warn_with_method): Likewise.
250
251         * diagnostic.h (warnings_are_errors_message): New field of
252         diagnostic_context.
253         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
254         match semantics.
255         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
256         (diagnostic_count_diagnostic): Make aware of other kinds of
257         diagnostics.
258         (diagnostic_initialize): Initialize warnings_are_errors_message field.
259
260 2002-06-11  Tom Tromey  <tromey@redhat.com>
261
262         For PR java/6520:
263         * fold-const.c (fold_convert): Don't modify existing tree's type.
264
265 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
266
267         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
268
269 2002-06-11  Richard Henderson  <rth@redhat.com>
270
271         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
272
273 2002-06-11  Richard Henderson  <rth@redhat.com>
274
275         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
276         DWARF2_UNWIND_INFO is false.
277
278 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
279
280         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
281
282 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
283
284         * config/s390/s390.c (emit_prologue): gen_store_multiple
285         returns an insn now, not a pattern.
286
287 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
288
289         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
290         $(TEXI2DVI) -o.
291
292 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
293
294         * i386.c (x86_promote_QImode): Set for Athlon
295         (x86_fast_prefix): New global variable.
296         (x86_arch_always_fancy_math_387): Fix formating.
297         * i386.h (x86_fast_prefix): Declare
298         (TARGET_FAST_PREFIX): define.
299         * i386.md (and to strict_low_part, HI to SI
300         promoting splitter): Use new macro.
301
302         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
303
304 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
305
306         * Makefile.in (distclean): Delete junk left in testsuite
307         directory, too.
308
309 2002-06-11  Jeffrey Law <law@redhat.com>
310
311         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
312         last insn created by the splitter.
313
314         * caller-save.c (init_caller_save): Move creation of SAVEINSN
315         and RESTINSN into into the scope of the sequence.
316
317         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
318         RETURN insns.
319
320         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
321
322         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
323         not the pattern.  So extract the pattern from the insn.
324
325         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
326
327 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
328
329         * config/s390/s390.md (movsi): Only use floating point
330         register alternatives when operands are already fprs.
331         (movdi_31, movdi_64): Likewise.
332
333 2002-06-11  David S. Miller  <davem@redhat.com>
334
335         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
336         Only run RTX equality checks on INSN_P rtl.
337
338 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
339
340         * config/s390/s390.md (reload_base, ltorg): Remove.
341         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
342         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
343         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
344         s390_asm_output_pool_prologue): Likewise.
345         * s390.h (s390_pool_start_insn): Likewise.
346
347         * s390.c (s390_output_symbolic_const): Remove support for
348         old-style pool chunks.
349         (s390_function_epilogue): Likewise.
350         (s390_output_constant_pool): Likewise.  Also, fix incorrect
351         alignment for 64-bit literal pools.
352         (print_operand_address): Remove 'y' and 'Y' format flags.
353         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
354         old-style pool chunks.
355         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
356         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
357         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
358
359         * s390.c (consttable_operand): New function.
360         * s390-protos.h (consttable_operand): Declare it.
361         * s390.h (PREDICATE_CODES): Add consttable_operand.
362         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
363         consttable_sf, consttable_df, pool_start_31, pool_end_31,
364         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
365         * s390.c (struct constant, struct constant_pool): New data types.
366         (constant_modes, gen_consttable): New variables.
367         (s390_start_pool, s390_end_pool, s390_add_pool,
368         s390_dump_pool, s390_free_pool): New functions.
369         (s390_chunkify_pool): Completely reimplement literal pool
370         overflow handling.
371
372         * s390.c (s390_pool_overflow): New variable.
373         * s390.h (s390_pool_overflow): Declare it.
374         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
375         jumps in literal pool overflow situations.
376
377         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
378         (s390_frame_info): Account for possible use of RETURN_REGNUM
379         by new literal pool overflow code.
380         (s390_emit_prologue): Likewise.
381
382 2002-06-05  David S. Miller  <davem@redhat.com>
383
384         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
385         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
386         emit_insns_before_scope, emit_insns_after,
387         emit_insns_after_scope): Delete declaration.
388         * ada/misc.c (insert_code_for): Use emit_insn* instead of
389         emit_insns_foo.
390         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
391         (alpha_set_memflags): Fix comment.
392         (set_frame_related_p): Use get_insns instead of gen_sequence.
393         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
394         emitting no insns.
395         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
396         gen_sequence.
397         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
398         * config/fr30/fr30.c (fr30_move_double): Likewise.
399         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
400         Likewise.
401         * config/ia64/ia64.c (spill_restore_mem): Likewise.
402         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
403         no insns.
404         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
405         instead of gen_sequence.
406         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
407         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
408         * config/sh/sh.c (sh_need_epilogue): Likewise.
409         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
410         attributes.
411         (setjmp pattern and split): Use them to avoid splitter which emits
412         no RTL.
413         * genattrtab.c (main): Emit include of function.h
414         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
415         get_insns instead of gen_sequence.
416         * config/cris/cris.c (cris_split_movdx): Likewise.
417         * emit-rtl.c (emit_insns*): Kill.
418         (try_split): Expect insn list instead of SEQUENCE.
419         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
420         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
421         Make them abort if a SEQUENCE is given and RTL checking is
422         enabled.
423         (emit_*_scope): Don't forget to set scope on final insn.
424         (gen_sequence): Move from here...
425         * ssa.c (gen_sequence): To here as private function.
426         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
427         comments.
428         (expand_builtin_return, expand_builtin_mathfn): Likewise.
429         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
430         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
431         (expand_builtin_expect_jump): Use get_insns and fix comments.
432         * calls.c (try_to_integrate): Use emit_insn_foo.
433         (expand_call, emit_library_call_value_1): Likewise.
434         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
435         (emit_move_insn_1): Use get_insns instead of gen_sequence.
436         (expand_expr): Use emit_insn_foo.
437         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
438         * except.c (build_post_landing_pads): Likewise.
439         * flow.c (attempt_auto_inc): Likewise.
440         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
441         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
442         * function.c (fixup_var_refs_insn): Use get_insns instead of
443         gen_sequence.
444         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
445         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
446         (fixup_stack_1, purge_addressof_1, expand_main_function,
447         get_arg_pointer_save_area): Likewise.
448         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
449         expand_function_end): Use emit_insn_foo.
450         (record_insns, keep_stack_depressed): Work with insn list instead
451         of SEQUENCE, fix comments.
452         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
453         noce_try_store_flag_constants, noce_try_store_flag_inc,
454         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
455         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
456         (noce_process_if_block): Use get_insns instead of gen_sequence.
457         * optabs.c (add_equal_note): Work with insn list, fix comments.
458         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
459         (expand_unop, expand_complex_abs, expand_unop_insn,
460         expand_no_conflict_block): Likewise.
461         (gen_move_insn): Use get_insns instead of gen_sequence.
462         (gen_cond_trap): Likewise.
463         * integrate.c (copy_rtx_and_substitute): Likewise.
464         (emit_initial_value_sets): Use emit_insn_foo.
465         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
466         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
467         now that RTL generators give insn lists.
468         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
469         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
470         instead of gen_sequence.
471         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
472         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
473         instead of gen_sequence.
474         * loop.c (move_movables, emit_prefetch_instructions,
475         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
476         Likewise.
477         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
478         (product_cheap_p): Likewise, and add commentary about RTL wastage
479         here.
480         * lcm.c (optimize_mode_switching): Use get_insns instead of
481         gen_sequence.
482         * profile.c (gen_edge_profiler): Likewise.
483         * regmove.c (copy_src_to_dest): Likewise.
484         * reg-stack.c (compensate_edge): Likewise and fix comment.
485         * gcse.c (process_insert_insn): Likewise.
486         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
487         * jump.c (delete_prior_computation): Update comment.
488         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
489         of gen_sequence, update comments to match.
490         * recog.c (peephole2_optimize): Work with insn lists instead of
491         SEQUENCE rtl.
492         * sched-vis.c (print_pattern): Abort on SEQUENCE.
493         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
494         Use get_insns instead of gen_sequence.
495         (copy_loop_body): Likewise and don't emit dummy NOTE.
496         * genrecog.c: Don't mention SEQUENCE rtl in comments.
497         * combine.c (try_combine): Expect insn lists from split generator.
498         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
499         hand.
500
501 2002-06-11  Roger Sayle  <roger@eyesopen.com>
502             Andreas Jaeger <aj@suse.de>
503
504         * cfgbuild.c: Update copyright years.
505
506 2002-06-11  Andreas Schwab  <schwab@suse.de>
507
508         * config/m68k/m68k.h (PREDICATE_CODES): Define.
509
510 2002-06-11  Eric Christopher  <echristo@redhat.com>
511
512         * doc/tm.texi (Run-time Target): Add comment about flag_iso
513         and strict ANSI.
514         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
515         * config/mips/ecoffl.h: Ditto.
516         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
517         (CPP_PREDEFINES): Ditto.
518         * config/mips/elfl64.h: Ditto.
519         * config/mips/elfl.h: Ditto.
520         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
521         out until irix header consolidation.
522         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
523         with SUBTARGET_OS_CPP_BUILTINS.
524         * config/mips/iris6.h: Ditto.
525         (CPLUSPLUS_CPP_SPEC): Remove.
526         * config/mips/linux.h: Ditto.
527         * config/mips/netbsd.h: Ditto.
528         * config/mips/openbsd.h: Ditto.
529         * config/mips/rtems.h: Ditto.
530         * config/mips/rtems64.h: Ditto.
531         * config/mips/sni-svr4.h: Ditto.
532         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
533         ISA_MIPS32, ISA_MIPS64): New defines.
534         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
535         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
536         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
537         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
538         (TARGET_CPU_CPP_BUILTINS): Define.
539         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
540         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
541         (movdicc): Remove check for ISA_MIPS32.
542          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
543         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
544         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
545         sunge_sf, sunle_df, sunle_sf): New patterns.
546
547 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
548
549         * Makefile.in: Update cppmain.o.
550         * cpphash.h (struct cpp_reader): Move some members to a
551         nested structure.
552         (trad_line): Rename saved_line.
553         (_cpp_read_logical_line_trad): Update.
554         (_cpp_remove_overlay): New.
555         * cppinit.c (cpp_create_reader): No need to set saved_line.
556         (cpp_destroy): Update.
557         (cpp_read_main_file): Only overlay if compiling.
558         * cpplex.c (continue_after_nul): Return false if in directive.
559         * cpplib.c (EXPAND): New.
560         (directive_table, SEEN_EOL): Update.
561         (end_directive): Remove overlay if traditional; don't skip
562         line in traditional #define.
563         (prepare_directive_trad): New.
564         (_cpp_handle_directive, run_directive): Update for traditional
565         directives.
566         (lex_macro_node): Simplify, don't use lex_identifier_trad.
567         * cpplib.h (struct options): Add preprocess_only.
568         * cppmain.c: Don't include intl.h.
569         (cpp_preprocess_file): Set options->preprocess_only.
570         (scan_translation_unit_trad): Fix, and print line numbers.
571         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
572         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
573         save_replacement_text, _cpp_create_trad_definition): Update for
574         variable renaming.
575         (_cpp_overlay_buffer): Save line number.
576         (_cpp_remove_overlay): Rename from restore_buff, restore line.
577         (_cpp_read_logical_line_trad): Don't handle overlays here.
578         (scan_out_logical_line): Process directives.
579
580 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
581
582         * gthr-win32.h: Wrap functions in extern "C".
583         (__gthread_key_t): Typedef as unsigned long,
584         not win32 DWORD.
585         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
586         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
587         (__gthr_win32_once, __gthr_win32_key_create,
588         __gthr_win32_key_delete, __gthr_win32_getspecific,
589         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
590         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
591         __gthr_win32_mutex_unlock): Declare.
592         (__gthread_once,__gthread_key_create,
593         __gthread_key_delete, __gthread_getspecific,
594         __gthread_setspecific, __gthread_mutex_init_function,
595         __gthread_mutex_lock,__gthread_mutex_trylock,
596         __gthread_mutex_unlock): Call corresponding
597         __gthr_win32_* extern implementations if #defined
598         __GTHREAD_HIDE_WIN32API.
599         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
600         $(srcdir)/config/i386/gthr-win32.c
601         * config/i386/gthr-win32.c: New implementation file.
602         (__gthr_win32_once, __gthr_win32_key_create,
603         __gthr_win32_key_delete, __gthr_win32_getspecific,
604         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
605         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
606         __gthr_win32_mutex_unlock): New functions, based on
607         static inlines in gthr-win32.h.
608
609 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
610
611         * config/xtensa/xtensa.c (override_options): Don't warn about
612         using -fpic or -fPIC when PIC is enabled by default.
613
614 2002-06-10  Roger Sayle  <roger@eyesopen.com>
615
616         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
617
618 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
619
620         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
621         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
622         exists, substitute its pathname as @extra_modes_file@, define
623         EXTRA_MODES_FILE to be an appropriate string to #include it
624         with, and define EXTRA_CC_MODES to 1.
625
626         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
627         it's defined.  Get rid of redundancy in calling sequence for
628         CC; don't use it to define CCmode, to avoid a warning.
629         * libgcc2.c: Include symcat.h for the sake of machmode.def.
630
631         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
632         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
633         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
634         New files.
635         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
636         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
637
638         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
639         defining extra CC modes.
640
641 2002-06-10  Roger Sayle  <roger@eyesopen.com>
642             Andreas Jaeger <aj@suse.de>
643
644         * cfgrtl.c (create_basic_block_structure):  Remove index argument
645         and use last_basic_block++ instead.  (create_basic_block): Update.
646         * cfgbuild.c (find_basic_blocks_1): Likewise.
647
648         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
649         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
650         * sched-ebb.c (schedule_ebbs): Likewise.
651         * sched-rgn.c (schedule_insns): Likewise.
652         * ssa-ccp.c (ssa_const_prop): Likewise.
653         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
654         * toplev.c (rest_of_compilation): Likewise.
655         * config/ia64/ia64.c (ia64_reorg): Likewise.
656
657 2002-06-10  Roger Sayle  <roger@eyesopen.com>
658
659         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
660         of matching registers.
661
662 2002-06-10  Roger Sayle  <roger@eyesopen.com>
663
664         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
665         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
666
667 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
668
669         * config/mmix/mmix.h: Improve comments.
670         (CPP_SPEC, CPP_PREDEFINES): Don't define.
671         (TARGET_CPU_CPP_BUILTINS): Define.
672         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
673         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
674         unused predicate.
675         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
676         compiler warning.
677         (mmix_constant_address_p): Remove another
678         redundant test before case.
679         (mmix_canonicalize_comparison): Remove unused function.
680         (mmix_print_operand_address): Don't test and adjust for operand in
681         non-canonical format.
682         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
683         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
684
685 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
686
687         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
688         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
689         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
690         (gen_compare): Use CCmode unconditionally.
691
692 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
693
694         PR optimization/6759
695         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
696         the REQ_EQUAL note.
697
698 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
699
700         PR c/6660
701         * c-decl.c (grokfield): Allow user defined types if they declare
702         structs or unions for unnamed fields.
703
704 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
705
706         PR c/6809
707         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
708
709 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
710
711         PR optimization/6842
712         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
713         operand subreg cannot be simplified.
714
715 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
716
717         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
718         (compare_constant): Likewise.
719         (output_addressed_constants): Likewise.
720
721 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
722
723         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
724         merge bb with itself.
725
726 2002-06-10  Richard Henderson  <rth@redhat.com>
727
728         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
729         (builtin_zapnot): Likewise.
730
731         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
732         reservation.
733
734 2002-06-10  Eric Christopher  <echristo@redhat.com>
735
736         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
737         prototype and function.
738         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
739         (call_insn_operand): Remove half pic references.
740         (legitimate_address_p): Ditto.
741         * config/i386/i386.h: Remove half pic defines.
742
743 2002-06-10  Eric Christopher  <echristo@redhat.com>
744
745         * doc/extend.texi (Return Address): Add note explaining the side-
746         effects of inlining on __builtin_return_address.
747
748 2002-06-10  Tom Tromey  <tromey@redhat.com>
749
750         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
751         (c-common.o): Depend on langhooks.h.
752
753 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
754
755         * cpphash.h (_cpp_read_logical_line_trad,
756         _cpp_expansions_different_trad): Update prototypes.
757         * cpplex.c (continue_after_nul): New.
758         * cppmain.c: Include cpphash.h.
759         (scan_translation_unit_trad): New.
760         (cpp_preprocess_file): Call it.
761         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
762         overlay.
763         (_cpp_expansions_different_trad): Update prototype.
764
765 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
766
767         Fix cfi generation for SH[1-4]:
768
769         * sh.c (frame_insn): New function.
770         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
771         (push): Now returns rtx.  Use frame_insn.
772         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
773         of a DF register.
774         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
775
776 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
777
778         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
779         and gtype-desc.c.
780         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
781         (distclean): ... not here.  But do delete all testsuite/*.log,
782         testsuite/*.sum files here.  Delete mkheaders.  Delete
783         po/*.gmo and the testsuite directory in a split tree build.
784
785 2002-06-10  Jeffrey Law  <law@redhat.com>
786
787         * alias.c (static_reg_base_value): New to hold RTL for
788         items allocated once per function for the aliasing code.
789         (init_alias_once_per_function): Initialize static_reg_base_value.
790         (init_alias_analysis): Avoid throw-away allocations of RTL by
791         using pre-computed values in static_reg_base_value.
792         * function.c (prepare_function_start): Call
793         init_alias_once_per_function appropriately.
794         * rtl.h (init_alias_once_per_function): Declare.
795         * caller-save (init_caller_save): Restructure slightly to
796         avoid lots of silly RTL generation.
797         * expr.c (init_expr_once): Likewise.
798         * reload1.c (reload_cse_regs_1): Allocate throw-away register
799         RTL object here.  Pass it into children.
800         (reload_cse_simplify_operands): Use passed-in register RTL
801         object.
802         (reload_cse_simplify): Pass through throw-away register
803         RTL object.
804
805 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
806
807         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
808
809 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
810
811         * gcc.c (process_command): Avoid assignment to read-only location.
812         Fix sizeof calculation.
813
814 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
815
816         * cpphash.h (struct cpp_macro): Put comments on their own lines.
817         (_cpp_expansions_different_trad): New.
818         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
819         * cpptrad.c (canonicalize_text): New.
820         (scan_out_logical_line): Handle no arguments correctly.
821         (save_replacement_text): Commit memory when finished.
822         (_cpp_expansions_different_trad): New.
823
824 2002-06-10  Tim Josling  <tej@melbpc.org.au>
825
826         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
827         TREELANG and COBOL.
828         (lang_names): Add treelang and cobol.
829         (get_file_basename): Add code to support treelang and cobol as
830         4th and 5th users of c-common.c.
831
832 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
833
834         * Makefile.in (install-driver): Install driver as
835         $(target_alias)-gcc-$(version).
836         * gcc.c (spec_version): Make const.
837         (process_command): Handle -V and -b by using exec.
838         * doc/invoke.texi (Target Options): Restore -V option,
839         update docs for -b option.
840
841 2002-06-10  Tim Josling  <tej@melbpc.org.au>
842
843         * configure.in (remaining_languages_check):
844         Added check that all languages specified were found.
845         Exit if not found. Previous behaviour was silent failure.
846         * configure: Regenerated.
847
848 2002-06-10  Tim Josling  <tej@melbpc.org.au>
849
850          First steps to making treelang documentation compliant, based on
851          instructions in sourcebuild.texi. Also add to gcc.c list of
852          default languages.
853
854         * doc/contrib.texi: Add self as contributor of treelang.
855
856         * doc/frontends.texi: Add mention of treelang.
857
858         * doc/invoke.texi (Overall Options): Add mention of treelang.
859
860         * doc/standards.texi:  Add mention of treelang.
861
862 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
863
864         * config/cris/cris.c: Include ggc.h
865
866 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
867
868         * cpphash.h (_cpp_push_text_context): Update.
869         (_cpp_arguments_ok): New.
870         * cppmacro.c (_cpp_arguments_ok): New, split out from...
871         (collect_args): ...here.
872         (_cpp_push_text_context): Change inputs.
873         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
874         replace_args_and_push): New.
875         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
876         Don't use IS macros directly.
877         (scan_out_logical_line): Handle function-like macro argument
878         collection.
879         (push_replacement_text): Update.
880         (replacement_length): Remove.
881         (_cpp_create_trad_definition): Don't skip whitespace before
882         checking for '('.
883
884 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
885
886         * config/avr/avr.c (avr_mcu_types): Update for new devices.
887         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
888         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
889         * config/avr/avr.md ("type" and "length" attributes): New type
890         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
891         output a single "call" or "rcall" insn depending on device size.
892         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
893
894 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
895
896         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
897         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
898         assembler option.
899         (CPP_CPU_SPEC): Add power3 and power4.
900         (PROCESSOR_DEFAULT): Change to 604e.
901         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
902         (CPP_CPU_SPEC): Similar additions.
903         (enum process_type): Add POWER4.
904         (RTX_COSTS): Add POWER4.
905         (CPP_CPU_SPEC): Similar additions.
906         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
907         (PROCESSOR_DEFAULT64): Define.
908         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
909         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
910         branch adjustment.
911         (rs6000_issue_rate): Add Power4.
912         * config/rs6000/rs6000.md (cpu attr): Add power4.
913         (iu compare): Remove 604, 604e, 620, 630.
914         Add basic Power4 scheduling information.
915         (mfcr/mtcrf): Change type attribute to cr_logical.
916
917 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
918
919         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
920         ATTRIBUTE_PRINTF_2.
921         * gengtype-lex.l: Fix format specifier warning.
922
923         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
924         not isspace.
925         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
926         lieu of isspace/IDchar.
927         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
928         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
929         ISSPACE.
930
931 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
932
933         * Makefile.in (LIBCPP_OBJS): Take out version.o.
934         * cpphash.h (cpp_reader): Take out print_version member.
935         * cppinit.c: (cpp_handle_option): Don't do anything with
936         -version.  Just set help_only for --version, --target-help.
937         Just set verbose option for -v.
938         (cpp_post_options): Don't print a version string.
939
940 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
941
942         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
943         (avr_section_type_flags): New, handle .noinit* sections.
944
945 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
946
947         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
948         and include netbsd_entry_point.
949         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
950         (NETBSD_ENTRY_POINT): Define.
951
952 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
953
954         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
955         if not already defined.
956         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
957
958 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
959
960         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
961         in a noreturn function.
962         (avr_output_function_prologue, avr_output_function_epilogue):
963         Correct function size calculation.  Do not crash on empty function.
964         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
965
966 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
967
968         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
969         netbsd_link_spec and netbsd_entry_point.
970         (LINK_SPEC): Use %(netbsd_link_spec).
971         (NETBSD_ENTRY_POINT): Define.
972
973 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
974
975         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
976         linker emulation.
977         (LINK_ARCH64_SPEC): Likewise.
978         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
979         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
980
981 2002-06-08  Marc Espie  <espie@openbsd.org>
982
983         * lists.c (free_list):  Fix typo in comment.
984
985 2002-06-08  Andreas Jaeger  <aj@suse.de>
986
987         * lcm.c (optimize_mode_switching): Add unused attribute for
988         variable.
989
990         * sched-deps.c (sched_analyze): Remove unused variable.
991
992 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
993
994         * diagnostic.def: Don't capitalize diagnostict descriptors.
995
996 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
997
998         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
999         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1000         (NETBSD_ENTRY_POINT): Define.
1001
1002 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1003
1004         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1005         NETBSD_LINK_SPEC_ELF.
1006         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1007         (NETBSD_ENTRY_POINT): Define.
1008         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1009         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1010         netbsd_entry_point.
1011         (NETBSD_ENTRY_POINT): Define.
1012
1013 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1014
1015         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1016         netbsd_link_spec and netbsd_entry_point.
1017         (LINK_SPEC): Use %(netbsd_link_spec).
1018         (NETBSD_ENTRY_POINT): Define.
1019
1020 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1021
1022         * config/netbsd-elf.h (LINK_SPEC): Rename to...
1023         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
1024         to specify program entry point.
1025
1026 2002-06-07  Jeff Law <law@redhat.com
1027
1028         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
1029         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
1030         than creating a new register.
1031         (distribute_notes): Likewise.
1032         * df.c (df_reg_use_gen): Likewise.
1033         (df_reg_clobber_gen): Likewise.
1034         (df_ref_record): Likewise.
1035         * expr.c (use_regs): Likewise.
1036         * flow.c (propagate_one_insn): Likewise.
1037         (mark_set_1): Likewise.
1038         (mark_used_reg): Likewise.
1039         * reload.c (emit_reload_insns): Likewise.
1040
1041 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1042
1043         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1044         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1045         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1046         comparison code comp can be reversed.
1047
1048 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1049
1050         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
1051         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
1052         equivalent x > -1.0 when -ffast-math.
1053
1054 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1055
1056         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1057         * config/mips/t-netbsd: New file.
1058
1059 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
1060
1061         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1062         options their own entries.
1063         (parse_option): Clarify comment.
1064         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1065         special case.  Replace if/strcmp chain for -W options with
1066         use of new OPT_* entries for them.
1067         (cpp_handle_options): Update to match.
1068         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1069         * c-decl.c: Update call to cpp_handle_option.
1070
1071 2002-06-07  Akim Demaille  <akim@epita.fr>
1072
1073         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1074         Whitespace changes.
1075
1076 2002-06-07  Jeffrey Law  <law@redhat.com>
1077
1078         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1079         on empty lists.
1080
1081 2002-06-07  H.J. Lu  (hjl@gnu.org)
1082
1083         * configure.in: Add --enable-__cxa_atexit.
1084         * configure: Regenerated.
1085         * config.in: Likewise.
1086
1087         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1088         not defined.
1089
1090 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
1091
1092         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1093
1094 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1095
1096         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1097
1098 2002-06-07  Jason Merrill  <jason@redhat.com>
1099
1100         * cppexp.c (num_equality_op): Use a temporary variable to work
1101         around gcc 3.0.4 bug.
1102
1103 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
1104
1105         * diagnostic.c (diagnostic_build_prefix): Tidy.
1106
1107 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1108
1109         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1110         scan_parameters, save_replacement_text, replacement_length): New.
1111         (scan_out_logical_line): Take a macro and save parameters if
1112         non-NULL.
1113         (_cpp_logical_line_trad): Update.
1114         (_cpp_create_trad_definition): Update to handle function-like
1115         macros.
1116         * cpplex.c (new_buff): Update.
1117         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1118         * cpphash.h: ...here.
1119         (CPP_ALIGN2, _cpp_save_parameter): New.
1120         * cppmacro.c (save_parameter): Rename, export.
1121         (parse_params): Update.
1122
1123 2002-06-07  Andreas Jaeger  <aj@suse.de>
1124
1125         * config/mmix/mmix.c: Remove extra broken prototype for
1126         mmix_init_machine_status.
1127
1128 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
1129
1130         * gengtype.c: Add comments before all the routines.
1131
1132 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1133
1134         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1135         from and add t-sh64 to ${tmake_file}.
1136         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1137         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1138         * config/sh/t-netbsd-sh5-32: Remove.
1139         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1140         MULTILIB_ENDIAN.
1141         (MULTILIB_DIRNAMES): Define.
1142
1143 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
1144
1145         * i386.md (and promoting splitters): Disable QI to SImode promoting
1146         when doing so changes immediate to be 32bit.
1147
1148         * rtl.h (emit_*_scope): Declare.
1149         * emit-rtl.c (emit_*_scope): New global functions.
1150         (try_split): Copy scope.
1151         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1152         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1153         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1154         noce_process_if_block, find_cond_trap): Copy scopes.
1155         * recog.c (peephole2_optimize): likewise.
1156
1157 2002-06-06  Jeffrey Law  <law@redhat.com>
1158
1159         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1160
1161 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
1162
1163         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1164
1165 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1166
1167         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1168         ($(docdir)/gccinstall.info): New target.
1169         (info): Depend on it.
1170         (gccinstall.dvi): New target.
1171         (dvi): Depend on it.
1172         * doc/.cvsignore: Ignore new info files.
1173         * doc/install.texi (@setfilename): Reflect new info filename.
1174
1175 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
1176
1177         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1178         on an UNSPEC.
1179
1180 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1181
1182         PR objc/6834
1183         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1184         c_common_get_alias_set.
1185         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1186
1187 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1188
1189         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1190         functions.
1191         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1192         * avr/avr.c (avr_output_function_epilogue): Use above to determine
1193         function size.
1194         * pa/pa.c (pa_output_function_prologue): Likewise.
1195
1196 2002-06-05  David S. Miller  <davem@redhat.com>
1197
1198         * integrate.c (subst_constants): Handle 'B' RTL format.
1199
1200 2002-06-05  Eric Christopher  <echristo@redhat.com>
1201
1202         * varasm.c (make_decl_rtl): Fix comment for removed
1203         halfpic.c.
1204
1205 2002-06-05  Eric Christopher  <echristo@redhat.com>
1206
1207         * Makefile.in: Remove missed halfpic bits.
1208
1209 2002-06-05  Eric Christopher  <echristo@redhat.com>
1210
1211         * toplev.c: Remove half-pic.
1212         * config/mips/mips.c: Ditto.
1213         * config/mips/mips.h: Ditto. Remove unused defines.
1214         * config/mips/openbsd.h: Update comment to reflect above.
1215         * config/mips/mips.md: Remove half-pic constraints.
1216         * halfpic.h: Delete.
1217         * halfpic.c: Ditto.
1218
1219 2002-06-05  Jeffrey Law  <law@redhat.com>
1220
1221         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1222         rejects (mem (lo_sum (reg) (unspec))), but will allow
1223         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1224
1225 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1226
1227         * cpphash.h (_cpp_create_definition): Update prototype.
1228         (_cpp_push_text_context, _cpp_create_trad_definition): New.
1229         ( cpp_lex_identifier_trad): New.
1230         (_cpp_set_trad_context): New.
1231         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1232         * cpplib.c (SEEN_EOL): Update.
1233         (lex_macro_node): Update for -traditional.
1234         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1235         * cppmacro.c (_cpp_create_definition): Split into
1236         create_iso_definition() and _cpp_create_trad_definition().
1237         (warn_of_redefinition): Update prototype; handle traditional
1238         macros.
1239         (_cpp_push_text_context): New.
1240         * cpptrad.c (skip_whitespace, push_replacement_text): New.
1241         (lex_identifier): Call ht_lookup with correct start.
1242         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1243         _cpp_set_trad_context): New.
1244         (scan_out_logical_line): Update to handle changing contexts.
1245
1246 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
1247
1248         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
1249         (shl*-*-elf*): Add.
1250         * config/sh/t-be (MULTILIB_ENDIAN): Set.
1251         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1252         * t-sh (MULTILIB_ENDIAN): Set.
1253         (MULTILIB_OPTIONS): Use it.
1254         * t-sh64 (MULTILIB_OPTIONS): Likewise.
1255         (MULTILIB_DIRNAMES): Likewise.
1256
1257 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
1258
1259         * toplev.h (report_error_function): Remove.
1260
1261         * diagnostic.h (location_t): New datatype.
1262         (text_info): Likewise.
1263         (diagnostic_info): Likewise.
1264         (output_prefix): New macro.
1265         (diagnostic_last_function_changed): Likewise.
1266         (diagnostic_set_last_function): Likewise.
1267         (diagnostic_last_module_changed): Likewise.
1268         (diagnostic_set_last_module): Likewise.
1269         (report_diagnostic): Now macro.
1270         (diagnostic_set_info): Declare.
1271
1272         * diagnostic.c (report_problematic_module): Rename to
1273         diagnostic_repor_current_module.
1274         (set_diagnostic_context): Remove.
1275         (count_error): Rename to diagnostic_error_count.
1276         (error_function_changed): Remove.
1277         (record_last_error_function): Likewise.
1278         (error_module_changed): Likewise.
1279         (record_last_error_module): Likewise.
1280         (context_as_prefix): Rename to diagnostic_build_prefix.
1281         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1282         (diagnostic_set_info): New function.
1283
1284         * objc/objc-act.c: #include diagnostic.h
1285         (error_with_ivar): Adjust call to count_error.
1286         (warn_with_method): Likewise.
1287         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1288
1289 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
1290
1291         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1292         lang_hooks.types.make_type instead of make_node; set up
1293         __va_list_tag type decl.
1294         (xtensa_builtin_saveregs): Remove broken use of
1295         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1296         for saved registers; add varargs alias set.
1297
1298 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1299
1300 config:
1301         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1302         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1303         CPP_PREDEFINES and part of CPP_SPEC.
1304         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1305         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1306
1307 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
1308
1309         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1310
1311 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1312
1313         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1314
1315 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
1316
1317         * gengtype-yacc.y: Make sure all rules end with a semicolon.
1318
1319 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
1320
1321         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1322         typo in function prototype and include "ggc.h" header.
1323
1324 2002-06-04  Richard Henderson  <rth@redhat.com>
1325
1326         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1327         (print_operand) ['U']: Likewise.
1328         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1329         (alpha_expand_unaligned_store_words): Likewise.
1330         (alpha_expand_builtin_vector_binop): Fix typo.
1331         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1332         umulh, and cix insns.
1333         (one_arg_builtins): Add cix builtins.
1334         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1335         (alpha_expand_builtin): Fix typo in arity.
1336         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1337         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1338         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1339         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1340         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1341         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1342         builtin_ctlz, builtin_ctpop): New.
1343         * doc/extend.texi (Alpha Built-in Functions): Update.
1344
1345 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
1346
1347         * gengtype.c (write_gc_root): Don't unnecessarily prevent
1348         global variable-length arrays being roots.
1349
1350         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1351         * configure.in (config_gtfiles): New variable.
1352         (all_gtfiles): Initialise from config_gtfiles.
1353         * configure: Regenerate.
1354
1355 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1356
1357 config/i386:
1358         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1359         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1360         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1361         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1362         win32.h (CPP_SPEC): Remove cpp_cpu.
1363         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1364         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1365
1366 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
1367
1368         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1369
1370 2002-06-04  Jeff Law <law@redhat.com.
1371             David Edelsohn <edelsohn@gnu.org>
1372             Michael Matz <matz@kde.org>
1373
1374         * sched-int.h (struct deps): New field libcall_block_tail_insn.
1375         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1376         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1377         is set, then mark the current insn as being part of a libcall
1378         scheduling group.
1379         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1380
1381         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1382         insns against the issue rate.
1383
1384 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
1385
1386         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1387         * final.c (final_scan_insn): Likewise.
1388         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1389         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1390         * haifa-sched.c (unlink_other_notes): Likeewise.
1391         (reemit_notes): Likewise.
1392         * print-rtl.c (print_rtx): Likewise.
1393         * sched-deps (sched-analyze): Likewise.
1394         * rtl.c (note_insn_name): Likewise.
1395         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1396         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1397         (RANGE_*): Kill.
1398
1399 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1400
1401         * varasm.c (mark_constants): Handle RTX format 'B'.
1402
1403 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1404
1405         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1406         (struct cpp_context): Add traditional fields.
1407         * cppmacro.c (paste_all_tokens, push_ptoken_context,
1408         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1409         * cpptrad.c (skip_comment, lex_identifier,
1410         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1411
1412 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
1413
1414         * gbl-ctors.h: Fix formatting.
1415         * gcc.c: Likewise.
1416         * gccspec.c: Likewise.
1417         * gcov.c: Likewise.
1418         * gcov-io.h: Likewise.
1419         * gcse.c: Likewise.
1420         * ggc-common.c: Likewise.
1421         * ggc.h: Likewise.
1422         * ggc-page.c: Likewise.
1423         * ggc-simple.c: Likewise.
1424         * global.c: Likewise.
1425         * graph.h: Likewise.
1426         * gthr-dce.h: Likewise.
1427         * gthr.h: Likewise.
1428         * gthr-posix.h: Likewise.
1429         * gthr-rtems.h: Likewise.
1430         * gthr-solaris.h: Likewise.
1431         * gthr-win32.h: Likewise.
1432
1433 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
1434
1435         Merge from pch-branch:
1436
1437         * gengtype.h (UNION_OR_STRUCT_P): New macro.
1438         * gengtype.c (write_gc_structure_fields): Use it.
1439         (write_gc_root): Use it here too.
1440
1441         * gengtype.c (write_gc_structure_fields): Assume that lengths
1442         of typenames fit into an 'int'; don't pass a size_t to "%d" in
1443         printf.
1444         (write_gc_marker_routine_for_structure): Likewise.
1445         (write_gc_types): Likewise.
1446         (write_gc_root): Likewise.
1447
1448         * varray.h (VARRAY_CLEAR): New.
1449         (varray_clear): Prototype.
1450         * varray.c (varray_clear): New.
1451         * cselib.c (reg_values_old): New.
1452         (used_regs_old): New.
1453         (cselib_init): Use cached varrays if available to avoid
1454         generating large amounts of garbage.
1455         (cselib_finish): Don't throw away old varrays.
1456
1457         * final.c (insn_addresses_): Move out of ifdef.
1458
1459         * varray.c (uses_ggc): Make more varray kinds GCable.
1460         * varray.h (union varray_data_tag): Let gengtype see
1461         fields 'generic' and 'te'.
1462         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1463         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1464         (reg_to_stack): Don't call VARRAY_FREE.
1465         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1466         (insn_addresses_): Use gengtype to mark.
1467         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1468         pointers; handle generic pointers in unused union fields.
1469         (get_output_file_with_visibility): Include cselib.h,
1470         insn-addr.h in gtype-desc.c.
1471         * function.c (prologue): Use gengtype to mark.
1472         (epilogue): Likewise.
1473         (sibcall_epilogue): Likewise.
1474         * dependence.c: Include gt-dependence.h, ggc.h.
1475         (struct def_use): Use gengtype to mark.
1476         (struct loop): Likewise.
1477         (struct induction): Likewise.
1478         (struct dependence): Likewise.
1479         (def_use_chain): Likewise.
1480         (dep_chain): Likewise.
1481         (loop_chain): Likewise.
1482         (induction_chain): Likewise.
1483         (init_dependence_analysis): Don't free anything, just clear pointers.
1484         (build_def_use): Use GGC to allocate def_use.
1485         (add_loop): Use GGC to allocate loop.
1486         (find_induction_variable): Use GGC to allocate induction.
1487         (check_node_dependence): Use GGC to allocate induction, dependence.
1488         (dump_node_dependence): Don't free varrays.
1489         (end_dependence_analysis): Likewise.
1490         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1491         (struct elt_loc_list): Likewise.
1492         (struct elt_list): Likewise.
1493         * cselib.c: Don't include obstack.h.
1494         (hash_table): Use gengtype to mark.
1495         (reg_values): Use gengtype to mark.
1496         (used_regs): Use gengtype to mark.
1497         (cselib_obstack): Delete.
1498         (cselib_startobj): Delete.
1499         (empty_vals): Mark as deletable.
1500         (empty_elt_lists): Mark as deletable.
1501         (empty_elt_loc_lists): Mark as deletable.
1502         (new_elt_list): Use GGC to allocate struct elt_list.
1503         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1504         (clear_table): Don't delete obstack; don't unnecessarily clear
1505         deletable variables.
1506         (new_cselib_val): Use GGC to allocate struct cselib_val.
1507         (cselib_init): Don't set up obstacks.  Use GGC to allocate
1508         hash table.
1509         (cselib_finish): Just clear variables, don't free anything.
1510         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1511         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1512         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1513         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1514         (gt-reg-stack.h): New rule.
1515         (gt-dependence.h): New rule.
1516         (gtype-desc.o): Add cselib.h, insn-addr.h.
1517
1518         * varray.c: Use only necessary headers.
1519         (element_size): New.
1520         (uses_ggc): New.
1521         (varray_init): Take type, not size.  Use GGC if appropriate.
1522         (varray_grow): Update for change to struct varray_head_tag.
1523         Use GGC if appropriate.
1524         * varray.h (struct const_equiv_data): Use gengtype.
1525         (enum varray_data_enum): New.
1526         (union varray_data_tag): Use gengtype.
1527         (struct varray_head_tag): Use gengtype.  Replace size field with
1528         enum varray_data_enum.
1529         (varray_init): Update prototype.
1530         (VARRAY_SCHED_INIT): Delete.
1531         (VARRAY_*_INIT): Update for change to varray_init.
1532         (VARRAY_SCHED): Delete.
1533         (VARRAY_PUSH_SCHED): Delete.
1534         (VARRAY_TOP_SCHED): Delete.
1535         * tree.h: Update for change to length specifier.
1536         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1537         (clone_body): Likewise.
1538         * ssa.h (ssa_definition): Use gengtype to mark.
1539         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1540         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1541         * rtl.h (struct rtvec_def): Update for change to length specifier.
1542         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1543         (struct initial_value_struct): Update for change to length specifier.
1544         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1545         (ggc_add_tree_varray_root): Delete prototype.
1546         (ggc_mark_rtx_varray): Delete prototype.
1547         (ggc_mark_tree_varray): Delete prototype.
1548         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1549         (ggc_add_tree_varray_root): Delete.
1550         (ggc_mark_rtx_varray): Delete.
1551         (ggc_mark_tree_varray): Delete.
1552         (ggc_mark_rtx_varray_ptr): Delete.
1553         (ggc_mark_tree_varray_ptr): Delete.
1554         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1555         (create_varray): Delete prototype.
1556         * gengtype.c (varrays): Delete.
1557         (create_varray): Delete.
1558         (adjust_field_type): Detect array of string pointers.
1559         (process_gc_options): Remove code to handle varray_type option.
1560         (set_gc_used_type): Remove TYPE_VARRAY case.
1561         (output_escaped_param): New.
1562         (write_gc_structure_fields): Use output_escaped_param on all
1563         parameters.  Handle 'skip' with 'use_param' option.  Handle
1564         arrays of strings.  Remove TYPE_VARRAY handling.
1565         (write_gc_roots): Use boolean to detect 'length' option.
1566         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1567         (struct_fields): Call adjust_field_type on array fields.
1568         (type): Remove VARRAY_TYPE case.
1569         (type_option): Likewise.
1570         * gengtype-lex.l: Don't consider varray_type a keyword.
1571         * function.h: Update for change to length specifier.
1572         (free_eh_status): Delete prototype.
1573         * function.c (free_after_compilation): Don't call free_eh_status.
1574         (reorder_blocks): Don't use VARRAY_FREE.
1575         * except.c (struct eh_status): Update for change to length specifier.
1576         remove varray_type specifier.
1577         (free_eh_status): Delete.
1578         * dwarf2out.c: Include gt-dwarf2out.h.
1579         (used_rtx_varray): Use gengtype to mark, move
1580         outside ifdefs.
1581         (incomplete_types): Likewise.
1582         (decl_scope_table): Likewise.
1583         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
1584         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1585         * c-tree.h (struct lang_type): Update for change to length specifier.
1586         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1587         * c-objc-common.c: Include gt-c-objc-common.h.
1588         (deferred_fns): Mark for gengtype.
1589         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1590         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1591         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1592         (gtype-desc.o): Update dependencies.
1593         (dwarf2out.o): Add gt-dwarf2out.h.
1594         (varray.o): Update dependencies.
1595         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1596         (gt-c-objc-common.h): New rule.
1597         (gt-dwarf2out.h): New rule.
1598         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1599
1600         * doc/gty.texi (GTY Options): Correct spelling.
1601         (GGC Roots): Likewise.
1602         * Makefile.in (TEXI_CPP_FILES): New.
1603         (TEXI_GCC_FILES): New.
1604         (TEXI_GCCINT_FILES): New.
1605         (TEXI_CPPINT_FILES): New.
1606         ($(docdir)/cpp.info): Use new macros.
1607         ($(docdir)/gcc.info): Likewise.
1608         ($(docdir)/gccint.info): Likewise.
1609         ($(docdir)/cppinternals.info): Likewise.
1610         (cpp.dvi): Likewise.
1611         (gcc.dvi): Likewise.
1612         (gccint.dvi): Likewise.
1613         (cppinternals.dvi): Likewise.
1614
1615         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1616         * doc/gccint.texi (Top): Include gty.texi.
1617         * doc/gty.texi: New file.
1618
1619         * bitmap.c: Include ggc.h, gt-bitmap.h.
1620         (bitmap_ggc_free): New.
1621         (bitmap_elem_to_freelist): New.
1622         (bitmap_element_free): Use bitmap_elem_to_freelist.
1623         (bitmap_element_allocate): Allow use of GGC.
1624         (bitmap_clear): Use bitmap_elem_to_freelist.
1625         (bitmap_copy): Update for change to bitmap_element_allocate.
1626         (bitmap_set_bit): Likewise.
1627         (bitmap_operation): Update for changes elsewhere.
1628         (bitmap_initialize): Allow to create bitmaps that will use GGC.
1629         * bitmap.h (struct bitmap_element_def): Use gengtype.
1630         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
1631         (bitmap_initialize): Add extra parameter.
1632         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1633         (BITMAP_ALLOCA): Delete.
1634         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1635         (BITMAP_GGC_ALLOC): New.
1636         * Makefile.in (gtype-desc.o): Add bitmap.h.
1637         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1638         (GTFILES): Add bitmap.c.
1639         (gt-bitmap.h): New rule.
1640         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1641         * basic-block.h: Update for changes to bitmap_initialize.
1642         * except.c (exception_handler_label_map): Move into...
1643         (struct eh_status): Here.
1644         (struct eh_region): Make 'aka' GCable.
1645         (free_eh_status): Don't need to specially handle
1646         exception_handler_label_map.
1647         (add_ehl_entry): Update for changes to exception_handler_label_map.
1648         (find_exception_handler_labels): Likewise.
1649         (remove_exception_handler_label): Likewise.
1650         (maybe_remove_eh_handler): Likewise.
1651         (for_each_eh_label): Likewise.
1652         (remove_eh_handler): Allocate 'aka' using GGC.
1653         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1654         to list of includes.
1655
1656         * gengtype.c (write_gc_marker_routine_for_structure): Name
1657         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
1658         (write_gc_types): Arrange for the tests with NULL to be inlined.
1659         (write_gc_roots): Update uses of procedure pointers.
1660         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1661
1662         * Makefile.in (explow.o): Add dependency on gt-explow.h.
1663         (sdbout.o): Add dependency on gt-sdbout.h.
1664
1665         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1666         (mem_attrs_htab): Likewise.
1667         (init_emit_once): Don't call ggc_add_deletable_htab.
1668         * fold-const.c (size_htab): Use gengtype to clear unused entries.
1669         (size_int_type_wide): Don't call ggc_add_deletable_htab.
1670         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1671         parameters, use them, change callers.
1672         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1673         (write_gc_roots): Handle 'if_marked' option.
1674         (main): Don't need to call set_gc_used_type any more.
1675         * ggc.h (ggc_htab_marked_p): Delete.
1676         (ggc_htab_mark): Delete.
1677         (struct ggc_cache_tab): New.
1678         (gt_ggc_cache_rtab): New declaration.
1679         * ggc-common.c (struct d_htab_root): Delete.
1680         (d_htab_roots): Delete.
1681         (ggc_add_deletable_htab): Delete.
1682         (ggc_htab_delete): Handle new htab-deleting mechanism.
1683         (ggc_mark_roots): Use new htab-deleting mechanism.
1684         * tree.c (type_hash_table): Use gengtype to clear unused entries.
1685         Make static.
1686         (init_obstacks): Don't call ggc_add_deletable_htab.
1687
1688         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1689         (struct hashed_entry): Likewise.
1690         (nst_method_hash_list): Likewise.
1691         (cls_method_hash_list): Likewise.
1692         (HASH_ALLOC_LIST_SIZE): Delete.
1693         (ATTR_ALLOC_LIST_SIZE): Delete.
1694         * objc/objc-act.c (hash_init): Use ggc to allocate
1695         nst_method_hash_list, cls_method_hash_list.
1696         (hash_enter): Use ggc to allocate; allocate one entry at a time.
1697         (hash_add_attr): Likewise.
1698         (ggc_mark_hash_table): Delete.
1699         (objc_act_parse_init): Delete.
1700         (objc_init): Delete reference to objc_act_parse_init.
1701         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
1702         obstack.h.  Replace references to 'struct hash_table' with htab_t.
1703         (struct symbol_hash_entry): Replace hash header with key field.
1704         (struct file_hash_entry): Replace hash header with key field.
1705         (struct demangled_hash_entry): Replace hash header with key field.
1706         (hash_string_eq): New.
1707         (hash_string_hash): New.
1708         (symbol_hash_newfunc): Delete.
1709         (symbol_hash_lookup): Modify to use htab_t.
1710         (file_hash_newfunc): Delete.
1711         (file_hash_lookup): Modify to use htab_t.
1712         (demangled_hash_newfunc): Delete.
1713         (demangled_hash_lookup): Modify to use htab_t.
1714         (tlink_init): Modify to use htab_t.
1715         * hash.h: Delete.
1716         * hash.c: Delete.
1717         * ggc.h: Delete forward structure declarations.
1718         Delete prototypes for deleted functions.
1719         * ggc-common.c: Don't include hash.h.
1720         (ggc_add_tree_hash_table_root): Delete.
1721         (ggc_mark_tree_hash_table_entry): Delete.
1722         (ggc_mark_tree_hash_table): Delete.
1723         (ggc_mark_tree_hash_table_ptr): Delete.
1724         * gengtype.c (write_gc_structure_fields): Allow param_is option.
1725         (write_gc_marker_routine_for_structure): Use visibility of
1726         the parameter if there is one.
1727         * function.c: Replace hash.h with hashtab.h.  Replace references
1728         to 'struct hash_table *' with htab_t.
1729         (struct insns_for_mem_entry): Include a plain key.
1730         (fixup_var_refs_insns_with_hash): Update to use htab_t.
1731         (insns_for_mem_newfunc): Delete.
1732         (insns_for_mem_hash): Update to use htab_t.
1733         (insns_for_mem_comp): Likewise.
1734         (insns_for_mem_walk): Likewise.
1735         * c-lang.c: Include ggc.h.
1736         * Makefile.in (OBJS): Remove hash.o.
1737         (c-lang.o): Add GGC_H.
1738         (COLLECT2_OBJS): Remove hash.o.
1739         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1740         (ggc-common.o): Remove hash.h.
1741         (function.o): Remove hash.h, add HASHTAB_H.
1742         (genautomata.o): Remove hash.h, add HASHTAB_H.
1743
1744         * varasm.c (mark_const_str_htab_1): Delete.
1745         (mark_const_str_htab): Delete.
1746         (const_str_htab_del): Delete.
1747         (const_str_htab): Use gengtype to mark.
1748         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
1749         allocate them.
1750         * tree.c (mark_tree_hashtable_entry): Delete.
1751         (mark_tree_hashtable): Delete.
1752         * tree.h (mark_tree_hashtable): Delete prototype.
1753         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1754         (ggc_mark): Likewise.
1755         (ggc_calloc): New.
1756         (htab_create_ggc): New.
1757         * ggc-common.c (ggc_calloc): New.
1758         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1759         (struct type): Add param_struct structure.
1760         * gengtype.c (param_structs): New.
1761         (adjust_field_type): Handle param_is option.
1762         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1763         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1764         (write_gc_structure_fields): Add new PARAM parameter.  Update
1765         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
1766         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1767         Use it to generate function name.  Update callers.
1768         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
1769         Process them.
1770         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
1771         option.
1772         (main): Define PTR as pointer-to-scalar.  Don't specially
1773         mark deferred_string or ehl_map_entry.
1774         * gengtype-yacc.y (PARAM_IS): Add new token.
1775         (externstatic): Use adjust_field_type.
1776         (type_option): Add PARAM_IS.
1777         * gengtype-lex.l: Add rule for typedef of function pointers.
1778         Add rule for PARAM_IS.
1779         (IWORD): Add size_t.
1780         * except.c (exception_handler_label_map): Use gengtype to mark.
1781         (type_to_runtime_map): Likewise.
1782         (mark_ehl_map_entry): Delete.
1783         (mark_ehl_map): Delete.
1784         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1785         (t2r_mark_1): Delete.
1786         (t2r_mark): Delete.
1787         * Makefile.in (gtype-desc.o): Correct dependencies.
1788         (GTFILES): Add hashtab.h.
1789         (genautomata.o): Actually uses hashtab.h.
1790
1791         * Makefile.in (stringpool.o): Add $(GGC_H).
1792         (dwarf2asm.o): Likewise.
1793         (GTFILES): Add hashtable.h.
1794         * c-common.h (struct c_common_identifier): Use gengtype.
1795         * c-decl.h (c_mark_tree): Delete.
1796         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1797         * c-tree.h (struct lang_identifier): Use gengtype.
1798         (union lang_tree_node): New.
1799         (c_mark_tree): Delete prototype.
1800         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1801         dwarf2_debug_hooks.
1802         * gengtype-lex.l (IWORD): Allow 'bool'.
1803         (ptr_alias): Match.
1804         * gengtype-yacc.y (ALIAS): New token.
1805         (type_option): New rule.
1806         (option): Use type_option.
1807         * gengtype.c (process_gc_options): New.
1808         (set_gc_used_type): Use it.
1809         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1810         Add new variable 't' to hold the type of the field being processed.
1811         Add more error checking.  Use UNION_P when looking at 'desc' option.
1812         Handle language-specific structures containing other
1813         language-specific structures.
1814         (write_gc_types): Handle 'ptr_alias' option.
1815         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1816         * ggc-common.c (ggc_pending_trees): Delete.
1817         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1818         (ggc_mark_trees): Delete.
1819         (gt_ggc_m_tree_node): Delete.
1820         * ggc.h (ggc_pending_trees): Delete.
1821         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1822         * hashtable.h (ht_identifier): Use gengtype.
1823         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1824         * langhooks.h (struct lang_hooks): Delete mark_tree.
1825         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1826         anyway.
1827         * system.h: Poison LANG_HOOKS_MARK_TREE.
1828         * tree.c (tree_node_structure): New.
1829         * tree.h (struct tree_common): Use gengtype.
1830         (struct tree_int_cst): Likewise.
1831         (struct tree_real_cst): Likewise.
1832         (struct tree_string): Likewise.
1833         (struct tree_complex): Likewise.
1834         (struct tree_vector): Likewise.
1835         (struct tree_identifier): Likewise.
1836         (struct tree_list): Likewise.
1837         (struct tree_vec): Likewise.
1838         (struct tree_exp): Likewise.
1839         (struct tree_block): Likewise.
1840         (struct tree_type): Likewise.
1841         (struct tree_decl): Likewise.
1842         (enum tree_structure_enum): New.
1843         (union tree_node): Use gengtype, with an alias.
1844         (tree_node_structure): Prototype.
1845         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1846
1847         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
1848         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
1849         to LANG_HOOKS_FUNCTION_FINAL.
1850         * Makefile.in (GTFILES): Add bitmap.h.
1851         * except.c (struct eh_region): Mark field 'aka' to be skipped.
1852
1853         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1854         (alpha_init_machine_status): Give proper type.
1855         * Makefile.in (c-lang.o): Depend on gtype-c.h.
1856         (optabs.o): Depend on gt-optabs.h.
1857         (GTFILES): Add optabs.o.
1858         (gt-optabs.h): Add rule.
1859         * optabs.c: Include gt-optabs.h.
1860
1861         * gengtype.c (set_gc_used_type): Correct some errors in last change.
1862         (write_gc_structure_fields): If a field which should be NULL is
1863         not, abort.
1864         * c-pragma.c: Move struct align_stack and variable alignment_stack
1865         out from the ifdef.
1866
1867         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1868         * config/xtensa/xtensa.c: Include gt-cris.h.
1869         (struct machine_function): Use gengtype to mark.
1870         * config/mmix/mmix.h (struct machine_function): Use gengtype
1871         to mark.
1872         * config/cris/t-cris: Add dependencies for gt-cris.h.
1873         * config/cris/cris.c: Include gt-cris.h.
1874         (struct machine_function): Use gengtype to mark.
1875         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1876         to mark.
1877         * doc/tm.texi (Per-Function Data): Delete references to
1878         mark_machine_status.
1879         * config/ia64/ia64.c (ia64_override_options): Don't set
1880         mark_machine_status.
1881         * config/i386/i386.c (override_options): Likewise.
1882         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1883         * config/arm/arm.c (arm_init_expanders): Likewise.
1884         * config/alpha/alpha.c (override_options): Likewise.
1885         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1886         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1887         (write_gc_structure_fields): Don't handle 'really' option.
1888         Handle 'maybe_null' option.
1889         (write_gc_types): Handle 'maybe_null' option.
1890         * function.h (struct function): Don't use "really".
1891         (mark_machine_status): Delete declaration.
1892         (mark_lang_status): Delete declaration.
1893         (gt_ggc_mr_machine_function): Delete prototype.
1894         (gt_ggc_mr_language_function): Delete prototype.
1895         * function.c (mark_machine_status): Delete.
1896         (mark_lang_status): Delete.
1897         (gt_ggc_mr_machine_function): Delete.
1898         (gt_ggc_mr_language_function): Delete.
1899         * c-tree.h (mark_c_function_context): Delete prototype.
1900         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1901         * c-decl.c (struct language_function): Rename from struct
1902         c_language_function.  Update uses.  Use gengtype to mark.
1903         (mark_c_function_context): Delete.
1904         * c-common.h (struct c_language_function): Rename from struct
1905         language_function.
1906         (mark_stmt_tree): Delete prototype.
1907         (c_mark_lang_decl): Delete prototype.
1908         (mark_c_language_function): Delete prototype.
1909         * c-common.c (mark_stmt_tree): Delete.
1910         (c_mark_lang_decl): Delete.
1911         (mark_c_language_function): Delete.
1912
1913         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1914         (lang_bitmap): New typedef.  Use where appropriate.
1915         (struct type): Add gc_used field, lang_struct field.
1916         (UNION_P): New macro.
1917         (new_structure): New prototype.
1918         (find_structure): Remove 'pos' parameter.  Change all callers.
1919         * gengtype-lex.l: Update for changes to find_structure.
1920         * gengtype-yacc.y (typedef_struct): Use new_structure.
1921         (yacc_ids): Suppress warning.
1922         (type): Use new_structure.
1923         * gengtype.c (string_type): Update for changes to struct type.
1924         (find_structure): Just find a structure, don't worry about
1925         creating one.
1926         (new_structure): New.
1927         (note_yacc_type): Use new_structure.
1928         (set_gc_used_type): New.
1929         (set_gc_used): New.
1930         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1931         (write_gc_types): Handle TYPE_LANG_STRUCT.
1932         (write_gc_marker_routine_for_structure): New.
1933         (main): Call set_gc_used.  Add some calls to set_gc_used_type
1934         for places where GCC doesn't use gengtype properly yet.
1935         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1936         (gt_ggc_m_tree_node): Likewise.
1937
1938         * varasm.c (copy_constant): Call expand_constant if we hit
1939         something we can't recognise.
1940
1941         * ggc-common.c (ggc_mark_rtvec_children): Delete.
1942         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1943         (lang_mark_false_label_stack): Delete.
1944         * rtl.h (struct rtvec_def): Use gengtype to mark.
1945         * ggc.h (ggc_mark_rtvec): Delete.
1946         (gt_ggc_m_rtvec_def): Delete.
1947         (ggc_mark_nonnull_tree): Delete.
1948         (ggc_mark_rtvec_children): Delete prototype.
1949         (lang_mark_false_label_stack): Delete declaration.
1950
1951         * gengtype.h (note_yacc_type): Add prototype.
1952         * gengtype.c (note_yacc_type): New function.
1953         * gengtype-lex.l: Add lexer support for yacc files.
1954         * gengtype-yacc.y (start): Extract union from yacc files.
1955         (yacc_union): New rule.
1956         (yacc_typematch): New rule.
1957         (yacc_ids): New rule.
1958         (enum_items): Tweak for efficiency.
1959         (optionseq): Likewise.
1960
1961         * c-common.h (struct language_function): Use gengtype.
1962         (struct c_lang_decl): Likewise.
1963         * c-tree.h (struct lang_decl): Likewise.
1964         (struct lang_type): Likewise.
1965         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1966         tree language substructures.
1967
1968         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1969         ggc_mark_tree.
1970         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1971
1972         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1973
1974         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
1975         mark. Remove 'data.block.cleanup_ptr' field.
1976         (struct stmt_status): Use usual technique to mark struct nesting.
1977         (gt_ggc_mr_nesting_cond): Delete.
1978         (gt_ggc_mr_nesting_loop): Delete.
1979         (gt_ggc_mr_nesting_block): Delete.
1980         (gt_ggc_mr_nesting_case_stmt): Delete.
1981         (expand_start_cond): Set discriminator.
1982         (expand_start_loop): Likewise.
1983         (expand_start_null_loop): Likewise.
1984         (expand_start_bindings_and_block): Set discriminator.  Don't set
1985         deleted fields.
1986         (expand_decl_cleanup): Replace 'cleanup_ptr' with
1987         &thisblock->data.block.cleanups.
1988         (expand_start_case): Set discriminator.
1989         (expand_start_case_dummy): Set discriminator.
1990
1991         * ggc-callbacks.c: Remove.
1992
1993         * gengtype.h (struct type): Add 'u.s.bitmap' field.
1994         (find_structure): Add 'pos' parameter.
1995         * gengtype-lex.l: Update callers to find_structure.
1996         * gengtype-yacc.y: Likewise.
1997         * gengtype.c (find_structure): Allow for structures to be defined
1998         in multiple language backends.
1999         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2000         (counter): Rename to gc_counter.
2001         (write_gc_structure_fields): Fail when writing out fields for
2002         an incomplete structure.  Ignore arrays of scalars.  Handle
2003         'tree_vec' special.
2004         (write_gc_types): Reset counter for each procedure written.
2005
2006         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2007         (free_case_nodes): Delete.
2008         (expand_end_case_type): Delete call to free_case_nodes.
2009
2010         * Makefile.in (cselib.o): Include gt-<filename>.h.
2011         (gcse.o): Likewise.
2012         (profile.o): Likewise.
2013         (alias.o): Likewise.
2014         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2015         alphabetize backend files.
2016         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2017         * alias.c: Use gengtype for roots.
2018         * c-common.h (struct stmt_tree_s): Use gengtype.
2019         * c-decl.c: Use gengtype for roots.
2020         * cselib.c: Use gengtype for roots.
2021         * expr.c: Use gengtype for roots.
2022         * fold-const.c: Use gengtype for roots.
2023         * gcse.c: Use gengtype for roots.
2024         * gengtype-lex.l: Handle typedefs of function types.
2025         Allow for empty array bounds.
2026         Allow processing to stop on initialisers.
2027         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2028         (semiequal): New rule.
2029         * gengtype.c (create_file): Tidy output files.
2030         (get_output_file_with_visibility): Fix paren warning.  Fix bug
2031         involving multiple input files mapping to one output file.
2032         (write_gc_structure_fields): Skip arrays of scalars.
2033         (write_gc_types): Tidy output files.
2034         (write_gc_root): New function.
2035         (write_gc_roots): Fix bugs, add support for roots that are
2036         structures.
2037         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2038         (ggc_mark_tree_ptr): Delete.
2039         (ggc_add_rtx_root): Delete.
2040         (ggc_add_tree_root): Delete.
2041         (ggc_del_root): Delete.
2042         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2043         allocate struct initial_value_struct.
2044         * profile.c: Use gengtype for roots.
2045         * sdbout.c: Use gengtype for roots.
2046         * varasm.c (mark_weak_decls): Delete unused prototype.
2047         (mark_const_hash_entry): Delete unused function.
2048         * config/darwin-protos.h: Use gengtype for roots.
2049         (machopic_add_gc_roots): Delete.
2050         * config/arm/arm.c: Use gengtype for roots.
2051         * config/arm/arm.h: Use gengtype for roots.
2052         * config/c4x/c4x-protos.h: Use gengtype for roots.
2053         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2054         * config/d30v/d30v-protos.h: Use gengtype for roots.
2055         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2056         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2057         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2058         * config/ia64/ia64-protos.h: Use gengtype for roots.
2059         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2060         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2061         * config/m68hc11/m68hc11.c (z_reg): Make global.
2062         (z_reg_qi): Make global.
2063         (m68hc11_add_gc_roots): Delete.
2064         * config/mcore/mcore-protos.h: Use gengtype for roots.
2065         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2066         * config/mips/mips.c (mips_add_gc_roots): Delete.
2067         * config/mips/mips.h: Use gengtype for roots.
2068         * config/mmix/mmix.c (override_options): Use gengtype for roots.
2069         * config/mmix/mmix.h: Use gengtype for roots.
2070         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2071         * config/mn10200/mn10200.h: Use gengtype for roots.
2072         * config/pa/pa.c: Use gengtype for roots, marking.
2073         (struct deferred_plabel): Use GGC, gengtype.
2074         (pa_add_gc_roots): Delete.
2075         (mark_deferred_plabels): Delete.
2076         * config/pj/pj-protos.h: Use gengtype for roots.
2077         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2078         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
2079         machopic_add_gc_roots.
2080         * config/rs6000/rs6000.h: Use gengtype for roots.
2081         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2082         (gt-darwin.h): Add rule.
2083         * config/sh/sh.c: Use gengtype for roots.
2084         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2085         (gt-sh.h): Add rule.
2086         * config/sparc/sparc.c: Use gengtype for roots.
2087         (sparc_add_gc_roots): Delete.
2088         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2089         (mark_ultrasparc_pipeline_state): Delete.
2090         * config/sparc/sparc.h: Use gengtype for roots.
2091
2092         * Makefile.in (c-parse.o): Update dependencies.
2093         (c-common.o): Likewise.
2094         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2095         Add dependencies for the files they generate.
2096         * c-common.c: Replace ggc_add_* uses with GTY annotations.
2097         * c-common.h: Likewise.
2098         * c-decl.c: Likewise.
2099         (gt_ggc_mp_binding_level): Delete.
2100         * c-lang.c: Include gtype-c.h.
2101         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
2102         gt-c-parse.h.
2103         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2104         (gt_ggc_mp_align_stack): Delete.
2105         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2106         * function.c: Replace ggc_add_* uses with GTY annotations.
2107         (gt_ggc_mp_function): Delete.
2108         * function.h: Replace ggc_add_* uses with GTY annotations.
2109         * gengtype.c (lang_names): New.
2110         (NUM_BASE_FILES): New.
2111         (open_base_files): Create language base files.
2112         (startswith): New.
2113         (get_file_basename): New.
2114         (get_base_file_bitmap): New.
2115         (get_output_file_with_visibility): Rename from get_output_file.
2116         Add more mappings for various C/Objc filenames.
2117         (finish_root_table): New.
2118         (write_gc_roots): Handle dependencies and scoping properly.
2119         * gengtype.h: Add prototypes for new functions.
2120         * ggc-common.c (struct deletable_root): Delete.
2121         (deletables): Delete.
2122         (ggc_add_deletable_root): Delete.
2123         (ggc_mark_roots): No need to deal with deleted functionality.
2124         * ggc.h (ggc_add_deletable_root): Delete prototype.
2125         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2126         (gtype-objc.h): Add rule to create.
2127         * objc/config-lang.in (gtfiles): New.
2128         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
2129         ggc_add_* with GTY markers.  Include gtype-objc.h.
2130         (ggc_mark_imp_list): Delete.
2131         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2132         * objc/objc-lang.c: Random Whitespace Change.
2133
2134         * except.h (exception_handler_labels): Delete.
2135         (get_exception_handler_labels): New.
2136         * except.c (exception_handler_labels): Delete.
2137         (struct eh_status): Add exception_handler_labels field.
2138         (doing_eh): Don't add exception_handler_labels as root.
2139         (free_eh_status): Don't need to free exception_handler_labels.
2140         (get_exception_handler_labels): New.
2141         (find_exception_handler_labels): Update for move of
2142         exception_handler_labels.
2143         (remove_exception_handler_label): Likewise.
2144         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2145         * jump.c (rebuild_jump_labels): Likewise.
2146         * loop.c (find_and_verify_loops): Likewise.
2147         * sched-rgn.c (is_cfg_nonregular): Likewise.
2148
2149         * gengtype.c (write_gc_structure_fields): Handle variable-length
2150         TYPE_ARRAYs.
2151
2152         * varasm.c (struct weak_syms): Use GGC, gengtype.
2153         (mark_weak_decls): Delete.
2154         (weak_decls): Likewise.
2155         (add_weak): Likewise.
2156         (remove_from_pending_weak_list): Likewise.
2157         (init_varasm_once): Likewise.
2158
2159         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2160         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2161         stor-layout.c, regclass.c, and lists.c.
2162         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2163         gt-regclass.h and gt-lists.h on s-gtype.
2164         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
2165         * except.c: Use gengtype for roots.
2166         * explow.c: Use gengtype for roots.  Include gt-explow.h.
2167         * expr.h (init_stor_layout_once): Delete prototype.
2168         * function.c: Use gengtype for roots.
2169         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2170         * gengtype-yacc.y (start): Can also be an externstatic.
2171         (externstatic): New production.
2172         (struct_fields): Correct array bounds inversion for 2-d arrays.
2173         * gengtype.c (variables): New variable.
2174         (note_variable): New function.
2175         (get_output_file): Include libfuncs.h into gtype-desc.c.
2176         (get_output_file_name): New function.
2177         (write_gc_structure_fields): Suppress warnings.
2178         (write_gc_types): Make static.
2179         (put_mangled_filename): New function.
2180         (write_gc_roots): New function.
2181         (main): Call write_gc_roots.
2182         * gengtype.h (note_variable): Prototype.
2183         (get_output_file_name): Prototype.
2184         (write_gc_types): Delete prototype.
2185         * ggc.h: Clean up unnecessary structure predefinitions.
2186         (struct ggc_root_tab): Define.
2187         (gt_ggc_m_rtx_def): Make function, not macro.
2188         (gt_ggc_m_tree_node): Likewise.
2189         * libfuncs.h: Use gengtype for roots.
2190         * lists.c: Use gengtype for roots.  Include gt-lists.h.
2191         (init_EXPR_INSN_LIST_cache): Delete.
2192         * optabs.c: Use gengtype for roots.
2193         (gt_ggc_mp_optab): Delete.
2194         * optabs.h: Use gengtype for roots.
2195         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
2196         * rtl.h: Use gengtype for roots.
2197         (init_EXPR_INSN_LIST_cache): Delete prototype.
2198         * stor-layout.c: Use gengtype for roots.
2199         Include gt-stor-layout.h.
2200         (init_stor_layout_once): Delete.
2201         * toplev.c: Use gengtype for roots.  Delete calls to deleted
2202         routines.
2203         * tree.c: Use gengtype for roots.
2204         * tree.h: Use gengtype for roots.
2205         * varasm.c: Use gengtype for roots.
2206
2207         * Makefile.in (GTFILES): Add @all_gtfiles@.
2208         * configure: Regenerate.
2209         * configure.in: Construct all_gtfiles from the gtfiles definitions
2210         in config-lang.in.
2211         * gengtype-yacc.y (type): Warn about duplicate structure names.
2212         * gengtype.c (get_output_file): Handle .c files in language
2213         subdirectories.
2214
2215         * Makefile.in (GTFILES): Run gengtype on all the config files
2216         and on the target .c file.
2217         * except.c (mark_eh_region): Delete.
2218         (init_eh_for_function): Use GGC on struct eh_status.
2219         (mark_eh_status): Delete.
2220         (free_eh_status): Use GGC.
2221         (expand_eh_region_start): Use GGC to
2222         (collect_eh_region_array): Allocate last_region_number using GGC.
2223         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2224         (remove_eh_handler): Let GGC free struct eh_region.
2225         (add_call_site): Use GGC to reallocate call_site_record array.
2226         * function.c (init_machine_status): Update calling sequence.
2227         (mark_machine_status): Likewise.
2228         (mark_lang_status): Likewise.
2229         (prepare_function_start): Update init_machine_status call.
2230         (mark_function_status): Delete.
2231         (maybe_mark_struct_function): Delete.
2232         (ggc_mark_struct_function): Delete.
2233         (gt_ggc_mp_function): New.
2234         (gt_ggc_mr_machine_function): New.
2235         (gt_ggc_mr_language_function): New.
2236         (init_function_once): Use canonical names.
2237         * function.h (struct function): Use gengtype.
2238         (init_machine_status): Return the structure.
2239         (mark_machine_status): Take a 'void *'.
2240         (mark_lang_status): Likewise.
2241         * ggc-common.c (ggc_mark_trees): Use canonical name for
2242         ggc_mark_struct_function.
2243         * tree.h (ggc_mark_struct_function): Delete prototype.
2244         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2245         (alpha_init_machine_status): Likewise.
2246         (override_options): Use canonical name for alpha_mark_machine_status.
2247         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2248         * config/arm/arm.h (struct machine_function): Use gengtype.
2249         * config/arm/arm.c (arm_mark_machine_status): Delete.
2250         (arm_init_machine_status): Update calling sequence.
2251         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
2252         * config/cris/cris.c (cris_init_machine_status): Update
2253         calling sequence.
2254         * config/d30v/d30v.h (struct machine_function): Use gengtype.
2255         * config/d30v/d30v.c (d30v_init_machine_status): Update
2256         calling sequence.
2257         (d30v_mark_machine_status): Delete.
2258         * config/i386/i386.c: Include gt-i386.h.
2259         (struct machine_function): Use gengtype.
2260         (ix86_init_machine_status): Update calling sequence.
2261         (ix86_mark_machine_status): Delete.
2262         (override_options): Use canonical namke for ix86_mark_machine_status.
2263         * config/ia64/ia64.h (struct machine_function): Use gengtype.
2264         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
2265         sequence.
2266         (ia64_mark_machine_status): Delete.
2267         (ia64_override_options): Use canonical name for
2268         ia64_mark_machine_status.
2269         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
2270         sequence.
2271         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2272         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2273         * gengtype.c (get_output_file): Fix warning.
2274         (main): Add prototype to suppress warning.
2275         * tree.c: Remove tree_hash_mark prototype.
2276
2277         * tree.h (init_stmt): Delete prototype.
2278         * toplev.c (lang_independent_init): Don't call init_stmt.
2279         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2280         (stmt_obstack): Delete.
2281         (POPSTACK): No need to free 'struct nesting'.
2282         (gt_ggc_mr_nesting_cond): Use canonical names.
2283         (gt_ggc_mr_nesting_loop): Use canonical names.
2284         (gt_ggc_mr_nesting_block): Use canonical names.
2285         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2286         (mark_stmt_status): Delete.
2287         (init_stmt): Delete.
2288         (clear_last_expr): Clear both last_expr_type and last_expr_value.
2289         Use it everywhere that last_expr_type was cleared.
2290         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2291         (zap_lists): Delete.
2292         * ggc.h (ggc_add_deletable_root): Prototype.
2293         (mark_stmt_status): Remove prototype.
2294         * ggc-common.c (ggc_add_deletable_root): New.
2295         (ggc_mark_roots): Handle deletable roots.
2296         * function.c (ggc_mark_struct_function): Use canonical name
2297         for mark_stmt_status.
2298         * emit-rtl.c (free_sequence_stack): New.
2299         (start_sequence): Use a freelist for sequences.
2300         (end_sequence): Likewise.
2301         (init_emit_once): Add free_sequence_stack as a deleteable root.
2302         * c-pragma.c Include gt-c-pragma.h.
2303         (struct align_stack): Use gengtype.
2304         (push_alignment): Use GGC for struct align_stack.
2305         (mark_align_stack): Delete.
2306         (gt_ggc_mp_align_stack): New.
2307         (init_pragma): Use canonical name for mark_align_stack.
2308         * c-decl.c: Include gt-c-decl.h.
2309         (struct binding_level): Use gengtype.
2310         (make_binding_level): Use GGC; handle the freelist here.
2311         (pop_binding_level): New.
2312         (pushlevel): Move code into make_binding_level.
2313         (push_label_level): Likewise.
2314         (poplevel): Move code into pop_binding_level.
2315         (pop_label_level): Likewise.
2316         (mark_binding_level): Delete.
2317         (gt_ggc_mp_binding_level): New.
2318         (c_init_decl_processing): Use canonical name for mark_binding_level.
2319         Add free_binding_level as deletable root.
2320         (mark_c_function_context): Use canonical name for mark_binding_level.
2321         * Makefile.in (c-decl.o): Add gt-c-decl.h.
2322         (c-pragma.o): Add gt-c-pragma.h.
2323         (GTFILES): Add c-decl.c and c-pragma.c.
2324         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2325
2326         * tree.c (struct type_hash): Use gengtype.
2327         (init_obstacks): Use canonical name for type_hash_mark.
2328         (type_hash_mark): Delete.
2329         Include gt-tree.h.
2330         * rtl.h (struct mem_attrs): Use gengtype.
2331         * optabs.h (struct optab): Use gengtype.
2332         * optabs.c (expand_binop): Squish signed/unsigned warning.
2333         (mark_optab): Make local, use canonical name, use autogenerated
2334         marker procedure.
2335         (init_optabs): Use canonical name for mark_optab.
2336         (new_optab): Use GGC to allocate optabs.
2337         * ggc.h: Delete mark_optab prototype.
2338         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2339         mem_attrs marker procedure.
2340         * gengtype.c (get_output_file): Include headers in gtype-desc.c
2341         explicitly rather than deducing them from file names.
2342         (write_gc_structure_fields): Handle arrays of structures.
2343         (main): Return non-zero exit code if errors occur during output.
2344         * emit-rtl.c (mem_attrs_mark): Delete.
2345         (init_emit_once): Use canonical name for mem_attrs marker procedure.
2346         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2347         (tree.o): Depend on gt-tree.h.
2348         (GTFILES): Add rtl.h, optabs.h, tree.c.
2349         (gt-tree.h): Add it to s-gtype rule.
2350
2351         * .cvsignore: Ignore gengtype flex/bison generated files.
2352         * Makefile.in (GGC_H): Add gtype-desc.h.
2353         (OBJS): Add gtype-desc.o.
2354         (GEN): Add gengtype.
2355         (STAGESTUFF): Add gengtype.
2356         (varasm.o): Add gt-varasm.h.
2357         (stmt.o): Add gt-stmt.h.
2358         (except.o): Add gt-except.h.
2359         (integrate.o): Add gt-integrate.h.
2360         (GTFILES): New.
2361         Add new rules for new files.
2362         * configure: Regenerate.
2363         * configure.in: Correct defaults.h paths.
2364         * emit-rtl.c (mark_sequence_stack): Delete.
2365         (mark_emit_status): Delete.
2366         (start_sequence): Allocate sequence structures using GGC.
2367         (end_sequence): Allocate sequence structures using GGC.
2368         * except.c: Use gengtype for various structures.  Include
2369         gt-except.h.
2370         * expr.c (mark_expr_status): Delete.
2371         * function.c: Use gengtype for various structures.  Include
2372         gt-function.h.
2373         (mark_function_status): Use standard gt_ggc names for marker functions.
2374         (ggc_mark_struct_function): Likewise.
2375         * function.h: Use gengtype for various structures.
2376         * gengtype-lex.l: New file.
2377         * gengtype-yacc.y: New file.
2378         * gengtype.c: New file.
2379         * gengtype.h: New file.
2380         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
2381         the standard names.  Remove some now-unnecessary prototypes.
2382         * integrate.c: Use gengtype for various structures.  Include
2383         gt-integrate.h.
2384         (mark_hard_reg_initial_vals): Delete.
2385         * integrate.h (mark_hard_reg_initial_vals): Delete.
2386         * stmt.c: Use gengtype for various structures.  Include
2387         gt-stmt.h.
2388         (mark_case_node): Delete.
2389         (mark_goto_fixup): Delete.
2390         (mark_stmt_status): Use standard gt_ggc names for marker functions.
2391         * system.h: Define GTY to empty.   In flex/bison files,
2392         don't poison malloc or realloc, instead just define them to
2393         xmalloc and xrealloc.
2394         * varasm.c: Use gengtype for various structures.  Include
2395         gt-varasm.h.  Use standard gt_ggc names for marker functions.
2396         (mark_pool_constant): Delete.
2397         (mark_varasm_status): Delete.
2398         (decode_rtx_const): #if 0 out non-typesafe hack.
2399
2400         * function.h (free_lang_status): Mark as obsolete.
2401         * function.c (free_lang_status): Mark as obsolete.
2402         * c-decl.c (push_c_function_context): Use GC to allocate and free
2403         struct language_function.
2404         (pop_c_function_context): Likewise.
2405         * c-common.c (mark_c_language_function): Mark struct
2406         language_function.
2407
2408         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2409         Document that the machine_function structures must be allocated
2410         using GC.  Update mark_machine_status documentation.
2411         * function.h: Don't declare free_machine_status.
2412         * function.c (free_machine_status): Don't define.
2413         (free_after_compilation): Don't call free_machine_status.
2414         (ggc_mark_struct_function): Mark f->machine.  Call
2415         mark_machine_status only on non-NULL pointers.
2416         * system.h: Poison free_machine_status.
2417         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2418         struct machine_function.
2419         (xtensa_free_machine_status): Delete.
2420         (override_options): Don't set free_machine_status.
2421         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2422         free_machine_status.
2423         (rs6000_init_machine_status): Use GC on struct machine_function.
2424         (rs6000_free_machine_status): Delete.
2425         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2426         machine_function.
2427         (ia64_mark_machine_status): Likewise.
2428         (ia64_free_machine_status): Delete.
2429         (ia64_override_options): Don't set free_machine_status.
2430         * config/i386/i386.c (override_options): Don't set
2431         free_machine_status.
2432         (ix86_init_machine_status): Use GC on struct machine_function.
2433         (ix86_mark_machine_status): Likewise.
2434         (ix86_free_machine_status): Delete.
2435         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2436         machine_function.
2437         (d30v_mark_machine_status): Likewise.
2438         (d30v_free_machine_status): Delete.
2439         (d30v_init_expanders): Don't set free_machine_status.
2440         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2441         machine_function.
2442         (arm_init_machine_status): Likewise.
2443         (arm_free_machine_status): Delete.
2444         (arm_init_expanders): Don't set free_machine_status.
2445         * config/alpha/alpha.c (override_options): Don't set
2446         free_machine_status.
2447         (alpha_init_machine_status): Use GC on struct machine_function.
2448         (alpha_mark_machine_status): Likewise.
2449         (alpha_free_machine_status): Delete.
2450
2451         * varasm.c (compare_constant): Fix typo.
2452
2453         * varasm.c: Don't include obstack.h.
2454         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2455         (struct rtx_const): Give substructures names, improve formatting.
2456         (struct constant_descriptor): Delete.
2457         (struct constant_descriptor_tree): New, based on constant_descriptor.
2458         (const_hash_table): Is a hash table of trees.
2459         (mark_const_hash_entry): Is used for hashes of trees.  Mark
2460         constant_descriptor_tree structure.
2461         (mark_const_str_htab_1): Mark deferred_string structure.
2462         (compare_constant): Rewrite to compare trees.
2463         (compare_constant_1): Delete.
2464         (record_constant): Delete.
2465         (record_constant_1): Delete.
2466         (output_constant_def): Use struct constant_descriptor_tree.
2467         Don't duplicate trees twice.
2468         (struct constant_descriptor_rtx): New.
2469         (struct pool_constant): Used for rtx constants.
2470         (init_varasm_status): Update for change to struct varasm_status.
2471         (mark_varasm_status): Likewise.
2472         (free_varasm_status): Delete.
2473         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2474         (record_constant_rtx): Likewise.
2475         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2476         (force_const_mem): Likewise.
2477         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2478         * function.c (free_after_compilation): Don't use free_varasm_status.
2479         * function.h: Don't prototype free_varasm_status.
2480
2481         * ggc-common.c (ggc_realloc): Handle X being NULL.
2482
2483         * ggc-common.c (ggc_realloc): New function.
2484         * ggc.h: Prototype it.
2485         * emit-rtl.c (free_emit_status): Delete.
2486         (init_emit): Allocate emit subarrays using GC.
2487         (gen_reg_rtx): Reallocate subarrays using GC.
2488         (init_emit): Use GC to allocate 'struct emit_status' and its
2489         subarrays.
2490         (mark_emit_status): Mark structure and its subarrays.
2491         * stmt.c (free_stmt_status): Delete.
2492         * expr.c (free_expr_status): Delete.
2493         * function.h: Remove prototypes for deleted functions.
2494         * function.c (free_after_compilation): Don't use deleted functions.
2495         Don't call free() on x_parm_reg_stack_loc.
2496         (free_after_parsing): Don't use free_stmt_status.
2497         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2498         (mark_function_status): Mark x_parm_reg_stack_loc.
2499
2500         * varasm.c (init_varasm_status): Use GC to allocate
2501         'struct varasm_status' and its fields x_const_rtx_hash_table
2502         and x_const_rtx_sym_hash_table.
2503         (mark_varasm_status): Mark them.
2504         (free_varasm_status): Use GC to free them.
2505         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2506         (mark_expr_status): Mark the structure itself.
2507         (free_expr_status): Use GC to free the structure.
2508         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2509         (mark_stmt_status): Mark the 'struct stmt_status' itself.
2510         (init_stmt_for_function): Allocate the structure for GC.
2511
2512         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2513         (equate_type_number_to_die): Likewise.
2514         * tree.h (TYPE_SYMTAB_DIE): New macro.
2515         (struct die_struct): Predeclare.
2516         (struct tree_type): Add field symtab.die.   Add a tag
2517         to the union type of field symtab.
2518
2519         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2520         'struct rtvec_def *', not 'struct rtvec_def'.
2521
2522         * function.h (original_arg_vector): Make a real rtvec.
2523         * function.c (ggc_mark_struct_function): Adjust.
2524         * integrate.c (expand_inline_function): Adjust.
2525
2526 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2527
2528         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2529         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2530         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2531         (TARGET_VERSION_CPU): Define according to the
2532         default target.
2533         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2534         TARGET_VERSION_CPU.
2535         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2536         if TARGET_SHMEDIA64.
2537         (LINK_DEFAULT_CPU_EMUL): Define according to the
2538         default target.
2539         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2540         (SUBTARGET_LINK_SPEC): Define.
2541         (LINK_SPEC): Use SH_LINK_SPEC.
2542         (ASM_SPEC): Remove.
2543         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2544         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2545         and TARGET_SHMEDIA64 which abort, for now.
2546         * config/sh/t-netbsd-sh5: New file.
2547         * config/sh/t-netbsd-sh5-32: New file.
2548         * config/sh/t-netbsd-sh5-64: New file.
2549
2550 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2551             Richard Henderson  <rth@redhat.com>
2552
2553         * config/alpha/alpha.c (reg_or_const_int_operand): New.
2554         (some_operand, input_operand): Accept CONST_VECTOR.
2555         (alpha_extra_constraint): Add 'W'.
2556         (alpha_expand_zap_mask): New.
2557         (alpha_expand_builtin_vector_binop): New.
2558         (enum alpha_builtin): New.
2559         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2560         (alpha_init_builtins, alpha_expand_builtin): New.
2561         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2562         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2563         (PREDICATE_CODES): Update.
2564         * config/alpha/alpha-protos.h: Update.
2565         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2566         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2567         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2568         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2569         (movv2si, movv2si_fix, movv2si_nofix): New.
2570         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2571         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2572         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2573         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2574         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2575         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2576         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2577         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2578         builtin_unpkbw, unpkbw): New.
2579         * doc/extend.texi (Alpha Built-in Functions): New.
2580
2581 2002-06-03  Richard Henderson  <rth@redhat.com>
2582
2583         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2584         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2585
2586 2002-06-03  Richard Henderson  <rth@redhat.com>
2587
2588         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2589
2590         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2591         (const0_operand): New.
2592         (reg_or_fp0_operand, fp0_operand): Remove.
2593         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2594         * config/alpha/alpha-protos.h: Update.
2595         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2596         and fp0_operand with reg_or_0_operand and const0_operand.
2597
2598 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2599
2600         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2601
2602 2002-06-03  Roger Sayle  <roger@eyesopen.com>
2603
2604         * gcse.c (cprop_jump): Use single_set to get the pattern
2605         from the setcc argument.
2606
2607 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
2608
2609         * diagnostic.h (diagnostic_count): Move from output_buffer to
2610         diagnostic_context.
2611         (diagnostic_kind_count): Adjust definition.
2612
2613 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
2614
2615         * except.c (except.c): Do not rebuild CFG.
2616         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2617         optimization.
2618
2619 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2620
2621         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2622         * toplev.c: Include cfglahout.h
2623         * Makefile.in (toplev.c): Add dependnecy.
2624
2625 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2626
2627         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2628         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2629         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2630
2631 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2632
2633         * config/ns32k/netbsd.h: Update copyright years.
2634         (TARGET_OS_CPP_BUILTINS): Define.
2635         (CPP_PREDEFINES): Remove.
2636         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2637         (TARGET_CPU_CPP_BUILTINS): Define.
2638
2639 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2640
2641         * emit-rtl.c: Fix formatting.
2642         * errors.h: Likewise.
2643         * except.c: Likewise.
2644         * explow.c: Likewise.
2645         * expmed.c: Likewise.
2646         * expr.c: Likewise.
2647         * expr.h: Likewise.
2648
2649 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2650
2651         * config/h8300/elf.h: Fix formatting.
2652         * config/h8300/rtems.h: Likewise.
2653
2654 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2655
2656         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2657
2658 2002-06-02  Tom Tromey  <tromey@redhat.com>
2659
2660         * fixinc/fixincl.x: Rebuilt.
2661         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2662
2663 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2664
2665 config/i370:
2666         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2667         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2668         * mvs.h: Similarly.
2669         * oe.h: Similarly.
2670
2671 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2672
2673         * final.c (final):  Allow notes to not have computed addresses;
2674         kill no longer needed STACK_REGS ifdef.
2675
2676 2002-06-02  Richard Henderson  <rth@redhat.com>
2677
2678         * gcse.c (bypass_conditional_jumps): Fix typo last change.
2679
2680 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2681
2682         * loop.c (emit_prefetch_instructions): Properly place the address
2683         computation.
2684
2685 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
2686
2687         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2688         (set_block_for_insn): Turn into macro.
2689         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2690         * cfglayout.c (insn_scopes): Kill.
2691         (scope_to_insns_initialize): Do not use insn_scopes.
2692         (scope_to_insns_finalize): Likewise.
2693         (duplicate_insn_chain): Likewise.
2694         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2695         * cfgrtl.c (basic_block_for_insn): Kill.
2696         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2697         (create_basic_block_structure): Use reorder_insns.
2698         (compute_bb_for_insn): Do not use basic_block_for_insn.
2699         (merge_blocks_nomove): Likewise.
2700         (update_bb_for_insn): Likewise.
2701         (verify_flow_info): Likewise.
2702         (set_block_for_insn): Kill.
2703         * combine.c (try_combine): Update gen_rtx_INSN call.
2704         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2705         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2706         scopes and BBs.
2707         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2708         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2709         Clear BB.
2710         (emit_insns_after): Simplify.
2711         (emit_copy_of_insn_after): Copy scope.
2712         * final.c (final_start_function): Lower scopes.
2713         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2714         * integrate.c (copy_insn_list): Cope scopes.
2715         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2716         * loop.c (loop_optimize): Do not care block notes.
2717         * print-rtl.c (print_rtx): Print BB.
2718         * recog.c (apply_change_group): Simplify.
2719         * rtl.c (copy_rtx): Handle 'B'.
2720         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2721         * rtl.h (Field accessors): Update indexes.
2722         * sched-ebb.c (schedule_ebbs): Do not lower notes.
2723         * sched-rgn.c (schedule_insns): Likewise.
2724         * toplev.c (rest_of_compilation): Lower notes.
2725         * unroll.c (unroll_loop): Do not care scoping notes.
2726         (copy_loop_body): Copy scopes.
2727
2728 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2729
2730 config/h8300:
2731         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2732         SUBTARGET_SPEC.
2733         * rtems.h: Similarly.
2734         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2735         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2736         (TARGET_CPU_CPP_BUILTINS): Use.
2737
2738 2002-06-02  Richard Henderson  <rth@redhat.com>
2739
2740         * alias.c: Include target.h.
2741         (mark_constant_function): Use targetm.binds_local_p instead
2742         of checking TREE_PUBLIC ourselves.
2743         * Makefile.in (alias.o): Add TARGET_H.
2744
2745 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2746
2747         * c-lex.c: Update copyright and file description.
2748
2749 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2750
2751         * config/fr30/fr30.h: Update to new CPP macros.
2752
2753 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2754
2755         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2756
2757 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2758             Zack Weinberg <zack@codesourcery.com>
2759
2760         * c-common.c (c_common_init): Override cpplib's default
2761         warn_long_long setting.
2762         * c-lex.c (lex_number): Replace with interpret_integer,
2763         interpret_float, narrowest_unsigned_type and
2764         narrowest_signed_type, taking advantage of the new
2765         cpplib functionality.
2766         * cpperror.c (_cpp_begin_message): If a warning is turned
2767         into an error, avoid printing "warning:".
2768         * cppexp.c (cpp_num_sign_extend): New.
2769         * cppinit.c: Update comment.
2770         * cpplib.h (cpp_num_sign_extend): New.
2771         * tree.h: Update comment.
2772
2773 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2774
2775         * diagnostic.h (struct diagnostic_context):  Add new member
2776         internal_error.
2777         (internal_error_function): Remove declaration.
2778         * diagnostic.c (internal_error_function): Remove definition..
2779         (internal_error): Adjust use.
2780
2781 2002-06-02  Richard Henderson  <rth@redhat.com>
2782
2783         * rtl.h (CC0_P): New.
2784         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
2785         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
2786         (bypass_block): Save old dest block for dump text.
2787         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2788         Allow only true SET insns, not single_set.
2789
2790 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2791
2792         * diagnostic.c (diagnostic_finish): Rename to output_flush.
2793         (clear_disgnostic_info): Rename to output_clear_data.  Use false
2794         instead of 0 for boolean value.
2795         Adjust function call throughout.
2796
2797 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2798
2799         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2800         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2801
2802 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2803
2804         * d30v.h (CPP_PREDEFINES): Replace with
2805         (TARGET_CPU_CPP_BUILTINS): New.
2806
2807 2002-06-02  Roger Sayle  <roger@eyesopen.com>
2808
2809         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2810
2811 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
2812
2813         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2814
2815 2002-06-02  Richard Henderson  <rth@redhat.com>
2816
2817         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2818
2819 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2820
2821         Support for C++ constructors/destructors.
2822         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2823         instead of looping if main() returns.
2824         (asm_file_start): Output global symbols that cause .data and .bss
2825         initialization code to be linked in, unconditionally for now.
2826         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2827         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2828         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2829         (LIBSTDCXX): New.
2830         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2831         (__tablejump__): New.
2832         (__do_copy_data, __do_clear_bss): New.
2833         (__do_global_ctors, __do_global_dtors): New.
2834         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2835         _ctors, _dtors.
2836
2837 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2838
2839         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2840         (CPP_SPEC, CPP_PREDEFINES): Kill.
2841         * c4x/rtems.h (CPP_PREDEFINES): Kill.
2842         (TARGET_OS_CPP_BUILTINS): New.
2843
2844 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
2845
2846         * Makefile.in (tracer.o): New.
2847         * params.def (TRACER_*): New options.
2848         * rtl.h (tracer): Declare.
2849         * timevar.def (TV_TRACER): New.
2850         * toplev.c (dump_file_index): Add DFI_tracer.
2851         (dump_file_info): Add tracer.
2852         (flag_tracer): New.
2853         (lang_indepdenent_options): Add tracer.
2854         (rest_of_compilation): Call tracer.
2855         * tracer.c: New file.
2856         * invoke.texi (-ftracer): Document.
2857         (--param tracer-*): Document.
2858
2859 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
2860
2861         * tree-inline.c (expand_call_inline): Make the statement
2862         expression we generate have a COMPOUND_STMT.
2863
2864 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2865
2866         * gcse.c (cprop_cc0_jump): Function deleted.
2867         (cprop_jump): Take an additional argument which is the possibly
2868         NULL cc setting insn immediately before the conditional jump.
2869         When a MODE_CC set is present, substitute it into the JUMP_INSN
2870         before attempting the constant propagation.
2871         (cprop_insn):  Recognize cc setters followed by conditional jumps
2872         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
2873         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
2874         (find_bypass_set): New function based upon find_avail_set used by
2875         cprop, but finds constant expressions available at the end of
2876         basic blocks.
2877         (bypass_block): New function.  Given a basic block that begins
2878         with a conditional jump and multiple incoming edges, perform
2879         the jump bypass optimization.
2880         (bypass_conditional_jumps): New function.  Call bypass_block with
2881         each suitable basic block in the CFG using a simple single pass.
2882
2883 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2884
2885         * tree.c (real_minus_onep): New function to test for -1.0.
2886         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
2887
2888 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2889
2890         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2891         and "!p && !q" into "(p|q) == 0" under suitable conditions.
2892
2893 2002-06-01  Andreas Jaeger  <aj@suse.de>
2894
2895         * cppexp.c (cpp_classify_number): Cast precission to int for
2896         correct printf format.
2897
2898 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2899
2900         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2901         expected, but don't really exist: atmega83, atmega85, attiny10.
2902         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2903         emulations for all devices.
2904         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2905         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2906
2907 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
2908
2909         * config/h8300/h8300-protos.h: Add a prototype for
2910         h8300_shift_needs_scratch_p.
2911         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2912         * config/h8300/h8300.h (OK_FOR_R): New.
2913         (OK_FOR_S): Likewise.
2914         (OK_FOR_T): Likewise.
2915         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2916         * config/h8300/h8300.md (anonymous shift patterns): Use
2917         constraints R, S, and T.
2918
2919 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2920
2921         * basic-block.h (struct basic_block_def): New field loop_father.
2922         (BB_VISITED): New flag.
2923         (struct loop): New field pred, removed field shared.
2924         (struct loops): New field parray.
2925         (LOOP_EXITS_DOMS): Removed.
2926         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2927         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2928         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2929         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2930         verify_loop_structure): Declare.
2931         * cfg.c (entry_exit_blocks): Initialize loop_father field.
2932         * cfganal.c (dfs_enumerate_from): New function.
2933         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2934         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2935         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2936         flow_loop_dump, flow_loops_dump, flow_loops_free,
2937         flow_loop_tree_node_add, flow_loop_level_compute,
2938         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2939         flow_loop_outside_edge_p): Modified for new infrastructure.
2940         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2941         redirect_edge_with_latch_update, flow_loop_free): New static functions.
2942         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2943         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2944         find_common_loop, verify_loop_structure, loop_latch_edge,
2945         loop_preheader_edge): New functions.
2946         (flow_loops_cfg_dump): Do not show dominators, as this information
2947         does not remain up to date long.
2948         (flow_loops_find): Store results in new format.
2949         * predict.c (propagate_freq, estimate_probability,
2950         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2951         infrastructure.
2952
2953 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
2954
2955         * except.c (nothrow_function_p): Walk epilogue delay list
2956         checking the insn, not the chain for potential throws.
2957
2958 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2959
2960         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2961         (install): Refer to install-cpp directly.
2962         (uninstall-cpp): Folded into uninstall rule.
2963         * configure.in: Delete all code relating to --disable-cpp.
2964         * configure: Regenerate.
2965         * config/t-install-cpp: Delete.
2966
2967 2002-05-31  Richard Henderson  <rth@redhat.com>
2968
2969         * configure.in (HAVE_AS_TLS): Add alpha tests.
2970         * configure: Rebuild.
2971         * config/alpha/alpha.c (TARGET_AS_TLS): New.
2972         (alpha_tls_size, alpha_tls_size_string): New.
2973         (overide_options): Set it.  Always install machine_status hooks.
2974         (input_operand): Accept got tls predicates.
2975         (local_symbol_p): Merge into ...
2976         (local_symbolic_operand): ... here.  Reject tls symbols.
2977         (global_symbolic_operand): Likewise.
2978         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2979         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2980         (tp16_symbolic_operand, tp32_symbolic_operand): New.
2981         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2982         (alpha_encode_section_info): Handle TLS symbols.
2983         (alpha_strip_name_encoding): Likewise.
2984         (alpha_legitimate_address_p): Likewise.
2985         (alpha_legitimize_address): Likewise.
2986         (alpha_expand_mov): Early exit to avoid nop moves.
2987         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
2988         (alpha_init_machine_status, alpha_mark_machine_status,
2989         alpha_free_machine_status): Always define.
2990         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2991         (print_operand, print_operand_address): Add TLS relocs.
2992         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2993         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2994         (TARGET_SWITCHES): Add -mtls-kernel.
2995         (alpha_tls_size, alpha_tls_size_string): New.
2996         (TARGET_OPTIONS): Add -mtls-size=.
2997         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2998         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2999         (ASM_OUTPUT_LABELREF): Skip %.
3000         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3001         (PREDICATE_CODES): Update.
3002         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3003         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3004         UNSPEC_TP, UNSPECV_SET_TP): New.
3005         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3006         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3007         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3008         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3009         (call_value_osf_2_er): Accept anything as op4.
3010         * config/alpha/alpha-protos.h: Update.
3011         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3012
3013 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
3014
3015         * cppinit.c (append_include_chain): Always pay attention to
3016         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
3017         marker on argument.
3018
3019 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
3020
3021         * target.h: Fix formatting.
3022         * timevar.h: Likewise.
3023         * tlink.c: Likewise.
3024         * toplev.c: Likewise.
3025         * toplev.h: Likewise.
3026         * tree.c: Likewise.
3027         * tree-dump.h: Likewise.
3028         * tree.h: Likewise.
3029         * tree-inline.h: Likewise.
3030         * unroll.c: Likewise.
3031         * unwind-dw2.c: Likewise.
3032         * unwind-dw2-fde.c: Likewise.
3033         * unwind-dw2-fde-glibc.c: Likewise.
3034         * unwind-dw2-fde.h: Likewise.
3035         * unwind.h: Likewise.
3036         * unwind-sjlj.c: Likewise.
3037         * varasm.c: Likewise.
3038         * varray.h: Likewise.
3039         * vmsdbg.h: Likewise.
3040         * vmsdbgout.c: Likewise.
3041         * xcoffout.h: Likewise.
3042
3043 2002-05-31  Igor Shevlyakov <igor@microunity.com>
3044
3045         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
3046         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3047
3048 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
3049
3050         * gcc.c (cpp_unique_options): Remove "-d" options.
3051         (cpp_debug_options): New spec string.
3052         (default_compilers): Use it.
3053         * objc/lang-specs.h: Likewise.
3054
3055 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
3056
3057         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
3058         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3059         * gcc/mklibgcc.in: Likewise.
3060         * gcc/config/arc/t-arc: Likewise.
3061         * gcc/configure.in: Likewise.
3062         * gcc/configure: Regenerate.
3063
3064 2002-05-31  Stan Shebs  <shebs@apple.com>
3065             Turly O'Connor  <turly@apple.com>
3066
3067         * c-decl.c (struct binding_level): Change int field n_incomplete
3068         to tree list incomplete_list.
3069         (clear_binding_level): Init field with NULL.
3070         (pushdecl): Add incomplete type to list.
3071         (mark_binding_level): Mark the incomplete list.
3072         (finish_struct): Scan the incomplete list for types instead
3073         of all decls in the current binding level.
3074
3075 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3076
3077         * pa.c (output_millicode_call): Add missing '%' characters.
3078         (output_call): Likewise.
3079
3080 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
3081
3082         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3083         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3084
3085 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
3086
3087         * varasm.c (mark_constant_pool): Walk epilogue delay list
3088         checking the insn, not the chain for potential constants.
3089
3090 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
3091
3092         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3093
3094 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
3095
3096         * i386.c (classify_argument): Properly handle base types.
3097
3098         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3099         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3100         registers.
3101
3102 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3103
3104         * gcse.c (gcse_emit_move_after): New.
3105         (pre_delete, hoist_store): Use it.
3106
3107         * reload1.c (emit_input_reload_insns): Use constrain_operands
3108         instead of constraint_accepts_reg_p to verify optimization.
3109         (constraint_accepts_reg_p): Kill
3110
3111         * reload1.c (reload_cse_delete_noop_set): Kill.
3112         (reload_cse_simplify): use delte_insn_and_edges.
3113
3114 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3115
3116         * cfgloop.c (flow_loops_find): Initialize first and last fields
3117         correctly.
3118
3119 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3120
3121         * c-common.c (builtin_define_std): Correct logic.
3122
3123 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3124
3125         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3126         (output_call): Likewise.
3127
3128 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3129
3130         * pa.c: Move output.h include after tree.h include.
3131         (pa_asm_output_mi_thunk): Constify identifier lab.
3132
3133 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3134
3135         * config/ns32k/ns32k.h: Define named constants for the
3136         bits in target_flags and use them.
3137         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3138
3139 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3140
3141         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3142         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3143         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3144         default scheduling model.
3145         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3146         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3147         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3148         * doc/install.texi (hppa*-*-*): Document default scheduling.
3149
3150 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3151
3152         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3153
3154 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3155
3156         * config.gcc (ns32k-*-netbsd*): Set tm_file to
3157         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3158         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3159         netbsd.h, or netbsd-aout.h.
3160
3161 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3162
3163         * longlong.h (count_trailing_zeros): Add missing \, and clean up
3164         whitespace in __ns32000__ case.
3165
3166 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
3167
3168         * expr.c (expand_expr): Output partially zeroed out vectors with
3169         output_constant_def.
3170
3171 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3172
3173         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3174         (sh-*-netbsdelf*)
3175         (shl*-*-netbsdelf*): New targets.
3176         * config/sh/netbsd-elf.h: New file.
3177         * config/sh/t-netbsd: New file.
3178
3179 2002-05-30  Richard Henderson  <rth@redhat.com>
3180             Eric Botcazou  <ebotcazou@multimania.com>
3181
3182         PR optimization/6822
3183         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3184         to unsigned int for op1 comparisons.  Use gen_int_mode.
3185
3186 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
3187
3188         * expmed.c (const_mult_add_overflow_p): New.
3189         * expr.h: Declare it.
3190         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3191         Don't eliminate the biv if the giv has a constant multiplier and
3192         the rhs argument of the comparison does satisfy the predicate.
3193         Use expand_mult_add to compute the replacement constant.
3194
3195 2002-05-30  Osku Salerma  <osku@iki.fi>
3196
3197         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3198         (c_common_get_alias_set): Handle it.
3199         * doc/extend.texi: Document it.
3200
3201 2002-05-30  Richard Henderson  <rth@redhat.com>
3202
3203         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3204         * toplev.c (process_options): Don't check it.
3205         * doc/tm.texi: Don't document it.
3206         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3207         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3208         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3209         frame pointer optimization if current_function_profile.
3210
3211 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3212
3213         * langhooks.c: Fix formatting.
3214         * langhooks.h: Likewise.
3215         * lcm.c: Likewise.
3216         * libgcc2.c: Likewise.
3217         * lists.c: Likewise.
3218         * local-alloc.c: Likewise.
3219         * loop.c: Likewise.
3220         * loop.h: Likewise.
3221
3222 2002-05-30  Marc Espie <espie@openbsd.org>
3223
3224         * config.gcc (sparc64-*-openbsd*): New.
3225         * config/sparc/openbsd1-64.h: New.
3226         * config/sparc/openbsd64.h: New.
3227
3228 2002-05-30  Jeff Law <law@redhat.com>
3229
3230         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
3231         a dead insn with a REG_RETVAL note when the entire libcall is not
3232         dead and remove the associated REG_LIBCALL note at the same time.
3233
3234 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
3235
3236         * lcm.c (output.h): #include.
3237         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3238         as an ordinary block.
3239         (optimize_mode_switching): Don't pretend that the exit block is
3240         an ordinary block, or handle sucessors of entry block specially.
3241         Instead, split edges from entry block and to exit block, and
3242         put a computing definition on the thus gained post-entry-block,
3243         and a need on the pre-exit-block.
3244
3245 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3246
3247         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3248         * rtl.texi: Document 'B'
3249
3250 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3251
3252         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3253         at run-time.
3254         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3255
3256 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
3257
3258         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3259         const0_rtx instead of NULL_RTX when in error.
3260         (altivec_expand_abs_builtin): Same.
3261         (rs6000_expand_binop_builtin): Same.
3262         (altivec_expand_predicate_builtin): Same.
3263         (altivec_expand_stv_builtin): Same.
3264         (rs6000_expand_ternop_builtin): Same.
3265         (altivec_expand_builtin): Same.
3266
3267 2002-05-29  David S. Miller  <davem@redhat.com>
3268
3269         * rtl.h (clear_emit_caches): Delete.
3270         * integrate.c (output_inline_function): Don't call it.
3271         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3272         (clear_emit_caches): Delete definition.
3273         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3274
3275 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
3276
3277         * config/mmix/mmix.c: Include real.h.
3278         (mmix_constant_address_p): Remove redundant test before switch.
3279
3280 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3281
3282         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3283         only if not already defined.
3284
3285 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3286
3287         * config/h8300/h8300-protos.h: Remove prototypes for
3288         ok_for_bclr and small_power_of_two.
3289         * config/h8300/h8300.c (small_power_of_two): Remove.
3290         (ok_for_blcr): Likewise.
3291         (fix_bit_operand): Make WHAT deal with an integer instead of a
3292         constraint character.
3293         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3294         (CONST_OK_FOR_P): Likewise.
3295         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3296         CONST_OK_FOR_P any more.
3297         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3298         of fix_bit_operand.
3299         (iorqi3): Likewise.
3300         (xorqi3): Likewise.
3301
3302 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3303
3304         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3305         (CPP_PREDEFINES): Make sure this is undefined.
3306         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3307         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
3308         or -U__MIPSEB__ before defining one or the other.  Instead,
3309         use %(subtarget_endian_default) if neither -EB nor -EL are
3310         specified.
3311         (SUBTARGET_EXTRA_SPECS): Define.
3312         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
3313         %(netbsd_cpp_spec).
3314
3315 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3316
3317         * doc/md.texi (Patterns): Note pattern condition pitfall
3318         for unnamed insn.
3319
3320 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
3321
3322         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3323         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
3324         ternary operations from here...
3325         (rs6000_expand_builtin): ...to here.
3326         New argument expandedp.
3327         Change all instances of altivec_expand_binop_builtin to
3328         rs6000_expand_binop_builtin.
3329         (altivec_expand_unop_builtin): Rename to
3330         rs6000_expand_unop_builtin.
3331         (altivec_expand_binop_builtin): Rename to
3332         rs6000_expand_binop_builtin.
3333         (altivec_expand_ternop_builtin): Rename to
3334         rs6000_expand_ternop_builtin.
3335
3336 2002-05-29  Richard Henderson  <rth@redhat.com>
3337
3338         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3339         (TARGET_BI_ARCH): Likewise.
3340         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3341         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3342         (TARGET_64BIT_DEFAULT): Default to 0.
3343         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3344
3345 2002-05-29  Richard Henderson  <rth@redhat.com>
3346
3347         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3348         (get_pc_thunk_name): New.
3349         (output_set_got): Use it.
3350         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3351         into linkonce sections.
3352
3353 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3354
3355         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3356         (CPP_PREDEFINES): Make sure this is undefined.
3357         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3358         (CPP_SUBTARGET_SPEC): Don't provide different versions for
3359         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
3360         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3361         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
3362         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3363         (CPP_PREDEFINES): Make sure this is undefined.
3364         (SUBTARGET_EXTRA_SPECS): Define.
3365         (CPP_SPEC): Use %(netbsd_cpp_spec).
3366
3367 2002-05-29  Jeff Law <law@redhat.com>
3368
3369         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3370
3371         * flow.c (propagate_one_insn): Do not remove a dead insn if it
3372         contains a REG_RETVAL note.
3373
3374         * haifa-sched (sched_analyze): Remove another useless clearing
3375         of SCHED_GROUP_P I missed yesterday.
3376
3377         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3378         * pa.c (pa_asm_output_mi_thunk): New function.
3379         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3380
3381 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3382             Marek Michalkiewicz  <marekm@amelek.gda.pl>
3383
3384         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3385         (avr_asm_only_p): Make non-static.
3386         (enum avr_arch): Remove.
3387         (avr_arch_types): New.
3388         (avr_mcu_types): Update.
3389         (avr_override_options): Use avr_arch_types table instead of switch.
3390         * avr.h (CPP_PREDEFINES): Die.
3391         (avr_base_arch_macro, avr_extra_arch_macro): New.
3392         (TARGET_CPU_CPP_BUILTINS): New.
3393         (CPP_SPEC, EXTRA_SPECS): Simplify.
3394         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3395         CPP_AVR5_SPEC): Die.
3396
3397 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3398
3399         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3400         NETBSD_OS_CPP_BUILTINS_AOUT.
3401         (SUBTARGET_EXTRA_SPECS): Define.
3402         (CPP_SPEC): Use %(netbsd_cpp_spec).
3403
3404 2002-05-29  Richard Henderson  <rth@redhat.com>
3405
3406         * config/i386/i386.c (ix86_output_function_epilogue): New.
3407         (TARGET_ASM_FUNCTION_EPILOGUE): New.
3408         (pic_label_name): Remove.
3409         (pic_labels_used): New.
3410         (ix86_asm_file_end): Emit one pc load stub for each register used.
3411         (output_set_got): Generate deep pc load to any register.
3412         (ix86_select_alt_pic_regnum): New.
3413         (ix86_save_reg): Don't save pic register if we can find a valid
3414         call-clobbered replacement.
3415         (ix86_expand_prologue): If we found a valid replacement, renumber
3416         pic_offset_table_rtx.
3417         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3418         pic_offset_table_rtx after reload.
3419         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3420         * config/i386/i386.md (set_got): Make insn, not expander.
3421         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3422
3423 2002-05-29  Richard Henderson  <rth@redhat.com>
3424
3425         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3426         alignment for alloca.
3427
3428 2002-05-29  Richard Henderson  <rth@redhat.com>
3429
3430         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3431         (print_operand_address): Only add rip for symbolic addresses
3432         for which we do not have another relocation type.
3433
3434 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3435
3436         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3437         (EXTRA_SPECS): Add netbsd_cpp_spec.
3438         (CPP_SPEC): Use %(netbsd_cpp_spec).
3439         (CPP_PREDEFINES): Remove.
3440         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3441         (EXTRA_SPECS): Define.
3442         (CPP_SPEC): Use %(netbsd_cpp_spec).
3443         (CPP_PREDEFINES): Remove.
3444
3445 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3446
3447         PR preprocessor/6844
3448         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3449         NUL.
3450
3451 2002-05-29  Eric Christopher  <echristo@redhat.com>
3452
3453         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3454         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3455
3456 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
3457
3458         * config/fr30/fr30.md: Remove previous restriction on splits.
3459         Enforce conformance through gen_lowpart and cont_int_operand.
3460         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
3461         as the assembler does not support ".bss".
3462
3463 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3464
3465         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3466         (CPP_PREDEFINES): Remove.
3467         (SUBTARGET_EXTRA_SPECS): Define.
3468         (CPP_SPEC): Use %(netbsd_cpp_spec).
3469         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3470         (CPP_PREDEFINES): Remove.
3471         (SUBTARGET_EXTRA_SPECS): Define.
3472         (CPP_SPEC): Use %(netbsd_cpp_spec).
3473         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3474         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3475         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3476         Add netbsd_cpp_spec.
3477         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3478
3479 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3480             Zack Weinberg <zack@codesourcery.com>
3481
3482         * cppexp.c (cpp_num): Move to cpplib.h.
3483         (CPP_ERROR): Remove.
3484         (interpret_float_suffix, interpret_int_suffix): New.
3485         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3486         (cpp_classify_number, cpp_interpret_integer): New.
3487         (interpret_number): Remove.
3488         (eval_token): Update to use new routines.
3489         * cpphash.h (cpp_num_part): Move to cpplib.h.
3490         * cppinit.c (cpp_post_options): Set warn_long_long.
3491         * cpplib.h (struct cpp_options): Add warn_long_long.
3492         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3493         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3494         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3495         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3496         cpp_interpret_integer): New.
3497
3498 2002-05-29  Joel Sherrill <joel@OARcorp.com>
3499
3500         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3501
3502 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3503
3504         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3505         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3506         (CPP_SUBTARGET_SPEC): Define.
3507         (SUBTARGET_EXTRA_SPECS): Define.
3508         (CPP_SPEC): Remove.
3509
3510 2002-05-29  Chris Lattner  <sabre@nondot.org>
3511
3512         * ssa.c (rename_insn_1): Rename uses of undefined registers to
3513         prevent confusion if/when the register is defined.
3514
3515 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3516
3517         PR target/6838
3518         * config/cris/cris.md: Fix typos and thinkos in comments.
3519         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3520         second alternative.
3521         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3522         ("*mov_sideqi_mem"): Similar, but for operand 3.
3523         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3524         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3525         Remove spurious mode specifier on operand 2.
3526
3527 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3528
3529         * config/h8300/h8300-protos.h: Remove the prototype for
3530         o_operand.
3531         Add prototypes for single_one_operand and single_zero_operand.
3532         * config/h8300/h8300.c (o_operand): Remove.
3533         (single_one_operand): New.
3534         (single_zero_operand): Likewise.
3535         (print_operand): For 'V' operand, and the operand with 0xff.
3536         For 'V' and 'W' operands, do not and the bit position with 7.
3537         * config/h8300/h8300.md (various anonymous patterns): Replace
3538         use of exact_log2 with single_one_operand/single_zero_operand.
3539
3540 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3541
3542         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3543
3544 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3545
3546         * config/s390/s390.c (legitimate_pic_operand_p): Do not
3547         accept symbolic LARL operands.
3548         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
3549         epilogue insns.
3550
3551 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
3552
3553         * config/s390/s390.md (cmpstr_64/31): Mark whole
3554         input registers as used.
3555
3556 2002-05-28  Richard Henderson  <rth@redhat.com>
3557
3558         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3559         not current_function_uses_pic_offset_table and
3560         current_function_uses_const_pool; examine current_function_profile.
3561         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
3562         input to blockage if needed.
3563         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3564         (legitimize_pic_address): Likewise.  Set regs_ever_live for
3565         pic_offset_table_rtx when invoked during reload.
3566         * config/i386/i386.h (FINALIZE_PIC): Remove.
3567         * config/i386/i386.md (tablejump): Reformat.  Do not set
3568         current_function_uses_pic_offset_table.
3569         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3570         (blockage): Accept anything as operand 0.
3571
3572 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
3573
3574         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3575         common CPP built-ins for all NetBSD a.out targets.
3576         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3577         common CPP built-ins for all NetBSD ELF targets.
3578         * config/netbsd.h: Add missing notice.
3579         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3580         for all NetBSD targets.
3581         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3582         for all NetBSD targets using an LP64 code model.
3583         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3584         NetBSD targets.
3585
3586 2002-05-28  Richard Henderson  <rth@redhat.com>
3587
3588         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3589         update if UPDATE_LIFE_LOCAL.
3590
3591 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3592
3593         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3594
3595 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3596                           Jason R. Thorpe <thorpej@wasabisystems.com>
3597
3598         config/sh reorganization to factor out endianness and coff:
3599
3600         * config/sh/little.h: New file.
3601         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3602         defined, define to 0 to select big-endian.
3603         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
3604         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3605         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3606         * config/sh/t-be: New file.
3607         * config/sh/t-le: New file.
3608
3609         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3610         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3611         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3612         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3613         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3614         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3615         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3616         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3617         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3618         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3619         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3620         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3621         (LINK_SPEC): Define to SH_LINK_SPEC.
3622         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3623         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3624         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3625         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3626         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3627         * config/sh/coff.h: New file.
3628         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3629         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3630         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3631         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3632         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3633         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3634         (PTRDIFF_TYPE): Likewise.
3635         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3636         (CPP_PREDEFINES): Don't define.
3637         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3638         (LINK_SPEC): Define to SH_LINK_SPEC.
3639         (LINK_EMUL_PREFIX): Redefine.
3640         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3641         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3642         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3643         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3644         (TARGET_OS_CPP_BUILTINS): Define.
3645         (TARGET_DEFAULT): Redefine.
3646         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3647         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3648         (LINK_SPEC): Don't redefine.
3649         (LINK_DEFAULT_CPU_EMUL): Redefine.
3650         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3651         * sh.c (sh_asm_named_section): Don't declare / define.
3652         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3653         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3654         (sh64-*-elf* tm_file): Likewise.
3655         (sh-*-rtemself* tm_file): Likewise.
3656         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
3657         (sh-*-linux* tmake_file): Add sh/t-le.
3658         (sh-*-rtems* tm_file): Add sh/coff.h
3659         (sh-*-* tm_file): Likewise.
3660
3661 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3662
3663         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3664         CONSTANT_POOL_ADDRESS_P.
3665
3666         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3667
3668 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
3669             Jeff Law <law@redhat.com>
3670
3671         * optabs.c (expand_binop): Fix nwords sign warnings.
3672         generate pseudo for add_optab.
3673
3674         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3675         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3676
3677 2002-05-28      Marc Espie <espie@openbsd.org>
3678
3679         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
3680         inherited from gas.h.
3681         (ASM_QUAD):  Undef.  OpenBSD does not support it.
3682
3683 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
3684
3685         * doc/install.texi (binaries): Change mingw binaries
3686         link to www.mingw.org.
3687
3688 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3689
3690         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3691
3692 2002-05-28  Richard Henderson  <rth@redhat.com>
3693
3694         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3695         bottom alignment for leaf functions.
3696
3697 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3698
3699         * config/pa/milli32.S, config/pa/lib1funcs.asm,
3700         config/sparc/sol2-g1.asm: Delete unused files.
3701
3702 2002-05-28  Richard Henderson  <rth@redhat.com>
3703
3704         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3705
3706         * flow.c (calculate_global_regs_live): Rename call_used to
3707         invalidated_by_call.  Initialize from regs_invalidated_by_call
3708         instead of call_used_regs.
3709
3710         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3711         DECL_EXTERNAL.
3712
3713 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3714
3715         * tree.h: Don't include real.h.
3716         Forward-declare struct realvaluetype.
3717         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3718         contain it.
3719         (TREE_REAL_CST_PTR): New accessor.
3720         (TREE_REAL_CST): Update.
3721         * real.h: Include machmode.h.
3722         (realvaluetype): Make it struct realvaluetype, not a typedef.
3723         (build_real): Prototype here.
3724
3725         * tree.c: Include real.h.
3726         (build_real): Allocate the REAL_VALUE_TYPE as a separate
3727         object in GC memory, set TREE_REAL_CST_PTR to point to it.
3728         (build_real_from_int_cst): Use build_real.
3729         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3730         REAL_CST.
3731
3732         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3733         fold-const.c, print-tree.c, real.c: Include real.h.
3734         * Makefile.in: Update dependency lists.
3735
3736 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3737
3738         * basic-block.h (last_basic_block): Declare.
3739         (expunge_block_nocompact): Declaration removed.
3740         (compact_blocks): Declare.
3741         * cfg.c (last_basic_block): New variable.
3742         (expunge_block_nocompact): Removed.
3743         (expunge_block): Do not compact basic blocks.
3744         (compact_blocks): New.
3745         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3746         longer change.
3747         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3748         last_basic_block.
3749         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3750         real positions of blocks.
3751         (delete_unreachable_blocks): Simplified -- quadratic behavior now
3752         cannot occur.
3753         (cleanup_cfg): Compact blocks.
3754         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3755         basic_block_info varray.
3756         (flow_delete_block): Comment update.
3757         (back_edge_of_syntactic_loop_p): Modify position check code.
3758         (verify_flow_info): Update checking.
3759         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3760         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3761         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3762         indices no longer change.
3763         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3764         last_basic_block.
3765         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3766         * profile.c (branch_prob): Compact blocks.
3767         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3768         last_basic_block.
3769
3770 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3771
3772         * config/h8300/h8300.md (two anonymous patterns): New.
3773
3774 2002-05-28  David S. Miller  <davem@redhat.com>
3775
3776         * config/sparc/sparc.md (cpu): Tidy.
3777         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3778         'trap'.
3779         (in_call_delay): Delete reference to 'return' type.
3780         (eligible_for_return_delay, in_return_delay, define_delay
3781         referencing those): Delete.
3782         (rest of file): Use new type attributes as appropriate.
3783         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3784         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3785         * config/sparc/ultra1_2.md (us1_single): New reservation.
3786         (us1_ialuX): Likewise.
3787         * config/sparc/ultra3.md (us3_single): Likewise.
3788         (us3_ialuX): Likewise.
3789         (us3_imul, us3_idiv): Tweak.
3790
3791 2002-05-28  Richard Henderson  <rth@redhat.com>
3792
3793         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3794         STRING_CST.
3795
3796 2002-05-28  Richard Henderson  <rth@redhat.com>
3797
3798         * config.gcc: Obsolete mn10200.
3799
3800 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3801
3802         * cppexp.c (interpret_number): Optimize for single-digit
3803         and less-than-half-precision cases.
3804         (num_trim, num_positive, num_div_op): Cast constants.
3805
3806 2002-05-27  Bo Thorsen  <bo@suse.de>
3807
3808         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3809         3.1 branch. The file was made by Jakub Jelinek.
3810         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3811         support so multilib doesn't break. And don't define this at all
3812         when -Dinhibit_libc is used.
3813         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3814         * config/i386/t-linux64: Implement full multilib support. Patch
3815         originally done by Andreas Jaeger and Jakub Jelinek.
3816
3817 2002-05-27  Roger Sayle  <roger@eyesopen.com>
3818
3819         * c-common.c: Add support for __attribute__((nothrow)) to specify
3820         that a function cannot throw an exception (using TREE_NOTHROW).
3821         (handle_nothrow_attribute): New function to process this attribute.
3822
3823         * doc/extend.texi: Document the new nothrow function attribute.
3824
3825 2002-05-27  H.J. Lu  (hjl@gnu.org)
3826
3827         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3828         (num_positive): Likewise.
3829         (num_div_op): Likewise.
3830
3831 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3832
3833         * c-common.c (c_common_init): Always use intmax_t.
3834
3835 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3836
3837         * c-common.c (c_common_init): Use intmax_t for now.
3838
3839 2002-05-24  Andrew Haley  <aph@redhat.com>
3840
3841         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3842         if T is a boolean type.
3843
3844 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3845
3846         * basic-block.h (last_basic_block): Defined as synonym for
3847         n_basic_blocks.
3848         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3849         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3850         flow_dfs_compute_reverse_init): Replaced relevant occurences of
3851         n_basic_blocks with last_basic_block.
3852         * cfgbuild.c (make_edges): Likewise.
3853         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3854         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3855         * combine.c (combine_instructions): Likewise.
3856         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3857         iterative_dataflow_bitmap): Likewise.
3858         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3859         calc_idoms, idoms_to_doms): Likewise.
3860         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3861         Likewise.
3862         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3863         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3864         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3865         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3866         delete_null_pointer_checks, compute_code_hoist_vbeinout,
3867         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3868         compute_store_table, build_store_vectors): Likewise.
3869         * haifa-sched.c (sched_init): Likewise.
3870         * ifcvt.c (if_convert): Likewise.
3871         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3872         pre_edge_lcm, compute_available, compute_nearerout,
3873         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3874         Likewise.
3875         * predict.c (estimate_probability, process_note_prediction,
3876         note_prediction_to_br_prob): Likewise.
3877         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3878         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3879         * regrename.c (copyprop_hardreg_forward): Likewise.
3880         * resource.c (init_resource_info): Likewise.
3881         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3882         init_regions, schedule_insns): Likewise.
3883         * ssa-ccp.c (ssa_const_prop): Likewise.
3884         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3885         * ssa.c (compute_dominance_frontiers,
3886         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3887
3888         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3889         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3890         sizes consistently.
3891
3892 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3893
3894         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3895         new.
3896         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3897         hoist_insn_after, hoist_insn_to_edge): New.
3898
3899 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
3900
3901         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3902         (PROP_FINAL): Include.
3903         * flow.c (life_analysis, update_life_info,
3904         init_propagate_block_info, mark_set_1, mark_used_rgs):
3905         Support SCAN_DEAD_STORE.
3906
3907 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3908
3909         * c-common.c (c_common_init): Set CPP arithmetic precision.
3910         * cppexp.c (cpp_num_part): Move typedef ...
3911         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3912         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3913         (sanity_checks): Update.
3914
3915 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
3916
3917         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3918         (mkheaders): New rule.
3919         (install-mkheaders): New rule.
3920         * configure.in (all_outputs): Add mkheaders.
3921         * configure: Regenerate.
3922         * mkheaders.in: New file.
3923
3924 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
3925
3926         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3927
3928 2002-05-26  Andreas Jaeger  <aj@suse.de>
3929
3930         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3931
3932 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3933
3934         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3935         right_shift): Remove.
3936         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3937         HIGH_PART): New.
3938         (struct op): Use cpp_num.
3939         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3940         num_part_mul, num_unary_op, num_binary_op, num_negate,
3941         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3942         num_div_op, num_lshift, num_rshift, append_digit): New.
3943         (interpret_number, parse_defined, eval_token, reduce): Update
3944         for two-integer arithmetic.
3945         (binary_handler): New typedef.
3946         (optab): Update.
3947         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3948         (_cpp_parse_expr, reduce): Update to handle two-integers.
3949         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3950
3951 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3952
3953         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3954         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3955         branch insn into account, do not assume 1.
3956         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
3957         over single word insn.  Handle upper half of I/O space too.
3958         * config/avr/avr.md (*sbrx_branch): Use it.
3959         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3960         (*sbix_branch, *sbix_branch_bit7): Likewise.
3961         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3962         Use RTL peepholes to optimize register operand sign tests.
3963
3964 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3965
3966         * config/avr/avr.c (avr_asm_only_p): New variable.
3967         (avr_override_options): Set it here if AVR1.
3968         (asm_file_start): Test it here, report an error if set.
3969
3970 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
3971
3972         * alias.c: Fix formatting.
3973         * attribs.c: Likewise.
3974         * bb-reorder.c: Likewise.
3975         * bitmap.c: Likewise.
3976         * bitmap.h: Likewise.
3977         * builtins.c: Likewise.
3978
3979 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
3980
3981         * reload.c (find_valid_class): Accept new argument DEST,
3982         choose class accordingly.
3983         (push_reload): Update callers.
3984
3985 2002-05-26  Andreas Jaeger  <aj@suse.de>
3986
3987         * combine.c (combine_instructions): Do not indent #if for
3988         traditional C.
3989
3990 2002-05-25  Richard Henderson  <rth@redhat.com>
3991
3992         * c-pragma.c (apply_pragma_weak): Convert value identifier to
3993         string for decl_attributes.
3994         (handle_pragma_weak): Call assemble_alias if we're modifying
3995         an existing decl.
3996
3997 2002-05-25  Richard Henderson  <rth@redhat.com>
3998
3999         PR target/6788
4000         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4001         using rtl instead of fprintf.
4002         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4003         * config/sparc/sparc-protos.h: Update.
4004
4005 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4006
4007         * Makefile.in (C_COMMON_H): Fix.
4008         Update other targets.
4009         * c-common.c: Don't include c-lex.h.
4010         (builtin_define_with_value): Make static and prototype.
4011         (builtin_define_std): Move from c-lex.h.
4012         * c-common.h (init_c_lex): Move from c-lex.h.
4013         * c-decl.c: Don't include c-lex.h.
4014         (make_pointer_declarator): Move from c-parse.in.
4015         * c-lex.c: Don't include c-lex.h.
4016         * c-lex.h: Remove.
4017         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4018         (make_pointer_declarator): Move to c-decl.c.
4019         * c-pragma.c: Don't include c-lex.h.
4020         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4021         * c-tree.h (make_pointer_declarator): New.
4022 doc:
4023         * passes.texi, tm.texi: Update.
4024 objc:
4025         * Make-lang.in: Update and correct.
4026         * objc-act.c: Don't include c-lex.h or cpplib.h.
4027 treelang:
4028         * treetree.c: Don't include c-lex.h.
4029 config:
4030         * darwin-c.c: Don't include c-lex.h.
4031         * c4x/c4x-c.c: Don't include c-lex.h.
4032         * c4x/t-c4x: Update.
4033         * i370/i370-c.c: Don't include c-lex.h.
4034         * i370/t-i370: Update.
4035         * i960/i960-c.c: Don't include c-lex.h.
4036         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4037         * i960/t-960bare: Update.
4038         * i960/t-vxworks: Update.
4039         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4040         * rs6000/t-darwin: Update.
4041         * rs6000/t-rs6000-c-rule: Update.
4042         * v850/v850-c.c: Don't include c-lex.h.
4043         * v850/v850.c: Don't include c-lex.h or cpplib.h.
4044
4045
4046 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4047
4048         * tree.def: Fix typos.
4049         * doc/install.texi: Likewise.
4050
4051 2002-05-25  Richard Henderson  <rth@redhat.com>
4052
4053         * configure.in (HAVE_AS_TLS): Add ia64 test.
4054         * configure: Rebuild.
4055         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4056         (override_options): Set it.
4057         (TARGET_HAVE_TLS): New.
4058         (sdata_symbolic_operand): Look for 's'.
4059         (tls_symbolic_operand): New.
4060         (ia64_expand_load_address): Abort for tls symbols.
4061         (gen_tls_get_addr): New.
4062         (gen_thread_pointer): New.
4063         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
4064         (rtx_needs_barrier): Add new unspecs.
4065         (ia64_encode_section_info): Handle tls symbols.
4066         (ia64_strip_name_encoding): Strip two encoding chars.
4067         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4068         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4069         (TARGET_OPTIONS): Add tls-size.
4070         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4071         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4072         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4073         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4074         (movsf, movdf): Likewise.
4075         (movdi_symbolic): Use match_scratch.  Don't split if we won't
4076         have a scratch availiable.
4077         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4078         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4079         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4080         * config/ia64/ia64-protos.h: Update.
4081         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4082         sdata_symbolic_operand.
4083         (ASM_OUTPUT_LABELREF): Strip two characters.
4084
4085 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4086
4087         * combine.c (simplify_set): Remove an unnecessary subreg.
4088
4089 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4090
4091         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4092
4093         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4094
4095 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4096
4097         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
4098
4099 2002-05-25  Roger Sayle  <roger@eyesopen.com>
4100
4101         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4102         (cond (compare x y) 0) into the equivalent (cond x y).
4103
4104 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4105
4106         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
4107
4108 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
4109
4110         * config.gcc: Remove all stanzas for previously obsoleted
4111         systems.  Where necessary, add explicit error stanzas to
4112         prevent removed systems from being misidentified as something
4113         else.  Begin a fresh obsoletions list, with the systems that
4114         were reprieved last round.
4115         * doc/install.texi: Remove all mention of dead targets.
4116         * fixinc/mkfixinc.sh: Likewise.
4117
4118         * config/arm/arm.h: Bit 31 of target_flags is no longer
4119         reserved.
4120
4121         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4122         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4123         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4124         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4125         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4126         config/alpha/osf12.h, config/alpha/osf2or3.h,
4127         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4128         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4129         config/clipper/clipper-protos.h, config/clipper/clipper.c,
4130         config/clipper/clipper.h, config/clipper/clipper.md,
4131         config/clipper/clix.h, config/convex/convex-protos.h,
4132         config/convex/convex.c, config/convex/convex.h,
4133         config/convex/convex.md, config/convex/fixinc.convex,
4134         config/convex/proto.h, config/elxsi/elxsi-protos.h,
4135         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4136         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4137         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4138         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4139         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4140         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4141         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4142         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4143         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4144         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4145         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4146         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4147         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4148         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4149         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4150         config/m68k/altos3068.h, config/m68k/apollo68.h,
4151         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4152         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4153         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4154         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4155         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4156         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4157         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4158         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4159         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4160         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4161         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4162         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4163         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4164         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4165         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4166         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4167         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4168         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4169         config/mips/dec-osf1.h, config/mips/elflorion.h,
4170         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4171         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4172         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4173         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4174         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4175         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4176         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4177         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4178         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4179         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4180         config/ns32k/sequent.h, config/ns32k/tek6000.h,
4181         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4182         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4183         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4184         config/sparc/rtems.h, config/we32k/we32k-protos.h,
4185         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4186         Delete file.
4187
4188 2002-05-24  Richard Henderson  <rth@redhat.com>
4189
4190         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4191         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4192         * config/i386/i386.c (tls_model_chars): Add leading space.
4193         (tls_symbolic_operand): Don't bias by 1.
4194         (legitimize_address): Don't unbias by 1.
4195
4196 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4197
4198         * lcm.c (optimize_mode_switching): Change bb used as indices
4199         to bb->index.
4200
4201 2002-05-24  Richard Henderson  <rth@redhat.com>
4202
4203         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4204         of update_life_info_in_dirty_blocks.
4205
4206 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
4207
4208         PR other/6782
4209         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4210
4211 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4212
4213         PR preprocessor/6780
4214         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4215
4216 2002-05-24  Jim Blandy  <jimb@redhat.com>
4217
4218         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4219         entry with a type code of zero, marking the end of the compilation
4220         unit's macro info.
4221
4222 2002-05-24  Richard Henderson  <rth@redhat.com>
4223
4224         * varasm.c (asm_output_bss): Always output one byte.
4225         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4226
4227 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4228
4229         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4230         namespace.
4231
4232 2002-05-24  Andreas Jaeger  <aj@suse.de>
4233
4234         * ggc-page.c (alloc_page): Cast variables of type size_t to
4235         unsigned long, adjust printf format string.
4236         (ggc_alloc): Likewise.
4237         (ggc_print_statistics): Likewise.
4238         (ggc_print_statistics): Correct printf format string for SCALE to
4239         use unsigned long.
4240
4241 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
4242
4243         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4244
4245 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
4246             Zack Weinberg     <zack@codesourcery.com>
4247
4248         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4249         quoted strings.
4250         * dwarf2out.c (lookup_filename): Properly quote filename in .file
4251         directive in assembly file.
4252         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4253         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4254         * config/pj/pj.h (ASM_FILE_START): Likewise.
4255         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4256         * config/avr/avr.c (asm_file_end): Likewise.
4257         * toplev.c (output_quoted_string): Handle possibly signed plain
4258         char.
4259         * toplev.h (output_clean_symbol_name): Declare
4260         * toplev.c (output_clean_symbol_name): Define.
4261         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4262         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4263
4264 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
4265
4266         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4267
4268 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
4269
4270         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4271         of size of unsigned.
4272
4273 2002-05-23  Richard Henderson  <rth@redhat.com>
4274
4275         * configure.in (HAVE_AS_TLS): New test.
4276         * config.in, configure: Rebuild.
4277         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4278         (ix86_tls_dialect_string, ix86_tls_dialect): New.
4279         (override_options): Set it.
4280         (tls_model_chars, tls_symbolic_operand): New.
4281         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4282         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4283         (local_exec_symbolic_operand): New.
4284         (get_pic_label_name): Merge into output_set_got.
4285         (ix86_asm_file_end): Emit pic_label_name if defined.
4286         (legitimate_constant_p, constant_address_p): New.
4287         (legitimate_pic_operand_p): New.
4288         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4289         (legitimate_address_p): Likewise.
4290         (ix86_encode_section_info): Rename from i386_; handle tls decls.
4291         (ix86_strip_name_encoding): New.
4292         (get_thread_pointer): New.
4293         (legitimize_address): Handle tls symbols.
4294         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4295         Remove UNSPEC_PLT.
4296         (struct machine_function): Add some_ld_name.
4297         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4298         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
4299         (output_addr_const_extra): New.
4300         (maybe_get_pool_constant): New.
4301         (ix86_split_to_parts): Use it.
4302         (ix86_expand_move): Handle tls symbols.
4303         (ix86_tls_get_addr): New.
4304         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4305         (TARGET_OPTIONS): Add tls-dialect.
4306         (CONSTANT_ADDRESS_P): Use new out-of-line function.
4307         (LEGITIMATE_CONSTANT_P): Likewise.
4308         (LEGITIMATE_PIC_OPERAND_P): Likewise.
4309         (TARGET_STRIP_NAME_ENCODING): New.
4310         (ASM_OUTPUT_LABELREF): New.
4311         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4312         (OUTPUT_ADDR_CONST_EXTRA): New.
4313         (PREDICATE_CODES): Update.
4314         (ix86_tls_dialect, ix86_tls_dialect_string): New.
4315         * config/i386/i386.md: Regroup and renumber unspec constants.
4316         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4317         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4318         (tls_global_dynamic, tls_local_dynamic_base): New.
4319         (tls_local_dynamic_once): New.
4320         * config/i386/i386-protos.h: Update.
4321
4322 2002-05-23  Richard Henderson  <rth@redhat.com>
4323
4324         * genemit.c (gen_insn): Print file:lineno comment before function.
4325         (main): likewise.
4326         * gensupport.c (struct queue_elem): Add filename member.
4327         (queue_pattern): Initialize it; update all callers.
4328         (process_include): Don't free filename.
4329         (read_md_rtx): Set read_rtx_filename.
4330
4331 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
4332
4333         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
4334
4335 2002-05-23  Richard Henderson  <rth@redhat.com>
4336
4337         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4338
4339 2002-05-23  Richard Henderson  <rth@redhat.com>
4340
4341         * doc/extend.texi (C++98 Thread-Local Edits): Update with
4342         commentary from Mark.
4343
4344 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4345
4346         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4347         Use FOR_EACH_BB macros to iterate over basic block chain.
4348         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4349         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4350         Likewise.
4351         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4352         find_unreachable_blocks, create_edge_list, verify_edge_list,
4353         remove_fake_edges, add_noreturn_fake_exit_edges,
4354         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4355         Likewise.
4356         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4357         find_sub_basic_blocks): Likewise.
4358         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4359         Likewise.
4360         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4361         Likewise.
4362         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4363         Likewise.
4364         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4365         commit_edge_insertions, commit_edge_insertions_watch_calls,
4366         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4367         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4368         * conflict.c (conflict_graph_compute): Likewise.
4369         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4370         df_modified_p, df_refs_unlink, df_dump): Likewise.
4371         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4372         * final.c (compute_alignments): Likewise.
4373         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4374         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4375         count_or_remove_death_notes): Likewise.
4376         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4377         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4378         classic_gcse, compute_transp, cprop, compute_pre_data,
4379         compute_transpout, invalidate_nonnull_info,
4380         delete_null_pointer_checks_1, delete_null_pointer_checks,
4381         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4382         compute_store_table, build_store_vectors, store_motion): Likewise.
4383         * global.c (global_conflicts, mark_elimination): Likewise.
4384         * graph.c (print_rtl_graph_with_bb): Likewise.
4385         * haifa-sched.c (sched_init): Likewise.
4386         * ifcvt.c (if_convert): Likewise.
4387         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4388         compute_available, compute_nearerout, compute_rev_insert_delete,
4389         optimize_mode_switching): Likewise.
4390         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4391         * predict.c (estimate_probability, note_prediction_to_br_prob,
4392         propagate_freq, counts_to_freqs, expensive_function_p,
4393         estimate_bb_frequencies): Likewise.
4394         * profile.c (instrument_edges, get_exec_counts,
4395         compute_branch_probabilities, compute_checksum, branch_prob,
4396         find_spanning_tree): Likewise.
4397         * recog.c (split_all_insns, peephole2_optimize): Likewise.
4398         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4399         Likewise.
4400         * regclass.c (scan_one_insn, regclass): Likewise.
4401         * regmove.c (mark_flags_life_zones, regmove_optimize,
4402         record_stack_memrefs): Likewise.
4403         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4404         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4405         * resource.c (find_basic_block): Likewise.
4406         * sched-ebb.c (schedule_ebbs): Likewise.
4407         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4408         find_single_block_region, find_rgns, schedule_insns)
4409         * sibcall.c (optimize_sibling_and_tail_recursive_call)
4410         * ssa-ccp.c (optimize_unexecutable_edges,
4411         ssa_ccp_df_delete_unreachable_insns): Likewise.
4412         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4413         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4414         rename_block, convert_to_ssa, compute_conservative_reg_partition,
4415         compute_coalesced_reg_partition, rename_equivalent_regs,
4416         convert_from_ssa): Likewise.
4417         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4418         process_for_unwind_directive): Likewise.
4419
4420         * df.c (FOR_ALL_BBS): Removed.
4421         * gcse.c (struct null_pointer_info): Type of current_block field
4422         changed.
4423         (struct reg_avail_info): Type of last_bb field changed.
4424         * config/ia64/ia64.c (block_num): Removed.
4425         (need_copy_state): Type changed.
4426         (last_block): New.
4427
4428 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4429
4430         * cppinit.c (mark_named_operators): Split out from init_builtins.
4431         (cpp_finish_options): Call it from here instead.
4432
4433 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4434
4435         * builtin-attrs.def: Update copyright years.
4436         (ATTR_NONNULL): New attribute identifier.
4437         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4438         attribute tree lists.
4439         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4440         format operand.
4441         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4442         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4443         attribute lists.  Chain the appropriate nonnull attribute.
4444         * c-format.c (check_format_arg): Remove null format string
4445         warning.
4446         * testsuite/gcc.dg/format/null-1.c: New test.
4447
4448 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4449
4450         * Makefile.in (ADAC): Define.
4451         (SYSLIBS): Define.
4452         (.SUFFIXES): Move before language makefile fragments.
4453         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4454
4455 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
4456
4457         * varasm.c (make_decl_rtl): Don't allow weak variables to be
4458         placed in common.
4459
4460 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4461
4462         * cfg.c (dump_flow_info): Print results of
4463         maybe_hot/probably_never_executed predicates.
4464         * toplev.c (open_dump_file): Print function frequency.
4465
4466 2002-05-23  David S. Miller  <davem@redhat.com>
4467
4468         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4469         regsets.
4470
4471 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4472
4473         * c-common.c (warn_nonnull): Declare.
4474         (c_common_attribute_table): Add "nonnull" attribute.
4475         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4476         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4477         check_function_arguments_recurse): New functions.
4478         * c-common.h (warn_nonnull): Declare extern.
4479         (check_function_arguments, check_function_arguments_recurse): New
4480         prototypes.
4481         * c-decl.c (c_decode_option): Add -Wnonnull option.
4482         * c-format.c (set_Wformat): Set warn_nonnull if enabling
4483         format checking.
4484         (format_check_context): New structure.
4485         (check_format_info_recurse): Remove recursion and rename to...
4486         (check_format_arg): ...this.  Update comment.
4487         (check_format_info): Use check_function_arguments_recurse.
4488         * c-typeck.c (build_function_call): Call check_function_arguments
4489         instead of check_function_format.
4490         * doc/extend.texi: Document "nonnull" attribute.
4491         * doc/invoke.texi: Docuemnt -Wnonnull option.
4492         * testsuite/gcc.dg/nonnull-1.c: New test.
4493         * testsuite/gcc.dg/nonnull-2.c: New test.
4494
4495 2002-05-23  David S. Miller  <davem@redhat.com>
4496
4497         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4498         * cfgcleanup.c (cleanup_cfg): If it is set do not
4499         attempt to delete trivially dead insns.
4500         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4501         * toplev.c (rest_of_compilation): Document non-trivial aspect
4502         the RTL before optimize_save_area_alloca is run.
4503
4504 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4505
4506         * c-lex.c (indent_level): Remove.
4507         (cb_file_change, c_lex): Remove indent level handling.
4508         * c-lex.h (indent_level): Remove.
4509         * input.h (struct file_stack): Remove indent_level.
4510         * toplev.c (push_srcloc): Remove indent_level handling.
4511
4512 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4513
4514         PR target/6753
4515         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4516         of x in constraints for clarity.
4517         (sse_mov?fcc split): abort if op2 == op3.
4518         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4519         sse_movsfcc_const0_4): Add earlyclobber.
4520         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4521         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
4522         Use Y instead of x in constraints.
4523
4524 2002-05-23  Richard Henderson  <rth@redhat.com>
4525
4526         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4527         (C++98 Thread-Local Edits): New subsection.
4528
4529         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4530         (ix86_arch): Set type to enum processor_type.
4531
4532         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
4533         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4534
4535 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * configure.in: Fix as version test for binutils 2.12.1 releases
4538         (without dates).
4539         * configure: Rebuilt.
4540
4541 2002-05-23  Richard Henderson  <rth@redhat.com>
4542
4543         * config/i386/i386.c (get_pic_label_name): New.
4544         (load_pic_register): Remove.
4545         (output_set_got): New.
4546         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4547         * config/i386/i386.md (UNSPEC_SET_GOT): New.
4548         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4549         (prologue_set_got, prologue_get_pc): Remove.
4550         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4551         (builtin_setjmp_receiver): Use gen_set_got.
4552         * config/i386/i386-protos.h: Update.
4553
4554 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4555
4556         * gcse.c (hash_expr): Do not use alias set for hashing.
4557
4558 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
4559
4560         * dbxout.c (dbxout_class_name_qualifiers): New function.
4561         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4562
4563 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4564
4565         * cpperror.c (_cpp_begin_message): No special casing
4566         of CPP_FATAL_LIMIT.
4567         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4568         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4569         * cpplib.c (do_include_common): Use DL_ERROR.
4570         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4571         (DL_ICE): Renumber.
4572         * fix-header.c (read_scan_file): Update.
4573
4574 2002-05-22  Richard Henderson  <rth@redhat.com>
4575
4576         * config/i386/i386.c (ix86_expand_call): New function, extracted
4577         from md call patterns.  Add pic_offset_table_rtx to
4578         CALL_INSN_FUNCTION_USAGE when needed.
4579         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4580         (call_value_pop, call_value, untyped_call): Likewise.
4581         (call_exp, call_value_exp): Remove.
4582         * config/i386/i386-protos.h: Update.
4583
4584 2002-05-22  Richard Henderson  <rth@redhat.com>
4585
4586         * varasm.c (default_section_type_flags): Check for VAR_DECL
4587         before using DECL_THREAD_LOCAL.
4588
4589 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
4590
4591         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4592         (STARTFILE_SPEC): Delete PE crt0.o.
4593         * config/rs6000/aix51.h: Same.
4594         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4595         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4596         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
4597         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4598         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4599
4600 2002-05-22  Richard Henderson  <rth@redhat.com>
4601
4602         * varasm.c (default_section_type_flags): Handle tls data and
4603         default sections.
4604         (default_unique_section): Handle tls sections.
4605
4606 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
4607
4608         * configure.in (CROSS): Define NATIVE_CROSS.
4609         * configure: Regenerate.
4610         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4611         (startfile_prefix_spec): New var.
4612         (static_specs): Add startfile_prefix_spec.
4613         (do_spec_2): Split out from..
4614         (do_spec): ..here.
4615         (main): Process startfile_prefix_spec.
4616         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4617         dynamic linker.
4618         (STARTFILE_PREFIX_SPEC): Define.
4619         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
4620         absolute paths.
4621
4622 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4623
4624         * cpperror.c: Fix formatting.
4625         * cppexp.c: Likewise.
4626         * cppfiles.c: Likewise.
4627         * cpphash.c: Likewise.
4628         * cpphash.h: Likewise.
4629         * cppinit.c: Likewise.
4630         * cpplex.c: Likewise.
4631         * cpplib.c: Likewise.
4632         * cppmacro.c: Likewise.
4633         * cppmain.c: Likewise.
4634         * cppspec.c: Likewise.
4635
4636 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4637
4638         * combine.c (force_to_mode): Use gen_int_mode.
4639         Don't clear CONST_INT bits outside of mode.
4640
4641 2002-05-22  Richard Henderson  <rth@redhat.com>
4642
4643         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4644         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4645
4646 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4647
4648         PR c/6643
4649         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4650         if DECL_SIZE_UNIT is INTEGER_CST.
4651
4652 2002-05-22  Richard Henderson  <rth@redhat.com>
4653
4654         * flow.c (life_analysis): Delete broken reg_label check.
4655
4656 2002-05-22  Richard Henderson  <rth@redhat.com>
4657
4658         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4659         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4660
4661 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4662
4663         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4664         (embed-bb.c): New rule.
4665         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
4666         * config/sh/embed_bb.c: Delete.
4667
4668 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
4669
4670         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4671
4672 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4673
4674         * config/h8300/h8300.md (*andorqi3): New.
4675
4676 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4677
4678         PR preprocessor/6517
4679         * Makefile.in: Update.
4680         * c-common.c (c_common_post_options): Add preprocessor
4681         errors to the error count.
4682         * c-lang.c (c_post_options): Kill.
4683         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4684         * hooks.h: Add header guards.
4685         * langhooks-def.h: Include hooks.h.
4686         (LANG_HOOKS_POST_OPTIONS): Update.
4687         * langhooks.h (struct lang_hooks): Update post_options.
4688         * toplev.c (parse_options_and_default_flags): Update.
4689 objc:
4690         * objc-lang.c (objc_post_options): Kill.
4691         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4692
4693 2002-05-21  Bruce Korb  <bkorb@gnu.org>
4694
4695         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4696         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4697         * fixinc/fixincl.x: regen.
4698
4699 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
4700
4701         * cfgbuild.c: Fix formatting.
4702         * cfg.c: Likewise.
4703         * cfgcleanup.c: Likewise.
4704         * cfglayout.c: Likewise.
4705         * cfgloop.c: Likewise.
4706         * cfgrtl.c: Likewise.
4707
4708 2002-05-21  Richard Henderson  <rth@redhat.com>
4709
4710         * c-common.h (enum rid): Add RID_THREAD.
4711         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4712         (grokdeclarator): Grok __thread.
4713         * c-parse.in (reswords): Add __thread.
4714         (rid_to_yy): Add RID_THREAD.
4715
4716         * tree.h (DECL_THREAD_LOCAL): New.
4717         (struct tree_decl): Add thread_local_flag.
4718         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4719         * tree.c (staticp): TLS variables are not static.
4720
4721         * target-def.h (TARGET_HAVE_TLS): New.
4722         * target.h (have_tls): New.
4723         * output.h (SECTION_TLS): New.
4724         * varasm.c (assemble_variable): TLS variables can't be common for now.
4725         (default_section_type_flags): Handle .tdata and .tbss.
4726         (default_elf_asm_named_section): Handle SECTION_TLS.
4727         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4728
4729         * flags.h (flag_tls_default): Declare.
4730         * toplev.c (flag_tls_default): Define.
4731         (display_help): Display help for it.
4732         (decode_f_option): Set it.
4733
4734         * doc/extend.texi (Thread-Local): New node describing language-level
4735         thread-local storage.
4736         * doc/invoke.texi (-ftls-model): Document.
4737
4738         * fixinc/inclhack.def (thread_keyword): New.
4739         * fixinc/fixincl.x: Rebuild.
4740
4741 2002-05-21  Jeffrey A Law  <law@redhat.com>
4742
4743         * optabs.c (expand_binop): For double-word integer multiplies,
4744         do not compute intermediate results into something that is
4745         not a register (such as a SUBREG or MEM).
4746
4747         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4748         (ix86_sched_reorder): Make sure to initialize scheduling
4749         data even when there's only one insn in the ready queue.
4750
4751 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4752
4753         * genautomata.c (reserv_sets_hash_value): Fix a typo.
4754
4755 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4756
4757         * genautomata.c (reserv_sets_hash_value): Define hash_value as
4758         set_el_t.  Transform the hash value into unsigned.
4759         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4760         (transform_3): Add code to process `(A,B)+(D,E)'.
4761
4762 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
4763
4764         * reload1.c (do_output_reload): Run delete_output_reload
4765         only if optimizing.
4766
4767 2002-05-21  Roger Sayle  <roger@eyesopen.com>
4768
4769         PR middle-end/6600
4770         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4771         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
4772         (can_store_by_pieces): ... and here to limit the largest mode used.
4773         Add a comment to document this function.
4774
4775 2002-05-21  Richard Henderson  <rth@redhat.com>
4776
4777         * flow.c (life_analysis): Fix test for deleted label.
4778
4779 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4780
4781         * doc/tm.texi: Fix typo.
4782
4783 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
4784
4785         * c-common.c (c_common_init): Set options->unsigned_char from
4786         flag_signed_char.
4787         (cb_register_builtins): Define __STRICT_ANSI__ and
4788         __CHAR_UNSIGNED__ here...
4789         * cppinit.c (init_builtins): Not here.
4790         (cpp_create_reader): unsigned_char option defaults to 0, not
4791         !DEFAULT_SIGNED_CHAR.
4792         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4793         and -funsigned-char.
4794
4795         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4796         * cpphash.c (_cpp_init_hashtable): Don't set it.
4797         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4798         directly.  Clarify comment.
4799
4800 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4801
4802         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4803         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
4804         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
4805         BASIC_BLOCK (n_basic_blocks - 1).
4806         * cfganal.c (can_fallthru, flow_call_edges_add,
4807         flow_preorder_transversal_compute): Too.
4808         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4809         find_sub_basic_blocks): Too.
4810         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4811         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4812         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4813         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4814         * combine.c (this_basic_block): Type changed to basic_block.
4815         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4816         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4817         get_last_value, distribute_notes, distribute_links): Too.
4818         * final.c (compute_alignments): Too.
4819         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4820         * function.c (thread_prologue_and_epilogue_insns): Too.
4821         * gcse.c (compute_code_hoist_vbeinout): Too.
4822         * global.c (build_insn_chain): Too.
4823         * ifcvt.c (find_if_block, find_cond_trap): Too.
4824         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4825         * regmove.c (regmove_optimize): Too.
4826         * resource.c (find_basic_block): Too.
4827         * sched-ebb.c (schedule_ebbs): Too.
4828         * ssa-dce.c (find_control_dependence, find_pdom): Too.
4829
4830 2002-05-21  Andreas Jaeger  <aj@suse.de>
4831
4832         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4833
4834 2002-05-21  Richard Henderson  <rth@redhat.com>
4835
4836         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4837         unspec names, not numbers.
4838
4839 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4840
4841         * doc/sourcebuild.texi: Mention snapshot-README and
4842         snapshot-index.html as needing updating for new front ends.
4843
4844 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4845
4846         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4847         disabling checking, and avoid multiple evaluation of RTX.
4848
4849 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
4850
4851         * bitmap.c (bitmap_find_bit): Return early if we have the correct
4852         element cached.
4853
4854 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4855
4856         * profile.c (gen_edge_profiler):  Set alias set before the memory is
4857         used.
4858
4859 2002-05-20  David S. Miller  <davem@redhat.com>
4860
4861         * cselib.c (max_value_regs): New.
4862         (cselib_lookup, cselib_invalidate_regno): Initialize it when
4863         adding new entries to the REG_VALUES table and we are dealing with
4864         a hard register.
4865         (clear_table): Initialize it.
4866         (cselib_invalidate_regno): Use it to determine which hard
4867         registers to scan when mode is not VOIDmode.
4868
4869 2002-05-20  Duraid Madina   <duraid@fl.net.au>
4870
4871         * tradcpp.c (fixup_newlines): Use old-style function header.
4872
4873 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
4874
4875         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4876
4877 2002-05-20  H.J. Lu  (hjl@gnu.org)
4878
4879         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4880
4881         * config/mips/mips.h (DFMODE_NAN): Defined.
4882         (SFMODE_NAN): Likewise.
4883
4884 2002-05-20  Dale Johannesen  <dalej@apple.com>
4885
4886         * combine.c (cant_combine_insn_p):  Back out my
4887         previous patch.
4888
4889 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4890
4891         * params.c: Fix formatting.
4892         * params.h: Likewise.
4893         * predict.c: Likewise.
4894         * prefix.c: Likewise.
4895         * print-rtl.c: Likewise.
4896         * print-tree.c: Likewise.
4897         * profile.c: Likewise.
4898
4899 2002-05-20  H.J. Lu  (hjl@gnu.org)
4900
4901         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4902
4903 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
4904
4905         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4906         switches straight on to the assembler, do not abbreviate them.
4907         * config/arm/elf.h (ASM_SPEC): As above.
4908         * config/arm/semi.h (ASM_SPEC): As above.
4909         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4910         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4911         -mcpu=xscale on to the assembler by default.
4912         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4913
4914 2002-05-20  Richard Henderson  <rth@redhat.com>
4915
4916         * cse.c (canon_hash): Reorder do_not_record test.  Always
4917         allow pic_offset_table_rtx.
4918
4919 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
4920
4921         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4922         (expand_binop): Ditto (3 times).
4923
4924 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
4925
4926         * Makefile.in (distclean): Remove QMTest stuff.
4927         (QMTEST_PATH): New variable.
4928         (QMTESTFLAGS): Likewise.
4929         (QMTESTRUNFLAGS): Likewise.
4930         (QMTEST): Likewise.
4931         (QMTEST_GPP_TESTS): Likewise.
4932         (QMTEST_DIR): Likewise.
4933         (QMTEST_DIR/context): New target.
4934         (qmtest-g++): Likeise.
4935         (qmtest-gui): Likewise.
4936         (QMTEST_DIR/gpp-expected.qmr): Likewise.
4937
4938 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
4939
4940         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4941         an altivec register if TARGET_ALTIVEC.
4942
4943         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4944         to ALTIVEC_VECTOR_MODE.
4945         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4946         (rs6000_va_arg): Vectors may go in registers if they are not
4947         altivec vectors.
4948
4949 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4950
4951         * protoize.c: Fix formatting.
4952
4953 2002-05-19  Richard Henderson  <rth@redhat.com>
4954
4955         * gensupport.c (init_include_reader): Merge into ...
4956         (process_include): ... here.  Simplify composite path creation.
4957         Plug memory leaks.  Fix file/line number tracking.  Do not
4958         process_define_cond_exec.  Return void.
4959         (process_rtx): Don't check process_include return value.
4960
4961 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4962
4963         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4964         fields.
4965         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4966         traversing basic block chain.
4967         (create_basic_block_structure, create_basic_block): Declaration changed.
4968         (link_block, unlink_block): Declare.
4969         * cfg.c (entry_exit_blocks): Initialize new fields.
4970         (link_block, unlink_block): New.
4971         (expunge_block_nocompact): Unlink basic block.
4972         (dump_flow_info): Print prev_bb/next_bb fields.
4973         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4974         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4975         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4976         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4977         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4978         (verify_flow_info): Check that list agrees with numbering.
4979
4980 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4981
4982         * c-common.c (preprocessing_asm): New macro.
4983         * c-lex.h (builtin_define, builtin_assert): Use pfile.
4984 doc:
4985         * tm.texi: Update.
4986 config/alpha:
4987         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4988         (CPP_SPEC): Simplify.
4989         (TARGET_CPU_CPP_BUILTINS): Update.
4990         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4991         (CPP_SPEC): Simplify.
4992         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4993         (TARGET_OS_CPP_BUILTINS): Update.
4994         * osf.h (CPP_XFLOAT_SPEC): Kill.
4995         (TARGET_OS_CPP_BUILTINS): Update.
4996         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4997         * osf5.h (CPP_XFLOAT_SPEC): Kill.
4998         * vms.h (CPP_SUBTARGET_SPEC): Kill.
4999         (TARGET_OS_CPP_BUILTINS): Update.
5000
5001 2002-05-19  Richard Henderson  <rth@redhat.com>
5002
5003         * varasm.c (default_binds_local_p): Fix typo.
5004
5005 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5006
5007         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5008         CONST_INT operand to the correct mode after adding 1 to it.
5009
5010 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
5011
5012         * config.gcc (powerpc-wrs-windiss*): New target.
5013
5014 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5015
5016         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5017         (ashrdi3): Use it.
5018
5019 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
5020
5021         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5022         alphasort.
5023         * config.in: Regenerated.
5024         * configure: Regenerated.
5025
5026 2002-05-19  Richard Henderson  <rth@redhat.com>
5027
5028         * target-def.h (TARGET_BINDS_LOCAL_P): New.
5029         * target.h (struct gcc_target): Move boolean fields to the end.
5030         Add binds_local_p.
5031         * varasm.c (default_binds_local_p): New.
5032         * output.h: Declare it.
5033
5034         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5035         * config/cris/cris.c (cris_encode_section_info): Likewise.
5036         * config/i386/i386.c (i386_encode_section_info): Likewise.
5037         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5038         * config/sh/sh.c (sh_encode_section_info): Likewise.
5039
5040         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5041         (TARGET_BINDS_LOCAL_P): New.
5042
5043 2002-05-19  Richard Henderson  <rth@redhat.com>
5044
5045         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5046         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5047         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5048
5049         * toplev.c (display_help): Kill -a -ax help.
5050
5051         * config/1750a/1750a.h, config/alpha/alpha.h,
5052         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5053         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5054         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5055         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5056
5057         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5058         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5059
5060         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5061         (ix86_output_function_block_profiler): Kill.
5062         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5063         (m68hc11_function_block_profiler): Kill.
5064         * config/m68hc11/m68hc11-protos.h: Update.
5065         * config/m88k/m88k.c (output_block_profiler): Kill.
5066         (output_function_block_profiler): Kill.
5067         * config/m88k/m88k-protos.h: Update.
5068
5069 2002-05-19  Richard Henderson  <rth@redhat.com>
5070
5071         * system.h (STRIP_NAME_ENCODING): Poison it.
5072         * output.h (STRIP_NAME_ENCODING): Remove.
5073         (default_strip_name_encoding): Declare.
5074         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5075         * target.h (strip_name_encoding): New.
5076         * varasm.c (default_strip_name_encoding): New.
5077
5078         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5079         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5080         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5081         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5082         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5083         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5084         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5085         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5086         config/v850/v850.h: Use the hook, not the macro.
5087
5088         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5089         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5090         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5091         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5092         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5093         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
5094         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5095         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5096         config/v850/v850.c, config/v850/v850.h:
5097         Move STRIP_NAME_ENCODING to out-of-line function and add
5098         TARGET_STRIP_NAME_ENCODING.
5099
5100         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5101         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5102         with TARGET_STRIP_NAME_ENCODING referencing existing function;
5103         make function static.
5104
5105         * xcoffout.c: Include target.h
5106         * Makefile.in (xcoffout.o): Update.
5107
5108         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5109         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5110         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5111         reloc argument unused.
5112         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5113
5114         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5115         STRIP_NAME_ENCODING docs.
5116
5117 2002-05-19  Andreas Jaeger  <aj@suse.de>
5118
5119         * gengenrtl.c: Add prototype for excluded_rtx.
5120
5121         * real.h: Add prototype for exact_real_truncate.
5122
5123 2002-05-18  Richard Henderson  <rth@redhat.com>
5124
5125         * system.h (ENCODE_SECTION_INFO): Poison it.
5126         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5127         * target.h (encode_section_info): New.
5128         * varasm.c (make_decl_rtl, output_constant_def): Use it.
5129         * hooks.c (hook_tree_int_void): New.
5130         * hooks.h: Declare it.
5131
5132         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5133         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5134         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5135         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5136         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5137         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5138         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5139         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5140         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5141         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5142         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5143         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5144         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5145         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5146         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5147         referencing existing function.  Make function static.
5148
5149         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
5150         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
5151         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5152         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5153         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
5154         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
5155         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5156         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5157         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5158         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5159         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
5160         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5161         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5162         Move ENCODE_SECTION_INFO to out-of-line function and add
5163         TARGET_ENCODE_SECTION_INFO.
5164
5165         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5166         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5167
5168         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5169         from SUBTARGET_*
5170         (switch_to_section): Replace in_rdata case with in_readonly_data.
5171
5172         * config/h8300/h8300.c (h8300_encode_label): Make static.
5173         * config/h8300/h8300-protos.h: Update.
5174
5175         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5176         from rs6000_encode_section_info; make static.
5177         (rs6000_xcoff_encode_section_info): New.
5178
5179         * config/v850/v850.c (v850_encode_data_area): Make static.
5180         * config/v850/v850-protos.h: Update.
5181
5182         * config/vax/vax.c: Include flags.h.
5183         (vms_select_section): Fix typo.
5184
5185         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5186         ENCODE_SECTION_INFO docs.
5187
5188 2002-05-18  Richard Henderson  <rth@redhat.com>
5189
5190         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5191         REGISTER_TARGET_PRAGMAS.
5192         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5193
5194         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5195
5196 2002-05-18  Richard Henderson  <rth@redhat.com>
5197
5198         * system.h (SELECT_RTX_SECTION): Poison.
5199         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5200         * target.h (select_rtx_section): New.
5201         * varasm.c (output_constant_pool): Use it.
5202         (default_select_rtx_section, default_elf_select_rtx_section): New.
5203         * output.h: Declare them.
5204
5205         * config/darwin.h (SELECT_RTX_SECTION): Move ...
5206         * config/darwin.c (machopic_select_rtx_section): ... here.
5207         * config/darwin-protos.h: Update.
5208
5209         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5210         * config/nextstep.c (machopic_select_rtx_section): ... here.
5211         (nextstep_select_section): Rename variable to avoid macro clash.
5212         * config/nextstep-protos.h: Update.
5213
5214         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5215         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5216         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
5217         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
5218         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5219         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
5220         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
5221         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5222         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5223         (SELECT_RTX_SECTION): Remove.
5224
5225         * config/darwin.h, config/elfos.h, config/nextstep.h,
5226         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5227         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5228         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5229         config/sparc/lynx.h, config/xtensa/xtensa.c
5230         (TARGET_ASM_SELECT_RTX_SECTION): New.
5231
5232         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5233         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5234         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5235         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5236         (ia64_aix_select_rtx_section): New.
5237         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5238         redefining.
5239         * config/mips/mips.c (mips_select_rtx_section): Make static.
5240         Support ELF SHF_MERGE features.
5241         * config/mips/mips-protos.h: Update.
5242         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5243         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5244         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5245         make static, fall back to default_elf_select_rtx_section.
5246         * config/rs6000/rs6000-protos.h: Update.
5247         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5248         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5249         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5250         * config/romp/romp.c (romp_select_rtx_section): New.
5251         * config/s390/s390.c (s390_select_rtx_section): New.
5252         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
5253         declarations before target macro definition.
5254         (xtensa_emit_call): Use static buffer.
5255         (xtensa_select_rtx_section): New.
5256         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5257         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5258         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5259
5260         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5261         SELECT_RTX_SECTION docs.
5262
5263 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5264
5265         * i386.md (movsi/movdi): Fix template.
5266         (sse2 patterns): Set attributes consistently.
5267
5268         * i386.md (pushqi2, ashrqi_*): Fix constraint.
5269
5270 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
5271
5272         * optabs.c (complex_part_zero_p): New.
5273         * (expand_cmplxdiv_straight): Use it.
5274         * (expand_cmplxdiv_wide): Ditto.
5275         * (expand_binop): Ditto.
5276
5277 2002-05-18  Richard Henderson  <rth@redhat.com>
5278
5279         * final.c (HAVE_READONLY_DATA_SECTION): New.
5280         (shorten_branches): Use it instead of ifdefs.
5281         * varasm.c (enum in_section): Add in_readonly_data.
5282         (text_section, data_section): Tidy.
5283         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5284
5285         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5286         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5287         (READONLY_DATA_SECTION): Don't undef.
5288
5289         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5290         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5291         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5292
5293         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5294         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5295         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5296         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5297
5298         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5299         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5300         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5301         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5302         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5303         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5304         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5305         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5306         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5307
5308         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5309         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5310         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5311         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5312         config/pa/pa64-hpux.h, config/sparc/litecoff.h
5313         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5314
5315         * config/elfos.h, config/netware.h, config/svr3.h,
5316         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5317         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5318         config/h8300/h8300.h, config/i386/i386-interix.h,
5319         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5320         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5321
5322         * config/elfos.h, config/netware.h, config/svr3.h,
5323         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5324         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5325         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5326         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5327
5328         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5329         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5330         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5331         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5332         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5333         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5334         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5335         config/rs6000/sysv4.h, config/v850/v850.h
5336         (EXTRA_SECTIONS): Remove in_const/in_rdata.
5337         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5338
5339         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5340         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5341         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5342         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5343         * config/alpha/alpha.c (alpha_start_function): Likewise.
5344         (alpha_write_linkage): Likewise.
5345         * config/m32r/m32r.c (m32r_select_section): Likewise.
5346         * config/m88k/m88k.c (m88k_select_section): Likewise.
5347         * config/mips/mips.c (mips_select_rtx_section): Likewise.
5348         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5349         (rs6000_elf_select_section): Likewise.
5350         * config/v850/v850.c (v850_select_section): Likewise.
5351
5352         * config/1750a/1750a.h, config/i860/sysv3.h
5353         (READONLY_DATA_SECTION_ASM_OP): New.
5354         READONLY_DATA_SECTION_ASM_OP.
5355         * config/i386/interix.c, config/i386/winnt.c
5356         (i386_pe_unique_section): Always use .rdata prefix.
5357         * config/pa/som.h (readonly_data): Always switch to read-only section.
5358         (READONLY_DATA_SECTION): Predicate on flag_pic.
5359         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5360         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5361         (READONLY_DATA_SECTION): Update.
5362
5363 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
5364
5365         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
5366         is used without -Wformat.
5367         * c-common.h (warn_format_zero_length): Declare extern.
5368         * c-decl.c (warn_options): Add "format-zero-length".
5369         * c-format.c (warn_format_zero_length): Declare.
5370         (set_Wformat): Set warn_format_zero_length for -Wformat.
5371         (check_format_info): Only warn about zero-length formats if
5372         warn_format_zero_length is true.  Include the format type
5373         name in the warning message.
5374         * doc/invoke.texi: Document -Wformat-zero-length.
5375         * testsuite/gcc.dg/format/zero-length-1.c: New test.
5376
5377 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
5378
5379         * timevar.c: Fix formatting.
5380         * tlink.c: Likewise.
5381         * toplev.c: Likewise.
5382         * tree-dump.c: Likewise.
5383         * tree-inline.c: Likewise.
5384
5385 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5386
5387         * cppinit.c (cpp_post_options): If preprocessed, turn off
5388         traditional.  If traditional, turn off column numbers.
5389         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5390         * cpptrad.c (handle_newline): Update line_base.
5391         (skip_comment): Handle -Wcomment.
5392
5393 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
5394
5395         * cppinit.c (struct builtin): Remove unused fields.
5396         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5397         (operator_array): New - was second half of builtin_array.
5398         (init_builtins): Simplify loop over builtin_array/operator_array.
5399
5400 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5401
5402         * defaults.h (UNIQUE_SECTION): Remove.
5403         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5404
5405 2002-05-17  Richard Henderson  <rth@redhat.com>
5406
5407         * expr.c (init_expr_once): Don't use start/end_sequence.
5408         Use rtx_alloc instead of emit_insn.
5409         * toplev.c (lang_dependent_init): Run init_expr_once here ...
5410         (lang_independent_init): ... not here.
5411
5412 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5413
5414         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5415
5416 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5417
5418         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
5419         for fixed registers, possibly used for global register variables.
5420         (initial_elimination_offset, avr_output_function_prologue,
5421         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
5422
5423 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5424
5425         * Makefile.in: Update for cpptrad.c.
5426         * cpphash.h (struct cpp_buffer): New members for buffer
5427         overlays.
5428         (struct cpp_reader): New members for traditional output.
5429         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5430         * cppinit.c (cpp_create_reader): Set trad_line.
5431         (cpp_destroy): Free trad_out_base if used.
5432         (cpp_read_main_file): Overlay an empty buffer if traditional.
5433         (cpp_finish_options): Don't do builtins.
5434         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5435         (cpp_handle_option): Handle it.
5436         * cpplex.c (continue_after_nul): New.
5437         (_cpp_lex_direct): Use handle_nul.
5438         * cpplib.h (struct cpp_options): New traditional option.
5439         * cpptrad.c: New file.
5440
5441 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5442
5443         * c-common.c (c_common_init_options): Use C89 for Objective-C,
5444         and set the options flag.
5445         * cppinit.c (lang_flags): Remove objc.
5446         (lang_defaults): Remove OBJC and OBJCXX.
5447         (set_lang): Update.
5448         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5449         (cpp_handle_option): Remove -+ and -lang-objc++.
5450         For ObjC, just set a flag.
5451         (print_help): Update.
5452         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5453
5454 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5455
5456         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5457         bootstrap with -mips3.
5458
5459 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
5460
5461         * final.c: Fix formatting.
5462         * fix-header.c: Likewise.
5463         * flow.c: Likewise.
5464         * fold-const.c: Likewise.
5465         * function.c: Likewise.
5466
5467 2002-05-17  David S. Miller  <davem@redhat.com>
5468
5469         PR c/6689, PR optimization/6615
5470         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5471         and make it a pointer to rtx.  Update comments.
5472         (update_equiv_regs): When scanning for equivalences, record
5473         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
5474         it while making the equiv replacements.
5475
5476 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5477
5478         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5479
5480 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5481
5482         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5483         when encoding visibility into SYMBOL_REF_FLAG.
5484
5485 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
5486
5487         * expr.c (force_operand): Fix reversed move.
5488
5489 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
5490
5491         * doc/install.texi (Testing): Mention two common DejaGnu warnings
5492         that can be ignored.
5493
5494 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5495
5496         * doc/install.texi (Final install): Recommend to install into a
5497         "clean" target directory.
5498
5499 2002-05-17  Richard Henderson  <rth@redhat.com>
5500
5501         * config/ia64/ia64.md: Use braced strings instead of quoted strings
5502         for code blocks.  Tidy whitespace.
5503
5504 2002-05-17  Richard Henderson  <rth@redhat.com>
5505
5506         * hooks.c (hook_tree_bool_false): New.
5507         * hooks.h: Declare it.
5508         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5509         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5510         * target.h (select_section, unique_section): New.
5511         (in_small_data_p): New.
5512         * varasm.c (resolve_unique_section): Use hooks instead of macros.
5513         (variable_section, output_constant_def_contents): Likewise.
5514         (default_select_section, default_unique_section): New.
5515         (categorize_decl_for_section, default_elf_select_section): New.
5516         * output.h: Declare them.
5517
5518         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5519         (TARGET_ASM_SELECT_SECTION): New.
5520         (SELECT_SECTION): Move ...
5521         * config/darwin.c (machopic_select_section): ... here.
5522         * config/darwin-protos.h: Update.
5523
5524         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5525         (SELECT_SECTION): Move ...
5526         * config/nextstep.c (nextstep_select_section): ... here.
5527         * config/nextstep-protos.h: Update.
5528
5529         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5530         (TARGET_ASM_SELECT_SECTION): New.
5531         * config/svr3.h (SELECT_SECTION): Remove.
5532
5533         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5534         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5535         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5536         (alpha_encode_section_info): Use it.
5537         * config/alpha/alpha-protos.h: Update.
5538         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5539         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5540         (TARGET_ASM_SELECT_SECTION): New.
5541         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5542
5543         * config/arm/pe.h (UNIQUE_SECTION): Remove.
5544         (TARGET_ASM_UNIQUE_SECTION): New.
5545
5546         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5547         (avr_unique_section): Rename from unique_section; make static.
5548         * config/avr/avr-protos.h: Update.
5549         * config/avr/avr.h (UNIQUE_SECTION): Remove.
5550
5551         * config/c4x/c4x.h (SELECT_SECTION): Remove.
5552
5553         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5554         (TARGET_ASM_UNIQUE_SECTION): New.
5555         * config/i386/i386-interix.h: Likewise.
5556         * config/i386/win32.h: Likewise.
5557         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5558         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5559         * config/i386/sco5.h (SELECT_SECTION): Remove.
5560         (TARGET_ASM_SELECT_SECTION): New.
5561         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5562
5563         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5564         instead of SELECT_SECTION.
5565         * config/m68k/dpx2.h: Likewise.
5566         * config/rs6000/lynx.h: Likewise.
5567
5568         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5569         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5570         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5571         (ia64_in_small_data_p): New.
5572         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
5573         (ia64_aix_select_section, ia64_aix_unique_section): New.
5574         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5575         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5576
5577         * config/m32r/m32r.h (SELECT_SECTION): Remove.
5578         (TARGET_ASM_SELECT_SECTION): New.
5579         * config/m32r/m32r.c (m32r_select_section): Take align argument.
5580         * config/m32r/m32r-protos.h: Update.
5581
5582         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5583         (SELECT_SECTION): Move ...
5584         * config/m88k/m88k.c (m88k_select_section): ... here.
5585
5586         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5587         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5588         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5589         (mcore_unique_section): Make static.
5590         * config/mcore/mcore-protos.h: Update.
5591
5592         * config/mips/elf.h (UNIQUE_SECTION): Remove.
5593         (TARGET_ASM_UNIQUE_SECTION): New.
5594         * config/mips/elf64.h: Likewise.
5595         * config/mips/iris6gld.h: Likewise.
5596         * config/mips/linux.h: Likewise.
5597         * config/mips/mips-protos.h: Update.
5598         * config/mips/mips.c (mips_select_section): Add align argument.
5599         * config/mips/mips.h (SELECT_SECTION): Remove.
5600         (TARGET_ASM_SELECT_SECTION): New.
5601
5602         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5603         * config/mmix/mmix.c (mmix_select_section): Remove.
5604         (mmix_unique_section): Remove.
5605         * config/mmix/mmix-protos.h: Update.
5606
5607         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5608         (SELECT_SECTION): Move ...
5609         * config/pa/pa.c (pa_select_section): ... here.
5610         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5611
5612         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5613         from rs6000_select_section and make static.
5614         (rs6000_elf_unique_section): Similarly.
5615         (rs6000_xcoff_select_section): From xcoff.h.
5616         (rs6000_xcoff_unique_section): Likewise.
5617         * config/rs6000/rs6000-protos.h: Update.
5618         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5619         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5620         * config/rs6000/xcoff.h: Likewise.
5621
5622         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5623         (SELECT_SECTION): Move ...
5624         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5625
5626         * config/v850/v850.h (SELECT_SECTION): Move ...
5627         * config/v850/v850.c (v850_select_section): ... here.
5628         (TARGET_ASM_SELECT_SECTION): New.
5629
5630         * config/vax/vms.h (SELECT_SECTION): Move ...
5631         * config/vax/vax.c (vms_select_section): ... here.
5632         (TARGET_ASM_SELECT_SECTION): New.
5633
5634         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5635         for the target hooks.
5636
5637 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
5638
5639         * config/arm/arm.c (emit_multi_reg_push): Do not set
5640         RTX_FRAME_RELATED_P on the SEQUENCE.
5641
5642 2002-05-16  Richard Henderson  <rth@redhat.com>
5643
5644         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5645         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
5646
5647 2002-05-16  Richard Henderson  <rth@redhat.com>
5648
5649         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5650
5651         * config/ia64/ia64.c (saveable_obstack): Do not declare.
5652
5653 2002-05-16  Richard Henderson  <rth@redhat.com>
5654
5655         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5656         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5657         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5658         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5659         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5660         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5661         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5662         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5663         Revert "Basic block renumbering removal", and two followup patches.
5664
5665 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5666
5667         * lcm.c (optimize_mode_switching): Revert previous change.
5668
5669 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5670
5671         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5672         with only extant block numbers.
5673
5674 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5675
5676         * lcm.c (optimize_mode_switching): Fix typo.
5677
5678 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5679
5680         * flow.c (calculate_global_regs_live): Queue blocks in program order.
5681
5682 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5683
5684         * doc/install.texi (Configuration): Document PWDCMD.
5685
5686 2002-05-16  Dale Johannesen  <dalej@apple.com>
5687
5688         * combine.c (cant_combine_insn_p):  Reenable combinations
5689         involving hard regs unless CLASS_LIKELY_SPILLED_P.
5690
5691 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5692
5693         * c-common.c (cb_register_builtins): Handle more built-ins
5694         here rather than in gcc.c specs.
5695         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5696         (cpp_options): Pass -O flags even when only preprocessing.
5697         * toplev.c (set_fast_math_flags): New prototype.
5698         (fast_math_flags_set_p): New.
5699         (set_no_fast_math_flags): Remove.
5700         (decode_f_option): Update.
5701         * toplev.h (set_fast_math_flags): Update.
5702         (fast_math_flags_set_p): New.
5703         (set_no_fast_math_flags): Remove.
5704 config:
5705         * c4x/c4x.c (c4x_override_options): Update.
5706
5707 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
5708
5709         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5710         Default-define here.
5711         (builtin_define_with_value): Can now wrap the expansion in
5712         quotation marks if such is wanted.
5713         (cb_register_builtins): Update calls to builtin_define_with_value.
5714         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5715         here.
5716         (c_common_init): Set options->stdc_0_in_system_headers.
5717         * c-lex.h: Update prototype of builtin_define_with_value.
5718         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5719         and REGISTER_PREFIX.
5720
5721         * cppinit.c (VERS, ULP, C, X): Kill.
5722         (builtin_array): Remove entries for __VERSION__,
5723         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5724         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
5725         a constant.
5726         (init_builtins): Kill off a bunch of now-dead code.
5727         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5728         -fno-leading-underscore.
5729         (cpp_handle_option): Remove code to set user_label_prefix.
5730         (cpp_post_options): Likewise.
5731
5732         * cpplib.h (struct cpp_options): Remove user_label_prefix.
5733         (stdc_0_in_system_headers): New.
5734         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5735         stdc_0_in_system_headers) too to decide the value of __STDC__.
5736
5737         * tradcpp.c (user_label_prefix): Kill.
5738         (main): Remove code handling -f(no-)leading-underscore.
5739         (initialize_builtins): Don't define __REGISTER_PREFIX__
5740         or __USER_LABEL_PREFIX__.
5741         (install_value): Wrap compound statement in dummy loop so the
5742         macro works properly in an if statement.
5743
5744
5745 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
5746
5747         * loop.h (struct loop_info): Add member has_prefetch.
5748         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5749         (prescan_loop): Initialize has_prefetch.
5750         (struct prefetch_info): Change prefetch_in_loop and
5751         prefetch_before_loop from bit fields to ints.
5752         (emit_prefetch_instructions): Several small fixes.
5753         (check_dbra_loop): Don't reverse loop that uses prefetch.
5754
5755 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5756
5757         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5758         * configure.in: Likewise.
5759         * fixinc/check.tpl: Likewise.
5760         * fixinc/fixinc.dgux: Likewise.
5761         * fixinc/fixinc.svr4: Likewise.
5762         * fixinc/fixinc.winnt: Likewise.
5763         * fixinc/fixincl.sh: Likewise.
5764         * fixproto: Likewise.
5765         * configure: Regenerate.
5766
5767 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5768
5769         Basic block renumbering removal:
5770         * basic_block.h (struct basic_block_def): Renamed index to sindex,
5771         added prev_bb and next_bb fields.
5772         (n_basic_blocks): Renamed to num_basic_blocks.
5773         (last_basic_block): New, index of last basic block.
5774         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5775         traversing basic block chain.
5776         (BLOCK_NUM): index -> sindex.
5777         (create_basic_block_structure, create_basic_block): Declaration changed.
5778         (debug_num2bb): Declare.
5779         (expunge_block_nocompact): Declaration removed.
5780         (link_block, unlink_block, compact_blocks): Declare.
5781         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5782         * cfg.c (entry_exit_blocks): Initialize new fields.
5783         (clear_edges, alloc_block, expunge_block, cached_make_edge,
5784         redirect_edge_pred, dump_flow_info, dump_edge_info,
5785         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5786         free_aux_for_edges): Modified.
5787         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5788         (expunge_block_nocompact): Removed.
5789         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5790         find_unreachable_blocks, create_edge_list, print_edge_list,
5791         verify_edge_list, flow_edge_list_print, remove_fake_successors,
5792         remove_fake_edges, flow_reverse_top_sort_order_compute,
5793         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5794         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5795         flow_dfs_compute_reverse_execute): Modified.
5796         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5797         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5798         Modified.
5799         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5800         merge_blocks_move_predecessor_nojumps,
5801         merge_blocks_move_successor_nojumps, merge_blocks,
5802         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5803         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5804         * cfglayout.c (skip_insns_after_block, label_for_bb,
5805         record_effective_endpoints, scope_to_insns_finalize,
5806         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5807         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5808         cfg_layout_duplicate_bb): Modified.
5809         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5810         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5811         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5812         flow_loops_find, flow_loop_outside_edge_p): Modified.
5813         * cfgrtl.c (create_basic_block_structure, create_basic_block,
5814         flow_delete_block, compute_bb_for_insn, split_block,
5815         try_redirect_by_replacing_jump, redirect_edge_and_branch,
5816         force_nonfallthru_and_redirect, tidy_fallthru_edge,
5817         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5818         commit_edge_insertions, commit_edge_insertions_watch_calls,
5819         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5820         purge_all_dead_edges): Modified.
5821         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5822         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5823         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5824         Modified.
5825         * conflict.c (conflict_graph_compute): Modified.
5826         * df.c (FOR_ALL_BBS): Removed.
5827         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5828         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5829         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5830         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5831         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5832         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5833         * final.c (compute_alignments, final_scan_insn): Modified.
5834         * flow.c (verify_local_live_at_start, update_life_info,
5835         update_life_info_in_dirty_blocks, free_basic_block_vars,
5836         delete_noop_moves, calculate_global_regs_live,
5837         initialize_uninitialized_subregs, allocate_bb_life_data,
5838         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5839         mark_used_reg, count_or_remove_death_notes): Modified.
5840         * function.c (thread_prologue_and_epilogue_insns): Modified.
5841         * gcse.c (struct null_pointer_info): Change typo of current_block
5842         to basic_block.
5843         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5844         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5845         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5846         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5847         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5848         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5849         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5850         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5851         pre_delete, one_pre_gcse_pass, compute_transpout,
5852         invalidate_nonnull_info, delete_null_pointer_checks_1,
5853         free_code_hoist_mem, compute_code_hoist_vbeinout,
5854         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5855         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5856         compute_store_table, build_store_vectors, insert_insn_start_bb,
5857         insert_store, replace_store_insn, free_store_memory, store_motion):
5858         Modified.
5859         * global.c (global_alloc, global_conflicts, mark_elimination,
5860         build_insn_chain): Modified.
5861         * graph.c (print_rtl_graph_with_bb): Modified.
5862         * haifa-sched.c (sched_init): Modified.
5863         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5864         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5865         if_convert): Modified.
5866         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5867         compute_insert_delete, pre_edge_lcm, compute_available,
5868         compute_farthest, compute_nearerout, compute_rev_insert_delete,
5869         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5870         Modified.
5871         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5872         * loop.c (loop_dump_aux): Modified.
5873         * predict.c (combine_predictions_for_insn, estimate_probability,
5874         last_basic_block_p, process_note_prediction, process_note_predictions,
5875         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5876         expensive_function_p, estimate_bb_frequencies,
5877         compute_function_frequency): Modified.
5878         * print-rtl.c (print_rtx): Modified.
5879         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5880         get_exec_counts, compute_branch_probabilities, compute_checksum,
5881         branch_prob, find_spanning_tree): Modified.
5882         * recog.c (split_all_insns, peephole2_optimize): Modified.
5883         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5884         convert_regs_1, convert_regs_2, convert_regs): Modified.
5885         * regclass.c (scan_one_insn, regclass): Modified.
5886         * regmove.c (mark_flags_life_zones, regmove_optimize,
5887         combine_stack_adjustments): Modified.
5888         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5889         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5890         * reorg.c (dbr_schedule): Modified.
5891         * resource.c (find_basic_block, init_resource_info): Modified.
5892         * sbitmap.c (sbitmap_intersection_of_succs,
5893         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5894         sbitmap_union_of_preds): Modified.
5895         * sched-deps.c (init_dependency_caches): Modified.
5896         * sched-ebb.c (schedule_ebbs): Modified.
5897         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5898         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5899         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5900         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5901         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5902         ssa_const_prop): Modified.
5903         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5904         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5905         * ssa.c (remove_phi_alternative, find_evaluations,
5906         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5907         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5908         make_regs_equivalent_over_bad_edges,
5909         make_equivalent_phi_alternatives_equival,
5910         compute_conservative_reg_partition,
5911         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5912         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5913         Modified.
5914
5915 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
5916
5917         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5918
5919 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
5920
5921         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5922         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5923         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5924         calling CONSTANT_POOL_ADDRESS_P.
5925         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5926         to decide whether to define __arm__ or __thumb.
5927         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5928         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5929
5930 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5931
5932         * config/arc/arc.h (CPP_PREDEFINES): Remove.
5933         (CPP_SPEC): Update.
5934         (TARGET_CPU_CPP_BUILTINS): New.
5935
5936 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5937
5938         * cpphash.h (cpp_macro): Move here, and make expansion a union.
5939         * cppmacro.c (cpp_macro): Remove.
5940         (enter_macro_context, replace_args, warn_of_redefinition,
5941         _cpp_create_definition, cpp_macro_definition): Update.
5942
5943 2002-05-16  Jason Merrill  <jason@redhat.com>
5944
5945         * config/mips/mips.c (mips_output_external): Don't do sdata
5946         optimization for a variable with DECL_COMDAT set.
5947
5948 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5949
5950         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5951         Cleanups for accepting modifiers on pointers.
5952         Fix predicate typos.
5953         Allow long pointers as well as int pointers.
5954
5955 2002-05-15  Richard Henderson  <rth@redhat.com>
5956
5957         * varasm.c (merge_weak): Remove special case for extern and common.
5958
5959 2002-05-15  Matt Hiller  <hiller@redhat.com>
5960
5961         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5962         XFAILing.
5963         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5964         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5965         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5966         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5967         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5968         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5969
5970 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5971
5972         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5973
5974 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5975
5976         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5977         ("altivec_mfvscr"): Read from VSCR.
5978
5979         Add vscr sets for the following insns: altivec_vctuxs,
5980         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5981         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5982         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5983         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5984         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5985         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5986         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5987         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5988         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5989         altivec_vsum2sws, altivec_vsumsws.
5990
5991         * config/rs6000/rs6000.h: Add VSCR fixed register.
5992         (CALL_REALLY_USED_REGISTERS): Add vscr.
5993         (CALL_USED_REGISTERS): Same.
5994         (FIXED_REGISTERS): Same.
5995         (REG_ALLOC_ORDER): Same.
5996         (reg_class): Add VSCR_REGS.
5997         (REG_CLASS_NAMES): Same.
5998         (REG_CLASS_CONTENTS): Same.
5999         (VSCR_REGNO): New.
6000         (REGISTER_NAMES): Add vscr.
6001         (DEBUG_REGISTER_NAMES): Same.
6002         (ADDITIONAL_REGISTER_NAMES): Same.
6003         (FIRST_PSEUDO_REGISTER): Increment.
6004         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6005
6006 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
6007
6008         * fold-const.c (fold): Fix a typo.
6009
6010 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
6011
6012         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6013         comparison against the highest or lowest integer value before
6014         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6015         transformation and that of an unsigned comparison against 0
6016         right after.
6017
6018 2002-05-15  Richard Henderson  <rth@redhat.com>
6019
6020         * varasm.c (merge_weak): Error for any weakening after definition.
6021         Adjust weakening after use warning to catch more cases.
6022         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6023         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6024
6025 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
6026
6027         * invoke.texi (-malign-double): Re-add lost warning.
6028
6029         * i386-protos.h (x86_output_mi_thunk): Declare.
6030         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6031         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6032
6033         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6034         when flag_asynchronous_unwind_tables is set.
6035
6036         * flags.h (flag_reorder_functions): Declare.
6037         * function.c (prepare_function_start): Initialize frequnecy.
6038         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
6039         * Makefile.in (predict.o): Add dependency on target.h and params.h
6040         * defaults.h (HOT_TEXT_SECTION_NAME,
6041         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6042         * predict.c (choose_function_section): New function.
6043         (estimate_bb_frequencies): Use it.
6044         * toplev.c (flag_reorder_functions): New global variable.
6045         (lang_independent_options): New.
6046         (parse_options_and_default_flags): Set.
6047         * varasm.c (assemble_start_function): Bypass functdion alignment
6048         for never executed functions.
6049         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6050         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
6051         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6052         Document.
6053
6054         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6055
6056         * predict.c: Inlude profile.h
6057         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6058         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6059         Use the information about maximal counter in the program.
6060
6061         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
6062
6063         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6064         probably_never_executed_bb_p): New functions.
6065         * cfgcleanup.c (outgoing_edges_match): Use them.
6066         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6067         (maybe_hot_bb_p, probably_cold_bb_p,
6068         probably_never_executed_bb_p): New functions.
6069
6070         * function.h (function): Add new field function_frequency.
6071         * predict.c (compute_function_frequency): New function.
6072         (estimate_probability): Call it.
6073
6074 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
6075
6076         PR optimization/5172, optimization/5200
6077         * gcse.c (gcse_main): Disable store_motion.
6078
6079 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
6080
6081         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6082         (c_common_nodes_and_builtins): Use it.
6083         (builtin_define_with_value): New function.
6084         (cb_register_builtins): Define __SIZE_TYPE__,
6085         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6086         using builtin_define_with_value.  Use consistent notation when
6087         defining __GXX_WEAK__.
6088         (WCHAR_TYPE_SIZE): Don't redefine.
6089         (combine_strings): Don't use WCHAR_TYPE_SIZE.
6090
6091         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6092         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6093         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6094         * tradcpp.c (initialize_builtins): Likewise.
6095         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6096
6097         * c-lex.h (builtin_define_with_value): Prototype.
6098         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6099         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6100         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6101
6102         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6103         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6104         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6105         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6106         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6107         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6108         config/sparc/sol2-bi.h, config/sparc/sparc.h:
6109         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
6110         to __SIZE_TYPE__ etc from all spec strings. When this makes
6111         extra specs empty, delete them.
6112
6113 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6114
6115         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6116         for PA8000 or generating dwarf2 call frame information.
6117         (output_call): Remove DO_FRAME_NOTES check from return pointer
6118         optimization.
6119         (following_call): Return 0 when scheduling for PA8000 or generating
6120         dwarf2 call frame information.  Revise comment.
6121
6122 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6123
6124 config/alpha:
6125         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6126         and __IEEE_FP_INEXACT as appropriate.
6127         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6128         (CPP_SPEC): Remove ieee defines.
6129         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6130
6131 2002-05-14  Richard Henderson  <rth@redhat.com>
6132
6133         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6134         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6135
6136 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6137
6138         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6139         (CPP_SPEC): Update.
6140         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6141         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6142         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6143         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6144         (EXTRA_SPECS): Update.
6145         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6146         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6147         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6148         define TARGET_OS_CPP_BUILTINS if necessary.
6149
6150 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6151
6152         * gcc.c (cpp_options): Must pass -m* and -f* options
6153         to the front end even when only preprocessing.
6154         (cc1_options): Remove redundant -lang-c.
6155         * tradcpp.c (main): Ignore -m options.
6156 objc:
6157         * lang-specs.h: Similarly.
6158
6159 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6160
6161         * genautomata.c (transform_3): Add code for transformation
6162         `(A,B,...)+C -> A+C,B,...'.
6163
6164 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
6165
6166         * final.c (end_final): Do not output profile_arcs constructor, when
6167         no functions are instrumented.
6168
6169 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
6170
6171         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6172
6173 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6174
6175         * doc/install.texi: Remove special markup originally required for
6176         HTML generation with texi2html.
6177
6178 2002-05-14  Andreas Schwab  <schwab@suse.de>
6179
6180         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6181         SELECT_SECTION.
6182         (UNIQUE_SECTION): Define to get small data correctly.
6183
6184         * varasm.c (resolve_unique_section): Add third parameter
6185         flag_function_or_data_sections and use it instead of
6186         flag_function_sections.
6187         (assemble_start_function): Pass flag_function_sections.
6188         (asm_emit_uninitialised): Pass flag_data_sections.
6189         (assemble_variable): Likewise.
6190
6191 2002-05-14  Richard Henderson  <rth@redhat.com>
6192
6193         * config/i386/i386.md: Use define_constants for unspec numbers.
6194         * config/i386/i386.c: Likewise.
6195
6196 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6197
6198         * doc/contrib.texi: Update my entry.
6199
6200 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
6201
6202         * fixinc/inclhack.def (winidss_valist): Limit applicability.
6203         * fixinc/fixincl.x: Regenerated.
6204         * fixinc/tests/base/math.h: Update.
6205         * fixinc/tests/base/testing.h: Likewise.
6206
6207 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
6208
6209         * genattr.c (gen_attr): Don't emit a comma after the last
6210         enumerator.
6211
6212 2002-05-13  Richard Henderson  <rth@redhat.com>
6213
6214         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6215         by non-local gotos.
6216         * recog.c (peephole2_optimize): Likewise.
6217
6218 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
6219
6220         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6221         input to O_BINARY.
6222
6223 2002-05-13  Jeffrey A Law  (law@redhat.com)
6224
6225         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6226         Update prototype and callers.
6227         (propagate_one_insn): Stack pointer adjustments kill MEMs on
6228         the mem_set_list which reference the stack pointer, as do
6229         calls to constant functions as they may clobber outgoing
6230         argument space.
6231
6232         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6233
6234         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6235         (ia32_multipass_dfa_lookahead): New function.
6236
6237 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6238
6239         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6240         (translate_options): Remove 'V'.
6241         (process_command): Similarly.
6242 doc:
6243         * invoke.texi: Remove documentation of 'V'.
6244
6245 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6246
6247         * config/s390/linux.h: Revert 2002-04-22 changes.
6248
6249 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
6250
6251         * config/fr30/fr30.md: Only allow splits of immediate loads
6252         if the destination is a register.
6253
6254 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6255
6256         * Makefile.in (c-common.o, cppinit.o): Update.
6257         * c-common.c: Include except.h.
6258         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6259         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6260         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6261         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6262         CPP_PREDEFINES): Handle here.
6263 config:
6264         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6265         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6266         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6267         TARGET_OS_CPP_BUILTINS.
6268         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6269         (CPP_SPEC, EXTRA_SPECS): Update.
6270         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6271         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6272         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6273         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6274         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6275 doc:
6276         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6277         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6278
6279 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6280
6281         * emit-rtl.c (global_rtl): Update comment.
6282         (const_double_htab, const_double_htab_hash,
6283         const_double_htab_hash, lookup_const_double): New.
6284         (const_int_htab_hash, const_int_htab_eq): Remove const
6285         qualifiers, which cause tons of warnings with RTL checking on.
6286         (gen_rtx_CONST_DOUBLE): Deleted.
6287         (const_double_from_real_value): New function - bears some
6288         resemblance to the former immed_real_const_1.
6289         (immed_double_const): Moved here from varasm.c and
6290         simplified.
6291         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6292         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6293         (gen_rtx): Use immed_double_const.
6294         (init_emit_once): Initialize the const_double_htab.  Use
6295         REAL_VALUE_FROM_INT where possible.  Can now use
6296         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6297         * varasm.c (struct varasm_status): Remove x_const_double_chain.
6298         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6299         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6300         (init_varasm_status, mark_varasm_status): Don't touch
6301         x_const_double_chain.
6302
6303         * output.h: Delete prototype for clear_const_double_mem.
6304         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
6305         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
6306         const_double_from_real_value, not immed_real_const_1, and use
6307         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
6308         CONST_DOUBLE_ATOF.
6309         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6310         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6311         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6312         (gen_rtx_REG): Second arg is unsigned.
6313
6314         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6315         (excluded_rtx): New, return true for CONST_DOUBLE.
6316         (genmacro): Write nothing for excluded codes.
6317         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6318         * expr.c (expand_expr): Likewise.
6319         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6320         CONST_DOUBLE_CHAIN.
6321         * toplev.c (rest_of_compilation): Don't call
6322         clear_const_double_mem.
6323
6324         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6325         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6326         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6327         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6328         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6329         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6330         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6331         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6332
6333 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6334
6335         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6336
6337 2002-05-12  Tom Tromey  <tromey@redhat.com>
6338
6339         * tree.h (copy_node): Don't mention TREE_PERMANENT.
6340
6341 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6342
6343         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6344         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
6345         * gensupport.h: Prototype new routines.
6346         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
6347         use of printf.
6348         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6349         (next_comma_elt): Use scan_comma_elt.
6350
6351         * config/i386/i386.md: Use new attribute notation to break up
6352         long lines in define_attr forms.
6353
6354 2002-05-12  Richard Henderson  <rth@redhat.com>
6355
6356         * expr.c (compress_float_constant): New.
6357         (emit_move_insn): Use it.
6358         (float_extend_from_mem): New.
6359         (init_expr_once): Initialize it.
6360         * real.c (exact_real_truncate): New.
6361
6362         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6363         dropped into memory; penalize for size.
6364         (RTX_COSTS): FLOAT_EXTEND is free.
6365         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6366         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6367
6368 2002-05-12  Richard Henderson  <rth@redhat.com>
6369
6370         * profile.h (profile_info): Add missing extern to declaration.
6371         * profile.c (profile_info): Define it.
6372
6373 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6374
6375         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6376         used for DImode and TImode.
6377
6378 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6379
6380         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6381         fake a newline.
6382
6383 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
6384
6385         * config/rs6000/rs6000.c (rs6000_default_long_calls,
6386         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6387         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6388         (rs6000_override_options): Handle -m(no-)longcall.
6389         (init_cumulative_args, output_mi_thunk): Check for both
6390         longcall and shortcall attributes on the function.
6391         (rs6000_attribute_table): Add "shortcall".
6392         (rs6000_handle_longcall_attribute): Update comment.
6393         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6394         altivec_expand_ternop_builtin): Add default clauses to switches
6395         to silence warnings.
6396
6397         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6398         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
6399         (TARGET_OPTIONS): Add longcall and no-longcall.
6400
6401         * config/rs6000/rs6000.md (call_nonlocal_sysv,
6402         call_value_nonlocal_sysv): Split by alternatives.  One pair
6403         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6404         the call cookie.  The other pair accepts only LR/CTR and has
6405         no restriction.
6406
6407         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6408         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6409         tmake_file.
6410         * config/rs6000/rs6000-c.c: New file.
6411         * config/rs6000/t-rs6000-c-rule: New file.
6412         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6413         Prototype rs6000_pragma_longcall.
6414
6415         * doc/extend.texi: Document shortcall attribute.
6416         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6417
6418 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6419
6420         * reorg.c (dbr_schedule): Remove unnecessary test.
6421
6422 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
6423
6424         * i386.md (testsi to testqi spliters): New.
6425
6426         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
6427
6428         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6429
6430         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
6431
6432         * basic-block.h: New flag EDGE_CAN_FALLTHRU
6433         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6434         that can be made fallthru.
6435
6436         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
6437
6438         * cfglayout.c (cleanup_unconditional_jumps): New static function.
6439         (cfg_layout_initialize): Use it.
6440
6441 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6442
6443         * config/avr/avr.c (avr_mcu_types): Update supported devices.
6444         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6445         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6446
6447 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
6448
6449         * dbxout.c: Fix formatting.
6450         * dependence.c: Likewise.
6451         * df.c: Likewise.
6452         * diagnostic.c: Likewise.
6453         * doloop.c: Likewise.
6454         * dominance.c: Likewise.
6455         * doschk.c: Likewise.
6456         * dwarf2asm.c: Likewise.
6457         * dwarf2out.c: Likewise.
6458         * dwarfout.c: Likewise.
6459
6460 2002-05-10  Richard Henderson  <rth@redhat.com>
6461
6462         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
6463         Convert integers constants as needed.  Replace "nwords" field with
6464         "sizeof_bb".
6465         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6466         * function.h: Fix typo in comment.
6467         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6468
6469 2002-05-10  Roger Sayle  <roger@eyesopen.com>
6470
6471         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6472         into the equivalent (signed char)c > 0.
6473
6474 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
6475
6476         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6477         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6478         (struct prefetch_info): Fix spelling of member bytes_accessed.
6479         (emit_prefetch_instructions): Make dump messages more regular;
6480         restructure code to add more dump messages; use new macros for
6481         heuristics. (There are no code generation changes in any of this).
6482
6483 2002-05-10  David S. Miller  <davem@redhat.com>
6484
6485         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6486         (struct rtx_def): Update unchanging flag comment.
6487         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6488         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6489         to be handled to INSN too.
6490         (dbr_schedule): Likewise.
6491         * resource.c (next_insn_no_annul): Likewise.
6492
6493         * cse.c (rtx_cost): Remove multiplication by power of 2 special
6494         casing.
6495
6496 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6497
6498         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6499         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6500         (possibly) work around broken /bin/sh.
6501
6502 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6503
6504         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6505         . as N64/N32 libgcc_s.so subdirs.
6506
6507 2002-05-10  David S. Miller  <davem@redhat.com>
6508
6509         * config/sparc/sparc.md: Use define_constants for unspec numbers.
6510
6511         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6512         more accurately.
6513         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6514         comment.
6515         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6516         * doc/rtl.texi: Document these macros more accurately.
6517         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6518         JUMP_INSNs and CALL_INSNs.
6519         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6520         or INSN_FROM_TARGET_P if the code is appropriate.
6521
6522 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6523
6524         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6525         before using SYMBOL_REF_FLAG (addr).
6526
6527         * config/avr/avr-protos.h (avr_io_address_p): Declare.
6528         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6529         Make non-static.  Update all callers.
6530         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6531         New insns to clear/set/test a single bit in I/O address space.
6532
6533 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6534
6535         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6536
6537 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6538
6539         * Makefile.in: Update.
6540         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6541         builtin_define_std): New.
6542         (c_common_init): Register CPP builtins callback.
6543         * c-common.h (flag_iso, flag_undef): New.
6544         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6545         * c-lex.c: Don't include target.h.
6546         (cb_register_builtins): Move to c-common.c.
6547         (init_c_lex): Don't register hook here.
6548         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6549         (cpp_define, cpp_assert): Remove.
6550         * gcc.c (cc1_options): Pass -undef to front end.
6551         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6552         (TARGET_INITIALIZER): Update.
6553         * target.h (struct cpp_reader): Don't predeclare.
6554         (struct gcc_target): Remove cpp builtin hook.
6555         * tree.c (default_register_cpp_builtins): Remove.
6556 doc:
6557         * tm.texi: Update.
6558
6559 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6560
6561         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6562
6563 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6564
6565         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6566         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6567
6568 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6569
6570         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6571         * config/sparc/libgcc-sparc-glibc.ver: New file.
6572         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6573         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6574
6575 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6576
6577         PR target/6429
6578         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6579         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6580         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6581         base multilibs.
6582         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6583         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6584         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6585         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6586
6587 2002-05-09  Richard Henderson  <rth@redhat.com>
6588
6589         * config/ia64/ia64.md: Use define_constants for unspec numbers.
6590         * config/ia64/ia64.c: Likewise.
6591
6592 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
6593
6594         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6595         (save_restore_insns): Likewise.
6596         (mips_expand_prologue, mips_expand_epilogue): Update callers.
6597         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6598
6599 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
6600
6601         * athlon.md, k6.md, pentium.md, ppro.md): New files.
6602         * i386.md: Move scheduling information into new files.
6603
6604         * i386.md (type attribute): Add "rotate" for rotate insns.
6605         (rotate insns): Set type to "rotate".
6606         (various attributes and function units): Treat rotate like shift.
6607         (pent_pair attribute): Only rotates by one bit position are
6608         pairable.
6609         (sbb insns): Explicitly set pent_pair attribute on a couple
6610         that were missing it.
6611
6612 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
6613
6614         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6615         make sure that buffer starts on odd word address.
6616         (sh_va_arg): Skip odd fp registers when reading a double precision
6617         value.
6618
6619 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6620
6621         * tree.h (preserve_data, object_permanent_p, type_precision):
6622         Remove.
6623
6624 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6625
6626         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6627         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6628 doc:
6629         * cpp.texi: Update for removal of obsolete features.
6630
6631 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
6632                           Jeffrey A Law  (law@redhat.com)
6633
6634         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
6635         the DFA interface for Pentium processors.
6636         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6637         (attr_pent_pair, ix86_pent_find_pair): Remove.
6638         (ix86_sched_reorder_pentium): Remove.
6639         (ix86_sched_reorder): Remove reordering for Pentium.
6640         * i386.md (Pentium scheduling): Rewrite using DFA description.
6641
6642 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6643
6644         * cfganal.c (can_fallthru): Fix fast path.
6645         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6646         with edges to the next block.
6647
6648 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
6649                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
6650
6651         * final.c (end_final): Use C trees to output data structures for profiling.
6652
6653         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
6654         (profile.o): New dependency profile.h
6655         (final.o): New dependency profile.h
6656         * profile.h: New file. New global structure profile_info.
6657         * final.h (count_edges_instrumented_now): Declare.
6658         (current_function_cfg_checksum): Declare.
6659         (function_list): New structure.
6660         (functions_head, functions_tail): New static variables.
6661         (end_final): Emits more data, removed some -ax stuff.
6662         (final): Stores function names and chcksums.
6663         * gcov-io.h (__write_gcov_string): New function.
6664         (__read_gcov_string): New function.
6665         * gcov.c (read_profile): New function.
6666         (create_program_flow_graph): Uses read_profile instead of reading
6667         da_file.
6668         (read_files): Removed da_file checking, it's done by read_profile now.
6669         * libgcc2.c (bb_function_info): New structure.
6670         (bb): New field in structure, removed some -ax stuff.
6671         (__bb_exit_func): Changed structure of da_file.
6672         * profile.c (count_edges_instrumented_now): New global variable.
6673         (current_function_cfg_checksum): New global variable.
6674         (max_counter_in_program): New global variable.
6675         (get_exec_counts): New function.
6676         (compute_checksum): New function.
6677         (instrument_edges): Sets count_edges_instrumented_now.
6678         (compute_branch_probabilities): Uses get_exec_counts instead of
6679         reading da_file.
6680         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6681         (init_branch_prob): Removed da_file checking, done in get_exec_counts
6682         now.
6683         (end_branch_prob): Removed da_file checking, done in get_exec_counts
6684         now.
6685         * gcov.texi: Updated information about gcov file format.
6686
6687 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6688
6689         * sbitmap.c: Fix formatting.
6690         * scan.c: Likewise.
6691         * scan-decls.c: Likewise.
6692         * sched-deps.c: Likewise.
6693         * sched-ebb.c: Likewise.
6694         * sched-rgn.c: Likewise.
6695         * sched-vis.c: Likewise.
6696         * sdbout.c: Likewise.
6697         * sibcall.c: Likewise.
6698         * simplify-rtx.c: Likewise.
6699         * ssa.c: Likewise.
6700         * ssa-ccp.c: Likewise.
6701         * ssa-dce.c: Likewise.
6702         * stmt.c: Likewise.
6703         * stor-layout.c: Likewise.
6704         * stringpool.c: Likewise.
6705
6706 2002-05-09  David S. Miller  <davem@redhat.com>
6707
6708         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6709
6710 2002-05-07  David S. Miller  <davem@redhat.com>
6711
6712         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6713         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6714         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6715         library implementation clobbers the output before the inputs
6716         are fully consumed, use stack temporary for the output.
6717
6718 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
6719
6720         * config/netbsd.h (CPP_SPEC): Remove.
6721         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6722         * config/i386/netbsd.h (CPP_SPEC): Define.
6723         * config/ns32k/netbsd.h (CPP_SPEC): Define.
6724         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6725         * config/sparc/netbsd.h (CPP_SPEC): Define.
6726         * config/vax/netbsd.h (CPP_SPEC): Define.
6727
6728 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6729
6730         * read-rtl.c: Fix formatting.
6731         * real.c: Likewise.
6732         * recog.c: Likewise.
6733         * regclass.c: Likewise.
6734         * regmove.c: Likewise.
6735         * reg-stack.c: Likewise.
6736         * reload1.c: Likewise.
6737         * reload.c: Likewise.
6738         * resource.c: Likewise.
6739         * rtlanal.c: Likewise.
6740         * rtl.c: Likewise.
6741         * rtl-error.c: Likewise.
6742
6743 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6744
6745         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6746         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6747
6748 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
6749
6750         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6751         use __SSE2__ macro instead.
6752         * config/i386/xmmintrin.h: Likewise.
6753
6754 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
6755
6756         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6757         and use it in all invocations of these macros.  Clean up comments.
6758         * rtl.c (rtl_check_failed_flag): Add an argument for the name
6759         of the flag access macro whose check failed.
6760         * doc/rtl.texi (Flags): Document additional flag uses.
6761
6762 2002-05-08  Robert Spier <rspier@pobox.com>
6763             Neil Booth  <neil@daikokuya.demon.co.uk>
6764
6765         PR preprocessor/6521
6766         * cppfiles.c (handle_missing_header): Don't do anything
6767         different for <> includes.
6768 doc:
6769         * cppopts.texi: Update documentation for -MG.
6770
6771 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6772
6773         * cpplex.c (cpp_interpret_charconst): Truncate as well as
6774         sign-extend.
6775 doc:
6776         * cpp.texi: Clarify multichar charconst valuation.
6777
6778 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6779
6780         * doc/invoke.texi: Document -mwindiss option.
6781
6782 2002-05-08  Jason Merrill  <jason@redhat.com>
6783
6784         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6785
6786         * dwarf2out.c (gen_type_die): Abort on broken recursion.
6787
6788         PR c++/6381
6789         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6790         REAL_CST.
6791
6792 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
6793
6794         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6795         little-endian multilibs to override arm/thumb multilibs.
6796         Do not build hardware floating point multilibs, nor apcs-26
6797         multilibs for the Thumb.
6798
6799 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6800
6801         PR c/6569.
6802         * varasm.c (mark_weak): New function.
6803         (merge_weak): Use it.  Do not call declare_weak.
6804         (declare_weak): Use merge_weak.
6805
6806 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6807
6808         * cse.c (dead_libcall_p): Update counts.
6809         (delete_trivially_dead_insns): Update call of dead_libcall_p.
6810
6811 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
6812
6813         * cfglayout.c (function_tail_eff_head): Rename to ...
6814         (function_footer): ... this one.
6815         (unlink_insn_chain): New functions.
6816         (label_for_bb): Only call block_label and emit debug message.
6817         (record_effective_endpoints): Actually unlink the headers and footers.
6818         (fixup_reorder_cahin): Re-insert the unlinked sequences.
6819         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6820         * cfglayout.h (struct reorder_block_def): New fields footer/header;
6821         remove eff_head/eff_end.
6822         * rtl.h (set_first_insn): Declare.
6823         * emit-rtl.c (set_first_insn): New function.
6824
6825         * cfglayout.c (fixup_reorder_chain): Dump duplicated
6826         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6827         cfg_layout_duplicate_bb): New global function.
6828         (duplicate_insn_chain): New static function.
6829         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6830         cfg_layout_duplicate_bb): Declare.
6831         (struct reorder_block_def): Add "original" field.
6832         * emit-rtl.c (emit_copy_of_insn_after): New function.
6833         * rtl.h (emit_copy_of_insn_after): Declare.
6834
6835         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6836         (fixup_reorder_chain): properly handle edges to exit block.
6837
6838 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6839                                Jan Hubicka  <jh@suse.cz>
6840
6841         * basic-block.h (note_prediction_to_br_prob): declare.
6842         * c-semantics.c: Inlucde predit.h
6843         (expand_stmt): predict GOTO_STMT as not taken.
6844         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6845         (cleanup_cfg): Do not free tail_recursion_list.
6846         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6847         (flow_delete_block): Kill predictions past end of basic block.
6848         * output.h (delete_unreachable_blocks): Declare.
6849         * predict.c (predicted_by_p, process_note_predictions,
6850         process_note_prediction, last_block_p): New function.
6851         (estimate_probability): Bypass loop on PRED_CONTINUE;
6852         do not handle noreturn heuristics; kill PRED_RETURN; add
6853         PRED_EARLY_RETURN.
6854         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6855         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6856         * predict.h (IS_TAKEN): New constant.
6857         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6858         * rtl.c (NOTE_INSN_PREDICTION): New.
6859         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6860         New macro.
6861         (insn_note): add NOTE_INSN_PREDICTION.
6862         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6863         CFG; free tail_recursion_label_list.
6864         * stmt.c: Include predict.h;
6865         (return_prediction): New.
6866         (expand_value_return): Use it.
6867         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6868
6869 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
6870
6871         * config/mips/mips.md: Name the unspecs with define_constant.
6872         (*HILO_delay): Rename to 'hilo_delay' (no star).
6873         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6874         (reload_outdi, reload_outsi): Likewise.
6875
6876 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
6877
6878         * toplev.c: Fix formatting.
6879
6880 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
6881
6882         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6883         * configure.in (ac_rtlflag_checking): New.
6884         * doc/install.texi (--enable-checking): Document RTL flag checking.
6885
6886 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6887
6888         * c-common.c (c_common_init): Set options->unsigned_wchar.
6889         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6890         group target dependencies.
6891         (init_builtins, cpp_handle_option): Update.
6892         * cpplex.c (cpp_interpret_charconst): Update.
6893         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6894         signed_char to unsigned_char, group target dependencies.
6895         * defaults.h (WCHAR_UNSIGNED): Remove.
6896         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6897 config:
6898         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6899         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6900         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6901         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6902         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6903 doc:
6904         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6905
6906 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6907
6908         * fixinc/inclhack.def (windiss_math1): New fix.
6909         (windiss_math2): Likewise.
6910         (windiss_valist): Likewise.
6911         * fixinc/fixincl.x: Regenerated.
6912
6913 2002-05-07  Andreas Jaeger  <aj@suse.de>
6914
6915         * genautomata.c (output_internal_min_issue_delay_func): Add
6916         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6917         (output_internal_trans_func): Likewise.
6918
6919 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
6920
6921         * pa.c (hppa_profile_hook): Use force_reg to get the address
6922         of the profile hook into an appropriate pseudo register.
6923
6924 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6925
6926         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6927         (LINK_START_SPEC): Handle it.
6928         (LINK_OS_SPEC): Likewise.
6929         (CPP_SPEC): Likewise.
6930         (STARTFILE_SPEC): Likewise.
6931         (LIB_SPEC): Likewise.
6932         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
6933         all platforms.
6934         (CRTSAVRES_DEFAULT_SPEC): New macro.
6935         (LIB_WINDISS_SPEC): New macro.
6936         (CPP_OS_WINDISS_SPEC): Likewise.
6937         (STARTFILE_WINDISS_SPEC): Likewise.
6938         (ENDFILE_WINDISS_SPEC): Likewise.
6939         (LINK_START_WINDISS_SPEC): Likewise.
6940         (LINK_OS_WINDISS_SPEC): Likewise.
6941         * config/rs6000/windiss.h: New file.
6942
6943 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
6944
6945         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6946
6947 2002-05-06  David S. Miller  <davem@redhat.com>
6948
6949         * config/sparc/sparc.md (shift insns): Do not mask off
6950         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6951         take care of it.
6952
6953 2002-05-06  Richard Henderson  <rth@redhat.com>
6954
6955         PR c++/6212
6956         * expr.c (highest_pow2_factor_for_type): New.
6957         (expand_assignment): Use it.
6958
6959 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
6960
6961         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6962         unspec_volatile.
6963         ("altivec_mfvscr"): Same.
6964
6965 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6966
6967         * rtl.h (struct rtx_def): Update comments.
6968         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
6969         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
6970         RTL_FLAG_CHECK macros with list of expected RTL codes.
6971         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6972         (rtl_check_failed_flag): New.
6973         * reload1.c (reload): Use REG macro before changing rtx to MEM.
6974         (reload_cse_noop_set_p): Check rtx code before using access macro.
6975         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6976         before using access macro.
6977
6978 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6979
6980         * doc/rtl.texi (Flags): Update to reflect current usage.
6981
6982 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6983
6984         PR opt/3995
6985         * fold-const.c (sign_bit_p): New function.
6986         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6987         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6988         Reapply fold when converting (A & C) == C into (A & C) != 0.
6989         (fold_binary_op_with_conditional_arg): Fix typo in comment.
6990
6991 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6992
6993         * c-common.c (warn_multichar): New.
6994         (c_common_init): Set CPP's warn_multichar.
6995         * c-common.h (warn_multichar): New.
6996         * c-decl.c (warn_multichar): Remove.
6997         * c-lex.c (lex_charconst): Update.
6998         * c-tree.h (warn_multichar): Remove.
6999         * cppexp.c (eval_token): Sign-extend charconst value.
7000         * cppinit.c (cpp_create_reader): Set warn_multichar.
7001         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7002         each character.  Update prototype.  Sign-extend the result.
7003         * cpplib.h: Fix conditions.
7004         (struct cpp_options): Add new warning flag.
7005         (cpp_interpret_charconst): Update prototype.
7006 doc:
7007         * cpp.texi: Update documentation.
7008
7009 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
7010
7011         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7012         Fix typo in usage of allof instead of unit.
7013
7014 2002-05-06  Richard Henderson  <rth@redhat.com>
7015
7016         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7017         and any jump or call for IN.
7018
7019 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
7020
7021         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
7022         -msse2.
7023         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
7024
7025 2002-05-06  Roger Sayle  <roger@eyesopen.com>
7026
7027         * fold-const.c (lshift-double): Cast the high word to an unsigned
7028         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7029         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7030         avoid compiler warning.  (fold): Remove redundant code from
7031         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7032
7033 2002-05-06  Jeff Law  <law@redhat.com>
7034
7035         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7036         * pa.c (pa_adjust_cost): Remove all true dependency cost
7037         adjustments.  Also remove support for non-DFA scheduling.
7038         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7039         to adjust true dependency costs.  Update various comments.
7040         (7100lc, 7200, 7300 scheduling): Simplify by combining the
7041         FP ALU & MPY units into a single unit.
7042
7043 2002-05-06  Catherine Moore  <clm@redhat.com>
7044
7045         * config/v850/v850.c (compute_register_save_size): Make sure
7046         to count all of the registers that will be saved.
7047
7048 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
7049
7050         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
7051
7052 2002-05-06  David S. Miller  <davem@redhat.com>
7053
7054         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7055         allow result to overlap input operands in memory.
7056
7057 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7058
7059 doc:
7060         * cpp.texi: Update multichar charconst docs.
7061
7062 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7063
7064         * cpplex.c (cpp_interpret_charconst): Sign-extend each
7065         character.  Don't ignore excess characters.  Treat
7066         multicharacter character constants as signed.
7067         (cpp_parse_escape): Clarify diagnostic.
7068
7069 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7070
7071         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7072         use add instead of shift.
7073         (ashldi3_sp64): Likewise.
7074         (ashlsi3_const1, ashldi3_const1): Remove.
7075         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7076         * config/sparc/sparc.c (const1_operand): New.
7077
7078 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
7079
7080         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7081
7082 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7083
7084         PR target/6561
7085         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7086
7087 2002-05-05  Richard Henderson  <rth@redhat.com>
7088
7089         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7090         memory latency adjustments.
7091         (alpha_variable_issue): Remove.
7092         (alpha_use_dfa_pipeline_interface): New.
7093         (alpha_multipass_dfa_lookahead): New.
7094         * config/alpha/alpha.md: Remove define_function_unit scheduling;
7095         include new dfa scheduling.
7096         (attr type): Add none.
7097         (blockage): Use it.
7098         * config/alpha/ev4.md: New.
7099         * config/alpha/ev5.md: New.
7100         * config/alpha/ev6.md: New.
7101
7102 2002-05-05  David S. Miller  <davem@redhat.com>
7103
7104         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7105
7106 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
7107
7108         * cse.c: Fix formatting.
7109         * emit-rtl.c: Likewise.
7110
7111 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7112
7113         * genautomata.c (initiate_states): Add additional guard to
7114         initialize `units_array'.
7115
7116 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7117
7118         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7119         process_unit_to_form_the_same_automaton_unit_lists,
7120         form_the_same_automaton_unit_lists
7121         check_unit_distributions_to_automata): New prototypes and
7122         functions.
7123         (check_automata): Rename it into `check_automata_insn_issues'.
7124         (unit_decl): New fields `the_same_automaton_unit' and
7125         `the_same_automaton_message_reported_p'.
7126         (unit_decl_t): New typedef.
7127         (the_same_automaton_lists): New gloval variable.
7128         (unit_regexp, unit_set_el, units_array, units_cmp,
7129         output_get_cpu_unit_code_func): Use the typedef.
7130         (evaluate_max_reserv_cycles): Increment
7131         `description->max_insn_reserv_cycles'.
7132         (initiate_states): Don't increment `max_cycles_num'.
7133         (transform_insn_regexps): Move code around transformation of
7134         regexps from `generate'.
7135         (generate): Remove call of `transform_insn_regexps'.
7136         (expand_automata): Call `transform_insn_regexps' and
7137         `check_unit_distributions_to_automata'.  Check errors before
7138         `generate'.
7139
7140         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7141         automaton `ultrasparc3_1'.
7142
7143 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7144
7145         * c-common.c (c_common_init): Set up CPP arithmetic.
7146         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7147         something reasonable for the host.
7148         (sanity_checks): Add checks.
7149         (cpp_read_main_file): Call sanity_checks() from here...
7150         (cpp_post_options): ... not here.
7151         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7152         * cpplib.h (struct cpp_options): New member int_precision.
7153
7154 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7155
7156         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7157
7158 2002-05-04  David S. Miller  <davem@redhat.com>
7159
7160         * config/sparc/linux.h, config/sparc/linux64.h
7161         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7162
7163         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7164         more RTX codes.
7165         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7166
7167         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7168         of SETs.
7169
7170 2002-05-05  Tim Josling  <tej@melbpc.org.au>
7171
7172         * treelang; New directory for new sample language treelang.
7173
7174 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7175
7176         * Makefile.in (c-lex.o): Update.
7177         * c-lex.c: Include target.h.
7178         (cb_register_builtins): New.
7179         (init_c_lex): Set builtins callback.
7180         * c-lex.h (cpp_define, cpp_assert): New prototypes.
7181         * cppinit.c (init_builtins): Use callback, including for
7182         GXX_WEAK.
7183         * cpplib.h (struct cpp_callbacks): New member.
7184         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7185         (TARGET_INITIALIZER): Update.
7186         * target.h (struct gcc_target): New hook.
7187         * tree.c (default_register_cpp_builtins): New.
7188         * tree.h (default_register_cpp_builtins): New.
7189 doc:
7190         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7191
7192 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7193
7194         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7195         (cpp_post_options): Move sanity checks to...
7196         (sanity_checks): New.
7197         * cpplex.c (maybe_read_ucs): Fix prototype.
7198         (parse_string, cpp_parse_escape): Cast for %c format specifier.
7199         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7200         if necessary.
7201
7202 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
7203
7204         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7205         builtins.  Use V2DI patterns instead of TI for logical operations.
7206         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7207         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7208         (ix86_expand_builtins): Change the pattern used for movntdq.
7209         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7210         sse2_nandv2di3): New patterns.
7211         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7212         on operands.
7213         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7214         (cvtdq2pd): Correct mode on operand 1.
7215         (sse2_umulsidi3): Describe without unspec.
7216         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7217         machine modes.
7218         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7219         (ashlv2di3): Likewise, from sse2_ashlv2di3.
7220         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7221         ashlv4si3, ashlv2di3): Use SImode for shift count.
7222         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7223         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7224         New patterns.
7225         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7226         New typedefs.
7227         (__m128i, __m128d): New macros.
7228         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7229         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7230         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7231         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7232         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
7233         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
7234         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7235         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
7236         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
7237         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7238         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7239         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7240         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7241         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7242         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7243         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7244         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7245         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7246         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7247         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7248         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7249         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7250         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7251         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7252         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7253         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7254         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7255         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7256         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7257         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7258         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7259         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7260         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7261         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7262         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7263         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7264         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7265         functions.
7266         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
7267         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7268
7269 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7270
7271         * dwarf2out.c: Fix formatting.
7272         * varasm.c: Likewise.
7273
7274 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
7275
7276         PR c/6543
7277         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7278         clobber and use result as temporary value.
7279
7280 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7281
7282         * expr.c (force_operand): Use expand_simple_* to handle more
7283         cases.
7284
7285 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7286
7287         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7288         and sign-extension.
7289         (lex_charconst): Update for change in prototype of
7290         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
7291         appropriately.
7292         * cpphash.h (BITS_PER_CPPCHAR_T): New.
7293         * cppinit.c (cpp_create_reader): Initialize them for no
7294         change in semantics.
7295         (cpp_post_options): Add sanity checks.
7296         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7297         and truncation issues.  Calculate in type cppchar_t.
7298         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7299         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
7300         run-time dependent precision correctly.  Return whether the
7301         result is signed or not.
7302         * cpplib.c (dequote_string): Use cppchar_t; update.
7303         * cpplib.h (cppchar_signed_t): New.
7304         struct cpp_options): New precision members.
7305         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
7306         * cppexp.c (eval_token): Update.
7307
7308 2002-05-03  David S. Miller  <davem@redhat.com>
7309
7310         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7311         * config/sparc/sparc.c (sparc_rtx_costs): New function
7312         implementing RTX_COSTS and CONST_COSTS.
7313         * config/sparc/sparc.h (CONST_COSTS): Delete.
7314         (RTX_COSTS_CASES): Define.
7315         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7316         the work.
7317
7318         * config/sparc/sparc.md (DFA schedulers): Split out...
7319         * config/sparc/cypress.md, config/sparc/hypersparc.md,
7320         config/sparc/sparclet.md, config/sparc/supersparc.md,
7321         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7322
7323         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7324         checks on it, always defined for Sparc.
7325
7326         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7327         Tweak, and add more detailed comments.
7328
7329 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
7330
7331         * Re-apply patch accidentally reverted with
7332         DFA scheduler merge: remove all rules and variables to slurp
7333         source files out of libiberty and rebuild them with HOST_CC.
7334         ($(HOST_PREFIX_1)varray.o): New rule.
7335         (genattrtab rule): Word wrap.
7336
7337 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7338
7339         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7340         (CPP_SUBTARGET_SPEC): Define.
7341         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7342         cpp_subtarget specs.
7343         (CPP_SPEC): Redefine to include %(cpp_subtarget).
7344
7345 2002-05-03  David S. Miller  <davem@redhat.com>
7346
7347         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7348         * target.h (struct gcc_target): Delete cycle_display member.
7349
7350         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7351         (rtx_needs_barrier): Delete reference to cycle_display unspec.
7352         (ia64_sched_reorder2): Mention need for cycle display handling
7353         once such notes exist.
7354
7355 2002-05-03  Richard Henderson  <rth@redhat.com>
7356
7357         * real.c (etoasc): Strip most trailing zeros for clarity.
7358         * sched-vis.c: Include real.h.
7359         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7360         * Makefile.in (sched-vis.o): Add real.h.
7361
7362 2002-05-03  David S. Miller  <davem@redhat.com>
7363
7364         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7365         no longer needed.
7366
7367 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
7368
7369         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7370         when we get an out of range literal.
7371         (altivec_expand_ternop_builtin): Same.
7372         (altivec_expand_unop_builtin): Same.
7373         (altivec_expand_builtin): Same, for dss.
7374         (altivec_expand_builtin): Use trees instead of rtl when
7375         determining literal argument validity.
7376
7377 2002-05-03  David S. Miller  <davem@redhat.com>
7378
7379         Delete cycle display scheduling hook.
7380         * config/ia64/ia64.c (ia64_cycle_display,
7381         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7382         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7383         and use emit_insn_before instead of ia64_emit_insn_before.
7384         * config/ia64/ia64.md (unspec usage): Delete cycle display.
7385         (cycle_display): Delete insn pattern.
7386         * config/sparc/sparc.md (unspec usage): Delete cycle display.
7387         (cycle_display): Delete insn pattern.
7388         * config/sparc/sparc.c (sparc_cycle_display,
7389         TARGET_SCHED_CYCLE_DISPLAY): Delete.
7390         * doc/md.texi (cycle_display): Don't mention.
7391         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
7392
7393 2002-05-03  Richard Henderson  <rth@redhat.com>
7394
7395         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7396         * recog.h: Declare them.
7397
7398         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7399         * config/sparc/sparc.md: Use store_data_bypass_p instead.
7400         * config/sparc/sparc-protos.h: Update.
7401
7402 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7403
7404         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7405         -D__arch64__.  Add -D_LP64.
7406         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7407         from sparc.h.
7408         (CPP_ARCH64_SPEC): Likewise.
7409         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7410         (NO_BUILTIN_SIZE_TYPE): Undef.
7411
7412 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
7413
7414         * genautomata.c (min_issue_delay_pass_states): Change return type
7415         in the prototype.
7416         (min_issue_delay_pass_states): Change the algorithm.
7417         (min_issue_delay): Set up min_insn_issue_delay for the state.
7418         (output_min_issue_delay_table): Interchange the nested loops and
7419         and initiate min_insn_issue_delay for states.
7420
7421 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
7422
7423         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
7424         jump is simplejump.
7425
7426 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
7427
7428         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
7429         sequence.
7430
7431 2002-05-03  Richard Henderson  <rth@redhat.com>
7432
7433         PR opt/6534
7434         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7435         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7436         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7437         code before JUMP, not EARLIEST.
7438
7439 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
7440
7441         * c-format.c (check_format_info_main): Don't check for presence of
7442         parameter for * width until after operand number has been read,
7443         and only check for it if format parameters are available.
7444         Fixes PR c/6547.
7445
7446 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7447
7448         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7449         (LINK_SPEC): Undef before defining.
7450
7451 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7452
7453         PR preprocessor/6489
7454         * tradcpp.c (fixup_newlines): New.
7455         (main, finclude): Use it.
7456
7457 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
7458
7459         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7460         * config/mips/mips.c (mips_unique_section): Strip encoding from
7461         decl name.
7462
7463 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7464
7465         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7466         mode.
7467
7468 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7469
7470         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7471         (Specific): Removed buildstats references.
7472         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7473         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7474         Accomodate Solaris versions beyond 8.
7475         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7476         (Specific, *-*-solaris2.8): Removed, obsolete.
7477
7478 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7479
7480         PR target/6542
7481         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7482         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7483         fill leaf_reg_remap with identity.
7484         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7485
7486 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7487
7488         * config/h8300/crti.asm: Remove trailing spaces.
7489         * config/h8300/h8300.c: Likewise.
7490         * config/h8300/lib1funcs.asm: Likewise.
7491
7492 2002-05-02  Jason Merrill  <jason@redhat.com>
7493
7494         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7495         * c-decl.c (c_init_decl_processing): Use it.
7496         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7497         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7498         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7499
7500 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7501
7502         * regrename.c: Fix formatting.
7503         * tree.c: Likewise.
7504
7505 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7506
7507         * i386.md (attribute memory): Handle compares properly.
7508
7509 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
7510
7511         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
7512         to none.
7513
7514 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7515
7516         * function.c: Fix formatting.
7517
7518 2002-05-02  Jan Hubicka  <jh@suse.cz>
7519
7520         * haifa-sched.c (schedule_insn): Print table of instructions and
7521         reservations.
7522         (sched_block): Do not print ready list at verbosity level 1.
7523         * sched-vis.c (print_insn): Make global.
7524         * sched-ebb.c (ebb_print_insn): Rename from...
7525         (print_insn): ... this one.
7526         * sched-int.h (print_insn): Declare
7527
7528 2002-05-02  Richard Henderson  <rth@redhat.com>
7529
7530         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7531         emitted by cycle_display.
7532
7533 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
7534
7535         * doc/install.texi (*-*-freebsd*): Update to latest status.
7536
7537 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR target/6540
7540         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7541         * config/float-sparc.h: Assume 128-bit long double if
7542         __LONG_DOUBLE_128__ is defined.
7543
7544 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
7545
7546         * genattrtab.c (write_function_unit_info): Add a dummy element
7547         when num_units == 0.
7548
7549 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7550
7551         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7552         TYPE_MODE (double_type_node) instead of DFmode.
7553
7554 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
7555
7556         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7557         jumps post reload.
7558         * toplev.c (rest_of_compilation): Revert Richard's patch.
7559
7560 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7561
7562         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7563
7564 2002-05-02  Catherine Moore  <clm@redhat.com>
7565
7566         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7567
7568 2002-05-02  Kazu Hirata  <kazu@hxi.com>
7569
7570         * combine.c: Fix comment typos.
7571         * expr.c: Likewise.
7572         * genautomata.c: Likewise.
7573         * stmt.c: Likewise.
7574         * tree.h: Likewise.
7575
7576 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7577
7578         * doc/install.texi: State GNAT version requirements.
7579
7580 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
7581
7582         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7583         of the frame pointer or arg pointer register which strict register
7584         checking is not enabled.
7585
7586 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
7587
7588         * gcc.dg/altivec-8.c: New.
7589
7590         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7591         PRE_INC and PRE_DEC for altivec modes.
7592
7593 2002-05-01  Bruce Korb  <bkorb@gnu.org>
7594
7595         * fixinc/check.tpl(set-writable): make sure the function exists first
7596         * fixinc/inclhack.def(alpha_assert): fix test_text
7597         * fixinc/tests/base/assert.h: add in missing result
7598
7599 2002-05-01  Jeff Law  <law@redhat.com>
7600
7601         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7602         'T' constraint.
7603
7604 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
7605
7606         * dbxout.c (dbxout_type): Emit size information for range types,
7607         as well, but only when using GDB extensions.
7608
7609 2002-05-01  Richard Henderson  <rth@redhat.com>
7610
7611         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7612         target-independent gnu binutils date test.
7613
7614 2002-05-01  Richard Henderson  <rth@redhat.com>
7615
7616         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7617         info before expunging the block.
7618
7619 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7620
7621         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7622         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
7623         -M -or -MM is in effect.
7624
7625 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
7626
7627         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
7628         A29k configurations.
7629         * doc/install.texi: Update to match.
7630
7631 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7632
7633         PR bootstrap/6514
7634         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7635         for duplicates. Always loop over whole list.
7636
7637 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7638
7639         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7640
7641 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7642
7643         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7644         support routines.
7645
7646 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7647
7648         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7649
7650 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
7651
7652         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7653         (nabs_nopower): Same.
7654         (floatdisf2): New pattern.
7655         (absdi2): Convert to define_insn_and_split.
7656         (nabsdi2): Same.
7657         (trunctfsf2): Same.
7658         (floatditf2): Same.
7659         (floatsitf2): Same.
7660         (fix_trunctfdi2): Same.
7661         (fix_trunctfsi2): Same.
7662
7663 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
7664
7665         * doc/install.texi: Update Texinfo version requirement
7666         documentation.
7667
7668 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7669
7670         PR target/6512, PR target/5628
7671         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7672         when memory is not aligned.
7673         (movdf_insn_v9only_vis): Likewise.
7674         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7675         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7676         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7677
7678 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
7679
7680         * gcc.dg/altivec-7.c: New.
7681
7682         * config/rs6000/altivec.h: Cleanup.
7683
7684 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
7685
7686         * doc/invoke.texi (Option Summary): Add -mvrsave=.
7687         (RS/6000 and PowerPC Options): Document -mvrsave=.
7688
7689         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7690         (rs6000_altivec_vrsave_string): Same.
7691         (rs6000_override_options): Call rs6000_parse_vrsave_option.
7692         (rs6000_parse_vrsave_option): New.
7693         (rs6000_stack_info): Only generate vrsave instructions when
7694         TARGET_ALTIVEC_VRSAVE.
7695
7696         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7697         (rs6000_altivec_vrsave_string): Define extern.
7698         (rs6000_altivec_vrsave): Same.
7699         (TARGET_ALTIVEC_VRSAVE): New.
7700
7701 2002-04-30  Richard Henderson  <rth@redhat.com>
7702
7703         PR opt/6516
7704         * toplev.c (rest_of_compilation): Don't run cross-jump before
7705         bb-reorder.
7706
7707 2002-04-30  Tom Rix  <trix@redhat.com>
7708
7709         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7710         check which_alternative.
7711
7712 2002-04-30  Kazu Hirata  <kazu@hxi.com>
7713
7714         * cpplex.c: Fix comment formatting.
7715         * function.c: Likewise.
7716         * integrate.c: Likewise.
7717         * regrename.c: Likewise.
7718         * sibcall.c: Likewise.
7719         * simplify-rtx.c: Likewise.
7720         * tree-inline.c: Likewise.
7721
7722 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7723
7724         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7725         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7726         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7727         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7728         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7729         * pa/x-ada: New file.  Define ADA_CFLAGS.
7730
7731 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
7732
7733         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7734         from MMIX_LAST_REGISTER_FILE_REGNUM.
7735         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7736         (struct machine_function): New member highest_saved_stack_register
7737         previously static variable in mmix.c.
7738         (MACHINE_DEPENDENT_REORG): Define.
7739         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7740         (MMIX_OUTPUT_REGNO): New.
7741         (mmix_target_asm_function_prologue): Move calculation of last used
7742         saved-stack-register into...
7743         (mmix_machine_dependent_reorg): New function.  Update to also handle
7744         !TARGET_ABI_GNU.
7745         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7746         register names, simplify somewhat by new variable regno.
7747         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
7748         register.
7749         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7750         emitting register names.
7751         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7752         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7753         Remove fixed FIXME.
7754         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7755         Declare.
7756
7757         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7758
7759 2002-04-30  Richard Henderson  <rth@redhat.com>
7760
7761         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7762         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7763         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7764         emit_tfmode_cvt): New.
7765         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7766         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7767         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7768         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7769         * config/sparc/sparc-protos.h: Update.
7770
7771 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
7772
7773         * install.texi (Final install): Add to the list of info to include
7774         in a report of a successful bootstrap, and add link to 3.1 list.
7775
7776 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
7777
7778         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7779         (mode): Add vector modes
7780         (i387): Kill attribute.
7781         (unit): New attribute.
7782         (length_immediate): Grok new types.
7783         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7784         (modrm): Use "unit".
7785         (memory): Handle MMX/SSE properly.
7786         (scheduling descriptions): Kill uses of fop1.
7787         (sse, mmx, fp patterns): Set type and mode properly.
7788
7789 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
7790
7791         * pa.c (override_options): Default to PA8000 scheduling.
7792         * doc/invoke.texi (HP-PA options): Mention newly added 7300
7793         scheduling parameter.
7794
7795         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7796         handling of double precision multiplies.
7797
7798         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7799         fpdiv and fpsqrt instructions.
7800         (7200 & 7300 scheduling): Fix typo in handling of
7801         store-load and store-store penalties.
7802
7803 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7804
7805         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7806         mips.  Add two missing commas.
7807
7808 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
7809
7810         * doc/contrib.texi (Contributors): Update Paolo Carlini's
7811         and Benjamin Kosnik's entries.
7812
7813 2002-04-29  David S. Miller  <davem@redhat.com>
7814
7815         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7816         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7817         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7818         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7819
7820 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7821
7822         * combine.c (find_split_point): Use gen_int_mode.
7823
7824 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
7825
7826         Merging code from dfa-branch:
7827
7828         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7829
7830         * genautomata.c (output_reserv_sets): Fix typo.
7831
7832         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
7833
7834         * genautomata.c (output_reserv_sets): Remove
7835         next_cycle_output_flag.
7836
7837         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
7838
7839         * sched-rgn.c (init_ready_list): Make the DFA code handle
7840         USE/CLOBBER insns in the same way as the traditional
7841         scheduler.
7842         (new_ready): Similarly..
7843
7844         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
7845
7846         * haifa-sched.c (schedule_block): Change the DFA state only after
7847         issuing insn.
7848
7849         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
7850
7851         * pa.c (hppa_use_dfa_pipeline_interface): New function.
7852         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7853         (override_options): Add PA7300 scheduling support.
7854         (pa_adjust_cost): Update various comments.  Properly
7855         handle anti and output dependencies when using the
7856         DFA scheduler.
7857         (pa_issue_rate): Add PA7300 scheduling support.
7858         (pa_can_combine_p): Call extract_insn before calling
7859         constrain_operands (taken from mainline tree).
7860         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7861         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
7862         descriptions using DFA descriptions.  Add PA7300
7863         scheduling support.
7864
7865         2002-03-30  David S. Miller  <davem@redhat.com>
7866
7867         Add UltraSPARC-III DFA scheduling support.
7868         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7869         Update FP conditional move on register insn patterns to use it, as
7870         appropriate.
7871         (define_attr cpu): Add ultrasparc3.
7872         (define_attr us3load_type): New, update integer load patterns to
7873         set it, as appropriate.
7874         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7875         (rest): Add UltraSPARC3 scheduling description.
7876         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7877         (PROCESSOR_ULTRASPARC3): New.
7878         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7879         ({ASM,CPP}_CPU_SPEC): Likewise.
7880         (REGISTER_MOVE_COST): Likewise.
7881         (RTX_COSTS): Likewise.
7882         * config/sparc/sparc.c (sparc_override_options,
7883         sparc_initialize_trampoline, sparc64_initialize_trampoline,
7884         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7885         sparc_issue_rate): Likewise.
7886         * config/sparc/sol2.h: Likewise.
7887         * config/sparc/sol2-sld-64.h: Likewise.
7888         * config/sparc/linux64.h: Likewise.
7889
7890         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
7891
7892         * doc/md.texi: Add comments about usage the latency time for the
7893         different dependencies and about case when two or more conditions
7894         in different define_insn_reservations returns TRUE for an insn.
7895
7896         * doc/md.texi: Add reference for automaton based pipeline
7897         description.
7898
7899         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
7900
7901         * doc/passes.texi: Add missed information about genattrtab.
7902
7903         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
7904
7905         * genautomata.c (output_automata_list_transition_code): Check
7906         automata_list on NULL.
7907
7908         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
7909
7910         * genautomata.c (output_insn_code_cases,
7911         output_automata_list_min_issue_delay_code,
7912         output_automata_list_transition_code,
7913         output_automata_list_state_alts_code): Comment the functions.
7914
7915         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7916
7917         * genautomata.c (automata_list_el_t): New typedef.
7918         (get_free_automata_list_el,free_automata_list_el,
7919         free_automata_list, automata_list_hash, automata_list_eq_p,
7920         initiate_automata_lists, automata_list_start, automata_list_add,
7921         automata_list_finish, finish_automata_lists,
7922         output_insn_code_cases, output_automata_list_min_issue_delay_code,
7923         output_automata_list_transition_code,
7924         output_automata_list_state_alts_code, add_automaton_state,
7925         form_important_insn_automata_lists): New functions and prototypes.
7926         (insn_reserv_decl): Add members important_automata_list and
7927         processed_p.
7928         (ainsn): Add members important_p.
7929         (automata_list_el): New structure.
7930         (first_free_automata_list_el, current_automata_list,
7931         automata_list_table): New global variables.
7932         (create_ainsns): Initiate member important_p.
7933         (output_internal_min_issue_delay_func): Generate the switch and
7934         call output_insn_code_cases.
7935         (output_internal_trans_func, output_internal_state_alts_func):
7936         Ditto.
7937         (generate): Call initiate_automata_lists.
7938         (automaton_states): New global variable.
7939         (expand_automata): Call form_important_insn_automata_lists.
7940         (write_automata): Call finish_automata_lists.
7941
7942         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
7943
7944         * genautomata.c (add_excls, add_presence_absence): Check that
7945         cpu units in the sets belong the same automaton.
7946
7947         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7948         about that cpu units in the sets belong the same automaton.
7949
7950         * doc/md.texi: Ditto.
7951
7952         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
7953                     Nitin Gupta  <niting@noida.hcltech.com>
7954
7955         * config/sh/sh.c (sh_use_dfa_interface): New function.
7956
7957         (sh_issue_rate): New Function.
7958         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7959         TARGET_SCHED_ISSUE_RATE: define.
7960
7961         * config/sh/sh.md: Add DFA based pipeline description for SH4.
7962
7963         (define_attr insn_class): New attribute used for DFA
7964          scheduling.
7965         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7966         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7967          cmpeqdi_t): Likewise.
7968
7969         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7970          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7971          ex_group.
7972         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7973
7974         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7975
7976         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7977         break.
7978
7979         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7980
7981         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7982         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7983         necessary.
7984         (output_dfa_start_func): Initiate new variable insn_codes_length,
7985         (write_automata): Output definition of the new variable.
7986
7987         2001-10-02  David S. Miller  <davem@redhat.com>
7988
7989         * haifa-sched.c (advance_one_cycle): New function.
7990         (schedule_block): Use it.
7991         (queue_to_ready): Use it, and also make sure to advance the DFA
7992         state on all stall cycles, not just those where insn_queue links
7993         are found.
7994
7995         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
7996
7997         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
7998         non-zero if the highest-priority instruction could be scheduled.
7999         (choose_ready): Remove last argument from max_issue call.
8000
8001         2001-09-28  David S. Miller  <davem@redhat.com>
8002
8003         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8004         ultrasparc and 3 for other multi-issue sparcs.
8005
8006         2001-09-27  David S. Miller  <davem@redhat.com>
8007
8008         * config/sparc/sparc.md (cycle_display): New pattern.
8009         * config/sparc/sparc.c (sparc_cycle_display): New.
8010         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8011
8012         2001-09-25  David S. Miller  <davem@redhat.com>
8013
8014         Convert all of Sparc scheduling to DFA
8015         * config/sparc/sparc.md: Kill all define_function_unit
8016         directives and replace with DFA equivalent.
8017         * config/sparc/sparc.c (ultrasparc_adjust_cost,
8018         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8019         ultra_fpmode_conflict_exists, ultra_find_type,
8020         ultra_build_types_avail, ultra_flush_pipeline,
8021         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8022         ultrasparc_variable_issue, ultrasparc_sched_init,
8023         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8024         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8025         ultra_cur_hist, ultra_cycles_elapsed): Kill.
8026         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8027         ultrasparc_store_bypass_p): New.
8028         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8029         Declare.
8030
8031         2001-09-24  David S. Miller  <davem@redhat.com>
8032
8033         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8034         ready->vec[foo] not ready[foo].
8035
8036         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8037
8038         * doc/md.texi: Correct examples for define_insn_reservations
8039         `mult' and `div'.
8040
8041         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8042
8043         * genautomata.c (create_automata): Print message about creation of
8044         each automaton.
8045         (generate): Remove printing meease about creation of
8046         automata.
8047
8048         2001-09-05  David S. Miller  <davem@redhat.com>
8049
8050         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8051         * config/sparc/linux64.h: Likewise.
8052
8053         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
8054
8055         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8056         schedule_block, sched_init, sched_finish): Add missed calls of
8057         use_dfa_pipeline_interface.
8058
8059         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8060         Ditto.
8061
8062         * sched-vis.c (get_visual_tbl_length): Ditto.
8063
8064         2001-08-27  Richard Henderson  <rth@redhat.com>
8065
8066         * genattr.c (main): Emit state_t even when not doing scheduling.
8067
8068         2001-08-27  Richard Henderson  <rth@redhat.com>
8069
8070         * genautomata.c (expand_automata): Always create a description.
8071
8072         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8073
8074         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8075         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8076         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8077         RTL constructions.
8078
8079         * genattr.c (main): New variable num_insn_reservations.  Increase
8080         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8081         pipeline hazard recognizer interface.
8082
8083         * genattrtab.h: New file.
8084
8085         * genattrtab.c: Include genattrtab.h.
8086         (attr_printf, check_attr_test, make_internal_attr,
8087         make_numeric_value): Move protypes into genattrtab.h.  Define them
8088         as external.
8089         (num_dfa_decls): New global variable.
8090         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8091         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8092         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8093         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8094
8095         * genautomata.c: New file.
8096
8097         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8098
8099         * sched-int.h: (curr_state): Add the external definition for
8100         automaton pipeline interface.
8101         (haifa_insn_data): Add comments for members blockage and units.
8102
8103         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8104         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8105         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8106         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8107         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8108         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8109         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8110         macros.
8111         (TARGET_SCHED): Use the new macros.
8112
8113         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8114         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8115         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8116         dfa_bubble): New members in gcc_target.sched.
8117
8118         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8119         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8120         (insn_queue): Redefine it as pointer to array.
8121         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8122         INSN_QUEUE_SIZE.
8123         (max_insn_queue_index_macro_value): New variable.
8124         (curr_state, dfa_state_size, ready_try): New varaibles for
8125         automaton interface.
8126         (ready_element, ready_remove, max_issue): New function prototypes
8127         for automaton interface.
8128         (choose_ready): New function prototype.
8129         (insn_unit, blockage_range): Add comments.
8130         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8131         FUNCTION_UNITS_SIZE == 0.
8132         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8133         actual_hazard, potential_hazard): Add comments.
8134         (insn_cost): Use cost -1 as undefined value.  Remove
8135         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8136         pipeline interface.
8137         (ready_element, ready_remove): New functions for automaton
8138         interface.
8139         (schedule_insn): Add new code for automaton pipeline interface.
8140         (queue_to_ready): Add new code for automaton pipeline interface.
8141         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8142         (debug_ready_list): Print newline when the queue is empty.
8143         (max_issue): New function for automaton pipeline interface.
8144         (choose_ready): New function.
8145         (schedule_block): Add new code for automaton pipeline interface.
8146         Print ready list before scheduling each insn.
8147         (sched_init): Add new code for automaton pipeline interface.
8148         Initiate insn cost by -1.
8149         (sched_finish): Free the current automaton state and finalize
8150         automaton pipeline interface.
8151
8152         * sched-rgn.c: Include target.h.
8153         (init_ready_list, new_ready, debug_dependencies): Add new code for
8154         automaton pipeline interface.
8155
8156         * sched-vis.c: Include target.h.
8157         (get_visual_tbl_length): Add code for automaton interface.
8158         (target_units, print_block_visualization):  Add comments.
8159
8160         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8161         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8162         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8163         (getruntime.o, genautomata.o): New entries.
8164         (genattrtab.o): Add new dependency file genattrtab.h.
8165         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8166         (getruntime.o, hashtab.o): New entries for canadian cross.
8167
8168         * doc/md.texi: Description of automaton based model.
8169
8170         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8171         Add comments.
8172         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8173         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8174         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8175         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8176         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8177         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8178         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8179         hook descriptions.
8180         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8181         MAX_DFA_ISSUE_RATE): New macro descriptions.
8182
8183         * doc/contrib.texi: Add dfa based scheduler contribution.
8184
8185         * doc/gcc.texi: Add more information about genattrtab.
8186
8187 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8188
8189         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8190         adjust_address_nv call.
8191
8192 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
8193
8194         * doc/install.texi (Testing): Provide additional information, and
8195         a stronger encouragement, for running the testsuites.
8196
8197 2002-04-29  DJ Delorie  <dj@redhat.com>
8198
8199         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8200         given in upper case.
8201
8202 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8203
8204         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8205         Solaris 2 <widec.h> if missing.
8206         * fixinc/fixincl.x: Regenerate.
8207         * fixinc/tests/base/widec.h: New file.
8208
8209 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
8210
8211         * toplev.c (f_options): Add "profile" switch so that
8212         -fno-profile can be used to disable -p.
8213
8214 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
8215
8216         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8217         UV2DImode.
8218         * tree.c (build_common_tree_nodes_2): Likewise.
8219         * tree.h (enum tree_index): Likewise.
8220         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8221
8222         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8223         entries.
8224         (init_mmx_sse_builtins): Initialize SSE2 builtins.
8225         (ix86_expand_builtin): Add support for SSE2 builtins.
8226         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8227         (VALID_SSE_REG_MODE): Use it.
8228         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8229         (enum ix86_builtins): Add SSE2 builtins.
8230         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8231         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8232         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8233         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8234         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8235         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8236         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8237         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8238         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8239         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8240         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8241         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8242         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8243         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8244         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8245         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8246         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8247         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8248         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8249         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8250         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8251         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8252         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8253         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8254         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8255         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8256         lfence_insn): New patterns.
8257         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8258         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8259
8260 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
8261
8262         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8263
8264 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8265
8266         * doc/contrib.texi (Contributors): Add Paolo Carlini and
8267         Janis Johnson.
8268         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8269         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8270         and CPU instead of cpu.
8271
8272 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
8273
8274         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8275         variables.
8276         (lang_independent_options): Add -fif-conversion, -fif-conversion2
8277         (rest_of_compilation): Do if conversion only when asked for.
8278         (parse_options_and_default_flags): Set new variables to 1 for -O1
8279         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8280
8281 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8282
8283         * i386.c (dbx64_register_map): Fix typo.
8284
8285 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
8286
8287         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8288         real_one_half, real_bb_freq_max): New static variables.
8289         (debug_profile_bbauxs): Kill.
8290         (process_note_predictions): Kill unused variable.
8291         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8292         volatile double.
8293         (propagate_freq): Use REAL_ARITHMETICS.
8294         (estimate_bb_frequencies): Likevise; init new static variables.
8295         * Makefile.in (predict.o): Add dependency on real.h
8296
8297 2002-04-28  David S. Miller  <davem@redhat.com>
8298
8299         PR target/6500
8300         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8301         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
8302         several {reads,writes} instead.
8303         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8304         Define.
8305
8306 2002-04-27  David S. Miller  <davem@redhat.com>
8307
8308         PR target/6494
8309         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8310         of the stack bias.
8311
8312         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8313         including signal.h and sys/ucontext.h, not needed.
8314
8315 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
8316
8317         * varasm.c (output_constant_def): Correct test for not calling
8318         ENCODE_SECTION_INFO for INTEGER_CST.
8319
8320 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8321
8322         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8323         keep most cases as function eval_token.
8324         (eval_token): New function.
8325         (_cpp_parse_expr): Read token here for improved diagnostics.
8326         Don't use op_as_text.  Detect bad ':' here.
8327         (reduce): Don't detect bad ':' here.
8328         (op_as_text): Remove.
8329         * cpphash.h (_cpp_test_assertion): Change prototype.
8330         * cpplib.c (_cpp_test_assertion): Change prototype.
8331
8332 2002-04-28  Richard Henderson  <rth@redhat.com>
8333
8334         PR c/5154
8335         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
8336         (ggc_mark_rtx_children): New.
8337
8338 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8339
8340         PR target/6496
8341         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8342         after call peepholes for UltraSPARC.
8343         (call + jump 64-bit peepholes): Remove.
8344
8345 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8346
8347         PR c/6497
8348         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8349         result as temporary value.
8350
8351 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8352
8353         PR c++/6396
8354         * toplev.c (rest_of_compilation): Only run regrename and copy
8355         propagation if optimizing.
8356
8357 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8358
8359         PR optimization/6475
8360         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8361         register of REGNO_DECL (i).
8362         * Makefile.in (reload1.o): Add $(TREE_H).
8363
8364 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8365
8366         * cppexp.c (lex): Update to use state.skip_eval.
8367         (struct op): Remove prio and flags members.
8368         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8369         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8370         (LEFT_ASSOC): New macro.
8371         (optab): New table of operator priorities and flags.
8372         (SHIFT): Update.
8373         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
8374         malloc-ed parser stack.
8375         (reduce): New; reduce the operator stack.
8376         (_cpp_expand_op_stack): Expand the operator stack as necessary.
8377         * cpphash.h (struct op): Predeclare.
8378         (struct cpp_reader): New members op_stack, op_limit.
8379         (struct lexer_state): New member skip_eval.
8380         (_cpp_parse_expr): Update.
8381         (_cpp_expand_op_stack): New.
8382         * cpplib.c (do_if): Update.
8383         * cppinit.c (cpp_create_reader): Create op stack.
8384         (cpp_destroy): And destroy it.
8385         * cpplib.h (CPP_LAST_CPP_OP): Correct.
8386         (TTYPE_TABLE): Correct.
8387
8388 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8389
8390         PR c/6343
8391         * c-decl.c (duplicate_decls): Call merge_weak.
8392         * c-pragma.c (apply_pragma_weak): Warn about misuse.
8393         * output.h (merge_weak): Prototype merge_weak.
8394         * varasm.c (merge_weak): New function.
8395         (declare_weak): Make sure we don't give an error on VAR_DECLs.
8396         Mark RTL with SYMBOL_REF_WEAK.
8397
8398 2002-04-27  Kurt Garloff <garloff@suse.de>
8399
8400         * tree-inline.c (inlinable_function_p): Improve heuristics
8401         by using a smoother function to cut down allowable inlinable size.
8402         * param.def: Add parameters max-inline-insns-single,
8403         max-inline-slope, min-inline-insns that determine the exact
8404         shape of the above function.
8405         * param.h: Likewise.
8406
8407 2002-04-26  Richard Henderson  <rth@redhat.com>
8408
8409         * c-parse.in (malloced_yyss, malloced_yyvs): New.
8410         (yyoverflow): Re-add.  Set them.
8411         (free_parser_stacks): New.
8412         * c-common.h: Declare it.
8413         * c-lex.c (c_common_parse_file): Call it.
8414
8415 2002-04-26  Richard Henderson  <rth@redhat.com>
8416
8417         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8418         for fallthru search.
8419
8420 2002-04-26  Eric Christopher  <echristo@redhat.com>
8421
8422         PR optimization/3700
8423         * config/mips/mips.c (mips_issue_rate): Define.  New function.
8424         (TARGET_SCHED_ISSUE_RATE): Use.
8425
8426 2002-04-25  David S. Miller  <davem@redhat.com>
8427
8428         PR target/6422
8429         * reorg.c (optimize_skip): Do not allow exception causing
8430         instructions to be considered for delay slots.
8431         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8432         (relax_delay_slots): Do not try to consider exception causing
8433         instructions as redundant.
8434
8435 2002-04-26  Richard Henderson  <rth@redhat.com>
8436
8437         PR c/5225
8438         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8439
8440 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
8441
8442         PR bootstrap/6445
8443         * config/i386/i386.md (untyped_call): Return the value in a float
8444         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8445         TARGET_80387.
8446
8447 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
8448
8449         * tree.c (tree_int_cst_lt): Compare constants whose types differ
8450         in unsigned-ness correctly.
8451
8452 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8453
8454         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8455         portable runtime model.
8456
8457 2002-04-26  Richard Henderson  <rth@redhat.com>
8458
8459         * c-parse.in (yyoverflow): Revert.
8460
8461 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
8462             Richard Henderson  <rth@redhat.com>
8463
8464         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8465         result as temporary value.
8466
8467 2002-04-26  Richard Henderson  <rth@redhat.com>
8468
8469         PR c/3581
8470         * c-common.c (fix_string_type): Split out of ...
8471         (combine_strings): ... here.  Take a varray, not a tree list.
8472         (c_expand_builtin_printf): Use fix_string_type.
8473         * c-common.h: Update decls.
8474         * c-parse.in (string): Remove.  Update all uses to use STRING
8475         instead, and not call combine_strings.
8476         (yylexstring): New.
8477         (_yylex): Use it.
8478         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8479         (build_asm_stmt): Likewise.
8480         * objc/objc-act.c (my_build_string): Use fix_string_type.
8481         (build_objc_string_object): Build varray for combine_strings.
8482
8483 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
8484
8485         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8486         x86-64.
8487
8488 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8489
8490         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8491         (HAVE_NO_R_OPERAND): Remove.
8492         (HAVE_VALUE): Remove.
8493         (op_to_prio): Update.
8494         (UNARY): Don't alter flags.
8495         (_cpp_parse_expr): want_value used to indicate whether
8496         a number or unary operator is expected next.  Distinguish
8497         unary and binary +/-.
8498         (op_as_text): Update for unary operators.
8499
8500 2002-04-25  Richard Henderson  <rth@redhat.com>
8501
8502         PR c/2161
8503         * c-parse.in (yyoverflow): New.
8504
8505 2002-04-25  Richard Henderson  <rth@redhat.com>
8506
8507         PR c/2098
8508         * c-common.c (shorten_compare): Simplfy conditions leading to
8509         the generation of a warning.
8510
8511 2002-04-25  Richard Henderson  <rth@redhat.com>
8512
8513         PR c/2035
8514         * expmed.c (extract_bit_field): Fall through to generic code rather
8515         than aborting on subreg special case.
8516
8517 2002-04-25  David S. Miller  <davem@redhat.com>
8518
8519         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8520         for DECL being NULL.
8521
8522 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
8523
8524         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8525
8526 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
8527
8528         * c-decl.c (grokdeclarator): Remove outdated ??? note
8529         on invalid declaration of flexible array members.
8530
8531 2002-04-25  Richard Henderson  <rth@redhat.com>
8532
8533         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8534
8535 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
8536
8537         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8538         needed by the compiler, even if they are used as global regs.
8539
8540 2002-04-25  Matt Hiller  <hiller@redhat.com>
8541
8542         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8543         functions.
8544         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8545         of the corresponding functions.
8546         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8547         New prototypes.
8548
8549 2002-04-25  Matt Hiller  <hiller@redhat.com>
8550
8551         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8552
8553         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8554         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8555         registers, adjust comment accordingly.
8556         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8557         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8558         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8559         for coprocessor registers.
8560         (ADDITIONAL_REGISTER_NAMES): Include
8561         ALL_COP_ADDITIONAL_REGISTER_NAMES.
8562
8563         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8564         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8565         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8566         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8567         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8568
8569         (mips_char_to_class): Adjust comment to include coprocessor
8570         constraint letters.
8571
8572         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8573         New functions.
8574         (mips_reg_names, mips_regno_to_class): Include coprocessor
8575         information.
8576         (mips_sw_reg_names): Ditto, make non-static.
8577         (mips_move_1word): Handle moves to and from coprocessor registers.
8578         (mips_move_2words): Handle moves to and from coprocessor
8579         registers.
8580         (mips_class_max_nregs, mips_register_move_cost): Handle
8581         coprocessor register classes.
8582         (override_options): Initialize mips_char_to_class and
8583         mips_hard_regno_mode_ok properly for coprocessor registers.
8584
8585         * config/mips/mips.md (movdi_internal, movdi_internal2,
8586         movsi_internal1, movsi_internal2): Add constraint-sets for
8587         coprocessor registers.
8588         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8589         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8590         isn't mips.
8591         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8592         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8593         isn't mips.
8594         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8595         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8596         isn't mips.
8597         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8598         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8599         isn't mips.
8600
8601         * doc/tm.texi: Document feature.
8602
8603 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8604
8605         * integrate.c (function_attribute_inlinable_p): Simplify.
8606         Check the table pointer is not NULL.
8607
8608 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
8609
8610         * doc/c-tree.texi: Fix typo in introduction.
8611
8612 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8613
8614         * c-common.h (c_common_parse_file): Update.
8615         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8616         * c-lex.c (YYDEBUG): Get from c-lex.h.
8617         (c_common_parse_file): Update.
8618         * c-lex.h (YYDEBUG, yydebug): New.
8619         * c-parse.in (YYDEBUG): Get from c-lex.h.
8620         (c_set_yydebug): Remove.
8621         * c-tree.h (c_set_yydebug): Remove.
8622         * langhooks-def.h (lhd_do_nothing_i): New.
8623         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8624         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8625         * langhooks.c  (lhd_do_nothing_i): New.
8626         (lhd_set_yydebug): Remove.
8627         * langhooks.h (struct lang_hooks): Update.
8628         * toplev.c (set_yydebug): New.
8629         (compile_file): Update call to parse_file hook.
8630         (decode_d_option): Update.
8631 objc:
8632         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8633
8634 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
8635
8636         * loop.c (load_mems): Don't change the interface of called functions.
8637
8638         * calls.c (expand_call): Take current_function_pretend_args_size
8639         into account when setting argblock for sibcalls.
8640
8641 2002-04-24  Matt Hiller  <hiller@redhat.com>
8642
8643         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8644         * c-lex.c: Ditto.
8645
8646         * cpplex.c (skip_line_comment): Process comment one multibyte
8647         character at a time rather than one char at a time, if
8648         appropriate.
8649         (parse_string): Process string one multibyte character at a time
8650         rather than one char at a time, if appropriate.
8651         * c-lex.c (lex_string): Lex and copy multibyte strings
8652         appropriately.
8653         * cpplib.h (cppchar_t): Change to unsigned.
8654
8655 2002-04-24  Richard Henderson  <rth@redhat.com>
8656
8657         PR c/3467
8658         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8659         for c99.
8660
8661 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
8662
8663         * sh.c (sh_va_arg): If argument was passed by reference,
8664         dereference the pointer.
8665
8666         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8667
8668         * sh.md (divsi3_i4_media): Use match_operand for input values
8669         rather than hard registers.
8670         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8671         unnecessarily through hard registers.  Keep copies of pseudo
8672         registers outside of the libcall sequence.
8673
8674         * sh.md (casesi_shift_media): Add modes.
8675
8676         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8677         values in memory.
8678
8679 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8680
8681         * attribs.c (c_common_attribute_table): Move table and handlers
8682         to c-common.c.
8683         (format_attribute_table, lang_attribute_table,
8684         lang_attribute_common): Remove.
8685         (init_attributes): Replace NULL pointers with pointers to the
8686         empty table.
8687         (handle_packed_attribute, handle_nocommon_attribute,
8688         handle_common_attribute, handle_noreturn_attribute,
8689         handle_noinline_attribute, handle_always_inline_attribute,
8690         handle_used_attribute, handle_unused_attribute,
8691         handle_const_attribute, handle_transparent_union_attribute,
8692         handle_constructor_attribute, handle_destructor_attribute,
8693         handle_mode_attribute, handle_section_attribute,
8694         handle_aligned_attribute, handle_weak_attribute,
8695         handle_alias_attribute, handle_visibility_attribute,
8696         handle_no_instrument_function_attribute, handle_malloc_attribute,
8697         handle_no_limit_stack_attribute, handle_pure_attribute,
8698         handle_deprecated_attribute, handle_vector_size_attribute,
8699         vector_size_helper): Move to c-common.c.
8700         * c-common.c (c_common_attribute_table,
8701         handle_packed_attribute, handle_nocommon_attribute,
8702         handle_common_attribute, handle_noreturn_attribute,
8703         handle_noinline_attribute, handle_always_inline_attribute,
8704         handle_used_attribute, handle_unused_attribute,
8705         handle_const_attribute, handle_transparent_union_attribute,
8706         handle_constructor_attribute, handle_destructor_attribute,
8707         handle_mode_attribute, handle_section_attribute,
8708         handle_aligned_attribute, handle_weak_attribute,
8709         handle_alias_attribute, handle_visibility_attribute,
8710         handle_no_instrument_function_attribute, handle_malloc_attribute,
8711         handle_no_limit_stack_attribute, handle_pure_attribute,
8712         handle_deprecated_attribute, handle_vector_size_attribute,
8713         vector_size_helper): Move from attribs.c.
8714         * c-common.h (c_common_attribute_table,
8715         c_common_format_attribute_table): New.
8716         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8717         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8718         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8719         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8720         (LANG_HOOKS_INITIALIZER): Update.
8721         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8722         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8723         * target.h: Update comment.
8724         * tree.c (default_target_attribute_table): Remove.
8725         * tree.h (default_target_attribute_table, format_attribute_table,
8726         lang_attribute_table, lang_attribute_common): Remove.
8727 objc:
8728         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8729         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8730
8731 2002-04-24  Jason Merrill  <jason@redhat.com>
8732
8733         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8734         * dwarf2out.c (dwarf_attr_name): Support it.
8735         (gen_array_type_die): Emit it.
8736         (lookup_type_die): No special handling for VECTOR_TYPE.
8737         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8738
8739 2002-04-24  Richard Henderson  <rth@redhat.com>
8740
8741         * config/mips/mips.md (movdi_usd): Renumber.
8742
8743 2002-04-24  David S. Miller  <davem@redhat.com>
8744
8745         PR target/6420
8746         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8747         32-bit Sparc and current_function_returns_struct is true.
8748
8749 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8750
8751         * loop.c (canonicalize_condition): Use gen_int_mode.
8752
8753 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
8754
8755         * config/rs6000/altivec.h: Cleanup file.  Add non individual
8756         variants.
8757         (vec_vaddubm): New.
8758         (vec_vadduhm): New.
8759         (vec_vadduwm): New.
8760         (vec_vaddfp): New.
8761         (vec_vaddcuw): New.
8762         (vec_vaddubs): New.
8763         (vec_vaddsbs): New.
8764         (vec_vadduhs): New.
8765         (vec_vadduws): New.
8766         (vec_vaddsws): New.
8767         (vec_vand): New.
8768         (vec_vandc): New.
8769         (vec_vavgub): New.
8770         (vec_vavgsb): New.
8771         (vec_vavguh): New.
8772         (vec_vavgsh): New.
8773         (vec_vavguw): New.
8774         (vec_vavgsw): New.
8775         (vec_vrfip): New.
8776         (vec_vcmpbfp): New.
8777         (vec_vcmpequb): New.
8778         (vec_vcmpequh): New.
8779         (vec_vcmpequw): New.
8780         (vec_vcmpeqfp): New.
8781         (vec_vcmpgefp): New.
8782         (vec_vcmpgtub): New.
8783         (vec_vcmpgtsb): New.
8784         (vec_vcmpgtuh): New.
8785         (vec_vcmpgtsh): New.
8786         (vec_vcmpgtuw): New.
8787         (vec_vcmpgtsw): New.
8788         (vec_vcmpgtfp): New.
8789         (vec_vcmpgefp): New.
8790         (vec_vcfux): New.
8791         (vec_vcfsx): New.
8792         (vec_vctsxs): New.
8793         (vec_vctuxs): New.
8794         (vec_vexptefp): New.
8795         (vec_vrfim): New.
8796         (vec_lvx): New.
8797         (vec_lvebx): New.
8798         (vec_lvehx): New.
8799         (vec_lde): Add vector float variant.
8800         (vec_lvewx): New.
8801         (vec_lvxl): New.
8802         (vec_vlogefp): New.
8803         (vec_vmaddfp): New.
8804         (vec_vmhaddshs): New.
8805         (vec_vmaxub): New.
8806         (vec_vmaxsb): New.
8807         (vec_vmaxuh): New.
8808         (vec_vmaxsh): New.
8809         (vec_vmaxuw): New.
8810         (vec_vmaxsw): New.
8811         (vec_vmaxsw): New.
8812         (vec_vmaxfp): New.
8813         (vec_vmrghb): New.
8814         (vec_vmrghh): New.
8815         (vec_vmrghw): New.
8816         (vec_vmrglb): New.
8817         (vec_vmrglh): New.
8818         (vec_vmrglw): New.
8819         (vec_vminub): New.
8820         (vec_vminsb): New.
8821         (vec_vminuh): New.
8822         (vec_vminsh): New.
8823         (vec_vminuw): New.
8824         (vec_vminsw): New.
8825         (vec_vminfp): New.
8826         (vec_vmladduhm): New.
8827         (vec_vmhraddshs): New.
8828         (vec_msumubm): New.
8829         (vec_vmsummbm): New.
8830         (vec_vmsumuhm): New.
8831         (vec_vmsumshm): New.
8832         (vec_vmsumuhs): New.
8833         (vec_vmsumshs): New.
8834         (vec_vmuleub): New.
8835         (vec_vmulesb): New.
8836         (vec_vmuleuh): New.
8837         (vec_vmulesh): New.
8838         (vec_vmuloub): New.
8839         (vec_mulosb): New.
8840         (vec_vmulouh): New.
8841         (vec_vmulosh): New.
8842         (vec_vnmsubfp): New.
8843         (vec_vnor): New.
8844         (vec_vor): New.
8845         (vec_vpkuhum): New.
8846         (vec_vpkuwum): New.
8847         (vec_vpkpx): New.
8848         (vec_vpkuhus): New.
8849         (vec_vpkshss): New.
8850         (vec_vpkuwus): New.
8851         (vec_vpkswss): New.
8852         (vec_vpkshus): New.
8853         (vec_vpkswus): New.
8854         (vec_vperm): New.
8855         (vec_vrefp): New.
8856         (vec_vrlb): New.
8857         (vec_vrlh): New.
8858         (vec_vrlw): New.
8859         (vec_vrfin): New.
8860         (vec_vrsqrtefp): New.
8861         (vec_vsel): New.
8862         (vec_vslb): New.
8863         (vec_vslh): New.
8864         (vec_vslw): New.
8865         (vec_vsldoi): New.
8866         (vec_vsl): New.
8867         (vec_vslo): New.
8868         (vec_vspltb): New.
8869         (vec_vsplth): New.
8870         (vec_vspltw): New.
8871         (vec_vspltisb): New.
8872         (vec_vspltish): New.
8873         (vec_vspltisw): New.
8874         (vec_vsrb): New.
8875         (vec_vsrh): New.
8876         (vec_vsrw): New.
8877         (vec_vsrab): New.
8878         (vec_vsrah): New.
8879         (vec_vsraw): New.
8880         (vec_vsr): New.
8881         (vec_vsro): New.
8882         (vec_stvx): New.
8883         (vec_stvebx): New.
8884         (vec_stvehx): New.
8885         (vec_stvewx): New.
8886         (vec_stvxl): New.
8887         (vec_vsububm): New.
8888         (vec_vsubuhm): New.
8889         (vec_vsubuwm): New.
8890         (vec_vsubfp): New.
8891         (vec_vsubcuw): New.
8892         (vec_vsububs): New.
8893         (vec_vsubsbs): New.
8894         (vec_vsubuhs): New.
8895         (vec_vsubshs): New.
8896         (vec_vsubuws): New.
8897         (vec_vsubsws): New.
8898         (vec_vsum4ubs): New.
8899         (vec_vsum4sbs): New.
8900         (vec_vsum4shs): New.
8901         (vec_vsum2sws): New.
8902         (vec_vsumsws): New.
8903         (vec_vrfiz): New.
8904         (vec_vupkhsb): New.
8905         (vec_vupkhpx): New.
8906         (vec_vupkhsh): New.
8907         (vec_vupklsb): New.
8908         (vec_vupklpx): New.
8909         (vec_vupklsh): New.
8910         (vec_vxor): New.
8911
8912 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
8913
8914         PR c/5430
8915         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8916         added literals from substracted literals.
8917         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8918         (fold) [associate]: Preserve MINUS_EXPR if needed.
8919
8920 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
8921
8922         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8923         are obsoleted.
8924
8925 2002-04-23  Tom Tromey  <tromey@redhat.com>
8926
8927         * gcc.c: Added --resource.  For PR java/6314.
8928
8929 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8930
8931         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8932         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8933         these libraries.
8934
8935 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8936
8937         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8938
8939 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8940
8941         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8942         workaround.
8943         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8944         (ix86_expand_clrstr): Fix typo.
8945         * loop.c (gen_load_of_final_value): New.
8946         (loop_givs_rescan, strength_reduce, check_dbra_loop):
8947         Use it.
8948
8949 2002-04-23  Roger Sayle  <roger@eyesopen.com>
8950
8951         * builtins.c (builtin_memset_gen_str): New function.
8952         (expand_builtin_memset): Optimize the case of constant length, but
8953         unknown value.
8954
8955 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
8956
8957         * config/rs6000/altivec.h (vec_step): Remove extraneous
8958         parentheses.
8959         (vec_ctu): Cast return.
8960
8961 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
8962
8963         PR target/6413
8964         * function.h: (struct function): Add profile_label_no field.
8965         (current_function_profile_label_no): Define.
8966         * function.c: (profile_label_no): New static var.
8967         (expand_function_start): Increment it, and copy to
8968         current_function_profile_label_no.
8969         * output.h (profile_label_no): Delete.
8970         * final.c (profile_label_no): Delete.
8971         (profile_function): Use current_function_profile_label_no.
8972         (final_end_function): Don't increment profile_label_no here.
8973         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8974         profile_label_no with current_function_profile_label_no.
8975         * config/pa/pa.c (current_function_number): Delete.
8976         (pa_output_function_prologue): Don't output profile label here.
8977         (hppa_profile_hook): Use label_no param rather than
8978         current_function_number.
8979         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8980         * config/pa/pa.h: .. here.
8981         (FUNCTION_PROFILER): Output profile label here.
8982
8983 2002-04-22  Eric Christopher  <echristo@redhat.com>
8984
8985         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8986         patch of 2002-04-09 due to binutils issues.
8987         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8988
8989 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8990
8991         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8992         constraint to 'o' for m=r and r=m alternatives.
8993         ("*movv8hi_internal1"): Same.
8994         ("*movv16qi_internal1"): Same.
8995         ("*movv4sf_internal1"): Same.
8996
8997 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
8998
8999         * rtl.h (RTX_FLAG): New macro.
9000         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9001         * final.c (alter_subreg): Use macro to access rtx flag.
9002         * integrate.c (copy_rtx_and_substitute): Use new access macro.
9003         * print-rtl.c (print_rtx): Use new access macro.
9004
9005         * cse.c (insert): Check rtx code before accessing flag.
9006
9007         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9008         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9009         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9010         convert_const_symbol_ref, make_canonical, make_alternative_compare,
9011         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9012         simplify_test_exp, optimize_attrs, simplify_by_exploding,
9013         find_and_mark_used_attributes, unmark_used_attributes,
9014         add_values_to_cover, simplify_with_current_value,
9015         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9016         copy_rtx_unchanging, main): Use new access macros.
9017
9018 2002-04-22  Tom Rix  <trix@redhat.com>
9019
9020         * expmed.c (init_expmed): Generate shifted constant once.
9021
9022 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
9023
9024         * c-lex.c (lex_charconst): Call convert to get constant in
9025         proper type; don't just smash the type field.
9026         Fixes PR c/6300.
9027
9028         * config.gcc: Add list of obsolete configurations.  Disallow
9029         building these without --enable-obsolete.
9030         * doc/install.texi: Document --enable-obsolete and obsoletion
9031         policy.  Mention obsoletion of individual targets in
9032         appropriate places.
9033
9034 2002-04-22  Richard Henderson  <rth@redhat.com>
9035
9036         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9037
9038 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
9039
9040         PR f/6138.
9041         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9042         (walk_fixup_memory_subreg): Likewise.
9043         (fixup_var_refs_insn): Adjust accordingly.
9044         (fixup_var_refs_1): Likewise.
9045
9046 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
9047
9048         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9049         LIBPATH_ARCH64_SPEC): Define.
9050         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
9051         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
9052         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9053         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9054
9055 2002-04-22      Joel Sherrill <joel@OARcorp.com>
9056
9057         * gthr-rtems.h: Correct prototypes to remove warnings.
9058
9059 2002-04-22  Richard Henderson  <rth@redhat.com>
9060
9061         PR c/6344
9062         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9063
9064         * gcse.c (free_insn_expr_list_list): New.
9065         (clear_modify_mem_tables): Use it.  Fix bit set usage.
9066         (canon_list_insert): Use EXPR_LISTs for expressions.
9067         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9068
9069 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9070
9071         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
9072         file change and include code to _cpp_pop_buffer.
9073         * cpphash.h (struct pending_option): Predeclare.
9074         (struct cpp_reader): New member next_include_file.
9075         (_cpp_pop_file_buffer): Update.
9076         (_cpp_push_next_buffer): Update, rename.
9077         * cppinit.c (cpp_destroy): Free include chain and pending here.
9078         (cpp_finish_options): Simplify.
9079         (_cpp_push_next_buffer): Rename and clean up.
9080         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9081         Clarify.
9082         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9083
9084 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
9085
9086         * config/rs6000/altivec.h (vec_xor): Add variant for both args
9087         being vector signed int.
9088         (vec_andc): Same.
9089         (vec_xor): Add variant for both args being vector signed char.
9090         Remove redundant variant.
9091         (vec_andc): Same.
9092
9093 2002-04-21  David S. Miller  <davem@redhat.com>
9094
9095         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9096         compare mode in output RTL.
9097
9098 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
9099
9100         * config/rs6000/rs6000.c (rs6000_override_options): Correct
9101         style and formatting of previous patch.
9102
9103 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
9104
9105         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9106         flag_pic for ABI_AIX.
9107
9108 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9109
9110         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9111         * cppfiles.c (read_include_file): Similarly.
9112         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9113         uxstrdup ustrchr, ufputs): Similarly.
9114         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9115         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9116         cpp_ideq, parse_identifier, parse_number): Similarly.
9117         * cpplib.c (struct directive, dequote_string, D, run_directive,
9118         cpp_push_buffer): Similarly.
9119         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9120         _cpp_create_definition, check_trad_stringification,
9121         cpp_macro_definition): Similarly.
9122
9123 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9124
9125         * cppmacro.c (funlike_invocation_p): Don't step back
9126         over CPP_EOF.
9127
9128 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
9129
9130         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9131         labelno.
9132
9133 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9134
9135         * doc/invoke.texi: Remove Chill references.
9136         * doc/gcc.texi: Update last modified date.
9137
9138 2002-04-20  Kazu Hirata  <kazu@hxi.com>
9139
9140         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9141         push and pop.  Replace add.l with add.w.
9142
9143 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9144
9145         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9146         multiply instructions for H8/300H case.
9147
9148 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9149
9150         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9151         Bum three instructions from each routine.
9152
9153 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9154
9155         * Makefile.in: Update.
9156         * decl.c (push_c_function_context, pop_c_function_context,
9157         mark_c_function_context): Rename for consistency.
9158         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9159         * c-tree.h (push_c_function_context, pop_c_function_context,
9160         mark_c_function_context): Rename for consistency.
9161         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9162         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9163         * function.c (init_lang_status, save_lang_status,
9164         restore_lang_status, mark_lang_status, free_lang_status):
9165         Move to langhooks.h.
9166         (push_function_context_to, pop_function_context_from,
9167         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9168         Update.
9169         * function.h (init_lang_status, save_lang_status,
9170         restore_lang_status, mark_lang_status, free_lang_status):
9171         Move to langhooks.h.
9172         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9173         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9174         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9175         LANG_HOOKS_FUNCTION_INITIALIZER): New.
9176         (LANG_HOOKS_INITIALIZER): Update.
9177         (lhd_do_nothing_f): New.
9178         * langhooks.h (struct lang_hooks_for_functions): New.
9179         (struct lang_hooks): New hooks.
9180         * langhooks.c (lhd_do_nothing_f): New.
9181 objc:
9182         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9183         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9184
9185 2002-04-19  David S. Miller  <davem@redhat.com>
9186
9187         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9188         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9189
9190 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9191
9192         PR optimization/3756
9193         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9194         x = ((int) y < 0) ? cst1 : cst2.
9195
9196 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9197
9198         PR c/6358
9199         * function.c: Reapply patch for c/6358.
9200         (expand_function_end): Copy decl_rtl's mode, not
9201         current_function_return_rtx mode.
9202
9203 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
9204
9205         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9206         targets.
9207
9208 2002-04-19  Tom Tromey  <tromey@redhat.com>
9209
9210         * doc/install.texi (Specific): Update status of Solaris 2.8.
9211         For PR libgcj/6158.
9212
9213 2002-04-19  Andreas Schwab  <schwab@suse.de>
9214
9215         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9216         (PUT_REAL): Restore old definition.
9217
9218 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
9219             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9220
9221         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9222         binutils 2.11.2 and higher generate smaller binaries than Sun's
9223         native tools.
9224
9225 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
9226
9227         PR c++/6352
9228         * toplev.c (rest_of_compilation): Do not defer functions for which
9229         TREE_SYMBOL_REFERENCED has already been set.
9230
9231 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
9232
9233         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9234         alternative.
9235
9236 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9237
9238         * builtins.c: Include langhooks.h.
9239         (lang_type_promotes_to): Remove.
9240         (expand_builtin_va_arg): Use new hook.
9241         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9242         (simple_type_promotes_to): Move to c-typeck.c.
9243         * c-common.h (simple_type_promotes_to): Remove.
9244         * c-decl.c (duplicate_decls, grokdeclarator): Update.
9245         * c-format.c: Include langhooks.h.
9246         (check_format_types): Update.
9247         * c-tree.h (c_type_promotes_to): New.
9248         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9249         (type_lists_compatible_p): Update.
9250         * langhooks-def.h (lhd_type_promotes_to): New.
9251         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9252         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9253         * langhooks.c (lhd_type_promotes_to): New.
9254         * langhooks.h (struct lang_hooks_for_types): New hook.
9255         * tree.h (lang_type_promotes_to): Remove.
9256 objc:
9257         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9258
9259 2002-04-18  Richard Henderson  <rth@redhat.com>
9260
9261         * function.c: Revert patch for c/6358.
9262
9263 2002-04-18  Richard Henderson  <rth@redhat.com>
9264
9265         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9266         blocks.  Handle multiple references to the TRAP block.  Handle
9267         non-adjacent THEN and OTHER blocks.
9268
9269 2002-04-18  Richard Henderson  <rth@redhat.com>
9270
9271         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9272         crash with no type for by-mode libcalls.
9273
9274         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
9275
9276 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
9277
9278         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9279         __xtensa_nonlocal_goto): Use a syscall instructions to flush
9280         the register windows.
9281
9282 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9283
9284         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9285         appropriate.  Document need for extended precision even when
9286         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
9287         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
9288         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
9289         instead of relying on later syntax error when REAL_WIDTH > 5.
9290         * real.c: Define NE based only on whether or not we have a
9291         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9292         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
9293         define GET_REAL and PUT_REAL as simple memcpy operations; no
9294         need to byteswap or round.
9295         Use #error instead of #ifdef-ing out the entire file, for
9296         prompt error detection.
9297
9298         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9299
9300 2002-04-18  David S. Miller  <davem@redhat.com>
9301
9302         * config/sparc/sparc.h (BRANCH_COST): Define.
9303
9304         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9305         does it.
9306
9307 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
9308
9309         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9310         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9311         propagate_block calls after relaxation loop using new variable
9312         stabilized_prop_flags.
9313
9314 2002-04-18  Richard Henderson  <rth@redhat.com>
9315
9316         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9317         (ia64_va_arg): Expect variable sized types by reference.
9318         * config/ia64/ia64-protos.h: Update.
9319         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
9320         ia64_function_arg_pass_by_reference.
9321
9322 2002-04-18  Richard Henderson  <rth@redhat.com>
9323
9324         * ifcvt.c: Include except.h.
9325         (block_has_only_trap): Break out from find_cond_trap.
9326         (find_cond_trap): Use it.  Always delete the trap block.
9327         (merge_if_block): Allow then block null.  Be less simplistic about
9328         what insns can end a block.
9329         * Makefile.in (ifcvt.o): Depend on except.h.
9330
9331         * config/ia64/ia64.md (trap, conditional_trap): New.
9332
9333 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR c/6358
9336         * function.c (assign_parms): Assign hard current_function_return_rtx
9337         register here...
9338         (expand_function_end): ...not here.
9339
9340 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
9341
9342         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9343         * c-tree.h (c_incomplete_type_error): New.
9344         * c-typeck.c (require_complete_type, build_component_ref): Update.
9345         (incomplete_type_error): Rename.
9346         * langhooks-def.h (lhd_incomplete_type_error): New.
9347         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9348         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9349         * langhooks.c (lhd_incomplete_type_error): New.
9350         * langhooks.h (struct lang_hooks_for_types): New hook.
9351         * tree.c (size_in_bytes): Use new hook.
9352         * tree.h (incomplete_type_error): Remove.
9353 objc:
9354         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9355
9356 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9357
9358         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9359         TARGET_FLOAT_FORMAT blocks.
9360
9361 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9362
9363         * doc/install.texi (Downloading the source): Do not mention Chill
9364         any longer, but mention Ada.
9365         (Configuration): Do not mention Chill any longer.
9366
9367 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
9368
9369         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9370
9371 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
9372
9373         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9374         in last patch.
9375
9376 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9377
9378         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9379         instead of unsigned_type.
9380
9381 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
9382
9383         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9384         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9385         later.
9386
9387 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
9388
9389         * attribs.c (vector_type_node_list): New static variable.
9390         (handle_vector_size_attribute): Use it to avoid generating a
9391         new type node each time we are called.
9392
9393         * combine.c (subst): Avoid trying to make a vector mode subreg of
9394         an integer constant.
9395         (gen_lowpart_for_combine): Likewise.
9396
9397 2002-04-18  Roger Sayle  <roger@eyesopen.com>
9398             Jakub Jelinek  <jakub@redhat.com>
9399
9400         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9401         for integer constant c (if x has unsigned type or sign bit is not
9402         set in c).  This folds the zero/sign extension into the bit-wise and
9403         operation.
9404
9405 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9406
9407         PR middle-end/6205
9408         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9409         otherwise xorps.
9410
9411 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
9412
9413         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9414
9415 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
9416
9417         * gcc.c (read_specs): Detect and fail if an attempt is made to
9418         rename a spec string to an already existing string.
9419
9420 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9421
9422         * config/s390/s390.c (legitimize_pic_address): Do not generate
9423         illegal address constant without CONST.
9424
9425 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9426
9427         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9428         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9429
9430 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9431
9432         PR optimization/6305
9433         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9434         to make sure previous reloads are taken into account.  Generate
9435         better code if one operand is an in-range immediate constant.
9436
9437 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
9438
9439         * doc/install.texi (Building): libgcj requires GNU make.
9440
9441 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
9442
9443         PR bootstrap/6315
9444         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9445         even if hard quad and register is not floating.
9446         (movtf reg<-mem split): Disallow splitting if hard quad and
9447         register is floating.
9448         (movtf mem<-reg split): Likewise.
9449         * config/sparc/sparc.c (fp_register_operand): New predicate.
9450         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9451
9452 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
9453
9454         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9455         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9456         (unprotoize.o): Ditto.  Build from protoize.c.  Define
9457         UNPROTOIZE on command line.
9458         * protoize.c: Include cppdefault.h.  Delete include_defaults.
9459         (in_system_include_dir): Use cpp_include_defaults (defined in
9460         cppdefault.o).
9461         * unprotoize.c: Delete file.
9462
9463 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
9464
9465         * config/rs6000/altivec.h (vec_ld): Add array variants.
9466         (vec_lde): Same.
9467         (vec_ldl): Same.
9468
9469 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
9470             Aldy Hernandez <aldyh@redhat.com>
9471
9472         * config/rs6000/altivec.h: Define __ALTIVEC__.
9473         (bool): New.
9474         (__pixel): New.
9475         (pixel): New.
9476         (vec_cfux): New.
9477         (vec_vmaddfp): New.
9478         (vec_vsldoi): New.
9479         Add parentheses to all macro arguments.
9480
9481 2002-04-16  Richard Henderson  <rth@redhat.com>
9482
9483         PR c++/6320
9484         * except.c (remove_eh_handler): Insert inner regions at beginning
9485         of sibling chain.  Refactor expressions.
9486
9487 2002-04-16  Richard Henderson  <rth@redhat.com>
9488
9489         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9490         * config/sparc/sol2-gas-bi.h: New file.
9491         * config.gcc (sparc*-solaris): Add it as needed.
9492         * configure.in (AS_SPARC64_FLAG): Remove check.
9493         * config.in, configure: Regenerate.
9494
9495         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9496
9497 2002-04-16  Richard Henderson  <rth@redhat.com>
9498
9499         * config/mips/mips.c (override_options): Don't override N32 for
9500         a 64-bit ISA.
9501
9502         PR 6202
9503         * config/mips/mips.md (can_delay): Split out of existing define_delays.
9504         (HILO_delay): Set can_delay false.
9505
9506 2002-04-16  Dale Johannesen <dalej@apple.com>
9507
9508         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9509         instruction addresses.
9510         (rs6000_output_function_epilogue): Likewise.
9511
9512 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
9513
9514         * c-parse.in (poplevel, compstmt_start,
9515         compstmt_primary_start): Add ending ';', in accordance
9516         with POSIX.
9517
9518 2002-04-16  Richard Henderson  <rth@redhat.com>
9519
9520         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9521         Adjust tm_file order to get TARGET_DEFAULT set properly.
9522         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9523         * doc/install.texi (sparc-solaris): Update.
9524
9525 2002-04-16  Dale Johannesen <dalej@apple.com>
9526
9527         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9528         comparison operands do not match each other or if modes of
9529         conditions do not match result.
9530
9531 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
9532
9533         PR target/6305
9534         * config/s390/s390.md (mulsidi3): Set both subregs of the
9535         multiword register.
9536
9537 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
9538
9539         * config/rs6000/altivec.h (vec_addc): Type check.
9540
9541 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9542
9543         PR middle-end/6279
9544         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9545
9546         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9547
9548 2002-04-15  Richard Henderson  <rth@redhat.com>
9549
9550         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9551         call_really_used_regs too.
9552
9553 2002-04-15  Richard Henderson  <rth@redhat.com>
9554
9555         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9556
9557 2002-04-15  David S. Miller  <davem@redhat.com>
9558
9559         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9560         as being CLOBBERed.
9561
9562 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9563
9564         PR c/6290
9565         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9566         CONST_VECTOR is { 0, ... 0 }.
9567
9568 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
9569
9570         * doc/install.texi (Installing GCC: Configuration): Clarify
9571         the only supported ways to configure gcc.
9572
9573 2002-04-15  Roland McGrath  <roland@frob.com>
9574
9575         * config.gcc (alpha*-*-gnu*): New target configuration.
9576         * config/alpha/gnu.h: New file for it.
9577         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9578
9579 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
9580
9581         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9582         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9583         * tree.h (expand_start_stmt_expr): Update prototype.
9584         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9585         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9586         on the STMT_EXPR created for the inline function.
9587
9588 2002-04-15  Richard Henderson  <rth@redhat.com>
9589
9590         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9591         config/i386/linux-aout.h, config/i386/linux-oldld.h,
9592         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9593         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9594         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9595         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9596         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9597         Define __gnu_linux__, not gnu_linux.
9598         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9599
9600 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
9601
9602         Remove Chill front end.
9603         * gcc.c (default_compilers): Remove Chill entries.
9604         * ch: Remove directory.
9605         * doc/frontends.texi: Remove information about Chill.
9606         * doc/sourcebuild.texi: Likewise.
9607         * doc/standards.texi: Likewise.
9608
9609 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
9610
9611         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9612         (LONGLONG_STANDALONE): Define.
9613
9614 2002-04-15  David S. Miller  <davem@redhat.com>
9615
9616         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9617         Call emit_library_call with LCT_NORMAL.
9618         (sparc_initialize_trampoline): Use LCT_foo instead of
9619         magic constant in emit_library_call invocations.
9620         (sparc64_initialize_trampoline): Likewise.
9621         (sparc_profile_hook): Likewise.
9622         * config/sparc/sparc.md: Likewise.
9623
9624         * config/sparc/sparc.c (sparc_extra_constraint_check):
9625         Fix type of argument 'c'.
9626         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9627         Likewise.
9628
9629 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9630
9631         * diagnostic.h (output_buffer_state): Redefine.
9632         (output_format_decoder): New macro.
9633         (output_prefixing_rule): Likewise.
9634         (output_line_cutoff): Likewise.
9635         (diagnostic_format_decoder): Adjust.
9636         (diagnostic_prefixing_rule): Likewise.
9637         (diagnostic_line_cutoff): Likewise.
9638         (diagnostic_state): Likewise.
9639         (diagnostic_kind_count): Likewise.
9640         (diagnostic_buffer): Now a macro.
9641
9642         * diagnostic.c (diagnostic_buffer): Remove definition.
9643         (output_is_line_wrapping): Adjust.
9644         (set_real_maximum_length): Likewise.
9645         (output_set_maximum_length): Likewise.
9646         (init_output_buffer): Likewise.
9647         (lhd_print_error_function): Likewise.
9648         (output_do_verbatim): Likewise.
9649
9650 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9651
9652         * cpperror.c (print_location): Don't print include chain
9653         if line == 0.
9654         (cpp_begin_message): Update to use DL_ macros.
9655         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9656         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9657         cpp_notice, cpp_notice_from_errno): Remove.
9658         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9659         level.
9660         (cpp_errno): New.
9661         * cppexp.c (CPP_ICE): Remove.
9662         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9663         lex, integer_overflow, _cpp_parse_expr): Update.
9664         * cppfiles.c (read_include_file, find_include_file,
9665         handle_missing_header, _cpp_read_file, remap_filename): Update.
9666         * cpphash.h (enum error_type): Remove.
9667         (_cpp_begin_message): Update.
9668         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9669         cpp_handle_option, cpp_post_options): Update.
9670         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9671         skip_whitespace, parse_identifier, parse_slow, parse_string,
9672         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9673         cpp_interpret_charconst): Update.
9674         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9675         lex_macro_node, do_undef, glue_header_name, parse_include,
9676         do_include_common, read_flag, do_line, do_linemarker, do_ident,
9677         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9678         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9679         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9680         _cpp_pop_buffer, do_diagnostic): Update.
9681         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9682         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9683         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9684         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9685         cpp_notice, cpp_notice_from_errno): Remove.
9686         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9687         level.
9688         (cpp_errno): New.
9689         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9690         collect_args, enter_macro_context, save_parameter, parse_params,
9691         _cpp_create_definition, check_trad_stringification,
9692         cpp_macro_definition): Update.
9693         * cppmain.c (cpp_preprocess_file): Update.
9694         * fix-header.c (read_scan_file): Update.
9695
9696 2002-04-14  Andreas Schwab  <schwab@suse.de>
9697
9698         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9699
9700 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9701
9702         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9703
9704 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9705
9706         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9707         not gnu_hurd.
9708
9709 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
9710
9711         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9712
9713 2002-04-13      Joel Sherrill <joel@OARcorp.com>
9714
9715         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
9716         sparc-elf and sparc-rtems targets.
9717
9718 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9719
9720         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9721         defined, and __gnu_hurd__ wherever __GNU__ is defined.
9722         * arm/linux-elf.h: Likewise.
9723         * cris/aout.h: Likewise.
9724         * cris/linux.h: Likewise.
9725         * i370/linux.h: Likewise.
9726         * i386/gnu.h: Likewise.
9727         * i386/linux-aout.h: Likewise.
9728         * i386/linux-oldld.h: Likewise.
9729         * i386/linux.h: Likewise.
9730         * i386/linux64.h: Likewise.
9731         * ia64/linux.h: Likewise.
9732         * m68k/linux-aout.h: Likewise.
9733         * m68k/linux.h: Likewise.
9734         * mips/linux.h: Likewise.
9735         * pa/pa-linux.h: Likewise.
9736         * pj/linux.h: Likewise.
9737         * rs6000/sysv4.h: Likewise.
9738         * s390/linux.h: Likewise.
9739         * sh/linux.h: Likewise.
9740         * sparc/linux-aout.h: Likewise.
9741         * sparc/linux.h: Likewise.
9742         * sparc/linux64.h: Likewise.
9743         * xtensa/linux.h: Likewise.
9744
9745 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
9746
9747         * stmt.c (check_unique_operand_names): Expect operand names to
9748         be strings rather than identifiers.  Use simple_cst_equal to
9749         compare them.
9750         (resolve_operand_name_1): Make same identifier to string change here.
9751         * c-parse.in (asm_operand): Convert a named operand into a string.
9752         * cp/parse.y (asm_operand): Likewise.
9753
9754 2002-04-13  Andreas Schwab  <schwab@suse.de>
9755
9756         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9757
9758 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
9759
9760         Revert these changes:
9761
9762         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9763
9764         PR c++/5571
9765         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9766
9767 2002-04-12  Richard Henderson  <rth@redhat.com>
9768
9769         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9770         (sparc*-*-solaris): Clean up header files.
9771         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9772         and plan on generating 64-bit code.
9773         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9774         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9775         * config/sparc/sol2-sld-64.h: Rename ...
9776         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
9777         for AS_SPARC64_FLAG not defined.
9778         * config/sparc/sol2-gld-bi.h: New.
9779         * config/sparc/sol2-sld.h: Remove.
9780         * config/sparc/sol26-sld.h: New.
9781         * config/sparc/sol2.h: Tidy comments.
9782         * doc/install.texi: Document sparc-solaris configury changes.
9783
9784 2002-04-12  Richard Henderson  <rth@redhat.com>
9785
9786         * recog.c (offsettable_address_p): Match the logic in adjust_address.
9787
9788         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9789         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
9790
9791 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9792
9793         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9794
9795 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
9796
9797         * pa.c (pa_can_combine_p): Call extract_insn before calling
9798         constrain_operands.
9799
9800 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
9801
9802         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9803         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9804         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9805         (CPP_PREDEFINES): Handle __declspec.
9806         * config/i386/t-interix (USER_H): Remove.
9807
9808 2002-04-12  DJ Delorie  <dj@redhat.com>
9809
9810         * integrate.c (compare_blocks): Make comparisons safe for when
9811         sizeof(int) < sizeof(char *).
9812         (find_block): Likewise.
9813
9814 2002-04-12  Jan Hubicka  <jh@suse.cz>
9815             David Edelsohn  <edelsohn@gnu.org>
9816
9817         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9818         registers.
9819         (symbol_ref_operand): New.
9820         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9821         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9822
9823 2002-04-12  Andreas Schwab  <schwab@suse.de>
9824
9825         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9826         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9827         overrides the definition in config/svr4.h.
9828
9829 2002-04-12      Eric Norum <eric.norum@usask.ca>
9830
9831         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9832         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9833         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9834         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9835         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9836         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9837         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9838         definitions to config/rtems.h and make the targets more similar.
9839
9840 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9841
9842         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9843         POINTERS_EXTEND_UNSIGNED.
9844         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9845         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9846
9847         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9848         not specified.
9849
9850 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
9851
9852         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9853         depends on TARGET_SHMEDIA, not TARGET_SH5.
9854
9855 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
9856
9857         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9858         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9859
9860 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
9861
9862         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9863         no r0 clobber.
9864
9865 2002-04-12  Andreas Schwab  <schwab@suse.de>
9866
9867         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9868
9869 2002-04-12  Richard Henderson  <rth@redhat.com>
9870
9871         PR bootstrap/4191
9872         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9873
9874         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9875         modes spanning multiple hard regs.
9876
9877         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9878
9879 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9880
9881         * pa.c (pa_output_function_prologue): Don't accumulate the total
9882         number of code bytes when using TARGET_64BIT, or gas, SOM and not
9883         the portable runtime.
9884         (output_deferred_plabels): Handle 64bit plabels.
9885         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9886         generating pic code using the GAS assembler for object formats that
9887         are not SOM (ie., ELF32 and ELF64).
9888         (output_millicode_call): Check attribute type if attribute length is 28.
9889         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
9890         dbr_sequence_length once.
9891         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9892         dbr_sequence_length once.
9893         * pa.h (TARGET_SOM): Define if not defined.
9894         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9895         with GAS and not SOM.
9896         (jump, call_internal_reg, call_value_internal_reg): Likewise.
9897         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
9898
9899 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9900
9901         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9902         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9903         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9904         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9905         elfos.h and dbxelf.h values are fine now.
9906         * config/i386/freebsd.h, config/alpha/freebsd.h
9907         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9908
9909 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9910
9911         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9912         or set Acpu or Amachine.  Reformat.
9913         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9914         define.
9915         (LINK_SPEC): Do not need to undef.
9916         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9917         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9918         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9919         define.
9920         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9921         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9922         (LINK_SPEC): Do not need to undef.
9923         (DONT_USE_BUILTIN_SETJMP): Do not define.
9924         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9925         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
9926         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9927         Remove trailing spaces.
9928         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9929         __ELF__, or set Acpu or Amachine.  Reformat.
9930         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9931         define.
9932
9933 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9934
9935         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9936         all other *-*-freebsd* targets.
9937
9938 2002-04-11  Richard Henderson  <rth@redhat.com>
9939
9940         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9941
9942 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9943
9944         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9945         Include {cpu}/{cpu}.h thru tm_file.
9946         (alpha*-*-linux*ecoff): Remove target.
9947         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9948         (LINK_SPEC): Remove, is not OS independent.
9949         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9950         (LINK_SPEC): Do not need to #undef any longer.
9951         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9952         any longer.
9953         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9954         __ELF__.
9955         (LINK_SPEC): Moved here from alpha/elf.h.
9956         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9957         SUB_CPP_PREDEFINES.
9958         * config/alpha/linux-ecoff.h: Remove.
9959         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9960         (CPP_SPEC): Define _POSIX_SOURCE as needed.
9961         (CPP_SUBTARGET_SPEC): Do not define.
9962         (LINK_SPEC): Do not need to #undef any longer.
9963         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9964         * config/alpha/vms.h: Likewise.
9965
9966 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
9967
9968         * doc/extend.texi: Remove old claim that typedefs cannot have
9969         an alignment attribute.
9970
9971 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9972
9973         PR optimization/6177
9974         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9975         bitpos is 0 and bitsize CONCAT size.
9976
9977 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9978
9979         PR c/6223
9980         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9981
9982 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
9983
9984         * config/alpha/freebsd.h: Minor reformatting.
9985         (CPP_SPEC): Define ELF and add cpp_subtarget.
9986         (ASM_SPEC): No longer needed.
9987
9988 2002-04-11  Richard Henderson  <rth@redhat.com>
9989
9990         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9991         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
9992         (dimode mem/zero splitter): New.
9993
9994 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
9995
9996         * config/cris/cris.c (cris_override_options): Tweak error message
9997         for PIC not implemented.
9998
9999         * config/cris/cris.h: Tweak comments related to parameter-passing.
10000
10001         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10002
10003 2002-04-10  Richard Henderson  <rth@redhat.com>
10004
10005         * except.c (add_ehl_entry): Allow duplicates after landing pad
10006         creation.
10007
10008 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
10009
10010         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10011
10012 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
10013
10014         * c-decl.c (c_init_decl_processing): Move generation of
10015         decls for g77_integer_type_node and friends from here ...
10016         * c-common.c (c_common_nodes_and_builtins): ... to here.
10017
10018 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
10019
10020         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10021         is only used as frame pointer when frame_pointer_needed is true.
10022
10023 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
10024
10025         PR target/817
10026         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10027         for the fact that the pool entry uses two words.
10028         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
10029         1k bytes.
10030         (movdf_soft_insn): Similarly.
10031         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10032         for the fact that the pool entry uses three words.
10033
10034 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
10035
10036         * config/mips/mips.c (mips_va_arg): When using the struct version
10037         of the EABI va_list, allow arguments in the register save area to
10038         take up less room than a stack argument.
10039
10040 2002-04-10  Richard Henderson  <rth@redhat.com>
10041
10042         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10043         if EXPAND_INITIALIZER.
10044
10045 2002-04-09  Richard Henderson  <rth@redhat.com>
10046
10047         * config/alpha/alpha.md (movdi_er_maybe_g): New.
10048         * config/alpha/alpha.c (alpha_expand_mov): Use it.
10049
10050 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
10051
10052         PR optimization/6233
10053         * rtlanal.c (pure_call_p): New function.
10054         * rtl.h (pure_call_p): Declare.
10055         * loop.c (prescan_loop): Use it to set has_nonconst_call.
10056         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10057
10058 2002-04-09  Eric Christopher  <echristo@redhat.com>
10059
10060         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10061         information to .comm directive.
10062
10063 2002-04-09  Richard Henderson  <rth@redhat.com>
10064
10065         PR c/5078
10066         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10067
10068 2002-04-09  Richard Henderson  <rth@redhat.com>
10069
10070         * basic-block.h (flow_delete_block_noexpunge): Declare.
10071         (expunge_block_nocompact): Declare.
10072         * cfg.c (expunge_block_nocompact): Split out from ...
10073         (expunge_block): ... here.
10074         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10075         (flow_delete_block_noexpunge): Split out from ...
10076         (flow_delete_block): ... here.
10077         * cfgcleanup.c (delete_unreachable_blocks): Compact while
10078         removing dead blocks.
10079         * except.c (exception_handler_labels): Remove.
10080         (exception_handler_label_map): New.
10081         (struct eh_region): Add aka member.
10082         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10083         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10084         (for_each_eh_label, for_each_eh_label_1): New.
10085         (init_eh): Register exception_handler_label_map.
10086         (free_eh_status): Use free_region.
10087         (find_exception_handler_labels): Use the map, not the list.
10088         (remove_exception_handler_label): Likewise.
10089         (maybe_remove_eh_handler): Likewise.
10090         (remove_eh_handler): Use the region aka bitmap.
10091         * except.h (exception_handler_labels): Remove.
10092         (for_each_eh_label): Declare.
10093         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10094         * loop.c (invalidate_loops_containing_label): New.
10095         (find_and_verify_loops): Use it.  Use for_each_eh_label.
10096         * sched-rgn.c (is_cfg_nonregular): Use
10097         current_function_has_exception_handlers.
10098
10099 2002-04-09  Richard Henderson  <rth@redhat.com>
10100
10101         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10102         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10103         Do not return changed status.
10104         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10105         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10106         New functions that do return changed status.
10107         * sbitmap.h: Update decls.
10108         * gcse.c, lcm.c: Use _cg functions as needed.
10109
10110 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10111
10112         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10113         (sh64-*-elf*, sh-*-rtemself*): Likewise.
10114         * config/sh/embed_bb.c: New file.
10115         * config/sh/embed-elf.h: New file.
10116         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10117         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
10118         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10119         __PTRDIFF_TYPE__ .
10120         (SUBTARGET_CPP_PTR_SPEC): Don't define.
10121         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10122         Add subtarget_asm_endian_spec.
10123         (ASM_SPEC): Use subtarget_asm_endian_spec.
10124         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10125         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10126         (WCHAR_UNSIGNED): Define.
10127         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10128         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10129         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10130         Fix value.
10131         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10132         (sh_adjust_cost): Likewise.
10133         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10134         __PTRDIFF_TYPE__ .
10135         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10136         (WCHAR_TYPE_SIZE): Likewise.
10137         (ASM_SPEC): Use subtarget_asm_endian_spec.
10138         (SH_ELF_WCHAR_TYPE): #undef/ #define.
10139         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10140         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10141         (MAX_WCHAR_TYPE_SIZE): Don't #define .
10142         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10143         (USER_LABEL_PREFIX): Don't #undef /#define .
10144         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10145         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10146         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10147         (ASM_SPEC): Likewise.
10148         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10149         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10150         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10151         (LIB2FUNCS_EXTRA): Define.
10152         * t-sh64 (LIB2FUNCS_EXTRA): Define.
10153         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10154         (LIB1ASMFUNCS_CACHE): Define.
10155         (LIB2FUNCS_EXTRA): Redefine empty.
10156
10157 2002-04-08  Richard Henderson  <rth@redhat.com>
10158
10159         * reorg.c (get_branch_condition): Use reversed_comparison_code.
10160
10161 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10162
10163         * config/m68hc11/larith.asm (__map_data_section): Fix condition
10164         and optimize for size.
10165         (__do_global_ctors): Fix pointer comparison.
10166         (__do_global_dtors): Likewise.
10167
10168 2002-04-09  David S. Miller  <davem@redhat.com>
10169
10170         * config/sparc/sparc.c (sparc_extra_constraint_check): New
10171         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
10172         allow reloading pseudos.
10173         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10174         * config/sparc/sparc-protos.h: Declare it.
10175
10176         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10177         unsigned comparison warning.
10178         (output_restore_regs): Mark leaf_function as unused.
10179
10180 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10181
10182         * expr.c (is_aligning_offset): New function.
10183         (expand_expr, case COMPONENT_EXPR): Call it.
10184
10185 2002-04-08  David S. Miller  <davem@redhat.com>
10186
10187         PR target/6082
10188         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10189
10190         Make init_priority work on Sparc when using GNU ld.
10191         * config/sparc/linux.h, config/sparc/linux64.h,
10192         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10193         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10194         * config/sparc/sol2-gld.h: New file to do the same.
10195         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10196         sparc/sol2-gld.h to tm_file.
10197
10198         PR optimization/4328
10199         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10200         * doc/md.texi: Document it.
10201         * config/sparc/sparc.md (movdi_insn_sp64_novis,
10202         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10203         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10204         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10205         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10206
10207 2002-04-08  Andreas Jaeger  <aj@suse.de>
10208
10209         * stmt.c (expand_asm_operands): Revert last patch from Richard
10210         Henderson.
10211
10212 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10213
10214         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10215         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
10216
10217 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10218
10219         * doc/contrib.texi (Contributors): Add David O'Brien.
10220
10221 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
10222
10223         * configure.in (auto-build.h): Use target_alias and build_alias
10224         when running configure.
10225         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10226         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10227         * configure: Regenerate.
10228
10229 2002-04-07  David S. Miller  <davem@redhat.com>
10230
10231         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10232
10233 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10234
10235         PR 5933
10236         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10237         generating 32-bit pic code.
10238
10239 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
10240
10241         * cppinit.c (cpp_create_reader): Initialize
10242         discard_comments_in_macro_exp.
10243         (COMMAND_LINE_OPTIONS): Add "-CC" option.
10244         (cpp_handle_option): Handle "-CC" option.
10245         * cpplex.c (save_comment): If saving a C++ comment in
10246         a directive, convert it to a C comment.
10247         (_cpp_lex_direct): Pass second comment start character to
10248         save_comment to indicate comment type.
10249         * cpplib.c (_cpp_handle_directive): If processing
10250         a "#define" directive and discard_comments_in_macro_exp
10251         is false,  re-enable saving of comments.
10252         (lex_macro_node): If discard_comments_in_macro_exp is false,
10253         discard any comments before the macro identifier.
10254         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10255         member.
10256         * cppmacro.c (cpp_get_token): If expanding a macro while
10257         processing a directive, discard any comments we might encounter.
10258         (parse_params): If discard_comments_in_macro_exp is false,
10259         ignore comments in the macro parameter list.
10260         * gcc.c (cpp_unique_options): Add "-CC" option.
10261         (option_map): Map "--comments-in-macros" to "-CC".
10262         * doc/cppopts.texi: Document "-CC" option.
10263         * f/lang-specs.h: Add "-CC" option.
10264         * testsuite/gcc.dg/cpp/maccom1.c: New test.
10265         * testsuite/gcc.dg/cpp/maccom2.c: New test.
10266         * testsuite/gcc.dg/cpp/maccom3.c: New test.
10267         * testsuite/gcc.dg/cpp/maccom4.c: New test.
10268         * testsuite/gcc.dg/cpp/maccom5.c: New test.
10269         * testsuite/gcc.dg/cpp/maccom6.c: New test.
10270
10271 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10272
10273         PR middle-end/6180
10274         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10275
10276 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
10277
10278         PR c++/5571
10279         * stor-layout.c (layout_decl): Reset the RTL for the decl.
10280
10281         PR opt/5120
10282         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10283         RTX_UNCHANGING_P for the functions arguments when a tail call
10284         is made.
10285
10286 2002-04-06  Jason Merrill  <jason@redhat.com>
10287
10288         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10289         (parse_options_and_default_flags): Set them appropriately.
10290         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10291
10292 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
10293
10294         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10295         here.
10296
10297         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10298         semicolon.
10299
10300         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10301         types come in by-reference.  Fix typo in comment.
10302
10303 2002-04-05  David S. Miller  <davem@redhat.com>
10304
10305         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10306         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10307         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10308         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10309
10310 2002-04-05  David S. Miller  <davem@redhat.com>
10311
10312         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10313         are not going to emit return instructions, emit at least a nop
10314         for the sake of sane backtraces.
10315
10316 2002-04-05  Richard Henderson  <rth@redhat.com>
10317
10318         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10319
10320 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
10321
10322         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10323
10324 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
10325
10326         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10327         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10328         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10329
10330 2002-04-05  Andreas Schwab  <schwab@suse.de>
10331
10332         * c-convert.c: Include c-common.h.
10333         * Makefile.in (c-convert.o): Updated.
10334
10335 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10336
10337         * mklibgcc.in: Use separate libgcc.map for each multilib.
10338         * Makefile.in (distclean): Don't remove libgcc.map here.
10339
10340 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10341
10342         * Makefile.in (s-mlib): Handle --disable-multilib by separate
10343         genmultilib invocation.
10344
10345 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
10346
10347         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10348         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
10349         to num_gprs for symmetry.
10350         * config/mips/mips.c: Adjust accordingly.
10351
10352 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10353
10354         * c-common.c (truthvalue_conversion): Rename, update.
10355         * c-common.h (c_common_truthvalue_conversion): New.
10356         * c-convert.c (convert): Update.
10357         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10358         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10359         * c-typeck.c (build_binary_op, build_unary_op,
10360         build_conditional_expr): Update.
10361         * fold-const.c (constant_boolean_node, fold): Use langhook.
10362         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10363         * langhooks.h (struct lang_hooks): New hook.
10364         * stmt.c (expand_decl_cleanup): Use langhook.
10365         * tree.h (truthvalue_conversion): Remove.
10366 objc:
10367         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10368
10369 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
10370
10371         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10372         Add rules to make null object file.
10373
10374 2002-04-04  Jim Blandy  <jimb@redhat.com>
10375
10376         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10377         macro formal parameter names.
10378
10379 2002-04-04  David S. Miller  <davem@redhat.com>
10380
10381         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10382
10383 2002-04-04  Richard Henderson  <rth@redhat.com>
10384
10385         PR middle-end/5099
10386         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10387         Support copies into and out of memory.  Don't accept allows_reg
10388         and allows_mem as gospel.
10389
10390 2002-04-04  Richard Henderson  <rth@redhat.com>
10391
10392         PR opt/6165
10393         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10394         (write_dependence_p): Likewise.
10395
10396 2002-04-04  Richard Henderson  <rth@redhat.com>
10397
10398         * predict.c (estimate_bb_frequencies): Do frequency calculation
10399         with a volatile temporary.
10400
10401 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
10402
10403         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10404
10405 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10406
10407         PR c++/6119
10408         * final.c (final_start_function): Don't bump profile_label_no here...
10409         (final_end_function): ...but here.
10410
10411 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10412
10413         * config/sparc/sparc.md (pic): New attribute.
10414         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10415         into stack slots.
10416         (split after do_builtin_setjmp_setup): New.
10417
10418 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR fortran/6106
10421         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10422         change.
10423
10424 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10425
10426         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10427         UNITS_PER_WORD for zero sized aggregates.
10428
10429 2002-04-03  David S. Miller  <davem@redhat.com>
10430
10431         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10432         one-character spec for this, just use %(link_gcc_c_sequence).
10433
10434 2002-04-03  David S. Miller  <davem@redhat.com>
10435
10436         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10437         handling.
10438
10439 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10440
10441         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10442         (DWARF_FRAME_RETURN_COLUMN): Move.
10443         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10444         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10445         * pa.c (except.h, predict.h): Include.
10446         (FRP): Delete.
10447         (store_reg_modify, set_reg_plus_d): Revise prototypes.
10448         (output_ascii): Add cast.
10449         (store_reg_modify): Revise to add frame notes.
10450         (set_reg_plus_d): Likewise.
10451         (compute_frame_size): Include space for eh data registers in frame if
10452         the current function calls eh_return.
10453         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
10454         function calls eh_return.  Save eh data registers if the current
10455         function calls eh_return.  Fix code to add frame notes.  Emit
10456         blockage to prevent insns with frame notes being scheduled in the
10457         delay slot of calls.
10458         (hppa_expand_epilogue): Restore eh data registers and do final stack
10459         adjustment if the current function calls eh_return.  Don't add frame
10460         notes.
10461         (output_call): Revise for change in length of call insn.  Don't do
10462         return pointer adjustment for an unconditional jump in the delay slot
10463         of a call when using frame notes.
10464         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10465         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10466         (ARG_POINTER_CFA_OFFSET): Define.
10467         * pa.md (return_external_pic): New pattern.
10468         (prologue): Correct formatting.  Use return_external_pic if current
10469         function calls eh_return.
10470         (call_internal_symref, call_value_internal_symref,
10471         sibcall_internal_symref, sibcall_value_internal_symref): Change default
10472         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10473         respectively.
10474         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10475
10476         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10477         list of targets to check using "nop" insn.
10478         * configure: Rebuilt.
10479
10480 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
10481
10482         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10483
10484 2002-04-03  David S. Miller  <davem@redhat.com>
10485
10486         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10487         library sequence passed to the linker.
10488         (LINK_COMMAND_SPEC): Use it.
10489         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10490         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10491         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10492
10493 2002-04-03  Jason Merrill  <jason@redhat.com>
10494
10495         * except.c (struct eh_status): Remove protect_list.
10496         (begin_protect_partials, end_protect_partials): Remove.
10497         (add_partial_entry): Remove.
10498         * except.h: Remove prototypes.
10499
10500         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10501         expand_decl_cleanup_eh.
10502
10503         PR c++/5636
10504         * tree.h (CLEANUP_EH_ONLY): New macro.
10505         * stmt.c (expand_decl_cleanup_eh): New fn.
10506         (expand_cleanups): Check CLEANUP_EH_ONLY.
10507         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10508         Use expand_decl_cleanup_eh.
10509         (expand_stmt): Adjust.
10510         * c-common.h: Adjust prototype.
10511
10512 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
10513
10514         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10515         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10516         (cris_target_asm_function_epilogue): Ditto.
10517         (cris_initial_frame_pointer_offset): Ditto.
10518         (cris_simple_epilogue): Ditto.
10519         (cris_expand_builtin_va_arg): Variable-size types come in
10520         by-reference.
10521
10522 2002-04-03  David S. Miller  <davem@redhat.com>
10523
10524         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10525         little-endian.
10526         (set_fast_math): Correct 'fsr' type.
10527
10528 2002-04-03  Richard Henderson  <rth@redhat.com>
10529
10530         PR opt/3569
10531         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10532         * toplev.c (check_global_declarations): Use it.
10533         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10534         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10535         (LANG_HOOKS_DECLS): Add it.
10536         * langhooks.c (lhd_warn_unused_global_decl): New.
10537         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10538         * c-objc-common.c (c_warn_unused_global_decl): New.
10539         * c-tree.h (c_warn_unused_global_decl): Declare.
10540         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10541
10542 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10543
10544         * langhooks-def.h (lhd_set_decl_assembler_name,
10545         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10546         (LANG_HOOKS_INITIALIZER): Update.
10547         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10548         * langhooks.h (struct lang_hooks): New hook.
10549         * tree.c (set_decl_assembler_name): Move to langhooks.c.
10550         (lang_set_decl_assembler_name): Remove.
10551         (init_obstacks): Don't set hook.
10552         (decl_assembler_name): New function.
10553         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10554         (decl_assembler_name): New.
10555         (lang_set_decl_assembler_name): Remove.
10556
10557 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10558
10559         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10560         works properly with .hidden symbols.
10561         * configure: Rebuilt.
10562         * config.in: Rebuilt.
10563         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10564         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10565         properly with .hidden symbols.
10566
10567 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10568
10569         PR middle-end/6102
10570         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10571         USE argument.
10572
10573 2002-04-03  Richard Henderson  <rth@redhat.com>
10574
10575         PR opt/4120
10576         * sched-rgn.c (sets_likely_spilled): New.
10577         (sets_likely_spilled_1): New.
10578         (add_branch_dependences): Use it.
10579
10580 2002-04-02  Richard Henderson  <rth@redhat.com>
10581
10582         PR opt/4311
10583         * loop.h (LOOP_FIRST_PASS): New.
10584         * loop.c (strength_reduce): Mind it when deciding to unroll.
10585         * toplev.c (rest_of_compilation): Set it.
10586
10587 2002-04-02  David S. Miller  <davem@redhat.com>
10588
10589         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10590         mems_ok_for_ldd_peep when the order of the loads being examined
10591         is reversed.
10592         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10593         existing comment to increase comprehension of this situation.
10594
10595 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
10596
10597         * config/sh/sh.md: Don't use union real_extract.
10598
10599 2002-04-02  Richard Henderson  <rth@redhat.com>
10600
10601         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10602
10603 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10604
10605         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10606         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10607         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10608         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10609         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10610         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10611         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10612         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10613         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10614         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10615         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10616         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10617         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10618         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10619         Include as many configury headers via tm_file as possible.  This
10620         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10621         * config/openbsd-oldgas.h: New file.
10622         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10623         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10624         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10625         config/i386/i386-coff.h, config/i386/i386-interix.h,
10626         config/i386/iscdbx.h, config/i386/linux-aout.h,
10627         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10628         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10629         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10630         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10631         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10632         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10633         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10634         config/i386/vxi386.h: Do not directly include configury headers.
10635         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10636         Directly include configury headers that are no longer automatically
10637         included by the above headers.
10638         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10639         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10640         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10641         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10642         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10643         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10644         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10645         (TARGET_VERSION): Define.
10646         * config/i386/beos-elf.h, config/i386/freebsd.h,
10647         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10648         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10649         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10650         config/i386/sco5.h, config/i386/sysv4.h
10651         (TARGET_VERSION): Do not need to protect.
10652         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10653         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10654         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10655         config/i386/i386-interix.h, config/i386/linux-aout.h,
10656         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10657         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10658         (YES_UNDERSCORES): Do not define - not needed.
10659         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10660         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10661         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10662         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10663         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10664         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10665         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10666         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10667
10668 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
10669             Richard Henderson  <rth@redhat.com>
10670
10671         PR c/5484
10672         * function.c (assign_temp): Accept either type or decl argument.
10673         Detect variables whose size is too large to fit into an integer.
10674         * stmt.c (expand_decl): Pass the decl, not the type.
10675
10676 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10677
10678         * protoize.c: Match include directory usage with cppdefault.c.
10679
10680 2002-04-03  Jeffrey A Law  (law@redhat.com)
10681             Hans-Peter Nilsson  <hp@bitrange.com>
10682
10683         * combine.c (simplify_comparison): Avoid narrowing a comparison
10684         with a paradoxical subreg when doing so would drop signficant bits.
10685
10686 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
10687
10688         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10689         if POINTERS_EXTEND_UNSIGNED is defined.
10690
10691 2002-04-02  Richard Henderson  <rth@redhat.com>
10692
10693         PR opt/3967
10694         * local-alloc.c (contains_replace_regs): LO_SUM may contain
10695         replace regs.
10696
10697 2002-04-02  Richard Henderson  <rth@redhat.com>
10698
10699         * doc/standards.texi: Document required freestanding libc entry points.
10700
10701 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
10702
10703         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10704         associated splitter.  Remove MQ constraint.
10705         (ctrdi_internal4): Correct CCmode clobber.
10706
10707 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10708
10709         * milli64.S ($$dyncall): New function.
10710         * t-linux (LIB1ASMFUNCS): Revise module list.
10711         (LIB1ASMSRC): Use pa/milli64.S.
10712
10713 2002-04-02  Richard Henderson  <rth@redhat.com>
10714
10715         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10716         rename solaris_sys_varargs_h.
10717
10718 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10719
10720         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10721         the same mode as its component.
10722
10723 2002-04-02  Richard Henderson  <rth@redhat.com>
10724
10725         PR opt/190
10726         * final.c (this_is_asm_operands): Export.
10727         * output.h (this_is_asm_operands): Declare.
10728         * config/i386/i386.c (print_operand): Error odd asm operands.
10729
10730 2002-04-02  Richard Henderson  <rth@redhat.com>
10731
10732         PR opt/420
10733         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10734
10735 2002-04-01  Richard Henderson  <rth@redhat.com>
10736
10737         PR target/1538
10738         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10739         * fixinc/fixincl.x: Rebuild.
10740
10741 2002-04-01  Richard Henderson  <rth@redhat.com>
10742
10743         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10744         (atomic_alloc, atomic_free): New.
10745         (SIZE, MASK_FOR, PTR_IN): New.
10746         (emergency_reg_state, emergency_reg_state_free): New.
10747         (emergency_labeled_state, emergency_labeled_state_free): New.
10748         (reg_state_alloced, labeled_state_alloced): New.
10749         (alloc_reg_state, free_reg_state): New.
10750         (alloc_label_state, free_label_state, free_label_states): New.
10751         (push, pop, dup_state_stack, free_state_stack): Use them.
10752         (desc_label_state): Likewise.
10753         (uw_frame_state_for): Free label states and state stack.
10754         (uw_update_reg_address): Eliminate warnings.
10755
10756 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
10757
10758         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10759         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10760
10761 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10762
10763         * c-decl.c (grokdeclarator): Update.
10764         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10765         * c-tree.h (c_mark_addressable): New.
10766         * c-typeck.c (default_function_array_conversion, build_unary_op,
10767         build_array_ref, convert_for_assignment): Update.
10768         (mark_addressable): Rename.
10769         * calls.c (try_to_integrate, expand_call): Use langhook.
10770         * expr.c (expand_expr): Use langhook.
10771         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10772         * langhooks.h (struct lang_hooks): New hook.
10773         * stmt.c (expand_asm_operands): Use langhook.
10774         * tree.h (mark_addressable): Remove.
10775 objc:
10776         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10777
10778 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10779
10780         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10781         in previous change.
10782
10783 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10784
10785         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10786         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10787
10788 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10789
10790         * c-common.c (unsigned_conversion_warning, convert_and_check,
10791         unsigned_type, signed_type, shorten_compare,
10792         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10793         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10794         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10795         New.
10796         * c-decl.c (grokdeclarator): Update.
10797         * c-format.c (check_format_types): Update.
10798         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10799         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10800         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10801         * convert.c (convert_to_integer): Use new hooks.
10802         * expmed.c (make_tree): Use new hooks.
10803         * expr.c (store_expr): Use new hooks.
10804         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10805         all_ones_mask_p, unextend, fold): Use new hooks.
10806         * langhooks.h (struct lang_hooks_for_types): New hooks.
10807         * tree.h (signed_or_unsigned_type, signed_type,
10808         unsigned_type): Remove.
10809 objc:
10810         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10811         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10812
10813 2002-03-31  Richard Henderson  <rth@redhat.com>
10814
10815         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10816         (desc_frgr_mem): Fix reference to f16-f31.
10817
10818 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10819
10820         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10821         RTVEC_ELT): Const-ify.
10822         * varray.h (VARRAY_CHECK): Const-ify.
10823         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10824         ggc_mark_rtvec, ggc_mark): Const-ify.
10825
10826 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10827
10828         * diagnostic.c: Include langhooks-def.h.
10829         * Makefile.in (diagnostic.o): Update.
10830
10831 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10832
10833         * c-common.c (c_unsafe_for_reeval): Rename.
10834         * c-common.h (c_unsafe_for_reeval): Rename.
10835         * c-decl.c (finish_incomplete_decl): Rename.
10836         (c_init_decl_processing): Don't set langhook.
10837         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10838         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10839         * c-objc-common.c (c_objc_common_init): Don't set langhook.
10840         * c-tree.h (finish_incomplete_decl): Rename.
10841         * langhooks-def.h (lhd_unsafe_for_reeval): New.
10842         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10843         (LANG_HOOKS_INITIALIZER): Update.
10844         * langhooks.c (lhd_unsafe_For_reeval): New.
10845         * langhooks.h (struct langhooks): New hooks.
10846         * toplev.c (incomplete_decl_finalize_hook): Remove.
10847         (wrapup_global_declarations): Update.
10848         * tree.c (lang_unsafe_for_reeval): Remove.
10849         (unsafe_for_reeval): Update.
10850         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10851         Remove.
10852 objc:
10853         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10854         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10855
10856 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10857
10858         * diagnostic.c (print_error_function): Remove.
10859         (default_print_error_function): Rename.
10860         (report_error_function): Update.
10861         * diagnostic.h (print_error_function): Remove.
10862         (default_print_error_function): Remove.
10863         * langhooks-def.h (struct diagnostic_context): Predeclare.
10864         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10865         (LANG_HOOKS_INITIALIZER): Update.
10866         * langhooks.h (struct diagnostic context): Predeclare.
10867         (struct lang_hooks): New hook.
10868
10869 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10870
10871         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10872         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10873         !flag_pic.
10874         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10875         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10876         of PIC_OFFSET_TABLE_REGNUM thruout.
10877         * config/rs6000/rs6000.md: Likewise.
10878         * config/rs6000/darwin.h: Likewise.
10879
10880 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10881
10882         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10883         unsigned HOST_WIDE_INT, not unsigned int.
10884
10885 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10886
10887         PR middle-end/6096, middle-end/6098, middle-end/6099
10888         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10889         CODE_LABELs.
10890         (fill_slots_from_thread): Likewise.
10891
10892 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10893
10894         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10895         floating fields in float regs.
10896         (function_arg_record_value_2): Likewise.
10897
10898 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10899
10900         * config/mmix/mmix.md (define_constants): Remove misleading
10901         FIXME.  Add MMIX_fp_rO_OFFSET.
10902         ("nonlocal_goto_receiver"): Don't have stack-frame address of
10903         saved rO as part of the pattern.  Remove FIXME.
10904         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
10905         here, at output-time.
10906
10907 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10908
10909         PR middle-end/6100
10910         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10911         REG_BR_PRED.
10912         (output_v9branch): Likewise.
10913
10914 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10915
10916         * gcc.c: Revert previous patch for now.
10917         * config/i386/djgpp.h: Likewise.
10918
10919 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10920
10921         * config/mmix/crti.asm (_init): Register _fini with atexit.
10922         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10923
10924 2002-03-31  Richard Henderson  <rth@redhat.com>
10925
10926         PR target/3997
10927         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10928         (ASM_OUTPUT_DEF_FROM_DECLS): New.
10929
10930 2002-03-31  Richard Henderson  <rth@redhat.com>
10931
10932         * libgcc2.c (__bb_exit_func): Make static.
10933
10934         * config/alpha/alpha.md (trap): New.
10935
10936 2002-03-31  Richard Henderson  <rth@redhat.com>
10937
10938         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10939         promoted argument types; build trap.
10940         (expand_builtin_trap): New.
10941         (expand_builtin): Use it.
10942         * stmt.c (expand_nl_goto_receivers): Likewise.
10943         * expr.h (expand_builtin_trap): Declare.
10944         * libfuncs.h (LTI_abort, abort_libfunc): New.
10945         * optabs.c (init_optabs): Init abort_libfunc.
10946
10947 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10948
10949         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10950         (LINK_COMMAND_SPEC): ... from here.
10951         (init_gcc_specs): Duplicate it here too, omitting
10952         shared_name in the second copy.
10953         (init_spec): Test for duplicate
10954         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10955
10956 2002-03-30  David S. Miller  <davem@redhat.com>
10957
10958         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10959         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10960
10961 2002-03-30  Roger Sayle <roger@eyesopen.com>
10962             Richard Henderson  <rth@redhat.com>
10963
10964         * regmove.c (combine_stack_adjustments_for_block): Avoid
10965         emitting a stack adjustment of zero bytes.  Let delete_insn
10966         update bb->head.
10967
10968 2002-03-30  Richard Henderson  <rth@redhat.com>
10969
10970         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10971         (sparc_emitting_epilogue): New.
10972         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10973         * config/sparc/sparc-protos.h: Update.
10974         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10975         (TARGET_SWITCHES): Update.
10976         * config/sparc/sparc.md (return): Remove.
10977         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10978         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10979         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10980         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10981         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10982         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10983         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10984         Remove MASK_EPILOGUE.
10985         * doc/invoke.texi: Update.
10986
10987 2002-03-30  Daniel Berlin  <dan@dberlin.org>
10988
10989         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10990         CPP will start the file for us.
10991
10992 2002-03-30  Richard Henderson  <rth@redhat.com>
10993
10994         PR target/5446
10995         * config/ia64/ia64.c (group_barrier_needed_p): Special case
10996         prologue_allocate_stack.
10997         (ia64_single_set): Use insn codes for recognition of special
10998         cases, not rtl matching.
10999         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11000
11001 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
11002
11003         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11004
11005 2002-03-30  Richard Henderson  <rth@redhat.com>
11006
11007         PR target/6032
11008         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11009         or -fomit-frame-pointer with profiling.
11010         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11011         (FUNCTION_PROFILER): Do nothing.
11012         (PROFILE_HOOK): New.
11013         * config/sparc/sparc.c (sparc_override_options): Don't check
11014         code models for profiling.
11015         (sparc_function_profiler): Remove.
11016         (sparc_profile_hook): New.
11017         * config/sparc/sparc-protos.h: Update.
11018
11019 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
11020
11021         PR optimization/6086
11022         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11023         of SUBREG of volatile MEM or because the MEM was mode dependent,
11024         return CLOBBER instead of unmodified SUBREG.
11025
11026 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11027
11028         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11029         when not optimizing.
11030
11031         * toplev.c (rest_of_compilation): Cann mark_constant_function
11032         only when optimizing.
11033
11034         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11035         are NULL.
11036
11037         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11038         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11039         (try_optimize_cfg): clear all AUX fields.
11040
11041         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11042         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11043         (ix86_address_cost): Be prepared for SUBREGed registers.
11044         (legitimate_address_p): Accept SUBREGed registers.
11045
11046 2002-03-29  Richard Henderson  <rth@redhat.com>
11047
11048         PR target/5672
11049         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
11050
11051 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11052
11053         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11054         for aggregate and TFmode types.
11055
11056 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11057
11058         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11059
11060 2002-03-29  Richard Henderson  <rth@redhat.com>
11061
11062         PR target/5886
11063         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11064         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11065
11066 2002-03-29  Richard Henderson  <rth@redhat.com>
11067
11068         PR target/6041
11069         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11070         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11071         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11072         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11073         conditional.
11074         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11075
11076 2002-03-29  Dale Johannesen <dalej@apple.com>
11077
11078         * loop.c (combine_movables): Do allow combination of pseudos.
11079
11080 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
11081
11082         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11083         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11084         No functional change except ...
11085         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
11086         * doc/install.texi (*-*-freebsd*): Document port configuration.
11087
11088 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11089
11090         * Makefile.in (convert.o, calls.o, expmed.o): Update.
11091         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11092         Use new hooks.
11093         * builtin-types.def (BT_PTRMODE): Update.
11094         * c-common.c (type_for_size): Rename c_common_type_for_size.
11095         (type_for_mode): Similarly.
11096         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11097         Use new hook.
11098         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11099         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11100         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11101         Redefine.
11102         * c-typeck.c (common_type, comptypes, default_conversion):
11103         Use new hooks.
11104         * calls.c: Include langhooks.h.
11105         (emit_library_call_value_1): Use new hooks.  Avoid redundant
11106         calls.
11107         * convert.c: Include langhooks.h
11108         (convert_to_pointer, convert_to_integer): Use new hooks.
11109         * except.c (init_eh): Similarly.
11110         * expmed.c: Include langhooks.h.
11111         (expand_mult_add): Use new hooks.
11112         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11113         try_casesi): Similarly.
11114         * fold-const.c (optimize_bit_field_compare, make_range,
11115         decode_field_reference, fold_truthop, fold): Similarly.
11116         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11117         put_var_into_stack): Similarly.
11118         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11119         LANG_HOOKS_TYPE_FOR_SIZE): New.
11120         (LANG_HOOKS_TYPES_INITIALIZER): Update.
11121         * langhooks.h (lang_hooks_for_types): New hooks.
11122         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11123         * tree.c (get_unwidened, get_narrower): Similarly.
11124         * tree.h (type_for_mode, type_for_size): Remove.
11125         * varasm.c (force_const_mem): Use new hooks.
11126         * utils2.c (nonbinary_modular_operation): Update.
11127 objc:
11128         * objc-act.c (handle_impent): Update.
11129         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11130         Redefine.
11131
11132 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
11133
11134         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11135         * config/ia64/ia64.c (basereg_operand): New.
11136         * config/ia64/ia64-protos.h (basereg_operand): Declare.
11137         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11138
11139 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11140
11141         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11142         unwind information when frame_pointer_needed.
11143         (mmix_assemble_integer): Tweak wording in comment.
11144
11145 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11146
11147         * Makefile.in (except.o): Update.
11148         * except.c: Include langhooks.h.
11149         (init_eh): Use langhook.
11150         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11151         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11152         (LANG_HOOKS_INITIALIZER): Update.
11153         * langhooks.h (lang_hooks_for_types): New.
11154         (struct lang_hooks): Add it.
11155         * tree.c (make_lang_type_fn, make_lang_type): Remove.
11156         * tree.h (make_lang_type_fn, make_lang_type): Remove.
11157 config:
11158         * alpha/alpha.c: Include langhooks.h.
11159         (alpha_build_va_list): Use langhook.
11160         * d30v/d30v.c: Include langhooks.h.
11161         (d30v_build_va_list): Use langhook.
11162         * i386/i386.c: Include langhooks.h.
11163         (ix86_build_va_list): Use langhook.
11164         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11165         * s390/s390.c: Include langhooks.h.
11166         (s390_build_va_list): Use langhook.
11167         * stormy16/stormy16.c: Include langhooks.h.
11168         (stormy16_build_va_list): Use langhook.
11169
11170 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11171
11172         PR c++/5964
11173         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11174         attributes.
11175         (length): Compute variable length for branches/calls/jumps here.
11176         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11177         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11178         define branch_type attribute.
11179         (divsi3_sp32): Maximum length is 6 not 7.
11180         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11181         call_address_untyped_struct_value_sp32,
11182         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11183         * config/sparc/sparc.c (empty_delay_slot): New function.
11184         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11185         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11186
11187 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11188
11189         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11190         nonzero_bits if not needed.
11191         (nonzero_bits) [XOR]: Likewise.
11192         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11193         reg_last_set_mode and mode are both MODE_INT, but not equal.
11194         (record_value_for_reg): Compute reg_last_set_nonzero_bits
11195         in nonzero_bits_mode for MODE_INT modes.
11196
11197 2002-03-28  Richard Henderson  <rth@redhat.com>
11198
11199         PR target/5715
11200         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11201         to GAS.  Correct drift between alternatives.
11202
11203 2002-03-28  Richard Henderson  <rth@redhat.com>
11204
11205         PR target/6087
11206         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11207
11208 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
11209
11210         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11211         emulation to the linker.
11212
11213 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
11214
11215         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11216         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11217
11218 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
11219
11220         * combine.c (simplify_and_const_int): Make sure to apply mask
11221         when force_to_mode returns a constant integer.  PR3311.
11222
11223 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11224
11225         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11226
11227 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11228
11229         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11230         and Objective-C Dialect Options.
11231
11232 2002-03-28  Richard Henderson  <rth@redhat.com>
11233
11234         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11235         comparison should be done vs !=0 not >0 return code.  Tidy cases.
11236
11237 2002-03-28  Richard Henderson  <rth@redhat.com>
11238
11239         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
11240         on to c_expand_body.
11241         * c-tree.h (finish_function): Update decl.
11242         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11243
11244 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11245
11246         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11247
11248 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
11249
11250         * rtlanal.c: Include flags.h
11251         (may_trap_p): Do not mark FP operations if trapping
11252         if !flag_trapping_math
11253         * Makefile.in (rtlanal.o): Add dependency on flag.h
11254         * ifcvt.c (noce_operand_ok): Avoid the lameness.
11255
11256 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
11257
11258         * mips.md: Use dconst1, not 1.0, as first argument of
11259         REAL_VALUE_LDEXP.  Don't use union real_extract.
11260
11261 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
11262
11263         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11264         rather than $target.  Heed program_prefix and
11265         program_transform_name.  Search for gas in cross-compiler case too.
11266         "test -x" rather than "test -f".
11267         (gcc_cv_ld): Likewise.
11268         (gcc_cv_nm): Heed program_prefix and program_transform_name.
11269         (gcc_cv_objdump): Likewise.
11270         * configure: Regenerate.
11271
11272 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11273
11274         * Makefile.in (attribs.o): Update.
11275         * attribs.c: Include langhooks.h.
11276         (decl_attributes): Use langhook.
11277         * c-decl.c (insert_default_attributes): Rename.
11278         * c-tree.h (c_insert_default_attributes): New.
11279         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11280         (LANG_HOOKS_INITIALIZER): Update.
11281         * langhooks.h (struct lang_hooks): New hook.
11282         * tree.h (insert_default_attributes): Remove.
11283 objc:
11284         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11285
11286 2002-03-27  Andreas Schwab  <schwab@suse.de>
11287
11288         * config/i386/i386.c (classify_argument): Also check for
11289         QUAL_UNION_TYPE.
11290
11291 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11292
11293         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11294         any more.
11295
11296 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11297
11298         * i960.md (ret): Set PC.
11299         (nonlocal_goto): Fix expander.
11300         * builtins.c (epxand_builin_longjmp): Check that we've emitted
11301         some jump or call.
11302
11303 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11304
11305         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11306         of libcall regions.
11307
11308 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11309
11310         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11311         assigning to BLOCK_FOR_INSN directly.
11312
11313 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11314
11315         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11316
11317 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11318
11319         * c-common.c (c_expand_expr): Fix prototype.
11320         * c-common.h (c_expand_expr): Always declare, update.
11321         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11322         * c-objc-common.c (c_objc_common_init): No global hook.
11323         * expr.c (expand_expr): Use langhook.
11324         * expr.h (enum expand_modifier): Conditionally declare.
11325         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11326         (LANG_HOOKS_INITIALIZER): Update.
11327         * langhooks.c (lhd_expand_expr): New.
11328         * langhooks.h (struct lang_hooks): New hook.
11329         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11330         (lang_independent_init): Don't default hook.
11331 objc:
11332         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11333
11334 2002-03-27  Richard Henderson  <rth@redhat.com>
11335
11336         PR target/6054
11337         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11338         TARGET_CONST_GP.  Simplify conditions.
11339
11340 2002-03-27  Richard Henderson  <rth@redhat.com>
11341
11342         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11343         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11344         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11345
11346 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
11347
11348         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11349         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11350         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11351         Remove unnecessary masks.
11352         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11353         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11354         -mwindows, -mdll switches and their negations.
11355
11356 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11357
11358         * gcc-common.c (lang_mark_false_label_stack): Remove.
11359         * ggc.h (lang_mark_false_label_stack): Similarly.
11360
11361 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
11362
11363         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11364
11365         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11366         or __rtems_ is defined.
11367
11368 2002-03-26  Richard Henderson  <rth@redhat.com>
11369
11370         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11371         if a non-trivial load was emitted.
11372         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
11373         in high+extra+low case.
11374
11375 2002-03-26  Richard Henderson  <rth@redhat.com>
11376
11377         * config.gcc (sparc*-solaris): Use float_format=sparc.
11378
11379 2002-03-26  Richard Henderson  <rth@redhat.com>
11380
11381         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11382         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11383         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11384         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11385         (WINT_TYPE_SIZE): Fix at 32.
11386
11387 2002-03-26  Richard Henderson  <rth@redhat.com>
11388
11389         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11390         until after eh landing pad generation.
11391         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11392         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11393
11394 2002-03-26  Richard Henderson  <rth@redhat.com>
11395
11396         * expr.h (ADD_PARM_SIZE): One more convert for INC.
11397
11398 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
11399
11400         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
11401         and warning switches.
11402         (cc1_options):  Likewise.
11403
11404 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
11405
11406         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11407         Restore more of the signal context.  Set no_reg_stack_frame.
11408         * config/ia64/unwind-ia64.c (unw_state_record):
11409         Add no_reg_stack_frame, comments.
11410         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11411         (uw_update_context): Adjust bsp when unwinding from leaf,
11412         but not signal frame.
11413
11414 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
11415
11416         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11417
11418 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11419
11420         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11421
11422 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11423
11424         PR target/5621
11425         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11426         "Add a pool_range attribute", which was lost during the ARM/Thumb
11427         merge.
11428
11429 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11430
11431         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11432         a register into the MAC16 accumulator.
11433
11434 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
11435
11436         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11437         (Warning Options): Document -Wswitch-enum.
11438         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
11439         -Wswitch.
11440         (warn_switch_enum): Define variables.
11441         * flags.h (warn_switch_enum): Declare variables.
11442         * stmt.c (expand_end_case_type): When warn_switch_enum /
11443         -Wswitch-enum, perform switch checks.
11444         Fix PR c/5044.
11445
11446 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11447
11448         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11449         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11450         (reload_muladdsi_compare0_scratch): Delete.
11451
11452 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
11453
11454         * doc/install.texi (*-*-freebsd*): Update.
11455
11456 2002-03-26  Richard Henderson  <rth@redhat.com>
11457
11458         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11459         (SUB_PARM_SIZE): Cast DEC to ssizetype.
11460
11461         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11462         types from the normal argument frame.
11463
11464         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11465         variable sized objects by reference.
11466         (sparc_va_arg): Receive them by reference too.
11467
11468 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
11469
11470         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
11471         code to not restoring global registers.
11472
11473 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11474
11475         * Makefile.in (ggc-common.o): Update.
11476         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11477         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11478         * c-tree.h (c_mark_tree): New.
11479         * ggc-common.c: Include langhooks.h.
11480         (gcc_mark_trees): Use new langhook.
11481         * ggc-callbacks.c: Delete file.
11482         * ggc.h (lang_mark_tree): Remove.
11483         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11484         (LANG_HOOKS_INITIALIZER): Update.
11485         * langhooks.h (struct lang_hooks): New hook.
11486 objc:
11487         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11488
11489 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11490
11491         * doc/cpp.texi: Exclude entire Top node from printed manual.
11492         Move option index after directive index.  Insert page breaks
11493         before GFDL and concept index.  Index environment variables
11494         with command line options.
11495         * doc/cppenv.texi: Use @vtable for environment variable list.
11496         Add paragraph explaining semantics of empty elements in path
11497         variables.  Exclude a cross-reference to Fishkill from the
11498         manpage.  Remove an unnecessary cross-reference of the entry
11499         right above the referer.  Don't use @anchor in text that goes
11500         into manpage.
11501         * doc/cppopts.texi: Cross-reference the environment variables
11502         section, not the specific environment variable, for consistency.
11503
11504 2002-03-25  Richard Henderson  <rth@redhat.com>
11505
11506         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11507         anywhere in the block.  Don't refer to insns that have been
11508         removed from the chain.  Iterate backward through the new insns.
11509         Don't refer to edges that have been removed.
11510
11511 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
11512
11513         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11514         test for overflow of constant.
11515
11516 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
11517
11518         PR target/2623
11519         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11520         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11521         these patterns on arm_archv4.
11522
11523 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
11524
11525         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11526         int".
11527
11528 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11529
11530         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
11531         float_handled, float_handler, float_signal, set_float_handler,
11532         and do_float_handler.  Set handler for SIGFPE to crash_signal.
11533         * toplev.h: Don't prototype do_float_handler.
11534
11535         * c-lex.c: Fold parse_float into lex_number.  Make warning
11536         about portability of hex float constants more informative, and
11537         don't issue it on top of a syntax error.
11538         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11539         their callers.
11540         * real.h: Define REAL_VALUE_ABS here...
11541         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
11542         simplify_unary_real, simplify_binary_real, and
11543         simplify_binary_is2orm1 into their callers.
11544         * tree.c: Fold build_real_from_int_cst_1 into caller.
11545
11546         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11547
11548         * tsystem.h: Include float.h here...
11549         * libgcc2.c: ... not here.
11550
11551 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
11552
11553         Fixes for: PR bootstrap/3591, target/5676
11554         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11555         defined.  Do not disable exceptions or rtti.
11556         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11557         mcore.h.  Disable exceptions and rtti, since they are not
11558         supported by EPOC.
11559
11560 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11561
11562         * c-decl.c (maybe_build_cleanup): Remove.
11563         * expr.c (expand_expr): Use langhook.
11564         * langhooks-def.h (lhd_return_null_tree,
11565         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11566         (LANGHOOKS_INITIALIZER): Update.
11567         * langhooks.c (lhd_return_null_tree): New.
11568         * langhooks.h (struct lang_hooks): New hook.
11569         * tree-inline.c (initialize_inlined_parameters): Use langhook.
11570         * tree.h (maybe_build_cleanup): Remove.
11571
11572 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11573
11574         * regrename.c (build_def_use): Move recog_memoized
11575         before extract_insn.
11576
11577 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11578
11579         PR target/6043
11580         * expr.c (emit_group_store): Handle storing into CONCAT.
11581
11582 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11583
11584         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11585         corresponding MATCH_DUP.
11586
11587 2002-03-24  Richard Henderson  <rth@redhat.com>
11588
11589         * unroll.c (unroll_loop): Zero label_map.
11590
11591         * gcse.c: Include except.h.
11592         * Makefile.in (gcse.o): Update.
11593
11594 2002-03-24  Richard Henderson  <rth@redhat.com>
11595
11596         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11597         Do resolve_unique_section before shared data clause.
11598
11599 2002-03-24  Richard Henderson  <rth@redhat.com>
11600
11601         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11602
11603 2002-03-24  Richard Henderson  <rth@redhat.com>
11604
11605         * recog.c (peephole2_optimize): Split blocks when EH insns are
11606         generated in the middle of a block.  Do global life update if
11607         zapped EH edges.
11608
11609 2002-03-24  Richard Henderson  <rth@redhat.com>
11610
11611         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11612
11613 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11614
11615         preprocessor/3951
11616         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
11617         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11618         (init_dependency_output): Don't make no_output decision here.
11619
11620 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
11621
11622         * stmt.c (check_for_full_enumeration_handling): Remove tests of
11623         warn_switch.  Update description.
11624         (expand_end_case_type): Call check_for_full_enumeration_handling
11625         when warn_switch.
11626
11627 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11628
11629         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11630         (m68hc11_split_move): Call it to see if the source and destination
11631         operands use the same direction auto inc/dec mode, otherwise make the
11632         source an offsetable memory operand and generate an add.
11633
11634 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11635
11636         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11637         register for operand 2.
11638         ("*subsi3_zero_extendqi"): Likewise.
11639         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11640         bits so that it is compatible with a pop.
11641         ("*andhi3_gen"): Likewise.
11642         ("xorhi3"): Likewise.
11643
11644 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11645
11646         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11647         -pedantic here...
11648         (cpp_post_options): ... not here.
11649
11650 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11651             Aldy Hernandez  <aldyh@redhat.com>
11652
11653         Removal of separate preprocessor cpp0.
11654
11655         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11656         cpp0, install-common): Update.
11657         * c-common.c (flag_preprocess_only): New.
11658         (c_common_init): Preprocess for -E.
11659         * c-common.h (flag_preprocess_only): New.
11660         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11661         * c-objc-common.c (c_init_decl_processing): Exit quickly
11662         for NULL return from c_common_init.
11663         * cpplib.h (cpp_preprocess_file): New.
11664         * cppmain.c (main, general_init, pfile, progname): Remove.
11665         (do_preprocessing): Rename cpp_preprocess_file, don't call
11666         cpp_finish.  Don't close stdout here.
11667         (setup_callbacks): Update prototype.
11668         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11669         Update.
11670         * tradcpp.c (main): Ignore -quiet.
11671 objc:
11672         * lang-specs.h (default_compilers): Preprocess with cc1obj.
11673
11674 2002-03-24  Richard Henderson  <rth@redhat.com>
11675
11676         PR optimization/5742
11677         * machmode.def: Add inner mode field to complex modes.
11678         * config/mips/mips.c (mips_function_value): Always define.  Add
11679         new argument to handle libcalls.
11680         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11681         (FUNCTION_VALUE): Likewise.
11682         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11683         * config/mips/mips-protos.h: Update.
11684
11685 2002-03-23  Richard Henderson  <rth@redhat.com>
11686
11687         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11688         * config/sparc/sparc-protos.h: Update.
11689         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11690
11691 2002-03-23  Richard Henderson  <rth@redhat.com>
11692
11693         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11694         _start or _init begins the text segment.
11695
11696 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
11697
11698         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
11699         not HOST_WIDEST_INT.
11700         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11701
11702 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
11703
11704         PR java/5489
11705         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11706         operand argument to output_return_instruction.
11707         * arm.c (arm_print_operand, case 'd'): If the operand is
11708         const_true_rtx then just return.
11709         (arm_print_operand, case 'D'): If the operand is const_true_rtx
11710         then abort.
11711
11712 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11713
11714         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11715         (Warning Options): Document -Wswitch-default.
11716         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
11717         -Wswitch.
11718         (warn_switch_default): Define variable.
11719         (warn_switch): Update comment.
11720         * flags.h (warn_switch_default): Declare variable.
11721         (warn_switch): Update comment.
11722         * stmt.c (expand_end_case): Check for and, when
11723         warn_switch_no_default, warn of a missing default case.
11724
11725 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
11726
11727         * real.h (N): Special case 128 bit doubles.
11728
11729         * combine.c (simplify_comparison): When widening modes, ignore
11730         sign extension on CONST_INTs.
11731
11732 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11733
11734         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11735         passed to adjust_address.  Fix comment formatting.
11736
11737
11738 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
11739
11740         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11741         Always make REAL_VALUE_TYPE a struct containing an array of
11742         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
11743         big it is.  Don't declare or use union real_extract.
11744
11745         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11746         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11747         (print_operand), config/arm/arm.c (output_move_double),
11748         config/arm/arm.md (consttable_4, consttable_8),
11749         config/romp/romp.c (output_fpops), config/s390/s390.h
11750         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11751         (xtensa_output_literal): Don't use union real_extract.
11752
11753         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11754         (sfmode_constant_to_ulong), config/ns32k/merlin.h
11755         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11756         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11757         (PRINT_OPERAND): Don't use local version of union
11758         real_extract.
11759
11760         * config/convex/convex.c (check_float_value), config/vax/vax.c
11761         (vax_float_literal), config/m88k/m88k.md (divdf3),
11762         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11763         config/pdp11/pdp11.c (output_move_quad): Don't do host
11764         arithmetic on target floating point quantities.
11765
11766         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11767         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11768
11769         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11770         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11771
11772         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11773         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11774         INFINITY.
11775         * print-rtl.c (print_rtx): Disable code which needs
11776         floating-point emulator.
11777         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11778         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11779         depending on HOST_FLOAT_FORMAT to be defined properly.
11780
11781         * config/1750a/1750a.c (get_double, float_label): Delete.
11782         (print_operand): Delete huge commented-out chunk.  Use
11783         REAL_VALUE_TO_DECIMAL.
11784         * config/1750a/1750a-protos.h: Delete prototypes of deleted
11785         functions.
11786         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11787         IEEE_FLOAT_FORMAT.
11788         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11789         Use REAL_VALUE_TO_DECIMAL as ELF version does.
11790         * config/m88k/m88k.c (real_power_of_2_operand,
11791         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11792         real_extract out of the union; run the input through
11793         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11794         from that into the union.
11795         * config/pdp11/pdp11.c (output_move_double): Rearrange
11796         parentheses to make automatic indenter happy.
11797
11798         * doc/tm.texi (Cross-compilation): Rename node to "Floating
11799         Point" and rewrite to describe current situation.  Also adjust
11800         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11801         match code.
11802         * doc/rtl.texi: Adjust cross reference.
11803
11804 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11805
11806         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11807         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11808         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11809         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11810         prevent use of sp as a reload register.
11811         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11812         non_acc_reg_operand.
11813         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11814         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11815         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11816         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11817
11818 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11819
11820         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11821         * cpplex.c (unterminated): Delete.
11822         (parse_string): No string literal may extend over multiple
11823         lines.  Suppress the error when preprocessing assembly.
11824         * cppmain.c (scan_translation_unit): Strings are single-line.
11825
11826         * doc/cpp.texi: Update to match.
11827
11828 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11829
11830         PR optimization/5854
11831         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11832         Shut up warnings.
11833         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11834         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11835         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11836         const0 if scratch register was not allocated.
11837         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11838         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11839         with GEN_INT (...).
11840         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11841         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11842         with GEN_INT (...) everywhere.  Remove constraints in define_split
11843         patterns.
11844         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11845         require scratch register for setting 0 into regs/non-pushable memory.
11846
11847 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11848
11849         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11850         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11851
11852 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
11853
11854         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
11855         * cppinit.c (cpp_create_reader):  On by default.
11856         (cpp_handle_option):  Handle -W[no-]endif-labels.
11857         (cpp_post_options):  Also enable if -pedantic.
11858         * cpplib.c (do_else):  Use it.
11859         (do_endif):  Likewise.
11860         * doc/cppopts.texi:  Document new option.
11861         * doc/invoke.texi:  Document new option.
11862
11863 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
11864
11865         * config/i386/i386.c, config/i386/i386.md: Change all occurences
11866         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11867
11868 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11869
11870         * flow.c (calculate_global_regs_live): Clear aux fields of
11871         ENTRY and EXIT.
11872
11873 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11874
11875         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11876         REG or MEM subregs, pass rtx * instead of rtx to it.
11877         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11878         rtx * instead of rtx to alter_subreg.
11879         * config/m32r/m32r.c (gen_split_move_double): Likewise.
11880         * config/pj/pj.c (pj_output_rval): Likewise.
11881
11882 2002-03-22  Richard Henderson  <rth@redhat.com>
11883
11884         PR target/3177
11885         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11886         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11887         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11888         (ia64_expand_prologue): Look at int_regs, not words, for number
11889         of incomming int regs.
11890
11891 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
11892
11893         * expr.c (expand_expr): A RESULT_DECL is part of a call.
11894
11895 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
11896
11897         * toplev.c (flag_loop_optimize, flag_crossjumping):
11898         New static variables.
11899         (rest_of_compilation): Conditionalize crossjumping and
11900         loop optimizer.
11901         (parse_options_and_default_flags): Default loop_optimize and
11902         crossjumping.
11903         (lang_independent_options): Add -fcrossjumping and -floop-optimize
11904         * invoke.texi (crossjumping, loop-optimize): Document.
11905
11906 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11907
11908         * real.c (eiisneg): Move outside #ifdef NANS.
11909
11910 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11911
11912         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11913         frequencies match; avoid match on different loop depths.
11914         (try_crossjump_to_bb): Kill tests that no longer brings time
11915         savings.
11916         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11917         updating code.
11918         (split_edge): Likewise.
11919
11920         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11921         variable.
11922
11923         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11924         * cfgrtl.c: Include insn-config.h
11925         (split_block) Dirtify block in presence of conditional execution
11926
11927 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11928
11929         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11930         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11931         (function_arg): Constify CUMULATIVE_ARGS.
11932         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11933         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11934         (UNITS_PER_DOUBLE): New macro.
11935         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
11936         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
11937         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
11938         fp_regs and stack_words.
11939         (EABI_FLOAT_VARARGS_P): New macro.
11940         * config/mips/mips.c (struct mips_arg_info): New.
11941         (mips_arg_info): New function.
11942         (function_arg_advance): Use it.  Add adjustment instructions here
11943         rather than in function_arg.
11944         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
11945         for VOIDmode at the beginning of the function.
11946         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
11947         (function_arg_pass_by_reference): Likewise.
11948         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11949         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11950         (mips_va_start): Likewise.  Use the new stack_words field of
11951         CUMULATIVE_ARGS to set up overflow area.  Reformat.
11952         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
11953         doubles and other types, aligning the overflow pointer for non-doubles
11954         too.  Remove some code duplication.  Replace hard-coded constants.
11955
11956 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11957
11958         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11959         (CLASS_UNITS): Undefine.
11960         (CLASS_MAX_NREGS): Use FP_INC.
11961         * config/mips/mips.c (compute_frame_size): Likewise.
11962         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11963
11964 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11965
11966         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11967         prototype, and handle lexing numbers and identifiers.
11968         (parse_identifier): Update to new form of parse_slow.
11969         (parse_number): Fast path only, use parse_slow otherwise.
11970         (_cpp_lex_direct): Update calls to parse_number.
11971
11972 2002-03-21  DJ Delorie  <dj@redhat.com>
11973
11974         * bb-reorder.c (make_reorder_chain_1): Protect against
11975         when redundant edges are omitted.
11976         * predict.c (dump_prediction): Likewise.
11977
11978 2002-03-21  Richard Henderson  <rth@redhat.com>
11979
11980         PR target/5996
11981         * fixinc/inclhack.def (solaris_stdio_tag): New.
11982         * fixinc/fixincl.x: Regenerate.
11983
11984 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11985
11986         PR c/5597
11987         * c-typeck.c (process_init_element): Flag non-static
11988         initialization of a flexible array member as illegal.
11989
11990 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
11991
11992         * config/rs6000/t-linux64: New.
11993         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11994         t-ppccomm.  Use t-rs6000 and t-linux64.
11995         (powerpc64-*-gnu* <tmake_file>): Likewise.
11996         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11997         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11998         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11999
12000 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
12001
12002         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12003         flag_really_no_inline instead of optimize == 0.
12004
12005         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12006
12007         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12008
12009         * flags.h (flag_really_no_inline): New.
12010
12011         * c-common.c (c_common_post_options): Initialize
12012         flag_really_no_inline.
12013
12014         * toplev.c (flag_really_no_inline): New.
12015
12016 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12017
12018         * config/avr/avr.md (length): Fix length computation for
12019         conditional branches.
12020
12021 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12022
12023         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12024         sdbout.o, profile.o): Update.
12025         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12026         langhook.
12027         * c-common.h (gettags): Move here from tree.h.
12028         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12029         insert_block, getdecls, kept_level_p, global_bindings_p): New.
12030         * dbxout.c (dbxout_init): Use getdecls langhook.
12031         * expr.c (expand_expr): Use insert_block langhook.
12032         * fold-const.c: Include langhooks.h.
12033         (fold_range_test, fold_binary_op_with_conditional_arg,
12034         fold): Use global_bindings_p langhook.
12035         * integrate.c (expand_inline_function): Use insert_block langhook.
12036         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12037         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12038         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12039         LANG_HOOKS_GETDECLS): New.
12040         (LANG_HOOKS_INITIALIZER): Update.
12041         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12042         langhook.
12043         * langhooks.h (struct lang_hooks_for_decls): New.
12044         (struct lang_hooks): Update.
12045         * profile.c: Include langhooks.h.
12046         (output_func_start_profiler): Use new langhooks.
12047         * sdbout.c: Include langhooks.h.
12048         (sdbout_init, sdbout_finish): Use getdecls langhook.
12049         * stmt.c: Include langhooks.h.
12050         (expand_fixup, fixup_gotos): Use new langhooks.
12051         * stor-layout.c: Include langhooks.h.
12052         (variable_size): Use global_bindings_p langhook.
12053         * toplev.c (compile_file): Use getdecls langhook.
12054         * tree-inline.c (remap_block): Use insert_block langhook.
12055         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12056         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12057
12058 2002-03-21  Richard Henderson  <rth@redhat.com>
12059
12060         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12061         constants in .data when -fpic.
12062
12063 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12064
12065         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12066         where appropriate.
12067
12068 2002-03-21  Tom Tromey  <tromey@redhat.com>
12069
12070         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
12071
12072 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12073
12074         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
12075
12076         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12077
12078 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
12079             Richard Henderson  <rth@redhat.com>
12080
12081         PR c/5354
12082         * c-common.c (c_expand_expr): Preserve result of a statement
12083         expression if needed.
12084
12085 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12086
12087         PR bootstrap/4195
12088         * genrecog.c (maybe_both_true_mode): Remove.
12089         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12090         * machmode.def (Pmode): Likewise.
12091
12092 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
12093
12094         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12095         (nonlocal_mentioned_p_1): New function.
12096         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12097         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12098         (mark_constant_function): Recognize pure functions.
12099         * rtl.h (global_reg_mentioned_p): New prototype.
12100         * rtlanal.c (global_reg_mentioned_p,
12101         global_reg_mentioned_p_1): New function.
12102
12103 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12104
12105         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12106         UNIX assert.h.
12107         * fixinc/fixincl.x: Regenerate.
12108
12109 2002-03-20  Jason Merrill  <jason@redhat.com>
12110
12111         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12112
12113 2002-03-20  Michael Meissner  <meissner@redhat.com>
12114
12115         * doc/invoke.texi (Optimize Options): Document that -O2 sets
12116         -fstrict-aliasing.
12117
12118 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12119
12120         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12121         ".literal_position" directive before the constant pool.
12122
12123 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12124
12125         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12126         Add Craig Rodrigues.
12127         Add Brad Lucier to testers.
12128
12129 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12130
12131         PR target/4792
12132         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12133         to if_then_else.
12134         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12135         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12136         instead of insn_extract.
12137
12138 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12139
12140         PR bootstrap/4192
12141         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
12142
12143         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12144         stmt if some case has been output.
12145
12146 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12147
12148         PR c/5972
12149         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12150         movsfcc_1, movdfcc_1): Add %O2.
12151         * config/i386/i386.c (print_operand): Handle %ON.
12152         Print . before float condition codes in Sun as cmov syntax.
12153         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12154         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12155         no longer true.
12156
12157 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
12158
12159         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12160         return instruction if PC was popped.
12161
12162 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12163
12164         * config/xtensa/xtensa.md: Remove unused type attributes.
12165         (adddi_carry, subddi_carry): Change type attribute to "multi".
12166
12167 2002-03-19  Dale Johannesen  <dalej@apple.com>
12168
12169         PR optimization/5999, middle-end/5731
12170         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12171         multiplications by reciprocals.
12172
12173 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12174
12175         * Makefile.in: Update.
12176         * c-common.c: Include langhooks.h.
12177         (inline_forbidden_p): Use new hook.
12178         * diagnostic.c: Include langhooks.h.
12179         (format_with_decl, announce_function,
12180         default_print_error_function): Use new hook.
12181         * dwarf2out.c (dwarf2_name): Use new hook.
12182         * function.c: Include langhooks.h.
12183         (init_function_start): Use new hook.
12184         * langhooks-def.h (lhd_decl_printable_name): New.
12185         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12186         (LANGHOOKS_INITIALIZER): Update.
12187         * langhooks.c (lhd_decl_printable_name): New.
12188         * langhooks.h (struct lang_hooks): New hook.
12189         * toplev.c (decl_name, decl_printable_name): Remove.
12190         (open_dump_file): Use new hook.
12191         (process_options): Remove old hook.
12192         * tree.h (decl_printable_name): Remove.
12193 objc:
12194         * objc-act.c (objc_init): Remove old hook.
12195         (objc_printable_name): Export.
12196         * objc-act.h (objc_printable_name): New.
12197         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12198
12199 2002-03-19  Jim Blandy  <jimb@redhat.com>
12200
12201         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12202         the start_source_file debug hook, not the current line number.
12203
12204 2002-03-19  Richard Henderson  <rth@redhat.com>
12205
12206         * flow.c (EH_USES): Provide default.
12207         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12208         * doc/tm.texi (EH_USES): New.
12209
12210         * config/ia64/ia64.c (ia64_eh_uses): New.
12211         * config/ia64/ia64-protos.h: Update.
12212         * config/ia64/ia64.h (EH_USES): New.
12213
12214 2002-03-19  Richard Henderson  <rth@redhat.com>
12215
12216         * varasm.c (output_constant_def): Fix stupid typo.
12217
12218 2002-03-19  Richard Henderson  <rth@redhat.com>
12219
12220         PR 5879
12221         * except.c (current_function_has_exception_handlers): New.
12222         * except.h: Declare it.
12223         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12224         Combine tests that disable all sibcalls for the function.
12225
12226 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
12227
12228         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12229         for INTEGER_CST.
12230
12231 2002-03-19  Richard Henderson  <rth@redhat.com>
12232
12233         PR 5977, 5991
12234         * config/ia64/ia64.c: Revert 2002-03-01 patch.
12235         * config/ia64/ia64.h (INIT_EXPANDERS): New.
12236
12237 2002-03-19  Jim Blandy  <jimb@redhat.com>
12238
12239         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12240         name, even if the replacement list contains no tokens, as required
12241         by Dwarf.
12242
12243 2002-03-19  Jason Merrill  <jason@redhat.com>
12244
12245         * varasm.c (globalize_decl): Get the name from the RTL, not
12246         DECL_ASSEMBLER_NAME.
12247
12248         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12249
12250 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
12251
12252         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12253         subdi_carry): Define.
12254
12255 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12256
12257         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12258         about -fpic/-fPIC if extra_warnings set.
12259
12260 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12261
12262         * expr.c (expand_expr): Sign-extend CONST_INT generated from
12263         TREE_STRING_POINTER.
12264         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
12265
12266 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12267
12268         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12269         in favor of SP if FRAME_POINTER_REQUIRED is false.
12270
12271 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
12272
12273         * emit-rtl.c (gen_int_mode): New function.
12274         * rtl.h: Prototype for it.
12275         * combine.c (make_extraction, simplify_comparison), expmed.c
12276         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12277         (convert_modes, store_field), optabs.c (expand_fix),
12278         simplify-rtx.c (neg_const_int, simplify_unary_real),
12279
12280         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12281         Use it instead of GEN_INT (trunc_int_for_mode (...)).
12282
12283 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
12284
12285         PR c/5656
12286         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12287         convert_parm_for_inlining.
12288         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12289         Define.
12290         * langhooks-def.h: Likewise.
12291         * objc/objc-lang.c: Likewise.
12292         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12293         function.
12294         * tree-inline.c (initialize_inlined_parameters):
12295         Call convert_parm_for_inlining lang hook if needed.
12296         * c-typeck.c (c_convert_parm_for_inlining): New function.
12297         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12298
12299 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
12300
12301         * calls.c (precompute_arguments): Do not assume that temporaries
12302         can be destroyed after expanding the argument.
12303         (expand_call): Likewise.
12304
12305 2002-03-15  Eric Christopher  <echristo@redhat.com>
12306
12307         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12308         Fix register preference on last change.
12309         * config/mips/mips.c (mips_return_in_memory): New function.
12310         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12311         * config/mips/mips-protos.h: Declare.
12312         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12313         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12314
12315 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
12316
12317         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12318         a register too.
12319         (anddi3, iorsi3): Likewise.
12320
12321         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12322         use %gprel for symbols that are going to be placed in linkonce
12323         sections.
12324
12325         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12326         RETURN_ADDRESS_POINTER_REGNUM to $ra.
12327         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12328         not needed.  Disregard leaf_function_p().
12329         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12330         mips16 frame pointer.
12331         * config/mips/mips.md (store ra): Only to small SP offsets.
12332         2001-08-22  Graham Stott  <grahams@redhat.com>
12333         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12334         return a REG rtx for the return address register.
12335
12336 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
12337
12338         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12339         constant-pool addresses as "mode-dependent".
12340         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12341
12342 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
12343
12344         PR target/5740
12345         * expr.c (emit_group_load): Use extract_bit_field if
12346         needed for CONCAT arguments.
12347
12348 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
12349
12350         PR target/4863
12351         * arm.md (tablejump): Make this a define_expand.  For PIC add the
12352         offset to the base of the table.
12353         (thumb_tablejump): Matcher for Thumb tablejump insn.
12354         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12355         as the difference of two labels.
12356         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12357         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12358         tables in the code.
12359         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12360         * arm.c (get_jump_table_size): If the table is not in the text
12361         section, return zero.
12362
12363 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
12364
12365         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12366         of gen_rtx_SUBREG.
12367         (arm_reload_out_hi): Use gen_lowpart instead of
12368         gen_rtx_SUBREG to access QImode components.
12369         * config/arm/arm.md: Disable zero_extend split for QImode
12370         subregs in BIG_ENDIAN mode.
12371         (storehi_bigend): Match use of least significant byte.
12372         (storeinthi): Remove extraneous SUBREG.
12373         Add missing construction of operands[2].
12374         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12375         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12376         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12377
12378 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
12379
12380         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12381         any_operand.
12382
12383 2002-03-17  Richard Henderson  <rth@redhat.com>
12384
12385         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12386         explicitly.
12387
12388 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12389
12390         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12391         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12392
12393 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12394
12395         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12396
12397         * predict.c (estimate_bb_frequencies): Delete unused variables.
12398
12399 2002-03-17  Richard Henderson  <rth@redhat.com>
12400
12401         * config/ia64/ia64.c (ia64_attribute_table): Move before
12402         targetm definition.  Make static.
12403
12404 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12405
12406         * c-common.h (yyparse, c_common_parse_file): New.
12407         * c-lang.c: Include c-common.h.
12408         (LANG_HOOKS_PARSE_FILE): Redefine.
12409         * c-lex.c: Include c-common.h.
12410         (yyparse): Rename c_common_parse_file.  Call yyparse.
12411         * c-parse.in (yyparse): Remove macro.
12412         * c-tree.h (yyparse_1): Remove.
12413         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12414         (LANG_HOOKS_INITIALIZER): Update.
12415         * langhooks.h (struct lang_hoooks): New hook parse_file.
12416         * toplev.c (compile_file): Use parse_file hook.
12417         * tree.h (yyparse): Remove.
12418         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
12419
12420 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12421
12422         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12423         float_truncate, not fix.
12424         ("*truncdfsf2_real"): Ditto.
12425         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12426
12427         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12428
12429 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
12430
12431         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12432         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
12433         where appropriate.  Make the second reference to
12434         leaf_function_p a function call, as intended.  Reindented.
12435
12436         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12437         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12438
12439         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12440         add register to non-constant into sp.
12441
12442         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12443         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12444         (mips16_gp_pseudo_rtx): Lose.
12445         (INIT_EXPANDERS): Deleted.
12446         * config/mips/mips.c (mips_init_machine_status): New.
12447         (mips_free_machine_status): New.
12448         (mips_mark_machine_status): New.
12449         (override_options): Set them.
12450         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12451         (struct machine_function): ... new.  Replaced all references.
12452         (mips_add_gc_roots): Don't mark them.
12453         (embedded_pic_fnaddr_reg): New, extracted from...
12454         (embedded_pic_offset): ... here.
12455         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12456         (movsi): Likewise.
12457
12458 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12459
12460         * cppinit.c: Revert -MD removal.
12461
12462 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12463
12464         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12465         soft registers by default for 68HC12.
12466         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12467         when compiling with -fomit-frame-pointer.
12468         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12469         (expand_epilogue): Likewise.
12470         (m68hc11_gen_rotate): Use exg when rotating by 8.
12471
12472 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12473
12474         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12475         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12476         (splits): Remove unused add splits.
12477         ("*addhi3_68hc12"): Tune constraints.
12478         ("addhi_sp"): Try to use X instead of Y in all cases and if the
12479         constant fits in 8-bits and D is dead use abx/aby instructions.
12480         ("*addhi3"): Remove extern declaration of ix_reg.
12481         ("*subsi3"): Optimize and provide new split.
12482         ("subhi3"): Cleanup.
12483         ("*subhi3_sp"): Avoid saving X if we know it is dead.
12484         (arith splits): For 68hc12 save the address register on the stack
12485         and do the arithmetic operation with a pop.
12486
12487 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12488
12489         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12490         allocating QImode in address registers.
12491         ("*movqi_m68hc11"): Likewise.
12492
12493 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
12494
12495         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12496
12497 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12498
12499         * cppinit.c (print_help): Display -MD and -MMD.
12500         Don't display usage string.  Update assertion syntax and
12501         typo.
12502         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12503         (cpp_handle_option): Update.
12504
12505 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
12506
12507         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12508         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12509         and define it so that regardless of target CPU size,
12510         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12511         of "int" rather than "long."
12512
12513 2002-03-15  Richard Henderson  <rth@redhat.com>
12514
12515         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12516         size as a tree.
12517
12518 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12519
12520         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12521         ("tstqi" split): Avoid using memory for tstqi on address register.
12522         (splits): Remove constraints.
12523         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12524         ("cmpdf", "cmpsf"): Remove since not used.
12525         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12526         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12527
12528 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12529
12530         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12531         ("neghi2"): Tighten constraints.
12532         ("one_cmplsi2"): Optimize and simplify split.
12533         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12534
12535 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12536
12537         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12538         and split of AND operation to clear the upper bits.
12539         ("*logicalsi3_zextqi"): Likewise.
12540         ("*logicallhi3_zexthi_ashift8"): Likewise.
12541         ("*logicalsi3_silshr16"): Likewise.
12542         ("logicalsi3_silshl16"): Likewise.
12543         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12544
12545 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12546
12547         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12548         (m68hc11_indirect_p): New function.
12549         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12550         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12551         TARGET_M6812.
12552         (asm_print_register): Likewise.
12553         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12554         (m68hc11_indirect_p): Declare.
12555         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12556         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12557         (TARGET_SWITCHES): New option -mrelax.
12558         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12559         destination.
12560         ("iorsi3", "xorsi3"): Likewise.
12561         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12562         ("*andhi3_mem"): New to handle destination in memory with bclr
12563         and a scratch register.
12564         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12565         ("*andhi3_const"): New when operand2 is constant.
12566         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12567         ("*andhi3_gen"): Cleanup of the old "andhi3".
12568         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12569         ("xorqi3"): Update constraints.
12570
12571 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12572
12573         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12574         for reg_equiv_memory_loc when the operand is a register that does
12575         not get a hard register (stack location).
12576         (tst_operand): After reload, accept all memory operand.
12577         (symbolic_memory_operand): Fix detection of symbolic references.
12578         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12579         accept symbols and any constant.
12580
12581 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12582
12583         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12584         note on the insn that sets the soft frame register.
12585         (must_parenthesize): ix and iy are also reserved names.
12586         (print_operand_address): One more place where parenthesis are required
12587         to avoid confusion with register names.
12588         (m68hc11_gen_movhi): Allow push of stack pointer.
12589         (m68hc11_check_z_replacement): Fix handling of parallel with a
12590         clobber.
12591         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12592         the replacement register is.
12593         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12594         and D8_REGS classes.
12595         (MODES_TIEABLE_P): All modes are tieable except QImode.
12596
12597 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12598
12599         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12600         (___subdi3): Likewise.
12601         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12602         (__map_data_section): Optimize 68hc11 case.
12603
12604 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12605
12606         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12607         than a shift to avoid adding a register with itself.
12608         (m68hc11_memory_move_cost): Take into account NO_REGS.
12609         (m68hc11_register_move_cost): Update and use memory move cost
12610         for soft registers.
12611         (m68hc11_address_cost): Make cost of valid offset not 0 so that
12612         it gives more opportunities to cse to optimize.
12613         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12614         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12615
12616 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
12617
12618         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12619         * c-common.def (CLEANUP_STMT): New tree node.
12620         * c-common.h (CLEANUP_DECL): New macro.
12621         (CLEANUP_EXPR): Likewise.
12622         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12623         * expr.c (expand_expr): Tidy.
12624         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12625         * tree-inline.c (initialize_inlined_parameters): Clean up
12626         new local variables.
12627
12628 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12629
12630         PR bootstrap/4128
12631         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12632         before movrXX only, use reg_overlap_mentioned_p.
12633         Only special case NE if just one insn can be generated.
12634
12635 2002-03-15  Jason Merrill  <jason@redhat.com>
12636
12637         * varasm.c (assemble_variable): Call resolve_unique_section before
12638         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
12639         of error_mark_node.
12640
12641 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12642
12643         PR target/5170
12644         * arm.md (split pattern for thumb shiftable immediates): Add comment
12645         explaining non-obvious test.
12646
12647 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12648
12649         PR target/5712
12650         * arm.md (movaddr, movaddr_insn): Delete.
12651
12652 2002-03-15  Jason Merrill  <jason@redhat.com>
12653
12654         * toplev.c (wrapup_global_declarations): Clarify variable handling.
12655         -fkeep-static-consts doesn't apply to comdats.
12656
12657 2002-03-14  Richard Henderson  <rth@redhat.com>
12658
12659         * c-decl.c: Include c-pragma.h.
12660         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12661         (finish_function): Tidy.
12662         * c-pragma.c: Include c-common.h.
12663         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12664         (handle_pragma_weak): Use them.
12665         (init_pragma): Register pending_weaks.
12666         * c-pragma.h (maybe_apply_pragma_weak): Declare.
12667         * print-tree.c (print_node): Print DECL_WEAK.
12668         * varasm.c (mark_weak_decls): Remove.
12669         (remove_from_pending_weak_list): Remove.
12670         (add_weak): Remove.
12671         (asm_emit_uninitialised): Call globalize_decl for weak commons.
12672         (weak_decls): Make a tree_list.
12673         (declare_weak): Cons weak_decls directly.
12674         (globalize_decl): Remove weak_decls elements directly.
12675         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
12676         symbols.  Don't pretend to handle aliases.
12677         (init_varasm_once): Update weak_decls registry.
12678         * Makefile.in: Update dependencies.
12679
12680 2002-03-14  Richard Henderson  <rth@redhat.com>
12681
12682         PR target/5312
12683         * config/ia64/ia64.c: Include tm_p.h last.
12684         (gen_nop_type): Remove duplicate definition.
12685         (cycle_end_fill_slots): Set sched_data for second L slot.
12686         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12687         (nop_cycles_until): Fix typos.
12688
12689 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12690
12691         PR optimization/5891
12692         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12693
12694 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12695
12696         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12697           descriptors correctly.
12698
12699 2002-03-14  Michael Meissner  <meissner@redhat.com>
12700
12701         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12702         100, allowing MAX_UNROLLED_INSNS to be overridden.
12703
12704         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12705         --param.
12706
12707         * unroll.c (params.h): Include.
12708         (MAX_UNROLLED_INSNS): Delete, now in params.h.
12709
12710         * doc/invoke.texi (--param max-unroll-insns): Document.
12711
12712         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12713
12714 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12715
12716         * arm.md: Fix warnings about constraints in peepholes and splits.
12717
12718 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
12719
12720         * cpphash.h (struct lexer_state): Remove line_extension member.
12721         * cpplib.c (dequote_string, do_linemarker): New functions.
12722         (linemarker_dir): New data object.
12723         (DIRECTIVE_TABLE): No longer need to interpret #line in
12724         preprocessed source.  Delete obsolete comment about return
12725         values of handlers.
12726         (end_directive, directive_diagnostics, _cpp_handle_directive):
12727         Don't muck with line_extension.
12728         (directive_diagnostics): No need to issue warnings for
12729         linemarkers here.
12730         (_cpp_handle_directive): Issue warnings for linemarkers here,
12731         when appropriate.  Dispatch linemarkers to do_linemarker, not
12732         do_line.
12733         (do_line): Code to handle linemarkers split out to do_linemarker.
12734         Convert escape sequences in filename argument, both places.
12735
12736         * cppmacro.c (quote_string): Rename cpp_quote_string and
12737         export.  All callers changed.
12738         * cpplib.h (cpp_quote_string): Prototype.
12739         * cppmain.c (print_line): Call cpp_quote_string on to_file
12740         before printing it.
12741
12742         * doc/cpp.texi: Document that escapes are now interpreted in
12743         #line and in linemarkers, and that non-printing characters are
12744         converted to octal escapes when linemarkers are generated.
12745
12746 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12747
12748         * emit-rtl.c (try_split): Use delete_insns.
12749         * recog.c (split_all_insns): Fix terminating condition.
12750
12751 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12752             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12753
12754         PR target/5828
12755         * arm.c (arm_output_epilogue): Fix floating-point register save
12756         adjustment when using a frame pointer.
12757
12758 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
12759
12760         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12761         * config/mips/mips.c (compute_frame_size): Retrofit them here.
12762         (save_restore_insns, mips_expand_epilogue): And here.
12763         (build_mips16_call_stub): And here.
12764         (mips_function_value): Use the new macros to decide whether a single
12765         or complex float can be returned in floating-point registers.  Return
12766         a parallel rtx in the complex case.
12767
12768 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
12769
12770         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12771         call after liveness analysis.
12772
12773         * recog.c (split_insn): Use delete_insn_and_edges.
12774
12775         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12776         instructions to have branch prediction notes.
12777         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12778
12779 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12780
12781         * configure.in: Don't pass -Wno-long-long to a ADA compiler
12782         that doesn't support it.
12783         * configure: Regenerate.
12784
12785 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12786
12787         PR target/5626
12788         * config/sparc/sparc.md (normal_branch, inverted_branch,
12789         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12790         inverted_fp_branch): Adjust calls to output_cbranch.
12791         Set length attribute.
12792         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12793         output_v9branch.  Set length attribute.
12794         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12795         predicates.
12796         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12797         (output_cbranch): Likewise.  Handle far branches.
12798         (output_v9branch): Handle far branches.
12799         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12800         Adjust prototypes.
12801         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12802         noov_compare64_op predicates.
12803
12804 2002-03-13  Jason Merrill  <jason@redhat.com>
12805
12806         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12807         into the function and constify it.
12808         * gthr-dce.h, gthr-solaris.h: Likewise.
12809
12810 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
12811
12812         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12813         * config/rs6000/rs6000.c (rs6000_va_arg): Use
12814         std_expand_builtin_va_arg if not ABI_V4.
12815
12816 2002-03-13  Jason Merrill  <jason@redhat.com>
12817
12818         * varasm.c (globalize_decl): New fn.
12819         (assemble_start_function): Use it.
12820         (asm_emit_uninitialized): Use it.
12821         (assemble_alias): Use it.
12822         (assemble_variable): Use it.
12823
12824 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
12825
12826         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12827         2002-03-12 internal visibility change.
12828         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12829         visibility into SYMBOL_REF_FLAG.
12830
12831 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
12832
12833         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12834         VOIDmode operand.  Add compile-time optimization for constant results.
12835
12836 2002-03-12  Jason Merrill  <jason@redhat.com>
12837
12838         * c-typeck.c (convert_for_assignment): Don't allow conversions
12839         between pointers and references.  Only allow lvalues to convert to
12840         reference.
12841
12842 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
12843
12844         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12845         before prologue, to avoid scheduling problems.
12846
12847 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12848
12849         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12850         (ELIMINABLE_REGS): Add sfp->sp.
12851         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12852
12853 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12854
12855         PR optimization/5892
12856         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12857
12858 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12859
12860         * loop.c (basic_induction_var): Don't call convert_modes if mode
12861         classes are different.
12862
12863 2002-03-12  Richard Henderson  <rth@redhat.com>
12864
12865         PR optimization/5901
12866         * function.c (reposition_prologue_and_epilogue_notes): Position
12867         the markers after/before the last/first insn not deleted.
12868
12869 2002-03-12  Richard Henderson  <rth@redhat.com>
12870
12871         PR optimization/5878
12872         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12873         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12874         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12875
12876         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12877         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12878         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12879
12880         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12881         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12882         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12883         also.  Don't set it if not flag_pic.
12884         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12885         to be INVALID_REGNUM when not used.
12886
12887 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
12888
12889         * expmed.c (store_bit_field): Reset alias set for memory.
12890         (extract_bit_field): Same.
12891
12892 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12893
12894         * c-common.c (c_tree_code_type, c_tree_code_length,
12895         c_tree_code_name, add_c_tree_codes): Delete.
12896         * c-common.h (add_c_tree_codes): Delete.
12897         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12898         Define.
12899         * c-objc-common.c (c_objc_common_init): Don't call
12900         add_c_tree_codes, instead set lang_unsafe_for_reeval.
12901         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12902         objc_tree_code_name, add_objc_tree_codes): Delete.
12903         (objc_init): Don't call add_objc_tree_codes.
12904         * objc/objc-lang.c (tree_code_type, tree_code_length,
12905         tree_code_name): Define.
12906         * toplev.c (lang_independent_init): Don't set
12907         tree_code_length[IDENTIFIER_NODE].
12908         * tree.c (tree_code_type, tree_code_length, tree_code_name):
12909         Delete definitions, moved to language front-ends.
12910         * tree.def (IDENTIFIER_NODE): Hardwire the length.
12911         * tree.h (tree_code_type, tree_code_length, tree_code_name):
12912         Const-ify.
12913         (tree_code_length): Change type to unsigned char.
12914
12915 2002-03-12  Richard Henderson  <rth@redhat.com>
12916
12917         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12918         internal visibility change.
12919
12920 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12921
12922         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12923         validize_mem() instead of change_address to avoid clobbering
12924         memory attributes.
12925
12926 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12927
12928         * c-lex.h (position_after_whitespace): Remove.
12929
12930 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
12931
12932         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12933         (lex_string): Use unsigned char pointers.
12934
12935 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12936
12937         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12938         is not a valid memory_operand.
12939
12940 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12941
12942         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12943         * config/xtensa/lib1funcs.asm: Fix copyright to include
12944         special case for libgcc files.
12945         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12946         (__divsi3): Likewise.
12947         (__umodsi3): Likewise.
12948         (__modsi3): Likewise.
12949         * config/xtensa/lib2funcs.S: Fix copyright to include
12950         special case for libgcc files.
12951
12952 2002-03-12  Tom Rix  <trix@redhat.com>
12953
12954         * collect2.c (resolve_lib_name): Move outside of
12955         OBJECT_FORMAT_COFF ifdef.
12956         (ignore_library): Same.
12957
12958 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12959
12960         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12961
12962 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12963
12964         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12965         to function_section before writing out the constant pool.
12966
12967 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
12968
12969         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12970         zero_constant.
12971         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12972
12973 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
12974
12975         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12976         (adddi3): Likewise.
12977         (movdf): Likewise.
12978         (movdi): Likewise.
12979         (cmpsi splitter): Likewise.
12980         (modsi3): Fail if <= 0.
12981         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12982         redundant test when HOST_BITS_PER_WIDE_INT != 32.
12983         (reg_or_sub_cint64_operand): Likewise.
12984         (num_insns_constant_wide): Optimize sign extension.
12985         (rs6000_legitimize_address): Likewise.
12986
12987 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12988
12989         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12990         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12991
12992 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12993
12994         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12995         address calculation.
12996
12997 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12998
12999         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13000         scratch register to DImode / TImode.
13001         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13002         register used does not overlap the target.
13003
13004 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13005
13006         * Makefile.in (debug.o): Depend on debug.h.
13007         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13008         * debug.c (do_nothing_debug_hooks): Likewise.
13009         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13010         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13011         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13012         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13013         * dwarfout.c (dwarf_debug_hooks): Likewise.
13014         * integrate.c (output_inline_function): Likewise.
13015         * objc/objc-act.c (synth_module_prologue): Likewise.
13016         * sdbout.c (sdb_debug_hooks): Likewise.
13017         * toplev.c (debug_hooks): Likewise.
13018         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13019
13020 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13021
13022         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13023         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13024         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13025         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13026         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13027         * defaults.h (POINTER_SIZE): Define.
13028         * doc/tm.texi (POINTER_SIZE): Document default.
13029
13030 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13031
13032         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13033
13034 2002-03-11  Richard Henderson  <rth@redhat.com>
13035
13036         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13037         if rebuild_label_notes_after_reload.
13038
13039 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
13040
13041         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
13042         emit pic register load if "internal" visibility.
13043         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13044         (cris_expand_builtin_va_arg): Do all computations on trees.
13045
13046 2002-03-11  Richard Henderson  <rth@redhat.com>
13047
13048         * rtlanal.c: Include recog.h.
13049         (keep_with_call_p): Fix thinko.
13050         * Makefile.in (rtlanal.o): Update dependencies.
13051
13052 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
13053
13054         * genflags.c (gen_insn): Use IS_VSPACE.
13055         * genoutput.c (output_insn_data): Likewise.
13056         (process_template): Likewise.
13057
13058 2002-03-11  Richard Henderson  <rth@redhat.com>
13059
13060         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13061
13062 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13063
13064         * Makefile.in: Update.
13065         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
13066         Update documentation.
13067         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13068         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
13069
13070 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
13071
13072         * Makefile.in: Give texi2pod its input file as a command line
13073         argument, not on stdin.
13074
13075 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
13076             Daniel Berlin  <dan@dberlin.org>
13077
13078         C++ alias analysis improvement.
13079         * alias.c (record_component_aliases): Record aliases for base
13080         classes too.
13081
13082 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
13083
13084         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13085
13086 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
13087
13088         * toplev.c (vms_fopen): Remove, not needed.
13089
13090         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13091
13092         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13093
13094         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13095         for FP, already done later.
13096
13097         * toplev.c (debug_args): Add entry for VMS_DEBUG.
13098         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13099
13100 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
13101
13102         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13103         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13104         LARGEST_EXPONENT_IS_NORMAL for the given mode.
13105         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13106         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13107         (ediv, emul, eldexp, esqrt): Likewise.
13108         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13109         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13110         (saturate): New function.
13111         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13112         (make_nan): Use a saturation value instead of a NaN if
13113         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
13114         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13115         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
13116         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
13117         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13118         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13119         !ROUND_TOWARDS_ZERO.
13120         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13121         (ROUND_TOWARDS_ZERO): Document.
13122
13123 2002-03-11  Andreas Jaeger  <aj@suse.de>
13124
13125         * cfg.c (dump_flow_info): Remove unused variable.
13126
13127 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
13128
13129         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13130         computations on trees.
13131
13132 2002-03-10  Richard Henderson  <rth@redhat.com>
13133
13134         PR 5693:
13135         * reload.c (copy_replacements_1): New.
13136         (copy_replacements): Use it to recurse through the rtx.
13137
13138 2002-03-10  Richard Henderson  <rth@redhat.com>
13139
13140         * loop.c (strength_reduce): Compute number of iterations as
13141         unsigned HOST_WIDE_INT.
13142
13143 2002-03-10  Richard Henderson  <rth@redhat.com>
13144
13145         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13146         to move away from the end of the block.
13147
13148 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13149
13150         PR preprocessor/5899
13151         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
13152
13153 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13154
13155         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13156
13157         * attribs.c (decl_attributes): Fix signed/unsigned warning.
13158
13159 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
13160
13161         * config/mmix/mmix.c: Improve comments.
13162         (mmix_target_asm_function_prologue): Drop variable
13163         empty_stack_frame.  Don't allocate unused slot above fp.
13164         (mmix_target_asm_function_epilogue): Mirror prologue changes.
13165         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13166         brace in first column.
13167         (enum reg_class): Ditto.
13168         (FIRST_PARM_OFFSET): Now 0.
13169         (USER_LABEL_PREFIX): Remove #if 0:d definition.
13170
13171 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13172
13173         * combine.c (make_extraction): Fix error in last change.
13174
13175 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13176
13177         * c4x.c (c4x_fp_reglist): Const-ify.
13178         * cris.c (cris_print_operand): Likewise.
13179         * i386.c (ix86_va_arg): Likewise.
13180         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13181         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13182         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13183         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13184         * mcore.h (regno_reg_class): Likewise.
13185         * mips.c (gen_int_relational): Likewise.
13186         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13187         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
13188         * pdp11.c (move_costs): Likewise.
13189         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13190         * s390.c (s390_branch_condition_mnemonic, regclass_map):
13191         Likewise.
13192         * s390.h (regclass_map): Likewise.
13193         * sh.c (shift_amounts): Likewise.
13194         * sh.md (rotlsi3): Likewise.
13195
13196 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13197
13198         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13199         (ne0+5): Use new clobber to generate proper shift pattern.
13200         Patch by Michael Matz <matz@kde.org>.
13201
13202 2002-03-09  Andreas Schwab  <schwab@suse.de>
13203
13204         * gcc.c (validate_all_switches): Also handle `%W{...}'.
13205
13206 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13207
13208         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13209
13210 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
13211
13212         PR middle-end/5877
13213         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13214         even for non-representable constants.
13215
13216 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13217
13218         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13219         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13220         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13221         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13222         (pop_function_context): Compute MAY_SHARE parameter for
13223         fixup_var_refs.
13224         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13225         (gen_mem_addressof): Call fixup_var_refs with new parm.
13226
13227         * combine.c (make_extraction): Don't make extension of CONST_INT.
13228
13229 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13230
13231         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13232         in o32 and o64 ABIs.
13233         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13234         but getting fixed-size structs passed in registers regardless of
13235         padding in o32 and o64 ABIs.
13236
13237         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13238         offset before loading address of argument passed by transparent
13239         reference.
13240
13241 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13242
13243         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13244
13245 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13246
13247         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13248         marker such that registers after it are saved.
13249
13250 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13251
13252         * sparc.c (arith_4096_operand): Fix error in last change.
13253
13254 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13255
13256         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13257         defaults for MEABI.
13258
13259 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13260
13261         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13262         vectors.
13263
13264 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13265
13266         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
13267
13268 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
13269
13270         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13271         removed; fix return value.
13272         * combine.c (combine_instructions): Dirtify blocks where we failed to
13273         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13274         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13275
13276 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13277
13278         * gcse.c (insert_insn_end_bb): Fix typo in last change.
13279
13280 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
13281
13282         * recog.c (peephole2_optimize): Re-distribute EH edges.
13283
13284 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13285
13286         * expr.c (expand_expr): Use unsave lang hook.
13287         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13288         (LANG_HOOKS_INITIALIZER): Update.
13289         * langhooks.h (struct lang_hooks): New hook unsave.
13290         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13291         (unsave_expr_1): Remove unused lang_unsave_expr_now.
13292         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
13293         (unsave_expr_now): Remove.
13294         * tree.h (unsave_expr_now, lang_unsave,
13295         lang_unsave_expr_now): Remove.
13296         (lhd_unsave): New.
13297
13298 2002-03-08  Andreas Jaeger  <aj@suse.de>
13299
13300         * flow.c (propagate_block_delete_insn): Remove unused variable.
13301
13302 2002-03-08  Kazu Hirata  <kazu@hxi.com>
13303
13304         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13305         insn length for memory load/store.
13306
13307 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13308
13309         * doc/install.texi (--with-libiconv-prefix): Document.
13310
13311 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
13312
13313         * doc/sourcebuild.texi: Fix typo.
13314
13315 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
13316
13317         PR c/3711
13318         * builtins.c (std_expand_builtin_va_arg): Do all computations on
13319         trees.
13320
13321 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13322
13323         * rtl.c (copy_most_rtx): Move from here ...
13324         * emit-rtl.c (copy_most_rtx): ... to here.
13325
13326 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13327
13328         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13329         SUBTARGET_CPP_SIZE_SPEC.
13330         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13331
13332         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13333
13334 2002-03-07  Matt Hiller  <hiller@redhat.com>
13335
13336         * gensupport.c (first_dir_md_include): Renamed from include;
13337         change all references.
13338         (last_dir_md_include): Renamed from last_include; change all
13339         references.
13340         (init_md_reader): Unconditionally initialize base_dir whether or
13341         not filename is a relative path.
13342
13343 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
13344
13345         * config/fp-bit.c (_unord_f2): Compile it in even if
13346         US_SOFTWARE_GOFAST is enabled.
13347
13348         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13349         NULL_RTX.  Set all HFmode operations as NULL_RTX.
13350         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13351         NULL_RTX, try reversing the comparison and the operands.
13352
13353 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13354
13355         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13356         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13357         and MATCH_OP_DUP.
13358
13359 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
13360
13361         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13362
13363 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13364
13365         * basic-block.h (fixup_abnormal_edges): Declare.
13366         * reload1.c (fixup_abnormal_edges): New function.
13367         * reg-stack.c (convert_regs): Use it.
13368
13369         * gcse.c (insert_insn_end_bb): Handle trapping insns.
13370
13371         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13372
13373 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
13374
13375         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13376         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13377         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13378         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13379         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13380         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13381         unless x and y could be infinite.
13382         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13383         Check that the common type of both arguments is a real, even for
13384         targets without unordered comparisons.  Allow an integer argument
13385         to be compared against a real.
13386         (expand_tree_builtin): Use expand_unordered_cmp.
13387         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13388         * cse.c (fold_rtx): Likewise.  Fix indentation.
13389         * fold-const.c (fold_real_zero_addition_p): New.
13390         (fold): Use it, and the new HONOR_... macros.
13391         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13392         * jump.c (reversed_comparison_code_parts): After searching for
13393         the true comparison mode, use HONOR_NANS to decide whether it
13394         can be safely reversed.
13395         (reverse_condition_maybe_unordered): Remove IEEE check.
13396         * simplify-rtx.c (simplify_binary_operation): Use the new macros
13397         to decide which simplifications are valid.  Allow the following
13398         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13399         and (a - -b) to (a + b).
13400         (simplify_relational_operation): Use HONOR_NANS.
13401         * doc/tm.texi: Document the MODE_HAS_... macros.
13402
13403 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
13404
13405         * combine.c (simplify_comparison): If simplifying a logical shift
13406         right and compare with constant, force the comparison to unsigned.
13407
13408 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
13409
13410         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
13411
13412         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13413         -mabi=no-altivec
13414         (alt_reg_names): Remove % for vrsave.
13415
13416 2002-03-06  Richard Henderson  <rth@redhat.com>
13417
13418         PR optimization/5844
13419         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
13420         if used indicates we've already emitted one copy of an operand.
13421         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13422         (gen_split): Supply a non-null used.
13423
13424 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13425
13426         * reload1.c (reload): Unshare all rtl after reload is done.
13427
13428         * simplify-rtx.c (simplify_plus_minus): Do not abort,
13429         but simply fail if the expression is too complex to simplify.
13430         (simplify_gen_binary): Handle simplify_plus_minus failures.
13431
13432 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
13433
13434         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13435         consistently call delete_trivially_dead_insns after CSE and GCSE;
13436         fix DFI_life dumping; do jump threading after liveness; do crossjumping
13437         after liveness2; update comment in last crossjumping.
13438         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13439
13440 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
13441
13442         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13443         after completing fast dead code elimination.
13444
13445         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13446         COMPARE operator.
13447
13448 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
13449
13450         * version.c:  Fix misplaced leading blanks on first line.
13451
13452 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
13453
13454         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13455
13456 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
13457
13458         * cfgcleanup.c (mentions_nonequal_regs): New function.
13459         (thread_jump): Use it.
13460         * toplev.c (rest_of_compilation): Run jump threading after
13461         liveness.
13462
13463 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
13464
13465         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13466         patch.
13467
13468 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13469
13470         * predict.c (estimate_bb_frequencies): Do not reload the
13471         frequencies from notes.
13472
13473 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
13474
13475         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13476         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13477
13478         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13479         delete_noop_moves): Return indeger.
13480         * flow.c (ndead): New variable.
13481         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13482         BB argument; update callers.
13483         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13484         (life_analysis): Do not call purge_all_dead_edges.
13485         (update_life_info): Return number of deleted insns; print statistics.
13486         (update_life_info_in_dirty_blocks): likewise.
13487         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13488         return number of insns deleted.
13489
13490         * cse.c: Include timevar.h
13491         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13492         iterate until stabilizes; print statistics; return number of killed
13493         insns.
13494         * Makefile.in: (cse.o): Add timevar.h dependency
13495         * rtl.h (delete_trivially_dead_insns): New.
13496         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13497         * toplev.c (rest_of_compilation): Update callers.
13498
13499         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13500         (try_optimize_cfg): Do not update liveness.
13501         (cleanup-cfg): Loop until try_optimize_cfg and dead code
13502         removal stabilizes; use delete_trivially_dead_insns.
13503
13504         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13505
13506 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
13507
13508         * cppmain.c (setup_callbacks): Disable #pragma and #ident
13509         callbacks when processing assembly language.
13510
13511 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13512
13513         * pa.h (ASM_FILE_END): Define.
13514         * som.h (ASM_FILE_END): Delete.
13515
13516         * pa.c (function_arg): Don't pass floats in general registers in
13517         indirect calls if TARGET_ELF32.
13518
13519 2002-03-05  Richard Henderson  <rth@redhat.com>
13520
13521         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13522
13523 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
13524
13525         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13526
13527 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13528
13529         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13530         -r command line.  Don't hide any symbols if not building
13531         shared libgcc.
13532
13533 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
13534
13535         * cfg.c (dump_flow_info): Warn about profile mismatches.
13536         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13537         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13538
13539 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13540
13541         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13542         wide volatile memory by parts.
13543
13544 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13545
13546         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13547         is NULL.
13548
13549 2002-03-05  Richard Henderson  <rth@redhat.com>
13550
13551         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
13552
13553 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13554
13555         * toplev.c (documented_lang_options): Document more
13556         language-specific options.
13557         * doc/invoke.texi (Warning Options): Correct documentation for
13558         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13559         * c-decl.c (c_decode_option): Use a table to handle warning options.
13560
13561 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
13562
13563         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13564         parameter to mmix_encode_section_info.
13565         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13566         relocatably.  Always produce ELF, not mmo if linking relocatably.
13567         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13568         first is non-zero, don't add symbol prefix.
13569         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13570         prototype accordingly.
13571
13572 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
13573
13574         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13575
13576 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
13577
13578         * configure.in: Increase required makeinfo version to 4.1.
13579         * configure: Regenerate.
13580
13581 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13582
13583         * .cvsignore: Remove *.info* and genrtl*; these files are generated
13584         elsewhere now.
13585
13586 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13587
13588         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13589         * doc/invoke.texi: Fix @math uses.
13590
13591 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13592
13593         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13594         removal
13595
13596 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
13597
13598         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13599         (powerpc-*-eabisimaltivec*): Same.
13600
13601         * config/rs6000/t-ppcendian: New.
13602
13603 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13604
13605         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13606         nonimmediate_src_operand and nonimmediate_lsrc_operand to
13607         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13608
13609 2002-03-03  Richard Henderson  <rth@redhat.com>
13610
13611         * toplev.c (rest_of_decl_compilation): Revert last two changes.
13612
13613 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
13614
13615         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13616         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13617         tree.c, config/m68k/m68k.c:
13618         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13619         REAL_ARITHMETIC blocks unconditional.  Delete some further
13620         #ifdef blocks predicated on REAL_ARITHMETIC.
13621         * flags.h, toplev.c: Delete remaining references to
13622         flag_pretend_float.
13623
13624         * doc/invoke.texi: Remove documentation of -fpretend-float.
13625         * doc/tm.texi: Describe the various REAL_* macros as provided by
13626         real.h, not by the target configuration files.
13627
13628         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13629         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13630         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13631         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13632         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13633         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13634         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13635         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13636         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13637         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13638         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13639         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13640         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13641         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13642         config/xtensa/xtensa.h:
13643         Do not define, undefine, or mention in comments any of
13644         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13645         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13646         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13647         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13648         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13649         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13650         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13651         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13652         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13653
13654 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13655
13656         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13657         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13658         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13659         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13660         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13661         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13662         Delete.
13663         * defaults.h (BITS_PER_WORD): Define.
13664         * doc/tm.texi (BITS_PER_WORD): Document default value.
13665
13666         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13667         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13668         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13669
13670 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13671
13672         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13673         lieu of explicit sizeof/sizeof.
13674         * i386.c (override_options, ix86_init_mmx_sse_builtins,
13675         ix86_expand_builtin): Likewise.
13676         * mips.c (mips_add_gc_roots): Likewise.
13677         * mmix.c (mmix_output_condition): Likewise.
13678         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13679         altivec_init_builtins): Likewise.
13680         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13681         * cppexp.c (Nsuff, parse_number): Likewise.
13682         * cppinit.c (builtin_array_end): Likewise.
13683         * gcc.c (n_default_compilers, process_command): Likewise.
13684         * genpreds.c (output_predicate_decls): Likewise.
13685         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13686         * lcm.c (N_ENTITIES): Likewise.
13687         * stor-layout.c (set_sizetype): Likewise.
13688
13689 2002-03-03  Richard Henderson  <rth@redhat.com>
13690
13691         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13692         for types or labels.
13693
13694 2002-03-03  Richard Henderson  <rth@redhat.com>
13695
13696         * c-decl.c (start_decl): Initialized variables are not common.
13697
13698 2002-03-02  Per Bothner  <per@bothner.com>
13699
13700         * gcc.c (option_map):  Suport new --bootclasspath option.
13701         --CLASSPATH is now just an alias for --classpath.
13702
13703 2002-03-02  Richard Henderson  <rth@redhat.com>
13704
13705         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13706         load if "internal" visibility.
13707         * doc/extend.texi: Document visibility meanings.
13708
13709 2002-03-02  Richard Henderson  <rth@redhat.com>
13710
13711         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13712         to functions as well.
13713
13714 2002-03-02  Richard Henderson  <rth@redhat.com>
13715
13716         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13717         (handle_visibility_attribute): Don't call assemble_visibility.
13718         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13719         without asmspec.  Invoke assemble_alias when needed.
13720         * varasm.c (maybe_assemble_visibility): New.
13721         (assemble_start_function, assemble_variable, assemble_alias): Use it.
13722
13723 2002-03-02  Richard Henderson  <rth@redhat.com>
13724
13725         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13726         invoke ENCODE_SECTION_INFO with first call flag.
13727
13728         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13729         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13730         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13731         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13732         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13733         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13734         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13735         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13736         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13737         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13738         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13739         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13740         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13741         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13742         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13743         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13744         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13745         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13746         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13747         config/sh/sh.h, config/sparc/sparc.h,
13748         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13749         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13750         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13751         FIRST argument.  As needed, examine it and do nothing.
13752
13753         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13754         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13755         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13756
13757         * config/arm/t-pe (pe.o): Add dependencies.
13758
13759 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13760
13761         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13762         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13763         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13764         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13765         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13766         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13767         * defaults.h (BITS_PER_UNIT): Define.
13768         * doc/tm.texi (BITS_PER_UNIT): Document default value.
13769
13770 2002-03-02  Kazu Hirata  <kazu@hxi.com>
13771
13772         * config/h8300/h8300-protos.h: Add a prototype for
13773         compute_a_shift_length.
13774         * config/h8300/h8300.c (h8300_asm_insn_count): New.
13775         (compute_a_shift_length): Likewise.
13776         (h8300_adjust_insn_length): Do not adjust insn length of shift
13777         insns.
13778         * config/h8300/h8300.md (anonymous shift patterns): Use
13779         compute_a_shift_length.
13780
13781 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13782
13783         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13784         trunc_int_for_mode.
13785
13786         * emit-rtl.c (offset_address): Call update_temp_slot_address.
13787
13788 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13789
13790         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13791         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13792         * flags.h (flag_zero_initialized_in_bss): Declare.
13793         * toplev.c (flag_zero_initialized_in_bss): New flag.
13794         (lang_independent_options): Add flag_zero_initialized_in_bss.
13795         * tree.c (initializer_zerop): New function.
13796         * tree.h (initializer_zerop): Declare.
13797         * varasm.c (assemble_variable): If we can emit bss, put zero
13798         initializers in the bss section.
13799
13800 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
13801
13802         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13803         like more than one symbol per .weak directive.
13804
13805 2002-03-01  Richard Henderson  <rth@redhat.com>
13806
13807         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13808         adjust argument_pointer by pretend_args_size.
13809         (ia64_va_start): Adjust va_start address by -pretend_args_size.
13810
13811 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13812
13813         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13814
13815 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
13816
13817         * toplev.c (rest_of_compilation): Delete dead jumptables before
13818         loop.
13819         * flow.c (delete_dead_jumptables): Make global.
13820         * rtl.h (delete_dead_jumptables): Declare.
13821
13822 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
13823
13824         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13825         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13826         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13827
13828 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13829
13830         * config/h8300/h8300-protos.h: Fix formatting.
13831         * config/h8300/h8300.c: Likewise.
13832         * config/h8300/h8300.h: Likewise.
13833
13834 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13835
13836         * config/h8300/h8300.c (print_operand): Support 16-bit
13837         constant addresses.
13838         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13839
13840 2002-02-28  Richard Henderson  <rth@redhat.com>
13841
13842         * expmed.c (store_bit_field): Prevent generation of CONCATs;
13843         pun complex values as integers; use gen_lowpart instead of
13844         gen_rtx_SUBREG.
13845         (extract_bit_field): Likewise.
13846
13847 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
13848             David Edelsohn  <edelsohn@gnu.org>
13849
13850         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13851         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13852         (SUPPORTS_WEAK): Likewise.
13853         * output.h (add_weak): Add tree param.
13854         * varasm.c (add_weak): Likewise.  Save decl.
13855         (struct weak_syms): Add decl field.
13856         (mark_weak_decls): New function.
13857         (init_varasm_once): ggc_add_root mark_weak_decls.
13858         (assemble_start_function): Use ASM_WEAKEN_DECL.
13859         (assemble_variable): Likewise.
13860         (assemble_alias): Likewise.
13861         (declare_weak): Pass decl to add_weak.
13862         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13863         (remove_from_pending_weak_list): Declare and define for
13864         ASM_WEAKEN_DECL.
13865         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13866         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13867         * defaults.h (SUPPORTS_WEAK): Likewise.
13868         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13869         .weak for code sym.  Do emit .size for descriptor sym.
13870         (ASM_DECLARE_FUNCTION_SIZE): Define.
13871         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13872         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
13873         .lglobl unless TARGET_XCOFF.  Formatting fixes.
13874         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13875         .weak for code sym.
13876         (HANDLE_PRAGMA_WEAK): Remove.
13877         (ASM_WEAKEN_LABEL): Remove.
13878         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13879
13880 2002-03-01  Jason Merrill  <jason@redhat.com>
13881
13882         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13883         (TARGET_EXPR_CLEANUP): New macro.
13884
13885 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
13886
13887         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13888         to take ptr_extend into account as third type of extension.
13889         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13890         fields used by SUBREG_PROMOTED_UNSIGNED_P.
13891         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13892         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13893         * calls.c (precompute_arguments): Use new macro.
13894         (expand_call): Ditto.
13895         * combine.c (nonzero_bits): Ditto.
13896         (record_promoted_value): Ditto.
13897         * expr.c (store_expr): Ditto.
13898         (expand_expr): Ditto.
13899         * function.c (assign_parms): Ditto.
13900
13901 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
13902
13903         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13904         override -shared and -shared-libgcc.
13905
13906 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
13907
13908         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13909         of "ultrasparc".
13910         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
13911         to be broken.
13912
13913 2002-02-28  Richard Henderson  <rth@redhat.com>
13914
13915         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13916         4 cycle latency from MM producers.
13917         (ia64_internal_sched_reorder): Likewise with pipeline flush.
13918
13919 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
13920
13921         * mklibgcc.in: Don't use GNU make extension.
13922
13923 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13924
13925         * c-parse.in (STATIC): New terminal.
13926         (scspec): New non-terminal.  Update productions accordingly.
13927         (program): Remove bogus ifc / end ifc.
13928         (array_declarator): Simplify production using STATIC.
13929
13930 2002-02-28  Jim Meyering  <meyering@lucent.com>
13931
13932         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13933         \a still means TARGET_BELL.
13934
13935 2002-02-28  Richard Henderson  <rth@redhat.com>
13936
13937         * haifa-sched.c (sched_emit_insn): New.
13938         (schedule_block): Use last_scheduled_insn to track last insn.
13939         * sched-int.h (sched_emit_insn): Prototype.
13940         * config/ia64/ia64.c (last_issued): Remove.
13941         (ia64_variable_issue): Don't set it.
13942         (nop_cycles_until): Use sched_emit_insn.
13943
13944 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
13945
13946         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13947         extended constants.
13948
13949 2002-02-28  Kazu Hirata  <kazu@hxi.com>
13950
13951         * config/h8300/h8300.c: Fix formatting.
13952         * config/h8300/h8300.h: Likewise.
13953
13954 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13955
13956         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13957         which may overwrite the high byte of the frame pointer.
13958
13959 2002-02-28  Bo Thorsen  <bo@suse.de>
13960
13961         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13962         (STARTFILE_SPEC): Add 64 bit files.
13963         (ENDFILE_SPEC): Likewise.
13964
13965 2002-02-28  Jason Merrill  <jason@redhat.com>
13966
13967         * c-decl.c (finish_function): Only warn about missing return
13968         statement with -Wreturn-type.
13969
13970 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
13971
13972         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13973
13974         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13975         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13976
13977 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13978
13979         * basic-block.h (BB_REACHABLE): Renumber.
13980         (BB_DIRTY, BB_NEW): New flags.
13981         (clear_bb_flags): Declare.
13982         (update_life_info_in_dirty_blocks): Declare.
13983         * cfg.c (clear_bb_flags): New function.
13984         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13985         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13986         reorder_insns, emit_insn_after): Mark block as dirty.
13987         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13988         (update_life_info_in_dirty_blocks): New function.
13989         * recog.c (apply_change_group): Dirtify block.
13990
13991         * cse.c (cse_insn): Reorder emitting of jump insn to keep
13992         cfg consistent.
13993         * gcse.c (delete_null_pointer_checks): Likewise.
13994
13995         * toplev.c (dump_file_index): Move cse2 after bp,
13996         add DFI_null
13997         (dump_file_info): Similary.
13998         (rest_of_compilation): Avoid most of CFG rebuilds;
13999         do first if converision after null pointer checks, do cse2
14000         after branch prediction; avoid full liveness rebuild after
14001         initializing subregs.
14002         * invoke.texi (-d options): Document -du, renumber.
14003
14004         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14005         (notice_new_block): Do not set BB_UPDATE_LIFE.
14006         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14007          merge_blocks_move_successor_nojumps, merge_blocks,
14008          try_crossjump_to_edge): Likewise.
14009         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14010         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14011         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14012         (merge_of_block): Do not use life_data_ok.
14013         (find_if_case_1): Do not use SET_UPDATE_LIFE.
14014         (if_convert): Use BB_DIRTY mechanizm to update life.
14015         * lcm.c (optimize_mode_switching): Update
14016         update_life_info_in_dirty_blocks
14017
14018 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14019
14020         * Makefile.in (integrate.o): Update.
14021         * c-decl.c (copy_lang_decl): Rename.
14022         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14023         * integrate.c: Include langhooks.h.
14024         (copy_decl_for_inlining): Update to use langhook.
14025         * langhooks-def.h (lhd_do_nothing_t,
14026         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14027         (LANG_HOOKS_INITIALIZER): Update.
14028         * langhooks.c (lhd_do_nothing_t): New.
14029         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14030         * tree.h (copy_lang_decl): Remove.
14031 objc:
14032         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14033
14034 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
14035
14036         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
14037         POST_DEC, and POST_MODIFY.
14038
14039 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14040
14041         * c-typeck.c (digest_init): Remove unused parameter; all
14042         callers changed.
14043
14044 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
14045
14046         * expmed.c (expand_shift): Correctly test for low part of a
14047         subreg.
14048
14049 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
14050
14051         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
14052         insn UIDs with insn addresses.
14053
14054 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14055
14056         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14057         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14058         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14059         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14060         gcc.c, toplev.c: Delete code implementing -traditional mode.
14061
14062         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14063         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14064         Document removal of -traditional mode for compilation, and
14065         remove documentation only relevant to that mode.
14066
14067         * config/nextstep.h, config/ptx4.h, config/svr4.h,
14068         config/convex/convex.h, config/d30v/d30v.h,
14069         config/i386/dgux.h, config/i386/osf1elf.h,
14070         config/i386/osfelf.h, config/i386/osfrose.h,
14071         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14072         config/m68k/hp310.h, config/m88k/dgux.h,
14073         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14074         config/m88k/m88k.h, config/m88k/openbsd.h,
14075         config/mips/abi64.h, config/mips/osfrose.h,
14076         config/mips/svr4-5.h, config/mips/svr4-t.h,
14077         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14078         config/stormy16/stormy16.h: Remove all references to
14079         -traditional from target specs.  Delete all mention of the
14080         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
14081         delete a couple of commented-out definitions of
14082         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14083         to -traditional.
14084
14085         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14086         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14087
14088 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14089
14090         * mklibgcc.in: Don't use \n in a line subject to
14091         interpretation by echo.
14092
14093 2002-02-27  Graham Stott  <grahams@redhat.com>
14094
14095         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14096         Constify NAME.
14097
14098         * loop.c (prescan_loop): Handle PARALLEL.
14099
14100         * unroll.c (loop_iterations): Return 0 if the add_val for
14101         a BIV is REG.
14102
14103         * final.c (output_operand_lossage): Constify PFX_STR.
14104
14105         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14106
14107 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14108
14109         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14110         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14111
14112 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
14113
14114         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14115
14116 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14117
14118         * cpplex.c (_cpp_lex_token): Handle directives in macro
14119         arguments.
14120         * cpplib.c (_cpp_handle_directive): Save and restore state
14121         if parsing macro args when entering a directive.
14122         * cppmacro.c (collect_args): No need to handle directives
14123         in macro arguments.
14124         (enter_macro_context, replace_args): Use the original macro
14125         definition in case it was redefined whilst collecting arguments.
14126 doc:
14127         * cpp.texi: Update.
14128
14129 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
14130
14131         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14132         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14133         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14134         method on AIX.
14135         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14136         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14137         (load_toc_v4_PIC_2): Same.
14138
14139 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
14140
14141         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14142
14143 2002-02-26  Richard Henderson  <rth@redhat.com>
14144
14145         * config/alpha/alpha.md (ashldi_se): Re-enable.
14146
14147 2002-02-26  Richard Henderson  <rth@redhat.com>
14148
14149         * config/alpha/alpha.c (alpha_encode_section_info): Examine
14150         MODULE_LOCAL_P; improve commentary.
14151
14152 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
14153
14154         * doc/cpp.texi: Clarify documentation of relationship between
14155         #line and #include.
14156
14157 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14158
14159         * config/h8300/h8300-protos.h: Update the prototype for
14160         compute_logical_op_length.  Add the prototype for
14161         compute_logical_op_cc.
14162         * config/h8300/h8300.c (compute_logical_op_length): Figure out
14163         code from operands.
14164         (compute_logical_op_cc): New.
14165         * config/h8300/h8300.md: Combine all the logical op patterns
14166         in HImode and SImode.  Use compute_logical_op_cc.
14167
14168 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
14169
14170         * config/i386/i386.c (print_operand): Don't append ATT-style
14171         length suffixs to x87 opcodes when in Intel mode.
14172
14173 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
14174
14175         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14176         (init_emit_once): Update calls.
14177         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14178         (init_syntax_once): Prototype.
14179
14180 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14181
14182         * pa-linux.h (LIB_SPEC): Update definition.
14183         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14184
14185 2002-02-26  Richard Henderson  <rth@redhat.com>
14186
14187         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14188         if we emitted a stop bit.
14189
14190 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14191
14192         * configure.in (libgcc_visibility): Substitute.
14193         * configure: Rebuilt.
14194         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14195         defined symbols .hidden.
14196
14197 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14198
14199         * attribs.c (c_common_attribute_table): Add visibility.
14200         (handle_visibility_attribute): New function.
14201         * varasm.c (assemble_visibility): New function.
14202         * output.h (assemble_visibility): Add prototype.
14203         * tree.h (MODULE_LOCAL_P): Define.
14204         * crtstuff.c (__dso_handle): Use visibility attribute.
14205         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14206         for MODULE_LOCAL_P symbols too.
14207         * config/ia64/ia64.c (ia64_encode_section_info): Handle
14208         MODULE_LOCAL_P symbols the same way as local symbols.
14209         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14210         into .sdata/.sbss by the user.
14211         * doc/extend.texi (Function Attributes): Document visibility
14212         attribute.
14213
14214 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14215
14216         PR debug/5770
14217         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14218         STRING_CST initializer spanning the whole variable without
14219         embedded zeros.
14220         If expand_expr returned MEM, don't use it.
14221
14222 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
14223
14224         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14225         generate a die for the lexical block.
14226
14227 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14228
14229         * config/h8300/h8300-protos.h: Add a prototype for
14230         compute_logical_op_length.
14231         * config/h8300/h8300.c (compute_logical_op_length): New.
14232         * config/h8300/h8300.md (anonymous logical patterns): Use
14233         compute_logical_op_length for length.
14234
14235 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14236
14237         * dwarf2out.c (modified_type_die): Do not call type_main_variant
14238         for vectors.
14239         (gen_type_die): Same.
14240
14241         * attribs.c (handle_vector_size_attribute): Set debug information.
14242
14243 2002-02-26  Daniel Egger  <degger@fhm.edu>
14244
14245         * config/rs6000/rs6000.md: Swap define_insn attributes to
14246         fix incorrect generation of merge high instructions instead
14247         of merge low.
14248
14249 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14250
14251         * c-typeck.c (really_start_incremental_init): Use
14252         bitsize_zero_node for vectors.
14253
14254 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14255
14256         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14257         ("*set_vrsave_internal"): Same.
14258
14259 2002-02-25  Richard Henderson  <rth@redhat.com>
14260
14261         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14262         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
14263
14264 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
14265
14266         PR target/5755
14267         * config/i386/i386.c (ix86_return_pops_args): Only pop
14268         fake structure return argument if it was passed on the stack.
14269
14270 2002-02-25  Jason Merrill  <jason@redhat.com>
14271
14272         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14273         RESULT_DECL.
14274
14275 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14276
14277         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14278         link with shared_name only.
14279         * doc/invoke.texi (Link Options): Document new behavior.
14280
14281 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14282
14283         * c-typeck.c (push_init_level): Handle vectors.
14284
14285 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14286
14287         * config/sparc/sparc.c (const64_high_operand): Zero-extend
14288         operands of SPARC_SETHI_P.
14289         (input_operand): Likewise.
14290         (sparc_emit_set_const32): Likewise.
14291         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14292         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14293         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
14294         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14295         (movdi_insn_sp64_vis): Likewise.
14296         (movdi split, movdf split): Use SETHI32.
14297         * doc/md.texi: Document SPARC constraints L, M and N.
14298
14299 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14300
14301         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14302         ("*set_vrsave_internal"): use mfspr for Darwin.
14303
14304         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14305         gen_get_vrsave_internal.
14306
14307 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14308
14309         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14310
14311 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14312
14313         * cpplex.c (cpp_interpret_charconst): Get signedness or
14314         otherwise of wide character constants correct.
14315         * cppexp.c (lex): Get signedness of wide charconsts correct.
14316
14317 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14318
14319         * optabs.c (widen_operand): Only call convert_modes for
14320         promoted SUBREG if signedness matches.
14321         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14322
14323 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14324
14325         * cpplib.c (glue_header_name): Use local buffer to build up
14326         header name.
14327
14328 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14329
14330         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14331
14332 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14333
14334         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14335         H8/300[HS] separately.
14336         * config/h8300/h8300.md: Remove the early clobber constraint
14337         from bit field patterns.
14338
14339 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14340
14341         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14342         register_operand.
14343         (mulhisi3): Likewise.
14344         (umulqisi3): Likewise.
14345         (umulhisi3): Likewise.
14346
14347 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14348
14349         * cppinit.c (output_deps): Correct test for stdout output.
14350         (init_dependency_output): Cure warning.
14351
14352 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14353
14354         * expr.c (store_expr): When converting expression to promoted
14355         equivalent type, allow using SUBREG_REG of TARGET as the target
14356         of the expansion of EXP.
14357         * loop.c (basic_induction_var, case SUBREG): Always look inside.
14358         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14359         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14360         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14361         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14362
14363 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
14364
14365         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14366         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14367         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14368
14369 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
14370
14371         PR optimization/5747
14372         * loop.c (scan_loop): Update reg info if move_movables created new
14373         pseudos.
14374
14375 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14376
14377         * gcc.c (init_gcc_spec): Revert last change.
14378
14379 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14380
14381         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14382         gpc_reg_operand constraint.
14383
14384 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
14385
14386         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14387         Simplify comparison of `low'.
14388         (add_operand): Fix formatting.
14389         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
14390         (mask_operand): Disallow mask to wrap in 64-bit mode.
14391         (rs6000_stack_info): Remove redundant test setting push_p.
14392         (output_toc): Fix formatting.
14393         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14394         cc_reg_not_cr0_operand constraint.
14395         (booldi3, boolcdi3 splitters): Same.
14396
14397 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
14398
14399         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
14400
14401 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
14402
14403         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14404         gcc invoked with -shared-libgcc.
14405
14406 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
14407
14408         PR c++/5748
14409         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14410         decl if any of elements was TREE_USED.
14411
14412 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
14413
14414         * config/sparc/sol2.h: Don't include sys/mman.h.
14415         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14416         (arith_4096_operand): Don't throw high bits away.
14417         (const64_operand): Take sign extension of CONST_INTs into account.
14418         (const64_high_operand, sparc_emit_set_const32): Likewise.
14419         (GEN_HIGHINT64): Likewise.
14420         (sparc_emit_set_const64_quick1): Likewise.
14421         (const64_is_2insns): Likewise.
14422         (print_operand): Use trunc_int_for_mode for sign extension.
14423         * config/sparc/sparc.h (SMALL_INT32): Likewise.
14424         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14425         chars.  Assume CONST_INT is already properly sign-extended.
14426         (movdi split): Sign-extend each SImode part.
14427         (andsi3 split): Don't mask high bits off, so that result
14428         remains properly sign-extend.
14429         (iorsi3 split): Likewise.
14430         (xorsi3 split): Likewise.
14431
14432 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
14433
14434         * fold-const.c (fold): Fix typo in comments.
14435
14436 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14437
14438         * Makefile.in (langhooks.o): Update dependencies.
14439
14440 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14441
14442         * langhooks.c: Include flags.h.
14443
14444 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
14445
14446         * testsuite/gcc.dg/attr-alwaysinline.c: New.
14447
14448         * c-common.c (c_common_post_options): Set inline trees by
14449         default.
14450
14451         * doc/extend.texi (Function Attributes): Document always_inline
14452         attribute.
14453         Update documentation about inlining when not optimizing.
14454
14455         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14456
14457         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14458         unless DECL_ALWAYS_INLINE.
14459
14460         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14461         unless DECL_ALWAYS_INLINE.
14462         (c_disregard_inline_limits): Disregard if always_inline set.
14463
14464         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14465         Disregard if always_inline set.
14466         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14467         unless DECL_ALWAYS_INLINE.
14468
14469         * attribs.c (handle_always_inline_attribute): New.
14470         (c_common_attribute_table): Add always_inline.
14471
14472         * config/rs6000/altivec.h: Add prototypes for builtins
14473         requiring the always_inline attribute.
14474
14475 2002-02-21  Eric Christopher  <echristo@redhat.com>
14476
14477         * expmed.c (store_bit_field): Try to simplify the subreg
14478         before generating a new one when when the mode size of
14479         value is less than maxmode.
14480
14481 2002-02-21  Richard Henderson  <rth@redhat.com>
14482
14483         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14484         than gen_rtx_PLUS to form the sum.
14485         * explow.c (force_reg): Rearrange to not allocate new pseudo
14486         when force_operand returns a register.
14487         * expr.c (expand_assignment): Allow offset_rtx expansion to
14488         return a sum.  Do not force addresses into registers.
14489         (expand_expr): Likewise.
14490         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14491         to canonicalize arithmetic that didn't simpify.
14492         (simplify_plus_minus): New argument force; update
14493         all callers.  Don't split CONST unless we can do something with it,
14494         and wouldn't lose the constness of the operands.
14495
14496         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14497         that we generated earlier.
14498
14499 2002-02-21  Tom Tromey  <tromey@redhat.com>
14500
14501         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14502         (output_line_info): Use constant `1', with a long explanatory
14503         comment.
14504         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14505
14506 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
14507
14508         * jump.c (redirect_jump): If old label has no UID, don't try to
14509         delete it.
14510
14511 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
14512
14513         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14514         If input is constant, do shifts at compile time.
14515
14516 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14517
14518         * doc/extend.texi: Fix some more overfull hboxes.
14519
14520 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14521
14522         PR optimization/4994
14523         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14524         register moves.
14525
14526 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14527
14528         PR c++/4574
14529         * expr.h (expand_and): Add mode argument.
14530         * expmed.c (expand_and): Add mode argument.
14531         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14532         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14533         * except.c (expand_builtin_extract_return_addr): Likewise.
14534         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14535         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14536         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14537         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14538         * config/c4x/c4x.md: Use GEN_INT (x) instead of
14539         gen_rtx (CONST_INT, VOIDmode, x).
14540
14541 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14542
14543         PR c/4697:
14544         * stmt.c (warn_if_unused_value): Move side effects test once more.
14545
14546 2002-02-20  Torbjorn Granlund  <tege@swox.com>
14547
14548         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
14549         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
14550
14551 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
14552
14553         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14554         SUBREG or ZERO_EXTEND.
14555
14556 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
14557
14558         * sh.h (current_function_anonymous_args): Remove.
14559         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14560         of current_function_varargs and current_function_stdarg is set.
14561         * sh.c (sh_expand_prologue): Check current_function_varargs /
14562         current_function_stdarg / TARGET_SH5 instead of
14563         current_function_anonymous_args.
14564
14565         * sh64.h (TARGET_VERSION): Define.
14566
14567 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
14568
14569         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14570         VRSAVE_REGNO on TARGET_ALTIVEC.
14571
14572 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
14573
14574         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14575         bits of SImode const_int.
14576         (includes_rshift_p): Likewise.
14577         (print_operand): Call mask_operand and mask64_operand with correct
14578         mode.
14579         (rs6000_output_function_epilogue): Pad traceback table to word.
14580         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14581         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14582         mask64_operand with correct mode.
14583         (FUNCTION_ARG_REGNO_P): Correct parentheses.
14584
14585 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14586
14587         PR debug/4461
14588         * varasm.c (get_pool_constant_mark): New.
14589         * rtl.h (get_pool_constant_mark): Add prototype.
14590         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14591         be represented if it has not been output.
14592
14593 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14594
14595         * combine.c (do_SUBST): Sanity check substitutions of
14596         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14597         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14598         CONST_INT into its operand.
14599         (known_cond): Likewise, for ZERO_EXTEND.
14600         * simplify-rtx.c (simplify_unary_operation): Fix condition to
14601         allow for simplification of wide modes.  Reject CONST_INTs in
14602         ZERO_EXTEND when their actual mode is not given.
14603
14604 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14605
14606         * c-decl.c (pushdecl): If no global declaration is found for an
14607         extern declaration in block scope, try a limbo one.
14608
14609 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14610
14611         PR c++/4401
14612         * c-common.c (pointer_int_sum): Moved from...
14613         * c-typeck.c (pointer_int_sum): ...here.
14614         * c-common.h (pointer_int_sum): Add prototype.
14615
14616 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14617
14618         PR c++/5713
14619         * c-decl.c (duplicate_decls): Return 0 if issued error about
14620         redeclaration.
14621
14622 2002-02-20  Roger Sayle  <roger@eyesopen.com>
14623             Jakub Jelinek  <jakub@redhat.com>
14624
14625         PR c/4389
14626         * tree.c (host_integerp): Ensure that the constant integer is
14627         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14628         when pos is zero or non-zero respectively.  Clarify comment.
14629         * c-format.c (check_format_info_recurse): Fix host_integerp
14630         usage; the pos argument should be zero when assigning to a
14631         signed HOST_WIDE_INT.
14632
14633 2002-02-20  Richard Henderson  <rth@redhat.com>
14634
14635         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14636         of the operand, rather than assuming TImode.
14637         (ix86_expand_binop_builtin): Cope with commutative patterns
14638         using nonimmediate_operand for both operands.
14639         (ix86_expand_timode_binop_builtin): Likewise.
14640         (ix86_expand_store_builtin): Validate operand 1.
14641         (ix86_expand_unop1_builtin): Likewise.
14642
14643 2002-02-20  Philip Blundell  <philb@gnu.org>
14644
14645         PR 5705
14646         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14647
14648 2002-02-20  Richard Henderson  <rth@redhat.com>
14649
14650         PR c/5615
14651         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14652
14653 2002-02-20  Tom Tromey  <tromey@redhat.com>
14654
14655         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14656         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14657         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14658         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14659         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14660         unconditionally.
14661
14662 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14663
14664         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14665           for (const_int 0) in X not just INTVAL.
14666
14667 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
14668
14669         * doc/extend.texi: Avoid or reduce overfull hboxes.
14670
14671 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
14672
14673         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14674         operations if the field does not start at a mode boundary.
14675
14676 2001-02-20      Joel Sherrill <joel@OARcorp.com>
14677
14678         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14679         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14680         Also done for -Acpu and -Amachine.
14681
14682 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14683
14684         * cppinit.c (init_dependency_output): Take deps output file
14685         from -o if none given with -MF.  Suppress normal output.
14686         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
14687         * doc/cpp.texi, doc/invoke.texi: Update.
14688
14689 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14690
14691         * toplev.c (output_quoted_string): Write unprintable
14692         characters with octal escapes.
14693
14694 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14695
14696         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14697         really_call_used[VRSAVE_REGNO] if not Altivec.
14698
14699 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
14700
14701         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14702         MODE_MASK.
14703         (constant_pool_expr_1): Fix formatting.
14704         (rs6000_legitimize_reload_address): Likewise.
14705
14706 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14707
14708         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14709         now that we have one.
14710
14711 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14712
14713         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
14714         end of first block of bitfields (which was only seven bits);
14715         rename dummy to unused_1; remove comment which is no longer true.
14716
14717 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14718
14719         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14720
14721 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14722
14723         PR 5399
14724         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14725         if generating PIC.
14726
14727         PR 5054
14728         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14729         arm_is_longcall_p rather than inspecting call-type cookie
14730         directly.
14731         (call_value_insn) [TARGET_THUMB]: Likewise.
14732
14733 2002-02-19  Graham Stott  <grahams@redhat.com>
14734
14735         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14736
14737 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14738
14739         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14740         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14741         (FP_SAVE_INLINE): Delete.
14742
14743         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14744         * config/rs6000/eabi.asm: Remove ABI save restore routines.
14745         * config/rs6000/t-ppccomm: Build crtsavres.o.
14746         * config/rs6000/crtsavres.asm: New file.
14747
14748 2002-02-19  Philip Blundell  <philb@gnu.org>
14749
14750         * config/arm/arm.c (use_return_insn): Don't reject interrupt
14751         functions.
14752         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14753         (output_return_instruction): Allow interrupt functions to return with
14754         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
14755         (arm_expand_prologue): Subtract 4 before stacking LR in an
14756         interrupt function.
14757
14758 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14759
14760         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14761         decl, not just FUNCTION_DECL.
14762         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14763         (arm_assemble_integer): Likewise.
14764         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14765         marked local.
14766
14767 2002-02-19  matthew green  <mrg@eterna.com.au>
14768
14769         * config.gcc (sparc-*-netbsdelf*): Enable target.
14770         (sparc64-*-netbsd*): New target.
14771         * config/sparc/netbsd-elf.h: New file.
14772         * config/sparc/t-netbsd64: New file.
14773
14774 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14775
14776         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14777
14778 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
14779
14780         * doc/invoke.texi: explicitly list the style guidelines that
14781         -Weffc++ checks for.
14782
14783 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
14784
14785         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14786
14787 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14788
14789         PR other/5718
14790         * gcc.c (cpp_unique_options): Treat -o as indicating object file
14791         only if not -E.  If -E, pass -o through to the preprocessor.
14792
14793 2002-02-19  Kazu Hirata  <kazu@hxi.com>
14794
14795         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14796         register number with an appropriate macro.
14797
14798 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14799
14800         * doc/rtl.texi (Constants): Close @code tag.
14801
14802 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
14803
14804         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14805         ("mmx_uavgv4hi3"): Same.
14806         ("pmulhrwv4hi3"): Same.
14807
14808         * tree-inline.c (walk_tree): Handle vectors.
14809
14810         * c-common.c (constant_expression_warning): Handle vectors.
14811         (overflow_warning): Same.
14812
14813         * sched-deps.c (sched_analyze_2): Handle vectors.
14814
14815         * rtlanal.c (rtx_unstable_p): Handle vectors.
14816         (rtx_varies_p): Same.
14817         (count_occurrences): Same.
14818         (regs_set_between_p): Same.
14819         (modified_between_p): Same.
14820         (modified_in_p): Same.
14821         (volatile_insn_p): Same.
14822         (volatile_refs_p): Same.
14823         (side_effects_p): Same.
14824         (may_trap_p): Same.
14825         (inequality_comparisons_p): Same.
14826         (replace_regs): Same.
14827         (computed_jump_p_1): Same.
14828
14829         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14830         argument.
14831         (inner_mode_array): New.
14832         (copy_rtx): Handle vectors.
14833         (copy_most_rtx): Same.
14834         (rtx_equal_p): Same.
14835         (get_mode_alignment): Adjust for vectors.
14836
14837         * resource.c (mark_referenced_resources): Handle vectors.
14838         (mark_set_resources): Same.
14839
14840         * reload1.c (eliminate_regs): Handle vectors.
14841         (elimination_effects): Same.
14842         (scan_paradoxical_subregs): Same.
14843
14844         * reload.c (subst_reg_equivs): Handle vectors.
14845
14846         * regrename.c (scan_rtx): Handle vectors.
14847
14848         * regclass.c (reg_scan_mark_refs): Handle vectors.
14849
14850         * recog.c (find_single_use_1): Handle vectors.
14851
14852         * local-alloc.c (equiv_init_varies_p): Handle vectors.
14853         (contains_replace_regs): Same.
14854         (memref_referenced_p): Same.
14855
14856         * integrate.c (copy_rtx_and_substitute): Handle vectors.
14857         (subst_constants): Same.
14858
14859         * genattrtab.c (attr_copy_rtx): Handle vectors.
14860         (encode_units_mask): Same.
14861         (clear_struct_flag): Same.
14862         (count_sub_rtxs): Same.
14863
14864         * gcse.c (want_to_gcse_p): Handle vectors.
14865         (oprs_unchanged_p): Same.
14866         (hash_expr_1): Same.
14867         (oprs_not_set_p): Same.
14868         (expr_killed_p): Same.
14869         (compute_transp): Same.
14870         (store_ops_ok): Same.
14871
14872         * function.c (purge_addressof_1): Do not allow paradoxical subregs
14873         of vectors.
14874         (fixup_var_refs_1): Same.
14875         (instantiate_virtual_regs_1): Same.
14876
14877         * fold-const.c (operand_equal_p): Handle vectors.
14878         (fold): Same.
14879         (rtl_expr_nonnegative_p): Same.
14880
14881         * flow.c (mark_used_regs): Handle vectors.
14882
14883         * df.c (df_uses_record): Handle vectors.
14884
14885         * cselib.c (cselib_subst_to_values): Handle vectors.
14886         (cselib_mem_conflict_p): Same.
14887         (hash_rtx): Same.
14888
14889         * cse.c (canon_reg): Handle vectors.
14890         (fold_rt): Same.
14891         (cse_process_notes): Same.
14892         (count_reg_usage): Same.
14893         (canon_hash): Same.
14894
14895         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14896
14897         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14898
14899         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14900         (gen_rtx): Handle CONST_VECTOR.
14901         (gen_const_vector_0): New.
14902         (copy_rtx_if_shared): CONST_VECTORs can be shared.
14903         (reset_used_flags): Same.
14904         (copy_insn_1): Same.
14905         (initializer_constant_valid_p): Handle VECTOR_CST.
14906
14907         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14908
14909         * doc/rtl.texi (Constants): Document const_vector.
14910         (CONST0_RTX): Update for vectors.
14911         (RTL sharing): Same.
14912
14913         * print-tree.c (print_node): Add case for VECTOR_CST.
14914
14915         * tree.h (TREE_VECTOR_CST_ELTS): New.
14916         (struct tree_vector): New.
14917         (union tree_node): Add vector node.
14918         (build_vector): Add prototype.
14919
14920         * tree.def (VECTOR_CST): New.
14921
14922         * tree.c (build_vector): New.
14923
14924         * expmed.c (make_tree): Handle CONST_VECTOR.
14925
14926         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14927         (CONST_VECTOR_ELT): New.
14928         (CONST_VECTOR_NUNITS): New.
14929
14930         * machmode.h (GET_MODE_INNER): New.
14931         (DEF_MACHMODE): Accept 8th arg.
14932
14933         * machmode.def: Add 8th argument for vector inner mode.
14934         Add inner vector modes for vectors.
14935
14936         * rtl.def (VEC_CONST): Remove.
14937         (CONST_VECTOR): New.
14938
14939         * expr.c (clear_storage): Allow vectors.
14940         (is_zeros_p): Handle VECTOR_CST.
14941
14942         * varasm.c (output_constant_pool): Handle vectors.
14943         (rtx_const): Add veclo and vechi fields.
14944         (kind): Add RTX_VECTOR.
14945         (decode_rtx_const): Add case for vector.
14946
14947         * config/rs6000/rs6000-protos.h: Add zero_constant.
14948
14949         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14950         constants.  Force easy vector constants into memory.
14951         (easy_vector_constant): New.
14952         (emit_easy_vector_constant): New.
14953         (rs6000_legitimize_reload_address): Do not generate bad reloads on
14954         darwin.
14955
14956         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14957         instruction does.
14958         ("altivec_lvxl"): Same.
14959         (altivec_lvebx): Same.
14960         (altivec_lvehx): Same.
14961         (altivec_lvewx): Same.
14962         ("*movv4si_const0"): New.
14963         ("*movv4sf_const0"): New.
14964         ("*movv8hi_const0"): New.
14965         ("*movv16qi_const0"): New.
14966
14967 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14968
14969         * config/h8300/h8300.c (notice_update_cc): Use
14970         cc_status.value2.
14971
14972 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14973
14974         * config/h8300/h8300.md (divmod patterns): Change the
14975         constraints for operands[1] to register_operand.
14976
14977 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14978
14979         * config/h8300/h8300-protos.h: Remove the prototype for
14980         p_operand.
14981         * config/h8300/h8300.c (p_operand): Remove.
14982         * config/h8300/h8300.md: Replace p_operand with
14983         const_int_operand.
14984
14985 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14986
14987         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14988         comment.
14989         (output_return_instruction): Allow use of LDR to unstack
14990         return addresss even for interrupt handlers or when
14991         interworking.  If compiling for ARMv5, use interworking-safe
14992         return instructions by default.  Remove duplicated code and
14993         lengthy "strcat" sequences.
14994
14995 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14996
14997         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14998         (LINK_EH_SPEC): Define.
14999         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15000
15001 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
15002
15003         * config/s390/s390.c (s390_emit_prologue): Do not set the
15004         frame_related flag for call-clobbered registers.
15005
15006 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
15007
15008         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15009         (construct_container): Fix handling of SSE operands.
15010         (ix86_expand_builtin): Fix handling of 64bit pointers.
15011         (mmx_maskmovq_rex): New pattern.
15012
15013 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
15014
15015         * regrename.c (kill_set_value): Handle subregs properly.
15016
15017 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
15018
15019         * objc/objc-act.c (handle_impent): Remove leading '*'
15020         from objc_class_name.
15021
15022 2002-02-17  Richard Henderson  <rth@redhat.com>
15023
15024         * config/alpha/alpha.c (some_small_symbolic_operand,
15025         some_small_symbolic_operand_1, split_small_symbolic_operand,
15026         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15027         Handle small SYMBOL_REFs anywhere, not just inside memories.
15028         * config/alpha/alpha-protos.h: Update.
15029         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15030         * config/alpha/alpha.md (small symbolic operand splitter): Update.
15031
15032 2002-02-17  Roland McGrath  <roland@frob.com>
15033
15034         * config.gcc (powerpc-*-gnu-gnualtivec*,
15035         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15036         * config/rs6000/gnu.h: New file.
15037         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15038         Grok "gnu" in rs6000_abi_name.
15039         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15040         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15041         Grok -mcall-gnu analogous to -mcall-linux et al.
15042         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15043         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15044         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15045
15046 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
15047
15048         PR c/3444:
15049         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
15050         shortening.
15051
15052 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15053
15054         * config/cris/cris.h: Undefine STARTFILE_SPEC and
15055         ENDFILE_SPEC before (re)defining them.
15056
15057 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15058
15059         * config/h8300/h8300.c: Fix formatting.
15060         * config/h8300/h8300.h: Likewise.
15061
15062 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15063
15064         * doc/tm.texi: Explain why empty strings should not be
15065         marked for translation.
15066
15067 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15068
15069         * final.c (output_operand_lossage): Changed to accept
15070         printf style arguments. Change calls where necessary.
15071         * output.h (output_operand_lossage): Change declaration
15072         accordingly. Update copyright.
15073         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15074         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15075         Update copyright date where necessary.
15076
15077         * config/i386/i386.c (print_operand): Likewise. Remove use of
15078         sprintf.
15079
15080         * config/cris/cris.c (cris_operand_lossage): Likewise.
15081         Rename parameter so that exgettext recognizes it as
15082         translatable message.
15083         (LOSE_AND_RETURN): Rename parameter to msgid.
15084
15085 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15086
15087         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15088         hard coded register number with an appropriate macro.
15089         (HARD_REGNO_MODE_OK): Likewise.
15090         (ARG_POINTER_REGNUM): Likewise.
15091         (STATIC_CHAIN_REGNUM): Likewise.
15092         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15093         * config/h8300/h8300.md (define_constants): Define more
15094         register numbers.
15095
15096 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15097
15098         * config/i386/i386.h: Don't mark empty strings for translation.
15099
15100 2002-02-16  H.J. Lu <hjl@gnu.org>
15101
15102         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15103
15104 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
15105
15106         * cppinit.c (merge_include_chains): Check for brack being
15107         NULL before attempting to merge it with qtail.
15108
15109 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
15110
15111         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15112         DBX_DEBUG.
15113
15114 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15115
15116         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15117
15118 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15119
15120         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15121         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15122         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15123
15124 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15125
15126         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
15127         now only if !TARGET_FIX.
15128         (*movsi_nt_vms_fix): New pattern.
15129
15130 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
15131
15132         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15133         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15134         (alpha_sa_mask, alpha_sa_size): Reflect above change.
15135         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15136         (alpha_start_function, alpha_expand_epilogue): Likewise.
15137         (unicosmk_gen_dsib): Likewise.
15138
15139 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15140
15141         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15142
15143 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
15144
15145         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
15146         check_and_change_labels, s390_final_chunkify): Delete.
15147         (s390_split_branches, s390_chunkify_pool): New functions.
15148         (s390_function_prologue): Call them.
15149
15150         * config/s390/s390.h (S390_REL_MAX): Delete.
15151         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15152
15153         * config/s390/s390.md (cjump, icjump, jump): Fix length
15154         attribute calculation.
15155
15156
15157 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
15158
15159         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15160         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15161
15162 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15163
15164         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15165         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15166         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15167
15168 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15169
15170         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15171
15172 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15173
15174         * reload.c (find_dummy_reload): Check that an output register
15175         is valid for its mode.
15176
15177 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
15178
15179         * combine.c (known_cond): After replacing the REG of a SUBREG, try
15180         to simplify it.
15181
15182         * function.c (assign_parms): Demote promoted argument passed by
15183         transparent reference.
15184
15185 2001-02-14      Joel Sherrill <joel@OARcorp.com>
15186
15187         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15188         -Acpu() and -Amachine() to eliminate warnings.
15189
15190 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
15191
15192         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15193
15194 2002-02-14  Kazu Hirata  <kazu@hxi.com>
15195
15196         * config/h8300/h8300-protos.h: Update the prototype for
15197         const_costs.
15198         * config/h8300/h8300.c (const_costs): Treat SET as a little
15199         more expensive operation.
15200         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15201         reference to const_costs.
15202
15203 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
15204
15205         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15206
15207 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
15208
15209         PR c/5503:
15210         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15211         use arguments from newtype.
15212
15213 2002-02-13  Eric Christopher  <echristo@redhat.com>
15214
15215         * config/mips/mips.c (override_options): Add check for march/mipsX
15216         on the same command line. Fix error message in cpu processing.
15217         Remove architecture and ISA checks.
15218
15219 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15220
15221         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
15222
15223         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
15224
15225 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15226
15227         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15228         alternatives.
15229         ("*movv8hi_internal1"): Same.
15230         ("*movv16qi_internal1"): Same.
15231         ("*movv4sf_internal1"): Same.
15232
15233         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15234         not push_reload for altivec modes.
15235
15236 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
15237
15238         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15239         all RTEMS targets including removal of #includes from config/*/rtems*.h
15240         file and adding them to tm_file setting. Added xm_defines=POSIX to
15241         many targets.
15242         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15243         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15244         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15245         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15246         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15247         config/m68k/rtemself.h: Ditto.
15248         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15249         config/mips/rtems64.h: Ditto.
15250         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15251         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15252         Ditto.
15253         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15254         config/sparc/rtemself.h: Ditto.
15255         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15256         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15257         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15258         more like arm-elf.
15259         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15260         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15261         target made more similar to i386-elf.
15262         * config/i386/t-rtems-i386: Added soft float support and multilibs.
15263         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15264         be similar to config/m68k/t-m68kelf.
15265         * gthr-rtems.h: Encapsulate with extern "C" for C++.
15266
15267 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
15268
15269         * regmove.c (kill_value): Handle subregs.
15270
15271 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15272
15273         * i386.md (mul patterns): Allow memory operand to be first;
15274         add expanders where needed; fix constraints.
15275         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15276         Allow memory operand to be the first.
15277
15278         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15279         operands.
15280
15281 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15282
15283         PR c/5681:
15284         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15285         GET_MODE (x).
15286
15287 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15288
15289         PR optimization/5547:
15290         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15291         all valid IA-32 address modes involving non-scaled %ebx and
15292         GOT/GOTOFF as displacement.
15293
15294 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
15295
15296         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15297         after emitting ltorg insns.
15298
15299         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15300         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15301         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15302         *abssf2): Fix "op_type" attribute.
15303
15304 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
15305
15306         * mkconfig.sh: Avoid using a subshell redirect.
15307         ($output.T): Change to $(output)T.
15308         (ENABLE_NLS): Remove unneeded undef.
15309
15310         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15311         * config/alpha/x-vms (libsubdir): Define.
15312
15313         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15314         register frame procedures. Optimize retrieving context.
15315
15316         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15317         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15318         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15319
15320 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15321
15322         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15323         Make same change as for find_base_value.
15324
15325 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15326
15327         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15328         of QImode and SImode.
15329
15330 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15331
15332         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15333         length computation of movsi.
15334         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15335
15336 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15337
15338         * config/h8300/h8300.md (subqi3): Tighten the predicate for
15339         operands[2] to register_operand.
15340
15341 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
15342
15343         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15344
15345 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
15346
15347         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15348         for altivec_lvx* and altivec_stvx*.
15349         ("*movv4si_internal"): Add constraint for loading from GPRs.
15350         ("*movv8hi_internal1"): Same.
15351         ("*movv16qi_internal1"): Same.
15352         ("*movv4sf_internal1"): Same.
15353
15354         * config/rs6000/rs6000.c (altivec_register_operand): New.
15355
15356         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15357         altivec_register_operand.
15358
15359 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
15360
15361         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15362         handle SYMBOL_REF.
15363
15364 2002-02-13  Stan Shebs  <shebs@apple.com>
15365
15366         * c-typeck.c (digest_init): Handle vectors.
15367         (really_start_incremental_init): Same.
15368         (pop_init_level): Same.
15369         (process_init_element): Same.
15370
15371         * varasm.c (output_constant): Same.
15372
15373         * expr.c (clear_storage): Same.
15374         (store_constructor): Same.
15375
15376 2002-02-12  Eric Christopher  <echristo@redhat.com>
15377
15378         * explow.c (hard_function_value): Add comment explaining
15379         signed/unsigned comparison.
15380
15381 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
15382
15383         * jump.c (never_reached_warning): Add finish argument.
15384         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15385         real insn after end.
15386         * rtl.h (never_reached_warning): Adjust prototype.
15387         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15388         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15389         never_reached_warning.
15390
15391 2002-02-12  Graham Stott  <grahams@redhat.com>
15392
15393         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15394
15395 2002-02-12  Kazu Hirata  <kazu@hxi.com>
15396
15397         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15398         logical shifts on H8/300.
15399         (shift_alg_si): Improve several shifts on H8/300.
15400         (get_shift_alg): Likewise.
15401
15402 2002-02-12  Graham Stott  <grahams@redhat.com>
15403
15404         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15405
15406 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15407
15408         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15409         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15410
15411 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
15412
15413         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15414         non-CONST_INT through default_assemble_integer.
15415         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15416         <case 8>: Abort for CONST_DOUBLE.
15417
15418 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15419
15420         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15421         is specified.
15422         * config/pa/pa-linux.h (LIB_SPEC): Delete.
15423         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15424
15425 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
15426
15427         * config/stormy16/stormy16.md (zero_extendqihi2): New.
15428
15429 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
15430
15431         * regrename.c (regrename_optimize): Don't accept a
15432         part-clobbered register if the replaced register is not part
15433         clobbered.
15434
15435         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15436         take padding into account when computing the argument value.
15437
15438         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15439
15440         * combine.c (try_combine): Apply substitutions in
15441         CALL_INSN_FUNCTION_USAGE too.
15442
15443 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
15444
15445         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15446         __builtin_altivec_abs*.
15447         (bdesc_abs): New.
15448
15449         * config/rs6000/rs6000.h (rs6000_builtins): Add
15450         ALTIVEC_BUILTIN_ABS*.
15451
15452         * config/rs6000/altivec.h: Use const char for builtins expecting
15453         literals.
15454         (vec_abs): New versions for C and C++.
15455         (vec_abss): Same.
15456
15457 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15458
15459         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15460         using Pmode.
15461
15462 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15463
15464         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15465         constant definition from h8300.md.
15466         (FRAME_POINTER_REGNUM): Likewise.
15467         * config/h8300/h8300.md (define_constants): Add FP_REG.
15468
15469 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15470
15471         * config/h8300/h8300.c (print_operand): Remove redundant code.
15472
15473 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15474
15475         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15476         * config/h8300/h8300.c (byte_reg): Make it static.
15477
15478 2002-02-10  Richard Henderson  <rth@redhat.com>
15479
15480         PR c/5623
15481         * c-typeck.c (incomplete_type_error): Handle flexible array members.
15482
15483 2002-02-10  Richard Henderson  <rth@redhat.com>
15484
15485         PR c++/5624
15486         * tree.c (append_random_chars): Don't abort if main_input_filename
15487         does not exist.
15488
15489 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
15490
15491         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15492
15493 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15494
15495         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
15496         (pushhi1): Likewise.
15497
15498 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15499
15500         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15501         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15502
15503 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
15504
15505         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15506         remove MASK_VIS.
15507         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
15508
15509 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15510
15511         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15512         a half of an SImode register on H8/300.
15513
15514 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
15515
15516         * i386.md (movdi_2): Add missing '!'.
15517
15518 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15519
15520         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
15521         definitions.
15522
15523 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15524
15525         * config/h8300/h8300.md (length): Correct the distance valid
15526         for the short branch.
15527
15528 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15529
15530         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15531
15532 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15533
15534         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15535         registers in SImode.
15536         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15537         part-clobbered.
15538
15539         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15540         patch.
15541
15542         Contribute sh64-elf.
15543         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15544         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15545         (sh_cannot_modify_jumps_p): New function.
15546         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
15547         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15548         (sh_ms_bitfield_layout_p): New function.
15549         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
15550                     Zack Weinberg  <zack@codesourcery.com>
15551         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15552         expand_simple_binop instead of expand_binop.
15553         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
15554         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15555         use of .quad and .uaquad.
15556         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15557         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15558         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15559         * config/sh/sh.md (movdi_const, movdi_const_32bit,
15560         movdi_const_16bit): Make sure all CONSTs have modes.
15561         (sym2PIC): Ditto, but by adjusting all callers.
15562         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15563         if the prologue calls the SHmedia argument decoder or register
15564         saver.
15565         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15566         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15567         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15568         (sh_expand_epilogue): Don't emit USE of return target register.
15569         (prepare_move_operands): Legitimize DImode PIC addresses.
15570         (sh_media_register_for_return): Skip tr0, used to initialize the
15571         PIC register.
15572         (sh_expand_prologue): Remove explicit USE of return register.
15573         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
15574         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
15575         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15576         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15577         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15578         EXTRA_CONSTRAINT_T.
15579         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15580         (MOVI_SHORI_BASE_OPERAND_P): New.
15581         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15582         (EXTRA_CONSTRAINT_T): Define in terms of them.
15583         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15584         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15585         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15586         alternatives supporting TARGET_REGS.
15587         (UNSPEC_GOTPLT): New constant.
15588         (movdi split): Move incrementing of LABEL_NUSES...
15589         (movdi_const, movdi_const_32bit): Here.  Use
15590         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15591         (movdi_const_16bit): New.
15592         (call, call_value) [flag_pic]: Use GOTPLT.
15593         (call_pop, call_value_pop): New expands.
15594         (call_pop_compact, call_pop_rettramp): New insns.
15595         (call_value_pop_compact, call_value_pop_rettramp): New insns.
15596         (sibcall) [flag_pic]: Use GOT.
15597         (builtint_setjmp_receiver): Remove bogus, unused expand.
15598         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15599         (*pt, *ptb, ptrel): New insns.
15600         (sym2GOT): Handle DImode GOT.
15601         (sym2GOTPLT, symGOTPLT2reg): New expands.
15602         (sym2PIC): New expand.
15603         (shcompact_return_tramp): Use GOTPLT to return trampoline.
15604         (shcompact_return_tramp_i): Use return register explicitly.
15605         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15606         disable flag_reorder_blocks.
15607         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15608         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15609         clobbers, for clarity.
15610         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15611         restoring of r0 in macl as MAYBE_DEAD.
15612         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
15613         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15614         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15615         alter_subreg all over.
15616         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15617         reload, instead of emitting instructions that would require
15618         reloading.
15619         (casesi_load_media): Add missing modes.
15620         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
15621         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15622         as used if the argument decoder is called.
15623         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15624         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15625         Pmode, then extend it to DImode if necessary.
15626         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15627         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15628         constants in FPU-enabled SHmedia, let them be loaded from memory.
15629         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15630         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15631         Adjust whitespace in assembly output templates.
15632         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15633         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15634         mode of if_then_else.
15635         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
15636         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15637         sh.h.
15638         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
15639                     Joern Rennecke <amylaar@redhat.com>
15640         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15641         (SUBTARGET_CPP_PTR_SPEC): New.
15642         (SUBTARGET_CPP_SPEC): Remove.
15643         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15644         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15645         Fix typo in previous checkin.
15646         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
15647         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15648         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
15649                     Alexandre Oliva  <aoliva@redhat.com>
15650         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15651         what single FP register can hold for SHmedia target.
15652         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15653                     Alexandre Oliva  <aoliva@redhat.com>
15654         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15655         Do not split into SUBREG.
15656         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
15657         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15658         and added new functions as specified in SH5 ABI r9.
15659         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
15660         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15661         8-byte boundary.
15662         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
15663         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15664         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
15665         and consttable_window_ends.
15666         2001-06-03  Graham Stott  <grahams@redhat,com>
15667         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15668         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
15669         * config/sh/sh.c (print_operand): Handle floating-point pair,
15670         vector and matrix registers.
15671         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15672         vector modes into account.
15673         * config/sh/sh.md (movv2sf): Split move between registers into
15674         movdf.
15675         (movv4sf, movv16sf): Introduce insns that get split only after
15676         reload.
15677         * config/sh/shmedia.h: Fix Copyright dates.
15678         * config/sh/ushmedia.h: Likewise.  Move loop counter
15679         declarations into conditionals that uses them.
15680         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15681         loop boundary.
15682         * config/sh/sshmedia.h: Fix Copyright dates.
15683         (sh_media_PUTCFG): Fix constraints.
15684         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
15685         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15686         ptrmemfunc_vbit_in_delta for SH5.
15687         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
15688         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15689         * invoke.texi: Likewise.
15690         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
15691         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15692         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15693         GCC_pop_shmedia_regs_nofpu): New global symbols.
15694         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15695         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15696         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15697         compact function with nonlocal labels.
15698         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15699         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15700         (initial_elimination_offset): Account for their stack space.
15701         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15702         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15703         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15704         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15705         least one of the operands to be a register.
15706         (movv2sf): Likewise.  Renamed to movv2sf_i.
15707         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15708         prepare_move_operands() before emitting SHmedia insns.
15709         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
15710         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15711         Don't save nor initialize r12.  Don't mis-align the stack.
15712         Pad the code with a nop.
15713         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
15714         stack.
15715         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15716         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15717         [__SHMEDIA__]: Implement.
15718         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
15719         * config/sh/sh.md: Set latency of `pt' closer to reality.
15720         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15721         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15722         Set move, load and store type attributes.
15723         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15724         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15725         profiling.
15726         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15727         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15728         * config/sh/sh.c (sh_media_register_for_return): New function.
15729         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15730         branch-target register.
15731         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15732         * config/sh/sh.md (return_media_i): Use any call-clobbered
15733         branch-target register.
15734         (return_media): If r18 wasn't copied in the prologue, copy it
15735         here.
15736         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15737         Clear class FP0_REGS.
15738         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15739         from elf.h.
15740         2001-03-08  DJ Delorie  <dj@redhat.com>
15741         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15742         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
15743         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15744         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
15745         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15746         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
15747         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15748         return value correctly for call_cookie.
15749         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
15750         * config/sh/crt1.asm (start): Modified so as to call
15751         ___setup_argv_and_call_main.
15752         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
15753         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15754         SHmedia mode.
15755         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
15756         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15757         (STRIP_NAME_ENCODING): Use it.
15758         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
15759         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
15760         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15761         prepare_scc_operands().
15762         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15763         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15764         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
15765         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15766         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
15767         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15768         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15769         used in shcompact_incoming_args.
15770         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15771         change.
15772         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15773         mode.
15774         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15775         Adjust accordingly.
15776         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15777         Simplify.  Adjust.  Add sanity check.
15778         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15779         FPU_SINGLE_BIT.
15780         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15781         TARGET_SHCOMPACT.
15782         (udivsi3, divsi3): Use them.
15783         (force_mode_for_call): New insn.
15784         (call, call_value, sibcall_value): Emit it before SHcompact
15785         calls.
15786         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
15787         * config/sh/sh.md (call, call_value, sibcall): Make sure the
15788         call cookie is non-NULL before taking its value.
15789         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
15790         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15791         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
15792         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15793         block.
15794         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15795         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15796         temporary for stack adjusts.  Use MACL and MACH to pass
15797         arguments to shcompact_incoming_args.
15798         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
15799         clobber r1.
15800         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15801         (nested_trampoline): Load static chain address into r1.
15802         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15803         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
15804         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15805         fp_arith_reg_operand().
15806         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
15807         * config/sh/sh.md (casesi): Sign-extend the first two operands,
15808         and use signed compares for them.
15809         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15810         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
15811         ones properly aligned.
15812         (find_barrier): Account for extra alignment needed for 8-byte wide
15813         constants.
15814         (machine_dependent_reorg): Require a label for the second 4-byte
15815         constant after an 8-byte one.
15816         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15817         change.
15818         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15819         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15820         last_float when switching float modes.
15821         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15822         auto-increment for general-purpose registers.
15823         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15824         result.
15825         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15826         for stack adjust.
15827         * config/sh/sh.c (sh_builtin_saveregs): Support using all
15828         registers for varargs.
15829         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
15830         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15831         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15832         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15833         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15834         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
15835         call_cookie accordingly.
15836         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15837         (SHCOMPACT_BYREF): Likewise.
15838         (SHCOMPACT_FORCE_ON_STACK): New macro.
15839         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15840         (sh_builtin_saveregs): Likewise.
15841         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15842         shcompact_incoming_args): Use new shift values.  Support
15843         sequences of consecutive and non-consecutive pushes/pops.
15844         * config/sh/sh.md (return): Don't explicitly use PR_REG.
15845         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
15846         * config/sh/sh.h (TEXT_SECTION): Define.
15847         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15848         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15849         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15850         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15851         return values on FPU-enabled SHmedia.
15852         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15853         FPU-enabled SHmedia.
15854         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15855         value is returned in a non-FP reg and is not returned by
15856         reference.
15857         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15858         jump_ind.
15859         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
15860         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15861         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15862         quad-aligned to be passed by callee-copy reference.
15863         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
15864         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15865         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15866         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
15867         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15868         copying low-numbered FP regs to r7 and r8.
15869         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15870         FP regs to general-purpose regs only if the copy was passed on the
15871         stack.
15872         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15873         copying FP reg to r9.
15874         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15875         copy FP regs to general-purpose regs only in outgoing calls.
15876         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15877         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
15878         HOST_WIDE_INT.
15879         * config/sh/sh.h (struct sh_args): Document all fields.
15880         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15881         passed partially on the stack should not consider making
15882         sibcalls.
15883         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15884         stack_regs only for incoming calls.  When passing FP args,
15885         make sure there are FP regs available before modifying
15886         call_cookie.
15887         (SHCOMPACT_BYREF): Pass double args in general-purpose
15888         registers by reference.
15889         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
15890         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15891         attempt to generate sibcalls if the caller got any arguments
15892         by reference.
15893         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15894         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15895         to 8-byte boundaries.
15896         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15897         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15898         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15899         stored in the stack.
15900         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15901         for the offsets to have the ISA bit set.
15902         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
15903         invocation.  Use beq instead of bgt to mark end of sequence of
15904         loads.
15905         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
15906         bgt to mark end of sequence of stores.
15907         * config/sh/sh.c (arith_operand): Don't check whether
15908         CONST_OK_FOR_J for now.
15909         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15910         instead of long for conversion.
15911         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
15912         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15913         before passing it to fprintf.
15914         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
15915         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15916         Call set_fpscr before reading/writing SR.
15917         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15918         Call set_fpscr.
15919         * config/sh/lib1funcs.asm: Add `.align 2' directives before
15920         SHmedia code.
15921         (FMOVD_WORKS): Define on SH5 with FPU.
15922         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
15923         setting.
15924         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15925         _fpscr_values.
15926         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
15927         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15928         address.
15929         (ia_main_table): Ditto.
15930         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
15931         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15932         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15933         the definitions from sh.h.
15934         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15935         TARGET_SH5.
15936         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15937         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15938         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15939         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
15940         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15941         Increment LABEL_NUSES.
15942
15943         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15944         TARGET_SH5.
15945         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15946         defined.
15947         * config/sh/elf.h (SIZE_TYPE): Likewise.
15948         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15949         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15950         shcompact_incoming_args): Load switch table addresses using
15951         datalabel.
15952         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15953         (NO_BUILTIN_SIZE_TYPE): Define.
15954         (SIZE_TYPE): Don't define.
15955         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15956         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15957         definition of __SH5__=32 for -m5-compact-nofpu.
15958         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15959         ADDR_DIFF_VEC.
15960         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
15961         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15962         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
15963         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15964         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15965         (INSN_LENGTH_ALIGNMENT): Likewise.
15966         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15967         * config/sh/sh.md (call, call_value, sibcall): Simplify
15968         copying of non-branch-target register.
15969         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15970         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
15971         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15972         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15973         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15974         floating-point values as structs.
15975         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15976         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15977         general-purpose register.
15978         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15979         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15980         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15981         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15982         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15983         (ENCODE_SECTION_INFO): Enclose variables and constants in
15984         DATALABEL unspecs.
15985         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15986         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15987         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15988         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15989         only for LABEL_REFs.  For SYMBOL_REFs, prepend
15990         SH_DATALABEL_ENCODING to the symbol name.
15991         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15992         convert_mode().
15993         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15994         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15995         UNSPEC_DATALABEL.
15996         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15997         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15998         (DATALABEL_REF_P): Don't require CONST.
15999         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16000         REL label.
16001         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
16002         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16003         right.
16004         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
16005         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16006         Use shallow_copy_rtx and PUT_MODE to change the mode of
16007         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16008         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16009         on SHmedia using GENERAL_REGs.
16010         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16011         bltu_media_i): Fix reversion of conditions.
16012         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
16013         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16014         * config/sh/sh.c (output_far_jump): Save r13 in macl.
16015         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
16016         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16017         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
16018         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16019         (GCC_nested_trampoline): Likewise.
16020         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16021         * config/sh/sh.c (gen_datalabel_ref): Define.
16022         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16023         (INITIALIZE_TRAMPOLINE): Likewise.
16024         (TRAMPOLINE_ADJUST_ADDRESS): Define.
16025         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16026         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16027         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16028         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16029         (ic_invalidate): Adjust for SH5.
16030         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16031         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16032         _nested_trampoline.
16033         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
16034         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16035         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16036         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16037         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16038         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16039         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16040         * config/sh/sh.c (target_reg_operand): Match only target-branch
16041         registers and pseudos that aren't virtual registers.
16042         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16043         Copy operands that don't match target_reg_operand to pseudos.
16044         (call_media, call_value_media, sibcall_media): Use
16045         target_reg_operand instead of target_operand.
16046         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
16047         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
16048         * config/sh/sh.c (target_reg_operand): Match hardware registers
16049         other than branch-target registers.
16050         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
16051         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
16052         (fpscr_values) [SH5 == 32]: Define.
16053         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16054         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16055         Handle function addresses coming in SUBREGs.
16056         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
16057         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16058         shcompact_return_trampoline): Use datalabel where appropriate.
16059         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
16060         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16061         general-purpose register to copy one branch-target register to
16062         another.
16063         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16064         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16065         SYMBOL_REFs with VOIDmode.
16066         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16067         bltu_media_i): New insns.
16068         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16069         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16070         (INIT_CUMULATIVE_ARGS): Likewise.
16071         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
16072         * machmode.def (V16SFmode): New mode.
16073         * c-common.c (type_for_mode): Support V2SF and V16SF.
16074         * tree.c (build_common_tree_nodes_2): Likewise.
16075         * tree.h (tree_index): Likewise.
16076         * calls.c (emit_call_1): Take args_so_far.  Adjust all
16077         callers.  Introduce CALL_POPS_ARGS.
16078         * tm.texi (CALL_POPS_ARGS): Document.
16079         * config/sh/crt1.asm: Implement in SHmedia mode.
16080         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16081         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16082         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16083         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16084         Implement divsi and udivsi in SHmedia mode.  Introduce
16085         SHcompact trampolines.
16086         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16087         only in SHmedia64.
16088         (regno_reg_class): Rewrite.
16089         (fp_reg_names): Remove.
16090         (sh_register_names, sh_additional_register_names): New.
16091         (print_operand): Added `u'.  Support SUBREGs in addresses.
16092         Add parentheses around shifted CONSTs.
16093         (output_file_start): Output .mode and .abi directives.
16094         (shiftcosts, addsubcosts, multcosts): Adjust.
16095         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
16096         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
16097         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
16098         bytes, not registers.  Take into account the need for the
16099         SHcompact incoming args trampoline.  Adjust all callers.
16100         (sh_expand_prologue): Take stack_regs into account.  Call
16101         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
16102         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
16103         stack aligned as per SH5 ABI.
16104         (sh_builtin_saveregs): Support SH5 ABI.
16105         (sh_build_va_list, sh_va_start): Likewise.
16106         (initial_elimination_offset): Take alignment into account.
16107         Compute location of PR according to the SH5 stack frame.
16108         (arith_reg_operand): Reject branch-target registers.
16109         (shmedia_6bit_operand): New.
16110         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16111         (target_reg_operand): Match DImode only.  Accept SUBREGs.
16112         (target_operand): New.
16113         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16114         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
16115         SIBCALL_REGS for SHmedia.
16116         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16117         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16118         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16119         (TARGET_SWITCHES): New SH5 flags.
16120         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
16121         VALID_REGISTER_P to disable unsupported registers.
16122         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16123         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16124         (FUNCTION_ARG_PADDING): Define.
16125         (FASTEST_ALIGNMENT): Adjust.
16126         (SH_REGISTER_NAMES_INITIALIZER): New.
16127         (sh_register_names): Declare.
16128         (DEBUG_REGISTER_NAMES): Define.
16129         (REGISTER_NAMES): Define based on sh_register_names.
16130         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16131         (sh_additional_register_names): Declare.
16132         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16133         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16134         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16135         (REGISTER_NATURAL_MODE): Define.
16136         (FIRST_PSEUDO_REGISTER): Adjust.
16137         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16138         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16139         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16140         (VECTOR_MODE_SUPPORTED_P): Define.
16141         (REG_CLASS_CONTENTS): Adjust.
16142         (SMALL_REGISTER_CLASSES): Adjust.
16143         (REG_ALLOC_ORDER): Adjust.
16144         (INDEX_REG_CLASS): Adjust.
16145         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16146         (CONST_OK_FOR_LETTER_P): Adjust.
16147         (PREFERRED_RELOAD_CLASS): Adjust.
16148         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16149         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16150         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16151         (FIRST_FP_PARM_REG): Adjust.
16152         (CALL_POPS_ARGS): Define.
16153         (FUNCTION_ARG_REGNO_P): Adjust.
16154         (struct sh_args): New fields.
16155         (GET_SH_ARG_CLASS): Adjust.
16156         (INIT_CUMULATIVE_ARGS): Adjust.
16157         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16158         (FUNCTION_ARG_ADVANCE): Adjust.
16159         (FUNCTION_ARG): Adjust.
16160         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16161         (FUNCTION_ARG_CALLEE_COPIES): Define.
16162         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16163         (STRICT_ARGUMENT_NAMING): Define.
16164         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16165         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16166         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16167         (SETUP_INCOMING_VARARGS): Adjust.
16168         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16169         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16170         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16171         (SUBREG_OK_FOR_INDEX_P): Adjust.
16172         (EXTRA_CONSTRAINT_S): Update.
16173         (EXTRA_CONSTRAINT_T): New.
16174         (EXTRA_CONSTRAINT): Adjust.
16175         (GO_IF_LEGITIMATE_INDEX): Adjust.
16176         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16177         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16178         (MOVE_MAX): Adjust.
16179         (MAX_MOVE_MAX): Define.
16180         (Pmode): Adjust.
16181         (CONST_COSTS): Adjust.
16182         (REGISTER_MOVE_COST): Adjust.
16183         (BRANCH_COST): Adjust.
16184         (TEXT_SECTION_ASM_OP): Adjust.
16185         (DBX_REGISTER_NUMBER): Adjust.
16186         (ASM_OUTPUT_DOUBLE_INT): New.
16187         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16188         (PREDICATE_CODES): Adjust.
16189         (PROMOTE_MODE): Adjust.
16190         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16191         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16192         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16193         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16194         (DR0_REG, DR2_REG, DR4_REG): Renumber.
16195         (TR0_REG, TR1_REG, TR2_REG): New.
16196         (XD0_REG): Renumber.
16197         (UNSPEC_COMPACT_ARGS): New.
16198         (type): Added pt and ptabs.
16199         (length): Default to 4 on SHmedia.  Default pt length to 12
16200         and     20 on SHmedia32 and SHmedia64, respectively.
16201         (pt): New function unit.
16202         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
16203         Add whitespace between operands of SHmedia instructions.
16204         (movdicc): Fix.
16205         (adddi3_media, addsi3_media): Adjust constraints.
16206         (subsi3) [SHmedia]: Force operand 1 into a register.
16207         (udivsi3_i1_media, udivsi3_i4_media): New.
16208         (udivsi3): Support SHmedia.
16209         (divsi3_i1_media, divsi3_i4_media): New.
16210         (divsi3): Support SHmedia.
16211         (anddi3, iordi3, xordi3): Adjust constraints.
16212         (zero_extendhidi2, zero_extendqidi2): New.
16213         (extendsidi2, extendhidi2, extendqidi2): New.
16214         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16215         (pop_e, pop_fpul, pop_4): Likewise.
16216         (movsi_media): Support FP and BT registers.
16217         (movsi_media_nofpu): New.  Adjust splits to DImode.
16218         (lduw, ldub): Renamed to zero_extend* above.
16219         (movqi_media): Fix typo.
16220         (movdi_media): Support FP and BT registers.
16221         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
16222         (movdi_const_32bit): New.
16223         (shori_media): Require immediate operand.  Use `u' for output.
16224         (movdf_media, movsf_media): Simplified.
16225         (movdf_media_nofpu, movsf_media_nofpu): New.
16226         (movdf, movsf): Adjust
16227         (movv2sf, movv2sf, movv16sf): New.
16228         (beq_media, beq_media_i): Adjust constraints.  Don't use
16229         scratch BT register.
16230         (bne_media, bne_media_i): Likewise.
16231         (bgt_media, bgt_media_i): Likewise.
16232         (bge_media, bge_media_i): Likewise.
16233         (bgtu_media, bgtu_media_i): Likewise.
16234         (bgeu_media, bgeu_media_i): Likewise.
16235         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16236         bunordered): Emit jump insn.  Force operands to registers when
16237         needed.
16238         (jump_media, jump): Simplify.
16239         (call_compact, call_compact_rettramp): New.
16240         (call_value_compact, call_value_compact_rettramp): New.
16241         (call_media, call_value_media): Simplify.
16242         (sibcall_compact, sibcall_media): New.
16243         (call, call_value): Adjust for SHmedia and SHcompact.
16244         (sibcall, sibcall_value, untyped_call): Likewise.
16245         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16246         (indirect_jump): Adjust for SHmedia.
16247         (casesi_jump_media): New.
16248         (nop): Re-enable for SHmedia.
16249         (call_site): Restrict to SH1.
16250         (casesi): Adjust for SHmedia.
16251         (casesi_shift_media, casesi_load_media): New.
16252         (return): Explicitly use PR register.  Call return trampoline
16253         on SHcompact.
16254         (return_i): Explicitly use PR register.
16255         (shcompact_return_tramp, shcompact_return_tramp_i): New.
16256         (return_media): Adjust.
16257         (shcompact_incoming_args): New.
16258         (epilogue): Adjust.
16259         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16260         (movstrsi): Disable on SH5.
16261         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16262         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16263         (subsf3, subsf3_media): Likewise.
16264         (mulsf3, mulsf3_media, mac_media): Likewise.
16265         (divsf3, divsf3_media): Likewise.
16266         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
16267         (floatsisf2, fux_truncsfsi2): Likewise.
16268         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
16269         constraints.
16270         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16271         (cmpunsf_media, cmpsf): Likewise.
16272         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16273         (abssf2, abssf2_media): Likewise.
16274         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16275         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16276         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
16277         (floatsidf2, fix_truncdfsi2): Likewise.
16278         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
16279         constraints.
16280         (cmpeqdf_media, cmpgtdf_media): Likewise.
16281         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16282         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16283         (absdf2, absdf2_media): Likewise.
16284         (extendsfdf2, extendsfdf2_media): Likewise.
16285         (truncsfdf2, truncsfdf2_media): Likewise.
16286         * config/sh/sh64.h: New file.
16287         * config/sh/t-sh64: New file.
16288         * config/sh/shmedia.h: New file.
16289         * config/sh/ushmedia.h: New file.
16290         * config/sh/sshmedia.h: New file.
16291         * configure.in: Added sh64-*-elf.
16292         * configure: Rebuilt.
16293         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
16294         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16295         (reg_class_from_letter): Use `b' for TARGET_REGS.
16296         (print_operand): Support `%M', `%m', `AND' and
16297         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
16298         (andcosts): Adjust for SHmedia.
16299         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16300         Likewise.
16301         (target_reg_operand): New function.
16302         * config/sh/sh-protos.h (target_reg_operand): Declare.
16303         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16304         FP registers on SH5.
16305         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16306         on SH4.
16307         (TARGET_REGISTER_P): New macro.
16308         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16309         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16310         (EXTRA_CONSTRAINT_S): New macro.
16311         (EXTRA_CONSTRAINT): Adjust.
16312         (FLOAT_TYPE_SIZE): Define to 32.
16313         (Pmode): DImode on SHmedia.
16314         (CONST_COSTS): Adjust for SHmedia literals.
16315         (PREDICATE_CODES): Added target_reg_operand.
16316         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16317         * config/sh/sh.md: Remove all attrs from SHmedia insns.
16318         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16319         (cmpdi): Accept SHmedia.
16320         (movdicc_false, movdicc_true): New insns.
16321         (movdicc): New expand.
16322         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16323         no_new_pseudos.
16324         (addsi3_media): Match `S' constraint.
16325         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16326         (negdi2): Expand for SHmedia.
16327         (one_cmpldi2): New expand.
16328         (zero_extendsidi2): Change from expand to insn.
16329         (extendsidi2): Add constraints.
16330         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
16331         LD/ST address.  Fix SI immediate loading split.
16332         (movhi_media, movqi_media, lduw, ldub): New insns.
16333         (movhi, movqi): Accept SHmedia.
16334         (shori_media, movdi_media): Relax input constraints.  Split
16335         symbolic constants.
16336         (movdf_media, movsf_media): New insn.  New split to movdi.
16337         (movdf, movsf): Match on SHmedia.
16338         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16339         bgeu_media): New insns and splits.  New insns with `_i' suffix.
16340         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16341         (bunordered): New expand.
16342         (jump_compact): Renamed from `jump'.
16343         (jump_media): New insn.
16344         (jump): New expand.
16345         (call_media, call_value_media): New insns.
16346         (call, call_value): Adjust.
16347         (indirect_jump_compact): Renamed from `indirect_jump'.
16348         (indirect_jump_media): New insn.
16349         (indirect_jump): New expand.
16350         (untyped_call, return): Accept SHmedia.
16351         (return_media): New insn.
16352         (prologue, epilogue, blockage): Accept SHmedia.
16353         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16354         (sunordered): New expand.
16355         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16356         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16357         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16358         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16359         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16360         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16361         abssf2_media): New insns.
16362         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16363         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16364         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16365         floatdidf2, floatsidf2_media, fix_truncdfdi2,
16366         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16367         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16368         absdf2_media): New insns.
16369         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16370         (extendsfdf2_media, truncdfsf2_media): New insns.
16371         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
16372         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16373         * config/sh/sh.h (CONST_OK_FOR_J): Document.
16374         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16375         * config/sh/sh.md (adddi3): New expand.
16376         (adddi3_media, adddi3z_media): New insns.
16377         (adddi3_compact): Renamed from adddi3.
16378         (addsi3_media): Use add.l r63 to add constant zero.
16379         (subdi3): New expand.
16380         (subdi3_media): New insn.
16381         (subdi3_compact): Renamed from subdi3.
16382         (mulsidi3): New expand.
16383         (mulsidi3_media): New insn.
16384         (mulsidi3_compact): Renamed from mulsidi3.
16385         (umulsidi3): New expand.
16386         (umulsidi3_media): New insn.
16387         (umulsidi3_compact): Renamed from umulsidi3.
16388         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16389         (ashlsi3, ashrsi3, lshrsi3): Use them.
16390         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16391         (ashldi3, ashrdi3, lshrdi3): Use them.
16392         (zero_extendsidi2): New expand.
16393         (extendsidi2): New insn.
16394         (movsi_media): New insn.  Split to movdi to load constants.
16395         (movsi): Enable for shmedia.
16396         (movdi_media): New insn.  Use shori_media to load wide constants.
16397         (short_media): New insn.
16398         (movdi): Enable for shmedia.
16399         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
16400         * config/sh/sh.h (CPP_SPEC): Added `m5'.
16401         (SUBTARGET_CPP_SPEC): Added `!m5'.
16402         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16403         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
16404         to all other SH variants.
16405         (TARGET_DEFAULT): Set to SH1_BIT.
16406         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16407         (BITS_PER_WORD): Raise to 64 on shmedia.
16408         (MAX_BITS_PER_WORD): Change to 64.
16409         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16410         (INT_TYPE_SIZE): Keep as 32.
16411         (UNITS_PER_WORD): Raise to 8 on shmedia.
16412         (MIN_UNITS_PER_WORD): Keep as 4.
16413         (POINTER_SIZE): Raise to 64 on shmedia.
16414         (CONST_OK_FOR_J): New macro.
16415         (CONST_OK_FOR_LETTER_P): Use it.
16416         (processor_type): Add PROCESSOR_SH5.
16417         * config/sh/sh.md: Conditionalize all expands, insns and
16418         splits to TARGET_SH1.
16419         (cpu): Added sh5.
16420         (addsi3_compact): Renamed from...
16421         (addsi3): Now an expand.
16422         (addsi3_media, subsi3_media): New insns.
16423         (subsi3): Don't negate constants with SHmedia.
16424
16425         * hooks.c: New file.
16426         * hooks.h: New file.
16427         * Makefile.in (HOOKS_H): New.
16428         (TARGET_DEF_H): Added $(HOOKS_H).
16429         (OBJS): Added hooks.o.
16430         (cfgcleanup.o, bb-reorder.o): Added target.h.
16431         (hooks.o): Added dependencies.
16432         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16433         (TARGET_INITIALIZER): this.
16434         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16435         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16436         * bb-reorder.c: Include target.h.
16437         (reorder_basic_blocks): Skip if cannot modify jumps.
16438         * cfgcleanup.c: Include target.h.
16439         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16440
16441 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16442
16443         * config/mips/mips.md (casesi_internal, casesi_internal_di):
16444         Protect jump delay slot instructions with .set noreorder and
16445         .set nomacro.
16446
16447 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16448
16449         * config/mips/mips.md (casesi_internal_di): Calculate
16450         the index into the target offset table correctly.
16451
16452 2002-02-08  Richard Henderson  <rth@redhat.com>
16453
16454         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16455         * final.c (output_addr_const): Accept and discard SUBREG.
16456         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16457         mark them unknown instead.
16458         (simplify_subtraction): Handle RTX_UNKNOWN.
16459         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16460
16461 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
16462
16463         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16464
16465 2002-02-08  Richard Henderson  <rth@redhat.com>
16466
16467         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16468
16469 2002-02-08  Andreas Jaeger  <aj@suse.de>
16470
16471         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16472         * config/i386/t-linux64: New file.
16473
16474 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
16475
16476         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16477         * c-parse.in (compstmt): Clear last_expr_type.
16478
16479 2002-02-07  Richard Henderson  <rth@redhat.com>
16480
16481         * loop.c (strength_reduce): Sink final_value when not
16482         eliminating a biv.
16483
16484 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
16485
16486         * config/sparc/freebsd.h: Fix mismatched spec {.
16487
16488 2002-02-07  Richard Henderson  <rth@redhat.com>
16489
16490         * cfgrtl.c: Include recog.h and insn-config.h.
16491         (keep_with_call_p): Fix general_operand invocation.
16492         * Makefile.in (cfgrtl.o): Update dependencies.
16493
16494 2002-02-07  Kazu Hirata  <kazu@hxi.com>
16495
16496         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16497         comment.  Accept HImode only if TARGET_H8300.
16498
16499 2002-02-07  Eric Christopher  <echristo@redhat.com>
16500
16501         * config/mips/crtn.asm: Cleanup #ifdefs.
16502
16503 2002-02-07  Eric Christopher  <echristo@redhat.com>
16504
16505         * config/mips/crti.asm: Add changes for mips16. mips16 uses
16506         register 7 as RA instead of $31.
16507         * config/mips/crtn.asm: Ditto.
16508         * config/mips/mips.c (mips_move_2words): Add case for
16509         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16510         (compute_frame_size): Fix typo.
16511         (save_restore_insns): Ditto.  Make documentation about using
16512         register $7 as return register more precise.
16513         (mips_expand_epilogue): Fix comment. Add code to work around not
16514         being able to add to the stack pointer directly.
16515         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16516         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16517         epilogue.
16518
16519 2002-02-07  Tom Rix  <trix@redhat.com>
16520
16521         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
16522         immediates in ldu and stdu DS opcode field.
16523         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16524         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16525         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16526
16527 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
16528
16529         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16530         offset for stack bias.
16531
16532 2002-02-07  H.J. Lu <hjl@gnu.org>
16533
16534         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16535
16536 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
16537
16538         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16539
16540 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
16541
16542         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16543         * i386.c (x86_order_regs_for_local_alloc): New global function.
16544         * i386.h (REG_ALLOC_ORDER): CLeanup.
16545         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16546
16547 2002-02-07  Richard Henderson  <rth@redhat.com>
16548
16549         PR optimization/2463
16550         * alias.c (find_base_value): Recall base values for fixed hard regs.
16551         * loop.c (loop_regs_update): Don't use single_set on non-insns.
16552
16553 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
16554
16555         * config/mips/mips.md (define_delay) [mips16]: Adjust required
16556         length.
16557
16558 2002-02-06  Richard Henderson  <rth@redhat.com>
16559
16560         PR c/5609
16561         * stmt.c (resolve_operand_name_1): Take more care with mixed
16562         named and unnamed operands.
16563
16564 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
16565             Jan Hubicka  <jh@suse.cz>
16566
16567         * loop.c (remove_constant_addition): Avoid clobbering a shared
16568         CONST expression.
16569
16570 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16571
16572         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16573         * config/s390/t-linux64: New file.
16574         * config/s390/libgcc-glibc.ver: New file.
16575
16576 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16577
16578         * config/s390/linux64.h: Delete file.
16579         * config/s390/s390x.h: New file.
16580         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16581         as target header file.
16582         * config/s390/linux.h (TARGET_VERSION): Define depending on
16583         DEFAULT_TARGET_64BIT.
16584         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16585         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16586         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16587         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16588         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16589         (EXTRA_SPEC): New define.
16590         * config/s390/s390.h (TARGET_VERSION): Define depending on
16591         DEFAULT_TARGET_64BIT.
16592         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16593
16594 2002-02-06  Jason Merrill  <jason@redhat.com>
16595
16596         * c-decl.c (finish_function): Warn about a non-void function with
16597         no return statement and no abnormal exit.
16598         (current_function_returns_abnormally): New variable.
16599         (start_function): Clear it.
16600         (struct c_language_function): Add returns_abnormally.
16601         (push_c_function_context): Save it.
16602         (pop_c_function_context): Restore it.
16603         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16604         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16605         an explicit return type.
16606         * c-tree.h: Declare current_function_returns_abnormally.
16607         (C_FUNCTION_IMPLICIT_INT): New macro.
16608         * c-typeck.c (build_function_call): Set it.
16609         (c_expand_return): Set current_function_returns_value even if the
16610         value is erroneous.
16611
16612 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16613
16614         PR c/5420:
16615         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16616         unsafe for reevaluation.
16617
16618 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16619
16620         PR c/5482:
16621         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16622         EXPR_STMT, but COMPOUND_STMT, recurse into it.
16623
16624 2002-02-06  Richard Henderson  <rth@redhat.com>
16625
16626         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16627         be a general_operand.  Dest for function value must be a pseudo.
16628
16629 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
16630
16631         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16632         as SYMBOL_REFs from the constant pool.
16633
16634 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
16635
16636         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16637         passed by invisible reference.
16638
16639 2002-02-05  Richard Henderson  <rth@redhat.com>
16640
16641         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16642
16643 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
16644
16645         Implement using "base addresses" in insn operands as default.
16646         * config/mmix/mmix.c (mmix_conditional_register_usage): if
16647         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16648         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16649         used to read the rtx value.
16650         (mmix_target_asm_function_epilogue): Fix spacing.
16651         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16652         (mmix_legitimate_address): Ditto.
16653         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16654         should be loaded with a GETA insn.  Don't allocate needless extra
16655         char for nul termination and fix misleading comment.
16656         (mmix_print_operand_address): Handle constants if
16657         TARGET_BASE_ADDRESSES.
16658         (mmix_output_register_setting): Use base addressing if
16659         TARGET_BASE_ADDRESSES and the number of insns is 3.
16660         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16661         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16662         to use R as constraint, add LDA to match s.
16663         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16664         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16665         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16666         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16667         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16668         order with other fixed registers.
16669         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16670         other parameter/call-clobbered registers.
16671         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16672         -mbase-addresses, -mno-base-addresses.
16673         (MMIX Options): Ditto.
16674
16675 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16676
16677         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16678
16679 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
16680
16681         * config/rs6000/altivec.h: Change elem to _S_elem.
16682
16683 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16684
16685         * config/netbsd.h (WCHAR_TYPE): Define.
16686         (WCHAR_TYPE_SIZE): Ditto.
16687         (WINT_TYPE): Ditto.
16688         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16689         (WCHAR_UNSIGNED): Ditto.
16690         (WCHAR_TYPE_SIZE): Ditto.
16691         (WINT_TYPE): Ditto.
16692         * config/arm/netbsd.h: Likewise.
16693         * config/i386/netbsd-elf.h: Likewise.
16694         * config/i386/netbsd.h: Likewise.
16695         * config/m68k/netbsd-elf.h: Likewise.
16696         * config/m68k/netbsd.h: Likewise.
16697         * config/ns32k/netbsd.h: Likewise.
16698         * config/sparc/netbsd.h: Likewise.
16699         * config/vax/netbsd.: Likewise.
16700
16701 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16702
16703         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16704         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
16705         (TARGET_INITIALIZER): this.
16706         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16707         (BITFIELD_NBYTES_LIMITED): Markup fix.
16708         * tree.h (default_ms_bitfield_layout_p): Declare.
16709         (record_layout_info): Added prev_field.
16710         * tree.c (default_ms_bitfield_layout_p): New fn.
16711         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16712         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16713         * stor-layout.c: Include target.h.
16714         (start_record_layout): Initialize prev_field.
16715         (place_field): Handle MS bit-field layout, and disregard
16716         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16717         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
16718         * Makefile.in (stor-layout.o): Adjust dependencies.
16719
16720 2002-02-05  Jason Merrill  <jason@redhat.com>
16721
16722         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16723
16724 2002-02-05  Andreas Jaeger  <aj@suse.de>
16725
16726         * crtstuff.c: Fix comments.
16727
16728 2002-02-05  Richard Henderson  <rth@redhat.com>
16729
16730         PR fortran/3393
16731         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16732         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16733
16734         PR fortran/3392
16735         * config/mips/mips.c (function_arg): Handle TImode.
16736         (function_arg_advance): Likewise.
16737
16738 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16739
16740         * config/rs6000/altivec.h (vec_step_help): Rename to
16741         __vec_step_help.
16742
16743 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16744
16745         * config/rs6000/altivec.h: Fix typos.
16746
16747 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16748
16749         * config/arm/netbsd.h: Correct a comment.
16750
16751 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16752
16753         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16754         building void typed builtins.
16755
16756         * config/rs6000/altivec.h (vec_ld*): Fix typos.
16757         (vec_step): Implement for C++.
16758
16759 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16760
16761         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16762
16763 2002-02-04  Richard Henderson  <rth@redhat.com>
16764
16765         * combine.c (nonzero_bits): Re-introduce special case for
16766         sp/fp/ap wrt REGNO_POINTER_ALIGN.
16767
16768 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16769
16770         * doc/extend.texi: Warn about unsupported usage of altivec
16771         builtins.
16772
16773         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16774         (altivec_predicate_*): New.
16775
16776         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16777         Add C++ version of vec_*() functions.
16778
16779         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16780         (bdesc_2arg): Remove altivec predicates.
16781         (altivec_expand_builtin): Handle predicates.
16782         (altivec_init_builtins): Handle predicates.
16783         (altivec_expand_predicate_builtin): New.
16784
16785 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16786
16787         * pa.c (DO_FRAME_NOTES): Move forward.
16788         (store_reg): Revise handling of frame notes.
16789         (load_reg): Likewise.
16790         (set_reg_plus_d): Likewise.
16791         (hppa_expand_prologue): Likewise.
16792         (hppa_expand_epilogue): Likewise.
16793
16794 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16795
16796         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16797
16798 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16799
16800         PR c/4475, c++/3780:
16801         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16802         * c-common.h (SWITCH_TYPE): Define.
16803         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16804         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16805         Rename spareness variable to sparseness.
16806         (expand_end_case_type): Renamed from expand_end_case, use orig_type
16807         if non-NULL instead of TREE_TYPE (orig_index).
16808         * tree.h (expand_end_case_type): Renamed from expand_end_case.
16809         (expand_end_case): Define using expand_end_case_type.
16810         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16811         to expand_end_case_type.
16812         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16813
16814 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16815
16816         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16817         (BIGGEST_ALIGNMENT): Change to 128.
16818
16819 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16820
16821         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16822
16823 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16824
16825         * pa.md (call_internal_reg_64bit): Remove unused variable.
16826
16827 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
16828
16829         * config/arm/arm.h (machine_function): Add uses_anonymous_args
16830         field.
16831         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16832         * config/arm/arm.c (current_function_anonymous_args): Delete,
16833         replace uses with cfun->machine->uses_anonymous_args.
16834         (arm_reorg): Do not reset uses_anonymous_args.
16835
16836         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16837         any geenral register.
16838
16839 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
16840
16841         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16842         the entry block.
16843
16844 2002-02-04  Richard Henderson  <rth@redhat.com>
16845
16846         * combine.c (force_to_mode): Remove STACK_BIAS code.
16847         (nonzero_bits): Likewise.  Replace sp/fp special case with
16848         REGNO_POINTER_ALIGN.
16849
16850         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16851         (HARD_FRAME_POINTER_REGNUM): New.
16852         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16853         (FIXED_REGS, CALL_USED_REGS): Update.
16854         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16855         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16856         (HARD_REGNO_NREGS): Update for SFP.
16857         (STACK_POINTER_OFFSET): Include bias here ...
16858         (FIRST_PARM_OFFSET): ... not here.
16859         (STACK_BIAS): Remove.
16860         (INIT_EXPANDERS): New.
16861         (STARTING_FRAME_OFFSET): Do not include bias.
16862         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16863         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16864         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16865         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16866         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16867         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16868         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16869         (MUST_SAVE_REGISTER): Likewise.
16870         (sparc_flat_function_prologue): Likewise.
16871         (sparc_flat_function_epilogue): Likewise.
16872         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16873         (sparc_init_modes): SFP is GENERAL_REGS.
16874         (sparc_builtin_saveregs): SFP does not have bias applied.
16875
16876 2002-02-04  Richard Henderson  <rth@redhat.com>
16877
16878         * config/alpha/alpha.c (current_function_is_thunk): Don't check
16879         current_function_is_thunk.
16880         (alpha_sa_mask): Distinguish between current_function_is_thunk
16881         called from ASM_OUTPUT_MI_THUNK and not.
16882         (alpha_does_function_need_gp): Thunks always need gp.
16883         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16884         (alpha_output_mi_thunk_osf): New.
16885         * config/alpha/alpha-protos.h: Update.
16886         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16887
16888 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
16889
16890         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16891         function types, not when they're taken away.
16892
16893 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
16894
16895         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16896         CODE_LABEL and jump table when replacing a table jump with a
16897         simple jump.
16898
16899 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16900
16901         * config/s390/s390-protos.h (legitimize_la_operand,
16902         s390_secondary_input_reload_class, s390_plus_operand,
16903         s390_expand_plus_operand): Add prototypes.
16904
16905         config/s390/s390.c (s390_secondary_input_reload_class,
16906         s390_plus_operand, s390_expand_plus_operand): New functions.
16907
16908         (struct s390_address): New member 'pointer'.
16909         (s390_decompose_address): Compute it.
16910         (legitimate_la_operand_p): Use it.
16911         (legitimize_la_operand): New function.
16912         (movti, movdi, movdf splitters): Call it.
16913
16914         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16915         (PREDICATE_CODES): Add s390_plus_operand.
16916
16917         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16918         (la_ccclobber): Allow GENERAL_REGS as output operand.
16919
16920         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16921         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16922         (*la_64, *la_31, reload_indi, reload_insi): ... these.
16923
16924 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16925
16926         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16927         register names for regular asm () construct.
16928
16929 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16930
16931         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16932         registers.
16933
16934 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16935
16936         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16937         pat for recog.
16938
16939 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
16940
16941         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16942         constant pool to be identical by string address and index.
16943
16944 2002-02-04  Anthony Green  <green@redhat.com>
16945
16946         * output.h (SECTION_OVERRIDE): Define.
16947         * varasm.c (named_section): Obey SECTION_OVERRIDE.
16948
16949 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16950
16951         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16952         by existing arm*-*-netbsd* (a.out) target.
16953         (ns32k-*-netbsdelf*): Likewise.
16954         (sparc-*-netbsdelf*): Likewise.
16955         (vax-*-netbsdelf*): Likewise.
16956
16957 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
16958
16959         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16960         headers and libobjc headers.
16961
16962 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
16963
16964         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16965         (_mingw.h): Remove duplicate include.
16966
16967 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16968
16969         * config.gcc: Set cpu_type to m68k for 68010, as well.
16970         (m68010-*-netbsdelf*): New...
16971         (m68k*-*-netbsdelf*): ...targets.
16972         * config/m68k/netbsd-elf.h: New file.
16973
16974 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16975
16976         * config/h8300/h8300.c (hand_list): Move inside function_arg.
16977
16978 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16979
16980         * config/h8300/h8300.c (h8_push_ops): Move inside
16981         h8300_init_once.
16982         (h8_pop_ops): Likewise.
16983         (h8_move_ops): Likewise.
16984
16985 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16986
16987         * config/h8300/h8300.c (os_task): Make it static.
16988         (monitor): Likewise.
16989         (pragma_saveall): Likewise.
16990
16991 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
16992
16993         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16994         constant is a valid sign-extension for Pmode.
16995
16996 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16997
16998         * config/h8300/h8300.c: Fix formatting.
16999
17000 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17001
17002         * config/h8300/h8300.md: Fix formatting.
17003
17004 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17005
17006         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17007         predicates of operands[1].  Split the patterns for each
17008         processor variant.
17009
17010 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17011
17012         * config/h8300/h8300.md (xor patterns): Tighten the predicates
17013         of operands[1] to register_operand.
17014
17015 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17016
17017         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17018         * cpphash.c (_cpp_init_hashtable): Similarly.
17019         * cppinit.c (cpp_create_reader): Default the signed_char flag.
17020         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17021         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17022         (cpp_handle_option): Handle the new options.
17023         * cpplex.c (cpp_interpret_charconst): Use new flag.
17024         * cpplib.h (struct cpp_options): New member signed_char.
17025         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17026         (cpp_options): Handle -fsigned-char and -funsigned-char.
17027         (static_specs): Remove signed_char_spec.
17028         (do_spec1): Don't handle %c.
17029         * system.h: Poison SIGNED_CHAR_SPEC.
17030         * tradcif.y (yylex): Use flag_signed_char.
17031         * tradcpp.h (flag_signed_char): New.
17032         * tradcpp.c (flag_signed_char): New.
17033         (main): Handle new command-line options.
17034         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17035 config:
17036         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17037         * avr/avr.h: Remove old comments.
17038         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17039         (CC1_SPEC): Pass -fsigned-char if -mic*.
17040         (SIGNED_CHAR_SPEC): Remove.
17041 doc:
17042         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17043
17044 2002-02-01  Eric Christopher  <echristo@redhat.com>
17045
17046         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17047         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17048         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17049         (ASM_OUTPUT_REG_POP): Ditto.
17050
17051 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17052
17053         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17054         patch.
17055
17056 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17057
17058         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17059
17060 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17061
17062         PR c/5304:
17063         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17064         unconditionally.
17065
17066 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17067
17068         * cfganal.c: Include tm_p.h.
17069         (keep_with_call_p): Fix the test that determines if a register holds
17070         the return value of a call.
17071
17072 2002-02-01  DJ Delorie  <dj@redhat.com>
17073
17074         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17075         we are given conflicting registers, switch to the other one we
17076         had allocated for us.
17077         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17078         as TImode so we know when the "other" register is available.
17079
17080 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
17081
17082         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17083         sparc/sparc_bi.h.
17084
17085 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17086
17087         * cfganal.c (keep_with_call_p): New function.
17088         (flow_call_edges_add): Prevent splitting a block between a call and
17089         a single-set instruction that should be kept in the same block.
17090
17091 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17092
17093         * doc/install.texi (avr): Update outdated URL.
17094
17095 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
17096
17097         * config/stormy16/stormy16.md (pushqi): New.
17098         (popqi): New.
17099         (pushhi): New.
17100         (pophi): New.
17101         (movhi): Remove stack operands.
17102         (movqi): Likewise.
17103         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17104         nonimmediate_nonstack_operand.
17105         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17106         New.
17107         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17108         New.
17109
17110 2002-01-31  Jason Merrill  <jason@redhat.com>
17111
17112         * Makefile.in (c-parse.c): Handle .output file.
17113         * objc/Make-lang.in (objc-parse.c): Likewise.
17114
17115 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
17116
17117         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17118         the -me[lb] option is given.  Don't output the default flag
17119         twice.
17120
17121 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
17122
17123         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17124         the primary source file; this has not been done yet.
17125         * c-decl.c (c_expand_body): Reset input_filename from
17126         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17127
17128 2002-01-31  Kazu Hirata  <kazu@hxi.com>
17129
17130         * rtlanal.c (subreg_regno_offset): Do not use
17131         SUBREG_REGNO_OFFSET.
17132         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17133         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17134
17135 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17136
17137         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
17138         version rather than GNATS version in --version output.
17139
17140 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
17141
17142         * ifcvt.c (noce_process_if_block): Make a copy of the destination
17143         when copying back from a temporary.
17144
17145 2002-01-30  Richard Henderson  <rth@redhat.com>
17146
17147         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17148         and new_dest are the same.
17149
17150 2002-01-30  Richard Henderson  <rth@redhat.com>
17151
17152         PR opt/5076
17153         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17154         * rtl.c (note_insn_name): Update.
17155         * emit-rtl.c (remove_unnecessary_notes): Kill it.
17156         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
17157         to perform loop rotation.
17158         (expand_exit_loop_top_cond): New.
17159         * tree.h (expand_exit_loop_top_cond): Declare it.
17160         * c-semantics.c (genrtl_while_stmt): Use it.
17161         (genrtl_for_stmt): Likewise.
17162
17163 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
17164
17165         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17166         arguments to 64-bit boundaries on 64-bit ABIs.
17167
17168 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
17169
17170         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17171
17172 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17173
17174         * c-decl.c (grokdeclarator): Handle type being a typedef for an
17175         invalid type.
17176
17177 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
17178
17179         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17180         * config/sparc/sparc_bi.h: Remove file.
17181         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17182
17183 2002-01-30  Richard Henderson  <rth@redhat.com>
17184
17185         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17186
17187 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
17188
17189         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17190
17191 2002-01-30  Jason Merrill  <jason@redhat.com>
17192
17193         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17194         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17195         (reg_save): Use DW_CFA_offset_extended_sf instead.
17196
17197         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17198
17199 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17200
17201         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17202         in cselib_lookup.
17203
17204 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
17205
17206         * rs6000.md ("*call_value_local32"): Remove constraints.
17207         ("*call_value_local64"): Same.
17208         ("*call_value_indirect_nonlocal_aix32"): Same.
17209         ("*call_value_nonlocal_aix32"): Same.
17210         ("*call_value_indirect_nonlocal_aix64"): Same.
17211         ("*call_value_nonlocal_aix64"): Same.
17212         ("*call_value_nonlocal_sysv"): Same.
17213
17214 2002-01-29  Richard Henderson  <rth@redhat.com>
17215
17216         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17217
17218 2002-01-29  Richard Henderson  <rth@redhat.com>
17219
17220         * expr.c (force_operand): Ignore flag_pic for detecting pic
17221         address loads.
17222         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17223         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17224         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17225         instead of open-coded loop.
17226         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17227         be fixed when in use.
17228
17229 2002-01-29  Richard Henderson  <rth@redhat.com>
17230
17231         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17232         * sched-rgn.c (propagate_deps): Update them.
17233         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
17234         clobbers list when either gets too long.
17235
17236 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17237
17238         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17239         and INDEX_REGS the same as GENERAL_REGS.
17240         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17241
17242 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17243
17244         * tree.c (build_nonstandard_integer_type): Correct prototype.
17245
17246 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
17247
17248         * config/s390/s390.md (movstrsico, movstrdix_64,
17249         movstrsix_31): Remove, replace by ...
17250         (movstrdi_short, movstrsi_short, movstrdi_long,
17251         movstrsi_long): ... these.  New.
17252         (movstrdi, movstrsi): Adapt.
17253
17254         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
17255         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
17256         Remove unnecessary CC clobber.
17257         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17258         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17259
17260         (divmoddi4): Don't partially initialize TImode register.
17261
17262 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
17263
17264         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17265
17266 2002-01-29  Richard Henderson  <rth@redhat.com>
17267
17268         * flow.c (print_rtl_and_abort): Remove.
17269         (print_rtl_and_abort_fcn): Remove.
17270         (verify_local_live_at_start): Use dump_bb instead.
17271         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17272         (verify_wide_reg_1): Return 2 on mode test failure.
17273
17274 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17275
17276         PR c/3325, c/3326, c/2511, c/3347
17277         * c-decl.c (enum_decl_context): Remove BITFIELD.
17278         (grokdeclarator): Take bitfield width as an input.
17279         Ensure bitfields are given the correct type.  Perform
17280         bitfield width validation with build_bitfield_integer_type
17281         rather than waiting for finish_struct.
17282         (grok_typename, grok_typename_in_parm_context, start_decl,
17283         push_parmdecl, grokfield, start_function): Update calls to
17284         grokdeclarator.
17285         (build_bitfield_integer_type): New function.
17286         (finish_struct): Move bitfield validation to grokdeclarator
17287         and build_bitfield_integer_type.
17288         * tree.c (build_nonstandard_integer_type): New function.
17289         * tree.h (build_nonstandard_integer_type): New prototype.
17290 objc:
17291         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17292
17293 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17294
17295         PR other/1502:
17296         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17297         don't ignore unrecognized -W* options.
17298         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17299         * cpplib.h (cpp_handle_option): Adjust prototype.
17300         * c-decl.c (c_decode_options): Pass 0 as last argument to
17301         cpp_handle_option.
17302
17303         PR c/2896:
17304         * gcc.c (cpp_unique_options): Split from cpp_options.
17305         (cpp_options): Source cpp_unique_options.
17306         (default_compilers): Use cpp_unique_options instead of cpp_options
17307         when used together with cc1_options.
17308         (static_specs): Add cpp_unique_options.
17309         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17310         when used together with cc1_options.
17311
17312 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17313
17314         * config/h8300/h8300-protos.h: Update the prototype of
17315         output_a_shift.
17316         * config/h8300/h8300.c (output_a_shift): Remove an unused
17317         argument 'insn'.  Remove redundant code.
17318         * config/h8300/h8300.md: Adust to the new prototype of
17319         output_a_shift.
17320
17321 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17322
17323         * config/h8300/h8300-protos.h: Update the prototypes of
17324         emit_a_rotate and expand_a_rotate.
17325         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17326         first argument to 'enum rtx_code'.
17327         (expand_a_rotate): Likewise.
17328
17329 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17330
17331         * config/h8300/h8300-protos.h: Update the prototype of
17332         output_simode_bld.
17333         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17334         'log2'.
17335         * config/h8300/h8300.md: Adjust to the new prototype.
17336
17337 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17338
17339         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17340         redundant code.
17341
17342 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17343
17344         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17345         is a fixed register before returning pic_offset_table_rtx.
17346         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17347         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17348
17349 2002-01-28  Jason Merrill  <jason@redhat.com>
17350
17351         * dwarf2.h: Sync with src version.
17352
17353 2002-01-28  Paul Koning  <pkoning@equallogic.com>
17354
17355         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17356         BT_FN_VOID_PTR_VAR.
17357         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17358         * doc/extend.texi (__builtin_prefetch): Update documentation:
17359         first argument is now const void ptr.
17360
17361 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17362
17363         * config/h8300/h8300-protos.h: Remove an unused prototype.
17364
17365 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
17366
17367         * toplev.c (lang_independent_init): Round up identifier size.
17368
17369 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17370
17371         * config.gcc: Revert previous change.
17372
17373 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
17374
17375         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17376
17377 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17378
17379         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17380         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
17381         other non-elf netbsd config frags.
17382         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17383         collect2 will does that.
17384         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17385         shared-lib frobbing will work.
17386
17387 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17388
17389         * config/h8300/h8300.h: Fix formatting.
17390         * config/h8300/h8300.md: Likewise.
17391
17392 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
17393
17394         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17395         the old, removed AAA_standards fix.
17396         * fixinc/fixincl.x: Rebuilt.
17397
17398 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
17399
17400         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17401         atexit call in crtbegin, hooked in after call to frame_dummy;
17402         register EH before registering __fini__start.
17403
17404 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
17405
17406         * config/rs6000/altivec.h: Remove spurious semicolons.
17407
17408 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17409
17410         * config/h8300/h8300.md: Replace dead bit extraction patterns
17411         with ones that work.
17412
17413 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17414
17415         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17416         if not STRICT_ALIGNMENT.
17417         * rtl.h (MEM_ALIGN): Likewise.
17418
17419 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17420
17421         * doc/invoke.texi (-fdump-translation-unit): Revert this
17422         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17423
17424 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17425
17426         * config/h8300/h8300.md (define_constants): New.
17427         (anonymous patterns) Use defined constants appropriately.
17428
17429 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17430
17431         * config/h8300/h8300.c (function_arg): Remove redundant code.
17432
17433 2002-01-26  Richard Henderson  <rth@redhat.com>
17434
17435         * sched-deps.c (reg_pending_uses_head): New.
17436         (reg_pending_barrier): Rename from reg_pending_sets_all.
17437         (find_insn_list): Don't mark inline.
17438         (find_insn_mem_list): Remove.
17439         (add_dependence_list, add_dependence_list_and_free): New.
17440         (flush_pending_lists): Replace only_write param with separate
17441         for_read and for_write parameters.  Update all callers.  Use
17442         add_dependence_list_and_free.
17443         (sched_analyze_1): Do not add reg dependencies here; just set
17444         the pending bits.  Use add_dependence_list.
17445         (sched_analyze_2): Likewise.
17446         (sched_analyze_insn): Replace schedule_barrier_found with
17447         reg_pending_barrier.  Add all dependencies for pending reg
17448         uses, sets, and clobbers.
17449         (sched_analyze): Don't add reg dependencies for calls, just
17450         set pending bits.  Use regs_invalidated_by_call.  Treat
17451         sched_before_next_call as a normal list, not a fake insn.
17452         (init_deps): No funny init for sched_before_next_call.
17453         (free_deps): Free pending mems lists.  Don't zero reg_last.
17454         (init_deps_global): Init reg_pending_uses.
17455         (finish_deps_global): Free it.
17456         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
17457         (find_insn_mem_list): Remove.
17458         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17459         (propagate_deps): Use them.  Zero temp mem lists.
17460
17461 2002-01-26  Richard Henderson  <rth@redhat.com>
17462
17463         * Makefile.in (CRTSTUFF_CFLAGS): New.
17464         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17465         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17466         crtstuff.c instead of alpha assembly version.
17467         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17468         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
17469         not FORCE_{INIT,FINI}_SECTION_ALIGN.
17470         (__do_global_dtors_aux): Mark used.
17471         (frame_dummy, __do_global_ctors_aux): Mark used.
17472         (fini_dummy, init_dummy): Remove.
17473
17474         * config/alpha/crtbegin.asm: Remove file.
17475         * config/alpha/crtend.asm: Remove file.
17476         * config/alpha/t-crtbe: Remove file.
17477         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17478         (LINK_EH_SPEC): New.
17479
17480         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17481         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
17482         calling constructors.
17483         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17484
17485         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17486         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17487         CRT_END_INIT_DUMMY hack.
17488         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17489         FORCE_{INIT,FINI}_SECTION_ALIGN.
17490
17491         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17492         FORCE_{INIT,FINI}_SECTION_ALIGN.
17493
17494         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17495         invocation sequence.
17496         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17497
17498         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17499         (FORCE_CODE_SECTION_ALIGN): New.
17500
17501 2002-01-26  Richard Henderson  <rth@redhat.com>
17502
17503         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17504
17505 2002-01-26  Richard Henderson  <rth@redhat.com>
17506
17507         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17508         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17509
17510 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17511
17512         * config/h8300/h8300.md: Remove bit extraction patterns that
17513         cannot be triggered.
17514         Restrict each bit extraction pattern to a variant on which the
17515         pattern is tested.
17516
17517 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
17518
17519         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17520
17521 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17522
17523         * config/h8300/h8300.md: Remove bit test patterns that cannot
17524         be triggered.
17525         Restrict each bit test pattern to a variant on which the
17526         pattern is tested.
17527
17528 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17529
17530         * builtins.c (expand_builtin_strncat): Remove redundant check for
17531         INTEGER_CST.
17532
17533 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17534
17535         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17536         default setting.
17537         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17538         existing setting.
17539
17540 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17541
17542         * dbxout.c (dbxout_init): Use assemble_name rather than just
17543         stripping off the first character.
17544         (dbxout_source_file): Likewise.
17545
17546 2002-01-25  DJ Delorie  <dj@redhat.com>
17547
17548         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17549         using rtx_equal_p, not by comparing pointers.
17550
17551 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
17552
17553         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17554         for PIC_OFFSET_TABLE_REGNUM.
17555         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17556
17557 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17558
17559         * config.gcc (x86_64-*-freebsd*): New target.
17560         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17561         value.
17562         (i[34567]86-*-freebsd*): Don't include svr4.h.
17563         * config/i386/freebsd64.h: New file.
17564
17565 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
17566
17567         * config/alpha/x-vms (version): Make static.
17568
17569         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17570         in previous checkin.
17571
17572         * Makefile.in (install-headers-cp): New target.
17573         * config.gcc (alpha-dec-*vms*): Install headers with
17574         install-headers-cp
17575
17576 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
17577
17578         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17579         avoid it's copies.
17580
17581 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17582
17583         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17584         of compare_tree_int.
17585         (expand_builtin_strncat): Likewise.
17586         * c-decl.c (finish_struct): Use tree_low_cst.
17587         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17588         * tree.c (compare_tree_int): Likewise.
17589
17590 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
17591
17592         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17593         adjustments even if they are implemented by more than two insns.
17594
17595 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
17596
17597         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
17598         * df.h (struct ref): Kill B.
17599         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17600
17601         * basic-block.h (PROP_EQUAL_NOTES): New flag.
17602         * flow.c (propagate_one_insn): Use it.
17603         (mark_used_regs): Handle NIL.
17604
17605 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17606
17607         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17608         to help folding.
17609
17610 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
17611
17612         * rs6000.md (prefetch): Make address V4SI mode so that the address
17613         is restricted to legitimate form for instruction.
17614
17615 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
17616
17617         * doc/install.texi (xtensa-*-elf): New target.
17618         (xtensa-*-linux*): New target.
17619         * doc/contrib.texi: Add myself.
17620
17621 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
17622
17623         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17624         purpose register to hold an SImode (or smaller) value.
17625
17626 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
17627
17628         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17629         registry only.
17630         * crtstuff.c: Likewise.
17631
17632 2002-01-25  Kazu Hirata  <kazu@hxi.com>
17633
17634         * config/h8300/h8300.md (negation patterns): Tighten
17635         predicates to register_operand.
17636
17637 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
17638
17639         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17640         mode, not Pmode.
17641
17642         * builtins.c (expand_builtin_prefetch): Same.
17643
17644 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17645
17646         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17647         modes.
17648
17649 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17650
17651         * config/h8300/h8300.c (print_operand): Remove support for
17652         operand character 'A'.
17653         * config/h8300/h8300.md (three anonymous patterns): Replace
17654         operand character 'A' with either 'T' or 'S'.
17655
17656 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17657
17658         * config/h8300/h8300.c (print_operand): Remove support for
17659         operand character 'U'.
17660
17661 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
17662
17663         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
17664
17665 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
17666
17667         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17668         values to be assigned to the stack pointer.
17669
17670 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17671
17672         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
17673         to const_double needs to be done right for big-endian systems.
17674
17675 2002-01-24  Jason Merrill  <jason@redhat.com>
17676
17677         PR c++/2432
17678         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17679         to can_throw_internal.
17680
17681 2002-01-23  Richard Henderson  <rth@redhat.com>
17682
17683         * fold-const.c (fold): Change UINT_MAX test to check vs precision
17684         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
17685
17686 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17687
17688         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17689         (symGOT2reg): Use them, then set as GOT value as unchanging.
17690         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
17691         as a temporary, if possible.
17692         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
17693         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17694
17695 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17696
17697         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17698         accept to accept 0x80 as operands[2].
17699
17700 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17701
17702         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17703
17704 2002-01-23  Richard Henderson  <rth@redhat.com>
17705
17706         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17707
17708 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
17709
17710         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17711         (parmlist_or_identifiers_1): Verify that only a parmlist follows
17712         an attribute.
17713
17714 2002-01-23  Richard Henderson  <rth@redhat.com>
17715
17716         * expr.c (move_by_pieces_1): Extend size before negation.
17717
17718         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17719         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17720         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17721         * config/m68k/t-m68kelf: Likewise.
17722
17723 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
17724
17725         * config/xtensa/elf.h: New file.
17726         * config/xtensa/lib1funcs.asm: New file.
17727         * config/xtensa/lib2funcs.S: New file.
17728         * config/xtensa/linux.h: New file.
17729         * config/xtensa/t-xtensa: New file.
17730         * config/xtensa/xtensa-config.h: New file.
17731         * config/xtensa/xtensa-protos.h: New file.
17732         * config/xtensa/xtensa.c: New file.
17733         * config/xtensa/xtensa.h: New file.
17734         * config/xtensa/xtensa.md: New file.
17735         * config.gcc (xtensa-*-elf*): New target.
17736         (xtensa-*-linux*): New target.
17737         * cse.c (canon_hash): Compare rtx pointers instead of register
17738         numbers.  This is required for the Xtensa port.
17739         * integrate.c (copy_insn_list): Handle case where the static
17740         chain is in memory and the memory address has to be copied to
17741         a register.
17742         * doc/invoke.texi (Option Summary): Add Xtensa options.
17743         (Xtensa Options): New node.
17744         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17745
17746 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17747
17748         * diagnostic.c (internal_error): Do ICE suppression only
17749         when ENABLE_CHECKING is not defined.
17750
17751         * c-typeck.c (require_complete_type): Return error_mark_node
17752         if type is error_mark_node.
17753
17754 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
17755
17756         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17757         -Os and issue a warning.
17758
17759 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17760
17761         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17762         current (lack of) need for host configuration by hand.
17763
17764         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17765         references.  Documentation of some target macros moved from
17766         hostconfig.texi to tm.texi.
17767
17768 2002-01-23  Will Cohen  <wcohen@redhat.com>
17769
17770         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17771         defined.
17772
17773 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17774
17775         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17776         operand[3].
17777
17778 2002-01-23  Jason Merrill  <jason@redhat.com>
17779
17780         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17781
17782         * function.c (assign_parms): Don't put args of inline functions
17783         into registers when not optimizing.
17784
17785 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
17786
17787         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17788         (prologue_use): New pattern.
17789         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17790         preference to gen_rtx_USE.
17791         (thumb_expand_prologue): Use gen_prologue_use in preference to
17792         gen_rtx_USE.
17793         (thumb_expand_epilogue): Use gen_prologue_use in preference to
17794         gen_rtx_USE.
17795
17796 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
17797
17798         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17799
17800 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17801
17802         PR c/3504
17803         * doc/extend.texi: Correct documentation of __alignof__.
17804
17805 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
17806
17807         * params.h: Rename arguments of DEFPARAM so that it will be
17808         recognized as a translation keyword.
17809
17810 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17811
17812         * extend.texi: Document altivec functions.
17813         Fix N-bit adjectives in X86 builtin documentation.
17814
17815 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17816
17817         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17818         auto_inc_dec values.
17819
17820 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
17821
17822         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17823         after backslash.
17824         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17825
17826 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17827
17828         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17829
17830 2002-01-22  Richard Henderson  <rth@redhat.com>
17831
17832         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17833         copy_insn not copy_rtx.
17834
17835 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
17836
17837         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17838         "nonzero" as that might add "1" bits.  Ensure "constop" is
17839         properly sign extened.
17840         (force_to_mode): Tweak for sign extended constop.
17841
17842 2002-01-22  Richard Henderson  <rth@redhat.com>
17843
17844         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17845         for_each_rtx instead of assuming we're already looking at the MEM.
17846         (split_small_symbolic_mem_operand): Likewise.
17847         * config/alpha/alpha.h (PREDICATE_CODES): Update.
17848         * config/alpha/alpha.md (small symbolic memory splitters): Update.
17849
17850 2002-01-22  Richard Henderson  <rth@redhat.com>
17851
17852         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17853         sequence number for the literal.
17854         (divmoddi_internal_er): Likewise.
17855
17856 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17857
17858         PR java/4972
17859         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17860         in LIBICONV variable.
17861         * configure: Regenerated.
17862
17863 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
17864
17865         * dependence.c (build_def_use): Remove array_idx.
17866
17867         * dwarfout.c (last_filename): Remove.
17868         (output_compile_unit_die): Remove last_filename.
17869
17870 2002-01-22  Roger Sayle  <roger@eyesopen.com>
17871             Richard Henderson  <rth@redhat.com>
17872
17873         PR opt/3640
17874         * fold-const.c (fold): Optimize unsigned comparisons against
17875         UINT_MAX (and similar unsigned constants).
17876
17877 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
17878
17879         * Makefile.in (loop.o): Depend on OPTABS_H.
17880         * loop.c (emit_prefetch_instructions): Check the prefetch operand
17881         against the predicate.
17882
17883         PR target/5379
17884         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17885         for the address operand.
17886
17887 2002-01-22  Richard Henderson  <rth@redhat.com>
17888
17889         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17890
17891 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17892
17893         PR other/5450
17894         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17895         preprocessor flags.
17896
17897 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
17898
17899         * config.gcc (x86_64-*-netbsd*): New target.
17900         * config/i386/netbsd64.h: New file.
17901
17902 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17903
17904         * regrename.c (kill_value): Fix typo.
17905
17906 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17907
17908         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17909
17910         * config/rs6000/rs6000.h: Same.
17911
17912         * function.c (instantiate_virtual_regs): Remove
17913         STARTING_FRAME_PHASE.
17914         (assign_stack_local_1): Same.
17915         Calculate frame phase.
17916
17917 2002-01-22  Nick Clifton  <nickc@redhat.com>
17918
17919         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17920         variable declaration to outer scope in order to simplify
17921         future extensions.
17922         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17923         arm_hard_regno_mode_ok.
17924         * config/arm/arm-protos.h: Add a prototype for
17925         arm_hard_regno_mode_ok.
17926         * config/arm/arm.c (soft_df_operand): Remove now redundant
17927         check for DImode values using IP_REGNUM.
17928         (nonimmediate_soft_df_operand): Remove now redundant check for
17929         DImode values using IP_REGNUM.
17930         (arm_hard_regno_mode_ok): New function. New check: make sure
17931         that DImode values are not stored in IP_REGNUM.
17932
17933         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17934         note with a USE.
17935         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17936
17937 2002-01-22  Jason Merrill  <jason@redhat.com>
17938
17939         * c-semantics.c (genrtl_compound_stmt): Only check nesting
17940         consistency if this COMPOUND_STMT is scoped.
17941
17942 2002-01-22  Kazu Hirata  <kazu@hxi.com>
17943
17944         * predict.c: Fix formatting.
17945         * print-tree.c: Likewise.
17946         * protoize.c: Likewise.
17947         * real.h: Likewise.
17948         * rtl.h: Likewise.
17949         * sbitmap.h: Likewise.
17950         * scan.c: Likewise.
17951         * sched-deps.c: Likewise.
17952         * sched-vis.c: Likewise.
17953         * sdbout.c: Likewise.
17954         * sibcall.c: Likewise.
17955         * ssa.c: Likewise.
17956         * ssa-ccp.c: Likewise.
17957         * ssa-dce.c: Likewise.
17958         * stmt.c: Likewise.
17959         * stor-layout.c: Likewise.
17960         * system.h: Likewise.
17961
17962 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17963
17964         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17965         if fits in bounds of base type.
17966
17967         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17968         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17969         (add_bound_info, default): If can't find a context, make a
17970         SAVE_EXPR.
17971         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17972
17973 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
17974
17975         * c-typeck.c (parser_build_binary_op): If result from
17976         build_binary_op is ERROR_MARK just return error_mark_node without
17977         further processing.
17978
17979 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
17980
17981         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17982         Split a.out-specific bits into...
17983         * config/netbsd-aout.h: ...this.
17984         * config/netbsd-elf.h: New file.
17985         * config/alpha/netbsd-elf.h: Remove.
17986         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17987         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17988         (STARTFILE_SPEC): Remove redundant definition.
17989         (ENDFILE_SPEC): Likewise.
17990         (LINK_SPEC): Likewise.
17991         (CPP_SPEC): Likewise.
17992         (ASM_SPEC): Likewise.
17993         (LIB_SPEC): Likewise.
17994         (SWITCH_TAKES_ARG): Likewise.
17995         (TARGET_MEM_FUNCTIONS): Likewise.
17996         (CPP_PREDEFINES): Redefine.
17997         (ASM_FINAL_SPEC): Remove redefinition.
17998         (ASM_COMMENT_START): Redefine.
17999         (FUNCTION_PROFILER): Define.
18000         (TARGET_VERSION): Redefine.
18001         Comment and formatting cleanup.
18002         * config/i386/netbsd.h: Include <netbsd-aout.h>.
18003         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18004         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18005         big- or little-endian.
18006         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18007         * config.gcc (*-*-netbsd*): Add definitions common to all
18008         NetBSD configs.
18009         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18010         gnu_ld definitions.  Add netbsd-elf.h to and remove
18011         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
18012         tmake_file, and don't lose previous tmake_file contents.
18013         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18014         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18015         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
18016         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18017         (mipsel-*-netbsd*): Rename this to...
18018         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
18019         mips/little.h to tm_file for mips*el-*.
18020         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18021         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18022         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18023
18024 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18025
18026         * pa-protos.h (reg_before_reload_operand): New function prototype.
18027         * pa.c (reg_before_reload_operand): New function implementation.
18028         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
18029         contraints to "*m".
18030
18031 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18032
18033         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18034
18035 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18036
18037         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18038         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18039         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18040         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18041         (ENDFILE_SPEC): Undefine.
18042         (STARTFILE_SPEC): Redefine for PA.
18043
18044 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18045
18046         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18047
18048 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
18049
18050         * config.gcc: Add entries to supported PowerPC --with-cpu
18051         types.
18052
18053 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
18054
18055         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18056         true for 64-bit mode only SSE registers in 32-bit mode.
18057
18058 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18059
18060         * unwind-dw2.c: Fix formatting.
18061         * unwind-dw2-fde.c: Likewise.
18062         * unwind-dw2-fde.h: Likewise.
18063         * unwind-pe.h: Likewise.
18064         * varasm.c: Likewise.
18065         * varray.h: Likewise.
18066
18067 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
18068
18069         Remove workaround for register stack overwrite bug in mmix.
18070         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18071         support for TARGET_REG_STACK_FILL_BUG.
18072         * config/mmix/mmix.h: Remove member has_call_without_parameters.
18073         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18074         Delete.
18075         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18076         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18077         -mno-reg-stack-fill-bug-workaround.
18078         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18079         machine member has_call_without_parameters.
18080         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18081         -mreg-stack-fill-bug-workaround and
18082         -mno-reg-stack-fill-bug-workaround.
18083         (MMIX Options): Ditto.
18084
18085 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18086
18087         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18088         as appropriate.
18089         Remove redundant code.
18090
18091 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
18092
18093         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18094         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18095         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18096         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18097         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18098         out target macro definitions and non-target-specific comments
18099         mostly taken from old versions of the manual.
18100
18101 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18102
18103         * config/h8300/h8300.h: Fix comment formatting.
18104         * config/ia64/aix.h: Likewise.
18105         * config/ia64/ia64-protos.h: Likewise.
18106         * config/ia64/ia64.c: Likewise.
18107         * config/ia64/ia64.h: Likewise.
18108         * config/ia64/ia64intrin.h: Likewise.
18109         * config/ia64/linux.h: Likewise.
18110         * config/ia64/unwind-aix.c: Likewise.
18111         * config/ia64/unwind-ia64.c: Likewise.
18112
18113 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18114
18115         * config/h8300/h8300.c: Revise comments about shift code.
18116
18117 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18118
18119         * config/h8300/h8300.c (function_arg): Update a comment.
18120
18121 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18122
18123         * config/h8300/h8300.md: Update the comments at the beginning
18124         of the file.
18125
18126 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18127
18128         * config/i370/i370.c: Fix comment formatting.
18129         * config/i370/i370.h: Likewise.
18130         * config/i370/i370.md: Likewise.
18131         * config/i370/linux.h: Likewise.
18132
18133 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18134
18135         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18136
18137         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18138         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18139         in incomplete case.
18140
18141 2002-01-20  Graham Stott  <grahams@redhat.com>
18142
18143         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18144
18145 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18146
18147         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18148
18149 2002-01-19  Tom Rix  <trix@redhat.com>
18150
18151         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18152
18153 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
18154
18155         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
18156
18157         * function.c (assign_stack_local_1): Adjust x_frame_offset with
18158         STARTING_FRAME_PHASE.
18159         (STARTING_FRAME_PHASE): New.
18160         (instantiate_virtual_regs): Check saneness of
18161         STARTING_FRAME_PHASE.
18162
18163         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
18164
18165 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18166
18167         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18168
18169 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18170
18171         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18172         be used for bootstrapping GCC 3.0.
18173
18174 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18175
18176         * config/h8300/h8300.md: Fix an insn length.
18177
18178 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18179
18180         * bitmap.h: Fix comment formatting.
18181         * combine.c: Likewise.
18182         * cppfiles.c: Likewise.
18183         * c-pragma.h: Likewise.
18184         * c-typeck.c: Likewise.
18185         * df.c: Likewise.
18186         * dwarf2out.c: Likewise.
18187         * function.c: Likewise.
18188         * gcc.c: Likewise.
18189         * genattrtab.c: Likewise.
18190         * gthr-win32.h: Likewise.
18191         * haifa-sched.c: Likewise.
18192         * predict.c: Likewise.
18193         * rtlanal.c: Likewise.
18194         * rtl.h: Likewise.
18195         * unwind-dw2-fde.h: Likewise.
18196         * unwind-pe.h: Likewise.
18197         * vmsdbgout.c: Likewise.
18198
18199 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18200
18201         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18202         if type_required and passed decl.
18203
18204 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
18205
18206         * config.gcc (cpu_type): Include altivec.h in powerpc
18207         extra_headers.
18208         Same for darwin.
18209
18210         * config/rs6000/altivec.h: New.
18211
18212 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
18213
18214         * doc/install.texi (*-ibm-aix*): Update assembler and exception
18215         handling information.
18216         * doc/trouble.texi (Interoperation): Add libstdc++ information
18217         for AIX.
18218         (Misunderstandings): Add template instantiation and static template
18219         member information for AIX.
18220
18221 2002-01-17  Jason Merrill  <jason@redhat.com>
18222
18223         * dbxout.c (dbxout_type): Support const and volatile.
18224
18225         * except.c (add_partial_entry): Remove backwards compatibility code.
18226         (end_protect_partials): Likewise.
18227
18228 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
18229
18230         * config/ia64/ia64.md (prologue_use): New.
18231         * config/ia64/ia64.c (ia64_expand_prologue): Use
18232         gen_prologue_use instead of gen_rtx_USE.
18233         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18234         as CODE_FOR_pred_rel_mutex.
18235         (ia64_sched_reorder2): Likewise.
18236
18237 2002-01-16  Eric Christopher  <echristo@redhat.com>
18238
18239         * config/mips/r3900.h: Reformat.
18240         (SUBTARGET_CPP_SIZE_SPEC): Remove.
18241         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18242         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18243         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18244         * config/mips/t-elf: Remove mips3 multilib.
18245
18246 2002-01-16  H.J. Lu <hjl@gnu.org>
18247
18248         * config/mips/linux.h: Include "mips/abi64.h".
18249
18250 2002-01-16  H.J. Lu <hjl@gnu.org>
18251
18252         * config/mips/t-linux: New.
18253
18254         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18255
18256         * config/mips/linux.h: Don't include "gofast.h".
18257         (INIT_SUBTARGET_OPTABS): Removed.
18258
18259 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18260
18261         * config/h8300/h8300-protos.h: Replace emit_a_shift with
18262         output_a_shift.
18263         * config/h8300/h8300.c: Likewise.
18264         * config/h8300/h8300.md: Likewise.
18265
18266 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18267
18268         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18269         spaces after an opcode name.
18270         (pushqi1_h8300hs): Likewise.
18271         (pushhi1_h8300hs): Likewise.
18272
18273 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18274
18275         * doc/extend.texi: Replace "option" with "attribute"
18276         appropriately.
18277
18278 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18279
18280         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18281         (and:DI () (const_int -8)).
18282         (split_small_symbolic_mem_operand): Split
18283         (mem (and:DI () (const_int -8)).
18284
18285 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18286
18287         PR target/5309:
18288         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
18289         same way as TYPE_IMUL.
18290         (ultrasparc_sched_reorder): Likewise.
18291         * config/sparc/sparc.md (type): Add comment to update
18292         ultrasparc_sched_reorder when making changes.
18293
18294 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18295
18296         * doc/invoke.texi: Change the dump file name of block
18297         reordering pass from 28.bbro to 29.bbro.
18298         Mention -dk option.
18299
18300 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18301
18302         * i386.md (minsf splitter): Fix pasto.
18303
18304 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18305
18306         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18307         to frame pointer initialisation instruction.
18308         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18309         initialisation instruction.
18310         (soft_df_operand): Do not accept the IP register.
18311         (nonimmediate_soft_df_operand): Do not accept the IP register.
18312
18313 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18314
18315         PR target/5357:
18316         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18317         MASK_V8 being both set.
18318
18319 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
18320
18321         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18322         insn for GOT register; add REG_MAYBE_DEAD notes instead.
18323         config/s390/s390.md (call, call_value): Add GOT register to
18324         CALL_INSN_FUNCTION_USAGE where needed.
18325         (call_exp, call_value_exp): New.
18326
18327 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18328
18329         * config/arm/arm.c: General formatting tidy up.
18330
18331 2002-01-16  Graham Stott  <grahams@redhat.com>
18332
18333         * calls.c (try_to_integrate): Use "(size_t)" intermediate
18334         cast and when casting an integer literal to "rtx" pointer.
18335         (expand_call): Likewise.
18336         * flow.c (try_pre_increment): Likewise.
18337         (find_use_as_address): Likewise.
18338         * integrate.c (expand_iline_function): Likewise.
18339         * regmove.c (try_auto_increment): Likewise.
18340
18341 2002-01-16  Graham Stott  <grahams@redhat.com>
18342
18343         * sched-rgn.c (passed): Use sbitmap_free.
18344         (header): Likewise.
18345         (inner): Likewise.
18346         (in_queue): Likewise.
18347         (in_stack): Likewise.
18348
18349 2002-01-15  Eric Christopher  <echristo@redhat.com>
18350
18351         * flow.c (propagate_one_insn): Change to use fatal_insn.
18352
18353 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18354
18355         * expmed.c (extract_fixed_bit_field): Remove unused code.
18356         * system.h: Poison SLOW_ZERO_EXTEND.
18357         * doc/tm.texi: Remove.
18358         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18359         * config/arm/arm.h: Likewise.
18360         * config/avr/avr.h: Likewise.
18361         * config/clipper/clipper.h: Likewise.
18362         * config/convex/convex.h: Likewise.
18363         * config/d30v/d30v.h: Likewise.
18364         * config/dsp16xx/dsp16xx.h: Likewise.
18365         * config/elxsi/elxsi.h: Likewise.
18366         * config/fr30/fr30.h: Likewise.
18367         * config/h8300/h8300.h: Likewise.
18368         * config/i370/i370.h: Likewise.
18369         * config/i386/i386.h: Likewise.
18370         * config/m68k/m68k.h: Likewise.
18371         * config/mips/mips.h: Likewise.
18372         * config/ns32k/ns32k.h: Likewise.
18373         * config/pdp11/pdp11.h: Likewise.
18374         * config/pj/pj.h: Likewise.
18375         * config/s390/s390.h: Likewise.
18376         * config/sh/sh.h: Likewise.
18377         * config/stormy16/stormy16.h: Likewise.
18378         * config/v850/v850.h: Likewise.
18379         * config/vax/vax.h: Likewise.
18380         * config/we32k/we32k.h: Likewise.
18381
18382 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18383
18384         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18385         (altivec_lvsl): Change constraint to b.
18386         (altivec_lvsr): Same.
18387         (altivec_lvebx): Same.
18388         (altivec_lvehx): Same.
18389         (altivec_lvewx): Same.
18390         (altivec_lvxl): Same.
18391         (altivec_lvx): Same.
18392         (altivec_stvx): Add parallel.
18393         (altivec_stvxl): Same.
18394         (altivec_stvehx): Same.
18395         (altivec_stvebx): Same.
18396         (altivec_stvebx): Same.
18397
18398 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18399
18400         * config.gcc: Change altivec.h to altivec-defs.h.
18401
18402         * config/rs6000/altivec.h: Delete.
18403
18404         * config/rs6000/altivec-defs.h: Add.
18405
18406 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18407
18408         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18409         and UMOD modes.
18410
18411         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18412         less than or equal to eight bytes.
18413
18414         * vax.md (andsi3): Remove constraints and change SET destination
18415         operand type to nonimmediate_operand.
18416         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
18417         when it is a CONST_INT.
18418
18419 2002-01-15  Jason Merrill  <jason@redhat.com>
18420
18421         * c-common.def (FILE_STMT): New code.
18422         * c-common.c (statement_code_p): It's a statement.
18423         * c-common.h (stmt_tree_s): Add x_last_filename.
18424         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18425         (last_expr_filename): New macro.
18426         * c-semantics.c (begin_stmt_tree): Initialize it.
18427         (add_stmt): If the filename changed, also insert a
18428         FILE_STMT.
18429         (expand_stmt): Handle seeing one.
18430
18431 2002-01-15  Eric Christopher  <echristo@redhat.com>
18432
18433         * flow.c (propagate_one_insn): Add error message and print out
18434         insn for debugging.
18435
18436 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18437
18438         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18439         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18440         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18441         TRAMPOLINE_ALIGNMENT.
18442         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
18443         to be in bits.
18444         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18445         PCC_BITFIELD_TYPE_MATTERS.
18446         * config/interix.h (STDC_VALUE): Remove.  Use
18447         STDC_0_IN_SYSTEM_HEADERS.
18448         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18449         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18450         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18451
18452 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18453
18454         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18455         not work on this platform currently.
18456
18457 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18458
18459         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18460         readonly_warning in _().
18461
18462 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
18463
18464         * gcc.c (delete_if_ordinary): Backout previous change.
18465
18466 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18467
18468         * config/h8300/h8300.c (print_operand): Remove support for
18469         unused operand characters.
18470
18471         * read-rtl.c: Fix formatting.
18472         * real.c: Likewise.
18473         * recog.c: Likewise.
18474         * regclass.c: Likewise.
18475         * regmove.c: Likewise.
18476         * reg-stack.c: Likewise.
18477         * reload1.c: Likewise.
18478         * rtlanal.c: Likewise.
18479
18480 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18481
18482         * config/i386/i386.c: Fix formatting.
18483
18484 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
18485
18486         * c-typeck.c (process_init_element): Don't save_expr
18487         COMPOUND_LITERAL_EXPR if just its initializer will be used.
18488
18489 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
18490
18491         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18492         emit optional traceback table if optimize_size or TARGET_ELF.
18493         * config/rs6000/rs6000.md (prefetch): New.
18494
18495 2002-01-15  Andreas Jaeger  <aj@suse.de>
18496
18497         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18498
18499 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18500
18501         * mips-tfile.c: Fix formatting.
18502
18503 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18504
18505         * unroll.c (final_reg_note_copy): Fix previous commit.
18506
18507 2002-01-14  Kazu Hirata  <kazu@hxi.com>
18508
18509         * config/h8300/h8300-protos.h: Remove the prototype for
18510         eq_operator.
18511         * config/h8300/h8300.c (eq_operator): Remove.
18512
18513 2002-01-14  Richard Henderson  <rth@redhat.com>
18514
18515         * config/i386/i386.md (prefetch): Tidy.
18516         (prefetch_3dnow): Fix locality operand.
18517
18518 2002-01-14  Richard Henderson  <rth@redhat.com>
18519
18520         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18521         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18522
18523 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
18524
18525         * reload1.c (reload_combine): Pass reg_sum replacement through
18526         copy_rtx in loop performing multiple changes.
18527
18528 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
18529
18530         * except.c (remove_unreachable_regions): New.
18531         (free_eh_status): Clear exception_handler_labels.
18532         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18533         (find_exception_handler_labels): Don't add the same label more than
18534         once.
18535         (remove_exception_handler_label): Don't die if
18536         find_exception_handler_labels hasn't been called for the current
18537         function yet.
18538
18539 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
18540
18541         * toplev.c (rest_of_compilation): Rebuild jump labels after
18542         gcse.
18543
18544 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
18545
18546         * doc/extend.texi: Move documentation of X86 built-in functions
18547         here.
18548         * doc/invoke.texi: From here.
18549         * doc/sourcebuild.texi: Document location of documentation for
18550         machine built-in functions.
18551
18552 2002-01-13  Christopher Faylor  <cgf@redhat.com>
18553
18554         * cppfiles.c (TEST_THRESHOLD): New macro.
18555         (SHOULD_MMAP): Ditto.
18556         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18557         be used.
18558
18559 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18560
18561         * unroll.c (final_reg_note_copy): Properly handle
18562         REG_LABEL
18563         (unroll_loops): Fix LOOP_CONDITION heuristics.
18564
18565 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
18566
18567         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18568         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18569
18570 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
18571
18572         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18573         threaded loop.
18574
18575 2002-01-14  Tom Rix  <trix@redhat.com>
18576
18577         * config/rs6000/rs6000.md: Fix typo with sradi.
18578
18579 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
18580
18581         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18582         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18583         (clrstrdi, clrstrsi): Adapt callers.
18584
18585         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18586
18587         (movti splitter): Never use register 0 as base register.
18588
18589 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
18590
18591         * combine.c (simplify_shift_const): Always generate new rtx
18592         for shift expression instead of reusing given expression.
18593
18594 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18595
18596         * config/alpha/alpha.c (alpha_expand_mov): Don't call
18597         alpha_legitimize_address unless mode is Pmode.
18598
18599 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
18600
18601         * doc/md.texi (Modifiers): Document the '*' constraint for the
18602         user.
18603
18604         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18605         * doc/extend.texi (Function Attributes): 'interrupt' is valid
18606         for xstormy16 too.
18607
18608 2002-01-13  Richard Henderson  <rth@redhat.com>
18609
18610         * reload.c (find_reloads): Use a hard reg destination as reload reg
18611         for an input reload of the source.
18612
18613 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18614
18615         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18616         more generic.
18617
18618 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
18619
18620         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18621         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18622
18623         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18624
18625 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18626
18627         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18628
18629 2002-01-12  Tom Rix  <trix@redhat.com>
18630
18631         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
18632         TARGET_POWERPC64.
18633
18634 2002-01-12  Richard Henderson  <rth@redhat.com>
18635
18636         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18637
18638         * doc/invoke.texi: Update Alpha options.
18639
18640         * doc/invoke.texi: Update i386 built-in function lists.
18641
18642 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18643
18644         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18645         referencing outside.
18646
18647 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18648
18649         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18650         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18651         offsets, and change line folding.
18652         * optabs.c (expand_binop): Remove warnings.
18653         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
18654
18655 2002-01-12  Graham Stott <grahams@redhat.com>
18656
18657         * attribs.c (handle_deprecated_attribute): constify WHAT.
18658         * diagnostic.c (warn_deprecated_use): Add braces, fixes
18659         dangling else warning and constify WHAT.
18660         * except.h (struct function, struct inline_remap): Move
18661         struct tag forward defs before all prototypes.
18662         (duplicate_eh_regions): Whitespace.
18663
18664 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
18665
18666         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18667         MODE_BASE_REG_CLASS.
18668         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18669
18670 2002-01-12  Richard Henderson  <rth@redhat.com>
18671
18672         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18673         (ix86_expand_vector_move): New.
18674         (bdesc_2arg): Remove andps, andnps, orps, xorps.
18675         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
18676         Remove old prefetch builtins.  Special case the logicals removed above.
18677         (ix86_expand_builtin): Likewise.
18678         (safe_vector_operand): Use V4SFmode, not TImode.
18679         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
18680         (ix86_expand_timode_binop_builtin): New.
18681         * config/i386/i386-protos.h: Update.
18682         * config/i386/i386.h (enum ix86_builtins): Update.
18683         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18684         Use ix86_expand_vector_move in vector move expanders.
18685         (movti_internal, movti_rex64): Add xorps alternative.
18686         (sse_clrv4sf): Rename and adjust from sse_clrti.
18687         (prefetch): Don't work so hard.
18688         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18689         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18690         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18691
18692 2002-01-11  Richard Henderson  <rth@redhat.com>
18693
18694         * config/i386/mmintrin.h: New file.
18695         * config/i386/xmmintrin.h: New file.
18696         * config.gcc (i?86-*-*): Add extra_headers.
18697         * simplify-rtx.c (simplify_unary_operation): Handle saturating
18698         truncation codes.
18699         (simplify_binary_operation): Handle saturating arithmetic codes.
18700         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18701         not the lowpart subreg.
18702         (ix86_expand_builtin): Return a TImode dummy register instead of 0
18703         on error.
18704         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18705
18706 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18707
18708         * conflict.c (conflict_graph_compute): Free regsets when finished.
18709         * ssa.c (compute_coalesced_reg_partition): Likewise.
18710
18711 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18712
18713         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18714         every where we allocate a register.
18715
18716 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18717
18718         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18719         * lcm.c (compute_earliest, compute_farthest): Likewise.
18720
18721 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18722
18723         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18724
18725 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18726
18727         * doc/rtl.texi (Insns): Fix 2 typos.
18728
18729 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
18730
18731         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
18732         options.  Use @table @gcctabopt for MMIX options.  Add index
18733         entries for MMIX options.  Start new paragraph with first
18734         heading of the machine-dependent options.
18735
18736 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18737
18738         PR other/5299
18739         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18740         * combine.c (force_to_mode): Same.
18741         * reload1.c (clear_reload_reg_in_use): Same.
18742
18743 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
18744
18745         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18746         and 'subtargets'.
18747
18748 2002-01-11  Andreas Jaeger  <aj@suse.de>,
18749             Brad Lucier <lucier@math.purdue.edu>
18750
18751         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18752         mcpu.
18753
18754 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
18755
18756         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18757         Protect with IN_LIBGCC.
18758         (LINK_EH_SPEC): Add required trailing space.
18759
18760 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18761
18762         * c-tree.h: Move function declarations so that they are listed
18763         under the filename which contains them.
18764         (check_identifier, finish_decl_top_level,
18765         lookup_name_current_level_global, shadow_record_fields): Remove.
18766
18767 2002-01-11  Andreas Jaeger  <aj@suse.de>
18768
18769         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18770         march.
18771
18772 2002-01-10  Richard Henderson  <rth@redhat.com>
18773
18774         * config/alpha/alpha.c (print_operand): Add 'J'.
18775         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18776         new operand with the sequence number for the lituse.  When splitting
18777         the insns, use gen_movdi_er_high_g and generate a sequence number.
18778         (gen_movdi_er_high_g): Print the sequence number if non-zero.
18779
18780 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
18781
18782         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18783         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18784         stvxl.
18785         (altivec_expand_builtin): Same.
18786         (altivec_expand_stv_builtin): New.
18787
18788         * config/rs6000/rs6000.h (rs6000_builtins): Same.
18789
18790         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18791         ("altivec_lvehx"): New.
18792         ("altivec_lvewx"): New.
18793         ("altivec_lvxl"): New.
18794         ("altivec_lvx"): New.
18795         ("altivec_stvx"): New.
18796         ("altivec_stvebx"): New.
18797         ("altivec_stvehx"): New.
18798         ("altivec_stvewx"): New.
18799         ("altivec_stvxl"): New.
18800
18801 2002-01-10  Richard Henderson  <rth@redhat.com>
18802
18803         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18804         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
18805         care not to delete instructions twice.
18806
18807 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18808
18809         * toplev.c: Don't declare environ (it's not used anywhere).
18810         * configure.in: Don't check for declaration of environ.
18811         * config/i386/xm-mingw32.h: Don't #define environ.
18812         * config.in, configure: Regenerate.
18813
18814 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18815
18816         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18817         * configure: Regenerate.
18818
18819         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18820         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18821         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18822         alpha/xm-vms.h.
18823         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18824         LIMITS_H_TEST here, not in m68k/x-next.
18825         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18826         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18827
18828         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18829         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18830         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
18831
18832         * config/i386/x-djgpp: Renamed i386/t-djgpp.
18833         * config/m88k/x-dolph: Renamed m88k/t-dolph.
18834         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18835         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
18836         replacement of quadlib.asm with quadlib.c.
18837
18838         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18839         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18840         config/rs6000/xm-beos.h: Delete file.
18841
18842         * config.gcc: Update to match above changes.
18843
18844 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18845
18846         * config/h8300/h8300.h: Fix comment typos.
18847         * config/h8300/h8300.md: Likewise.
18848         * config/h8300/lib1funcs.asm: Likewise.
18849
18850 2002-01-10  Dale Johannesen  <dalej@apple.com>
18851
18852         PR optimization/5269
18853         * unroll.c (precondition_loop_p): Make *increment be the correct
18854         sign when n_iterations known, to avoid confusing caller.
18855
18856 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18857
18858         * doc/extend.texi (deprecated): Fix a typo.
18859
18860 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18861
18862         * basic-block.h (update_br_prob_note): Declare.
18863         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18864         (try_forward_edges): Care negative frequencies and update note.
18865         (outgoing_edges_match): Tweek conditional merging heuristics.
18866         (try_crossjump_to_edge): use update_br_prob_note.
18867         * cfglayout.c (fixup_reorder_chain): Likewise.
18868         * cfrtl.c (update_br_prob_note): New.
18869         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18870
18871         * i386.c (ix86_decompose_address): Return -1 if address contains
18872         shift.
18873         (legitimate_address_p): Require ix86_decompose_address to return 1.
18874
18875         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18876         (cprop_insn): Likewise.
18877
18878 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18879
18880         * toplev.c: Fix formatting.
18881         * tree.c: Likewise.
18882         * tree-dump.c: Likewise.
18883         * unroll.c: Likewise.
18884         * unwind-dw2.c: Likewise.
18885         * unwind-dw2-fde.c: Likewise.
18886         * unwind-dw2-fde-glibc.c: Likewise.
18887         * unwind-sjlj.c: Likewise.
18888
18889 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18890
18891         * doc/invoke.texi: Document PDP-11 options.
18892
18893 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18894
18895         * config/h8300/h8300.h: Fix formatting.
18896
18897 2002-01-10  Ira Ruben   <ira@apple.com>
18898
18899         Add __attribute__ ((deprecated)).
18900         * extend.texi: Document __attribute__ ((deprecated)).
18901         * invoke.texi: Document -Wno-deprecated-declarations.
18902         * testsuite/g++.dg/other/deprecated.C: New C++ test.
18903         * testsuite/gcc.dg/deprecated.c: New C test.
18904         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18905         (c_common_attribute_table): Add "deprecated" entry.
18906         (handle_deprecated_attribute): New function.
18907         * c-decl.c (deprecated_states): New enum.
18908         deprecated_state: State of "deprecated" handling.
18909         (start_decl): Set deprecated_state based on attributes.
18910         (grokdeclarator): Test for deprecated uses, propagate attribute.
18911         * c-typeck.c (build_component_ref): Test for deprecated fields.
18912         (build_external_ref): Test for deprecated primaries.
18913         * diagnostic.c (warn_deprecated_use) New function to issue
18914         warnings about __attribute__ ((depricated)) references.
18915         * flags.h (warn_deprecated_decl): Extern declared for
18916         -W[no-]deprecated-declarations option.
18917         * print-tree.c (print_node): Show deprecated flag status.
18918         * toplev.c (warn_deprecated_decl): Defined.
18919         (W_options): Added "deprecated-declaration".
18920         * toplev.h (warn_deprecated_use): Extern declared.
18921         * tree.h (struct tree_common): Define deprecated_flag.
18922         (TREE_DEPRECATED): New macro to access flag.
18923         * cp/call.c (build_call): Test for deprecated calls.
18924         * cp/class.c (add_implicitly_declared_members): Set global
18925         flag to tell grokdeclarator to not issue deprecated warnings.
18926         * cp/cp-tree.h: Add extern for adding_implicit_members.
18927         * cp/decl.c (deprecated_states): New enum.
18928         (start_decl): Set deprecated_state based on attributes.
18929         (grokdeclarator): Test for deprecated uses, propagate attribute.
18930         * cp/lex.c (do_identifier): Test for deprecated primaries.
18931         * cp/typeck.c (build_component_ref): Test for deprecated fields.
18932
18933 2002-01-10  Ira Ruben   <ira@apple.com>
18934
18935         Fix to assign attributes to inline member functions.
18936         * cp/decl.c (start_method): Handle attrlist.
18937
18938 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18939
18940         * combine.c (expand_field_assignment): Use subreg_lsb().
18941
18942 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
18943
18944         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18945         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18946         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18947         Recurse for any operand of AND as long as constant is non-zero.
18948
18949 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18950
18951         * config/h8300/h8300.md: Remove constraints from expanders.
18952
18953 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18954
18955         * varasm.c: Fix formatting.
18956         * varray.c: Likewise.
18957         * vmsdbgout.c: Likewise.
18958         * xcoffout.c: Likewise.
18959
18960 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
18961
18962         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18963         update edge probabilities to match.
18964
18965 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18966
18967         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18968         dependencies.
18969         * doc/languages.texi, doc/sourcebuild.texi: New files.
18970         * doc/configfiles.texi: Make a subsubsection.  Update.
18971         * doc/configterms.texi: Add @node.  Remove warning that this isn't
18972         instructions for building GCC.
18973         * doc/makefile.texi: Make a subsection.
18974         * doc/gccint.texi: Update.
18975
18976 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
18977
18978         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18979
18980 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18981
18982         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18983
18984 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
18985
18986         * optabs.c (expand_fix): Look for wider integer modes first.
18987
18988         * i386.md (mov?f): Avoid the fake const double trick for medium
18989         memory model.
18990         (min?f*/max?f*): Prohibit memory operands for i387 variant.
18991         (fop_df_4): Disable for SSE compilation.
18992
18993 2002-01-10  Graham Stott  <grahams@redhat.com>
18994
18995         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18996         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18997
18998 2002-01-10  Richard Henderson  <rth@redhat.com>
18999
19000         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19001
19002 2002-01-10  Richard Henderson  <rth@redhat.com>
19003
19004         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19005         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
19006
19007 2002-01-10  Kazu Hirata  <kazu@hxi.com>
19008
19009         * combine.c (can_combine_p): Fix a comment typo.
19010
19011 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
19012
19013         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19014         empty list correctly.  Change loop index $t to $f for
19015         consistency with rest of Makefile.
19016
19017 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
19018
19019         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19020         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19021
19022         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19023         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19024         (altivec_init_builtins): Same.
19025         (altivec_expand_unop_builtin): Return NULL_RTX on error.
19026         (altivec_expand_binop_builtin): Same.
19027         (altivec_expand_ternop_builtin): Same.
19028         (bdesc_dst): New.
19029
19030         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19031         ("altivec_vctuxs"): Fix typo.
19032         ("altivec_vnmsubfp"): Same.
19033         ("altivec_dssall"): New.
19034         ("altivec_mfvscr"): New.
19035         ("altivec_dss"): New.
19036         ("altivec_lvsl"): New.
19037         ("altivec_lvsr"): New.
19038         ("altivec_dstt"): New.
19039         ("altivec_dstst"): New.
19040         ("altivec_dststt"): New.
19041         ("altivec_dst"): New.
19042
19043         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19044         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19045
19046 2002-01-09  Richard Henderson  <rth@redhat.com>
19047
19048         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19049
19050 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
19051
19052         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19053         function.
19054         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19055         prototype.
19056         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
19057
19058 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19059
19060         * read-rtl.c: Fix formatting.
19061         * real.c: Likewise.
19062         * regclass.c: Likewise.
19063         * regrename.c: Likewise.
19064         * reg-stack.c: Likewise.
19065         * reload1.c: Likewise.
19066         * reload.c: Likewise.
19067         * rtl.c: Likewise.
19068
19069 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19070
19071         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19072         to extract items in the expr_list chain.
19073
19074 2002-01-09  Richard Henderson  <rth@redhat.com>
19075
19076         * config/vax/vax.c (vax_rtx_cost): Never abort.
19077
19078         * config/vax/vax.h (REAL_ARITHMETIC): Define.
19079
19080 2002-01-09  Jan Hubicka  <jh@suse.cz>
19081
19082         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19083
19084 2002-01-09  Richard Henderson  <rth@redhat.com>
19085
19086         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19087         Unify code from various alternatives.
19088
19089 2002-01-09  Richard Henderson  <rth@redhat.com>
19090
19091         * regrename.c (copy_value): Ignore the copy if the source register
19092         is present in the value chain with a narrower mode.
19093
19094 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
19095
19096         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19097         for the c4x target. Also improve layout.
19098
19099 2002-01-09  Richard Henderson  <rth@redhat.com>
19100
19101         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19102         * config/m32r/m32r.md (and ior xor splitters): Swap operands
19103         to match insn patterns.
19104
19105 2002-01-09  Richard Henderson  <rth@redhat.com>
19106
19107         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19108         (copyprop_hardreg_forward_1): Likewise.
19109
19110 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19111
19112         * pa.md (decrement_and_branch_until_zero): Change predicate for
19113         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19114
19115 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
19116
19117         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19118         gets undefined. For Darwin.
19119
19120 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19121
19122         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19123
19124 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19125
19126         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19127
19128 2002-01-08  Richard Henderson  <rth@redhat.com>
19129
19130         * regrename.c (copy_value): Ignore overlapping copies.
19131
19132 2002-01-08  Richard Henderson  <rth@redhat.com>
19133
19134         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19135         as needed to avoid shared structure.
19136
19137 2002-01-08  Kazu Hirata  <kazu@hxi.com>
19138
19139         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19140         H8/300H and H8/S.
19141
19142 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19143
19144         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19145         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19146         documentation of obsolete macros.
19147         * system.h: Poison these macros.
19148         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19149         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19150         config/c4x/c4x.h, config/clipper/clipper.h,
19151         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19152         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19153         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19154         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19155         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19156         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19157         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19158         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19159         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19160         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19161         config/sparc/sparc.h, config/stormy16/stormy16.h,
19162         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19163         definitions and commented out definitions of obsolete macros.
19164         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19165         of MAX_INT_TYPE_SIZE.
19166
19167 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19168
19169         * config/s390/s390.c (s390_preferred_reload_class): Never
19170         return ADDR_REGS if it isn't a subset of the given class.
19171         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19172         FP_REGS, but all superclasses as well.
19173
19174         * config/s390/s390.c (s390_function_profiler): Fix thinko.
19175
19176         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19177         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19178         must not be a const_int.
19179
19180 2002-01-08  Richard Henderson  <rth@redhat.com>
19181
19182         * Makefile.in (toplev.o): Depend on options.h.
19183         (gcc.o): Depend on specs.h.
19184
19185 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
19186
19187         * expr.c (store_expr): Convert VOIDmode constants back to target's
19188         mode.
19189
19190 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19191
19192         * doc/invoke.texi: Markup gcc as @command.  Refer to
19193         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19194         of http://gcc.gnu.org/thanks.html.
19195
19196 2002-01-08  Dale Johannesen  <dalej@apple.com>
19197
19198         * config/rs6000/rs6000.md: Add missing int register
19199         target case to movdf_low.
19200
19201 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
19202
19203         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19204         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
19205         (cppinit.o): Depend on except.h.
19206         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19207         s-specs): New rules.
19208
19209         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19210         Don't create specs.h/options.h/gencheck.h here.  Remove
19211         unnecessary variable settings from last argument of AC_OUTPUT.
19212         * config.in, configure: Regenerate.
19213         * intl.c: Hardcode package name as "gcc".
19214
19215         * cppinit.c: Include except.h.
19216         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19217         appropriate.
19218         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19219         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19220         (!)USING_SJLJ_EXCEPTIONS.
19221         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19222
19223 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19224
19225         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19226         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19227         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19228         documentation of obsolete macros.
19229         * system.h: Poison these macros.
19230         * config/d30v/d30v.h, config/ns32k/encore.h,
19231         config/stormy16/stormy16.h: Remove definitions and commented out
19232         definitions of obsolete macros.
19233
19234 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
19235
19236         * objc/objc-act.c (handle_class_ref): Mark the declaration of
19237         %sobjc_class_ref_%s as used - to prevent unwanted compiler
19238         warnings.
19239
19240 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19241
19242         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19243         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19244         to insn adjusting stack/frame pointer.
19245         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
19246         accept operands that cause the insn to be non-splittable.
19247
19248 2002-01-08  Graham Stott  <grahams@redhat.com>
19249
19250         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19251         (C_TYPE_FIELDS_VOLATILE): Likewise.
19252         (C_TYPE_BEING_DEFINED): Likewise.
19253         (C_IS_RESERVED_WORD): Likewise.
19254         (C_TYPE_VARIABLE_SIZE): Likewise.
19255         (C_DECL_VARIABLE_SIZE): Likewise.
19256         (C_MISSING_PROTOTYPE_WARNED): Likewise.
19257         (C_SET_EXP_ORIGINAL_CODE): Likewise.
19258         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19259         parenthesis.
19260         (C_DECL_ANTICIPATED): Likewise.
19261         (c_build_type_variant): Add parenthesis.
19262
19263 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19264
19265         * gcc.c (option_map): Remove --version.
19266         (process_command): Handle -fversion following the GNU Coding
19267         Standards.  Partially addresses PR other/704.
19268
19269 2002-01-08  Graham Stott  <grahams@redhat.com>
19270
19271         * combine.c (combine_instructions): Fix typo.
19272
19273 2002-01-08  Graham Stott  <grahams@redhat.com>
19274
19275         * debug.h: Use "tree" and "rtx" throughout.
19276
19277         * debug.c: Likewise.
19278
19279 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
19280
19281         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19282         constant pool, use the pool's version of the symbol instead.
19283
19284 2002-01-07  Richard Henderson  <rth@redhat.com>
19285
19286         * regrename.c (find_oldest_value_reg): Ignore the value chain if
19287         the original register was copied in a mode with a fewer number of
19288         hard registers than the desired mode.
19289         (copyprop_hardreg_forward_1): Likewise.
19290         (debug_value_data): Fix loop test.
19291         * toplev.c (parse_options_and_default_flags): Reenable
19292         -fcprop-registers at -O1.
19293
19294 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19295
19296         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19297         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
19298
19299         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19300         predicates.
19301
19302         * config/rs6000/rs6000.md: Add altivec predicate patterns.
19303
19304 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19305
19306         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19307         (pa_output_function_prologue): Output local label at the beginning of
19308         the prologue when profiling.
19309         (hppa_profile_hook): Use the local label rather than the function label.
19310         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19311
19312 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19313
19314         * config/rs6000/rs6000.c (print_operand): Remove extra space.
19315         (altivec_expand_unop_builtin): Fix thinko.
19316         (altivec_expand_binop_builtin): Same.
19317         (altivec_expand_ternop_builtin): Same.
19318         (altivec_expand_builtin): Same.
19319
19320 2002-01-07  Richard Henderson  <rth@redhat.com>
19321
19322         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19323
19324 2002-01-07  Jason Merrill  <jason@redhat.com>
19325
19326         * unwind-dw2.c (execute_cfa_program): Use < again.
19327
19328 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19329
19330         * predict.c (combine_predictions_for_insn): Avoid division by zero.
19331
19332 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19333
19334         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19335         Don't allow -1 - x -> ~x simplifications in the first pass.
19336
19337 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19338
19339         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19340         arguments.
19341         (altivec_expand_binop_builtin): Same.
19342         (altivec_expand_unop_builtin): Same.
19343         (print_operand): Fix typo.
19344         (bdesc_1arg): Add vupk* variants.
19345
19346         * rs6000.h (rs6000_builtins): Add vupk* enums.
19347
19348         * rs6000.md: Add altivec_vupk* variants.
19349
19350 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
19351
19352         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19353         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19354         and last update dates.
19355
19356 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
19357
19358         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19359
19360 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19361
19362         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19363         * config/avr/avr.h (CPP_SPEC): Likewise.
19364         (LINK_SPEC): Likewise.
19365         (CRT_BINUTILS_SPECS): Likewise.
19366         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19367         * doc/invoke.texi (AVR Options): Document them.
19368
19369 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19370
19371         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19372         LABEL_NUSES.
19373
19374 2002-01-07  Graham Stott  <grahams@redhat.com>
19375
19376         * config/i386/i386.h: Update copyright date.
19377         (HALF_PIC_PTR): Add parenthesis.
19378         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19379         (CONSTANT_ALIGNMENT): Add parenthesis.
19380         (DATA_ALIGNMENT): Likewise.
19381         (LOCAL_ALIGNMENT): Likewise.
19382         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19383         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19384         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19385         (HARD_REGNO_NREGS): Add paranethesis.
19386         (VALID_SSE_REG_MODE): Whitespace.
19387         (VALID_MMX_REG_MODE): Whitespace.
19388         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19389         (ix86_hard_regno_mode_ok): Add parenthesis.
19390         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19391         (RETURN_IN_MEMORY): Whitespace.
19392         (N_REG_CLASSES): Add parenthesis.
19393         (INTEGER_CLASS_P): Add parenthesis and wrap.
19394         (FLOAT_CLASS_P): Likewise.
19395         (SSE_CLASS_P): Likewise.
19396         (MMX_CLASS_P): Likewise.
19397         (MAYBE_INTEGER_CLASS_P): Likewise.
19398         (MAYBE_FLOAT_CLASS_P): Likewise.
19399         (MAYBE_SSE_CLASS_P): Likewise.
19400         (MAYBE_MMX_CLASS_P): Likewise.
19401         (Q_CLASS_P): Likewise.
19402         (GENERAL_REGNO_P): Uppercase macro parameter.
19403         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19404         (FP_REGNO_P): Likewise.
19405         (ANY_FP_REGNO_P): Uppercase macro parameter.
19406         (SSE_REGNO_P): Likewise.
19407         (SSE_REGNO): Likewise.
19408         (SSE_REG_P): Likewise.
19409         (SSE_FLOAT_MODE_P): Likewise.
19410         (MMX_REGNO_P): Likewise.
19411         (MMX_REG_P):Likewise.
19412         (STACK_REG_P): Likewise.
19413         (NON_STACK_REG_P): Likewise.
19414         (STACK_TOP_P): Likewise.
19415         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19416         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19417         (SECONDARY_MEMORY_NEEDED): Likewise.
19418         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19419         (MD_ASM_CLOBBERS): Whitespace and wrap.
19420         (MUST_PASS_IN_STACK): Whitespace and wrap.
19421         (RETURN_POPS_ARGS): Add parenthesis.
19422         (INIT_CUMULATIVE_ARGS): Likewise.
19423         (FUNCTION_ARG): Likewise.
19424         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19425         (SETUP_INCOMING_VARARGS): Likewise.
19426         (BUILD_VA_LIST_TYPE):  Add parenthesis.
19427         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19428         parenthsis.
19429         (EXPAND_BUILTIN_VA_ARG): Likewise.
19430         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19431         (INITIALIZE_TRAMPOLINE): Add parenthesis.
19432         (INITIAL_ELIMINATION_OFFSET): Likewise.
19433         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19434         (REGNO_OK_FOR_BASE_P): Likewise.
19435         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19436         (REGNO_OK_FOR_DIREG_P): Likewise.
19437         (REG_OK_FOR_INDEX_P): Whitespace.
19438         (REG_OK_FOR_BASE_P): Whitespace.
19439         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19440         parenthesis.
19441         (FIND_BASE_TERM): Fix typo.
19442         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
19443         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19444         (SYMBOLIC_CONST; Whitespace.
19445         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
19446         (ENCODE_SECTION_INFO): Whitespace.
19447         (FINALIZE_PIC): Remove do { ... } while (0).
19448         (PROMOTE_MODE): Wrap in do { ... } while (0).
19449         (CONST_COSTS): Whitespace.
19450         (RTX_COSTS): Add paramethesis, whitespace and wrap.
19451         (REGISTER_MOVE_COST): Add parenthesis.
19452         (MEMORY_MOVE_COST): Likewise.
19453         (EXTRA_CC_MODES): Whitespace.
19454         (SELECT_CC_MODE): Add parenthesis and whitespace.
19455         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19456         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19457         (ASM_OUTPUT_LABEL): Add paramethesis.
19458         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19459         (ASM_OUTPUT_REG_POP): Likewise.
19460         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19461         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19462
19463         * config/i386/i386.c: Update copyright.
19464         (CHECK_STACK_LIMIT): Add parenthesis.
19465         (AT_BP): Uppercase macro parameter.
19466         (x86_64_int_parameter_registers): Constify.
19467         (x86_64_int_return_registers): Likewise.
19468         (ix86_compare_op0): Use rtx.
19469         (construct_container): Constify INTREG parameter.
19470         (function_arg): Use rtx.
19471
19472         * diagnostic.h: Update copyright date.
19473         (output_buffer_state): Add parenthesis.
19474         (output_buffer_format_args): Likewise.
19475
19476         * combine.c (combine_instructions): Replace XEXP (links, 0)
19477         with link.
19478
19479 2002-01-06  H.J. Lu <hjl@gnu.org>
19480
19481         * cfgcleanup.c (thread_jump): Fix 2 typos.
19482
19483 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
19484
19485         * config.gcc: Add support for --enable-altivec.
19486
19487 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19488
19489         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19490
19491 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
19492
19493         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19494         __objc_class_name_*.
19495
19496 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19497
19498         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19499
19500 2002-01-06  Richard Henderson  <rth@redhat.com>
19501
19502         * reorg.c (emit_delay_sequence): Remove death notes, not merely
19503         nop them out.  Increment label reference count for REG_LABEL.
19504         (fill_slots_from_thread): Frob label reference count around
19505         delete_related_insns.
19506
19507 2002-01-05  Richard Henderson  <rth@redhat.com>
19508
19509         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19510         jump threading.
19511
19512 2002-01-05  Richard Henderson  <rth@redhat.com>
19513
19514         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19515         * integrate.c (output_inline_function): Likewise.
19516         * toplev.c (rest_of_compilation): Do it here instead.  Move call
19517         to remove_unnecessary_notes after emitting abstract instance.
19518         Force an emitted nested function to have its parent emited as well.
19519         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19520         for null.
19521         (rtl_for_decl_location): Do not look at reload data structures
19522         before reload has run.
19523
19524 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19525
19526         * cse.c: Fix formatting.
19527         * dwarf2asm.c: Likewise.
19528         * dwarf2out.c: Likewise.
19529         * explow.c: Likewise.
19530         * expmed.c: Likewise.
19531         * function.c: Likewise.
19532         * gcov.c: Likewise.
19533         * gencheck.c: Likewise.
19534         * genrecog.c: Likewise.
19535         * ggc-common.c: Likewise.
19536         * ggc-page.c: Likewise.
19537         * global.c: Likewise.
19538
19539 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19540
19541         * combine.c: Fix formatting.
19542
19543 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
19544
19545         PR middle-end/1557
19546         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19547
19548 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
19549
19550         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19551         as 1 for __powerpc64__ as well.
19552
19553         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19554
19555         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19556         return it.
19557
19558 2002-01-05  Daniel Berlin  <dan@dberlin.org>
19559
19560         * lcm.c: Revert change, due to performance regression it causes on
19561         SPEC because it's slightly more conservative (sigh, I hate
19562         edge-based LCM).
19563
19564 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19565
19566         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19567
19568 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
19569
19570         * doc/cppinternals.texi: Update.
19571
19572 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
19573
19574         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19575         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19576         negatives.
19577         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
19578         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19579         kludge for pre-october-14th mmix versions to handle new-found bug
19580         with PUSHJ/PUSHGO and the register stack.
19581         * config/mmix/mmix.h (struct machine_function): Rename member
19582         has_call_value_without_parameters to has_call_without_parameters.
19583         All referers changed.
19584         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19585         TARGET_MASK_BRANCH_PREDICT): New macros.
19586         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19587         -mno-reg-stack-fill-bug-workaround.
19588         * config/mmix/mmix.md ("call"): Set struct machine member
19589         has_call_without_parameters.
19590
19591 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19592
19593         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19594
19595 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
19596
19597         * cfgcleanup.c: Include tm_p.h
19598         (mark_effect): Fix handling of hard register; fix handling of SET
19599
19600 2002-01-04  Kazu Hirata  <kazu@hxi.com>
19601
19602         * config/h8300/h8300.md (anonymous patterns): Check that
19603         operands are registers before using REGNO on them.
19604
19605 2002-01-03  Roland McGrath  <roland@frob.com>
19606
19607         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19608
19609 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
19610
19611         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19612         * c-common.h (genrtl_expr_stmt_value): Likewise.
19613         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19614         (expand_expr_stmt_value): Add maybe_last argument.
19615         Don't warn about statement with no effect if it is the last statement
19616         in expression statement.
19617         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19618         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19619         expand_expr_stmt_value.
19620         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19621         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19622         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19623         as maybe_last to expand_expr_stmt_value.
19624
19625 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
19626
19627         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19628         be passed in, do not build it.
19629         (c_begin_if_stmt): New function.
19630         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19631         * c-common.h (c_expand_start_cond): Update prototype.
19632         (c_begin_if_stmt): Prototype new function.
19633         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19634         * c-parse.in (if_prefix): Use c_begin_if_stmt,
19635         c_begin_while_stmt and c_finish_while_stmt_cond.
19636
19637 2002-01-04  William Cohen  <wcohen@redhat.com>
19638
19639         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19640         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19641         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19642         * config/pa/som.h (ASM_FILE_START): Likewise.
19643
19644 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
19645
19646         * lcm.c: Include df.h.
19647         Add available_transfer_function prototype.
19648         (compute_available): Rework to use iterative dataflow framework.
19649         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19650         with bb_info in df.h
19651         (available_transfer_function): New function.
19652
19653         * Makefile.in (lcm.o): add df.h to dependencies.
19654
19655 2002-01-04  Richard Henderson  <rth@redhat.com>
19656
19657         * config/alpha/alpha.c (some_operand): Accept HIGH.
19658         (input_operand): Likewise; accept simple references to globals.
19659         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19660         (alpha_const_double_ok_for_letter_p): Likewise.
19661         (alpha_extra_constraint): Likewise.
19662         (alpha_preferred_reload_class): Likewise.  Do not force
19663         symbolic constants to memory.
19664         (alpha_legitimate_address_p): Accept simple references
19665         to small_symbolic_operand.
19666         (alpha_legitimize_address): New arg scratch.  Be prepared to be
19667         called when no_new_pseudos.  Emit simple symbolic references.
19668         Split integers into low, high, and rest.
19669         (alpha_expand_mov): Use alpha_legitimize_address.
19670         (some_small_symbolic_mem_operand): New.
19671         (split_small_symbolic_mem_operand): New.
19672         * config/alpha/alpha-protos.h: Update.
19673         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19674         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19675         (EXTRA_CONSTRAINT): Likewise.
19676         (PREFERRED_RELOAD_CLASS): Likewise.
19677         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19678         (PREDICATE_CODES): Update.
19679         * config/alpha/alpha.md: New post-reload splitters to convert
19680         simplfied symbolic operands to the form that references $29.
19681         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19682         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19683
19684 2002-01-03  Richard Henderson  <rth@redhat.com>
19685
19686         * local-alloc.c (function_invariant_p): Update commentary.
19687
19688 2002-01-04  H.J. Lu <hjl@gnu.org>
19689
19690         * toplev.c (rest_of_compilation): Fix a typo when calling
19691         cleanup_cfg.
19692
19693 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19694
19695         * c-common.c: Fix formatting.
19696         * diagnostic.c: Likewise.
19697         * doloop.c: Likewise.
19698         * dwarf2out.c: Likewise.
19699
19700 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19701
19702         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19703         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19704
19705 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19706
19707         * cpperror.c: Update comments and copyright.
19708         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19709         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19710
19711 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19712
19713         * collect2.c (main): Use strcmp when testing for "-shared".
19714
19715 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19716
19717         * cppmacro.c: Don't include intl.h.  Update comments.
19718         (new_number_token): Allocate enough buffer for 64-bit unsigned
19719         integers; update prototype.
19720         * cppmain.c: Update comments.
19721
19722 2002-01-03  William Cohen  <wcohen@redhat.com>
19723
19724         * function.h (struct function): Add profile.
19725         (current_function_profile): New.
19726         doc/extend.texi: Update documentation.
19727         * final.c (final_start_function): Use current_function_profile
19728         instead of profile_flag.
19729         (profile_after_prologue): Likewise.
19730         * function.c (expand_function_start): Likewise.
19731         (expand_function_start): Likewise.
19732         * config/alpha/alpha.c (direct_call_operand):
19733         (alpha_does_function_need_gp): Likewise.
19734         (alpha_expand_prologue): Likewise.
19735         * config/arm/arm.c (arm_expand_prologue): Likewise.
19736         thumb_expand_prologue: Likewise.
19737         * config/d30v/d30v.c (d30v_stack_info): Likewise.
19738         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19739         (fr30_expand_prologue): Likewise.
19740         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19741         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19742         * config/i386/i386.h (FINALIZE_PIC): Likewise.
19743         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19744         * config/i960/i960.c (i960_output_function_prologue): Likewise.
19745         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19746         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19747         (m32r_expand_prologue): Likewise.
19748         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19749         (m88k_expand_prologue): Likewise.
19750         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19751         * config/mips/mips.c (compute_frame_size): Likewise.
19752         (mips_expand_prologue): Likewise.
19753         (mips_can_use_return_insn): Likewise.
19754         * config/pa/elf.h (ASM_FILE_START): Likewise.
19755         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19756         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19757         * config/pa/som.h (ASM_FILE_START): Likewise.
19758         * config/romp/romp.c (romp_using_r14): Likewise.
19759         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19760         (rs6000_stack_info): Likewise.
19761         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19762         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19763         * config/v850/v850.c (compute_register_save_size): Likewise.
19764
19765 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
19766
19767         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19768         gen_lowpart_common fails, use gen_lowpart_SUBREG.
19769
19770 2002-01-03  Turly O'Connor  <turly@apple.com>
19771
19772         * darwin.c (machopic_output_possible_stub_label): Don't generate
19773         stub routines for pseudo-stubs which we've just defined.
19774
19775 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19776
19777         * builtins.c: Fix formatting.
19778         * c-typeck.c: Likewise.
19779         * combine.c: Likewise.
19780         * expr.c: Likewise.
19781         * loop.c: Likewise.
19782
19783 2002-01-03  Andreas Schwab  <schwab@suse.de>
19784
19785         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19786         and return true if _cpp_push_next_buffer pushed a new include
19787         file.
19788         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19789         _cpp_pop_file_buffer did not push a new file.
19790         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19791
19792 2002-01-02  Eric Christopher  <echristo@redhat.com>
19793
19794         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19795         FIND_REG_INC_NOTE call. Update copyright.
19796         * loop.c (canonicalize_condition): Ditto.
19797         * reorg.c (delete_scheduled_jump): Ditto.
19798
19799 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19800
19801         * gcse.c: Fix formatting.
19802
19803 2002-01-03  Graham Stott  <grahams@redhat.com>
19804
19805         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19806         forward defs for struct tags rtx_def, union_tree, rtvec_def
19807         also output corresponding typedefs for rtx, tree, and rtvec.
19808
19809         * system.h: Move forward defs for struct tags rtx_def, union_tree,
19810         rtvec_def along with corresponding typedefs for rtx, tree, and
19811         rtvec to config.h, hconfig.h, tconfig.h.
19812
19813 2002-01-03  Graham Stott  <grahams@redhat.com>
19814
19815         * tree.h: Update copyright date.
19816         (IS_EXPR_CODE_CLASS): Add parenthesis.
19817         (TREE_SET_CODE): Add whitespace.
19818         (TREE_CHECK): Add parenthesis.
19819         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19820         (CST_OR_CONSTRUCTOR_CHECK):
19821         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19822         (TREE_SYMBOL_REFERENCED): Whitespace.
19823         (INT_CST_LT): Likewise.
19824         (INT_CST_LT_UNSIGNED): Likewise.
19825         (tree_real_cst): Unwrap comment.
19826         (tree_string): Likewise.
19827         (tree_complex): Likewise.
19828         (IDENTIFIER_POINTER): correct cast.
19829         (SAVE_EXPR_CONTEXT): Whitespace.
19830         (EXPR_WFL_FILENAME_NODE): Likewise.
19831         (EXPR_WFL_FILENAME): Remove parenthesis.
19832         (DECL_ORIGIN): Add parenthesis.
19833         (DECL_FROM_INLINE): Use NULL_TREE.
19834         (build_int_2): Whitespace.
19835         (build_type_variant): Add parenthesis.
19836
19837         * gcc/jcf-parse.c: Update copyright date.
19838         (yyparse): Constify resource_filename.
19839
19840 2002-01-03  Graham Stott  <grahams@redhat.com>
19841
19842         * rtl.h: Update copyright date.
19843         (RTL_CHECK1): Wrap long line.
19844         (RTL_CHECK2): Likewise.
19845         (RTL_CHECKC1): Wrap long line and whitespace.
19846         (RTL_CHECKC2): Likewise.
19847         (XWINT): Whitespace.
19848         (XINT): Likewise.
19849         (XSTR): Likewise.
19850         (XEXP): Likewise.
19851         (XVEC): Likewise.
19852         (XMODE): Likewise.
19853         (XBITMAP): Likewise.
19854         (XTREE): Likewise.
19855         (XBBDEF): Likewise.
19856         (XTMPL): Likewise.
19857         (X0WINT): Likewise.
19858         (X0INT):Likewise.
19859         (X0UINT): Likewise.
19860         (X0STR): Likewise.
19861         (X0EXP): Likewise.
19862         (X0VEC): Likewise.
19863         (X0MODE): Likewise.
19864         (X0BITMAP): Likewise.
19865         (X0TREE): Likewise.
19866         (X0BBDEF): Likewise.
19867         (X0ADVFLAGS): Likewise.
19868         (X0CSELIB): Likewise.
19869         (X0MEMATTR): Likewise.
19870         (XCWINT): Likewise.
19871         (XCINT): Likewise.
19872         (XCUINT): Likewise.
19873         (XCSTR): Likewise.
19874         (XCEXP): Likewise.
19875         (XCVEC): Likewise.
19876         (XCMODE): Likewise.
19877         (XCBITMAP): Likewise.
19878         (XCTREE): Likewise.
19879         (XCBBDEF): Likewise.
19880         (XCADVFLAGS): Likewise.
19881         (XCCSELIB): Likewise.
19882         (XC2EXP): Likewise.
19883         (INSN_UID): Likewise.
19884         (PREV_INSN): Likewise.
19885         (PATTERN): Likewise.
19886         (INSN_CODE): Likewise.
19887         (PUT_REG_NOTE_KIND): Likewise.
19888         (CODE_LABEL_NUMBER): Likewise.
19889         (NOTE_SOURCE_FILE): Likewise.
19890         (NOTE_BLOCK): Likewise.
19891         (NOTE_EH_HANDLER): Likewise.
19892         (NOTE_RANGE_INFO): Likewise.
19893         (NOTE_LIVE_INFO): Likewise.
19894         (NOTE_BASIC_BLOCK): Likewise.
19895         (NOTE_EXPECTED_VALUE): Likewise.
19896         (NOTE_LINE_NUMBER): Likewise.
19897         (LABEL_NAME): Likewise.
19898         (LABEL_NUSES): Likewise.
19899         (LABEL_ALTERNATE_NAME): Likewise.
19900         (ADDRESSOF_DECL): Likewise.
19901         (JUMP_LABEL): Likewise.
19902         (LABEL_NEXTREF): Likewise.
19903         (REGNO): Likewise.
19904         (ORIGINAL_REGNO: Likewise.
19905         (HARD_REGISTER_NUM_P): Add parenthesis.
19906         (SUBREG_REG): Whitespace.
19907         (SUBREG_BYTE): Likewise.
19908         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19909         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19910         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19911         (ASM_OPERANDS_INPUT_VEC): Likewise.
19912         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19913         (ASM_OPERANDS_INPUT): Likewise.
19914         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19915         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19916         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19917         (ASM_OPERANDS_INPUT_MODE): Likewise.
19918         (ASM_OPERANDS_SOURCE_FILE): Likewise.
19919         (ASM_OPERANDS_SOURCE_LINE): Likewise.
19920         (MEM_SET_IN_STRUCT_P): Minor reformat.
19921         (TRAP_CONDITION): Whitespace.
19922         (TRAP_CODE): Likewise.
19923         (COND_EXEC_TEST): Likewise.
19924         (COND_EXEC_CODE): Likewise.
19925         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19926         (PHI_NODE_P): Add parenthesis.
19927         (plus_constant): Whitespace and add parenthesis.
19928
19929 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19930
19931         * config/avr/avr.c: Fix comment typos.
19932         * config/c4x/c4x.md: Likewise.
19933         * config/dsp16xx/dsp16xx.h: Likewise.
19934         * config/dsp16xx/dsp16xx.md: Likewise.
19935         * config/i386/i386.md: Likewise.
19936         * config/ia64/ia64.c: Likewise.
19937         * config/m32r/m32r.h: Likewise.
19938         * config/m68hc11/m68hc11.md: Likewise.
19939         * config/mmix/mmix.c: Likewise.
19940         * config/mn10200/mn10200.c: Likewise.
19941         * config/romp/romp.c: Likewise.
19942         * config/sh/sh.c: Likewise.
19943         * config/stormy16/stormy16.c: Likewise.
19944         * config/stormy16/stormy16.h: Likewise.
19945         * config/stormy16/stormy16.md: Likewise.
19946
19947 2002-01-03  Graham Stott  <grahams@redhat.com>
19948
19949         * loop.h: Update copyright date.
19950         (LOOP_MOVABLES): Fix typo.
19951         (LOOP_REGS): Likewise.
19952         (LOOP_IVS): Likewise.
19953
19954 2002-01-03  Graham Stott  <grahams@redhat.com>
19955
19956         * cppinit.c: Update copyright date.
19957         Don't include output.h
19958         * Makefile.in: Update copyright date.
19959         Update dependency.
19960
19961 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19962
19963         PR c/5226
19964         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19965         (-pthread) Add to RS/6000 options.
19966
19967 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19968
19969         * except.c: Fix comment typos.
19970         * loop.c: Likewise.
19971         * varasm.c: Likewise.
19972         * doc/tm.texi: Fix a typo.
19973
19974 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
19975
19976         * c-typeck.c (output_init_element): Allow initializing static storage
19977         duration objects with compound literals.
19978
19979 2002-01-02  Richard Henderson  <rth@redhat.com>
19980
19981         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19982         after abusing it.
19983
19984 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19985
19986         * gcc.c (default_compilers): Const-ify.
19987         * mips-tdump.c (stab_names): Likewise.
19988         * mips-tfile.c (map_coff_types, map_coff_storage,
19989         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19990         pseudo_ops_t, pseudo_ops): Likewise.
19991         * protoize.c (default_include): Likewise
19992
19993         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19994         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19995         Add array size in declaration.
19996         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19997         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19998         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19999         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20000         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20001         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20002         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20003         emtens, make_nan): Const-ify.
20004         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20005         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20006
20007 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
20008
20009         * config.gcc (ia64-*-*): Set extra_headers.
20010         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
20011         * config/alpha/t-osf: Remove.
20012         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20013
20014 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
20015
20016         * config/rs6000/t-aix43: Revert previous change.
20017
20018 2002-01-02  Jason Merrill  <jason@redhat.com>
20019
20020         * c-decl.c (c_expand_body): Call outlining_inline_function when
20021         emitting an inline function out of line.
20022
20023 2002-01-02  Richard Henderson  <rth@redhat.com>
20024
20025         * dwarf2out.c (limbo_die_node): Add created_for member.
20026         (new_die): New argument created_for.  Update all callers.
20027         (mark_limbo_die_list): New.
20028         (dwarf2out_init): Register limbo_die_list as a root.
20029         (dwarf2out_finish): Force insert limbo dies into their function
20030         context.
20031
20032 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
20033
20034         PR c++/5089
20035         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20036
20037 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20038
20039         * config/h8300/fixunssfsi.c: Update copyright.
20040         Fix comment typos.
20041         Fix formatting.
20042         * config/h8300/h8300.c: Update copyright.
20043         Eliminate warnings.
20044
20045 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20046
20047         * config/romp/romp.c: Fix comment formatting.
20048         * config/romp/romp.h: Likewise.
20049         * config/romp/romp.md: Likewise.
20050         * config/s390/s390.c: Likewise.
20051         * config/stormy16/stormy16.c: Likewise.
20052         * config/stormy16/stormy16.h: Likewise.
20053
20054 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
20055
20056         * c-common.h (genrtl_expr_stmt_value): Declare.
20057         * c-semantics.c (genrtl_goto_stmt): Redirect to...
20058         (genrtl_goto_stmt_value): ... this new function.  Pass new
20059         argument down to expand_expr_stmt_value, taking
20060         TREE_ADDRESSABLE into account.
20061         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20062         STMT_EXPR as addressable, i.e., one whose result we want.
20063         * expr.c (expand_expr): Don't save expression statement value
20064         of labeled_blocks or loop_exprs.
20065         * stmt.c (expand_expr_stmt): Redirect to...
20066         (expand_expr_stmt_value): ... this new function.  Use new
20067         argument to tell whether to save expression value.
20068         (expand_end_stmt_expr): Reset last_expr_type and
20069         last_expr_value if we don't have either.
20070         * tree-inline.c (declare_return_variable): Mark its use
20071         statement as addressable.
20072         * tree.h: Document new use of TREE_ADDRESSABLE.
20073         (expand_expr_stmt_value): Declare.
20074
20075 2002-01-01  Tom Rix  <trix@redhat.com>
20076
20077         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20078         rs6000_emit_allocate_stack.
20079
20080 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
20081
20082         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20083         ${srcdir}/ginclude/ to every entry in extra_headers.
20084         * configure: Regenerate.
20085         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20086         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20087         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20088         * ginclude/proto.h: Rename to config/convex/proto.h.
20089
20090 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20091
20092         * attribs.c (handle_vector_size_attribute): Use host_integerp
20093         and tree_int_cst; remove warnings.
20094         * caller-save.c (insert_restore): Add cast to get rid of warning.
20095         (insert_save): Likewise.
20096         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20097         * regmove.c (find_matches): Add temporary var to kill a warning.
20098
20099 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
20100
20101         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20102         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20103         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20104         (vms-dwarf2eh.o): Add Makefile rule.
20105         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20106         * config/alpha/vms-dwarf2eh.asm: New file.
20107
20108         * gcc.c (delete_if_ordinary): Delete all versions.
20109
20110 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
20111
20112         * config/mmix/mmix.md: Update FIXME to not mention
20113         define_constants.
20114         (MMIX_rJ_REGNUM): New define_constants constant.
20115         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20116         "*movdicc_real"): Adjust contraints formatting.
20117         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20118         for branch prediction.
20119         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20120         output template.
20121         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20122         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20123         number.  Delete related FIXMEs.
20124         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20125         from number to MMIX_rJ_REGNUM.
20126         (TARGET_MASK_BRANCH_PREDICT): New.
20127         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20128         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
20129         value.  Add -mbranch-predict and -mno-branch-predict.
20130         (TARGET_VERSION): Drop date.
20131         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20132         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20133         for finding out global symbols.
20134         (mmix_asm_output_labelref): Revert condition for global symbol.
20135         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20136         (mmix_print_operand_punct_valid_p): A '+' is valid.
20137
20138 See ChangeLog.6 for earlier changes.