OSDN Git Service

PR optimization/6759
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2
3         PR optimization/6759
4         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
5         the REQ_EQUAL note.
6
7 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8
9         PR c/6660
10         * c-decl.c (grokfield): Allow user defined types if they declare
11         structs or unions for unnamed fields.
12
13 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
14
15         PR c/6809
16         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
17
18 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
19
20         PR optimization/6842
21         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
22         operand subreg cannot be simplified.
23
24 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
25
26         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
27         (compare_constant): Likewise.
28         (output_addressed_constants): Likewise.
29
30 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
31
32         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
33         merge bb with itself.
34
35 2002-06-10  Richard Henderson  <rth@redhat.com>
36
37         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
38         (builtin_zapnot): Likewise.
39
40         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
41         reservation.
42
43 2002-06-10  Eric Christopher  <echristo@redhat.com>
44
45         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
46         prototype and function.
47         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
48         (call_insn_operand): Remove half pic references.
49         (legitimate_address_p): Ditto.
50         * config/i386/i386.h: Remove half pic defines.
51
52 2002-06-10  Eric Christopher  <echristo@redhat.com>
53
54         * doc/extend.texi (Return Address): Add note explaining the side-
55         effects of inlining on __builtin_return_address.
56
57 2002-06-10  Tom Tromey  <tromey@redhat.com>
58
59         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
60         (c-common.o): Depend on langhooks.h.
61
62 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
63
64         * cpphash.h (_cpp_read_logical_line_trad,
65         _cpp_expansions_different_trad): Update prototypes.
66         * cpplex.c (continue_after_nul): New.
67         * cppmain.c: Include cpphash.h.
68         (scan_translation_unit_trad): New.
69         (cpp_preprocess_file): Call it.
70         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
71         overlay.
72         (_cpp_expansions_different_trad): Update prototype.
73
74 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
75
76         Fix cfi generation for SH[1-4]:
77
78         * sh.c (frame_insn): New function.
79         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
80         (push): Now returns rtx.  Use frame_insn.
81         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
82         of a DF register.
83         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
84
85 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
86
87         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
88         and gtype-desc.c.
89         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
90         (distclean): ... not here.  But do delete all testsuite/*.log,
91         testsuite/*.sum files here.  Delete mkheaders.  Delete
92         po/*.gmo and the testsuite directory in a split tree build.
93
94 2002-06-10  Jeffrey Law  <law@redhat.com>
95
96         * alias.c (static_reg_base_value): New to hold RTL for
97         items allocated once per function for the aliasing code.
98         (init_alias_once_per_function): Initialize static_reg_base_value.
99         (init_alias_analysis): Avoid throw-away allocations of RTL by
100         using pre-computed values in static_reg_base_value.
101         * function.c (prepare_function_start): Call
102         init_alias_once_per_function appropriately.
103         * rtl.h (init_alias_once_per_function): Declare.
104         * caller-save (init_caller_save): Restructure slightly to
105         avoid lots of silly RTL generation.
106         * expr.c (init_expr_once): Likewise.
107         * reload1.c (reload_cse_regs_1): Allocate throw-away register
108         RTL object here.  Pass it into children.
109         (reload_cse_simplify_operands): Use passed-in register RTL
110         object.
111         (reload_cse_simplify): Pass through throw-away register
112         RTL object.
113
114 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
115
116         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
117
118 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
119
120         * gcc.c (process_command): Avoid assignment to read-only location.
121         Fix sizeof calculation.
122
123 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
124
125         * cpphash.h (struct cpp_macro): Put comments on their own lines.
126         (_cpp_expansions_different_trad): New.
127         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
128         * cpptrad.c (canonicalize_text): New.
129         (scan_out_logical_line): Handle no arguments correctly.
130         (save_replacement_text): Commit memory when finished.
131         (_cpp_expansions_different_trad): New.
132
133 2002-06-10  Tim Josling  <tej@melbpc.org.au>
134
135         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
136         TREELANG and COBOL.
137         (lang_names): Add treelang and cobol.
138         (get_file_basename): Add code to support treelang and cobol as
139         4th and 5th users of c-common.c.
140
141 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
142
143         * Makefile.in (install-driver): Install driver as
144         $(target_alias)-gcc-$(version).
145         * gcc.c (spec_version): Make const.
146         (process_command): Handle -V and -b by using exec.
147         * doc/invoke.texi (Target Options): Restore -V option,
148         update docs for -b option.
149
150 2002-06-10  Tim Josling  <tej@melbpc.org.au>
151
152         * configure.in (remaining_languages_check):
153         Added check that all languages specified were found.
154         Exit if not found. Previous behaviour was silent failure.
155         * configure: Regenerated.
156
157 2002-06-10  Tim Josling  <tej@melbpc.org.au>
158
159          First steps to making treelang documentation compliant, based on
160          instructions in sourcebuild.texi. Also add to gcc.c list of
161          default languages.
162
163         * doc/contrib.texi: Add self as contributor of treelang.
164
165         * doc/frontends.texi: Add mention of treelang.
166
167         * doc/invoke.texi (Overall Options): Add mention of treelang.
168
169         * doc/standards.texi:  Add mention of treelang.
170
171 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
172
173         * config/cris/cris.c: Include ggc.h
174
175 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
176
177         * cpphash.h (_cpp_push_text_context): Update.
178         (_cpp_arguments_ok): New.
179         * cppmacro.c (_cpp_arguments_ok): New, split out from...
180         (collect_args): ...here.
181         (_cpp_push_text_context): Change inputs.
182         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
183         replace_args_and_push): New.
184         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
185         Don't use IS macros directly.
186         (scan_out_logical_line): Handle function-like macro argument
187         collection.
188         (push_replacement_text): Update.
189         (replacement_length): Remove.
190         (_cpp_create_trad_definition): Don't skip whitespace before
191         checking for '('.
192
193 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
194
195         * config/avr/avr.c (avr_mcu_types): Update for new devices.
196         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
197         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
198         * config/avr/avr.md ("type" and "length" attributes): New type
199         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
200         output a single "call" or "rcall" insn depending on device size.
201         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
202
203 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
204
205         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
206         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
207         assembler option.
208         (CPP_CPU_SPEC): Add power3 and power4.
209         (PROCESSOR_DEFAULT): Change to 604e.
210         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
211         (CPP_CPU_SPEC): Similar additions.
212         (enum process_type): Add POWER4.
213         (RTX_COSTS): Add POWER4.
214         (CPP_CPU_SPEC): Similar additions.
215         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
216         (PROCESSOR_DEFAULT64): Define.
217         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
218         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
219         branch adjustment.
220         (rs6000_issue_rate): Add Power4.
221         * config/rs6000/rs6000.md (cpu attr): Add power4.
222         (iu compare): Remove 604, 604e, 620, 630.
223         Add basic Power4 scheduling information.
224         (mfcr/mtcrf): Change type attribute to cr_logical.
225
226 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
227
228         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
229         ATTRIBUTE_PRINTF_2.
230         * gengtype-lex.l: Fix format specifier warning.
231
232         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
233         not isspace.
234         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
235         lieu of isspace/IDchar.
236         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
237         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
238         ISSPACE.
239
240 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
241
242         * Makefile.in (LIBCPP_OBJS): Take out version.o.
243         * cpphash.h (cpp_reader): Take out print_version member.
244         * cppinit.c: (cpp_handle_option): Don't do anything with
245         -version.  Just set help_only for --version, --target-help.
246         Just set verbose option for -v.
247         (cpp_post_options): Don't print a version string.
248
249 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
250
251         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
252         (avr_section_type_flags): New, handle .noinit* sections.
253
254 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
255
256         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
257         and include netbsd_entry_point.
258         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
259         (NETBSD_ENTRY_POINT): Define.
260
261 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
262
263         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
264         if not already defined.
265         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
266
267 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
268
269         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
270         in a noreturn function.
271         (avr_output_function_prologue, avr_output_function_epilogue):
272         Correct function size calculation.  Do not crash on empty function.
273         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
274
275 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
276
277         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
278         netbsd_link_spec and netbsd_entry_point.
279         (LINK_SPEC): Use %(netbsd_link_spec).
280         (NETBSD_ENTRY_POINT): Define.
281
282 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
283
284         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
285         linker emulation.
286         (LINK_ARCH64_SPEC): Likewise.
287         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
288         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
289
290 2002-06-08  Marc Espie  <espie@openbsd.org>
291
292         * lists.c (free_list):  Fix typo in comment.
293
294 2002-06-08  Andreas Jaeger  <aj@suse.de>
295
296         * lcm.c (optimize_mode_switching): Add unused attribute for
297         variable.
298
299         * sched-deps.c (sched_analyze): Remove unused variable.
300
301 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
302
303         * diagnostic.def: Don't capitalize diagnostict descriptors.
304
305 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
306
307         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
308         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
309         (NETBSD_ENTRY_POINT): Define.
310
311 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
312
313         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
314         NETBSD_LINK_SPEC_ELF.
315         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
316         (NETBSD_ENTRY_POINT): Define.
317         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
318         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
319         netbsd_entry_point.
320         (NETBSD_ENTRY_POINT): Define.
321
322 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
323
324         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
325         netbsd_link_spec and netbsd_entry_point.
326         (LINK_SPEC): Use %(netbsd_link_spec).
327         (NETBSD_ENTRY_POINT): Define.
328
329 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
330
331         * config/netbsd-elf.h (LINK_SPEC): Rename to...
332         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
333         to specify program entry point.
334
335 2002-06-07  Jeff Law <law@redhat.com
336
337         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
338         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
339         than creating a new register.
340         (distribute_notes): Likewise.
341         * df.c (df_reg_use_gen): Likewise.
342         (df_reg_clobber_gen): Likewise.
343         (df_ref_record): Likewise.
344         * expr.c (use_regs): Likewise.
345         * flow.c (propagate_one_insn): Likewise.
346         (mark_set_1): Likewise.
347         (mark_used_reg): Likewise.
348         * reload.c (emit_reload_insns): Likewise.
349
350 2002-06-07  Roger Sayle  <roger@eyesopen.com>
351
352         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
353         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
354         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
355         comparison code comp can be reversed.
356
357 2002-06-07  Roger Sayle  <roger@eyesopen.com>
358
359         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
360         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
361         equivalent x > -1.0 when -ffast-math.
362
363 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
364
365         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
366         * config/mips/t-netbsd: New file.
367
368 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
369
370         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
371         options their own entries.
372         (parse_option): Clarify comment.
373         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
374         special case.  Replace if/strcmp chain for -W options with
375         use of new OPT_* entries for them.
376         (cpp_handle_options): Update to match.
377         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
378         * c-decl.c: Update call to cpp_handle_option.
379
380 2002-06-07  Akim Demaille  <akim@epita.fr>
381
382         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
383         Whitespace changes.
384
385 2002-06-07  Jeffrey Law  <law@redhat.com>
386
387         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
388         on empty lists.
389
390 2002-06-07  H.J. Lu  (hjl@gnu.org)
391
392         * configure.in: Add --enable-__cxa_atexit.
393         * configure: Regenerated.
394         * config.in: Likewise.
395
396         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
397         not defined.
398
399 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
400
401         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
402
403 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
404
405         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
406
407 2002-06-07  Jason Merrill  <jason@redhat.com>
408
409         * cppexp.c (num_equality_op): Use a temporary variable to work
410         around gcc 3.0.4 bug.
411
412 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
413
414         * diagnostic.c (diagnostic_build_prefix): Tidy.
415
416 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
417
418         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
419         scan_parameters, save_replacement_text, replacement_length): New.
420         (scan_out_logical_line): Take a macro and save parameters if
421         non-NULL.
422         (_cpp_logical_line_trad): Update.
423         (_cpp_create_trad_definition): Update to handle function-like
424         macros.
425         * cpplex.c (new_buff): Update.
426         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
427         * cpphash.h: ...here.
428         (CPP_ALIGN2, _cpp_save_parameter): New.
429         * cppmacro.c (save_parameter): Rename, export.
430         (parse_params): Update.
431
432 2002-06-07  Andreas Jaeger  <aj@suse.de>
433
434         * config/mmix/mmix.c: Remove extra broken prototype for
435         mmix_init_machine_status.
436
437 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
438
439         * gengtype.c: Add comments before all the routines.
440
441 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
442
443         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
444         from and add t-sh64 to ${tmake_file}.
445         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
446         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
447         * config/sh/t-netbsd-sh5-32: Remove.
448         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
449         MULTILIB_ENDIAN.
450         (MULTILIB_DIRNAMES): Define.
451
452 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
453
454         * i386.md (and promoting splitters): Disable QI to SImode promoting
455         when doing so changes immediate to be 32bit.
456
457         * rtl.h (emit_*_scope): Declare.
458         * emit-rtl.c (emit_*_scope): New global functions.
459         (try_split): Copy scope.
460         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
461         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
462         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
463         noce_process_if_block, find_cond_trap): Copy scopes.
464         * recog.c (peephole2_optimize): likewise.
465
466 2002-06-06  Jeffrey Law  <law@redhat.com>
467
468         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
469
470 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
471
472         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
473
474 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
475
476         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
477         ($(docdir)/gccinstall.info): New target.
478         (info): Depend on it.
479         (gccinstall.dvi): New target.
480         (dvi): Depend on it.
481         * doc/.cvsignore: Ignore new info files.
482         * doc/install.texi (@setfilename): Reflect new info filename.
483
484 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
485
486         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
487         on an UNSPEC.
488
489 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
490
491         PR objc/6834
492         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
493         c_common_get_alias_set.
494         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
495
496 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
497
498         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
499         functions.
500         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
501         * avr/avr.c (avr_output_function_epilogue): Use above to determine
502         function size.
503         * pa/pa.c (pa_output_function_prologue): Likewise.
504
505 2002-06-05  David S. Miller  <davem@redhat.com>
506
507         * integrate.c (subst_constants): Handle 'B' RTL format.
508
509 2002-06-05  Eric Christopher  <echristo@redhat.com>
510
511         * varasm.c (make_decl_rtl): Fix comment for removed
512         halfpic.c.
513
514 2002-06-05  Eric Christopher  <echristo@redhat.com>
515
516         * Makefile.in: Remove missed halfpic bits.
517
518 2002-06-05  Eric Christopher  <echristo@redhat.com>
519
520         * toplev.c: Remove half-pic.
521         * config/mips/mips.c: Ditto.
522         * config/mips/mips.h: Ditto. Remove unused defines.
523         * config/mips/openbsd.h: Update comment to reflect above.
524         * config/mips/mips.md: Remove half-pic constraints.
525         * halfpic.h: Delete.
526         * halfpic.c: Ditto.
527
528 2002-06-05  Jeffrey Law  <law@redhat.com>
529
530         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
531         rejects (mem (lo_sum (reg) (unspec))), but will allow
532         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
533
534 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
535
536         * cpphash.h (_cpp_create_definition): Update prototype.
537         (_cpp_push_text_context, _cpp_create_trad_definition): New.
538         ( cpp_lex_identifier_trad): New.
539         (_cpp_set_trad_context): New.
540         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
541         * cpplib.c (SEEN_EOL): Update.
542         (lex_macro_node): Update for -traditional.
543         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
544         * cppmacro.c (_cpp_create_definition): Split into
545         create_iso_definition() and _cpp_create_trad_definition().
546         (warn_of_redefinition): Update prototype; handle traditional
547         macros.
548         (_cpp_push_text_context): New.
549         * cpptrad.c (skip_whitespace, push_replacement_text): New.
550         (lex_identifier): Call ht_lookup with correct start.
551         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
552         _cpp_set_trad_context): New.
553         (scan_out_logical_line): Update to handle changing contexts.
554
555 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
556
557         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
558         (shl*-*-elf*): Add.
559         * config/sh/t-be (MULTILIB_ENDIAN): Set.
560         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
561         * t-sh (MULTILIB_ENDIAN): Set.
562         (MULTILIB_OPTIONS): Use it.
563         * t-sh64 (MULTILIB_OPTIONS): Likewise.
564         (MULTILIB_DIRNAMES): Likewise.
565
566 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
567
568         * toplev.h (report_error_function): Remove.
569
570         * diagnostic.h (location_t): New datatype.
571         (text_info): Likewise.
572         (diagnostic_info): Likewise.
573         (output_prefix): New macro.
574         (diagnostic_last_function_changed): Likewise.
575         (diagnostic_set_last_function): Likewise.
576         (diagnostic_last_module_changed): Likewise.
577         (diagnostic_set_last_module): Likewise.
578         (report_diagnostic): Now macro.
579         (diagnostic_set_info): Declare.
580
581         * diagnostic.c (report_problematic_module): Rename to
582         diagnostic_repor_current_module.
583         (set_diagnostic_context): Remove.
584         (count_error): Rename to diagnostic_error_count.
585         (error_function_changed): Remove.
586         (record_last_error_function): Likewise.
587         (error_module_changed): Likewise.
588         (record_last_error_module): Likewise.
589         (context_as_prefix): Rename to diagnostic_build_prefix.
590         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
591         (diagnostic_set_info): New function.
592
593         * objc/objc-act.c: #include diagnostic.h
594         (error_with_ivar): Adjust call to count_error.
595         (warn_with_method): Likewise.
596         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
597
598 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
599
600         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
601         lang_hooks.types.make_type instead of make_node; set up
602         __va_list_tag type decl.
603         (xtensa_builtin_saveregs): Remove broken use of
604         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
605         for saved registers; add varargs alias set.
606
607 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
608
609 config:
610         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
611         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
612         CPP_PREDEFINES and part of CPP_SPEC.
613         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
614         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
615
616 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
617
618         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
619
620 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
621
622         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
623
624 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
625
626         * gengtype-yacc.y: Make sure all rules end with a semicolon.
627
628 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
629
630         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
631         typo in function prototype and include "ggc.h" header.
632
633 2002-06-04  Richard Henderson  <rth@redhat.com>
634
635         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
636         (print_operand) ['U']: Likewise.
637         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
638         (alpha_expand_unaligned_store_words): Likewise.
639         (alpha_expand_builtin_vector_binop): Fix typo.
640         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
641         umulh, and cix insns.
642         (one_arg_builtins): Add cix builtins.
643         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
644         (alpha_expand_builtin): Fix typo in arity.
645         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
646         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
647         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
648         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
649         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
650         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
651         builtin_ctlz, builtin_ctpop): New.
652         * doc/extend.texi (Alpha Built-in Functions): Update.
653
654 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
655
656         * gengtype.c (write_gc_root): Don't unnecessarily prevent
657         global variable-length arrays being roots.
658
659         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
660         * configure.in (config_gtfiles): New variable.
661         (all_gtfiles): Initialise from config_gtfiles.
662         * configure: Regenerate.
663
664 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
665
666 config/i386:
667         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
668         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
669         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
670         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
671         win32.h (CPP_SPEC): Remove cpp_cpu.
672         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
673         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
674
675 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
676
677         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
678
679 2002-06-04  Jeff Law <law@redhat.com.
680             David Edelsohn <edelsohn@gnu.org>
681             Michael Matz <matz@kde.org>
682
683         * sched-int.h (struct deps): New field libcall_block_tail_insn.
684         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
685         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
686         is set, then mark the current insn as being part of a libcall
687         scheduling group.
688         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
689
690         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
691         insns against the issue rate.
692
693 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
694
695         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
696         * final.c (final_scan_insn): Likewise.
697         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
698         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
699         * haifa-sched.c (unlink_other_notes): Likeewise.
700         (reemit_notes): Likewise.
701         * print-rtl.c (print_rtx): Likewise.
702         * sched-deps (sched-analyze): Likewise.
703         * rtl.c (note_insn_name): Likewise.
704         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
705         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
706         (RANGE_*): Kill.
707
708 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
709
710         * varasm.c (mark_constants): Handle RTX format 'B'.
711
712 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
713
714         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
715         (struct cpp_context): Add traditional fields.
716         * cppmacro.c (paste_all_tokens, push_ptoken_context,
717         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
718         * cpptrad.c (skip_comment, lex_identifier,
719         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
720
721 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
722
723         * gbl-ctors.h: Fix formatting.
724         * gcc.c: Likewise.
725         * gccspec.c: Likewise.
726         * gcov.c: Likewise.
727         * gcov-io.h: Likewise.
728         * gcse.c: Likewise.
729         * ggc-common.c: Likewise.
730         * ggc.h: Likewise.
731         * ggc-page.c: Likewise.
732         * ggc-simple.c: Likewise.
733         * global.c: Likewise.
734         * graph.h: Likewise.
735         * gthr-dce.h: Likewise.
736         * gthr.h: Likewise.
737         * gthr-posix.h: Likewise.
738         * gthr-rtems.h: Likewise.
739         * gthr-solaris.h: Likewise.
740         * gthr-win32.h: Likewise.
741
742 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
743
744         Merge from pch-branch:
745
746         * gengtype.h (UNION_OR_STRUCT_P): New macro.
747         * gengtype.c (write_gc_structure_fields): Use it.
748         (write_gc_root): Use it here too.
749
750         * gengtype.c (write_gc_structure_fields): Assume that lengths
751         of typenames fit into an 'int'; don't pass a size_t to "%d" in
752         printf.
753         (write_gc_marker_routine_for_structure): Likewise.
754         (write_gc_types): Likewise.
755         (write_gc_root): Likewise.
756
757         * varray.h (VARRAY_CLEAR): New.
758         (varray_clear): Prototype.
759         * varray.c (varray_clear): New.
760         * cselib.c (reg_values_old): New.
761         (used_regs_old): New.
762         (cselib_init): Use cached varrays if available to avoid
763         generating large amounts of garbage.
764         (cselib_finish): Don't throw away old varrays.
765
766         * final.c (insn_addresses_): Move out of ifdef.
767
768         * varray.c (uses_ggc): Make more varray kinds GCable.
769         * varray.h (union varray_data_tag): Let gengtype see
770         fields 'generic' and 'te'.
771         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
772         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
773         (reg_to_stack): Don't call VARRAY_FREE.
774         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
775         (insn_addresses_): Use gengtype to mark.
776         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
777         pointers; handle generic pointers in unused union fields.
778         (get_output_file_with_visibility): Include cselib.h,
779         insn-addr.h in gtype-desc.c.
780         * function.c (prologue): Use gengtype to mark.
781         (epilogue): Likewise.
782         (sibcall_epilogue): Likewise.
783         * dependence.c: Include gt-dependence.h, ggc.h.
784         (struct def_use): Use gengtype to mark.
785         (struct loop): Likewise.
786         (struct induction): Likewise.
787         (struct dependence): Likewise.
788         (def_use_chain): Likewise.
789         (dep_chain): Likewise.
790         (loop_chain): Likewise.
791         (induction_chain): Likewise.
792         (init_dependence_analysis): Don't free anything, just clear pointers.
793         (build_def_use): Use GGC to allocate def_use.
794         (add_loop): Use GGC to allocate loop.
795         (find_induction_variable): Use GGC to allocate induction.
796         (check_node_dependence): Use GGC to allocate induction, dependence.
797         (dump_node_dependence): Don't free varrays.
798         (end_dependence_analysis): Likewise.
799         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
800         (struct elt_loc_list): Likewise.
801         (struct elt_list): Likewise.
802         * cselib.c: Don't include obstack.h.
803         (hash_table): Use gengtype to mark.
804         (reg_values): Use gengtype to mark.
805         (used_regs): Use gengtype to mark.
806         (cselib_obstack): Delete.
807         (cselib_startobj): Delete.
808         (empty_vals): Mark as deletable.
809         (empty_elt_lists): Mark as deletable.
810         (empty_elt_loc_lists): Mark as deletable.
811         (new_elt_list): Use GGC to allocate struct elt_list.
812         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
813         (clear_table): Don't delete obstack; don't unnecessarily clear
814         deletable variables.
815         (new_cselib_val): Use GGC to allocate struct cselib_val.
816         (cselib_init): Don't set up obstacks.  Use GGC to allocate
817         hash table.
818         (cselib_finish): Just clear variables, don't free anything.
819         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
820         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
821         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
822         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
823         (gt-reg-stack.h): New rule.
824         (gt-dependence.h): New rule.
825         (gtype-desc.o): Add cselib.h, insn-addr.h.
826
827         * varray.c: Use only necessary headers.
828         (element_size): New.
829         (uses_ggc): New.
830         (varray_init): Take type, not size.  Use GGC if appropriate.
831         (varray_grow): Update for change to struct varray_head_tag.
832         Use GGC if appropriate.
833         * varray.h (struct const_equiv_data): Use gengtype.
834         (enum varray_data_enum): New.
835         (union varray_data_tag): Use gengtype.
836         (struct varray_head_tag): Use gengtype.  Replace size field with
837         enum varray_data_enum.
838         (varray_init): Update prototype.
839         (VARRAY_SCHED_INIT): Delete.
840         (VARRAY_*_INIT): Update for change to varray_init.
841         (VARRAY_SCHED): Delete.
842         (VARRAY_PUSH_SCHED): Delete.
843         (VARRAY_TOP_SCHED): Delete.
844         * tree.h: Update for change to length specifier.
845         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
846         (clone_body): Likewise.
847         * ssa.h (ssa_definition): Use gengtype to mark.
848         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
849         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
850         * rtl.h (struct rtvec_def): Update for change to length specifier.
851         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
852         (struct initial_value_struct): Update for change to length specifier.
853         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
854         (ggc_add_tree_varray_root): Delete prototype.
855         (ggc_mark_rtx_varray): Delete prototype.
856         (ggc_mark_tree_varray): Delete prototype.
857         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
858         (ggc_add_tree_varray_root): Delete.
859         (ggc_mark_rtx_varray): Delete.
860         (ggc_mark_tree_varray): Delete.
861         (ggc_mark_rtx_varray_ptr): Delete.
862         (ggc_mark_tree_varray_ptr): Delete.
863         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
864         (create_varray): Delete prototype.
865         * gengtype.c (varrays): Delete.
866         (create_varray): Delete.
867         (adjust_field_type): Detect array of string pointers.
868         (process_gc_options): Remove code to handle varray_type option.
869         (set_gc_used_type): Remove TYPE_VARRAY case.
870         (output_escaped_param): New.
871         (write_gc_structure_fields): Use output_escaped_param on all
872         parameters.  Handle 'skip' with 'use_param' option.  Handle
873         arrays of strings.  Remove TYPE_VARRAY handling.
874         (write_gc_roots): Use boolean to detect 'length' option.
875         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
876         (struct_fields): Call adjust_field_type on array fields.
877         (type): Remove VARRAY_TYPE case.
878         (type_option): Likewise.
879         * gengtype-lex.l: Don't consider varray_type a keyword.
880         * function.h: Update for change to length specifier.
881         (free_eh_status): Delete prototype.
882         * function.c (free_after_compilation): Don't call free_eh_status.
883         (reorder_blocks): Don't use VARRAY_FREE.
884         * except.c (struct eh_status): Update for change to length specifier.
885         remove varray_type specifier.
886         (free_eh_status): Delete.
887         * dwarf2out.c: Include gt-dwarf2out.h.
888         (used_rtx_varray): Use gengtype to mark, move
889         outside ifdefs.
890         (incomplete_types): Likewise.
891         (decl_scope_table): Likewise.
892         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
893         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
894         * c-tree.h (struct lang_type): Update for change to length specifier.
895         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
896         * c-objc-common.c: Include gt-c-objc-common.h.
897         (deferred_fns): Mark for gengtype.
898         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
899         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
900         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
901         (gtype-desc.o): Update dependencies.
902         (dwarf2out.o): Add gt-dwarf2out.h.
903         (varray.o): Update dependencies.
904         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
905         (gt-c-objc-common.h): New rule.
906         (gt-dwarf2out.h): New rule.
907         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
908
909         * doc/gty.texi (GTY Options): Correct spelling.
910         (GGC Roots): Likewise.
911         * Makefile.in (TEXI_CPP_FILES): New.
912         (TEXI_GCC_FILES): New.
913         (TEXI_GCCINT_FILES): New.
914         (TEXI_CPPINT_FILES): New.
915         ($(docdir)/cpp.info): Use new macros.
916         ($(docdir)/gcc.info): Likewise.
917         ($(docdir)/gccint.info): Likewise.
918         ($(docdir)/cppinternals.info): Likewise.
919         (cpp.dvi): Likewise.
920         (gcc.dvi): Likewise.
921         (gccint.dvi): Likewise.
922         (cppinternals.dvi): Likewise.
923
924         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
925         * doc/gccint.texi (Top): Include gty.texi.
926         * doc/gty.texi: New file.
927
928         * bitmap.c: Include ggc.h, gt-bitmap.h.
929         (bitmap_ggc_free): New.
930         (bitmap_elem_to_freelist): New.
931         (bitmap_element_free): Use bitmap_elem_to_freelist.
932         (bitmap_element_allocate): Allow use of GGC.
933         (bitmap_clear): Use bitmap_elem_to_freelist.
934         (bitmap_copy): Update for change to bitmap_element_allocate.
935         (bitmap_set_bit): Likewise.
936         (bitmap_operation): Update for changes elsewhere.
937         (bitmap_initialize): Allow to create bitmaps that will use GGC.
938         * bitmap.h (struct bitmap_element_def): Use gengtype.
939         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
940         (bitmap_initialize): Add extra parameter.
941         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
942         (BITMAP_ALLOCA): Delete.
943         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
944         (BITMAP_GGC_ALLOC): New.
945         * Makefile.in (gtype-desc.o): Add bitmap.h.
946         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
947         (GTFILES): Add bitmap.c.
948         (gt-bitmap.h): New rule.
949         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
950         * basic-block.h: Update for changes to bitmap_initialize.
951         * except.c (exception_handler_label_map): Move into...
952         (struct eh_status): Here.
953         (struct eh_region): Make 'aka' GCable.
954         (free_eh_status): Don't need to specially handle
955         exception_handler_label_map.
956         (add_ehl_entry): Update for changes to exception_handler_label_map.
957         (find_exception_handler_labels): Likewise.
958         (remove_exception_handler_label): Likewise.
959         (maybe_remove_eh_handler): Likewise.
960         (for_each_eh_label): Likewise.
961         (remove_eh_handler): Allocate 'aka' using GGC.
962         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
963         to list of includes.
964
965         * gengtype.c (write_gc_marker_routine_for_structure): Name
966         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
967         (write_gc_types): Arrange for the tests with NULL to be inlined.
968         (write_gc_roots): Update uses of procedure pointers.
969         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
970
971         * Makefile.in (explow.o): Add dependency on gt-explow.h.
972         (sdbout.o): Add dependency on gt-sdbout.h.
973
974         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
975         (mem_attrs_htab): Likewise.
976         (init_emit_once): Don't call ggc_add_deletable_htab.
977         * fold-const.c (size_htab): Use gengtype to clear unused entries.
978         (size_int_type_wide): Don't call ggc_add_deletable_htab.
979         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
980         parameters, use them, change callers.
981         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
982         (write_gc_roots): Handle 'if_marked' option.
983         (main): Don't need to call set_gc_used_type any more.
984         * ggc.h (ggc_htab_marked_p): Delete.
985         (ggc_htab_mark): Delete.
986         (struct ggc_cache_tab): New.
987         (gt_ggc_cache_rtab): New declaration.
988         * ggc-common.c (struct d_htab_root): Delete.
989         (d_htab_roots): Delete.
990         (ggc_add_deletable_htab): Delete.
991         (ggc_htab_delete): Handle new htab-deleting mechanism.
992         (ggc_mark_roots): Use new htab-deleting mechanism.
993         * tree.c (type_hash_table): Use gengtype to clear unused entries.
994         Make static.
995         (init_obstacks): Don't call ggc_add_deletable_htab.
996
997         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
998         (struct hashed_entry): Likewise.
999         (nst_method_hash_list): Likewise.
1000         (cls_method_hash_list): Likewise.
1001         (HASH_ALLOC_LIST_SIZE): Delete.
1002         (ATTR_ALLOC_LIST_SIZE): Delete.
1003         * objc/objc-act.c (hash_init): Use ggc to allocate
1004         nst_method_hash_list, cls_method_hash_list.
1005         (hash_enter): Use ggc to allocate; allocate one entry at a time.
1006         (hash_add_attr): Likewise.
1007         (ggc_mark_hash_table): Delete.
1008         (objc_act_parse_init): Delete.
1009         (objc_init): Delete reference to objc_act_parse_init.
1010         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
1011         obstack.h.  Replace references to 'struct hash_table' with htab_t.
1012         (struct symbol_hash_entry): Replace hash header with key field.
1013         (struct file_hash_entry): Replace hash header with key field.
1014         (struct demangled_hash_entry): Replace hash header with key field.
1015         (hash_string_eq): New.
1016         (hash_string_hash): New.
1017         (symbol_hash_newfunc): Delete.
1018         (symbol_hash_lookup): Modify to use htab_t.
1019         (file_hash_newfunc): Delete.
1020         (file_hash_lookup): Modify to use htab_t.
1021         (demangled_hash_newfunc): Delete.
1022         (demangled_hash_lookup): Modify to use htab_t.
1023         (tlink_init): Modify to use htab_t.
1024         * hash.h: Delete.
1025         * hash.c: Delete.
1026         * ggc.h: Delete forward structure declarations.
1027         Delete prototypes for deleted functions.
1028         * ggc-common.c: Don't include hash.h.
1029         (ggc_add_tree_hash_table_root): Delete.
1030         (ggc_mark_tree_hash_table_entry): Delete.
1031         (ggc_mark_tree_hash_table): Delete.
1032         (ggc_mark_tree_hash_table_ptr): Delete.
1033         * gengtype.c (write_gc_structure_fields): Allow param_is option.
1034         (write_gc_marker_routine_for_structure): Use visibility of
1035         the parameter if there is one.
1036         * function.c: Replace hash.h with hashtab.h.  Replace references
1037         to 'struct hash_table *' with htab_t.
1038         (struct insns_for_mem_entry): Include a plain key.
1039         (fixup_var_refs_insns_with_hash): Update to use htab_t.
1040         (insns_for_mem_newfunc): Delete.
1041         (insns_for_mem_hash): Update to use htab_t.
1042         (insns_for_mem_comp): Likewise.
1043         (insns_for_mem_walk): Likewise.
1044         * c-lang.c: Include ggc.h.
1045         * Makefile.in (OBJS): Remove hash.o.
1046         (c-lang.o): Add GGC_H.
1047         (COLLECT2_OBJS): Remove hash.o.
1048         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1049         (ggc-common.o): Remove hash.h.
1050         (function.o): Remove hash.h, add HASHTAB_H.
1051         (genautomata.o): Remove hash.h, add HASHTAB_H.
1052
1053         * varasm.c (mark_const_str_htab_1): Delete.
1054         (mark_const_str_htab): Delete.
1055         (const_str_htab_del): Delete.
1056         (const_str_htab): Use gengtype to mark.
1057         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
1058         allocate them.
1059         * tree.c (mark_tree_hashtable_entry): Delete.
1060         (mark_tree_hashtable): Delete.
1061         * tree.h (mark_tree_hashtable): Delete prototype.
1062         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1063         (ggc_mark): Likewise.
1064         (ggc_calloc): New.
1065         (htab_create_ggc): New.
1066         * ggc-common.c (ggc_calloc): New.
1067         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1068         (struct type): Add param_struct structure.
1069         * gengtype.c (param_structs): New.
1070         (adjust_field_type): Handle param_is option.
1071         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1072         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1073         (write_gc_structure_fields): Add new PARAM parameter.  Update
1074         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
1075         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1076         Use it to generate function name.  Update callers.
1077         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
1078         Process them.
1079         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
1080         option.
1081         (main): Define PTR as pointer-to-scalar.  Don't specially
1082         mark deferred_string or ehl_map_entry.
1083         * gengtype-yacc.y (PARAM_IS): Add new token.
1084         (externstatic): Use adjust_field_type.
1085         (type_option): Add PARAM_IS.
1086         * gengtype-lex.l: Add rule for typedef of function pointers.
1087         Add rule for PARAM_IS.
1088         (IWORD): Add size_t.
1089         * except.c (exception_handler_label_map): Use gengtype to mark.
1090         (type_to_runtime_map): Likewise.
1091         (mark_ehl_map_entry): Delete.
1092         (mark_ehl_map): Delete.
1093         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1094         (t2r_mark_1): Delete.
1095         (t2r_mark): Delete.
1096         * Makefile.in (gtype-desc.o): Correct dependencies.
1097         (GTFILES): Add hashtab.h.
1098         (genautomata.o): Actually uses hashtab.h.
1099
1100         * Makefile.in (stringpool.o): Add $(GGC_H).
1101         (dwarf2asm.o): Likewise.
1102         (GTFILES): Add hashtable.h.
1103         * c-common.h (struct c_common_identifier): Use gengtype.
1104         * c-decl.h (c_mark_tree): Delete.
1105         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1106         * c-tree.h (struct lang_identifier): Use gengtype.
1107         (union lang_tree_node): New.
1108         (c_mark_tree): Delete prototype.
1109         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1110         dwarf2_debug_hooks.
1111         * gengtype-lex.l (IWORD): Allow 'bool'.
1112         (ptr_alias): Match.
1113         * gengtype-yacc.y (ALIAS): New token.
1114         (type_option): New rule.
1115         (option): Use type_option.
1116         * gengtype.c (process_gc_options): New.
1117         (set_gc_used_type): Use it.
1118         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1119         Add new variable 't' to hold the type of the field being processed.
1120         Add more error checking.  Use UNION_P when looking at 'desc' option.
1121         Handle language-specific structures containing other
1122         language-specific structures.
1123         (write_gc_types): Handle 'ptr_alias' option.
1124         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1125         * ggc-common.c (ggc_pending_trees): Delete.
1126         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1127         (ggc_mark_trees): Delete.
1128         (gt_ggc_m_tree_node): Delete.
1129         * ggc.h (ggc_pending_trees): Delete.
1130         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1131         * hashtable.h (ht_identifier): Use gengtype.
1132         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1133         * langhooks.h (struct lang_hooks): Delete mark_tree.
1134         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1135         anyway.
1136         * system.h: Poison LANG_HOOKS_MARK_TREE.
1137         * tree.c (tree_node_structure): New.
1138         * tree.h (struct tree_common): Use gengtype.
1139         (struct tree_int_cst): Likewise.
1140         (struct tree_real_cst): Likewise.
1141         (struct tree_string): Likewise.
1142         (struct tree_complex): Likewise.
1143         (struct tree_vector): Likewise.
1144         (struct tree_identifier): Likewise.
1145         (struct tree_list): Likewise.
1146         (struct tree_vec): Likewise.
1147         (struct tree_exp): Likewise.
1148         (struct tree_block): Likewise.
1149         (struct tree_type): Likewise.
1150         (struct tree_decl): Likewise.
1151         (enum tree_structure_enum): New.
1152         (union tree_node): Use gengtype, with an alias.
1153         (tree_node_structure): Prototype.
1154         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1155
1156         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
1157         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
1158         to LANG_HOOKS_FUNCTION_FINAL.
1159         * Makefile.in (GTFILES): Add bitmap.h.
1160         * except.c (struct eh_region): Mark field 'aka' to be skipped.
1161
1162         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1163         (alpha_init_machine_status): Give proper type.
1164         * Makefile.in (c-lang.o): Depend on gtype-c.h.
1165         (optabs.o): Depend on gt-optabs.h.
1166         (GTFILES): Add optabs.o.
1167         (gt-optabs.h): Add rule.
1168         * optabs.c: Include gt-optabs.h.
1169
1170         * gengtype.c (set_gc_used_type): Correct some errors in last change.
1171         (write_gc_structure_fields): If a field which should be NULL is
1172         not, abort.
1173         * c-pragma.c: Move struct align_stack and variable alignment_stack
1174         out from the ifdef.
1175
1176         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1177         * config/xtensa/xtensa.c: Include gt-cris.h.
1178         (struct machine_function): Use gengtype to mark.
1179         * config/mmix/mmix.h (struct machine_function): Use gengtype
1180         to mark.
1181         * config/cris/t-cris: Add dependencies for gt-cris.h.
1182         * config/cris/cris.c: Include gt-cris.h.
1183         (struct machine_function): Use gengtype to mark.
1184         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1185         to mark.
1186         * doc/tm.texi (Per-Function Data): Delete references to
1187         mark_machine_status.
1188         * config/ia64/ia64.c (ia64_override_options): Don't set
1189         mark_machine_status.
1190         * config/i386/i386.c (override_options): Likewise.
1191         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1192         * config/arm/arm.c (arm_init_expanders): Likewise.
1193         * config/alpha/alpha.c (override_options): Likewise.
1194         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1195         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1196         (write_gc_structure_fields): Don't handle 'really' option.
1197         Handle 'maybe_null' option.
1198         (write_gc_types): Handle 'maybe_null' option.
1199         * function.h (struct function): Don't use "really".
1200         (mark_machine_status): Delete declaration.
1201         (mark_lang_status): Delete declaration.
1202         (gt_ggc_mr_machine_function): Delete prototype.
1203         (gt_ggc_mr_language_function): Delete prototype.
1204         * function.c (mark_machine_status): Delete.
1205         (mark_lang_status): Delete.
1206         (gt_ggc_mr_machine_function): Delete.
1207         (gt_ggc_mr_language_function): Delete.
1208         * c-tree.h (mark_c_function_context): Delete prototype.
1209         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1210         * c-decl.c (struct language_function): Rename from struct
1211         c_language_function.  Update uses.  Use gengtype to mark.
1212         (mark_c_function_context): Delete.
1213         * c-common.h (struct c_language_function): Rename from struct
1214         language_function.
1215         (mark_stmt_tree): Delete prototype.
1216         (c_mark_lang_decl): Delete prototype.
1217         (mark_c_language_function): Delete prototype.
1218         * c-common.c (mark_stmt_tree): Delete.
1219         (c_mark_lang_decl): Delete.
1220         (mark_c_language_function): Delete.
1221
1222         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1223         (lang_bitmap): New typedef.  Use where appropriate.
1224         (struct type): Add gc_used field, lang_struct field.
1225         (UNION_P): New macro.
1226         (new_structure): New prototype.
1227         (find_structure): Remove 'pos' parameter.  Change all callers.
1228         * gengtype-lex.l: Update for changes to find_structure.
1229         * gengtype-yacc.y (typedef_struct): Use new_structure.
1230         (yacc_ids): Suppress warning.
1231         (type): Use new_structure.
1232         * gengtype.c (string_type): Update for changes to struct type.
1233         (find_structure): Just find a structure, don't worry about
1234         creating one.
1235         (new_structure): New.
1236         (note_yacc_type): Use new_structure.
1237         (set_gc_used_type): New.
1238         (set_gc_used): New.
1239         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1240         (write_gc_types): Handle TYPE_LANG_STRUCT.
1241         (write_gc_marker_routine_for_structure): New.
1242         (main): Call set_gc_used.  Add some calls to set_gc_used_type
1243         for places where GCC doesn't use gengtype properly yet.
1244         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1245         (gt_ggc_m_tree_node): Likewise.
1246
1247         * varasm.c (copy_constant): Call expand_constant if we hit
1248         something we can't recognise.
1249
1250         * ggc-common.c (ggc_mark_rtvec_children): Delete.
1251         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1252         (lang_mark_false_label_stack): Delete.
1253         * rtl.h (struct rtvec_def): Use gengtype to mark.
1254         * ggc.h (ggc_mark_rtvec): Delete.
1255         (gt_ggc_m_rtvec_def): Delete.
1256         (ggc_mark_nonnull_tree): Delete.
1257         (ggc_mark_rtvec_children): Delete prototype.
1258         (lang_mark_false_label_stack): Delete declaration.
1259
1260         * gengtype.h (note_yacc_type): Add prototype.
1261         * gengtype.c (note_yacc_type): New function.
1262         * gengtype-lex.l: Add lexer support for yacc files.
1263         * gengtype-yacc.y (start): Extract union from yacc files.
1264         (yacc_union): New rule.
1265         (yacc_typematch): New rule.
1266         (yacc_ids): New rule.
1267         (enum_items): Tweak for efficiency.
1268         (optionseq): Likewise.
1269
1270         * c-common.h (struct language_function): Use gengtype.
1271         (struct c_lang_decl): Likewise.
1272         * c-tree.h (struct lang_decl): Likewise.
1273         (struct lang_type): Likewise.
1274         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1275         tree language substructures.
1276
1277         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1278         ggc_mark_tree.
1279         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1280
1281         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1282
1283         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
1284         mark. Remove 'data.block.cleanup_ptr' field.
1285         (struct stmt_status): Use usual technique to mark struct nesting.
1286         (gt_ggc_mr_nesting_cond): Delete.
1287         (gt_ggc_mr_nesting_loop): Delete.
1288         (gt_ggc_mr_nesting_block): Delete.
1289         (gt_ggc_mr_nesting_case_stmt): Delete.
1290         (expand_start_cond): Set discriminator.
1291         (expand_start_loop): Likewise.
1292         (expand_start_null_loop): Likewise.
1293         (expand_start_bindings_and_block): Set discriminator.  Don't set
1294         deleted fields.
1295         (expand_decl_cleanup): Replace 'cleanup_ptr' with
1296         &thisblock->data.block.cleanups.
1297         (expand_start_case): Set discriminator.
1298         (expand_start_case_dummy): Set discriminator.
1299
1300         * ggc-callbacks.c: Remove.
1301
1302         * gengtype.h (struct type): Add 'u.s.bitmap' field.
1303         (find_structure): Add 'pos' parameter.
1304         * gengtype-lex.l: Update callers to find_structure.
1305         * gengtype-yacc.y: Likewise.
1306         * gengtype.c (find_structure): Allow for structures to be defined
1307         in multiple language backends.
1308         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1309         (counter): Rename to gc_counter.
1310         (write_gc_structure_fields): Fail when writing out fields for
1311         an incomplete structure.  Ignore arrays of scalars.  Handle
1312         'tree_vec' special.
1313         (write_gc_types): Reset counter for each procedure written.
1314
1315         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1316         (free_case_nodes): Delete.
1317         (expand_end_case_type): Delete call to free_case_nodes.
1318
1319         * Makefile.in (cselib.o): Include gt-<filename>.h.
1320         (gcse.o): Likewise.
1321         (profile.o): Likewise.
1322         (alias.o): Likewise.
1323         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1324         alphabetize backend files.
1325         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1326         * alias.c: Use gengtype for roots.
1327         * c-common.h (struct stmt_tree_s): Use gengtype.
1328         * c-decl.c: Use gengtype for roots.
1329         * cselib.c: Use gengtype for roots.
1330         * expr.c: Use gengtype for roots.
1331         * fold-const.c: Use gengtype for roots.
1332         * gcse.c: Use gengtype for roots.
1333         * gengtype-lex.l: Handle typedefs of function types.
1334         Allow for empty array bounds.
1335         Allow processing to stop on initialisers.
1336         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1337         (semiequal): New rule.
1338         * gengtype.c (create_file): Tidy output files.
1339         (get_output_file_with_visibility): Fix paren warning.  Fix bug
1340         involving multiple input files mapping to one output file.
1341         (write_gc_structure_fields): Skip arrays of scalars.
1342         (write_gc_types): Tidy output files.
1343         (write_gc_root): New function.
1344         (write_gc_roots): Fix bugs, add support for roots that are
1345         structures.
1346         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1347         (ggc_mark_tree_ptr): Delete.
1348         (ggc_add_rtx_root): Delete.
1349         (ggc_add_tree_root): Delete.
1350         (ggc_del_root): Delete.
1351         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1352         allocate struct initial_value_struct.
1353         * profile.c: Use gengtype for roots.
1354         * sdbout.c: Use gengtype for roots.
1355         * varasm.c (mark_weak_decls): Delete unused prototype.
1356         (mark_const_hash_entry): Delete unused function.
1357         * config/darwin-protos.h: Use gengtype for roots.
1358         (machopic_add_gc_roots): Delete.
1359         * config/arm/arm.c: Use gengtype for roots.
1360         * config/arm/arm.h: Use gengtype for roots.
1361         * config/c4x/c4x-protos.h: Use gengtype for roots.
1362         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1363         * config/d30v/d30v-protos.h: Use gengtype for roots.
1364         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1365         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1366         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1367         * config/ia64/ia64-protos.h: Use gengtype for roots.
1368         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1369         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1370         * config/m68hc11/m68hc11.c (z_reg): Make global.
1371         (z_reg_qi): Make global.
1372         (m68hc11_add_gc_roots): Delete.
1373         * config/mcore/mcore-protos.h: Use gengtype for roots.
1374         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1375         * config/mips/mips.c (mips_add_gc_roots): Delete.
1376         * config/mips/mips.h: Use gengtype for roots.
1377         * config/mmix/mmix.c (override_options): Use gengtype for roots.
1378         * config/mmix/mmix.h: Use gengtype for roots.
1379         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1380         * config/mn10200/mn10200.h: Use gengtype for roots.
1381         * config/pa/pa.c: Use gengtype for roots, marking.
1382         (struct deferred_plabel): Use GGC, gengtype.
1383         (pa_add_gc_roots): Delete.
1384         (mark_deferred_plabels): Delete.
1385         * config/pj/pj-protos.h: Use gengtype for roots.
1386         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1387         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
1388         machopic_add_gc_roots.
1389         * config/rs6000/rs6000.h: Use gengtype for roots.
1390         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1391         (gt-darwin.h): Add rule.
1392         * config/sh/sh.c: Use gengtype for roots.
1393         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1394         (gt-sh.h): Add rule.
1395         * config/sparc/sparc.c: Use gengtype for roots.
1396         (sparc_add_gc_roots): Delete.
1397         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1398         (mark_ultrasparc_pipeline_state): Delete.
1399         * config/sparc/sparc.h: Use gengtype for roots.
1400
1401         * Makefile.in (c-parse.o): Update dependencies.
1402         (c-common.o): Likewise.
1403         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1404         Add dependencies for the files they generate.
1405         * c-common.c: Replace ggc_add_* uses with GTY annotations.
1406         * c-common.h: Likewise.
1407         * c-decl.c: Likewise.
1408         (gt_ggc_mp_binding_level): Delete.
1409         * c-lang.c: Include gtype-c.h.
1410         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
1411         gt-c-parse.h.
1412         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1413         (gt_ggc_mp_align_stack): Delete.
1414         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1415         * function.c: Replace ggc_add_* uses with GTY annotations.
1416         (gt_ggc_mp_function): Delete.
1417         * function.h: Replace ggc_add_* uses with GTY annotations.
1418         * gengtype.c (lang_names): New.
1419         (NUM_BASE_FILES): New.
1420         (open_base_files): Create language base files.
1421         (startswith): New.
1422         (get_file_basename): New.
1423         (get_base_file_bitmap): New.
1424         (get_output_file_with_visibility): Rename from get_output_file.
1425         Add more mappings for various C/Objc filenames.
1426         (finish_root_table): New.
1427         (write_gc_roots): Handle dependencies and scoping properly.
1428         * gengtype.h: Add prototypes for new functions.
1429         * ggc-common.c (struct deletable_root): Delete.
1430         (deletables): Delete.
1431         (ggc_add_deletable_root): Delete.
1432         (ggc_mark_roots): No need to deal with deleted functionality.
1433         * ggc.h (ggc_add_deletable_root): Delete prototype.
1434         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1435         (gtype-objc.h): Add rule to create.
1436         * objc/config-lang.in (gtfiles): New.
1437         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
1438         ggc_add_* with GTY markers.  Include gtype-objc.h.
1439         (ggc_mark_imp_list): Delete.
1440         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1441         * objc/objc-lang.c: Random Whitespace Change.
1442
1443         * except.h (exception_handler_labels): Delete.
1444         (get_exception_handler_labels): New.
1445         * except.c (exception_handler_labels): Delete.
1446         (struct eh_status): Add exception_handler_labels field.
1447         (doing_eh): Don't add exception_handler_labels as root.
1448         (free_eh_status): Don't need to free exception_handler_labels.
1449         (get_exception_handler_labels): New.
1450         (find_exception_handler_labels): Update for move of
1451         exception_handler_labels.
1452         (remove_exception_handler_label): Likewise.
1453         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1454         * jump.c (rebuild_jump_labels): Likewise.
1455         * loop.c (find_and_verify_loops): Likewise.
1456         * sched-rgn.c (is_cfg_nonregular): Likewise.
1457
1458         * gengtype.c (write_gc_structure_fields): Handle variable-length
1459         TYPE_ARRAYs.
1460
1461         * varasm.c (struct weak_syms): Use GGC, gengtype.
1462         (mark_weak_decls): Delete.
1463         (weak_decls): Likewise.
1464         (add_weak): Likewise.
1465         (remove_from_pending_weak_list): Likewise.
1466         (init_varasm_once): Likewise.
1467
1468         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1469         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1470         stor-layout.c, regclass.c, and lists.c.
1471         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1472         gt-regclass.h and gt-lists.h on s-gtype.
1473         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
1474         * except.c: Use gengtype for roots.
1475         * explow.c: Use gengtype for roots.  Include gt-explow.h.
1476         * expr.h (init_stor_layout_once): Delete prototype.
1477         * function.c: Use gengtype for roots.
1478         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1479         * gengtype-yacc.y (start): Can also be an externstatic.
1480         (externstatic): New production.
1481         (struct_fields): Correct array bounds inversion for 2-d arrays.
1482         * gengtype.c (variables): New variable.
1483         (note_variable): New function.
1484         (get_output_file): Include libfuncs.h into gtype-desc.c.
1485         (get_output_file_name): New function.
1486         (write_gc_structure_fields): Suppress warnings.
1487         (write_gc_types): Make static.
1488         (put_mangled_filename): New function.
1489         (write_gc_roots): New function.
1490         (main): Call write_gc_roots.
1491         * gengtype.h (note_variable): Prototype.
1492         (get_output_file_name): Prototype.
1493         (write_gc_types): Delete prototype.
1494         * ggc.h: Clean up unnecessary structure predefinitions.
1495         (struct ggc_root_tab): Define.
1496         (gt_ggc_m_rtx_def): Make function, not macro.
1497         (gt_ggc_m_tree_node): Likewise.
1498         * libfuncs.h: Use gengtype for roots.
1499         * lists.c: Use gengtype for roots.  Include gt-lists.h.
1500         (init_EXPR_INSN_LIST_cache): Delete.
1501         * optabs.c: Use gengtype for roots.
1502         (gt_ggc_mp_optab): Delete.
1503         * optabs.h: Use gengtype for roots.
1504         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
1505         * rtl.h: Use gengtype for roots.
1506         (init_EXPR_INSN_LIST_cache): Delete prototype.
1507         * stor-layout.c: Use gengtype for roots.
1508         Include gt-stor-layout.h.
1509         (init_stor_layout_once): Delete.
1510         * toplev.c: Use gengtype for roots.  Delete calls to deleted
1511         routines.
1512         * tree.c: Use gengtype for roots.
1513         * tree.h: Use gengtype for roots.
1514         * varasm.c: Use gengtype for roots.
1515
1516         * Makefile.in (GTFILES): Add @all_gtfiles@.
1517         * configure: Regenerate.
1518         * configure.in: Construct all_gtfiles from the gtfiles definitions
1519         in config-lang.in.
1520         * gengtype-yacc.y (type): Warn about duplicate structure names.
1521         * gengtype.c (get_output_file): Handle .c files in language
1522         subdirectories.
1523
1524         * Makefile.in (GTFILES): Run gengtype on all the config files
1525         and on the target .c file.
1526         * except.c (mark_eh_region): Delete.
1527         (init_eh_for_function): Use GGC on struct eh_status.
1528         (mark_eh_status): Delete.
1529         (free_eh_status): Use GGC.
1530         (expand_eh_region_start): Use GGC to
1531         (collect_eh_region_array): Allocate last_region_number using GGC.
1532         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1533         (remove_eh_handler): Let GGC free struct eh_region.
1534         (add_call_site): Use GGC to reallocate call_site_record array.
1535         * function.c (init_machine_status): Update calling sequence.
1536         (mark_machine_status): Likewise.
1537         (mark_lang_status): Likewise.
1538         (prepare_function_start): Update init_machine_status call.
1539         (mark_function_status): Delete.
1540         (maybe_mark_struct_function): Delete.
1541         (ggc_mark_struct_function): Delete.
1542         (gt_ggc_mp_function): New.
1543         (gt_ggc_mr_machine_function): New.
1544         (gt_ggc_mr_language_function): New.
1545         (init_function_once): Use canonical names.
1546         * function.h (struct function): Use gengtype.
1547         (init_machine_status): Return the structure.
1548         (mark_machine_status): Take a 'void *'.
1549         (mark_lang_status): Likewise.
1550         * ggc-common.c (ggc_mark_trees): Use canonical name for
1551         ggc_mark_struct_function.
1552         * tree.h (ggc_mark_struct_function): Delete prototype.
1553         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1554         (alpha_init_machine_status): Likewise.
1555         (override_options): Use canonical name for alpha_mark_machine_status.
1556         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1557         * config/arm/arm.h (struct machine_function): Use gengtype.
1558         * config/arm/arm.c (arm_mark_machine_status): Delete.
1559         (arm_init_machine_status): Update calling sequence.
1560         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1561         * config/cris/cris.c (cris_init_machine_status): Update
1562         calling sequence.
1563         * config/d30v/d30v.h (struct machine_function): Use gengtype.
1564         * config/d30v/d30v.c (d30v_init_machine_status): Update
1565         calling sequence.
1566         (d30v_mark_machine_status): Delete.
1567         * config/i386/i386.c: Include gt-i386.h.
1568         (struct machine_function): Use gengtype.
1569         (ix86_init_machine_status): Update calling sequence.
1570         (ix86_mark_machine_status): Delete.
1571         (override_options): Use canonical namke for ix86_mark_machine_status.
1572         * config/ia64/ia64.h (struct machine_function): Use gengtype.
1573         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1574         sequence.
1575         (ia64_mark_machine_status): Delete.
1576         (ia64_override_options): Use canonical name for
1577         ia64_mark_machine_status.
1578         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1579         sequence.
1580         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1581         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1582         * gengtype.c (get_output_file): Fix warning.
1583         (main): Add prototype to suppress warning.
1584         * tree.c: Remove tree_hash_mark prototype.
1585
1586         * tree.h (init_stmt): Delete prototype.
1587         * toplev.c (lang_independent_init): Don't call init_stmt.
1588         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1589         (stmt_obstack): Delete.
1590         (POPSTACK): No need to free 'struct nesting'.
1591         (gt_ggc_mr_nesting_cond): Use canonical names.
1592         (gt_ggc_mr_nesting_loop): Use canonical names.
1593         (gt_ggc_mr_nesting_block): Use canonical names.
1594         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1595         (mark_stmt_status): Delete.
1596         (init_stmt): Delete.
1597         (clear_last_expr): Clear both last_expr_type and last_expr_value.
1598         Use it everywhere that last_expr_type was cleared.
1599         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1600         (zap_lists): Delete.
1601         * ggc.h (ggc_add_deletable_root): Prototype.
1602         (mark_stmt_status): Remove prototype.
1603         * ggc-common.c (ggc_add_deletable_root): New.
1604         (ggc_mark_roots): Handle deletable roots.
1605         * function.c (ggc_mark_struct_function): Use canonical name
1606         for mark_stmt_status.
1607         * emit-rtl.c (free_sequence_stack): New.
1608         (start_sequence): Use a freelist for sequences.
1609         (end_sequence): Likewise.
1610         (init_emit_once): Add free_sequence_stack as a deleteable root.
1611         * c-pragma.c Include gt-c-pragma.h.
1612         (struct align_stack): Use gengtype.
1613         (push_alignment): Use GGC for struct align_stack.
1614         (mark_align_stack): Delete.
1615         (gt_ggc_mp_align_stack): New.
1616         (init_pragma): Use canonical name for mark_align_stack.
1617         * c-decl.c: Include gt-c-decl.h.
1618         (struct binding_level): Use gengtype.
1619         (make_binding_level): Use GGC; handle the freelist here.
1620         (pop_binding_level): New.
1621         (pushlevel): Move code into make_binding_level.
1622         (push_label_level): Likewise.
1623         (poplevel): Move code into pop_binding_level.
1624         (pop_label_level): Likewise.
1625         (mark_binding_level): Delete.
1626         (gt_ggc_mp_binding_level): New.
1627         (c_init_decl_processing): Use canonical name for mark_binding_level.
1628         Add free_binding_level as deletable root.
1629         (mark_c_function_context): Use canonical name for mark_binding_level.
1630         * Makefile.in (c-decl.o): Add gt-c-decl.h.
1631         (c-pragma.o): Add gt-c-pragma.h.
1632         (GTFILES): Add c-decl.c and c-pragma.c.
1633         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1634
1635         * tree.c (struct type_hash): Use gengtype.
1636         (init_obstacks): Use canonical name for type_hash_mark.
1637         (type_hash_mark): Delete.
1638         Include gt-tree.h.
1639         * rtl.h (struct mem_attrs): Use gengtype.
1640         * optabs.h (struct optab): Use gengtype.
1641         * optabs.c (expand_binop): Squish signed/unsigned warning.
1642         (mark_optab): Make local, use canonical name, use autogenerated
1643         marker procedure.
1644         (init_optabs): Use canonical name for mark_optab.
1645         (new_optab): Use GGC to allocate optabs.
1646         * ggc.h: Delete mark_optab prototype.
1647         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1648         mem_attrs marker procedure.
1649         * gengtype.c (get_output_file): Include headers in gtype-desc.c
1650         explicitly rather than deducing them from file names.
1651         (write_gc_structure_fields): Handle arrays of structures.
1652         (main): Return non-zero exit code if errors occur during output.
1653         * emit-rtl.c (mem_attrs_mark): Delete.
1654         (init_emit_once): Use canonical name for mem_attrs marker procedure.
1655         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1656         (tree.o): Depend on gt-tree.h.
1657         (GTFILES): Add rtl.h, optabs.h, tree.c.
1658         (gt-tree.h): Add it to s-gtype rule.
1659
1660         * .cvsignore: Ignore gengtype flex/bison generated files.
1661         * Makefile.in (GGC_H): Add gtype-desc.h.
1662         (OBJS): Add gtype-desc.o.
1663         (GEN): Add gengtype.
1664         (STAGESTUFF): Add gengtype.
1665         (varasm.o): Add gt-varasm.h.
1666         (stmt.o): Add gt-stmt.h.
1667         (except.o): Add gt-except.h.
1668         (integrate.o): Add gt-integrate.h.
1669         (GTFILES): New.
1670         Add new rules for new files.
1671         * configure: Regenerate.
1672         * configure.in: Correct defaults.h paths.
1673         * emit-rtl.c (mark_sequence_stack): Delete.
1674         (mark_emit_status): Delete.
1675         (start_sequence): Allocate sequence structures using GGC.
1676         (end_sequence): Allocate sequence structures using GGC.
1677         * except.c: Use gengtype for various structures.  Include
1678         gt-except.h.
1679         * expr.c (mark_expr_status): Delete.
1680         * function.c: Use gengtype for various structures.  Include
1681         gt-function.h.
1682         (mark_function_status): Use standard gt_ggc names for marker functions.
1683         (ggc_mark_struct_function): Likewise.
1684         * function.h: Use gengtype for various structures.
1685         * gengtype-lex.l: New file.
1686         * gengtype-yacc.y: New file.
1687         * gengtype.c: New file.
1688         * gengtype.h: New file.
1689         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
1690         the standard names.  Remove some now-unnecessary prototypes.
1691         * integrate.c: Use gengtype for various structures.  Include
1692         gt-integrate.h.
1693         (mark_hard_reg_initial_vals): Delete.
1694         * integrate.h (mark_hard_reg_initial_vals): Delete.
1695         * stmt.c: Use gengtype for various structures.  Include
1696         gt-stmt.h.
1697         (mark_case_node): Delete.
1698         (mark_goto_fixup): Delete.
1699         (mark_stmt_status): Use standard gt_ggc names for marker functions.
1700         * system.h: Define GTY to empty.   In flex/bison files,
1701         don't poison malloc or realloc, instead just define them to
1702         xmalloc and xrealloc.
1703         * varasm.c: Use gengtype for various structures.  Include
1704         gt-varasm.h.  Use standard gt_ggc names for marker functions.
1705         (mark_pool_constant): Delete.
1706         (mark_varasm_status): Delete.
1707         (decode_rtx_const): #if 0 out non-typesafe hack.
1708
1709         * function.h (free_lang_status): Mark as obsolete.
1710         * function.c (free_lang_status): Mark as obsolete.
1711         * c-decl.c (push_c_function_context): Use GC to allocate and free
1712         struct language_function.
1713         (pop_c_function_context): Likewise.
1714         * c-common.c (mark_c_language_function): Mark struct
1715         language_function.
1716
1717         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1718         Document that the machine_function structures must be allocated
1719         using GC.  Update mark_machine_status documentation.
1720         * function.h: Don't declare free_machine_status.
1721         * function.c (free_machine_status): Don't define.
1722         (free_after_compilation): Don't call free_machine_status.
1723         (ggc_mark_struct_function): Mark f->machine.  Call
1724         mark_machine_status only on non-NULL pointers.
1725         * system.h: Poison free_machine_status.
1726         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1727         struct machine_function.
1728         (xtensa_free_machine_status): Delete.
1729         (override_options): Don't set free_machine_status.
1730         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1731         free_machine_status.
1732         (rs6000_init_machine_status): Use GC on struct machine_function.
1733         (rs6000_free_machine_status): Delete.
1734         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1735         machine_function.
1736         (ia64_mark_machine_status): Likewise.
1737         (ia64_free_machine_status): Delete.
1738         (ia64_override_options): Don't set free_machine_status.
1739         * config/i386/i386.c (override_options): Don't set
1740         free_machine_status.
1741         (ix86_init_machine_status): Use GC on struct machine_function.
1742         (ix86_mark_machine_status): Likewise.
1743         (ix86_free_machine_status): Delete.
1744         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1745         machine_function.
1746         (d30v_mark_machine_status): Likewise.
1747         (d30v_free_machine_status): Delete.
1748         (d30v_init_expanders): Don't set free_machine_status.
1749         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1750         machine_function.
1751         (arm_init_machine_status): Likewise.
1752         (arm_free_machine_status): Delete.
1753         (arm_init_expanders): Don't set free_machine_status.
1754         * config/alpha/alpha.c (override_options): Don't set
1755         free_machine_status.
1756         (alpha_init_machine_status): Use GC on struct machine_function.
1757         (alpha_mark_machine_status): Likewise.
1758         (alpha_free_machine_status): Delete.
1759
1760         * varasm.c (compare_constant): Fix typo.
1761
1762         * varasm.c: Don't include obstack.h.
1763         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1764         (struct rtx_const): Give substructures names, improve formatting.
1765         (struct constant_descriptor): Delete.
1766         (struct constant_descriptor_tree): New, based on constant_descriptor.
1767         (const_hash_table): Is a hash table of trees.
1768         (mark_const_hash_entry): Is used for hashes of trees.  Mark
1769         constant_descriptor_tree structure.
1770         (mark_const_str_htab_1): Mark deferred_string structure.
1771         (compare_constant): Rewrite to compare trees.
1772         (compare_constant_1): Delete.
1773         (record_constant): Delete.
1774         (record_constant_1): Delete.
1775         (output_constant_def): Use struct constant_descriptor_tree.
1776         Don't duplicate trees twice.
1777         (struct constant_descriptor_rtx): New.
1778         (struct pool_constant): Used for rtx constants.
1779         (init_varasm_status): Update for change to struct varasm_status.
1780         (mark_varasm_status): Likewise.
1781         (free_varasm_status): Delete.
1782         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1783         (record_constant_rtx): Likewise.
1784         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1785         (force_const_mem): Likewise.
1786         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1787         * function.c (free_after_compilation): Don't use free_varasm_status.
1788         * function.h: Don't prototype free_varasm_status.
1789
1790         * ggc-common.c (ggc_realloc): Handle X being NULL.
1791
1792         * ggc-common.c (ggc_realloc): New function.
1793         * ggc.h: Prototype it.
1794         * emit-rtl.c (free_emit_status): Delete.
1795         (init_emit): Allocate emit subarrays using GC.
1796         (gen_reg_rtx): Reallocate subarrays using GC.
1797         (init_emit): Use GC to allocate 'struct emit_status' and its
1798         subarrays.
1799         (mark_emit_status): Mark structure and its subarrays.
1800         * stmt.c (free_stmt_status): Delete.
1801         * expr.c (free_expr_status): Delete.
1802         * function.h: Remove prototypes for deleted functions.
1803         * function.c (free_after_compilation): Don't use deleted functions.
1804         Don't call free() on x_parm_reg_stack_loc.
1805         (free_after_parsing): Don't use free_stmt_status.
1806         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1807         (mark_function_status): Mark x_parm_reg_stack_loc.
1808
1809         * varasm.c (init_varasm_status): Use GC to allocate
1810         'struct varasm_status' and its fields x_const_rtx_hash_table
1811         and x_const_rtx_sym_hash_table.
1812         (mark_varasm_status): Mark them.
1813         (free_varasm_status): Use GC to free them.
1814         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1815         (mark_expr_status): Mark the structure itself.
1816         (free_expr_status): Use GC to free the structure.
1817         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1818         (mark_stmt_status): Mark the 'struct stmt_status' itself.
1819         (init_stmt_for_function): Allocate the structure for GC.
1820
1821         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1822         (equate_type_number_to_die): Likewise.
1823         * tree.h (TYPE_SYMTAB_DIE): New macro.
1824         (struct die_struct): Predeclare.
1825         (struct tree_type): Add field symtab.die.   Add a tag
1826         to the union type of field symtab.
1827
1828         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1829         'struct rtvec_def *', not 'struct rtvec_def'.
1830
1831         * function.h (original_arg_vector): Make a real rtvec.
1832         * function.c (ggc_mark_struct_function): Adjust.
1833         * integrate.c (expand_inline_function): Adjust.
1834
1835 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1836
1837         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1838         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1839         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1840         (TARGET_VERSION_CPU): Define according to the
1841         default target.
1842         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1843         TARGET_VERSION_CPU.
1844         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1845         if TARGET_SHMEDIA64.
1846         (LINK_DEFAULT_CPU_EMUL): Define according to the
1847         default target.
1848         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1849         (SUBTARGET_LINK_SPEC): Define.
1850         (LINK_SPEC): Use SH_LINK_SPEC.
1851         (ASM_SPEC): Remove.
1852         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1853         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1854         and TARGET_SHMEDIA64 which abort, for now.
1855         * config/sh/t-netbsd-sh5: New file.
1856         * config/sh/t-netbsd-sh5-32: New file.
1857         * config/sh/t-netbsd-sh5-64: New file.
1858
1859 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1860             Richard Henderson  <rth@redhat.com>
1861
1862         * config/alpha/alpha.c (reg_or_const_int_operand): New.
1863         (some_operand, input_operand): Accept CONST_VECTOR.
1864         (alpha_extra_constraint): Add 'W'.
1865         (alpha_expand_zap_mask): New.
1866         (alpha_expand_builtin_vector_binop): New.
1867         (enum alpha_builtin): New.
1868         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1869         (alpha_init_builtins, alpha_expand_builtin): New.
1870         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1871         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1872         (PREDICATE_CODES): Update.
1873         * config/alpha/alpha-protos.h: Update.
1874         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1875         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1876         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1877         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1878         (movv2si, movv2si_fix, movv2si_nofix): New.
1879         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1880         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1881         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1882         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1883         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1884         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1885         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1886         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1887         builtin_unpkbw, unpkbw): New.
1888         * doc/extend.texi (Alpha Built-in Functions): New.
1889
1890 2002-06-03  Richard Henderson  <rth@redhat.com>
1891
1892         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1893         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1894
1895 2002-06-03  Richard Henderson  <rth@redhat.com>
1896
1897         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1898
1899         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1900         (const0_operand): New.
1901         (reg_or_fp0_operand, fp0_operand): Remove.
1902         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1903         * config/alpha/alpha-protos.h: Update.
1904         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1905         and fp0_operand with reg_or_0_operand and const0_operand.
1906
1907 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1908
1909         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1910
1911 2002-06-03  Roger Sayle  <roger@eyesopen.com>
1912
1913         * gcse.c (cprop_jump): Use single_set to get the pattern
1914         from the setcc argument.
1915
1916 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
1917
1918         * diagnostic.h (diagnostic_count): Move from output_buffer to
1919         diagnostic_context.
1920         (diagnostic_kind_count): Adjust definition.
1921
1922 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
1923
1924         * except.c (except.c): Do not rebuild CFG.
1925         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1926         optimization.
1927
1928 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
1929
1930         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1931         * toplev.c: Include cfglahout.h
1932         * Makefile.in (toplev.c): Add dependnecy.
1933
1934 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1935
1936         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1937         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1938         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1939
1940 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1941
1942         * config/ns32k/netbsd.h: Update copyright years.
1943         (TARGET_OS_CPP_BUILTINS): Define.
1944         (CPP_PREDEFINES): Remove.
1945         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1946         (TARGET_CPU_CPP_BUILTINS): Define.
1947
1948 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1949
1950         * emit-rtl.c: Fix formatting.
1951         * errors.h: Likewise.
1952         * except.c: Likewise.
1953         * explow.c: Likewise.
1954         * expmed.c: Likewise.
1955         * expr.c: Likewise.
1956         * expr.h: Likewise.
1957
1958 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1959
1960         * config/h8300/elf.h: Fix formatting.
1961         * config/h8300/rtems.h: Likewise.
1962
1963 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1964
1965         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1966
1967 2002-06-02  Tom Tromey  <tromey@redhat.com>
1968
1969         * fixinc/fixincl.x: Rebuilt.
1970         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1971
1972 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1973
1974 config/i370:
1975         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1976         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1977         * mvs.h: Similarly.
1978         * oe.h: Similarly.
1979
1980 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
1981
1982         * final.c (final):  Allow notes to not have computed addresses;
1983         kill no longer needed STACK_REGS ifdef.
1984
1985 2002-06-02  Richard Henderson  <rth@redhat.com>
1986
1987         * gcse.c (bypass_conditional_jumps): Fix typo last change.
1988
1989 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1990
1991         * loop.c (emit_prefetch_instructions): Properly place the address
1992         computation.
1993
1994 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
1995
1996         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1997         (set_block_for_insn): Turn into macro.
1998         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1999         * cfglayout.c (insn_scopes): Kill.
2000         (scope_to_insns_initialize): Do not use insn_scopes.
2001         (scope_to_insns_finalize): Likewise.
2002         (duplicate_insn_chain): Likewise.
2003         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2004         * cfgrtl.c (basic_block_for_insn): Kill.
2005         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2006         (create_basic_block_structure): Use reorder_insns.
2007         (compute_bb_for_insn): Do not use basic_block_for_insn.
2008         (merge_blocks_nomove): Likewise.
2009         (update_bb_for_insn): Likewise.
2010         (verify_flow_info): Likewise.
2011         (set_block_for_insn): Kill.
2012         * combine.c (try_combine): Update gen_rtx_INSN call.
2013         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2014         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2015         scopes and BBs.
2016         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2017         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2018         Clear BB.
2019         (emit_insns_after): Simplify.
2020         (emit_copy_of_insn_after): Copy scope.
2021         * final.c (final_start_function): Lower scopes.
2022         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2023         * integrate.c (copy_insn_list): Cope scopes.
2024         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2025         * loop.c (loop_optimize): Do not care block notes.
2026         * print-rtl.c (print_rtx): Print BB.
2027         * recog.c (apply_change_group): Simplify.
2028         * rtl.c (copy_rtx): Handle 'B'.
2029         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2030         * rtl.h (Field accessors): Update indexes.
2031         * sched-ebb.c (schedule_ebbs): Do not lower notes.
2032         * sched-rgn.c (schedule_insns): Likewise.
2033         * toplev.c (rest_of_compilation): Lower notes.
2034         * unroll.c (unroll_loop): Do not care scoping notes.
2035         (copy_loop_body): Copy scopes.
2036
2037 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2038
2039 config/h8300:
2040         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2041         SUBTARGET_SPEC.
2042         * rtems.h: Similarly.
2043         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2044         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2045         (TARGET_CPU_CPP_BUILTINS): Use.
2046
2047 2002-06-02  Richard Henderson  <rth@redhat.com>
2048
2049         * alias.c: Include target.h.
2050         (mark_constant_function): Use targetm.binds_local_p instead
2051         of checking TREE_PUBLIC ourselves.
2052         * Makefile.in (alias.o): Add TARGET_H.
2053
2054 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2055
2056         * c-lex.c: Update copyright and file description.
2057
2058 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2059
2060         * config/fr30/fr30.h: Update to new CPP macros.
2061
2062 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2063
2064         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2065
2066 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2067             Zack Weinberg <zack@codesourcery.com>
2068
2069         * c-common.c (c_common_init): Override cpplib's default
2070         warn_long_long setting.
2071         * c-lex.c (lex_number): Replace with interpret_integer,
2072         interpret_float, narrowest_unsigned_type and
2073         narrowest_signed_type, taking advantage of the new
2074         cpplib functionality.
2075         * cpperror.c (_cpp_begin_message): If a warning is turned
2076         into an error, avoid printing "warning:".
2077         * cppexp.c (cpp_num_sign_extend): New.
2078         * cppinit.c: Update comment.
2079         * cpplib.h (cpp_num_sign_extend): New.
2080         * tree.h: Update comment.
2081
2082 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2083
2084         * diagnostic.h (struct diagnostic_context):  Add new member
2085         internal_error.
2086         (internal_error_function): Remove declaration.
2087         * diagnostic.c (internal_error_function): Remove definition..
2088         (internal_error): Adjust use.
2089
2090 2002-06-02  Richard Henderson  <rth@redhat.com>
2091
2092         * rtl.h (CC0_P): New.
2093         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
2094         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
2095         (bypass_block): Save old dest block for dump text.
2096         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2097         Allow only true SET insns, not single_set.
2098
2099 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2100
2101         * diagnostic.c (diagnostic_finish): Rename to output_flush.
2102         (clear_disgnostic_info): Rename to output_clear_data.  Use false
2103         instead of 0 for boolean value.
2104         Adjust function call throughout.
2105
2106 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2107
2108         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2109         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2110
2111 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2112
2113         * d30v.h (CPP_PREDEFINES): Replace with
2114         (TARGET_CPU_CPP_BUILTINS): New.
2115
2116 2002-06-02  Roger Sayle  <roger@eyesopen.com>
2117
2118         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2119
2120 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
2121
2122         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2123
2124 2002-06-02  Richard Henderson  <rth@redhat.com>
2125
2126         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2127
2128 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2129
2130         Support for C++ constructors/destructors.
2131         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2132         instead of looping if main() returns.
2133         (asm_file_start): Output global symbols that cause .data and .bss
2134         initialization code to be linked in, unconditionally for now.
2135         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2136         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2137         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2138         (LIBSTDCXX): New.
2139         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2140         (__tablejump__): New.
2141         (__do_copy_data, __do_clear_bss): New.
2142         (__do_global_ctors, __do_global_dtors): New.
2143         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2144         _ctors, _dtors.
2145
2146 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2147
2148         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2149         (CPP_SPEC, CPP_PREDEFINES): Kill.
2150         * c4x/rtems.h (CPP_PREDEFINES): Kill.
2151         (TARGET_OS_CPP_BUILTINS): New.
2152
2153 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
2154
2155         * Makefile.in (tracer.o): New.
2156         * params.def (TRACER_*): New options.
2157         * rtl.h (tracer): Declare.
2158         * timevar.def (TV_TRACER): New.
2159         * toplev.c (dump_file_index): Add DFI_tracer.
2160         (dump_file_info): Add tracer.
2161         (flag_tracer): New.
2162         (lang_indepdenent_options): Add tracer.
2163         (rest_of_compilation): Call tracer.
2164         * tracer.c: New file.
2165         * invoke.texi (-ftracer): Document.
2166         (--param tracer-*): Document.
2167
2168 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
2169
2170         * tree-inline.c (expand_call_inline): Make the statement
2171         expression we generate have a COMPOUND_STMT.
2172
2173 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2174
2175         * gcse.c (cprop_cc0_jump): Function deleted.
2176         (cprop_jump): Take an additional argument which is the possibly
2177         NULL cc setting insn immediately before the conditional jump.
2178         When a MODE_CC set is present, substitute it into the JUMP_INSN
2179         before attempting the constant propagation.
2180         (cprop_insn):  Recognize cc setters followed by conditional jumps
2181         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
2182         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
2183         (find_bypass_set): New function based upon find_avail_set used by
2184         cprop, but finds constant expressions available at the end of
2185         basic blocks.
2186         (bypass_block): New function.  Given a basic block that begins
2187         with a conditional jump and multiple incoming edges, perform
2188         the jump bypass optimization.
2189         (bypass_conditional_jumps): New function.  Call bypass_block with
2190         each suitable basic block in the CFG using a simple single pass.
2191
2192 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2193
2194         * tree.c (real_minus_onep): New function to test for -1.0.
2195         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
2196
2197 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2198
2199         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2200         and "!p && !q" into "(p|q) == 0" under suitable conditions.
2201
2202 2002-06-01  Andreas Jaeger  <aj@suse.de>
2203
2204         * cppexp.c (cpp_classify_number): Cast precission to int for
2205         correct printf format.
2206
2207 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2208
2209         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2210         expected, but don't really exist: atmega83, atmega85, attiny10.
2211         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2212         emulations for all devices.
2213         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2214         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2215
2216 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
2217
2218         * config/h8300/h8300-protos.h: Add a prototype for
2219         h8300_shift_needs_scratch_p.
2220         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2221         * config/h8300/h8300.h (OK_FOR_R): New.
2222         (OK_FOR_S): Likewise.
2223         (OK_FOR_T): Likewise.
2224         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2225         * config/h8300/h8300.md (anonymous shift patterns): Use
2226         constraints R, S, and T.
2227
2228 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2229
2230         * basic-block.h (struct basic_block_def): New field loop_father.
2231         (BB_VISITED): New flag.
2232         (struct loop): New field pred, removed field shared.
2233         (struct loops): New field parray.
2234         (LOOP_EXITS_DOMS): Removed.
2235         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2236         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2237         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2238         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2239         verify_loop_structure): Declare.
2240         * cfg.c (entry_exit_blocks): Initialize loop_father field.
2241         * cfganal.c (dfs_enumerate_from): New function.
2242         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2243         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2244         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2245         flow_loop_dump, flow_loops_dump, flow_loops_free,
2246         flow_loop_tree_node_add, flow_loop_level_compute,
2247         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2248         flow_loop_outside_edge_p): Modified for new infrastructure.
2249         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2250         redirect_edge_with_latch_update, flow_loop_free): New static functions.
2251         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2252         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2253         find_common_loop, verify_loop_structure, loop_latch_edge,
2254         loop_preheader_edge): New functions.
2255         (flow_loops_cfg_dump): Do not show dominators, as this information
2256         does not remain up to date long.
2257         (flow_loops_find): Store results in new format.
2258         * predict.c (propagate_freq, estimate_probability,
2259         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2260         infrastructure.
2261
2262 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
2263
2264         * except.c (nothrow_function_p): Walk epilogue delay list
2265         checking the insn, not the chain for potential throws.
2266
2267 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2268
2269         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2270         (install): Refer to install-cpp directly.
2271         (uninstall-cpp): Folded into uninstall rule.
2272         * configure.in: Delete all code relating to --disable-cpp.
2273         * configure: Regenerate.
2274         * config/t-install-cpp: Delete.
2275
2276 2002-05-31  Richard Henderson  <rth@redhat.com>
2277
2278         * configure.in (HAVE_AS_TLS): Add alpha tests.
2279         * configure: Rebuild.
2280         * config/alpha/alpha.c (TARGET_AS_TLS): New.
2281         (alpha_tls_size, alpha_tls_size_string): New.
2282         (overide_options): Set it.  Always install machine_status hooks.
2283         (input_operand): Accept got tls predicates.
2284         (local_symbol_p): Merge into ...
2285         (local_symbolic_operand): ... here.  Reject tls symbols.
2286         (global_symbolic_operand): Likewise.
2287         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2288         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2289         (tp16_symbolic_operand, tp32_symbolic_operand): New.
2290         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2291         (alpha_encode_section_info): Handle TLS symbols.
2292         (alpha_strip_name_encoding): Likewise.
2293         (alpha_legitimate_address_p): Likewise.
2294         (alpha_legitimize_address): Likewise.
2295         (alpha_expand_mov): Early exit to avoid nop moves.
2296         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
2297         (alpha_init_machine_status, alpha_mark_machine_status,
2298         alpha_free_machine_status): Always define.
2299         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2300         (print_operand, print_operand_address): Add TLS relocs.
2301         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2302         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2303         (TARGET_SWITCHES): Add -mtls-kernel.
2304         (alpha_tls_size, alpha_tls_size_string): New.
2305         (TARGET_OPTIONS): Add -mtls-size=.
2306         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2307         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2308         (ASM_OUTPUT_LABELREF): Skip %.
2309         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2310         (PREDICATE_CODES): Update.
2311         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2312         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2313         UNSPEC_TP, UNSPECV_SET_TP): New.
2314         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2315         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2316         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2317         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2318         (call_value_osf_2_er): Accept anything as op4.
2319         * config/alpha/alpha-protos.h: Update.
2320         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2321
2322 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2323
2324         * cppinit.c (append_include_chain): Always pay attention to
2325         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
2326         marker on argument.
2327
2328 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
2329
2330         * target.h: Fix formatting.
2331         * timevar.h: Likewise.
2332         * tlink.c: Likewise.
2333         * toplev.c: Likewise.
2334         * toplev.h: Likewise.
2335         * tree.c: Likewise.
2336         * tree-dump.h: Likewise.
2337         * tree.h: Likewise.
2338         * tree-inline.h: Likewise.
2339         * unroll.c: Likewise.
2340         * unwind-dw2.c: Likewise.
2341         * unwind-dw2-fde.c: Likewise.
2342         * unwind-dw2-fde-glibc.c: Likewise.
2343         * unwind-dw2-fde.h: Likewise.
2344         * unwind.h: Likewise.
2345         * unwind-sjlj.c: Likewise.
2346         * varasm.c: Likewise.
2347         * varray.h: Likewise.
2348         * vmsdbg.h: Likewise.
2349         * vmsdbgout.c: Likewise.
2350         * xcoffout.h: Likewise.
2351
2352 2002-05-31  Igor Shevlyakov <igor@microunity.com>
2353
2354         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2355         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2356
2357 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
2358
2359         * gcc.c (cpp_unique_options): Remove "-d" options.
2360         (cpp_debug_options): New spec string.
2361         (default_compilers): Use it.
2362         * objc/lang-specs.h: Likewise.
2363
2364 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
2365
2366         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2367         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2368         * gcc/mklibgcc.in: Likewise.
2369         * gcc/config/arc/t-arc: Likewise.
2370         * gcc/configure.in: Likewise.
2371         * gcc/configure: Regenerate.
2372
2373 2002-05-31  Stan Shebs  <shebs@apple.com>
2374             Turly O'Connor  <turly@apple.com>
2375
2376         * c-decl.c (struct binding_level): Change int field n_incomplete
2377         to tree list incomplete_list.
2378         (clear_binding_level): Init field with NULL.
2379         (pushdecl): Add incomplete type to list.
2380         (mark_binding_level): Mark the incomplete list.
2381         (finish_struct): Scan the incomplete list for types instead
2382         of all decls in the current binding level.
2383
2384 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2385
2386         * pa.c (output_millicode_call): Add missing '%' characters.
2387         (output_call): Likewise.
2388
2389 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
2390
2391         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2392         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2393
2394 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
2395
2396         * varasm.c (mark_constant_pool): Walk epilogue delay list
2397         checking the insn, not the chain for potential constants.
2398
2399 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
2400
2401         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2402
2403 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
2404
2405         * i386.c (classify_argument): Properly handle base types.
2406
2407         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2408         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2409         registers.
2410
2411 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2412
2413         * gcse.c (gcse_emit_move_after): New.
2414         (pre_delete, hoist_store): Use it.
2415
2416         * reload1.c (emit_input_reload_insns): Use constrain_operands
2417         instead of constraint_accepts_reg_p to verify optimization.
2418         (constraint_accepts_reg_p): Kill
2419
2420         * reload1.c (reload_cse_delete_noop_set): Kill.
2421         (reload_cse_simplify): use delte_insn_and_edges.
2422
2423 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2424
2425         * cfgloop.c (flow_loops_find): Initialize first and last fields
2426         correctly.
2427
2428 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2429
2430         * c-common.c (builtin_define_std): Correct logic.
2431
2432 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2433
2434         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2435         (output_call): Likewise.
2436
2437 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2438
2439         * pa.c: Move output.h include after tree.h include.
2440         (pa_asm_output_mi_thunk): Constify identifier lab.
2441
2442 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2443
2444         * config/ns32k/ns32k.h: Define named constants for the
2445         bits in target_flags and use them.
2446         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2447
2448 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2449
2450         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2451         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2452         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2453         default scheduling model.
2454         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2455         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2456         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2457         * doc/install.texi (hppa*-*-*): Document default scheduling.
2458
2459 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2460
2461         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2462
2463 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2464
2465         * config.gcc (ns32k-*-netbsd*): Set tm_file to
2466         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2467         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2468         netbsd.h, or netbsd-aout.h.
2469
2470 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2471
2472         * longlong.h (count_trailing_zeros): Add missing \, and clean up
2473         whitespace in __ns32000__ case.
2474
2475 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
2476
2477         * expr.c (expand_expr): Output partially zeroed out vectors with
2478         output_constant_def.
2479
2480 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2481
2482         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2483         (sh-*-netbsdelf*)
2484         (shl*-*-netbsdelf*): New targets.
2485         * config/sh/netbsd-elf.h: New file.
2486         * config/sh/t-netbsd: New file.
2487
2488 2002-05-30  Richard Henderson  <rth@redhat.com>
2489             Eric Botcazou  <ebotcazou@multimania.com>
2490
2491         PR optimization/6822
2492         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2493         to unsigned int for op1 comparisons.  Use gen_int_mode.
2494
2495 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
2496
2497         * expmed.c (const_mult_add_overflow_p): New.
2498         * expr.h: Declare it.
2499         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2500         Don't eliminate the biv if the giv has a constant multiplier and
2501         the rhs argument of the comparison does satisfy the predicate.
2502         Use expand_mult_add to compute the replacement constant.
2503
2504 2002-05-30  Osku Salerma  <osku@iki.fi>
2505
2506         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2507         (c_common_get_alias_set): Handle it.
2508         * doc/extend.texi: Document it.
2509
2510 2002-05-30  Richard Henderson  <rth@redhat.com>
2511
2512         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2513         * toplev.c (process_options): Don't check it.
2514         * doc/tm.texi: Don't document it.
2515         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2516         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2517         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2518         frame pointer optimization if current_function_profile.
2519
2520 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2521
2522         * langhooks.c: Fix formatting.
2523         * langhooks.h: Likewise.
2524         * lcm.c: Likewise.
2525         * libgcc2.c: Likewise.
2526         * lists.c: Likewise.
2527         * local-alloc.c: Likewise.
2528         * loop.c: Likewise.
2529         * loop.h: Likewise.
2530
2531 2002-05-30  Marc Espie <espie@openbsd.org>
2532
2533         * config.gcc (sparc64-*-openbsd*): New.
2534         * config/sparc/openbsd1-64.h: New.
2535         * config/sparc/openbsd64.h: New.
2536
2537 2002-05-30  Jeff Law <law@redhat.com>
2538
2539         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
2540         a dead insn with a REG_RETVAL note when the entire libcall is not
2541         dead and remove the associated REG_LIBCALL note at the same time.
2542
2543 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
2544
2545         * lcm.c (output.h): #include.
2546         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2547         as an ordinary block.
2548         (optimize_mode_switching): Don't pretend that the exit block is
2549         an ordinary block, or handle sucessors of entry block specially.
2550         Instead, split edges from entry block and to exit block, and
2551         put a computing definition on the thus gained post-entry-block,
2552         and a need on the pre-exit-block.
2553
2554 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2555
2556         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2557         * rtl.texi: Document 'B'
2558
2559 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2560
2561         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2562         at run-time.
2563         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2564
2565 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
2566
2567         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2568         const0_rtx instead of NULL_RTX when in error.
2569         (altivec_expand_abs_builtin): Same.
2570         (rs6000_expand_binop_builtin): Same.
2571         (altivec_expand_predicate_builtin): Same.
2572         (altivec_expand_stv_builtin): Same.
2573         (rs6000_expand_ternop_builtin): Same.
2574         (altivec_expand_builtin): Same.
2575
2576 2002-05-29  David S. Miller  <davem@redhat.com>
2577
2578         * rtl.h (clear_emit_caches): Delete.
2579         * integrate.c (output_inline_function): Don't call it.
2580         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2581         (clear_emit_caches): Delete definition.
2582         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2583
2584 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
2585
2586         * config/mmix/mmix.c: Include real.h.
2587         (mmix_constant_address_p): Remove redundant test before switch.
2588
2589 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2590
2591         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2592         only if not already defined.
2593
2594 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2595
2596         * config/h8300/h8300-protos.h: Remove prototypes for
2597         ok_for_bclr and small_power_of_two.
2598         * config/h8300/h8300.c (small_power_of_two): Remove.
2599         (ok_for_blcr): Likewise.
2600         (fix_bit_operand): Make WHAT deal with an integer instead of a
2601         constraint character.
2602         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2603         (CONST_OK_FOR_P): Likewise.
2604         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2605         CONST_OK_FOR_P any more.
2606         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2607         of fix_bit_operand.
2608         (iorqi3): Likewise.
2609         (xorqi3): Likewise.
2610
2611 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2612
2613         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2614         (CPP_PREDEFINES): Make sure this is undefined.
2615         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2616         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
2617         or -U__MIPSEB__ before defining one or the other.  Instead,
2618         use %(subtarget_endian_default) if neither -EB nor -EL are
2619         specified.
2620         (SUBTARGET_EXTRA_SPECS): Define.
2621         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
2622         %(netbsd_cpp_spec).
2623
2624 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2625
2626         * doc/md.texi (Patterns): Note pattern condition pitfall
2627         for unnamed insn.
2628
2629 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
2630
2631         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2632         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
2633         ternary operations from here...
2634         (rs6000_expand_builtin): ...to here.
2635         New argument expandedp.
2636         Change all instances of altivec_expand_binop_builtin to
2637         rs6000_expand_binop_builtin.
2638         (altivec_expand_unop_builtin): Rename to
2639         rs6000_expand_unop_builtin.
2640         (altivec_expand_binop_builtin): Rename to
2641         rs6000_expand_binop_builtin.
2642         (altivec_expand_ternop_builtin): Rename to
2643         rs6000_expand_ternop_builtin.
2644
2645 2002-05-29  Richard Henderson  <rth@redhat.com>
2646
2647         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2648         (TARGET_BI_ARCH): Likewise.
2649         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2650         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2651         (TARGET_64BIT_DEFAULT): Default to 0.
2652         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2653
2654 2002-05-29  Richard Henderson  <rth@redhat.com>
2655
2656         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2657         (get_pc_thunk_name): New.
2658         (output_set_got): Use it.
2659         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2660         into linkonce sections.
2661
2662 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2663
2664         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2665         (CPP_PREDEFINES): Make sure this is undefined.
2666         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2667         (CPP_SUBTARGET_SPEC): Don't provide different versions for
2668         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
2669         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2670         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
2671         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2672         (CPP_PREDEFINES): Make sure this is undefined.
2673         (SUBTARGET_EXTRA_SPECS): Define.
2674         (CPP_SPEC): Use %(netbsd_cpp_spec).
2675
2676 2002-05-29  Jeff Law <law@redhat.com>
2677
2678         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2679
2680         * flow.c (propagate_one_insn): Do not remove a dead insn if it
2681         contains a REG_RETVAL note.
2682
2683         * haifa-sched (sched_analyze): Remove another useless clearing
2684         of SCHED_GROUP_P I missed yesterday.
2685
2686         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2687         * pa.c (pa_asm_output_mi_thunk): New function.
2688         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2689
2690 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2691             Marek Michalkiewicz  <marekm@amelek.gda.pl>
2692
2693         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2694         (avr_asm_only_p): Make non-static.
2695         (enum avr_arch): Remove.
2696         (avr_arch_types): New.
2697         (avr_mcu_types): Update.
2698         (avr_override_options): Use avr_arch_types table instead of switch.
2699         * avr.h (CPP_PREDEFINES): Die.
2700         (avr_base_arch_macro, avr_extra_arch_macro): New.
2701         (TARGET_CPU_CPP_BUILTINS): New.
2702         (CPP_SPEC, EXTRA_SPECS): Simplify.
2703         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2704         CPP_AVR5_SPEC): Die.
2705
2706 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2707
2708         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2709         NETBSD_OS_CPP_BUILTINS_AOUT.
2710         (SUBTARGET_EXTRA_SPECS): Define.
2711         (CPP_SPEC): Use %(netbsd_cpp_spec).
2712
2713 2002-05-29  Richard Henderson  <rth@redhat.com>
2714
2715         * config/i386/i386.c (ix86_output_function_epilogue): New.
2716         (TARGET_ASM_FUNCTION_EPILOGUE): New.
2717         (pic_label_name): Remove.
2718         (pic_labels_used): New.
2719         (ix86_asm_file_end): Emit one pc load stub for each register used.
2720         (output_set_got): Generate deep pc load to any register.
2721         (ix86_select_alt_pic_regnum): New.
2722         (ix86_save_reg): Don't save pic register if we can find a valid
2723         call-clobbered replacement.
2724         (ix86_expand_prologue): If we found a valid replacement, renumber
2725         pic_offset_table_rtx.
2726         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2727         pic_offset_table_rtx after reload.
2728         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2729         * config/i386/i386.md (set_got): Make insn, not expander.
2730         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2731
2732 2002-05-29  Richard Henderson  <rth@redhat.com>
2733
2734         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2735         alignment for alloca.
2736
2737 2002-05-29  Richard Henderson  <rth@redhat.com>
2738
2739         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2740         (print_operand_address): Only add rip for symbolic addresses
2741         for which we do not have another relocation type.
2742
2743 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2744
2745         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2746         (EXTRA_SPECS): Add netbsd_cpp_spec.
2747         (CPP_SPEC): Use %(netbsd_cpp_spec).
2748         (CPP_PREDEFINES): Remove.
2749         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2750         (EXTRA_SPECS): Define.
2751         (CPP_SPEC): Use %(netbsd_cpp_spec).
2752         (CPP_PREDEFINES): Remove.
2753
2754 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2755
2756         PR preprocessor/6844
2757         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2758         NUL.
2759
2760 2002-05-29  Eric Christopher  <echristo@redhat.com>
2761
2762         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2763         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2764
2765 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
2766
2767         * config/fr30/fr30.md: Remove previous restriction on splits.
2768         Enforce conformance through gen_lowpart and cont_int_operand.
2769         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2770         as the assembler does not support ".bss".
2771
2772 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2773
2774         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2775         (CPP_PREDEFINES): Remove.
2776         (SUBTARGET_EXTRA_SPECS): Define.
2777         (CPP_SPEC): Use %(netbsd_cpp_spec).
2778         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2779         (CPP_PREDEFINES): Remove.
2780         (SUBTARGET_EXTRA_SPECS): Define.
2781         (CPP_SPEC): Use %(netbsd_cpp_spec).
2782         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2783         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2784         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2785         Add netbsd_cpp_spec.
2786         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2787
2788 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2789             Zack Weinberg <zack@codesourcery.com>
2790
2791         * cppexp.c (cpp_num): Move to cpplib.h.
2792         (CPP_ERROR): Remove.
2793         (interpret_float_suffix, interpret_int_suffix): New.
2794         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2795         (cpp_classify_number, cpp_interpret_integer): New.
2796         (interpret_number): Remove.
2797         (eval_token): Update to use new routines.
2798         * cpphash.h (cpp_num_part): Move to cpplib.h.
2799         * cppinit.c (cpp_post_options): Set warn_long_long.
2800         * cpplib.h (struct cpp_options): Add warn_long_long.
2801         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2802         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2803         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2804         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2805         cpp_interpret_integer): New.
2806
2807 2002-05-29  Joel Sherrill <joel@OARcorp.com>
2808
2809         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2810
2811 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2812
2813         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2814         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2815         (CPP_SUBTARGET_SPEC): Define.
2816         (SUBTARGET_EXTRA_SPECS): Define.
2817         (CPP_SPEC): Remove.
2818
2819 2002-05-29  Chris Lattner  <sabre@nondot.org>
2820
2821         * ssa.c (rename_insn_1): Rename uses of undefined registers to
2822         prevent confusion if/when the register is defined.
2823
2824 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2825
2826         PR target/6838
2827         * config/cris/cris.md: Fix typos and thinkos in comments.
2828         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2829         second alternative.
2830         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2831         ("*mov_sideqi_mem"): Similar, but for operand 3.
2832         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2833         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2834         Remove spurious mode specifier on operand 2.
2835
2836 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2837
2838         * config/h8300/h8300-protos.h: Remove the prototype for
2839         o_operand.
2840         Add prototypes for single_one_operand and single_zero_operand.
2841         * config/h8300/h8300.c (o_operand): Remove.
2842         (single_one_operand): New.
2843         (single_zero_operand): Likewise.
2844         (print_operand): For 'V' operand, and the operand with 0xff.
2845         For 'V' and 'W' operands, do not and the bit position with 7.
2846         * config/h8300/h8300.md (various anonymous patterns): Replace
2847         use of exact_log2 with single_one_operand/single_zero_operand.
2848
2849 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2850
2851         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2852
2853 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2854
2855         * config/s390/s390.c (legitimate_pic_operand_p): Do not
2856         accept symbolic LARL operands.
2857         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2858         epilogue insns.
2859
2860 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
2861
2862         * config/s390/s390.md (cmpstr_64/31): Mark whole
2863         input registers as used.
2864
2865 2002-05-28  Richard Henderson  <rth@redhat.com>
2866
2867         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2868         not current_function_uses_pic_offset_table and
2869         current_function_uses_const_pool; examine current_function_profile.
2870         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
2871         input to blockage if needed.
2872         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2873         (legitimize_pic_address): Likewise.  Set regs_ever_live for
2874         pic_offset_table_rtx when invoked during reload.
2875         * config/i386/i386.h (FINALIZE_PIC): Remove.
2876         * config/i386/i386.md (tablejump): Reformat.  Do not set
2877         current_function_uses_pic_offset_table.
2878         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2879         (blockage): Accept anything as operand 0.
2880
2881 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
2882
2883         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2884         common CPP built-ins for all NetBSD a.out targets.
2885         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2886         common CPP built-ins for all NetBSD ELF targets.
2887         * config/netbsd.h: Add missing notice.
2888         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2889         for all NetBSD targets.
2890         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2891         for all NetBSD targets using an LP64 code model.
2892         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2893         NetBSD targets.
2894
2895 2002-05-28  Richard Henderson  <rth@redhat.com>
2896
2897         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2898         update if UPDATE_LIFE_LOCAL.
2899
2900 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2901
2902         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2903
2904 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2905                           Jason R. Thorpe <thorpej@wasabisystems.com>
2906
2907         config/sh reorganization to factor out endianness and coff:
2908
2909         * config/sh/little.h: New file.
2910         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2911         defined, define to 0 to select big-endian.
2912         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2913         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2914         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2915         * config/sh/t-be: New file.
2916         * config/sh/t-le: New file.
2917
2918         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2919         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2920         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2921         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2922         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2923         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2924         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2925         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2926         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2927         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2928         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2929         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2930         (LINK_SPEC): Define to SH_LINK_SPEC.
2931         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2932         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2933         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2934         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2935         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2936         * config/sh/coff.h: New file.
2937         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2938         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2939         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2940         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2941         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2942         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2943         (PTRDIFF_TYPE): Likewise.
2944         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2945         (CPP_PREDEFINES): Don't define.
2946         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2947         (LINK_SPEC): Define to SH_LINK_SPEC.
2948         (LINK_EMUL_PREFIX): Redefine.
2949         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2950         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2951         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2952         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2953         (TARGET_OS_CPP_BUILTINS): Define.
2954         (TARGET_DEFAULT): Redefine.
2955         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2956         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2957         (LINK_SPEC): Don't redefine.
2958         (LINK_DEFAULT_CPU_EMUL): Redefine.
2959         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2960         * sh.c (sh_asm_named_section): Don't declare / define.
2961         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2962         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2963         (sh64-*-elf* tm_file): Likewise.
2964         (sh-*-rtemself* tm_file): Likewise.
2965         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
2966         (sh-*-linux* tmake_file): Add sh/t-le.
2967         (sh-*-rtems* tm_file): Add sh/coff.h
2968         (sh-*-* tm_file): Likewise.
2969
2970 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2971
2972         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2973         CONSTANT_POOL_ADDRESS_P.
2974
2975         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2976
2977 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
2978             Jeff Law <law@redhat.com>
2979
2980         * optabs.c (expand_binop): Fix nwords sign warnings.
2981         generate pseudo for add_optab.
2982
2983         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2984         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2985
2986 2002-05-28      Marc Espie <espie@openbsd.org>
2987
2988         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
2989         inherited from gas.h.
2990         (ASM_QUAD):  Undef.  OpenBSD does not support it.
2991
2992 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
2993
2994         * doc/install.texi (binaries): Change mingw binaries
2995         link to www.mingw.org.
2996
2997 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2998
2999         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3000
3001 2002-05-28  Richard Henderson  <rth@redhat.com>
3002
3003         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3004         bottom alignment for leaf functions.
3005
3006 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3007
3008         * config/pa/milli32.S, config/pa/lib1funcs.asm,
3009         config/sparc/sol2-g1.asm: Delete unused files.
3010
3011 2002-05-28  Richard Henderson  <rth@redhat.com>
3012
3013         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3014
3015         * flow.c (calculate_global_regs_live): Rename call_used to
3016         invalidated_by_call.  Initialize from regs_invalidated_by_call
3017         instead of call_used_regs.
3018
3019         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3020         DECL_EXTERNAL.
3021
3022 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3023
3024         * tree.h: Don't include real.h.
3025         Forward-declare struct realvaluetype.
3026         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3027         contain it.
3028         (TREE_REAL_CST_PTR): New accessor.
3029         (TREE_REAL_CST): Update.
3030         * real.h: Include machmode.h.
3031         (realvaluetype): Make it struct realvaluetype, not a typedef.
3032         (build_real): Prototype here.
3033
3034         * tree.c: Include real.h.
3035         (build_real): Allocate the REAL_VALUE_TYPE as a separate
3036         object in GC memory, set TREE_REAL_CST_PTR to point to it.
3037         (build_real_from_int_cst): Use build_real.
3038         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3039         REAL_CST.
3040
3041         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3042         fold-const.c, print-tree.c, real.c: Include real.h.
3043         * Makefile.in: Update dependency lists.
3044
3045 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3046
3047         * basic-block.h (last_basic_block): Declare.
3048         (expunge_block_nocompact): Declaration removed.
3049         (compact_blocks): Declare.
3050         * cfg.c (last_basic_block): New variable.
3051         (expunge_block_nocompact): Removed.
3052         (expunge_block): Do not compact basic blocks.
3053         (compact_blocks): New.
3054         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3055         longer change.
3056         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3057         last_basic_block.
3058         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3059         real positions of blocks.
3060         (delete_unreachable_blocks): Simplified -- quadratic behavior now
3061         cannot occur.
3062         (cleanup_cfg): Compact blocks.
3063         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3064         basic_block_info varray.
3065         (flow_delete_block): Comment update.
3066         (back_edge_of_syntactic_loop_p): Modify position check code.
3067         (verify_flow_info): Update checking.
3068         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3069         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3070         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3071         indices no longer change.
3072         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3073         last_basic_block.
3074         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3075         * profile.c (branch_prob): Compact blocks.
3076         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3077         last_basic_block.
3078
3079 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3080
3081         * config/h8300/h8300.md (two anonymous patterns): New.
3082
3083 2002-05-28  David S. Miller  <davem@redhat.com>
3084
3085         * config/sparc/sparc.md (cpu): Tidy.
3086         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3087         'trap'.
3088         (in_call_delay): Delete reference to 'return' type.
3089         (eligible_for_return_delay, in_return_delay, define_delay
3090         referencing those): Delete.
3091         (rest of file): Use new type attributes as appropriate.
3092         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3093         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3094         * config/sparc/ultra1_2.md (us1_single): New reservation.
3095         (us1_ialuX): Likewise.
3096         * config/sparc/ultra3.md (us3_single): Likewise.
3097         (us3_ialuX): Likewise.
3098         (us3_imul, us3_idiv): Tweak.
3099
3100 2002-05-28  Richard Henderson  <rth@redhat.com>
3101
3102         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3103         STRING_CST.
3104
3105 2002-05-28  Richard Henderson  <rth@redhat.com>
3106
3107         * config.gcc: Obsolete mn10200.
3108
3109 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3110
3111         * cppexp.c (interpret_number): Optimize for single-digit
3112         and less-than-half-precision cases.
3113         (num_trim, num_positive, num_div_op): Cast constants.
3114
3115 2002-05-27  Bo Thorsen  <bo@suse.de>
3116
3117         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3118         3.1 branch. The file was made by Jakub Jelinek.
3119         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3120         support so multilib doesn't break. And don't define this at all
3121         when -Dinhibit_libc is used.
3122         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3123         * config/i386/t-linux64: Implement full multilib support. Patch
3124         originally done by Andreas Jaeger and Jakub Jelinek.
3125
3126 2002-05-27  Roger Sayle  <roger@eyesopen.com>
3127
3128         * c-common.c: Add support for __attribute__((nothrow)) to specify
3129         that a function cannot throw an exception (using TREE_NOTHROW).
3130         (handle_nothrow_attribute): New function to process this attribute.
3131
3132         * doc/extend.texi: Document the new nothrow function attribute.
3133
3134 2002-05-27  H.J. Lu  (hjl@gnu.org)
3135
3136         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3137         (num_positive): Likewise.
3138         (num_div_op): Likewise.
3139
3140 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3141
3142         * c-common.c (c_common_init): Always use intmax_t.
3143
3144 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3145
3146         * c-common.c (c_common_init): Use intmax_t for now.
3147
3148 2002-05-24  Andrew Haley  <aph@redhat.com>
3149
3150         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3151         if T is a boolean type.
3152
3153 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3154
3155         * basic-block.h (last_basic_block): Defined as synonym for
3156         n_basic_blocks.
3157         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3158         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3159         flow_dfs_compute_reverse_init): Replaced relevant occurences of
3160         n_basic_blocks with last_basic_block.
3161         * cfgbuild.c (make_edges): Likewise.
3162         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3163         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3164         * combine.c (combine_instructions): Likewise.
3165         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3166         iterative_dataflow_bitmap): Likewise.
3167         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3168         calc_idoms, idoms_to_doms): Likewise.
3169         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3170         Likewise.
3171         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3172         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3173         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3174         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3175         delete_null_pointer_checks, compute_code_hoist_vbeinout,
3176         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3177         compute_store_table, build_store_vectors): Likewise.
3178         * haifa-sched.c (sched_init): Likewise.
3179         * ifcvt.c (if_convert): Likewise.
3180         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3181         pre_edge_lcm, compute_available, compute_nearerout,
3182         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3183         Likewise.
3184         * predict.c (estimate_probability, process_note_prediction,
3185         note_prediction_to_br_prob): Likewise.
3186         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3187         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3188         * regrename.c (copyprop_hardreg_forward): Likewise.
3189         * resource.c (init_resource_info): Likewise.
3190         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3191         init_regions, schedule_insns): Likewise.
3192         * ssa-ccp.c (ssa_const_prop): Likewise.
3193         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3194         * ssa.c (compute_dominance_frontiers,
3195         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3196
3197         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3198         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3199         sizes consistently.
3200
3201 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3202
3203         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3204         new.
3205         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3206         hoist_insn_after, hoist_insn_to_edge): New.
3207
3208 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
3209
3210         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3211         (PROP_FINAL): Include.
3212         * flow.c (life_analysis, update_life_info,
3213         init_propagate_block_info, mark_set_1, mark_used_rgs):
3214         Support SCAN_DEAD_STORE.
3215
3216 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3217
3218         * c-common.c (c_common_init): Set CPP arithmetic precision.
3219         * cppexp.c (cpp_num_part): Move typedef ...
3220         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3221         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3222         (sanity_checks): Update.
3223
3224 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
3225
3226         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3227         (mkheaders): New rule.
3228         (install-mkheaders): New rule.
3229         * configure.in (all_outputs): Add mkheaders.
3230         * configure: Regenerate.
3231         * mkheaders.in: New file.
3232
3233 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
3234
3235         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3236
3237 2002-05-26  Andreas Jaeger  <aj@suse.de>
3238
3239         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3240
3241 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3242
3243         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3244         right_shift): Remove.
3245         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3246         HIGH_PART): New.
3247         (struct op): Use cpp_num.
3248         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3249         num_part_mul, num_unary_op, num_binary_op, num_negate,
3250         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3251         num_div_op, num_lshift, num_rshift, append_digit): New.
3252         (interpret_number, parse_defined, eval_token, reduce): Update
3253         for two-integer arithmetic.
3254         (binary_handler): New typedef.
3255         (optab): Update.
3256         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3257         (_cpp_parse_expr, reduce): Update to handle two-integers.
3258         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3259
3260 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3261
3262         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3263         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3264         branch insn into account, do not assume 1.
3265         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
3266         over single word insn.  Handle upper half of I/O space too.
3267         * config/avr/avr.md (*sbrx_branch): Use it.
3268         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3269         (*sbix_branch, *sbix_branch_bit7): Likewise.
3270         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3271         Use RTL peepholes to optimize register operand sign tests.
3272
3273 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3274
3275         * config/avr/avr.c (avr_asm_only_p): New variable.
3276         (avr_override_options): Set it here if AVR1.
3277         (asm_file_start): Test it here, report an error if set.
3278
3279 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
3280
3281         * alias.c: Fix formatting.
3282         * attribs.c: Likewise.
3283         * bb-reorder.c: Likewise.
3284         * bitmap.c: Likewise.
3285         * bitmap.h: Likewise.
3286         * builtins.c: Likewise.
3287
3288 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
3289
3290         * reload.c (find_valid_class): Accept new argument DEST,
3291         choose class accordingly.
3292         (push_reload): Update callers.
3293
3294 2002-05-26  Andreas Jaeger  <aj@suse.de>
3295
3296         * combine.c (combine_instructions): Do not indent #if for
3297         traditional C.
3298
3299 2002-05-25  Richard Henderson  <rth@redhat.com>
3300
3301         * c-pragma.c (apply_pragma_weak): Convert value identifier to
3302         string for decl_attributes.
3303         (handle_pragma_weak): Call assemble_alias if we're modifying
3304         an existing decl.
3305
3306 2002-05-25  Richard Henderson  <rth@redhat.com>
3307
3308         PR target/6788
3309         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3310         using rtl instead of fprintf.
3311         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3312         * config/sparc/sparc-protos.h: Update.
3313
3314 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3315
3316         * Makefile.in (C_COMMON_H): Fix.
3317         Update other targets.
3318         * c-common.c: Don't include c-lex.h.
3319         (builtin_define_with_value): Make static and prototype.
3320         (builtin_define_std): Move from c-lex.h.
3321         * c-common.h (init_c_lex): Move from c-lex.h.
3322         * c-decl.c: Don't include c-lex.h.
3323         (make_pointer_declarator): Move from c-parse.in.
3324         * c-lex.c: Don't include c-lex.h.
3325         * c-lex.h: Remove.
3326         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3327         (make_pointer_declarator): Move to c-decl.c.
3328         * c-pragma.c: Don't include c-lex.h.
3329         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3330         * c-tree.h (make_pointer_declarator): New.
3331 doc:
3332         * passes.texi, tm.texi: Update.
3333 objc:
3334         * Make-lang.in: Update and correct.
3335         * objc-act.c: Don't include c-lex.h or cpplib.h.
3336 treelang:
3337         * treetree.c: Don't include c-lex.h.
3338 config:
3339         * darwin-c.c: Don't include c-lex.h.
3340         * c4x/c4x-c.c: Don't include c-lex.h.
3341         * c4x/t-c4x: Update.
3342         * i370/i370-c.c: Don't include c-lex.h.
3343         * i370/t-i370: Update.
3344         * i960/i960-c.c: Don't include c-lex.h.
3345         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3346         * i960/t-960bare: Update.
3347         * i960/t-vxworks: Update.
3348         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3349         * rs6000/t-darwin: Update.
3350         * rs6000/t-rs6000-c-rule: Update.
3351         * v850/v850-c.c: Don't include c-lex.h.
3352         * v850/v850.c: Don't include c-lex.h or cpplib.h.
3353
3354
3355 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3356
3357         * tree.def: Fix typos.
3358         * doc/install.texi: Likewise.
3359
3360 2002-05-25  Richard Henderson  <rth@redhat.com>
3361
3362         * configure.in (HAVE_AS_TLS): Add ia64 test.
3363         * configure: Rebuild.
3364         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3365         (override_options): Set it.
3366         (TARGET_HAVE_TLS): New.
3367         (sdata_symbolic_operand): Look for 's'.
3368         (tls_symbolic_operand): New.
3369         (ia64_expand_load_address): Abort for tls symbols.
3370         (gen_tls_get_addr): New.
3371         (gen_thread_pointer): New.
3372         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
3373         (rtx_needs_barrier): Add new unspecs.
3374         (ia64_encode_section_info): Handle tls symbols.
3375         (ia64_strip_name_encoding): Strip two encoding chars.
3376         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3377         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3378         (TARGET_OPTIONS): Add tls-size.
3379         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3380         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3381         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3382         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3383         (movsf, movdf): Likewise.
3384         (movdi_symbolic): Use match_scratch.  Don't split if we won't
3385         have a scratch availiable.
3386         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3387         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3388         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3389         * config/ia64/ia64-protos.h: Update.
3390         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3391         sdata_symbolic_operand.
3392         (ASM_OUTPUT_LABELREF): Strip two characters.
3393
3394 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3395
3396         * combine.c (simplify_set): Remove an unnecessary subreg.
3397
3398 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3399
3400         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3401
3402         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3403
3404 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3405
3406         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
3407
3408 2002-05-25  Roger Sayle  <roger@eyesopen.com>
3409
3410         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3411         (cond (compare x y) 0) into the equivalent (cond x y).
3412
3413 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3414
3415         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
3416
3417 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
3418
3419         * config.gcc: Remove all stanzas for previously obsoleted
3420         systems.  Where necessary, add explicit error stanzas to
3421         prevent removed systems from being misidentified as something
3422         else.  Begin a fresh obsoletions list, with the systems that
3423         were reprieved last round.
3424         * doc/install.texi: Remove all mention of dead targets.
3425         * fixinc/mkfixinc.sh: Likewise.
3426
3427         * config/arm/arm.h: Bit 31 of target_flags is no longer
3428         reserved.
3429
3430         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3431         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3432         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3433         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3434         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3435         config/alpha/osf12.h, config/alpha/osf2or3.h,
3436         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3437         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3438         config/clipper/clipper-protos.h, config/clipper/clipper.c,
3439         config/clipper/clipper.h, config/clipper/clipper.md,
3440         config/clipper/clix.h, config/convex/convex-protos.h,
3441         config/convex/convex.c, config/convex/convex.h,
3442         config/convex/convex.md, config/convex/fixinc.convex,
3443         config/convex/proto.h, config/elxsi/elxsi-protos.h,
3444         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3445         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3446         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3447         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3448         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3449         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3450         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3451         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3452         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3453         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3454         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3455         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3456         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3457         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3458         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3459         config/m68k/altos3068.h, config/m68k/apollo68.h,
3460         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3461         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3462         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3463         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3464         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3465         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3466         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3467         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3468         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3469         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3470         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3471         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3472         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3473         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3474         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3475         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3476         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3477         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3478         config/mips/dec-osf1.h, config/mips/elflorion.h,
3479         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3480         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3481         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3482         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3483         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3484         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3485         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3486         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3487         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3488         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3489         config/ns32k/sequent.h, config/ns32k/tek6000.h,
3490         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3491         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3492         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3493         config/sparc/rtems.h, config/we32k/we32k-protos.h,
3494         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3495         Delete file.
3496
3497 2002-05-24  Richard Henderson  <rth@redhat.com>
3498
3499         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3500         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3501         * config/i386/i386.c (tls_model_chars): Add leading space.
3502         (tls_symbolic_operand): Don't bias by 1.
3503         (legitimize_address): Don't unbias by 1.
3504
3505 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3506
3507         * lcm.c (optimize_mode_switching): Change bb used as indices
3508         to bb->index.
3509
3510 2002-05-24  Richard Henderson  <rth@redhat.com>
3511
3512         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3513         of update_life_info_in_dirty_blocks.
3514
3515 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
3516
3517         PR other/6782
3518         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3519
3520 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3521
3522         PR preprocessor/6780
3523         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3524
3525 2002-05-24  Jim Blandy  <jimb@redhat.com>
3526
3527         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3528         entry with a type code of zero, marking the end of the compilation
3529         unit's macro info.
3530
3531 2002-05-24  Richard Henderson  <rth@redhat.com>
3532
3533         * varasm.c (asm_output_bss): Always output one byte.
3534         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3535
3536 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3537
3538         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3539         namespace.
3540
3541 2002-05-24  Andreas Jaeger  <aj@suse.de>
3542
3543         * ggc-page.c (alloc_page): Cast variables of type size_t to
3544         unsigned long, adjust printf format string.
3545         (ggc_alloc): Likewise.
3546         (ggc_print_statistics): Likewise.
3547         (ggc_print_statistics): Correct printf format string for SCALE to
3548         use unsigned long.
3549
3550 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
3551
3552         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3553
3554 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
3555             Zack Weinberg     <zack@codesourcery.com>
3556
3557         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3558         quoted strings.
3559         * dwarf2out.c (lookup_filename): Properly quote filename in .file
3560         directive in assembly file.
3561         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3562         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3563         * config/pj/pj.h (ASM_FILE_START): Likewise.
3564         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3565         * config/avr/avr.c (asm_file_end): Likewise.
3566         * toplev.c (output_quoted_string): Handle possibly signed plain
3567         char.
3568         * toplev.h (output_clean_symbol_name): Declare
3569         * toplev.c (output_clean_symbol_name): Define.
3570         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3571         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3572
3573 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
3574
3575         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3576
3577 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
3578
3579         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3580         of size of unsigned.
3581
3582 2002-05-23  Richard Henderson  <rth@redhat.com>
3583
3584         * configure.in (HAVE_AS_TLS): New test.
3585         * config.in, configure: Rebuild.
3586         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3587         (ix86_tls_dialect_string, ix86_tls_dialect): New.
3588         (override_options): Set it.
3589         (tls_model_chars, tls_symbolic_operand): New.
3590         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3591         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3592         (local_exec_symbolic_operand): New.
3593         (get_pic_label_name): Merge into output_set_got.
3594         (ix86_asm_file_end): Emit pic_label_name if defined.
3595         (legitimate_constant_p, constant_address_p): New.
3596         (legitimate_pic_operand_p): New.
3597         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3598         (legitimate_address_p): Likewise.
3599         (ix86_encode_section_info): Rename from i386_; handle tls decls.
3600         (ix86_strip_name_encoding): New.
3601         (get_thread_pointer): New.
3602         (legitimize_address): Handle tls symbols.
3603         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3604         Remove UNSPEC_PLT.
3605         (struct machine_function): Add some_ld_name.
3606         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3607         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
3608         (output_addr_const_extra): New.
3609         (maybe_get_pool_constant): New.
3610         (ix86_split_to_parts): Use it.
3611         (ix86_expand_move): Handle tls symbols.
3612         (ix86_tls_get_addr): New.
3613         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3614         (TARGET_OPTIONS): Add tls-dialect.
3615         (CONSTANT_ADDRESS_P): Use new out-of-line function.
3616         (LEGITIMATE_CONSTANT_P): Likewise.
3617         (LEGITIMATE_PIC_OPERAND_P): Likewise.
3618         (TARGET_STRIP_NAME_ENCODING): New.
3619         (ASM_OUTPUT_LABELREF): New.
3620         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3621         (OUTPUT_ADDR_CONST_EXTRA): New.
3622         (PREDICATE_CODES): Update.
3623         (ix86_tls_dialect, ix86_tls_dialect_string): New.
3624         * config/i386/i386.md: Regroup and renumber unspec constants.
3625         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3626         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3627         (tls_global_dynamic, tls_local_dynamic_base): New.
3628         (tls_local_dynamic_once): New.
3629         * config/i386/i386-protos.h: Update.
3630
3631 2002-05-23  Richard Henderson  <rth@redhat.com>
3632
3633         * genemit.c (gen_insn): Print file:lineno comment before function.
3634         (main): likewise.
3635         * gensupport.c (struct queue_elem): Add filename member.
3636         (queue_pattern): Initialize it; update all callers.
3637         (process_include): Don't free filename.
3638         (read_md_rtx): Set read_rtx_filename.
3639
3640 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
3641
3642         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3643
3644 2002-05-23  Richard Henderson  <rth@redhat.com>
3645
3646         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3647
3648 2002-05-23  Richard Henderson  <rth@redhat.com>
3649
3650         * doc/extend.texi (C++98 Thread-Local Edits): Update with
3651         commentary from Mark.
3652
3653 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3654
3655         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3656         Use FOR_EACH_BB macros to iterate over basic block chain.
3657         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3658         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3659         Likewise.
3660         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3661         find_unreachable_blocks, create_edge_list, verify_edge_list,
3662         remove_fake_edges, add_noreturn_fake_exit_edges,
3663         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3664         Likewise.
3665         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3666         find_sub_basic_blocks): Likewise.
3667         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3668         Likewise.
3669         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3670         Likewise.
3671         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3672         Likewise.
3673         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3674         commit_edge_insertions, commit_edge_insertions_watch_calls,
3675         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3676         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3677         * conflict.c (conflict_graph_compute): Likewise.
3678         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3679         df_modified_p, df_refs_unlink, df_dump): Likewise.
3680         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3681         * final.c (compute_alignments): Likewise.
3682         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3683         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3684         count_or_remove_death_notes): Likewise.
3685         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3686         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3687         classic_gcse, compute_transp, cprop, compute_pre_data,
3688         compute_transpout, invalidate_nonnull_info,
3689         delete_null_pointer_checks_1, delete_null_pointer_checks,
3690         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3691         compute_store_table, build_store_vectors, store_motion): Likewise.
3692         * global.c (global_conflicts, mark_elimination): Likewise.
3693         * graph.c (print_rtl_graph_with_bb): Likewise.
3694         * haifa-sched.c (sched_init): Likewise.
3695         * ifcvt.c (if_convert): Likewise.
3696         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3697         compute_available, compute_nearerout, compute_rev_insert_delete,
3698         optimize_mode_switching): Likewise.
3699         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3700         * predict.c (estimate_probability, note_prediction_to_br_prob,
3701         propagate_freq, counts_to_freqs, expensive_function_p,
3702         estimate_bb_frequencies): Likewise.
3703         * profile.c (instrument_edges, get_exec_counts,
3704         compute_branch_probabilities, compute_checksum, branch_prob,
3705         find_spanning_tree): Likewise.
3706         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3707         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3708         Likewise.
3709         * regclass.c (scan_one_insn, regclass): Likewise.
3710         * regmove.c (mark_flags_life_zones, regmove_optimize,
3711         record_stack_memrefs): Likewise.
3712         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3713         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3714         * resource.c (find_basic_block): Likewise.
3715         * sched-ebb.c (schedule_ebbs): Likewise.
3716         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3717         find_single_block_region, find_rgns, schedule_insns)
3718         * sibcall.c (optimize_sibling_and_tail_recursive_call)
3719         * ssa-ccp.c (optimize_unexecutable_edges,
3720         ssa_ccp_df_delete_unreachable_insns): Likewise.
3721         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3722         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3723         rename_block, convert_to_ssa, compute_conservative_reg_partition,
3724         compute_coalesced_reg_partition, rename_equivalent_regs,
3725         convert_from_ssa): Likewise.
3726         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3727         process_for_unwind_directive): Likewise.
3728
3729         * df.c (FOR_ALL_BBS): Removed.
3730         * gcse.c (struct null_pointer_info): Type of current_block field
3731         changed.
3732         (struct reg_avail_info): Type of last_bb field changed.
3733         * config/ia64/ia64.c (block_num): Removed.
3734         (need_copy_state): Type changed.
3735         (last_block): New.
3736
3737 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3738
3739         * cppinit.c (mark_named_operators): Split out from init_builtins.
3740         (cpp_finish_options): Call it from here instead.
3741
3742 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3743
3744         * builtin-attrs.def: Update copyright years.
3745         (ATTR_NONNULL): New attribute identifier.
3746         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3747         attribute tree lists.
3748         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3749         format operand.
3750         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3751         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3752         attribute lists.  Chain the appropriate nonnull attribute.
3753         * c-format.c (check_format_arg): Remove null format string
3754         warning.
3755         * testsuite/gcc.dg/format/null-1.c: New test.
3756
3757 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3758
3759         * Makefile.in (ADAC): Define.
3760         (SYSLIBS): Define.
3761         (.SUFFIXES): Move before language makefile fragments.
3762         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3763
3764 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
3765
3766         * varasm.c (make_decl_rtl): Don't allow weak variables to be
3767         placed in common.
3768
3769 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3770
3771         * cfg.c (dump_flow_info): Print results of
3772         maybe_hot/probably_never_executed predicates.
3773         * toplev.c (open_dump_file): Print function frequency.
3774
3775 2002-05-23  David S. Miller  <davem@redhat.com>
3776
3777         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3778         regsets.
3779
3780 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3781
3782         * c-common.c (warn_nonnull): Declare.
3783         (c_common_attribute_table): Add "nonnull" attribute.
3784         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3785         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3786         check_function_arguments_recurse): New functions.
3787         * c-common.h (warn_nonnull): Declare extern.
3788         (check_function_arguments, check_function_arguments_recurse): New
3789         prototypes.
3790         * c-decl.c (c_decode_option): Add -Wnonnull option.
3791         * c-format.c (set_Wformat): Set warn_nonnull if enabling
3792         format checking.
3793         (format_check_context): New structure.
3794         (check_format_info_recurse): Remove recursion and rename to...
3795         (check_format_arg): ...this.  Update comment.
3796         (check_format_info): Use check_function_arguments_recurse.
3797         * c-typeck.c (build_function_call): Call check_function_arguments
3798         instead of check_function_format.
3799         * doc/extend.texi: Document "nonnull" attribute.
3800         * doc/invoke.texi: Docuemnt -Wnonnull option.
3801         * testsuite/gcc.dg/nonnull-1.c: New test.
3802         * testsuite/gcc.dg/nonnull-2.c: New test.
3803
3804 2002-05-23  David S. Miller  <davem@redhat.com>
3805
3806         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3807         * cfgcleanup.c (cleanup_cfg): If it is set do not
3808         attempt to delete trivially dead insns.
3809         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3810         * toplev.c (rest_of_compilation): Document non-trivial aspect
3811         the RTL before optimize_save_area_alloca is run.
3812
3813 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3814
3815         * c-lex.c (indent_level): Remove.
3816         (cb_file_change, c_lex): Remove indent level handling.
3817         * c-lex.h (indent_level): Remove.
3818         * input.h (struct file_stack): Remove indent_level.
3819         * toplev.c (push_srcloc): Remove indent_level handling.
3820
3821 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3822
3823         PR target/6753
3824         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3825         of x in constraints for clarity.
3826         (sse_mov?fcc split): abort if op2 == op3.
3827         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3828         sse_movsfcc_const0_4): Add earlyclobber.
3829         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3830         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
3831         Use Y instead of x in constraints.
3832
3833 2002-05-23  Richard Henderson  <rth@redhat.com>
3834
3835         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3836         (C++98 Thread-Local Edits): New subsection.
3837
3838         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3839         (ix86_arch): Set type to enum processor_type.
3840
3841         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3842         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3843
3844 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3845
3846         * configure.in: Fix as version test for binutils 2.12.1 releases
3847         (without dates).
3848         * configure: Rebuilt.
3849
3850 2002-05-23  Richard Henderson  <rth@redhat.com>
3851
3852         * config/i386/i386.c (get_pic_label_name): New.
3853         (load_pic_register): Remove.
3854         (output_set_got): New.
3855         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3856         * config/i386/i386.md (UNSPEC_SET_GOT): New.
3857         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3858         (prologue_set_got, prologue_get_pc): Remove.
3859         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3860         (builtin_setjmp_receiver): Use gen_set_got.
3861         * config/i386/i386-protos.h: Update.
3862
3863 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
3864
3865         * gcse.c (hash_expr): Do not use alias set for hashing.
3866
3867 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
3868
3869         * dbxout.c (dbxout_class_name_qualifiers): New function.
3870         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3871
3872 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3873
3874         * cpperror.c (_cpp_begin_message): No special casing
3875         of CPP_FATAL_LIMIT.
3876         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3877         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3878         * cpplib.c (do_include_common): Use DL_ERROR.
3879         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3880         (DL_ICE): Renumber.
3881         * fix-header.c (read_scan_file): Update.
3882
3883 2002-05-22  Richard Henderson  <rth@redhat.com>
3884
3885         * config/i386/i386.c (ix86_expand_call): New function, extracted
3886         from md call patterns.  Add pic_offset_table_rtx to
3887         CALL_INSN_FUNCTION_USAGE when needed.
3888         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3889         (call_value_pop, call_value, untyped_call): Likewise.
3890         (call_exp, call_value_exp): Remove.
3891         * config/i386/i386-protos.h: Update.
3892
3893 2002-05-22  Richard Henderson  <rth@redhat.com>
3894
3895         * varasm.c (default_section_type_flags): Check for VAR_DECL
3896         before using DECL_THREAD_LOCAL.
3897
3898 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
3899
3900         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3901         (STARTFILE_SPEC): Delete PE crt0.o.
3902         * config/rs6000/aix51.h: Same.
3903         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3904         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3905         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
3906         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3907         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3908
3909 2002-05-22  Richard Henderson  <rth@redhat.com>
3910
3911         * varasm.c (default_section_type_flags): Handle tls data and
3912         default sections.
3913         (default_unique_section): Handle tls sections.
3914
3915 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
3916
3917         * configure.in (CROSS): Define NATIVE_CROSS.
3918         * configure: Regenerate.
3919         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3920         (startfile_prefix_spec): New var.
3921         (static_specs): Add startfile_prefix_spec.
3922         (do_spec_2): Split out from..
3923         (do_spec): ..here.
3924         (main): Process startfile_prefix_spec.
3925         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3926         dynamic linker.
3927         (STARTFILE_PREFIX_SPEC): Define.
3928         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3929         absolute paths.
3930
3931 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3932
3933         * cpperror.c: Fix formatting.
3934         * cppexp.c: Likewise.
3935         * cppfiles.c: Likewise.
3936         * cpphash.c: Likewise.
3937         * cpphash.h: Likewise.
3938         * cppinit.c: Likewise.
3939         * cpplex.c: Likewise.
3940         * cpplib.c: Likewise.
3941         * cppmacro.c: Likewise.
3942         * cppmain.c: Likewise.
3943         * cppspec.c: Likewise.
3944
3945 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3946
3947         * combine.c (force_to_mode): Use gen_int_mode.
3948         Don't clear CONST_INT bits outside of mode.
3949
3950 2002-05-22  Richard Henderson  <rth@redhat.com>
3951
3952         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3953         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3954
3955 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3956
3957         PR c/6643
3958         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3959         if DECL_SIZE_UNIT is INTEGER_CST.
3960
3961 2002-05-22  Richard Henderson  <rth@redhat.com>
3962
3963         * flow.c (life_analysis): Delete broken reg_label check.
3964
3965 2002-05-22  Richard Henderson  <rth@redhat.com>
3966
3967         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3968         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3969
3970 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3971
3972         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3973         (embed-bb.c): New rule.
3974         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3975         * config/sh/embed_bb.c: Delete.
3976
3977 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
3978
3979         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3980
3981 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3982
3983         * config/h8300/h8300.md (*andorqi3): New.
3984
3985 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3986
3987         PR preprocessor/6517
3988         * Makefile.in: Update.
3989         * c-common.c (c_common_post_options): Add preprocessor
3990         errors to the error count.
3991         * c-lang.c (c_post_options): Kill.
3992         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3993         * hooks.h: Add header guards.
3994         * langhooks-def.h: Include hooks.h.
3995         (LANG_HOOKS_POST_OPTIONS): Update.
3996         * langhooks.h (struct lang_hooks): Update post_options.
3997         * toplev.c (parse_options_and_default_flags): Update.
3998 objc:
3999         * objc-lang.c (objc_post_options): Kill.
4000         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4001
4002 2002-05-21  Bruce Korb  <bkorb@gnu.org>
4003
4004         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4005         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4006         * fixinc/fixincl.x: regen.
4007
4008 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
4009
4010         * cfgbuild.c: Fix formatting.
4011         * cfg.c: Likewise.
4012         * cfgcleanup.c: Likewise.
4013         * cfglayout.c: Likewise.
4014         * cfgloop.c: Likewise.
4015         * cfgrtl.c: Likewise.
4016
4017 2002-05-21  Richard Henderson  <rth@redhat.com>
4018
4019         * c-common.h (enum rid): Add RID_THREAD.
4020         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4021         (grokdeclarator): Grok __thread.
4022         * c-parse.in (reswords): Add __thread.
4023         (rid_to_yy): Add RID_THREAD.
4024
4025         * tree.h (DECL_THREAD_LOCAL): New.
4026         (struct tree_decl): Add thread_local_flag.
4027         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4028         * tree.c (staticp): TLS variables are not static.
4029
4030         * target-def.h (TARGET_HAVE_TLS): New.
4031         * target.h (have_tls): New.
4032         * output.h (SECTION_TLS): New.
4033         * varasm.c (assemble_variable): TLS variables can't be common for now.
4034         (default_section_type_flags): Handle .tdata and .tbss.
4035         (default_elf_asm_named_section): Handle SECTION_TLS.
4036         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4037
4038         * flags.h (flag_tls_default): Declare.
4039         * toplev.c (flag_tls_default): Define.
4040         (display_help): Display help for it.
4041         (decode_f_option): Set it.
4042
4043         * doc/extend.texi (Thread-Local): New node describing language-level
4044         thread-local storage.
4045         * doc/invoke.texi (-ftls-model): Document.
4046
4047         * fixinc/inclhack.def (thread_keyword): New.
4048         * fixinc/fixincl.x: Rebuild.
4049
4050 2002-05-21  Jeffrey A Law  <law@redhat.com>
4051
4052         * optabs.c (expand_binop): For double-word integer multiplies,
4053         do not compute intermediate results into something that is
4054         not a register (such as a SUBREG or MEM).
4055
4056         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4057         (ix86_sched_reorder): Make sure to initialize scheduling
4058         data even when there's only one insn in the ready queue.
4059
4060 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4061
4062         * genautomata.c (reserv_sets_hash_value): Fix a typo.
4063
4064 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4065
4066         * genautomata.c (reserv_sets_hash_value): Define hash_value as
4067         set_el_t.  Transform the hash value into unsigned.
4068         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4069         (transform_3): Add code to process `(A,B)+(D,E)'.
4070
4071 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
4072
4073         * reload1.c (do_output_reload): Run delete_output_reload
4074         only if optimizing.
4075
4076 2002-05-21  Roger Sayle  <roger@eyesopen.com>
4077
4078         PR middle-end/6600
4079         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4080         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
4081         (can_store_by_pieces): ... and here to limit the largest mode used.
4082         Add a comment to document this function.
4083
4084 2002-05-21  Richard Henderson  <rth@redhat.com>
4085
4086         * flow.c (life_analysis): Fix test for deleted label.
4087
4088 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4089
4090         * doc/tm.texi: Fix typo.
4091
4092 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
4093
4094         * c-common.c (c_common_init): Set options->unsigned_char from
4095         flag_signed_char.
4096         (cb_register_builtins): Define __STRICT_ANSI__ and
4097         __CHAR_UNSIGNED__ here...
4098         * cppinit.c (init_builtins): Not here.
4099         (cpp_create_reader): unsigned_char option defaults to 0, not
4100         !DEFAULT_SIGNED_CHAR.
4101         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4102         and -funsigned-char.
4103
4104         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4105         * cpphash.c (_cpp_init_hashtable): Don't set it.
4106         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4107         directly.  Clarify comment.
4108
4109 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4110
4111         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4112         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
4113         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
4114         BASIC_BLOCK (n_basic_blocks - 1).
4115         * cfganal.c (can_fallthru, flow_call_edges_add,
4116         flow_preorder_transversal_compute): Too.
4117         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4118         find_sub_basic_blocks): Too.
4119         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4120         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4121         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4122         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4123         * combine.c (this_basic_block): Type changed to basic_block.
4124         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4125         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4126         get_last_value, distribute_notes, distribute_links): Too.
4127         * final.c (compute_alignments): Too.
4128         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4129         * function.c (thread_prologue_and_epilogue_insns): Too.
4130         * gcse.c (compute_code_hoist_vbeinout): Too.
4131         * global.c (build_insn_chain): Too.
4132         * ifcvt.c (find_if_block, find_cond_trap): Too.
4133         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4134         * regmove.c (regmove_optimize): Too.
4135         * resource.c (find_basic_block): Too.
4136         * sched-ebb.c (schedule_ebbs): Too.
4137         * ssa-dce.c (find_control_dependence, find_pdom): Too.
4138
4139 2002-05-21  Andreas Jaeger  <aj@suse.de>
4140
4141         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4142
4143 2002-05-21  Richard Henderson  <rth@redhat.com>
4144
4145         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4146         unspec names, not numbers.
4147
4148 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4149
4150         * doc/sourcebuild.texi: Mention snapshot-README and
4151         snapshot-index.html as needing updating for new front ends.
4152
4153 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4154
4155         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4156         disabling checking, and avoid multiple evaluation of RTX.
4157
4158 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
4159
4160         * bitmap.c (bitmap_find_bit): Return early if we have the correct
4161         element cached.
4162
4163 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4164
4165         * profile.c (gen_edge_profiler):  Set alias set before the memory is
4166         used.
4167
4168 2002-05-20  David S. Miller  <davem@redhat.com>
4169
4170         * cselib.c (max_value_regs): New.
4171         (cselib_lookup, cselib_invalidate_regno): Initialize it when
4172         adding new entries to the REG_VALUES table and we are dealing with
4173         a hard register.
4174         (clear_table): Initialize it.
4175         (cselib_invalidate_regno): Use it to determine which hard
4176         registers to scan when mode is not VOIDmode.
4177
4178 2002-05-20  Duraid Madina   <duraid@fl.net.au>
4179
4180         * tradcpp.c (fixup_newlines): Use old-style function header.
4181
4182 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
4183
4184         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4185
4186 2002-05-20  H.J. Lu  (hjl@gnu.org)
4187
4188         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4189
4190         * config/mips/mips.h (DFMODE_NAN): Defined.
4191         (SFMODE_NAN): Likewise.
4192
4193 2002-05-20  Dale Johannesen  <dalej@apple.com>
4194
4195         * combine.c (cant_combine_insn_p):  Back out my
4196         previous patch.
4197
4198 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4199
4200         * params.c: Fix formatting.
4201         * params.h: Likewise.
4202         * predict.c: Likewise.
4203         * prefix.c: Likewise.
4204         * print-rtl.c: Likewise.
4205         * print-tree.c: Likewise.
4206         * profile.c: Likewise.
4207
4208 2002-05-20  H.J. Lu  (hjl@gnu.org)
4209
4210         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4211
4212 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
4213
4214         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4215         switches straight on to the assembler, do not abbreviate them.
4216         * config/arm/elf.h (ASM_SPEC): As above.
4217         * config/arm/semi.h (ASM_SPEC): As above.
4218         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4219         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4220         -mcpu=xscale on to the assembler by default.
4221         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4222
4223 2002-05-20  Richard Henderson  <rth@redhat.com>
4224
4225         * cse.c (canon_hash): Reorder do_not_record test.  Always
4226         allow pic_offset_table_rtx.
4227
4228 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
4229
4230         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4231         (expand_binop): Ditto (3 times).
4232
4233 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
4234
4235         * Makefile.in (distclean): Remove QMTest stuff.
4236         (QMTEST_PATH): New variable.
4237         (QMTESTFLAGS): Likewise.
4238         (QMTESTRUNFLAGS): Likewise.
4239         (QMTEST): Likewise.
4240         (QMTEST_GPP_TESTS): Likewise.
4241         (QMTEST_DIR): Likewise.
4242         (QMTEST_DIR/context): New target.
4243         (qmtest-g++): Likeise.
4244         (qmtest-gui): Likewise.
4245         (QMTEST_DIR/gpp-expected.qmr): Likewise.
4246
4247 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
4248
4249         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4250         an altivec register if TARGET_ALTIVEC.
4251
4252         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4253         to ALTIVEC_VECTOR_MODE.
4254         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4255         (rs6000_va_arg): Vectors may go in registers if they are not
4256         altivec vectors.
4257
4258 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4259
4260         * protoize.c: Fix formatting.
4261
4262 2002-05-19  Richard Henderson  <rth@redhat.com>
4263
4264         * gensupport.c (init_include_reader): Merge into ...
4265         (process_include): ... here.  Simplify composite path creation.
4266         Plug memory leaks.  Fix file/line number tracking.  Do not
4267         process_define_cond_exec.  Return void.
4268         (process_rtx): Don't check process_include return value.
4269
4270 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4271
4272         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4273         fields.
4274         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4275         traversing basic block chain.
4276         (create_basic_block_structure, create_basic_block): Declaration changed.
4277         (link_block, unlink_block): Declare.
4278         * cfg.c (entry_exit_blocks): Initialize new fields.
4279         (link_block, unlink_block): New.
4280         (expunge_block_nocompact): Unlink basic block.
4281         (dump_flow_info): Print prev_bb/next_bb fields.
4282         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4283         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4284         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4285         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4286         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4287         (verify_flow_info): Check that list agrees with numbering.
4288
4289 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4290
4291         * c-common.c (preprocessing_asm): New macro.
4292         * c-lex.h (builtin_define, builtin_assert): Use pfile.
4293 doc:
4294         * tm.texi: Update.
4295 config/alpha:
4296         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4297         (CPP_SPEC): Simplify.
4298         (TARGET_CPU_CPP_BUILTINS): Update.
4299         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4300         (CPP_SPEC): Simplify.
4301         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4302         (TARGET_OS_CPP_BUILTINS): Update.
4303         * osf.h (CPP_XFLOAT_SPEC): Kill.
4304         (TARGET_OS_CPP_BUILTINS): Update.
4305         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4306         * osf5.h (CPP_XFLOAT_SPEC): Kill.
4307         * vms.h (CPP_SUBTARGET_SPEC): Kill.
4308         (TARGET_OS_CPP_BUILTINS): Update.
4309
4310 2002-05-19  Richard Henderson  <rth@redhat.com>
4311
4312         * varasm.c (default_binds_local_p): Fix typo.
4313
4314 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4315
4316         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4317         CONST_INT operand to the correct mode after adding 1 to it.
4318
4319 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
4320
4321         * config.gcc (powerpc-wrs-windiss*): New target.
4322
4323 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4324
4325         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4326         (ashrdi3): Use it.
4327
4328 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
4329
4330         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4331         alphasort.
4332         * config.in: Regenerated.
4333         * configure: Regenerated.
4334
4335 2002-05-19  Richard Henderson  <rth@redhat.com>
4336
4337         * target-def.h (TARGET_BINDS_LOCAL_P): New.
4338         * target.h (struct gcc_target): Move boolean fields to the end.
4339         Add binds_local_p.
4340         * varasm.c (default_binds_local_p): New.
4341         * output.h: Declare it.
4342
4343         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4344         * config/cris/cris.c (cris_encode_section_info): Likewise.
4345         * config/i386/i386.c (i386_encode_section_info): Likewise.
4346         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4347         * config/sh/sh.c (sh_encode_section_info): Likewise.
4348
4349         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4350         (TARGET_BINDS_LOCAL_P): New.
4351
4352 2002-05-19  Richard Henderson  <rth@redhat.com>
4353
4354         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4355         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4356         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4357
4358         * toplev.c (display_help): Kill -a -ax help.
4359
4360         * config/1750a/1750a.h, config/alpha/alpha.h,
4361         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4362         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4363         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4364         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4365
4366         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4367         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4368
4369         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4370         (ix86_output_function_block_profiler): Kill.
4371         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4372         (m68hc11_function_block_profiler): Kill.
4373         * config/m68hc11/m68hc11-protos.h: Update.
4374         * config/m88k/m88k.c (output_block_profiler): Kill.
4375         (output_function_block_profiler): Kill.
4376         * config/m88k/m88k-protos.h: Update.
4377
4378 2002-05-19  Richard Henderson  <rth@redhat.com>
4379
4380         * system.h (STRIP_NAME_ENCODING): Poison it.
4381         * output.h (STRIP_NAME_ENCODING): Remove.
4382         (default_strip_name_encoding): Declare.
4383         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4384         * target.h (strip_name_encoding): New.
4385         * varasm.c (default_strip_name_encoding): New.
4386
4387         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4388         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4389         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4390         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4391         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4392         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4393         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4394         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4395         config/v850/v850.h: Use the hook, not the macro.
4396
4397         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4398         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4399         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4400         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4401         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4402         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4403         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4404         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4405         config/v850/v850.c, config/v850/v850.h:
4406         Move STRIP_NAME_ENCODING to out-of-line function and add
4407         TARGET_STRIP_NAME_ENCODING.
4408
4409         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4410         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4411         with TARGET_STRIP_NAME_ENCODING referencing existing function;
4412         make function static.
4413
4414         * xcoffout.c: Include target.h
4415         * Makefile.in (xcoffout.o): Update.
4416
4417         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4418         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4419         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4420         reloc argument unused.
4421         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4422
4423         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4424         STRIP_NAME_ENCODING docs.
4425
4426 2002-05-19  Andreas Jaeger  <aj@suse.de>
4427
4428         * gengenrtl.c: Add prototype for excluded_rtx.
4429
4430         * real.h: Add prototype for exact_real_truncate.
4431
4432 2002-05-18  Richard Henderson  <rth@redhat.com>
4433
4434         * system.h (ENCODE_SECTION_INFO): Poison it.
4435         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4436         * target.h (encode_section_info): New.
4437         * varasm.c (make_decl_rtl, output_constant_def): Use it.
4438         * hooks.c (hook_tree_int_void): New.
4439         * hooks.h: Declare it.
4440
4441         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4442         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4443         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4444         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4445         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4446         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4447         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4448         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4449         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4450         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4451         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4452         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4453         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4454         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4455         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4456         referencing existing function.  Make function static.
4457
4458         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4459         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4460         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4461         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4462         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4463         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4464         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4465         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4466         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4467         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4468         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4469         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4470         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4471         Move ENCODE_SECTION_INFO to out-of-line function and add
4472         TARGET_ENCODE_SECTION_INFO.
4473
4474         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4475         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4476
4477         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4478         from SUBTARGET_*
4479         (switch_to_section): Replace in_rdata case with in_readonly_data.
4480
4481         * config/h8300/h8300.c (h8300_encode_label): Make static.
4482         * config/h8300/h8300-protos.h: Update.
4483
4484         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4485         from rs6000_encode_section_info; make static.
4486         (rs6000_xcoff_encode_section_info): New.
4487
4488         * config/v850/v850.c (v850_encode_data_area): Make static.
4489         * config/v850/v850-protos.h: Update.
4490
4491         * config/vax/vax.c: Include flags.h.
4492         (vms_select_section): Fix typo.
4493
4494         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4495         ENCODE_SECTION_INFO docs.
4496
4497 2002-05-18  Richard Henderson  <rth@redhat.com>
4498
4499         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4500         REGISTER_TARGET_PRAGMAS.
4501         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4502
4503         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4504
4505 2002-05-18  Richard Henderson  <rth@redhat.com>
4506
4507         * system.h (SELECT_RTX_SECTION): Poison.
4508         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4509         * target.h (select_rtx_section): New.
4510         * varasm.c (output_constant_pool): Use it.
4511         (default_select_rtx_section, default_elf_select_rtx_section): New.
4512         * output.h: Declare them.
4513
4514         * config/darwin.h (SELECT_RTX_SECTION): Move ...
4515         * config/darwin.c (machopic_select_rtx_section): ... here.
4516         * config/darwin-protos.h: Update.
4517
4518         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4519         * config/nextstep.c (machopic_select_rtx_section): ... here.
4520         (nextstep_select_section): Rename variable to avoid macro clash.
4521         * config/nextstep-protos.h: Update.
4522
4523         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4524         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4525         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4526         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4527         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4528         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4529         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4530         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4531         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4532         (SELECT_RTX_SECTION): Remove.
4533
4534         * config/darwin.h, config/elfos.h, config/nextstep.h,
4535         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4536         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4537         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4538         config/sparc/lynx.h, config/xtensa/xtensa.c
4539         (TARGET_ASM_SELECT_RTX_SECTION): New.
4540
4541         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4542         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4543         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4544         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4545         (ia64_aix_select_rtx_section): New.
4546         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4547         redefining.
4548         * config/mips/mips.c (mips_select_rtx_section): Make static.
4549         Support ELF SHF_MERGE features.
4550         * config/mips/mips-protos.h: Update.
4551         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4552         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4553         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4554         make static, fall back to default_elf_select_rtx_section.
4555         * config/rs6000/rs6000-protos.h: Update.
4556         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4557         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4558         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4559         * config/romp/romp.c (romp_select_rtx_section): New.
4560         * config/s390/s390.c (s390_select_rtx_section): New.
4561         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
4562         declarations before target macro definition.
4563         (xtensa_emit_call): Use static buffer.
4564         (xtensa_select_rtx_section): New.
4565         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4566         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4567         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4568
4569         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4570         SELECT_RTX_SECTION docs.
4571
4572 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4573
4574         * i386.md (movsi/movdi): Fix template.
4575         (sse2 patterns): Set attributes consistently.
4576
4577         * i386.md (pushqi2, ashrqi_*): Fix constraint.
4578
4579 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
4580
4581         * optabs.c (complex_part_zero_p): New.
4582         * (expand_cmplxdiv_straight): Use it.
4583         * (expand_cmplxdiv_wide): Ditto.
4584         * (expand_binop): Ditto.
4585
4586 2002-05-18  Richard Henderson  <rth@redhat.com>
4587
4588         * final.c (HAVE_READONLY_DATA_SECTION): New.
4589         (shorten_branches): Use it instead of ifdefs.
4590         * varasm.c (enum in_section): Add in_readonly_data.
4591         (text_section, data_section): Tidy.
4592         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4593
4594         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4595         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4596         (READONLY_DATA_SECTION): Don't undef.
4597
4598         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4599         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4600         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4601
4602         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4603         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4604         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4605         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4606
4607         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4608         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4609         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4610         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4611         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4612         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4613         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4614         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4615         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4616
4617         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4618         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4619         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4620         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4621         config/pa/pa64-hpux.h, config/sparc/litecoff.h
4622         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4623
4624         * config/elfos.h, config/netware.h, config/svr3.h,
4625         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4626         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4627         config/h8300/h8300.h, config/i386/i386-interix.h,
4628         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4629         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4630
4631         * config/elfos.h, config/netware.h, config/svr3.h,
4632         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4633         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4634         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4635         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4636
4637         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4638         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4639         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4640         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4641         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4642         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4643         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4644         config/rs6000/sysv4.h, config/v850/v850.h
4645         (EXTRA_SECTIONS): Remove in_const/in_rdata.
4646         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4647
4648         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4649         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4650         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4651         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4652         * config/alpha/alpha.c (alpha_start_function): Likewise.
4653         (alpha_write_linkage): Likewise.
4654         * config/m32r/m32r.c (m32r_select_section): Likewise.
4655         * config/m88k/m88k.c (m88k_select_section): Likewise.
4656         * config/mips/mips.c (mips_select_rtx_section): Likewise.
4657         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4658         (rs6000_elf_select_section): Likewise.
4659         * config/v850/v850.c (v850_select_section): Likewise.
4660
4661         * config/1750a/1750a.h, config/i860/sysv3.h
4662         (READONLY_DATA_SECTION_ASM_OP): New.
4663         READONLY_DATA_SECTION_ASM_OP.
4664         * config/i386/interix.c, config/i386/winnt.c
4665         (i386_pe_unique_section): Always use .rdata prefix.
4666         * config/pa/som.h (readonly_data): Always switch to read-only section.
4667         (READONLY_DATA_SECTION): Predicate on flag_pic.
4668         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4669         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4670         (READONLY_DATA_SECTION): Update.
4671
4672 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
4673
4674         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4675         is used without -Wformat.
4676         * c-common.h (warn_format_zero_length): Declare extern.
4677         * c-decl.c (warn_options): Add "format-zero-length".
4678         * c-format.c (warn_format_zero_length): Declare.
4679         (set_Wformat): Set warn_format_zero_length for -Wformat.
4680         (check_format_info): Only warn about zero-length formats if
4681         warn_format_zero_length is true.  Include the format type
4682         name in the warning message.
4683         * doc/invoke.texi: Document -Wformat-zero-length.
4684         * testsuite/gcc.dg/format/zero-length-1.c: New test.
4685
4686 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
4687
4688         * timevar.c: Fix formatting.
4689         * tlink.c: Likewise.
4690         * toplev.c: Likewise.
4691         * tree-dump.c: Likewise.
4692         * tree-inline.c: Likewise.
4693
4694 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4695
4696         * cppinit.c (cpp_post_options): If preprocessed, turn off
4697         traditional.  If traditional, turn off column numbers.
4698         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4699         * cpptrad.c (handle_newline): Update line_base.
4700         (skip_comment): Handle -Wcomment.
4701
4702 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
4703
4704         * cppinit.c (struct builtin): Remove unused fields.
4705         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4706         (operator_array): New - was second half of builtin_array.
4707         (init_builtins): Simplify loop over builtin_array/operator_array.
4708
4709 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4710
4711         * defaults.h (UNIQUE_SECTION): Remove.
4712         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4713
4714 2002-05-17  Richard Henderson  <rth@redhat.com>
4715
4716         * expr.c (init_expr_once): Don't use start/end_sequence.
4717         Use rtx_alloc instead of emit_insn.
4718         * toplev.c (lang_dependent_init): Run init_expr_once here ...
4719         (lang_independent_init): ... not here.
4720
4721 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4722
4723         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4724
4725 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4726
4727         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
4728         for fixed registers, possibly used for global register variables.
4729         (initial_elimination_offset, avr_output_function_prologue,
4730         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
4731
4732 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4733
4734         * Makefile.in: Update for cpptrad.c.
4735         * cpphash.h (struct cpp_buffer): New members for buffer
4736         overlays.
4737         (struct cpp_reader): New members for traditional output.
4738         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4739         * cppinit.c (cpp_create_reader): Set trad_line.
4740         (cpp_destroy): Free trad_out_base if used.
4741         (cpp_read_main_file): Overlay an empty buffer if traditional.
4742         (cpp_finish_options): Don't do builtins.
4743         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4744         (cpp_handle_option): Handle it.
4745         * cpplex.c (continue_after_nul): New.
4746         (_cpp_lex_direct): Use handle_nul.
4747         * cpplib.h (struct cpp_options): New traditional option.
4748         * cpptrad.c: New file.
4749
4750 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4751
4752         * c-common.c (c_common_init_options): Use C89 for Objective-C,
4753         and set the options flag.
4754         * cppinit.c (lang_flags): Remove objc.
4755         (lang_defaults): Remove OBJC and OBJCXX.
4756         (set_lang): Update.
4757         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4758         (cpp_handle_option): Remove -+ and -lang-objc++.
4759         For ObjC, just set a flag.
4760         (print_help): Update.
4761         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4762
4763 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4764
4765         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4766         bootstrap with -mips3.
4767
4768 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
4769
4770         * final.c: Fix formatting.
4771         * fix-header.c: Likewise.
4772         * flow.c: Likewise.
4773         * fold-const.c: Likewise.
4774         * function.c: Likewise.
4775
4776 2002-05-17  David S. Miller  <davem@redhat.com>
4777
4778         PR c/6689, PR optimization/6615
4779         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4780         and make it a pointer to rtx.  Update comments.
4781         (update_equiv_regs): When scanning for equivalences, record
4782         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
4783         it while making the equiv replacements.
4784
4785 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4786
4787         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4788
4789 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4790
4791         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4792         when encoding visibility into SYMBOL_REF_FLAG.
4793
4794 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
4795
4796         * expr.c (force_operand): Fix reversed move.
4797
4798 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
4799
4800         * doc/install.texi (Testing): Mention two common DejaGnu warnings
4801         that can be ignored.
4802
4803 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4804
4805         * doc/install.texi (Final install): Recommend to install into a
4806         "clean" target directory.
4807
4808 2002-05-17  Richard Henderson  <rth@redhat.com>
4809
4810         * config/ia64/ia64.md: Use braced strings instead of quoted strings
4811         for code blocks.  Tidy whitespace.
4812
4813 2002-05-17  Richard Henderson  <rth@redhat.com>
4814
4815         * hooks.c (hook_tree_bool_false): New.
4816         * hooks.h: Declare it.
4817         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4818         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4819         * target.h (select_section, unique_section): New.
4820         (in_small_data_p): New.
4821         * varasm.c (resolve_unique_section): Use hooks instead of macros.
4822         (variable_section, output_constant_def_contents): Likewise.
4823         (default_select_section, default_unique_section): New.
4824         (categorize_decl_for_section, default_elf_select_section): New.
4825         * output.h: Declare them.
4826
4827         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4828         (TARGET_ASM_SELECT_SECTION): New.
4829         (SELECT_SECTION): Move ...
4830         * config/darwin.c (machopic_select_section): ... here.
4831         * config/darwin-protos.h: Update.
4832
4833         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4834         (SELECT_SECTION): Move ...
4835         * config/nextstep.c (nextstep_select_section): ... here.
4836         * config/nextstep-protos.h: Update.
4837
4838         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4839         (TARGET_ASM_SELECT_SECTION): New.
4840         * config/svr3.h (SELECT_SECTION): Remove.
4841
4842         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4843         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4844         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4845         (alpha_encode_section_info): Use it.
4846         * config/alpha/alpha-protos.h: Update.
4847         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4848         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4849         (TARGET_ASM_SELECT_SECTION): New.
4850         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4851
4852         * config/arm/pe.h (UNIQUE_SECTION): Remove.
4853         (TARGET_ASM_UNIQUE_SECTION): New.
4854
4855         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4856         (avr_unique_section): Rename from unique_section; make static.
4857         * config/avr/avr-protos.h: Update.
4858         * config/avr/avr.h (UNIQUE_SECTION): Remove.
4859
4860         * config/c4x/c4x.h (SELECT_SECTION): Remove.
4861
4862         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4863         (TARGET_ASM_UNIQUE_SECTION): New.
4864         * config/i386/i386-interix.h: Likewise.
4865         * config/i386/win32.h: Likewise.
4866         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4867         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4868         * config/i386/sco5.h (SELECT_SECTION): Remove.
4869         (TARGET_ASM_SELECT_SECTION): New.
4870         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4871
4872         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4873         instead of SELECT_SECTION.
4874         * config/m68k/dpx2.h: Likewise.
4875         * config/rs6000/lynx.h: Likewise.
4876
4877         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4878         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4879         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4880         (ia64_in_small_data_p): New.
4881         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
4882         (ia64_aix_select_section, ia64_aix_unique_section): New.
4883         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4884         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4885
4886         * config/m32r/m32r.h (SELECT_SECTION): Remove.
4887         (TARGET_ASM_SELECT_SECTION): New.
4888         * config/m32r/m32r.c (m32r_select_section): Take align argument.
4889         * config/m32r/m32r-protos.h: Update.
4890
4891         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4892         (SELECT_SECTION): Move ...
4893         * config/m88k/m88k.c (m88k_select_section): ... here.
4894
4895         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4896         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4897         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4898         (mcore_unique_section): Make static.
4899         * config/mcore/mcore-protos.h: Update.
4900
4901         * config/mips/elf.h (UNIQUE_SECTION): Remove.
4902         (TARGET_ASM_UNIQUE_SECTION): New.
4903         * config/mips/elf64.h: Likewise.
4904         * config/mips/iris6gld.h: Likewise.
4905         * config/mips/linux.h: Likewise.
4906         * config/mips/mips-protos.h: Update.
4907         * config/mips/mips.c (mips_select_section): Add align argument.
4908         * config/mips/mips.h (SELECT_SECTION): Remove.
4909         (TARGET_ASM_SELECT_SECTION): New.
4910
4911         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4912         * config/mmix/mmix.c (mmix_select_section): Remove.
4913         (mmix_unique_section): Remove.
4914         * config/mmix/mmix-protos.h: Update.
4915
4916         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4917         (SELECT_SECTION): Move ...
4918         * config/pa/pa.c (pa_select_section): ... here.
4919         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4920
4921         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4922         from rs6000_select_section and make static.
4923         (rs6000_elf_unique_section): Similarly.
4924         (rs6000_xcoff_select_section): From xcoff.h.
4925         (rs6000_xcoff_unique_section): Likewise.
4926         * config/rs6000/rs6000-protos.h: Update.
4927         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4928         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4929         * config/rs6000/xcoff.h: Likewise.
4930
4931         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4932         (SELECT_SECTION): Move ...
4933         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4934
4935         * config/v850/v850.h (SELECT_SECTION): Move ...
4936         * config/v850/v850.c (v850_select_section): ... here.
4937         (TARGET_ASM_SELECT_SECTION): New.
4938
4939         * config/vax/vms.h (SELECT_SECTION): Move ...
4940         * config/vax/vax.c (vms_select_section): ... here.
4941         (TARGET_ASM_SELECT_SECTION): New.
4942
4943         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4944         for the target hooks.
4945
4946 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
4947
4948         * config/arm/arm.c (emit_multi_reg_push): Do not set
4949         RTX_FRAME_RELATED_P on the SEQUENCE.
4950
4951 2002-05-16  Richard Henderson  <rth@redhat.com>
4952
4953         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4954         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
4955
4956 2002-05-16  Richard Henderson  <rth@redhat.com>
4957
4958         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4959
4960         * config/ia64/ia64.c (saveable_obstack): Do not declare.
4961
4962 2002-05-16  Richard Henderson  <rth@redhat.com>
4963
4964         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4965         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4966         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4967         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4968         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4969         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4970         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4971         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4972         Revert "Basic block renumbering removal", and two followup patches.
4973
4974 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4975
4976         * lcm.c (optimize_mode_switching): Revert previous change.
4977
4978 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4979
4980         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4981         with only extant block numbers.
4982
4983 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4984
4985         * lcm.c (optimize_mode_switching): Fix typo.
4986
4987 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4988
4989         * flow.c (calculate_global_regs_live): Queue blocks in program order.
4990
4991 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4992
4993         * doc/install.texi (Configuration): Document PWDCMD.
4994
4995 2002-05-16  Dale Johannesen  <dalej@apple.com>
4996
4997         * combine.c (cant_combine_insn_p):  Reenable combinations
4998         involving hard regs unless CLASS_LIKELY_SPILLED_P.
4999
5000 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5001
5002         * c-common.c (cb_register_builtins): Handle more built-ins
5003         here rather than in gcc.c specs.
5004         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5005         (cpp_options): Pass -O flags even when only preprocessing.
5006         * toplev.c (set_fast_math_flags): New prototype.
5007         (fast_math_flags_set_p): New.
5008         (set_no_fast_math_flags): Remove.
5009         (decode_f_option): Update.
5010         * toplev.h (set_fast_math_flags): Update.
5011         (fast_math_flags_set_p): New.
5012         (set_no_fast_math_flags): Remove.
5013 config:
5014         * c4x/c4x.c (c4x_override_options): Update.
5015
5016 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
5017
5018         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5019         Default-define here.
5020         (builtin_define_with_value): Can now wrap the expansion in
5021         quotation marks if such is wanted.
5022         (cb_register_builtins): Update calls to builtin_define_with_value.
5023         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5024         here.
5025         (c_common_init): Set options->stdc_0_in_system_headers.
5026         * c-lex.h: Update prototype of builtin_define_with_value.
5027         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5028         and REGISTER_PREFIX.
5029
5030         * cppinit.c (VERS, ULP, C, X): Kill.
5031         (builtin_array): Remove entries for __VERSION__,
5032         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5033         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
5034         a constant.
5035         (init_builtins): Kill off a bunch of now-dead code.
5036         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5037         -fno-leading-underscore.
5038         (cpp_handle_option): Remove code to set user_label_prefix.
5039         (cpp_post_options): Likewise.
5040
5041         * cpplib.h (struct cpp_options): Remove user_label_prefix.
5042         (stdc_0_in_system_headers): New.
5043         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5044         stdc_0_in_system_headers) too to decide the value of __STDC__.
5045
5046         * tradcpp.c (user_label_prefix): Kill.
5047         (main): Remove code handling -f(no-)leading-underscore.
5048         (initialize_builtins): Don't define __REGISTER_PREFIX__
5049         or __USER_LABEL_PREFIX__.
5050         (install_value): Wrap compound statement in dummy loop so the
5051         macro works properly in an if statement.
5052
5053
5054 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
5055
5056         * loop.h (struct loop_info): Add member has_prefetch.
5057         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5058         (prescan_loop): Initialize has_prefetch.
5059         (struct prefetch_info): Change prefetch_in_loop and
5060         prefetch_before_loop from bit fields to ints.
5061         (emit_prefetch_instructions): Several small fixes.
5062         (check_dbra_loop): Don't reverse loop that uses prefetch.
5063
5064 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5065
5066         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5067         * configure.in: Likewise.
5068         * fixinc/check.tpl: Likewise.
5069         * fixinc/fixinc.dgux: Likewise.
5070         * fixinc/fixinc.svr4: Likewise.
5071         * fixinc/fixinc.winnt: Likewise.
5072         * fixinc/fixincl.sh: Likewise.
5073         * fixproto: Likewise.
5074         * configure: Regenerate.
5075
5076 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5077
5078         Basic block renumbering removal:
5079         * basic_block.h (struct basic_block_def): Renamed index to sindex,
5080         added prev_bb and next_bb fields.
5081         (n_basic_blocks): Renamed to num_basic_blocks.
5082         (last_basic_block): New, index of last basic block.
5083         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5084         traversing basic block chain.
5085         (BLOCK_NUM): index -> sindex.
5086         (create_basic_block_structure, create_basic_block): Declaration changed.
5087         (debug_num2bb): Declare.
5088         (expunge_block_nocompact): Declaration removed.
5089         (link_block, unlink_block, compact_blocks): Declare.
5090         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5091         * cfg.c (entry_exit_blocks): Initialize new fields.
5092         (clear_edges, alloc_block, expunge_block, cached_make_edge,
5093         redirect_edge_pred, dump_flow_info, dump_edge_info,
5094         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5095         free_aux_for_edges): Modified.
5096         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5097         (expunge_block_nocompact): Removed.
5098         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5099         find_unreachable_blocks, create_edge_list, print_edge_list,
5100         verify_edge_list, flow_edge_list_print, remove_fake_successors,
5101         remove_fake_edges, flow_reverse_top_sort_order_compute,
5102         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5103         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5104         flow_dfs_compute_reverse_execute): Modified.
5105         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5106         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5107         Modified.
5108         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5109         merge_blocks_move_predecessor_nojumps,
5110         merge_blocks_move_successor_nojumps, merge_blocks,
5111         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5112         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5113         * cfglayout.c (skip_insns_after_block, label_for_bb,
5114         record_effective_endpoints, scope_to_insns_finalize,
5115         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5116         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5117         cfg_layout_duplicate_bb): Modified.
5118         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5119         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5120         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5121         flow_loops_find, flow_loop_outside_edge_p): Modified.
5122         * cfgrtl.c (create_basic_block_structure, create_basic_block,
5123         flow_delete_block, compute_bb_for_insn, split_block,
5124         try_redirect_by_replacing_jump, redirect_edge_and_branch,
5125         force_nonfallthru_and_redirect, tidy_fallthru_edge,
5126         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5127         commit_edge_insertions, commit_edge_insertions_watch_calls,
5128         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5129         purge_all_dead_edges): Modified.
5130         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5131         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5132         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5133         Modified.
5134         * conflict.c (conflict_graph_compute): Modified.
5135         * df.c (FOR_ALL_BBS): Removed.
5136         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5137         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5138         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5139         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5140         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5141         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5142         * final.c (compute_alignments, final_scan_insn): Modified.
5143         * flow.c (verify_local_live_at_start, update_life_info,
5144         update_life_info_in_dirty_blocks, free_basic_block_vars,
5145         delete_noop_moves, calculate_global_regs_live,
5146         initialize_uninitialized_subregs, allocate_bb_life_data,
5147         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5148         mark_used_reg, count_or_remove_death_notes): Modified.
5149         * function.c (thread_prologue_and_epilogue_insns): Modified.
5150         * gcse.c (struct null_pointer_info): Change typo of current_block
5151         to basic_block.
5152         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5153         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5154         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5155         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5156         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5157         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5158         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5159         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5160         pre_delete, one_pre_gcse_pass, compute_transpout,
5161         invalidate_nonnull_info, delete_null_pointer_checks_1,
5162         free_code_hoist_mem, compute_code_hoist_vbeinout,
5163         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5164         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5165         compute_store_table, build_store_vectors, insert_insn_start_bb,
5166         insert_store, replace_store_insn, free_store_memory, store_motion):
5167         Modified.
5168         * global.c (global_alloc, global_conflicts, mark_elimination,
5169         build_insn_chain): Modified.
5170         * graph.c (print_rtl_graph_with_bb): Modified.
5171         * haifa-sched.c (sched_init): Modified.
5172         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5173         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5174         if_convert): Modified.
5175         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5176         compute_insert_delete, pre_edge_lcm, compute_available,
5177         compute_farthest, compute_nearerout, compute_rev_insert_delete,
5178         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5179         Modified.
5180         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5181         * loop.c (loop_dump_aux): Modified.
5182         * predict.c (combine_predictions_for_insn, estimate_probability,
5183         last_basic_block_p, process_note_prediction, process_note_predictions,
5184         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5185         expensive_function_p, estimate_bb_frequencies,
5186         compute_function_frequency): Modified.
5187         * print-rtl.c (print_rtx): Modified.
5188         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5189         get_exec_counts, compute_branch_probabilities, compute_checksum,
5190         branch_prob, find_spanning_tree): Modified.
5191         * recog.c (split_all_insns, peephole2_optimize): Modified.
5192         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5193         convert_regs_1, convert_regs_2, convert_regs): Modified.
5194         * regclass.c (scan_one_insn, regclass): Modified.
5195         * regmove.c (mark_flags_life_zones, regmove_optimize,
5196         combine_stack_adjustments): Modified.
5197         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5198         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5199         * reorg.c (dbr_schedule): Modified.
5200         * resource.c (find_basic_block, init_resource_info): Modified.
5201         * sbitmap.c (sbitmap_intersection_of_succs,
5202         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5203         sbitmap_union_of_preds): Modified.
5204         * sched-deps.c (init_dependency_caches): Modified.
5205         * sched-ebb.c (schedule_ebbs): Modified.
5206         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5207         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5208         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5209         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5210         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5211         ssa_const_prop): Modified.
5212         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5213         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5214         * ssa.c (remove_phi_alternative, find_evaluations,
5215         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5216         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5217         make_regs_equivalent_over_bad_edges,
5218         make_equivalent_phi_alternatives_equival,
5219         compute_conservative_reg_partition,
5220         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5221         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5222         Modified.
5223
5224 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
5225
5226         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5227
5228 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
5229
5230         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5231         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5232         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5233         calling CONSTANT_POOL_ADDRESS_P.
5234         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5235         to decide whether to define __arm__ or __thumb.
5236         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5237         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5238
5239 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5240
5241         * config/arc/arc.h (CPP_PREDEFINES): Remove.
5242         (CPP_SPEC): Update.
5243         (TARGET_CPU_CPP_BUILTINS): New.
5244
5245 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5246
5247         * cpphash.h (cpp_macro): Move here, and make expansion a union.
5248         * cppmacro.c (cpp_macro): Remove.
5249         (enter_macro_context, replace_args, warn_of_redefinition,
5250         _cpp_create_definition, cpp_macro_definition): Update.
5251
5252 2002-05-16  Jason Merrill  <jason@redhat.com>
5253
5254         * config/mips/mips.c (mips_output_external): Don't do sdata
5255         optimization for a variable with DECL_COMDAT set.
5256
5257 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5258
5259         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5260         Cleanups for accepting modifiers on pointers.
5261         Fix predicate typos.
5262         Allow long pointers as well as int pointers.
5263
5264 2002-05-15  Richard Henderson  <rth@redhat.com>
5265
5266         * varasm.c (merge_weak): Remove special case for extern and common.
5267
5268 2002-05-15  Matt Hiller  <hiller@redhat.com>
5269
5270         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5271         XFAILing.
5272         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5273         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5274         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5275         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5276         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5277         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5278
5279 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5280
5281         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5282
5283 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5284
5285         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5286         ("altivec_mfvscr"): Read from VSCR.
5287
5288         Add vscr sets for the following insns: altivec_vctuxs,
5289         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5290         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5291         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5292         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5293         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5294         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5295         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5296         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5297         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5298         altivec_vsum2sws, altivec_vsumsws.
5299
5300         * config/rs6000/rs6000.h: Add VSCR fixed register.
5301         (CALL_REALLY_USED_REGISTERS): Add vscr.
5302         (CALL_USED_REGISTERS): Same.
5303         (FIXED_REGISTERS): Same.
5304         (REG_ALLOC_ORDER): Same.
5305         (reg_class): Add VSCR_REGS.
5306         (REG_CLASS_NAMES): Same.
5307         (REG_CLASS_CONTENTS): Same.
5308         (VSCR_REGNO): New.
5309         (REGISTER_NAMES): Add vscr.
5310         (DEBUG_REGISTER_NAMES): Same.
5311         (ADDITIONAL_REGISTER_NAMES): Same.
5312         (FIRST_PSEUDO_REGISTER): Increment.
5313         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5314
5315 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
5316
5317         * fold-const.c (fold): Fix a typo.
5318
5319 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
5320
5321         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5322         comparison against the highest or lowest integer value before
5323         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5324         transformation and that of an unsigned comparison against 0
5325         right after.
5326
5327 2002-05-15  Richard Henderson  <rth@redhat.com>
5328
5329         * varasm.c (merge_weak): Error for any weakening after definition.
5330         Adjust weakening after use warning to catch more cases.
5331         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5332         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5333
5334 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5335
5336         * invoke.texi (-malign-double): Re-add lost warning.
5337
5338         * i386-protos.h (x86_output_mi_thunk): Declare.
5339         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5340         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5341
5342         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5343         when flag_asynchronous_unwind_tables is set.
5344
5345         * flags.h (flag_reorder_functions): Declare.
5346         * function.c (prepare_function_start): Initialize frequnecy.
5347         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5348         * Makefile.in (predict.o): Add dependency on target.h and params.h
5349         * defaults.h (HOT_TEXT_SECTION_NAME,
5350         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5351         * predict.c (choose_function_section): New function.
5352         (estimate_bb_frequencies): Use it.
5353         * toplev.c (flag_reorder_functions): New global variable.
5354         (lang_independent_options): New.
5355         (parse_options_and_default_flags): Set.
5356         * varasm.c (assemble_start_function): Bypass functdion alignment
5357         for never executed functions.
5358         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5359         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5360         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5361         Document.
5362
5363         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5364
5365         * predict.c: Inlude profile.h
5366         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5367         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5368         Use the information about maximal counter in the program.
5369
5370         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
5371
5372         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5373         probably_never_executed_bb_p): New functions.
5374         * cfgcleanup.c (outgoing_edges_match): Use them.
5375         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5376         (maybe_hot_bb_p, probably_cold_bb_p,
5377         probably_never_executed_bb_p): New functions.
5378
5379         * function.h (function): Add new field function_frequency.
5380         * predict.c (compute_function_frequency): New function.
5381         (estimate_probability): Call it.
5382
5383 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5384
5385         PR optimization/5172, optimization/5200
5386         * gcse.c (gcse_main): Disable store_motion.
5387
5388 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
5389
5390         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5391         (c_common_nodes_and_builtins): Use it.
5392         (builtin_define_with_value): New function.
5393         (cb_register_builtins): Define __SIZE_TYPE__,
5394         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5395         using builtin_define_with_value.  Use consistent notation when
5396         defining __GXX_WEAK__.
5397         (WCHAR_TYPE_SIZE): Don't redefine.
5398         (combine_strings): Don't use WCHAR_TYPE_SIZE.
5399
5400         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5401         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5402         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5403         * tradcpp.c (initialize_builtins): Likewise.
5404         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5405
5406         * c-lex.h (builtin_define_with_value): Prototype.
5407         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5408         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5409         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5410
5411         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5412         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5413         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5414         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5415         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5416         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5417         config/sparc/sol2-bi.h, config/sparc/sparc.h:
5418         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
5419         to __SIZE_TYPE__ etc from all spec strings. When this makes
5420         extra specs empty, delete them.
5421
5422 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5423
5424         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5425         for PA8000 or generating dwarf2 call frame information.
5426         (output_call): Remove DO_FRAME_NOTES check from return pointer
5427         optimization.
5428         (following_call): Return 0 when scheduling for PA8000 or generating
5429         dwarf2 call frame information.  Revise comment.
5430
5431 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5432
5433 config/alpha:
5434         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5435         and __IEEE_FP_INEXACT as appropriate.
5436         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5437         (CPP_SPEC): Remove ieee defines.
5438         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5439
5440 2002-05-14  Richard Henderson  <rth@redhat.com>
5441
5442         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5443         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5444
5445 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5446
5447         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5448         (CPP_SPEC): Update.
5449         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5450         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5451         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5452         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5453         (EXTRA_SPECS): Update.
5454         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5455         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5456         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5457         define TARGET_OS_CPP_BUILTINS if necessary.
5458
5459 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5460
5461         * gcc.c (cpp_options): Must pass -m* and -f* options
5462         to the front end even when only preprocessing.
5463         (cc1_options): Remove redundant -lang-c.
5464         * tradcpp.c (main): Ignore -m options.
5465 objc:
5466         * lang-specs.h: Similarly.
5467
5468 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
5469
5470         * genautomata.c (transform_3): Add code for transformation
5471         `(A,B,...)+C -> A+C,B,...'.
5472
5473 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
5474
5475         * final.c (end_final): Do not output profile_arcs constructor, when
5476         no functions are instrumented.
5477
5478 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
5479
5480         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5481
5482 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5483
5484         * doc/install.texi: Remove special markup originally required for
5485         HTML generation with texi2html.
5486
5487 2002-05-14  Andreas Schwab  <schwab@suse.de>
5488
5489         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5490         SELECT_SECTION.
5491         (UNIQUE_SECTION): Define to get small data correctly.
5492
5493         * varasm.c (resolve_unique_section): Add third parameter
5494         flag_function_or_data_sections and use it instead of
5495         flag_function_sections.
5496         (assemble_start_function): Pass flag_function_sections.
5497         (asm_emit_uninitialised): Pass flag_data_sections.
5498         (assemble_variable): Likewise.
5499
5500 2002-05-14  Richard Henderson  <rth@redhat.com>
5501
5502         * config/i386/i386.md: Use define_constants for unspec numbers.
5503         * config/i386/i386.c: Likewise.
5504
5505 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5506
5507         * doc/contrib.texi: Update my entry.
5508
5509 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
5510
5511         * fixinc/inclhack.def (winidss_valist): Limit applicability.
5512         * fixinc/fixincl.x: Regenerated.
5513         * fixinc/tests/base/math.h: Update.
5514         * fixinc/tests/base/testing.h: Likewise.
5515
5516 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
5517
5518         * genattr.c (gen_attr): Don't emit a comma after the last
5519         enumerator.
5520
5521 2002-05-13  Richard Henderson  <rth@redhat.com>
5522
5523         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5524         by non-local gotos.
5525         * recog.c (peephole2_optimize): Likewise.
5526
5527 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
5528
5529         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5530         input to O_BINARY.
5531
5532 2002-05-13  Jeffrey A Law  (law@redhat.com)
5533
5534         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5535         Update prototype and callers.
5536         (propagate_one_insn): Stack pointer adjustments kill MEMs on
5537         the mem_set_list which reference the stack pointer, as do
5538         calls to constant functions as they may clobber outgoing
5539         argument space.
5540
5541         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5542
5543         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5544         (ia32_multipass_dfa_lookahead): New function.
5545
5546 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5547
5548         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5549         (translate_options): Remove 'V'.
5550         (process_command): Similarly.
5551 doc:
5552         * invoke.texi: Remove documentation of 'V'.
5553
5554 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5555
5556         * config/s390/linux.h: Revert 2002-04-22 changes.
5557
5558 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
5559
5560         * config/fr30/fr30.md: Only allow splits of immediate loads
5561         if the destination is a register.
5562
5563 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5564
5565         * Makefile.in (c-common.o, cppinit.o): Update.
5566         * c-common.c: Include except.h.
5567         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5568         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5569         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5570         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5571         CPP_PREDEFINES): Handle here.
5572 config:
5573         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5574         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5575         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5576         TARGET_OS_CPP_BUILTINS.
5577         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5578         (CPP_SPEC, EXTRA_SPECS): Update.
5579         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5580         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5581         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5582         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5583         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5584 doc:
5585         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5586         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5587
5588 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5589
5590         * emit-rtl.c (global_rtl): Update comment.
5591         (const_double_htab, const_double_htab_hash,
5592         const_double_htab_hash, lookup_const_double): New.
5593         (const_int_htab_hash, const_int_htab_eq): Remove const
5594         qualifiers, which cause tons of warnings with RTL checking on.
5595         (gen_rtx_CONST_DOUBLE): Deleted.
5596         (const_double_from_real_value): New function - bears some
5597         resemblance to the former immed_real_const_1.
5598         (immed_double_const): Moved here from varasm.c and
5599         simplified.
5600         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5601         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5602         (gen_rtx): Use immed_double_const.
5603         (init_emit_once): Initialize the const_double_htab.  Use
5604         REAL_VALUE_FROM_INT where possible.  Can now use
5605         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5606         * varasm.c (struct varasm_status): Remove x_const_double_chain.
5607         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5608         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5609         (init_varasm_status, mark_varasm_status): Don't touch
5610         x_const_double_chain.
5611
5612         * output.h: Delete prototype for clear_const_double_mem.
5613         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
5614         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
5615         const_double_from_real_value, not immed_real_const_1, and use
5616         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
5617         CONST_DOUBLE_ATOF.
5618         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5619         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5620         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5621         (gen_rtx_REG): Second arg is unsigned.
5622
5623         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5624         (excluded_rtx): New, return true for CONST_DOUBLE.
5625         (genmacro): Write nothing for excluded codes.
5626         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5627         * expr.c (expand_expr): Likewise.
5628         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5629         CONST_DOUBLE_CHAIN.
5630         * toplev.c (rest_of_compilation): Don't call
5631         clear_const_double_mem.
5632
5633         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5634         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5635         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5636         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5637         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5638         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5639         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5640         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5641
5642 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5643
5644         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5645
5646 2002-05-12  Tom Tromey  <tromey@redhat.com>
5647
5648         * tree.h (copy_node): Don't mention TREE_PERMANENT.
5649
5650 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5651
5652         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5653         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
5654         * gensupport.h: Prototype new routines.
5655         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
5656         use of printf.
5657         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5658         (next_comma_elt): Use scan_comma_elt.
5659
5660         * config/i386/i386.md: Use new attribute notation to break up
5661         long lines in define_attr forms.
5662
5663 2002-05-12  Richard Henderson  <rth@redhat.com>
5664
5665         * expr.c (compress_float_constant): New.
5666         (emit_move_insn): Use it.
5667         (float_extend_from_mem): New.
5668         (init_expr_once): Initialize it.
5669         * real.c (exact_real_truncate): New.
5670
5671         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5672         dropped into memory; penalize for size.
5673         (RTX_COSTS): FLOAT_EXTEND is free.
5674         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5675         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5676
5677 2002-05-12  Richard Henderson  <rth@redhat.com>
5678
5679         * profile.h (profile_info): Add missing extern to declaration.
5680         * profile.c (profile_info): Define it.
5681
5682 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5683
5684         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5685         used for DImode and TImode.
5686
5687 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5688
5689         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5690         fake a newline.
5691
5692 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
5693
5694         * config/rs6000/rs6000.c (rs6000_default_long_calls,
5695         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5696         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5697         (rs6000_override_options): Handle -m(no-)longcall.
5698         (init_cumulative_args, output_mi_thunk): Check for both
5699         longcall and shortcall attributes on the function.
5700         (rs6000_attribute_table): Add "shortcall".
5701         (rs6000_handle_longcall_attribute): Update comment.
5702         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5703         altivec_expand_ternop_builtin): Add default clauses to switches
5704         to silence warnings.
5705
5706         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5707         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
5708         (TARGET_OPTIONS): Add longcall and no-longcall.
5709
5710         * config/rs6000/rs6000.md (call_nonlocal_sysv,
5711         call_value_nonlocal_sysv): Split by alternatives.  One pair
5712         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5713         the call cookie.  The other pair accepts only LR/CTR and has
5714         no restriction.
5715
5716         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5717         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5718         tmake_file.
5719         * config/rs6000/rs6000-c.c: New file.
5720         * config/rs6000/t-rs6000-c-rule: New file.
5721         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5722         Prototype rs6000_pragma_longcall.
5723
5724         * doc/extend.texi: Document shortcall attribute.
5725         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5726
5727 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5728
5729         * reorg.c (dbr_schedule): Remove unnecessary test.
5730
5731 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5732
5733         * i386.md (testsi to testqi spliters): New.
5734
5735         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
5736
5737         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5738
5739         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
5740
5741         * basic-block.h: New flag EDGE_CAN_FALLTHRU
5742         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5743         that can be made fallthru.
5744
5745         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
5746
5747         * cfglayout.c (cleanup_unconditional_jumps): New static function.
5748         (cfg_layout_initialize): Use it.
5749
5750 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5751
5752         * config/avr/avr.c (avr_mcu_types): Update supported devices.
5753         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5754         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5755
5756 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5757
5758         * dbxout.c: Fix formatting.
5759         * dependence.c: Likewise.
5760         * df.c: Likewise.
5761         * diagnostic.c: Likewise.
5762         * doloop.c: Likewise.
5763         * dominance.c: Likewise.
5764         * doschk.c: Likewise.
5765         * dwarf2asm.c: Likewise.
5766         * dwarf2out.c: Likewise.
5767         * dwarfout.c: Likewise.
5768
5769 2002-05-10  Richard Henderson  <rth@redhat.com>
5770
5771         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
5772         Convert integers constants as needed.  Replace "nwords" field with
5773         "sizeof_bb".
5774         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5775         * function.h: Fix typo in comment.
5776         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5777
5778 2002-05-10  Roger Sayle  <roger@eyesopen.com>
5779
5780         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5781         into the equivalent (signed char)c > 0.
5782
5783 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
5784
5785         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5786         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5787         (struct prefetch_info): Fix spelling of member bytes_accessed.
5788         (emit_prefetch_instructions): Make dump messages more regular;
5789         restructure code to add more dump messages; use new macros for
5790         heuristics. (There are no code generation changes in any of this).
5791
5792 2002-05-10  David S. Miller  <davem@redhat.com>
5793
5794         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5795         (struct rtx_def): Update unchanging flag comment.
5796         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5797         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5798         to be handled to INSN too.
5799         (dbr_schedule): Likewise.
5800         * resource.c (next_insn_no_annul): Likewise.
5801
5802         * cse.c (rtx_cost): Remove multiplication by power of 2 special
5803         casing.
5804
5805 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5806
5807         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5808         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5809         (possibly) work around broken /bin/sh.
5810
5811 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5812
5813         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5814         . as N64/N32 libgcc_s.so subdirs.
5815
5816 2002-05-10  David S. Miller  <davem@redhat.com>
5817
5818         * config/sparc/sparc.md: Use define_constants for unspec numbers.
5819
5820         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5821         more accurately.
5822         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5823         comment.
5824         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5825         * doc/rtl.texi: Document these macros more accurately.
5826         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5827         JUMP_INSNs and CALL_INSNs.
5828         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5829         or INSN_FROM_TARGET_P if the code is appropriate.
5830
5831 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5832
5833         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5834         before using SYMBOL_REF_FLAG (addr).
5835
5836         * config/avr/avr-protos.h (avr_io_address_p): Declare.
5837         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5838         Make non-static.  Update all callers.
5839         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5840         New insns to clear/set/test a single bit in I/O address space.
5841
5842 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5843
5844         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5845
5846 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5847
5848         * Makefile.in: Update.
5849         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5850         builtin_define_std): New.
5851         (c_common_init): Register CPP builtins callback.
5852         * c-common.h (flag_iso, flag_undef): New.
5853         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5854         * c-lex.c: Don't include target.h.
5855         (cb_register_builtins): Move to c-common.c.
5856         (init_c_lex): Don't register hook here.
5857         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5858         (cpp_define, cpp_assert): Remove.
5859         * gcc.c (cc1_options): Pass -undef to front end.
5860         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5861         (TARGET_INITIALIZER): Update.
5862         * target.h (struct cpp_reader): Don't predeclare.
5863         (struct gcc_target): Remove cpp builtin hook.
5864         * tree.c (default_register_cpp_builtins): Remove.
5865 doc:
5866         * tm.texi: Update.
5867
5868 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5869
5870         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5871
5872 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5873
5874         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5875         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5876
5877 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5880         * config/sparc/libgcc-sparc-glibc.ver: New file.
5881         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5882         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5883
5884 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5885
5886         PR target/6429
5887         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5888         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5889         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5890         base multilibs.
5891         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5892         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5893         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5894         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5895
5896 2002-05-09  Richard Henderson  <rth@redhat.com>
5897
5898         * config/ia64/ia64.md: Use define_constants for unspec numbers.
5899         * config/ia64/ia64.c: Likewise.
5900
5901 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
5902
5903         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5904         (save_restore_insns): Likewise.
5905         (mips_expand_prologue, mips_expand_epilogue): Update callers.
5906         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5907
5908 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
5909
5910         * athlon.md, k6.md, pentium.md, ppro.md): New files.
5911         * i386.md: Move scheduling information into new files.
5912
5913         * i386.md (type attribute): Add "rotate" for rotate insns.
5914         (rotate insns): Set type to "rotate".
5915         (various attributes and function units): Treat rotate like shift.
5916         (pent_pair attribute): Only rotates by one bit position are
5917         pairable.
5918         (sbb insns): Explicitly set pent_pair attribute on a couple
5919         that were missing it.
5920
5921 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5922
5923         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5924         make sure that buffer starts on odd word address.
5925         (sh_va_arg): Skip odd fp registers when reading a double precision
5926         value.
5927
5928 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5929
5930         * tree.h (preserve_data, object_permanent_p, type_precision):
5931         Remove.
5932
5933 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5934
5935         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5936         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5937 doc:
5938         * cpp.texi: Update for removal of obsolete features.
5939
5940 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
5941                           Jeffrey A Law  (law@redhat.com)
5942
5943         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
5944         the DFA interface for Pentium processors.
5945         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5946         (attr_pent_pair, ix86_pent_find_pair): Remove.
5947         (ix86_sched_reorder_pentium): Remove.
5948         (ix86_sched_reorder): Remove reordering for Pentium.
5949         * i386.md (Pentium scheduling): Rewrite using DFA description.
5950
5951 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
5952
5953         * cfganal.c (can_fallthru): Fix fast path.
5954         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5955         with edges to the next block.
5956
5957 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
5958                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
5959
5960         * final.c (end_final): Use C trees to output data structures for profiling.
5961
5962         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5963         (profile.o): New dependency profile.h
5964         (final.o): New dependency profile.h
5965         * profile.h: New file. New global structure profile_info.
5966         * final.h (count_edges_instrumented_now): Declare.
5967         (current_function_cfg_checksum): Declare.
5968         (function_list): New structure.
5969         (functions_head, functions_tail): New static variables.
5970         (end_final): Emits more data, removed some -ax stuff.
5971         (final): Stores function names and chcksums.
5972         * gcov-io.h (__write_gcov_string): New function.
5973         (__read_gcov_string): New function.
5974         * gcov.c (read_profile): New function.
5975         (create_program_flow_graph): Uses read_profile instead of reading
5976         da_file.
5977         (read_files): Removed da_file checking, it's done by read_profile now.
5978         * libgcc2.c (bb_function_info): New structure.
5979         (bb): New field in structure, removed some -ax stuff.
5980         (__bb_exit_func): Changed structure of da_file.
5981         * profile.c (count_edges_instrumented_now): New global variable.
5982         (current_function_cfg_checksum): New global variable.
5983         (max_counter_in_program): New global variable.
5984         (get_exec_counts): New function.
5985         (compute_checksum): New function.
5986         (instrument_edges): Sets count_edges_instrumented_now.
5987         (compute_branch_probabilities): Uses get_exec_counts instead of
5988         reading da_file.
5989         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5990         (init_branch_prob): Removed da_file checking, done in get_exec_counts
5991         now.
5992         (end_branch_prob): Removed da_file checking, done in get_exec_counts
5993         now.
5994         * gcov.texi: Updated information about gcov file format.
5995
5996 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
5997
5998         * sbitmap.c: Fix formatting.
5999         * scan.c: Likewise.
6000         * scan-decls.c: Likewise.
6001         * sched-deps.c: Likewise.
6002         * sched-ebb.c: Likewise.
6003         * sched-rgn.c: Likewise.
6004         * sched-vis.c: Likewise.
6005         * sdbout.c: Likewise.
6006         * sibcall.c: Likewise.
6007         * simplify-rtx.c: Likewise.
6008         * ssa.c: Likewise.
6009         * ssa-ccp.c: Likewise.
6010         * ssa-dce.c: Likewise.
6011         * stmt.c: Likewise.
6012         * stor-layout.c: Likewise.
6013         * stringpool.c: Likewise.
6014
6015 2002-05-09  David S. Miller  <davem@redhat.com>
6016
6017         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6018
6019 2002-05-07  David S. Miller  <davem@redhat.com>
6020
6021         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6022         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6023         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6024         library implementation clobbers the output before the inputs
6025         are fully consumed, use stack temporary for the output.
6026
6027 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
6028
6029         * config/netbsd.h (CPP_SPEC): Remove.
6030         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6031         * config/i386/netbsd.h (CPP_SPEC): Define.
6032         * config/ns32k/netbsd.h (CPP_SPEC): Define.
6033         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6034         * config/sparc/netbsd.h (CPP_SPEC): Define.
6035         * config/vax/netbsd.h (CPP_SPEC): Define.
6036
6037 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6038
6039         * read-rtl.c: Fix formatting.
6040         * real.c: Likewise.
6041         * recog.c: Likewise.
6042         * regclass.c: Likewise.
6043         * regmove.c: Likewise.
6044         * reg-stack.c: Likewise.
6045         * reload1.c: Likewise.
6046         * reload.c: Likewise.
6047         * resource.c: Likewise.
6048         * rtlanal.c: Likewise.
6049         * rtl.c: Likewise.
6050         * rtl-error.c: Likewise.
6051
6052 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6053
6054         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6055         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6056
6057 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
6058
6059         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6060         use __SSE2__ macro instead.
6061         * config/i386/xmmintrin.h: Likewise.
6062
6063 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
6064
6065         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6066         and use it in all invocations of these macros.  Clean up comments.
6067         * rtl.c (rtl_check_failed_flag): Add an argument for the name
6068         of the flag access macro whose check failed.
6069         * doc/rtl.texi (Flags): Document additional flag uses.
6070
6071 2002-05-08  Robert Spier <rspier@pobox.com>
6072             Neil Booth  <neil@daikokuya.demon.co.uk>
6073
6074         PR preprocessor/6521
6075         * cppfiles.c (handle_missing_header): Don't do anything
6076         different for <> includes.
6077 doc:
6078         * cppopts.texi: Update documentation for -MG.
6079
6080 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6081
6082         * cpplex.c (cpp_interpret_charconst): Truncate as well as
6083         sign-extend.
6084 doc:
6085         * cpp.texi: Clarify multichar charconst valuation.
6086
6087 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6088
6089         * doc/invoke.texi: Document -mwindiss option.
6090
6091 2002-05-08  Jason Merrill  <jason@redhat.com>
6092
6093         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6094
6095         * dwarf2out.c (gen_type_die): Abort on broken recursion.
6096
6097         PR c++/6381
6098         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6099         REAL_CST.
6100
6101 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
6102
6103         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6104         little-endian multilibs to override arm/thumb multilibs.
6105         Do not build hardware floating point multilibs, nor apcs-26
6106         multilibs for the Thumb.
6107
6108 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6109
6110         PR c/6569.
6111         * varasm.c (mark_weak): New function.
6112         (merge_weak): Use it.  Do not call declare_weak.
6113         (declare_weak): Use merge_weak.
6114
6115 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6116
6117         * cse.c (dead_libcall_p): Update counts.
6118         (delete_trivially_dead_insns): Update call of dead_libcall_p.
6119
6120 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
6121
6122         * cfglayout.c (function_tail_eff_head): Rename to ...
6123         (function_footer): ... this one.
6124         (unlink_insn_chain): New functions.
6125         (label_for_bb): Only call block_label and emit debug message.
6126         (record_effective_endpoints): Actually unlink the headers and footers.
6127         (fixup_reorder_cahin): Re-insert the unlinked sequences.
6128         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6129         * cfglayout.h (struct reorder_block_def): New fields footer/header;
6130         remove eff_head/eff_end.
6131         * rtl.h (set_first_insn): Declare.
6132         * emit-rtl.c (set_first_insn): New function.
6133
6134         * cfglayout.c (fixup_reorder_chain): Dump duplicated
6135         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6136         cfg_layout_duplicate_bb): New global function.
6137         (duplicate_insn_chain): New static function.
6138         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6139         cfg_layout_duplicate_bb): Declare.
6140         (struct reorder_block_def): Add "original" field.
6141         * emit-rtl.c (emit_copy_of_insn_after): New function.
6142         * rtl.h (emit_copy_of_insn_after): Declare.
6143
6144         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6145         (fixup_reorder_chain): properly handle edges to exit block.
6146
6147 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6148                                Jan Hubicka  <jh@suse.cz>
6149
6150         * basic-block.h (note_prediction_to_br_prob): declare.
6151         * c-semantics.c: Inlucde predit.h
6152         (expand_stmt): predict GOTO_STMT as not taken.
6153         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6154         (cleanup_cfg): Do not free tail_recursion_list.
6155         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6156         (flow_delete_block): Kill predictions past end of basic block.
6157         * output.h (delete_unreachable_blocks): Declare.
6158         * predict.c (predicted_by_p, process_note_predictions,
6159         process_note_prediction, last_block_p): New function.
6160         (estimate_probability): Bypass loop on PRED_CONTINUE;
6161         do not handle noreturn heuristics; kill PRED_RETURN; add
6162         PRED_EARLY_RETURN.
6163         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6164         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6165         * predict.h (IS_TAKEN): New constant.
6166         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6167         * rtl.c (NOTE_INSN_PREDICTION): New.
6168         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6169         New macro.
6170         (insn_note): add NOTE_INSN_PREDICTION.
6171         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6172         CFG; free tail_recursion_label_list.
6173         * stmt.c: Include predict.h;
6174         (return_prediction): New.
6175         (expand_value_return): Use it.
6176         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6177
6178 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
6179
6180         * config/mips/mips.md: Name the unspecs with define_constant.
6181         (*HILO_delay): Rename to 'hilo_delay' (no star).
6182         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6183         (reload_outdi, reload_outsi): Likewise.
6184
6185 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
6186
6187         * toplev.c: Fix formatting.
6188
6189 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
6190
6191         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6192         * configure.in (ac_rtlflag_checking): New.
6193         * doc/install.texi (--enable-checking): Document RTL flag checking.
6194
6195 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6196
6197         * c-common.c (c_common_init): Set options->unsigned_wchar.
6198         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6199         group target dependencies.
6200         (init_builtins, cpp_handle_option): Update.
6201         * cpplex.c (cpp_interpret_charconst): Update.
6202         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6203         signed_char to unsigned_char, group target dependencies.
6204         * defaults.h (WCHAR_UNSIGNED): Remove.
6205         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6206 config:
6207         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6208         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6209         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6210         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6211         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6212 doc:
6213         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6214
6215 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6216
6217         * fixinc/inclhack.def (windiss_math1): New fix.
6218         (windiss_math2): Likewise.
6219         (windiss_valist): Likewise.
6220         * fixinc/fixincl.x: Regenerated.
6221
6222 2002-05-07  Andreas Jaeger  <aj@suse.de>
6223
6224         * genautomata.c (output_internal_min_issue_delay_func): Add
6225         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6226         (output_internal_trans_func): Likewise.
6227
6228 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
6229
6230         * pa.c (hppa_profile_hook): Use force_reg to get the address
6231         of the profile hook into an appropriate pseudo register.
6232
6233 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6234
6235         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6236         (LINK_START_SPEC): Handle it.
6237         (LINK_OS_SPEC): Likewise.
6238         (CPP_SPEC): Likewise.
6239         (STARTFILE_SPEC): Likewise.
6240         (LIB_SPEC): Likewise.
6241         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
6242         all platforms.
6243         (CRTSAVRES_DEFAULT_SPEC): New macro.
6244         (LIB_WINDISS_SPEC): New macro.
6245         (CPP_OS_WINDISS_SPEC): Likewise.
6246         (STARTFILE_WINDISS_SPEC): Likewise.
6247         (ENDFILE_WINDISS_SPEC): Likewise.
6248         (LINK_START_WINDISS_SPEC): Likewise.
6249         (LINK_OS_WINDISS_SPEC): Likewise.
6250         * config/rs6000/windiss.h: New file.
6251
6252 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
6253
6254         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6255
6256 2002-05-06  David S. Miller  <davem@redhat.com>
6257
6258         * config/sparc/sparc.md (shift insns): Do not mask off
6259         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6260         take care of it.
6261
6262 2002-05-06  Richard Henderson  <rth@redhat.com>
6263
6264         PR c++/6212
6265         * expr.c (highest_pow2_factor_for_type): New.
6266         (expand_assignment): Use it.
6267
6268 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
6269
6270         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6271         unspec_volatile.
6272         ("altivec_mfvscr"): Same.
6273
6274 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6275
6276         * rtl.h (struct rtx_def): Update comments.
6277         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
6278         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
6279         RTL_FLAG_CHECK macros with list of expected RTL codes.
6280         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6281         (rtl_check_failed_flag): New.
6282         * reload1.c (reload): Use REG macro before changing rtx to MEM.
6283         (reload_cse_noop_set_p): Check rtx code before using access macro.
6284         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6285         before using access macro.
6286
6287 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6288
6289         * doc/rtl.texi (Flags): Update to reflect current usage.
6290
6291 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6292
6293         PR opt/3995
6294         * fold-const.c (sign_bit_p): New function.
6295         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6296         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6297         Reapply fold when converting (A & C) == C into (A & C) != 0.
6298         (fold_binary_op_with_conditional_arg): Fix typo in comment.
6299
6300 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6301
6302         * c-common.c (warn_multichar): New.
6303         (c_common_init): Set CPP's warn_multichar.
6304         * c-common.h (warn_multichar): New.
6305         * c-decl.c (warn_multichar): Remove.
6306         * c-lex.c (lex_charconst): Update.
6307         * c-tree.h (warn_multichar): Remove.
6308         * cppexp.c (eval_token): Sign-extend charconst value.
6309         * cppinit.c (cpp_create_reader): Set warn_multichar.
6310         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6311         each character.  Update prototype.  Sign-extend the result.
6312         * cpplib.h: Fix conditions.
6313         (struct cpp_options): Add new warning flag.
6314         (cpp_interpret_charconst): Update prototype.
6315 doc:
6316         * cpp.texi: Update documentation.
6317
6318 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
6319
6320         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6321         Fix typo in usage of allof instead of unit.
6322
6323 2002-05-06  Richard Henderson  <rth@redhat.com>
6324
6325         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6326         and any jump or call for IN.
6327
6328 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
6329
6330         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6331         -msse2.
6332         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6333
6334 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6335
6336         * fold-const.c (lshift-double): Cast the high word to an unsigned
6337         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6338         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6339         avoid compiler warning.  (fold): Remove redundant code from
6340         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6341
6342 2002-05-06  Jeff Law  <law@redhat.com>
6343
6344         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6345         * pa.c (pa_adjust_cost): Remove all true dependency cost
6346         adjustments.  Also remove support for non-DFA scheduling.
6347         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6348         to adjust true dependency costs.  Update various comments.
6349         (7100lc, 7200, 7300 scheduling): Simplify by combining the
6350         FP ALU & MPY units into a single unit.
6351
6352 2002-05-06  Catherine Moore  <clm@redhat.com>
6353
6354         * config/v850/v850.c (compute_register_save_size): Make sure
6355         to count all of the registers that will be saved.
6356
6357 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6358
6359         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6360
6361 2002-05-06  David S. Miller  <davem@redhat.com>
6362
6363         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6364         allow result to overlap input operands in memory.
6365
6366 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6367
6368 doc:
6369         * cpp.texi: Update multichar charconst docs.
6370
6371 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6372
6373         * cpplex.c (cpp_interpret_charconst): Sign-extend each
6374         character.  Don't ignore excess characters.  Treat
6375         multicharacter character constants as signed.
6376         (cpp_parse_escape): Clarify diagnostic.
6377
6378 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6379
6380         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6381         use add instead of shift.
6382         (ashldi3_sp64): Likewise.
6383         (ashlsi3_const1, ashldi3_const1): Remove.
6384         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6385         * config/sparc/sparc.c (const1_operand): New.
6386
6387 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
6388
6389         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6390
6391 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6392
6393         PR target/6561
6394         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6395
6396 2002-05-05  Richard Henderson  <rth@redhat.com>
6397
6398         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6399         memory latency adjustments.
6400         (alpha_variable_issue): Remove.
6401         (alpha_use_dfa_pipeline_interface): New.
6402         (alpha_multipass_dfa_lookahead): New.
6403         * config/alpha/alpha.md: Remove define_function_unit scheduling;
6404         include new dfa scheduling.
6405         (attr type): Add none.
6406         (blockage): Use it.
6407         * config/alpha/ev4.md: New.
6408         * config/alpha/ev5.md: New.
6409         * config/alpha/ev6.md: New.
6410
6411 2002-05-05  David S. Miller  <davem@redhat.com>
6412
6413         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6414
6415 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
6416
6417         * cse.c: Fix formatting.
6418         * emit-rtl.c: Likewise.
6419
6420 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6421
6422         * genautomata.c (initiate_states): Add additional guard to
6423         initialize `units_array'.
6424
6425 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6426
6427         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6428         process_unit_to_form_the_same_automaton_unit_lists,
6429         form_the_same_automaton_unit_lists
6430         check_unit_distributions_to_automata): New prototypes and
6431         functions.
6432         (check_automata): Rename it into `check_automata_insn_issues'.
6433         (unit_decl): New fields `the_same_automaton_unit' and
6434         `the_same_automaton_message_reported_p'.
6435         (unit_decl_t): New typedef.
6436         (the_same_automaton_lists): New gloval variable.
6437         (unit_regexp, unit_set_el, units_array, units_cmp,
6438         output_get_cpu_unit_code_func): Use the typedef.
6439         (evaluate_max_reserv_cycles): Increment
6440         `description->max_insn_reserv_cycles'.
6441         (initiate_states): Don't increment `max_cycles_num'.
6442         (transform_insn_regexps): Move code around transformation of
6443         regexps from `generate'.
6444         (generate): Remove call of `transform_insn_regexps'.
6445         (expand_automata): Call `transform_insn_regexps' and
6446         `check_unit_distributions_to_automata'.  Check errors before
6447         `generate'.
6448
6449         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6450         automaton `ultrasparc3_1'.
6451
6452 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6453
6454         * c-common.c (c_common_init): Set up CPP arithmetic.
6455         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6456         something reasonable for the host.
6457         (sanity_checks): Add checks.
6458         (cpp_read_main_file): Call sanity_checks() from here...
6459         (cpp_post_options): ... not here.
6460         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6461         * cpplib.h (struct cpp_options): New member int_precision.
6462
6463 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6464
6465         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6466
6467 2002-05-04  David S. Miller  <davem@redhat.com>
6468
6469         * config/sparc/linux.h, config/sparc/linux64.h
6470         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6471
6472         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6473         more RTX codes.
6474         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6475
6476         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6477         of SETs.
6478
6479 2002-05-05  Tim Josling  <tej@melbpc.org.au>
6480
6481         * treelang; New directory for new sample language treelang.
6482
6483 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6484
6485         * Makefile.in (c-lex.o): Update.
6486         * c-lex.c: Include target.h.
6487         (cb_register_builtins): New.
6488         (init_c_lex): Set builtins callback.
6489         * c-lex.h (cpp_define, cpp_assert): New prototypes.
6490         * cppinit.c (init_builtins): Use callback, including for
6491         GXX_WEAK.
6492         * cpplib.h (struct cpp_callbacks): New member.
6493         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6494         (TARGET_INITIALIZER): Update.
6495         * target.h (struct gcc_target): New hook.
6496         * tree.c (default_register_cpp_builtins): New.
6497         * tree.h (default_register_cpp_builtins): New.
6498 doc:
6499         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6500
6501 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6502
6503         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6504         (cpp_post_options): Move sanity checks to...
6505         (sanity_checks): New.
6506         * cpplex.c (maybe_read_ucs): Fix prototype.
6507         (parse_string, cpp_parse_escape): Cast for %c format specifier.
6508         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6509         if necessary.
6510
6511 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
6512
6513         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6514         builtins.  Use V2DI patterns instead of TI for logical operations.
6515         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6516         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6517         (ix86_expand_builtins): Change the pattern used for movntdq.
6518         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6519         sse2_nandv2di3): New patterns.
6520         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6521         on operands.
6522         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6523         (cvtdq2pd): Correct mode on operand 1.
6524         (sse2_umulsidi3): Describe without unspec.
6525         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6526         machine modes.
6527         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6528         (ashlv2di3): Likewise, from sse2_ashlv2di3.
6529         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6530         ashlv4si3, ashlv2di3): Use SImode for shift count.
6531         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6532         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6533         New patterns.
6534         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6535         New typedefs.
6536         (__m128i, __m128d): New macros.
6537         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6538         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6539         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6540         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6541         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6542         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6543         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6544         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6545         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6546         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6547         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6548         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6549         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6550         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6551         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6552         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6553         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6554         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6555         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6556         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6557         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6558         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6559         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6560         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6561         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6562         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6563         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6564         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6565         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6566         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6567         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6568         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6569         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6570         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6571         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6572         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6573         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6574         functions.
6575         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6576         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6577
6578 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
6579
6580         * dwarf2out.c: Fix formatting.
6581         * varasm.c: Likewise.
6582
6583 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
6584
6585         PR c/6543
6586         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6587         clobber and use result as temporary value.
6588
6589 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6590
6591         * expr.c (force_operand): Use expand_simple_* to handle more
6592         cases.
6593
6594 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6595
6596         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6597         and sign-extension.
6598         (lex_charconst): Update for change in prototype of
6599         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
6600         appropriately.
6601         * cpphash.h (BITS_PER_CPPCHAR_T): New.
6602         * cppinit.c (cpp_create_reader): Initialize them for no
6603         change in semantics.
6604         (cpp_post_options): Add sanity checks.
6605         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6606         and truncation issues.  Calculate in type cppchar_t.
6607         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6608         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
6609         run-time dependent precision correctly.  Return whether the
6610         result is signed or not.
6611         * cpplib.c (dequote_string): Use cppchar_t; update.
6612         * cpplib.h (cppchar_signed_t): New.
6613         struct cpp_options): New precision members.
6614         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6615         * cppexp.c (eval_token): Update.
6616
6617 2002-05-03  David S. Miller  <davem@redhat.com>
6618
6619         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6620         * config/sparc/sparc.c (sparc_rtx_costs): New function
6621         implementing RTX_COSTS and CONST_COSTS.
6622         * config/sparc/sparc.h (CONST_COSTS): Delete.
6623         (RTX_COSTS_CASES): Define.
6624         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6625         the work.
6626
6627         * config/sparc/sparc.md (DFA schedulers): Split out...
6628         * config/sparc/cypress.md, config/sparc/hypersparc.md,
6629         config/sparc/sparclet.md, config/sparc/supersparc.md,
6630         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6631
6632         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6633         checks on it, always defined for Sparc.
6634
6635         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6636         Tweak, and add more detailed comments.
6637
6638 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
6639
6640         * Re-apply patch accidentally reverted with
6641         DFA scheduler merge: remove all rules and variables to slurp
6642         source files out of libiberty and rebuild them with HOST_CC.
6643         ($(HOST_PREFIX_1)varray.o): New rule.
6644         (genattrtab rule): Word wrap.
6645
6646 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6647
6648         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6649         (CPP_SUBTARGET_SPEC): Define.
6650         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6651         cpp_subtarget specs.
6652         (CPP_SPEC): Redefine to include %(cpp_subtarget).
6653
6654 2002-05-03  David S. Miller  <davem@redhat.com>
6655
6656         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6657         * target.h (struct gcc_target): Delete cycle_display member.
6658
6659         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6660         (rtx_needs_barrier): Delete reference to cycle_display unspec.
6661         (ia64_sched_reorder2): Mention need for cycle display handling
6662         once such notes exist.
6663
6664 2002-05-03  Richard Henderson  <rth@redhat.com>
6665
6666         * real.c (etoasc): Strip most trailing zeros for clarity.
6667         * sched-vis.c: Include real.h.
6668         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6669         * Makefile.in (sched-vis.o): Add real.h.
6670
6671 2002-05-03  David S. Miller  <davem@redhat.com>
6672
6673         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6674         no longer needed.
6675
6676 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
6677
6678         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6679         when we get an out of range literal.
6680         (altivec_expand_ternop_builtin): Same.
6681         (altivec_expand_unop_builtin): Same.
6682         (altivec_expand_builtin): Same, for dss.
6683         (altivec_expand_builtin): Use trees instead of rtl when
6684         determining literal argument validity.
6685
6686 2002-05-03  David S. Miller  <davem@redhat.com>
6687
6688         Delete cycle display scheduling hook.
6689         * config/ia64/ia64.c (ia64_cycle_display,
6690         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6691         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6692         and use emit_insn_before instead of ia64_emit_insn_before.
6693         * config/ia64/ia64.md (unspec usage): Delete cycle display.
6694         (cycle_display): Delete insn pattern.
6695         * config/sparc/sparc.md (unspec usage): Delete cycle display.
6696         (cycle_display): Delete insn pattern.
6697         * config/sparc/sparc.c (sparc_cycle_display,
6698         TARGET_SCHED_CYCLE_DISPLAY): Delete.
6699         * doc/md.texi (cycle_display): Don't mention.
6700         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6701
6702 2002-05-03  Richard Henderson  <rth@redhat.com>
6703
6704         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6705         * recog.h: Declare them.
6706
6707         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6708         * config/sparc/sparc.md: Use store_data_bypass_p instead.
6709         * config/sparc/sparc-protos.h: Update.
6710
6711 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6712
6713         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6714         -D__arch64__.  Add -D_LP64.
6715         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6716         from sparc.h.
6717         (CPP_ARCH64_SPEC): Likewise.
6718         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6719         (NO_BUILTIN_SIZE_TYPE): Undef.
6720
6721 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
6722
6723         * genautomata.c (min_issue_delay_pass_states): Change return type
6724         in the prototype.
6725         (min_issue_delay_pass_states): Change the algorithm.
6726         (min_issue_delay): Set up min_insn_issue_delay for the state.
6727         (output_min_issue_delay_table): Interchange the nested loops and
6728         and initiate min_insn_issue_delay for states.
6729
6730 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
6731
6732         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
6733         jump is simplejump.
6734
6735 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
6736
6737         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
6738         sequence.
6739
6740 2002-05-03  Richard Henderson  <rth@redhat.com>
6741
6742         PR opt/6534
6743         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6744         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6745         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6746         code before JUMP, not EARLIEST.
6747
6748 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6749
6750         * c-format.c (check_format_info_main): Don't check for presence of
6751         parameter for * width until after operand number has been read,
6752         and only check for it if format parameters are available.
6753         Fixes PR c/6547.
6754
6755 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6756
6757         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6758         (LINK_SPEC): Undef before defining.
6759
6760 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6761
6762         PR preprocessor/6489
6763         * tradcpp.c (fixup_newlines): New.
6764         (main, finclude): Use it.
6765
6766 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
6767
6768         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6769         * config/mips/mips.c (mips_unique_section): Strip encoding from
6770         decl name.
6771
6772 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6773
6774         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6775         mode.
6776
6777 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6778
6779         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6780         (Specific): Removed buildstats references.
6781         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6782         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6783         Accomodate Solaris versions beyond 8.
6784         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6785         (Specific, *-*-solaris2.8): Removed, obsolete.
6786
6787 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6788
6789         PR target/6542
6790         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6791         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6792         fill leaf_reg_remap with identity.
6793         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6794
6795 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6796
6797         * config/h8300/crti.asm: Remove trailing spaces.
6798         * config/h8300/h8300.c: Likewise.
6799         * config/h8300/lib1funcs.asm: Likewise.
6800
6801 2002-05-02  Jason Merrill  <jason@redhat.com>
6802
6803         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6804         * c-decl.c (c_init_decl_processing): Use it.
6805         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6806         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6807         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6808
6809 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6810
6811         * regrename.c: Fix formatting.
6812         * tree.c: Likewise.
6813
6814 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
6815
6816         * i386.md (attribute memory): Handle compares properly.
6817
6818 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
6819
6820         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6821         to none.
6822
6823 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
6824
6825         * function.c: Fix formatting.
6826
6827 2002-05-02  Jan Hubicka  <jh@suse.cz>
6828
6829         * haifa-sched.c (schedule_insn): Print table of instructions and
6830         reservations.
6831         (sched_block): Do not print ready list at verbosity level 1.
6832         * sched-vis.c (print_insn): Make global.
6833         * sched-ebb.c (ebb_print_insn): Rename from...
6834         (print_insn): ... this one.
6835         * sched-int.h (print_insn): Declare
6836
6837 2002-05-02  Richard Henderson  <rth@redhat.com>
6838
6839         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6840         emitted by cycle_display.
6841
6842 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
6843
6844         * doc/install.texi (*-*-freebsd*): Update to latest status.
6845
6846 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6847
6848         PR target/6540
6849         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6850         * config/float-sparc.h: Assume 128-bit long double if
6851         __LONG_DOUBLE_128__ is defined.
6852
6853 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6854
6855         * genattrtab.c (write_function_unit_info): Add a dummy element
6856         when num_units == 0.
6857
6858 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6859
6860         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6861         TYPE_MODE (double_type_node) instead of DFmode.
6862
6863 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
6864
6865         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6866         jumps post reload.
6867         * toplev.c (rest_of_compilation): Revert Richard's patch.
6868
6869 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6870
6871         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6872
6873 2002-05-02  Catherine Moore  <clm@redhat.com>
6874
6875         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6876
6877 2002-05-02  Kazu Hirata  <kazu@hxi.com>
6878
6879         * combine.c: Fix comment typos.
6880         * expr.c: Likewise.
6881         * genautomata.c: Likewise.
6882         * stmt.c: Likewise.
6883         * tree.h: Likewise.
6884
6885 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6886
6887         * doc/install.texi: State GNAT version requirements.
6888
6889 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
6890
6891         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6892         of the frame pointer or arg pointer register which strict register
6893         checking is not enabled.
6894
6895 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
6896
6897         * gcc.dg/altivec-8.c: New.
6898
6899         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6900         PRE_INC and PRE_DEC for altivec modes.
6901
6902 2002-05-01  Bruce Korb  <bkorb@gnu.org>
6903
6904         * fixinc/check.tpl(set-writable): make sure the function exists first
6905         * fixinc/inclhack.def(alpha_assert): fix test_text
6906         * fixinc/tests/base/assert.h: add in missing result
6907
6908 2002-05-01  Jeff Law  <law@redhat.com>
6909
6910         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6911         'T' constraint.
6912
6913 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
6914
6915         * dbxout.c (dbxout_type): Emit size information for range types,
6916         as well, but only when using GDB extensions.
6917
6918 2002-05-01  Richard Henderson  <rth@redhat.com>
6919
6920         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6921         target-independent gnu binutils date test.
6922
6923 2002-05-01  Richard Henderson  <rth@redhat.com>
6924
6925         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6926         info before expunging the block.
6927
6928 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6929
6930         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6931         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
6932         -M -or -MM is in effect.
6933
6934 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
6935
6936         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
6937         A29k configurations.
6938         * doc/install.texi: Update to match.
6939
6940 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6941
6942         PR bootstrap/6514
6943         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6944         for duplicates. Always loop over whole list.
6945
6946 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6947
6948         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6949
6950 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6951
6952         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6953         support routines.
6954
6955 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6956
6957         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6958
6959 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
6960
6961         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6962         (nabs_nopower): Same.
6963         (floatdisf2): New pattern.
6964         (absdi2): Convert to define_insn_and_split.
6965         (nabsdi2): Same.
6966         (trunctfsf2): Same.
6967         (floatditf2): Same.
6968         (floatsitf2): Same.
6969         (fix_trunctfdi2): Same.
6970         (fix_trunctfsi2): Same.
6971
6972 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6973
6974         * doc/install.texi: Update Texinfo version requirement
6975         documentation.
6976
6977 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6978
6979         PR target/6512, PR target/5628
6980         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6981         when memory is not aligned.
6982         (movdf_insn_v9only_vis): Likewise.
6983         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6984         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6985         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6986
6987 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
6988
6989         * gcc.dg/altivec-7.c: New.
6990
6991         * config/rs6000/altivec.h: Cleanup.
6992
6993 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
6994
6995         * doc/invoke.texi (Option Summary): Add -mvrsave=.
6996         (RS/6000 and PowerPC Options): Document -mvrsave=.
6997
6998         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6999         (rs6000_altivec_vrsave_string): Same.
7000         (rs6000_override_options): Call rs6000_parse_vrsave_option.
7001         (rs6000_parse_vrsave_option): New.
7002         (rs6000_stack_info): Only generate vrsave instructions when
7003         TARGET_ALTIVEC_VRSAVE.
7004
7005         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7006         (rs6000_altivec_vrsave_string): Define extern.
7007         (rs6000_altivec_vrsave): Same.
7008         (TARGET_ALTIVEC_VRSAVE): New.
7009
7010 2002-04-30  Richard Henderson  <rth@redhat.com>
7011
7012         PR opt/6516
7013         * toplev.c (rest_of_compilation): Don't run cross-jump before
7014         bb-reorder.
7015
7016 2002-04-30  Tom Rix  <trix@redhat.com>
7017
7018         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7019         check which_alternative.
7020
7021 2002-04-30  Kazu Hirata  <kazu@hxi.com>
7022
7023         * cpplex.c: Fix comment formatting.
7024         * function.c: Likewise.
7025         * integrate.c: Likewise.
7026         * regrename.c: Likewise.
7027         * sibcall.c: Likewise.
7028         * simplify-rtx.c: Likewise.
7029         * tree-inline.c: Likewise.
7030
7031 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7032
7033         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7034         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7035         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7036         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7037         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7038         * pa/x-ada: New file.  Define ADA_CFLAGS.
7039
7040 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
7041
7042         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7043         from MMIX_LAST_REGISTER_FILE_REGNUM.
7044         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7045         (struct machine_function): New member highest_saved_stack_register
7046         previously static variable in mmix.c.
7047         (MACHINE_DEPENDENT_REORG): Define.
7048         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7049         (MMIX_OUTPUT_REGNO): New.
7050         (mmix_target_asm_function_prologue): Move calculation of last used
7051         saved-stack-register into...
7052         (mmix_machine_dependent_reorg): New function.  Update to also handle
7053         !TARGET_ABI_GNU.
7054         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7055         register names, simplify somewhat by new variable regno.
7056         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
7057         register.
7058         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7059         emitting register names.
7060         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7061         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7062         Remove fixed FIXME.
7063         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7064         Declare.
7065
7066         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7067
7068 2002-04-30  Richard Henderson  <rth@redhat.com>
7069
7070         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7071         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7072         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7073         emit_tfmode_cvt): New.
7074         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7075         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7076         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7077         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7078         * config/sparc/sparc-protos.h: Update.
7079
7080 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
7081
7082         * install.texi (Final install): Add to the list of info to include
7083         in a report of a successful bootstrap, and add link to 3.1 list.
7084
7085 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
7086
7087         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7088         (mode): Add vector modes
7089         (i387): Kill attribute.
7090         (unit): New attribute.
7091         (length_immediate): Grok new types.
7092         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7093         (modrm): Use "unit".
7094         (memory): Handle MMX/SSE properly.
7095         (scheduling descriptions): Kill uses of fop1.
7096         (sse, mmx, fp patterns): Set type and mode properly.
7097
7098 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
7099
7100         * pa.c (override_options): Default to PA8000 scheduling.
7101         * doc/invoke.texi (HP-PA options): Mention newly added 7300
7102         scheduling parameter.
7103
7104         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7105         handling of double precision multiplies.
7106
7107         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7108         fpdiv and fpsqrt instructions.
7109         (7200 & 7300 scheduling): Fix typo in handling of
7110         store-load and store-store penalties.
7111
7112 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7113
7114         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7115         mips.  Add two missing commas.
7116
7117 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
7118
7119         * doc/contrib.texi (Contributors): Update Paolo Carlini's
7120         and Benjamin Kosnik's entries.
7121
7122 2002-04-29  David S. Miller  <davem@redhat.com>
7123
7124         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7125         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7126         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7127         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7128
7129 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7130
7131         * combine.c (find_split_point): Use gen_int_mode.
7132
7133 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
7134
7135         Merging code from dfa-branch:
7136
7137         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7138
7139         * genautomata.c (output_reserv_sets): Fix typo.
7140
7141         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
7142
7143         * genautomata.c (output_reserv_sets): Remove
7144         next_cycle_output_flag.
7145
7146         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
7147
7148         * sched-rgn.c (init_ready_list): Make the DFA code handle
7149         USE/CLOBBER insns in the same way as the traditional
7150         scheduler.
7151         (new_ready): Similarly..
7152
7153         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
7154
7155         * haifa-sched.c (schedule_block): Change the DFA state only after
7156         issuing insn.
7157
7158         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
7159
7160         * pa.c (hppa_use_dfa_pipeline_interface): New function.
7161         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7162         (override_options): Add PA7300 scheduling support.
7163         (pa_adjust_cost): Update various comments.  Properly
7164         handle anti and output dependencies when using the
7165         DFA scheduler.
7166         (pa_issue_rate): Add PA7300 scheduling support.
7167         (pa_can_combine_p): Call extract_insn before calling
7168         constrain_operands (taken from mainline tree).
7169         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7170         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
7171         descriptions using DFA descriptions.  Add PA7300
7172         scheduling support.
7173
7174         2002-03-30  David S. Miller  <davem@redhat.com>
7175
7176         Add UltraSPARC-III DFA scheduling support.
7177         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7178         Update FP conditional move on register insn patterns to use it, as
7179         appropriate.
7180         (define_attr cpu): Add ultrasparc3.
7181         (define_attr us3load_type): New, update integer load patterns to
7182         set it, as appropriate.
7183         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7184         (rest): Add UltraSPARC3 scheduling description.
7185         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7186         (PROCESSOR_ULTRASPARC3): New.
7187         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7188         ({ASM,CPP}_CPU_SPEC): Likewise.
7189         (REGISTER_MOVE_COST): Likewise.
7190         (RTX_COSTS): Likewise.
7191         * config/sparc/sparc.c (sparc_override_options,
7192         sparc_initialize_trampoline, sparc64_initialize_trampoline,
7193         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7194         sparc_issue_rate): Likewise.
7195         * config/sparc/sol2.h: Likewise.
7196         * config/sparc/sol2-sld-64.h: Likewise.
7197         * config/sparc/linux64.h: Likewise.
7198
7199         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
7200
7201         * doc/md.texi: Add comments about usage the latency time for the
7202         different dependencies and about case when two or more conditions
7203         in different define_insn_reservations returns TRUE for an insn.
7204
7205         * doc/md.texi: Add reference for automaton based pipeline
7206         description.
7207
7208         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
7209
7210         * doc/passes.texi: Add missed information about genattrtab.
7211
7212         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
7213
7214         * genautomata.c (output_automata_list_transition_code): Check
7215         automata_list on NULL.
7216
7217         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
7218
7219         * genautomata.c (output_insn_code_cases,
7220         output_automata_list_min_issue_delay_code,
7221         output_automata_list_transition_code,
7222         output_automata_list_state_alts_code): Comment the functions.
7223
7224         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7225
7226         * genautomata.c (automata_list_el_t): New typedef.
7227         (get_free_automata_list_el,free_automata_list_el,
7228         free_automata_list, automata_list_hash, automata_list_eq_p,
7229         initiate_automata_lists, automata_list_start, automata_list_add,
7230         automata_list_finish, finish_automata_lists,
7231         output_insn_code_cases, output_automata_list_min_issue_delay_code,
7232         output_automata_list_transition_code,
7233         output_automata_list_state_alts_code, add_automaton_state,
7234         form_important_insn_automata_lists): New functions and prototypes.
7235         (insn_reserv_decl): Add members important_automata_list and
7236         processed_p.
7237         (ainsn): Add members important_p.
7238         (automata_list_el): New structure.
7239         (first_free_automata_list_el, current_automata_list,
7240         automata_list_table): New global variables.
7241         (create_ainsns): Initiate member important_p.
7242         (output_internal_min_issue_delay_func): Generate the switch and
7243         call output_insn_code_cases.
7244         (output_internal_trans_func, output_internal_state_alts_func):
7245         Ditto.
7246         (generate): Call initiate_automata_lists.
7247         (automaton_states): New global variable.
7248         (expand_automata): Call form_important_insn_automata_lists.
7249         (write_automata): Call finish_automata_lists.
7250
7251         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
7252
7253         * genautomata.c (add_excls, add_presence_absence): Check that
7254         cpu units in the sets belong the same automaton.
7255
7256         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7257         about that cpu units in the sets belong the same automaton.
7258
7259         * doc/md.texi: Ditto.
7260
7261         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
7262                     Nitin Gupta  <niting@noida.hcltech.com>
7263
7264         * config/sh/sh.c (sh_use_dfa_interface): New function.
7265
7266         (sh_issue_rate): New Function.
7267         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7268         TARGET_SCHED_ISSUE_RATE: define.
7269
7270         * config/sh/sh.md: Add DFA based pipeline description for SH4.
7271
7272         (define_attr insn_class): New attribute used for DFA
7273          scheduling.
7274         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7275         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7276          cmpeqdi_t): Likewise.
7277
7278         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7279          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7280          ex_group.
7281         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7282
7283         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7284
7285         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7286         break.
7287
7288         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7289
7290         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7291         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7292         necessary.
7293         (output_dfa_start_func): Initiate new variable insn_codes_length,
7294         (write_automata): Output definition of the new variable.
7295
7296         2001-10-02  David S. Miller  <davem@redhat.com>
7297
7298         * haifa-sched.c (advance_one_cycle): New function.
7299         (schedule_block): Use it.
7300         (queue_to_ready): Use it, and also make sure to advance the DFA
7301         state on all stall cycles, not just those where insn_queue links
7302         are found.
7303
7304         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
7305
7306         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
7307         non-zero if the highest-priority instruction could be scheduled.
7308         (choose_ready): Remove last argument from max_issue call.
7309
7310         2001-09-28  David S. Miller  <davem@redhat.com>
7311
7312         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7313         ultrasparc and 3 for other multi-issue sparcs.
7314
7315         2001-09-27  David S. Miller  <davem@redhat.com>
7316
7317         * config/sparc/sparc.md (cycle_display): New pattern.
7318         * config/sparc/sparc.c (sparc_cycle_display): New.
7319         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7320
7321         2001-09-25  David S. Miller  <davem@redhat.com>
7322
7323         Convert all of Sparc scheduling to DFA
7324         * config/sparc/sparc.md: Kill all define_function_unit
7325         directives and replace with DFA equivalent.
7326         * config/sparc/sparc.c (ultrasparc_adjust_cost,
7327         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7328         ultra_fpmode_conflict_exists, ultra_find_type,
7329         ultra_build_types_avail, ultra_flush_pipeline,
7330         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7331         ultrasparc_variable_issue, ultrasparc_sched_init,
7332         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7333         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7334         ultra_cur_hist, ultra_cycles_elapsed): Kill.
7335         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7336         ultrasparc_store_bypass_p): New.
7337         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7338         Declare.
7339
7340         2001-09-24  David S. Miller  <davem@redhat.com>
7341
7342         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7343         ready->vec[foo] not ready[foo].
7344
7345         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7346
7347         * doc/md.texi: Correct examples for define_insn_reservations
7348         `mult' and `div'.
7349
7350         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7351
7352         * genautomata.c (create_automata): Print message about creation of
7353         each automaton.
7354         (generate): Remove printing meease about creation of
7355         automata.
7356
7357         2001-09-05  David S. Miller  <davem@redhat.com>
7358
7359         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7360         * config/sparc/linux64.h: Likewise.
7361
7362         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
7363
7364         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7365         schedule_block, sched_init, sched_finish): Add missed calls of
7366         use_dfa_pipeline_interface.
7367
7368         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7369         Ditto.
7370
7371         * sched-vis.c (get_visual_tbl_length): Ditto.
7372
7373         2001-08-27  Richard Henderson  <rth@redhat.com>
7374
7375         * genattr.c (main): Emit state_t even when not doing scheduling.
7376
7377         2001-08-27  Richard Henderson  <rth@redhat.com>
7378
7379         * genautomata.c (expand_automata): Always create a description.
7380
7381         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
7382
7383         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7384         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7385         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7386         RTL constructions.
7387
7388         * genattr.c (main): New variable num_insn_reservations.  Increase
7389         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
7390         pipeline hazard recognizer interface.
7391
7392         * genattrtab.h: New file.
7393
7394         * genattrtab.c: Include genattrtab.h.
7395         (attr_printf, check_attr_test, make_internal_attr,
7396         make_numeric_value): Move protypes into genattrtab.h.  Define them
7397         as external.
7398         (num_dfa_decls): New global variable.
7399         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7400         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7401         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7402         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
7403
7404         * genautomata.c: New file.
7405
7406         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7407
7408         * sched-int.h: (curr_state): Add the external definition for
7409         automaton pipeline interface.
7410         (haifa_insn_data): Add comments for members blockage and units.
7411
7412         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7413         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7414         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7415         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7416         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7417         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7418         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7419         macros.
7420         (TARGET_SCHED): Use the new macros.
7421
7422         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7423         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7424         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7425         dfa_bubble): New members in gcc_target.sched.
7426
7427         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7428         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7429         (insn_queue): Redefine it as pointer to array.
7430         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7431         INSN_QUEUE_SIZE.
7432         (max_insn_queue_index_macro_value): New variable.
7433         (curr_state, dfa_state_size, ready_try): New varaibles for
7434         automaton interface.
7435         (ready_element, ready_remove, max_issue): New function prototypes
7436         for automaton interface.
7437         (choose_ready): New function prototype.
7438         (insn_unit, blockage_range): Add comments.
7439         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7440         FUNCTION_UNITS_SIZE == 0.
7441         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7442         actual_hazard, potential_hazard): Add comments.
7443         (insn_cost): Use cost -1 as undefined value.  Remove
7444         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
7445         pipeline interface.
7446         (ready_element, ready_remove): New functions for automaton
7447         interface.
7448         (schedule_insn): Add new code for automaton pipeline interface.
7449         (queue_to_ready): Add new code for automaton pipeline interface.
7450         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7451         (debug_ready_list): Print newline when the queue is empty.
7452         (max_issue): New function for automaton pipeline interface.
7453         (choose_ready): New function.
7454         (schedule_block): Add new code for automaton pipeline interface.
7455         Print ready list before scheduling each insn.
7456         (sched_init): Add new code for automaton pipeline interface.
7457         Initiate insn cost by -1.
7458         (sched_finish): Free the current automaton state and finalize
7459         automaton pipeline interface.
7460
7461         * sched-rgn.c: Include target.h.
7462         (init_ready_list, new_ready, debug_dependencies): Add new code for
7463         automaton pipeline interface.
7464
7465         * sched-vis.c: Include target.h.
7466         (get_visual_tbl_length): Add code for automaton interface.
7467         (target_units, print_block_visualization):  Add comments.
7468
7469         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7470         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7471         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7472         (getruntime.o, genautomata.o): New entries.
7473         (genattrtab.o): Add new dependency file genattrtab.h.
7474         (genattrtab): Add new dependencies.  Link it with `libm.a'.
7475         (getruntime.o, hashtab.o): New entries for canadian cross.
7476
7477         * doc/md.texi: Description of automaton based model.
7478
7479         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7480         Add comments.
7481         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7482         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7483         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7484         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7485         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7486         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7487         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7488         hook descriptions.
7489         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7490         MAX_DFA_ISSUE_RATE): New macro descriptions.
7491
7492         * doc/contrib.texi: Add dfa based scheduler contribution.
7493
7494         * doc/gcc.texi: Add more information about genattrtab.
7495
7496 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7497
7498         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7499         adjust_address_nv call.
7500
7501 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
7502
7503         * doc/install.texi (Testing): Provide additional information, and
7504         a stronger encouragement, for running the testsuites.
7505
7506 2002-04-29  DJ Delorie  <dj@redhat.com>
7507
7508         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7509         given in upper case.
7510
7511 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7512
7513         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7514         Solaris 2 <widec.h> if missing.
7515         * fixinc/fixincl.x: Regenerate.
7516         * fixinc/tests/base/widec.h: New file.
7517
7518 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
7519
7520         * toplev.c (f_options): Add "profile" switch so that
7521         -fno-profile can be used to disable -p.
7522
7523 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
7524
7525         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7526         UV2DImode.
7527         * tree.c (build_common_tree_nodes_2): Likewise.
7528         * tree.h (enum tree_index): Likewise.
7529         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7530
7531         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7532         entries.
7533         (init_mmx_sse_builtins): Initialize SSE2 builtins.
7534         (ix86_expand_builtin): Add support for SSE2 builtins.
7535         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7536         (VALID_SSE_REG_MODE): Use it.
7537         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7538         (enum ix86_builtins): Add SSE2 builtins.
7539         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7540         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7541         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7542         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7543         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7544         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7545         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7546         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7547         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7548         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7549         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7550         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7551         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7552         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7553         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7554         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7555         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7556         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7557         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7558         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7559         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7560         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7561         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7562         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7563         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7564         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7565         lfence_insn): New patterns.
7566         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7567         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7568
7569 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
7570
7571         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7572
7573 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7574
7575         * doc/contrib.texi (Contributors): Add Paolo Carlini and
7576         Janis Johnson.
7577         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7578         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7579         and CPU instead of cpu.
7580
7581 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7582
7583         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7584         variables.
7585         (lang_independent_options): Add -fif-conversion, -fif-conversion2
7586         (rest_of_compilation): Do if conversion only when asked for.
7587         (parse_options_and_default_flags): Set new variables to 1 for -O1
7588         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7589
7590 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
7591
7592         * i386.c (dbx64_register_map): Fix typo.
7593
7594 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7595
7596         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7597         real_one_half, real_bb_freq_max): New static variables.
7598         (debug_profile_bbauxs): Kill.
7599         (process_note_predictions): Kill unused variable.
7600         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7601         volatile double.
7602         (propagate_freq): Use REAL_ARITHMETICS.
7603         (estimate_bb_frequencies): Likevise; init new static variables.
7604         * Makefile.in (predict.o): Add dependency on real.h
7605
7606 2002-04-28  David S. Miller  <davem@redhat.com>
7607
7608         PR target/6500
7609         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7610         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
7611         several {reads,writes} instead.
7612         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7613         Define.
7614
7615 2002-04-27  David S. Miller  <davem@redhat.com>
7616
7617         PR target/6494
7618         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7619         of the stack bias.
7620
7621         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7622         including signal.h and sys/ucontext.h, not needed.
7623
7624 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
7625
7626         * varasm.c (output_constant_def): Correct test for not calling
7627         ENCODE_SECTION_INFO for INTEGER_CST.
7628
7629 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7630
7631         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7632         keep most cases as function eval_token.
7633         (eval_token): New function.
7634         (_cpp_parse_expr): Read token here for improved diagnostics.
7635         Don't use op_as_text.  Detect bad ':' here.
7636         (reduce): Don't detect bad ':' here.
7637         (op_as_text): Remove.
7638         * cpphash.h (_cpp_test_assertion): Change prototype.
7639         * cpplib.c (_cpp_test_assertion): Change prototype.
7640
7641 2002-04-28  Richard Henderson  <rth@redhat.com>
7642
7643         PR c/5154
7644         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7645         (ggc_mark_rtx_children): New.
7646
7647 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7648
7649         PR target/6496
7650         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7651         after call peepholes for UltraSPARC.
7652         (call + jump 64-bit peepholes): Remove.
7653
7654 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7655
7656         PR c/6497
7657         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7658         result as temporary value.
7659
7660 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7661
7662         PR c++/6396
7663         * toplev.c (rest_of_compilation): Only run regrename and copy
7664         propagation if optimizing.
7665
7666 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7667
7668         PR optimization/6475
7669         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7670         register of REGNO_DECL (i).
7671         * Makefile.in (reload1.o): Add $(TREE_H).
7672
7673 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7674
7675         * cppexp.c (lex): Update to use state.skip_eval.
7676         (struct op): Remove prio and flags members.
7677         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7678         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7679         (LEFT_ASSOC): New macro.
7680         (optab): New table of operator priorities and flags.
7681         (SHIFT): Update.
7682         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
7683         malloc-ed parser stack.
7684         (reduce): New; reduce the operator stack.
7685         (_cpp_expand_op_stack): Expand the operator stack as necessary.
7686         * cpphash.h (struct op): Predeclare.
7687         (struct cpp_reader): New members op_stack, op_limit.
7688         (struct lexer_state): New member skip_eval.
7689         (_cpp_parse_expr): Update.
7690         (_cpp_expand_op_stack): New.
7691         * cpplib.c (do_if): Update.
7692         * cppinit.c (cpp_create_reader): Create op stack.
7693         (cpp_destroy): And destroy it.
7694         * cpplib.h (CPP_LAST_CPP_OP): Correct.
7695         (TTYPE_TABLE): Correct.
7696
7697 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7698
7699         PR c/6343
7700         * c-decl.c (duplicate_decls): Call merge_weak.
7701         * c-pragma.c (apply_pragma_weak): Warn about misuse.
7702         * output.h (merge_weak): Prototype merge_weak.
7703         * varasm.c (merge_weak): New function.
7704         (declare_weak): Make sure we don't give an error on VAR_DECLs.
7705         Mark RTL with SYMBOL_REF_WEAK.
7706
7707 2002-04-27  Kurt Garloff <garloff@suse.de>
7708
7709         * tree-inline.c (inlinable_function_p): Improve heuristics
7710         by using a smoother function to cut down allowable inlinable size.
7711         * param.def: Add parameters max-inline-insns-single,
7712         max-inline-slope, min-inline-insns that determine the exact
7713         shape of the above function.
7714         * param.h: Likewise.
7715
7716 2002-04-26  Richard Henderson  <rth@redhat.com>
7717
7718         * c-parse.in (malloced_yyss, malloced_yyvs): New.
7719         (yyoverflow): Re-add.  Set them.
7720         (free_parser_stacks): New.
7721         * c-common.h: Declare it.
7722         * c-lex.c (c_common_parse_file): Call it.
7723
7724 2002-04-26  Richard Henderson  <rth@redhat.com>
7725
7726         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7727         for fallthru search.
7728
7729 2002-04-26  Eric Christopher  <echristo@redhat.com>
7730
7731         PR optimization/3700
7732         * config/mips/mips.c (mips_issue_rate): Define.  New function.
7733         (TARGET_SCHED_ISSUE_RATE): Use.
7734
7735 2002-04-25  David S. Miller  <davem@redhat.com>
7736
7737         PR target/6422
7738         * reorg.c (optimize_skip): Do not allow exception causing
7739         instructions to be considered for delay slots.
7740         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7741         (relax_delay_slots): Do not try to consider exception causing
7742         instructions as redundant.
7743
7744 2002-04-26  Richard Henderson  <rth@redhat.com>
7745
7746         PR c/5225
7747         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7748
7749 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
7750
7751         PR bootstrap/6445
7752         * config/i386/i386.md (untyped_call): Return the value in a float
7753         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7754         TARGET_80387.
7755
7756 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
7757
7758         * tree.c (tree_int_cst_lt): Compare constants whose types differ
7759         in unsigned-ness correctly.
7760
7761 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7762
7763         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7764         portable runtime model.
7765
7766 2002-04-26  Richard Henderson  <rth@redhat.com>
7767
7768         * c-parse.in (yyoverflow): Revert.
7769
7770 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
7771             Richard Henderson  <rth@redhat.com>
7772
7773         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7774         result as temporary value.
7775
7776 2002-04-26  Richard Henderson  <rth@redhat.com>
7777
7778         PR c/3581
7779         * c-common.c (fix_string_type): Split out of ...
7780         (combine_strings): ... here.  Take a varray, not a tree list.
7781         (c_expand_builtin_printf): Use fix_string_type.
7782         * c-common.h: Update decls.
7783         * c-parse.in (string): Remove.  Update all uses to use STRING
7784         instead, and not call combine_strings.
7785         (yylexstring): New.
7786         (_yylex): Use it.
7787         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7788         (build_asm_stmt): Likewise.
7789         * objc/objc-act.c (my_build_string): Use fix_string_type.
7790         (build_objc_string_object): Build varray for combine_strings.
7791
7792 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
7793
7794         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7795         x86-64.
7796
7797 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7798
7799         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7800         (HAVE_NO_R_OPERAND): Remove.
7801         (HAVE_VALUE): Remove.
7802         (op_to_prio): Update.
7803         (UNARY): Don't alter flags.
7804         (_cpp_parse_expr): want_value used to indicate whether
7805         a number or unary operator is expected next.  Distinguish
7806         unary and binary +/-.
7807         (op_as_text): Update for unary operators.
7808
7809 2002-04-25  Richard Henderson  <rth@redhat.com>
7810
7811         PR c/2161
7812         * c-parse.in (yyoverflow): New.
7813
7814 2002-04-25  Richard Henderson  <rth@redhat.com>
7815
7816         PR c/2098
7817         * c-common.c (shorten_compare): Simplfy conditions leading to
7818         the generation of a warning.
7819
7820 2002-04-25  Richard Henderson  <rth@redhat.com>
7821
7822         PR c/2035
7823         * expmed.c (extract_bit_field): Fall through to generic code rather
7824         than aborting on subreg special case.
7825
7826 2002-04-25  David S. Miller  <davem@redhat.com>
7827
7828         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7829         for DECL being NULL.
7830
7831 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
7832
7833         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7834
7835 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
7836
7837         * c-decl.c (grokdeclarator): Remove outdated ??? note
7838         on invalid declaration of flexible array members.
7839
7840 2002-04-25  Richard Henderson  <rth@redhat.com>
7841
7842         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7843
7844 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7845
7846         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7847         needed by the compiler, even if they are used as global regs.
7848
7849 2002-04-25  Matt Hiller  <hiller@redhat.com>
7850
7851         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7852         functions.
7853         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7854         of the corresponding functions.
7855         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7856         New prototypes.
7857
7858 2002-04-25  Matt Hiller  <hiller@redhat.com>
7859
7860         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7861
7862         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7863         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7864         registers, adjust comment accordingly.
7865         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7866         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7867         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7868         for coprocessor registers.
7869         (ADDITIONAL_REGISTER_NAMES): Include
7870         ALL_COP_ADDITIONAL_REGISTER_NAMES.
7871
7872         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7873         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7874         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7875         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7876         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7877
7878         (mips_char_to_class): Adjust comment to include coprocessor
7879         constraint letters.
7880
7881         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7882         New functions.
7883         (mips_reg_names, mips_regno_to_class): Include coprocessor
7884         information.
7885         (mips_sw_reg_names): Ditto, make non-static.
7886         (mips_move_1word): Handle moves to and from coprocessor registers.
7887         (mips_move_2words): Handle moves to and from coprocessor
7888         registers.
7889         (mips_class_max_nregs, mips_register_move_cost): Handle
7890         coprocessor register classes.
7891         (override_options): Initialize mips_char_to_class and
7892         mips_hard_regno_mode_ok properly for coprocessor registers.
7893
7894         * config/mips/mips.md (movdi_internal, movdi_internal2,
7895         movsi_internal1, movsi_internal2): Add constraint-sets for
7896         coprocessor registers.
7897         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7898         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7899         isn't mips.
7900         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7901         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7902         isn't mips.
7903         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7904         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7905         isn't mips.
7906         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7907         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7908         isn't mips.
7909
7910         * doc/tm.texi: Document feature.
7911
7912 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7913
7914         * integrate.c (function_attribute_inlinable_p): Simplify.
7915         Check the table pointer is not NULL.
7916
7917 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
7918
7919         * doc/c-tree.texi: Fix typo in introduction.
7920
7921 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7922
7923         * c-common.h (c_common_parse_file): Update.
7924         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7925         * c-lex.c (YYDEBUG): Get from c-lex.h.
7926         (c_common_parse_file): Update.
7927         * c-lex.h (YYDEBUG, yydebug): New.
7928         * c-parse.in (YYDEBUG): Get from c-lex.h.
7929         (c_set_yydebug): Remove.
7930         * c-tree.h (c_set_yydebug): Remove.
7931         * langhooks-def.h (lhd_do_nothing_i): New.
7932         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7933         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7934         * langhooks.c  (lhd_do_nothing_i): New.
7935         (lhd_set_yydebug): Remove.
7936         * langhooks.h (struct lang_hooks): Update.
7937         * toplev.c (set_yydebug): New.
7938         (compile_file): Update call to parse_file hook.
7939         (decode_d_option): Update.
7940 objc:
7941         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7942
7943 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
7944
7945         * loop.c (load_mems): Don't change the interface of called functions.
7946
7947         * calls.c (expand_call): Take current_function_pretend_args_size
7948         into account when setting argblock for sibcalls.
7949
7950 2002-04-24  Matt Hiller  <hiller@redhat.com>
7951
7952         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7953         * c-lex.c: Ditto.
7954
7955         * cpplex.c (skip_line_comment): Process comment one multibyte
7956         character at a time rather than one char at a time, if
7957         appropriate.
7958         (parse_string): Process string one multibyte character at a time
7959         rather than one char at a time, if appropriate.
7960         * c-lex.c (lex_string): Lex and copy multibyte strings
7961         appropriately.
7962         * cpplib.h (cppchar_t): Change to unsigned.
7963
7964 2002-04-24  Richard Henderson  <rth@redhat.com>
7965
7966         PR c/3467
7967         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7968         for c99.
7969
7970 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
7971
7972         * sh.c (sh_va_arg): If argument was passed by reference,
7973         dereference the pointer.
7974
7975         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7976
7977         * sh.md (divsi3_i4_media): Use match_operand for input values
7978         rather than hard registers.
7979         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7980         unnecessarily through hard registers.  Keep copies of pseudo
7981         registers outside of the libcall sequence.
7982
7983         * sh.md (casesi_shift_media): Add modes.
7984
7985         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7986         values in memory.
7987
7988 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7989
7990         * attribs.c (c_common_attribute_table): Move table and handlers
7991         to c-common.c.
7992         (format_attribute_table, lang_attribute_table,
7993         lang_attribute_common): Remove.
7994         (init_attributes): Replace NULL pointers with pointers to the
7995         empty table.
7996         (handle_packed_attribute, handle_nocommon_attribute,
7997         handle_common_attribute, handle_noreturn_attribute,
7998         handle_noinline_attribute, handle_always_inline_attribute,
7999         handle_used_attribute, handle_unused_attribute,
8000         handle_const_attribute, handle_transparent_union_attribute,
8001         handle_constructor_attribute, handle_destructor_attribute,
8002         handle_mode_attribute, handle_section_attribute,
8003         handle_aligned_attribute, handle_weak_attribute,
8004         handle_alias_attribute, handle_visibility_attribute,
8005         handle_no_instrument_function_attribute, handle_malloc_attribute,
8006         handle_no_limit_stack_attribute, handle_pure_attribute,
8007         handle_deprecated_attribute, handle_vector_size_attribute,
8008         vector_size_helper): Move to c-common.c.
8009         * c-common.c (c_common_attribute_table,
8010         handle_packed_attribute, handle_nocommon_attribute,
8011         handle_common_attribute, handle_noreturn_attribute,
8012         handle_noinline_attribute, handle_always_inline_attribute,
8013         handle_used_attribute, handle_unused_attribute,
8014         handle_const_attribute, handle_transparent_union_attribute,
8015         handle_constructor_attribute, handle_destructor_attribute,
8016         handle_mode_attribute, handle_section_attribute,
8017         handle_aligned_attribute, handle_weak_attribute,
8018         handle_alias_attribute, handle_visibility_attribute,
8019         handle_no_instrument_function_attribute, handle_malloc_attribute,
8020         handle_no_limit_stack_attribute, handle_pure_attribute,
8021         handle_deprecated_attribute, handle_vector_size_attribute,
8022         vector_size_helper): Move from attribs.c.
8023         * c-common.h (c_common_attribute_table,
8024         c_common_format_attribute_table): New.
8025         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8026         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8027         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8028         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8029         (LANG_HOOKS_INITIALIZER): Update.
8030         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8031         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8032         * target.h: Update comment.
8033         * tree.c (default_target_attribute_table): Remove.
8034         * tree.h (default_target_attribute_table, format_attribute_table,
8035         lang_attribute_table, lang_attribute_common): Remove.
8036 objc:
8037         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8038         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8039
8040 2002-04-24  Jason Merrill  <jason@redhat.com>
8041
8042         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8043         * dwarf2out.c (dwarf_attr_name): Support it.
8044         (gen_array_type_die): Emit it.
8045         (lookup_type_die): No special handling for VECTOR_TYPE.
8046         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8047
8048 2002-04-24  Richard Henderson  <rth@redhat.com>
8049
8050         * config/mips/mips.md (movdi_usd): Renumber.
8051
8052 2002-04-24  David S. Miller  <davem@redhat.com>
8053
8054         PR target/6420
8055         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8056         32-bit Sparc and current_function_returns_struct is true.
8057
8058 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8059
8060         * loop.c (canonicalize_condition): Use gen_int_mode.
8061
8062 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
8063
8064         * config/rs6000/altivec.h: Cleanup file.  Add non individual
8065         variants.
8066         (vec_vaddubm): New.
8067         (vec_vadduhm): New.
8068         (vec_vadduwm): New.
8069         (vec_vaddfp): New.
8070         (vec_vaddcuw): New.
8071         (vec_vaddubs): New.
8072         (vec_vaddsbs): New.
8073         (vec_vadduhs): New.
8074         (vec_vadduws): New.
8075         (vec_vaddsws): New.
8076         (vec_vand): New.
8077         (vec_vandc): New.
8078         (vec_vavgub): New.
8079         (vec_vavgsb): New.
8080         (vec_vavguh): New.
8081         (vec_vavgsh): New.
8082         (vec_vavguw): New.
8083         (vec_vavgsw): New.
8084         (vec_vrfip): New.
8085         (vec_vcmpbfp): New.
8086         (vec_vcmpequb): New.
8087         (vec_vcmpequh): New.
8088         (vec_vcmpequw): New.
8089         (vec_vcmpeqfp): New.
8090         (vec_vcmpgefp): New.
8091         (vec_vcmpgtub): New.
8092         (vec_vcmpgtsb): New.
8093         (vec_vcmpgtuh): New.
8094         (vec_vcmpgtsh): New.
8095         (vec_vcmpgtuw): New.
8096         (vec_vcmpgtsw): New.
8097         (vec_vcmpgtfp): New.
8098         (vec_vcmpgefp): New.
8099         (vec_vcfux): New.
8100         (vec_vcfsx): New.
8101         (vec_vctsxs): New.
8102         (vec_vctuxs): New.
8103         (vec_vexptefp): New.
8104         (vec_vrfim): New.
8105         (vec_lvx): New.
8106         (vec_lvebx): New.
8107         (vec_lvehx): New.
8108         (vec_lde): Add vector float variant.
8109         (vec_lvewx): New.
8110         (vec_lvxl): New.
8111         (vec_vlogefp): New.
8112         (vec_vmaddfp): New.
8113         (vec_vmhaddshs): New.
8114         (vec_vmaxub): New.
8115         (vec_vmaxsb): New.
8116         (vec_vmaxuh): New.
8117         (vec_vmaxsh): New.
8118         (vec_vmaxuw): New.
8119         (vec_vmaxsw): New.
8120         (vec_vmaxsw): New.
8121         (vec_vmaxfp): New.
8122         (vec_vmrghb): New.
8123         (vec_vmrghh): New.
8124         (vec_vmrghw): New.
8125         (vec_vmrglb): New.
8126         (vec_vmrglh): New.
8127         (vec_vmrglw): New.
8128         (vec_vminub): New.
8129         (vec_vminsb): New.
8130         (vec_vminuh): New.
8131         (vec_vminsh): New.
8132         (vec_vminuw): New.
8133         (vec_vminsw): New.
8134         (vec_vminfp): New.
8135         (vec_vmladduhm): New.
8136         (vec_vmhraddshs): New.
8137         (vec_msumubm): New.
8138         (vec_vmsummbm): New.
8139         (vec_vmsumuhm): New.
8140         (vec_vmsumshm): New.
8141         (vec_vmsumuhs): New.
8142         (vec_vmsumshs): New.
8143         (vec_vmuleub): New.
8144         (vec_vmulesb): New.
8145         (vec_vmuleuh): New.
8146         (vec_vmulesh): New.
8147         (vec_vmuloub): New.
8148         (vec_mulosb): New.
8149         (vec_vmulouh): New.
8150         (vec_vmulosh): New.
8151         (vec_vnmsubfp): New.
8152         (vec_vnor): New.
8153         (vec_vor): New.
8154         (vec_vpkuhum): New.
8155         (vec_vpkuwum): New.
8156         (vec_vpkpx): New.
8157         (vec_vpkuhus): New.
8158         (vec_vpkshss): New.
8159         (vec_vpkuwus): New.
8160         (vec_vpkswss): New.
8161         (vec_vpkshus): New.
8162         (vec_vpkswus): New.
8163         (vec_vperm): New.
8164         (vec_vrefp): New.
8165         (vec_vrlb): New.
8166         (vec_vrlh): New.
8167         (vec_vrlw): New.
8168         (vec_vrfin): New.
8169         (vec_vrsqrtefp): New.
8170         (vec_vsel): New.
8171         (vec_vslb): New.
8172         (vec_vslh): New.
8173         (vec_vslw): New.
8174         (vec_vsldoi): New.
8175         (vec_vsl): New.
8176         (vec_vslo): New.
8177         (vec_vspltb): New.
8178         (vec_vsplth): New.
8179         (vec_vspltw): New.
8180         (vec_vspltisb): New.
8181         (vec_vspltish): New.
8182         (vec_vspltisw): New.
8183         (vec_vsrb): New.
8184         (vec_vsrh): New.
8185         (vec_vsrw): New.
8186         (vec_vsrab): New.
8187         (vec_vsrah): New.
8188         (vec_vsraw): New.
8189         (vec_vsr): New.
8190         (vec_vsro): New.
8191         (vec_stvx): New.
8192         (vec_stvebx): New.
8193         (vec_stvehx): New.
8194         (vec_stvewx): New.
8195         (vec_stvxl): New.
8196         (vec_vsububm): New.
8197         (vec_vsubuhm): New.
8198         (vec_vsubuwm): New.
8199         (vec_vsubfp): New.
8200         (vec_vsubcuw): New.
8201         (vec_vsububs): New.
8202         (vec_vsubsbs): New.
8203         (vec_vsubuhs): New.
8204         (vec_vsubshs): New.
8205         (vec_vsubuws): New.
8206         (vec_vsubsws): New.
8207         (vec_vsum4ubs): New.
8208         (vec_vsum4sbs): New.
8209         (vec_vsum4shs): New.
8210         (vec_vsum2sws): New.
8211         (vec_vsumsws): New.
8212         (vec_vrfiz): New.
8213         (vec_vupkhsb): New.
8214         (vec_vupkhpx): New.
8215         (vec_vupkhsh): New.
8216         (vec_vupklsb): New.
8217         (vec_vupklpx): New.
8218         (vec_vupklsh): New.
8219         (vec_vxor): New.
8220
8221 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
8222
8223         PR c/5430
8224         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8225         added literals from substracted literals.
8226         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8227         (fold) [associate]: Preserve MINUS_EXPR if needed.
8228
8229 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
8230
8231         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8232         are obsoleted.
8233
8234 2002-04-23  Tom Tromey  <tromey@redhat.com>
8235
8236         * gcc.c: Added --resource.  For PR java/6314.
8237
8238 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8239
8240         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8241         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8242         these libraries.
8243
8244 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8245
8246         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8247
8248 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8249
8250         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8251         workaround.
8252         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8253         (ix86_expand_clrstr): Fix typo.
8254         * loop.c (gen_load_of_final_value): New.
8255         (loop_givs_rescan, strength_reduce, check_dbra_loop):
8256         Use it.
8257
8258 2002-04-23  Roger Sayle  <roger@eyesopen.com>
8259
8260         * builtins.c (builtin_memset_gen_str): New function.
8261         (expand_builtin_memset): Optimize the case of constant length, but
8262         unknown value.
8263
8264 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
8265
8266         * config/rs6000/altivec.h (vec_step): Remove extraneous
8267         parentheses.
8268         (vec_ctu): Cast return.
8269
8270 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
8271
8272         PR target/6413
8273         * function.h: (struct function): Add profile_label_no field.
8274         (current_function_profile_label_no): Define.
8275         * function.c: (profile_label_no): New static var.
8276         (expand_function_start): Increment it, and copy to
8277         current_function_profile_label_no.
8278         * output.h (profile_label_no): Delete.
8279         * final.c (profile_label_no): Delete.
8280         (profile_function): Use current_function_profile_label_no.
8281         (final_end_function): Don't increment profile_label_no here.
8282         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8283         profile_label_no with current_function_profile_label_no.
8284         * config/pa/pa.c (current_function_number): Delete.
8285         (pa_output_function_prologue): Don't output profile label here.
8286         (hppa_profile_hook): Use label_no param rather than
8287         current_function_number.
8288         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8289         * config/pa/pa.h: .. here.
8290         (FUNCTION_PROFILER): Output profile label here.
8291
8292 2002-04-22  Eric Christopher  <echristo@redhat.com>
8293
8294         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8295         patch of 2002-04-09 due to binutils issues.
8296         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8297
8298 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8299
8300         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8301         constraint to 'o' for m=r and r=m alternatives.
8302         ("*movv8hi_internal1"): Same.
8303         ("*movv16qi_internal1"): Same.
8304         ("*movv4sf_internal1"): Same.
8305
8306 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
8307
8308         * rtl.h (RTX_FLAG): New macro.
8309         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8310         * final.c (alter_subreg): Use macro to access rtx flag.
8311         * integrate.c (copy_rtx_and_substitute): Use new access macro.
8312         * print-rtl.c (print_rtx): Use new access macro.
8313
8314         * cse.c (insert): Check rtx code before accessing flag.
8315
8316         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8317         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8318         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8319         convert_const_symbol_ref, make_canonical, make_alternative_compare,
8320         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8321         simplify_test_exp, optimize_attrs, simplify_by_exploding,
8322         find_and_mark_used_attributes, unmark_used_attributes,
8323         add_values_to_cover, simplify_with_current_value,
8324         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8325         copy_rtx_unchanging, main): Use new access macros.
8326
8327 2002-04-22  Tom Rix  <trix@redhat.com>
8328
8329         * expmed.c (init_expmed): Generate shifted constant once.
8330
8331 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
8332
8333         * c-lex.c (lex_charconst): Call convert to get constant in
8334         proper type; don't just smash the type field.
8335         Fixes PR c/6300.
8336
8337         * config.gcc: Add list of obsolete configurations.  Disallow
8338         building these without --enable-obsolete.
8339         * doc/install.texi: Document --enable-obsolete and obsoletion
8340         policy.  Mention obsoletion of individual targets in
8341         appropriate places.
8342
8343 2002-04-22  Richard Henderson  <rth@redhat.com>
8344
8345         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8346
8347 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
8348
8349         PR f/6138.
8350         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8351         (walk_fixup_memory_subreg): Likewise.
8352         (fixup_var_refs_insn): Adjust accordingly.
8353         (fixup_var_refs_1): Likewise.
8354
8355 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
8356
8357         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8358         LIBPATH_ARCH64_SPEC): Define.
8359         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8360         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8361         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8362         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8363
8364 2002-04-22      Joel Sherrill <joel@OARcorp.com>
8365
8366         * gthr-rtems.h: Correct prototypes to remove warnings.
8367
8368 2002-04-22  Richard Henderson  <rth@redhat.com>
8369
8370         PR c/6344
8371         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8372
8373         * gcse.c (free_insn_expr_list_list): New.
8374         (clear_modify_mem_tables): Use it.  Fix bit set usage.
8375         (canon_list_insert): Use EXPR_LISTs for expressions.
8376         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8377
8378 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8379
8380         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
8381         file change and include code to _cpp_pop_buffer.
8382         * cpphash.h (struct pending_option): Predeclare.
8383         (struct cpp_reader): New member next_include_file.
8384         (_cpp_pop_file_buffer): Update.
8385         (_cpp_push_next_buffer): Update, rename.
8386         * cppinit.c (cpp_destroy): Free include chain and pending here.
8387         (cpp_finish_options): Simplify.
8388         (_cpp_push_next_buffer): Rename and clean up.
8389         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8390         Clarify.
8391         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8392
8393 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8394
8395         * config/rs6000/altivec.h (vec_xor): Add variant for both args
8396         being vector signed int.
8397         (vec_andc): Same.
8398         (vec_xor): Add variant for both args being vector signed char.
8399         Remove redundant variant.
8400         (vec_andc): Same.
8401
8402 2002-04-21  David S. Miller  <davem@redhat.com>
8403
8404         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8405         compare mode in output RTL.
8406
8407 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
8408
8409         * config/rs6000/rs6000.c (rs6000_override_options): Correct
8410         style and formatting of previous patch.
8411
8412 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
8413
8414         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8415         flag_pic for ABI_AIX.
8416
8417 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8418
8419         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8420         * cppfiles.c (read_include_file): Similarly.
8421         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8422         uxstrdup ustrchr, ufputs): Similarly.
8423         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8424         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8425         cpp_ideq, parse_identifier, parse_number): Similarly.
8426         * cpplib.c (struct directive, dequote_string, D, run_directive,
8427         cpp_push_buffer): Similarly.
8428         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8429         _cpp_create_definition, check_trad_stringification,
8430         cpp_macro_definition): Similarly.
8431
8432 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8433
8434         * cppmacro.c (funlike_invocation_p): Don't step back
8435         over CPP_EOF.
8436
8437 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
8438
8439         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8440         labelno.
8441
8442 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
8443
8444         * doc/invoke.texi: Remove Chill references.
8445         * doc/gcc.texi: Update last modified date.
8446
8447 2002-04-20  Kazu Hirata  <kazu@hxi.com>
8448
8449         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8450         push and pop.  Replace add.l with add.w.
8451
8452 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8453
8454         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8455         multiply instructions for H8/300H case.
8456
8457 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8458
8459         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8460         Bum three instructions from each routine.
8461
8462 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8463
8464         * Makefile.in: Update.
8465         * decl.c (push_c_function_context, pop_c_function_context,
8466         mark_c_function_context): Rename for consistency.
8467         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8468         * c-tree.h (push_c_function_context, pop_c_function_context,
8469         mark_c_function_context): Rename for consistency.
8470         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8471         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8472         * function.c (init_lang_status, save_lang_status,
8473         restore_lang_status, mark_lang_status, free_lang_status):
8474         Move to langhooks.h.
8475         (push_function_context_to, pop_function_context_from,
8476         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8477         Update.
8478         * function.h (init_lang_status, save_lang_status,
8479         restore_lang_status, mark_lang_status, free_lang_status):
8480         Move to langhooks.h.
8481         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8482         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8483         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8484         LANG_HOOKS_FUNCTION_INITIALIZER): New.
8485         (LANG_HOOKS_INITIALIZER): Update.
8486         (lhd_do_nothing_f): New.
8487         * langhooks.h (struct lang_hooks_for_functions): New.
8488         (struct lang_hooks): New hooks.
8489         * langhooks.c (lhd_do_nothing_f): New.
8490 objc:
8491         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8492         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8493
8494 2002-04-19  David S. Miller  <davem@redhat.com>
8495
8496         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8497         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8498
8499 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8500
8501         PR optimization/3756
8502         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8503         x = ((int) y < 0) ? cst1 : cst2.
8504
8505 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8506
8507         PR c/6358
8508         * function.c: Reapply patch for c/6358.
8509         (expand_function_end): Copy decl_rtl's mode, not
8510         current_function_return_rtx mode.
8511
8512 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
8513
8514         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8515         targets.
8516
8517 2002-04-19  Tom Tromey  <tromey@redhat.com>
8518
8519         * doc/install.texi (Specific): Update status of Solaris 2.8.
8520         For PR libgcj/6158.
8521
8522 2002-04-19  Andreas Schwab  <schwab@suse.de>
8523
8524         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8525         (PUT_REAL): Restore old definition.
8526
8527 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
8528             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8529
8530         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8531         binutils 2.11.2 and higher generate smaller binaries than Sun's
8532         native tools.
8533
8534 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
8535
8536         PR c++/6352
8537         * toplev.c (rest_of_compilation): Do not defer functions for which
8538         TREE_SYMBOL_REFERENCED has already been set.
8539
8540 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
8541
8542         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8543         alternative.
8544
8545 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8546
8547         * builtins.c: Include langhooks.h.
8548         (lang_type_promotes_to): Remove.
8549         (expand_builtin_va_arg): Use new hook.
8550         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8551         (simple_type_promotes_to): Move to c-typeck.c.
8552         * c-common.h (simple_type_promotes_to): Remove.
8553         * c-decl.c (duplicate_decls, grokdeclarator): Update.
8554         * c-format.c: Include langhooks.h.
8555         (check_format_types): Update.
8556         * c-tree.h (c_type_promotes_to): New.
8557         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8558         (type_lists_compatible_p): Update.
8559         * langhooks-def.h (lhd_type_promotes_to): New.
8560         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8561         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8562         * langhooks.c (lhd_type_promotes_to): New.
8563         * langhooks.h (struct lang_hooks_for_types): New hook.
8564         * tree.h (lang_type_promotes_to): Remove.
8565 objc:
8566         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8567
8568 2002-04-18  Richard Henderson  <rth@redhat.com>
8569
8570         * function.c: Revert patch for c/6358.
8571
8572 2002-04-18  Richard Henderson  <rth@redhat.com>
8573
8574         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8575         blocks.  Handle multiple references to the TRAP block.  Handle
8576         non-adjacent THEN and OTHER blocks.
8577
8578 2002-04-18  Richard Henderson  <rth@redhat.com>
8579
8580         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8581         crash with no type for by-mode libcalls.
8582
8583         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8584
8585 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
8586
8587         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8588         __xtensa_nonlocal_goto): Use a syscall instructions to flush
8589         the register windows.
8590
8591 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8592
8593         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8594         appropriate.  Document need for extended precision even when
8595         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
8596         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
8597         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
8598         instead of relying on later syntax error when REAL_WIDTH > 5.
8599         * real.c: Define NE based only on whether or not we have a
8600         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8601         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
8602         define GET_REAL and PUT_REAL as simple memcpy operations; no
8603         need to byteswap or round.
8604         Use #error instead of #ifdef-ing out the entire file, for
8605         prompt error detection.
8606
8607         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8608
8609 2002-04-18  David S. Miller  <davem@redhat.com>
8610
8611         * config/sparc/sparc.h (BRANCH_COST): Define.
8612
8613         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8614         does it.
8615
8616 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
8617
8618         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8619         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8620         propagate_block calls after relaxation loop using new variable
8621         stabilized_prop_flags.
8622
8623 2002-04-18  Richard Henderson  <rth@redhat.com>
8624
8625         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8626         (ia64_va_arg): Expect variable sized types by reference.
8627         * config/ia64/ia64-protos.h: Update.
8628         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8629         ia64_function_arg_pass_by_reference.
8630
8631 2002-04-18  Richard Henderson  <rth@redhat.com>
8632
8633         * ifcvt.c: Include except.h.
8634         (block_has_only_trap): Break out from find_cond_trap.
8635         (find_cond_trap): Use it.  Always delete the trap block.
8636         (merge_if_block): Allow then block null.  Be less simplistic about
8637         what insns can end a block.
8638         * Makefile.in (ifcvt.o): Depend on except.h.
8639
8640         * config/ia64/ia64.md (trap, conditional_trap): New.
8641
8642 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8643
8644         PR c/6358
8645         * function.c (assign_parms): Assign hard current_function_return_rtx
8646         register here...
8647         (expand_function_end): ...not here.
8648
8649 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8650
8651         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8652         * c-tree.h (c_incomplete_type_error): New.
8653         * c-typeck.c (require_complete_type, build_component_ref): Update.
8654         (incomplete_type_error): Rename.
8655         * langhooks-def.h (lhd_incomplete_type_error): New.
8656         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8657         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8658         * langhooks.c (lhd_incomplete_type_error): New.
8659         * langhooks.h (struct lang_hooks_for_types): New hook.
8660         * tree.c (size_in_bytes): Use new hook.
8661         * tree.h (incomplete_type_error): Remove.
8662 objc:
8663         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8664
8665 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8666
8667         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8668         TARGET_FLOAT_FORMAT blocks.
8669
8670 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8671
8672         * doc/install.texi (Downloading the source): Do not mention Chill
8673         any longer, but mention Ada.
8674         (Configuration): Do not mention Chill any longer.
8675
8676 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
8677
8678         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8679
8680 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
8681
8682         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8683         in last patch.
8684
8685 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8686
8687         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8688         instead of unsigned_type.
8689
8690 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
8691
8692         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8693         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8694         later.
8695
8696 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
8697
8698         * attribs.c (vector_type_node_list): New static variable.
8699         (handle_vector_size_attribute): Use it to avoid generating a
8700         new type node each time we are called.
8701
8702         * combine.c (subst): Avoid trying to make a vector mode subreg of
8703         an integer constant.
8704         (gen_lowpart_for_combine): Likewise.
8705
8706 2002-04-18  Roger Sayle  <roger@eyesopen.com>
8707             Jakub Jelinek  <jakub@redhat.com>
8708
8709         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8710         for integer constant c (if x has unsigned type or sign bit is not
8711         set in c).  This folds the zero/sign extension into the bit-wise and
8712         operation.
8713
8714 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8715
8716         PR middle-end/6205
8717         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8718         otherwise xorps.
8719
8720 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
8721
8722         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8723
8724 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
8725
8726         * gcc.c (read_specs): Detect and fail if an attempt is made to
8727         rename a spec string to an already existing string.
8728
8729 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8730
8731         * config/s390/s390.c (legitimize_pic_address): Do not generate
8732         illegal address constant without CONST.
8733
8734 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8735
8736         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8737         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8738
8739 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8740
8741         PR optimization/6305
8742         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8743         to make sure previous reloads are taken into account.  Generate
8744         better code if one operand is an in-range immediate constant.
8745
8746 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
8747
8748         * doc/install.texi (Building): libgcj requires GNU make.
8749
8750 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
8751
8752         PR bootstrap/6315
8753         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8754         even if hard quad and register is not floating.
8755         (movtf reg<-mem split): Disallow splitting if hard quad and
8756         register is floating.
8757         (movtf mem<-reg split): Likewise.
8758         * config/sparc/sparc.c (fp_register_operand): New predicate.
8759         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8760
8761 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
8762
8763         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8764         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8765         (unprotoize.o): Ditto.  Build from protoize.c.  Define
8766         UNPROTOIZE on command line.
8767         * protoize.c: Include cppdefault.h.  Delete include_defaults.
8768         (in_system_include_dir): Use cpp_include_defaults (defined in
8769         cppdefault.o).
8770         * unprotoize.c: Delete file.
8771
8772 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
8773
8774         * config/rs6000/altivec.h (vec_ld): Add array variants.
8775         (vec_lde): Same.
8776         (vec_ldl): Same.
8777
8778 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
8779             Aldy Hernandez <aldyh@redhat.com>
8780
8781         * config/rs6000/altivec.h: Define __ALTIVEC__.
8782         (bool): New.
8783         (__pixel): New.
8784         (pixel): New.
8785         (vec_cfux): New.
8786         (vec_vmaddfp): New.
8787         (vec_vsldoi): New.
8788         Add parentheses to all macro arguments.
8789
8790 2002-04-16  Richard Henderson  <rth@redhat.com>
8791
8792         PR c++/6320
8793         * except.c (remove_eh_handler): Insert inner regions at beginning
8794         of sibling chain.  Refactor expressions.
8795
8796 2002-04-16  Richard Henderson  <rth@redhat.com>
8797
8798         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8799         * config/sparc/sol2-gas-bi.h: New file.
8800         * config.gcc (sparc*-solaris): Add it as needed.
8801         * configure.in (AS_SPARC64_FLAG): Remove check.
8802         * config.in, configure: Regenerate.
8803
8804         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8805
8806 2002-04-16  Richard Henderson  <rth@redhat.com>
8807
8808         * config/mips/mips.c (override_options): Don't override N32 for
8809         a 64-bit ISA.
8810
8811         PR 6202
8812         * config/mips/mips.md (can_delay): Split out of existing define_delays.
8813         (HILO_delay): Set can_delay false.
8814
8815 2002-04-16  Dale Johannesen <dalej@apple.com>
8816
8817         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8818         instruction addresses.
8819         (rs6000_output_function_epilogue): Likewise.
8820
8821 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
8822
8823         * c-parse.in (poplevel, compstmt_start,
8824         compstmt_primary_start): Add ending ';', in accordance
8825         with POSIX.
8826
8827 2002-04-16  Richard Henderson  <rth@redhat.com>
8828
8829         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8830         Adjust tm_file order to get TARGET_DEFAULT set properly.
8831         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8832         * doc/install.texi (sparc-solaris): Update.
8833
8834 2002-04-16  Dale Johannesen <dalej@apple.com>
8835
8836         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8837         comparison operands do not match each other or if modes of
8838         conditions do not match result.
8839
8840 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
8841
8842         PR target/6305
8843         * config/s390/s390.md (mulsidi3): Set both subregs of the
8844         multiword register.
8845
8846 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
8847
8848         * config/rs6000/altivec.h (vec_addc): Type check.
8849
8850 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8851
8852         PR middle-end/6279
8853         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8854
8855         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8856
8857 2002-04-15  Richard Henderson  <rth@redhat.com>
8858
8859         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8860         call_really_used_regs too.
8861
8862 2002-04-15  Richard Henderson  <rth@redhat.com>
8863
8864         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8865
8866 2002-04-15  David S. Miller  <davem@redhat.com>
8867
8868         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8869         as being CLOBBERed.
8870
8871 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8872
8873         PR c/6290
8874         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8875         CONST_VECTOR is { 0, ... 0 }.
8876
8877 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
8878
8879         * doc/install.texi (Installing GCC: Configuration): Clarify
8880         the only supported ways to configure gcc.
8881
8882 2002-04-15  Roland McGrath  <roland@frob.com>
8883
8884         * config.gcc (alpha*-*-gnu*): New target configuration.
8885         * config/alpha/gnu.h: New file for it.
8886         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8887
8888 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
8889
8890         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8891         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8892         * tree.h (expand_start_stmt_expr): Update prototype.
8893         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8894         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8895         on the STMT_EXPR created for the inline function.
8896
8897 2002-04-15  Richard Henderson  <rth@redhat.com>
8898
8899         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8900         config/i386/linux-aout.h, config/i386/linux-oldld.h,
8901         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8902         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8903         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8904         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8905         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8906         Define __gnu_linux__, not gnu_linux.
8907         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8908
8909 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
8910
8911         Remove Chill front end.
8912         * gcc.c (default_compilers): Remove Chill entries.
8913         * ch: Remove directory.
8914         * doc/frontends.texi: Remove information about Chill.
8915         * doc/sourcebuild.texi: Likewise.
8916         * doc/standards.texi: Likewise.
8917
8918 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
8919
8920         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8921         (LONGLONG_STANDALONE): Define.
8922
8923 2002-04-15  David S. Miller  <davem@redhat.com>
8924
8925         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8926         Call emit_library_call with LCT_NORMAL.
8927         (sparc_initialize_trampoline): Use LCT_foo instead of
8928         magic constant in emit_library_call invocations.
8929         (sparc64_initialize_trampoline): Likewise.
8930         (sparc_profile_hook): Likewise.
8931         * config/sparc/sparc.md: Likewise.
8932
8933         * config/sparc/sparc.c (sparc_extra_constraint_check):
8934         Fix type of argument 'c'.
8935         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8936         Likewise.
8937
8938 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
8939
8940         * diagnostic.h (output_buffer_state): Redefine.
8941         (output_format_decoder): New macro.
8942         (output_prefixing_rule): Likewise.
8943         (output_line_cutoff): Likewise.
8944         (diagnostic_format_decoder): Adjust.
8945         (diagnostic_prefixing_rule): Likewise.
8946         (diagnostic_line_cutoff): Likewise.
8947         (diagnostic_state): Likewise.
8948         (diagnostic_kind_count): Likewise.
8949         (diagnostic_buffer): Now a macro.
8950
8951         * diagnostic.c (diagnostic_buffer): Remove definition.
8952         (output_is_line_wrapping): Adjust.
8953         (set_real_maximum_length): Likewise.
8954         (output_set_maximum_length): Likewise.
8955         (init_output_buffer): Likewise.
8956         (lhd_print_error_function): Likewise.
8957         (output_do_verbatim): Likewise.
8958
8959 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8960
8961         * cpperror.c (print_location): Don't print include chain
8962         if line == 0.
8963         (cpp_begin_message): Update to use DL_ macros.
8964         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8965         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8966         cpp_notice, cpp_notice_from_errno): Remove.
8967         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8968         level.
8969         (cpp_errno): New.
8970         * cppexp.c (CPP_ICE): Remove.
8971         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8972         lex, integer_overflow, _cpp_parse_expr): Update.
8973         * cppfiles.c (read_include_file, find_include_file,
8974         handle_missing_header, _cpp_read_file, remap_filename): Update.
8975         * cpphash.h (enum error_type): Remove.
8976         (_cpp_begin_message): Update.
8977         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8978         cpp_handle_option, cpp_post_options): Update.
8979         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8980         skip_whitespace, parse_identifier, parse_slow, parse_string,
8981         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8982         cpp_interpret_charconst): Update.
8983         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8984         lex_macro_node, do_undef, glue_header_name, parse_include,
8985         do_include_common, read_flag, do_line, do_linemarker, do_ident,
8986         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8987         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8988         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8989         _cpp_pop_buffer, do_diagnostic): Update.
8990         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8991         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8992         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8993         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8994         cpp_notice, cpp_notice_from_errno): Remove.
8995         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8996         level.
8997         (cpp_errno): New.
8998         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8999         collect_args, enter_macro_context, save_parameter, parse_params,
9000         _cpp_create_definition, check_trad_stringification,
9001         cpp_macro_definition): Update.
9002         * cppmain.c (cpp_preprocess_file): Update.
9003         * fix-header.c (read_scan_file): Update.
9004
9005 2002-04-14  Andreas Schwab  <schwab@suse.de>
9006
9007         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9008
9009 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9010
9011         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9012
9013 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9014
9015         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9016         not gnu_hurd.
9017
9018 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
9019
9020         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9021
9022 2002-04-13      Joel Sherrill <joel@OARcorp.com>
9023
9024         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
9025         sparc-elf and sparc-rtems targets.
9026
9027 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9028
9029         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9030         defined, and __gnu_hurd__ wherever __GNU__ is defined.
9031         * arm/linux-elf.h: Likewise.
9032         * cris/aout.h: Likewise.
9033         * cris/linux.h: Likewise.
9034         * i370/linux.h: Likewise.
9035         * i386/gnu.h: Likewise.
9036         * i386/linux-aout.h: Likewise.
9037         * i386/linux-oldld.h: Likewise.
9038         * i386/linux.h: Likewise.
9039         * i386/linux64.h: Likewise.
9040         * ia64/linux.h: Likewise.
9041         * m68k/linux-aout.h: Likewise.
9042         * m68k/linux.h: Likewise.
9043         * mips/linux.h: Likewise.
9044         * pa/pa-linux.h: Likewise.
9045         * pj/linux.h: Likewise.
9046         * rs6000/sysv4.h: Likewise.
9047         * s390/linux.h: Likewise.
9048         * sh/linux.h: Likewise.
9049         * sparc/linux-aout.h: Likewise.
9050         * sparc/linux.h: Likewise.
9051         * sparc/linux64.h: Likewise.
9052         * xtensa/linux.h: Likewise.
9053
9054 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
9055
9056         * stmt.c (check_unique_operand_names): Expect operand names to
9057         be strings rather than identifiers.  Use simple_cst_equal to
9058         compare them.
9059         (resolve_operand_name_1): Make same identifier to string change here.
9060         * c-parse.in (asm_operand): Convert a named operand into a string.
9061         * cp/parse.y (asm_operand): Likewise.
9062
9063 2002-04-13  Andreas Schwab  <schwab@suse.de>
9064
9065         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9066
9067 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
9068
9069         Revert these changes:
9070
9071         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9072
9073         PR c++/5571
9074         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9075
9076 2002-04-12  Richard Henderson  <rth@redhat.com>
9077
9078         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9079         (sparc*-*-solaris): Clean up header files.
9080         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9081         and plan on generating 64-bit code.
9082         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9083         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9084         * config/sparc/sol2-sld-64.h: Rename ...
9085         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
9086         for AS_SPARC64_FLAG not defined.
9087         * config/sparc/sol2-gld-bi.h: New.
9088         * config/sparc/sol2-sld.h: Remove.
9089         * config/sparc/sol26-sld.h: New.
9090         * config/sparc/sol2.h: Tidy comments.
9091         * doc/install.texi: Document sparc-solaris configury changes.
9092
9093 2002-04-12  Richard Henderson  <rth@redhat.com>
9094
9095         * recog.c (offsettable_address_p): Match the logic in adjust_address.
9096
9097         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9098         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
9099
9100 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9101
9102         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9103
9104 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
9105
9106         * pa.c (pa_can_combine_p): Call extract_insn before calling
9107         constrain_operands.
9108
9109 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
9110
9111         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9112         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9113         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9114         (CPP_PREDEFINES): Handle __declspec.
9115         * config/i386/t-interix (USER_H): Remove.
9116
9117 2002-04-12  DJ Delorie  <dj@redhat.com>
9118
9119         * integrate.c (compare_blocks): Make comparisons safe for when
9120         sizeof(int) < sizeof(char *).
9121         (find_block): Likewise.
9122
9123 2002-04-12  Jan Hubicka  <jh@suse.cz>
9124             David Edelsohn  <edelsohn@gnu.org>
9125
9126         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9127         registers.
9128         (symbol_ref_operand): New.
9129         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9130         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9131
9132 2002-04-12  Andreas Schwab  <schwab@suse.de>
9133
9134         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9135         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9136         overrides the definition in config/svr4.h.
9137
9138 2002-04-12      Eric Norum <eric.norum@usask.ca>
9139
9140         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9141         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9142         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9143         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9144         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9145         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9146         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9147         definitions to config/rtems.h and make the targets more similar.
9148
9149 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9150
9151         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9152         POINTERS_EXTEND_UNSIGNED.
9153         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9154         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9155
9156         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9157         not specified.
9158
9159 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
9160
9161         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9162         depends on TARGET_SHMEDIA, not TARGET_SH5.
9163
9164 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
9165
9166         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9167         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9168
9169 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
9170
9171         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9172         no r0 clobber.
9173
9174 2002-04-12  Andreas Schwab  <schwab@suse.de>
9175
9176         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9177
9178 2002-04-12  Richard Henderson  <rth@redhat.com>
9179
9180         PR bootstrap/4191
9181         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9182
9183         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9184         modes spanning multiple hard regs.
9185
9186         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9187
9188 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9189
9190         * pa.c (pa_output_function_prologue): Don't accumulate the total
9191         number of code bytes when using TARGET_64BIT, or gas, SOM and not
9192         the portable runtime.
9193         (output_deferred_plabels): Handle 64bit plabels.
9194         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9195         generating pic code using the GAS assembler for object formats that
9196         are not SOM (ie., ELF32 and ELF64).
9197         (output_millicode_call): Check attribute type if attribute length is 28.
9198         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
9199         dbr_sequence_length once.
9200         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9201         dbr_sequence_length once.
9202         * pa.h (TARGET_SOM): Define if not defined.
9203         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9204         with GAS and not SOM.
9205         (jump, call_internal_reg, call_value_internal_reg): Likewise.
9206         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
9207
9208 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9209
9210         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9211         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9212         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9213         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9214         elfos.h and dbxelf.h values are fine now.
9215         * config/i386/freebsd.h, config/alpha/freebsd.h
9216         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9217
9218 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9219
9220         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9221         or set Acpu or Amachine.  Reformat.
9222         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9223         define.
9224         (LINK_SPEC): Do not need to undef.
9225         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9226         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9227         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9228         define.
9229         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9230         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9231         (LINK_SPEC): Do not need to undef.
9232         (DONT_USE_BUILTIN_SETJMP): Do not define.
9233         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9234         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
9235         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9236         Remove trailing spaces.
9237         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9238         __ELF__, or set Acpu or Amachine.  Reformat.
9239         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9240         define.
9241
9242 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9243
9244         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9245         all other *-*-freebsd* targets.
9246
9247 2002-04-11  Richard Henderson  <rth@redhat.com>
9248
9249         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9250
9251 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9252
9253         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9254         Include {cpu}/{cpu}.h thru tm_file.
9255         (alpha*-*-linux*ecoff): Remove target.
9256         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9257         (LINK_SPEC): Remove, is not OS independent.
9258         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9259         (LINK_SPEC): Do not need to #undef any longer.
9260         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9261         any longer.
9262         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9263         __ELF__.
9264         (LINK_SPEC): Moved here from alpha/elf.h.
9265         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9266         SUB_CPP_PREDEFINES.
9267         * config/alpha/linux-ecoff.h: Remove.
9268         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9269         (CPP_SPEC): Define _POSIX_SOURCE as needed.
9270         (CPP_SUBTARGET_SPEC): Do not define.
9271         (LINK_SPEC): Do not need to #undef any longer.
9272         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9273         * config/alpha/vms.h: Likewise.
9274
9275 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
9276
9277         * doc/extend.texi: Remove old claim that typedefs cannot have
9278         an alignment attribute.
9279
9280 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9281
9282         PR optimization/6177
9283         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9284         bitpos is 0 and bitsize CONCAT size.
9285
9286 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9287
9288         PR c/6223
9289         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9290
9291 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
9292
9293         * config/alpha/freebsd.h: Minor reformatting.
9294         (CPP_SPEC): Define ELF and add cpp_subtarget.
9295         (ASM_SPEC): No longer needed.
9296
9297 2002-04-11  Richard Henderson  <rth@redhat.com>
9298
9299         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9300         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
9301         (dimode mem/zero splitter): New.
9302
9303 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
9304
9305         * config/cris/cris.c (cris_override_options): Tweak error message
9306         for PIC not implemented.
9307
9308         * config/cris/cris.h: Tweak comments related to parameter-passing.
9309
9310         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9311
9312 2002-04-10  Richard Henderson  <rth@redhat.com>
9313
9314         * except.c (add_ehl_entry): Allow duplicates after landing pad
9315         creation.
9316
9317 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
9318
9319         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9320
9321 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
9322
9323         * c-decl.c (c_init_decl_processing): Move generation of
9324         decls for g77_integer_type_node and friends from here ...
9325         * c-common.c (c_common_nodes_and_builtins): ... to here.
9326
9327 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
9328
9329         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9330         is only used as frame pointer when frame_pointer_needed is true.
9331
9332 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
9333
9334         PR target/817
9335         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9336         for the fact that the pool entry uses two words.
9337         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
9338         1k bytes.
9339         (movdf_soft_insn): Similarly.
9340         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9341         for the fact that the pool entry uses three words.
9342
9343 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
9344
9345         * config/mips/mips.c (mips_va_arg): When using the struct version
9346         of the EABI va_list, allow arguments in the register save area to
9347         take up less room than a stack argument.
9348
9349 2002-04-10  Richard Henderson  <rth@redhat.com>
9350
9351         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9352         if EXPAND_INITIALIZER.
9353
9354 2002-04-09  Richard Henderson  <rth@redhat.com>
9355
9356         * config/alpha/alpha.md (movdi_er_maybe_g): New.
9357         * config/alpha/alpha.c (alpha_expand_mov): Use it.
9358
9359 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
9360
9361         PR optimization/6233
9362         * rtlanal.c (pure_call_p): New function.
9363         * rtl.h (pure_call_p): Declare.
9364         * loop.c (prescan_loop): Use it to set has_nonconst_call.
9365         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9366
9367 2002-04-09  Eric Christopher  <echristo@redhat.com>
9368
9369         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9370         information to .comm directive.
9371
9372 2002-04-09  Richard Henderson  <rth@redhat.com>
9373
9374         PR c/5078
9375         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9376
9377 2002-04-09  Richard Henderson  <rth@redhat.com>
9378
9379         * basic-block.h (flow_delete_block_noexpunge): Declare.
9380         (expunge_block_nocompact): Declare.
9381         * cfg.c (expunge_block_nocompact): Split out from ...
9382         (expunge_block): ... here.
9383         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9384         (flow_delete_block_noexpunge): Split out from ...
9385         (flow_delete_block): ... here.
9386         * cfgcleanup.c (delete_unreachable_blocks): Compact while
9387         removing dead blocks.
9388         * except.c (exception_handler_labels): Remove.
9389         (exception_handler_label_map): New.
9390         (struct eh_region): Add aka member.
9391         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9392         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9393         (for_each_eh_label, for_each_eh_label_1): New.
9394         (init_eh): Register exception_handler_label_map.
9395         (free_eh_status): Use free_region.
9396         (find_exception_handler_labels): Use the map, not the list.
9397         (remove_exception_handler_label): Likewise.
9398         (maybe_remove_eh_handler): Likewise.
9399         (remove_eh_handler): Use the region aka bitmap.
9400         * except.h (exception_handler_labels): Remove.
9401         (for_each_eh_label): Declare.
9402         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9403         * loop.c (invalidate_loops_containing_label): New.
9404         (find_and_verify_loops): Use it.  Use for_each_eh_label.
9405         * sched-rgn.c (is_cfg_nonregular): Use
9406         current_function_has_exception_handlers.
9407
9408 2002-04-09  Richard Henderson  <rth@redhat.com>
9409
9410         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9411         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9412         Do not return changed status.
9413         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9414         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9415         New functions that do return changed status.
9416         * sbitmap.h: Update decls.
9417         * gcse.c, lcm.c: Use _cg functions as needed.
9418
9419 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
9420
9421         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9422         (sh64-*-elf*, sh-*-rtemself*): Likewise.
9423         * config/sh/embed_bb.c: New file.
9424         * config/sh/embed-elf.h: New file.
9425         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9426         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
9427         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9428         __PTRDIFF_TYPE__ .
9429         (SUBTARGET_CPP_PTR_SPEC): Don't define.
9430         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9431         Add subtarget_asm_endian_spec.
9432         (ASM_SPEC): Use subtarget_asm_endian_spec.
9433         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9434         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9435         (WCHAR_UNSIGNED): Define.
9436         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9437         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9438         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9439         Fix value.
9440         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9441         (sh_adjust_cost): Likewise.
9442         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9443         __PTRDIFF_TYPE__ .
9444         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9445         (WCHAR_TYPE_SIZE): Likewise.
9446         (ASM_SPEC): Use subtarget_asm_endian_spec.
9447         (SH_ELF_WCHAR_TYPE): #undef/ #define.
9448         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9449         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9450         (MAX_WCHAR_TYPE_SIZE): Don't #define .
9451         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9452         (USER_LABEL_PREFIX): Don't #undef /#define .
9453         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9454         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9455         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9456         (ASM_SPEC): Likewise.
9457         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9458         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9459         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9460         (LIB2FUNCS_EXTRA): Define.
9461         * t-sh64 (LIB2FUNCS_EXTRA): Define.
9462         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9463         (LIB1ASMFUNCS_CACHE): Define.
9464         (LIB2FUNCS_EXTRA): Redefine empty.
9465
9466 2002-04-08  Richard Henderson  <rth@redhat.com>
9467
9468         * reorg.c (get_branch_condition): Use reversed_comparison_code.
9469
9470 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9471
9472         * config/m68hc11/larith.asm (__map_data_section): Fix condition
9473         and optimize for size.
9474         (__do_global_ctors): Fix pointer comparison.
9475         (__do_global_dtors): Likewise.
9476
9477 2002-04-09  David S. Miller  <davem@redhat.com>
9478
9479         * config/sparc/sparc.c (sparc_extra_constraint_check): New
9480         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
9481         allow reloading pseudos.
9482         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9483         * config/sparc/sparc-protos.h: Declare it.
9484
9485         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9486         unsigned comparison warning.
9487         (output_restore_regs): Mark leaf_function as unused.
9488
9489 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9490
9491         * expr.c (is_aligning_offset): New function.
9492         (expand_expr, case COMPONENT_EXPR): Call it.
9493
9494 2002-04-08  David S. Miller  <davem@redhat.com>
9495
9496         PR target/6082
9497         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9498
9499         Make init_priority work on Sparc when using GNU ld.
9500         * config/sparc/linux.h, config/sparc/linux64.h,
9501         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9502         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9503         * config/sparc/sol2-gld.h: New file to do the same.
9504         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9505         sparc/sol2-gld.h to tm_file.
9506
9507         PR optimization/4328
9508         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9509         * doc/md.texi: Document it.
9510         * config/sparc/sparc.md (movdi_insn_sp64_novis,
9511         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9512         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9513         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9514         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9515
9516 2002-04-08  Andreas Jaeger  <aj@suse.de>
9517
9518         * stmt.c (expand_asm_operands): Revert last patch from Richard
9519         Henderson.
9520
9521 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9522
9523         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9524         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
9525
9526 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9527
9528         * doc/contrib.texi (Contributors): Add David O'Brien.
9529
9530 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
9531
9532         * configure.in (auto-build.h): Use target_alias and build_alias
9533         when running configure.
9534         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9535         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9536         * configure: Regenerate.
9537
9538 2002-04-07  David S. Miller  <davem@redhat.com>
9539
9540         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9541
9542 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9543
9544         PR 5933
9545         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9546         generating 32-bit pic code.
9547
9548 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
9549
9550         * cppinit.c (cpp_create_reader): Initialize
9551         discard_comments_in_macro_exp.
9552         (COMMAND_LINE_OPTIONS): Add "-CC" option.
9553         (cpp_handle_option): Handle "-CC" option.
9554         * cpplex.c (save_comment): If saving a C++ comment in
9555         a directive, convert it to a C comment.
9556         (_cpp_lex_direct): Pass second comment start character to
9557         save_comment to indicate comment type.
9558         * cpplib.c (_cpp_handle_directive): If processing
9559         a "#define" directive and discard_comments_in_macro_exp
9560         is false,  re-enable saving of comments.
9561         (lex_macro_node): If discard_comments_in_macro_exp is false,
9562         discard any comments before the macro identifier.
9563         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9564         member.
9565         * cppmacro.c (cpp_get_token): If expanding a macro while
9566         processing a directive, discard any comments we might encounter.
9567         (parse_params): If discard_comments_in_macro_exp is false,
9568         ignore comments in the macro parameter list.
9569         * gcc.c (cpp_unique_options): Add "-CC" option.
9570         (option_map): Map "--comments-in-macros" to "-CC".
9571         * doc/cppopts.texi: Document "-CC" option.
9572         * f/lang-specs.h: Add "-CC" option.
9573         * testsuite/gcc.dg/cpp/maccom1.c: New test.
9574         * testsuite/gcc.dg/cpp/maccom2.c: New test.
9575         * testsuite/gcc.dg/cpp/maccom3.c: New test.
9576         * testsuite/gcc.dg/cpp/maccom4.c: New test.
9577         * testsuite/gcc.dg/cpp/maccom5.c: New test.
9578         * testsuite/gcc.dg/cpp/maccom6.c: New test.
9579
9580 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9581
9582         PR middle-end/6180
9583         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9584
9585 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9586
9587         PR c++/5571
9588         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9589
9590         PR opt/5120
9591         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9592         RTX_UNCHANGING_P for the functions arguments when a tail call
9593         is made.
9594
9595 2002-04-06  Jason Merrill  <jason@redhat.com>
9596
9597         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9598         (parse_options_and_default_flags): Set them appropriately.
9599         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9600
9601 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
9602
9603         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9604         here.
9605
9606         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9607         semicolon.
9608
9609         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9610         types come in by-reference.  Fix typo in comment.
9611
9612 2002-04-05  David S. Miller  <davem@redhat.com>
9613
9614         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9615         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9616         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9617         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9618
9619 2002-04-05  David S. Miller  <davem@redhat.com>
9620
9621         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9622         are not going to emit return instructions, emit at least a nop
9623         for the sake of sane backtraces.
9624
9625 2002-04-05  Richard Henderson  <rth@redhat.com>
9626
9627         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9628
9629 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
9630
9631         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9632
9633 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
9634
9635         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9636         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9637         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9638
9639 2002-04-05  Andreas Schwab  <schwab@suse.de>
9640
9641         * c-convert.c: Include c-common.h.
9642         * Makefile.in (c-convert.o): Updated.
9643
9644 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * mklibgcc.in: Use separate libgcc.map for each multilib.
9647         * Makefile.in (distclean): Don't remove libgcc.map here.
9648
9649 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9650
9651         * Makefile.in (s-mlib): Handle --disable-multilib by separate
9652         genmultilib invocation.
9653
9654 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
9655
9656         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9657         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
9658         to num_gprs for symmetry.
9659         * config/mips/mips.c: Adjust accordingly.
9660
9661 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9662
9663         * c-common.c (truthvalue_conversion): Rename, update.
9664         * c-common.h (c_common_truthvalue_conversion): New.
9665         * c-convert.c (convert): Update.
9666         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9667         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9668         * c-typeck.c (build_binary_op, build_unary_op,
9669         build_conditional_expr): Update.
9670         * fold-const.c (constant_boolean_node, fold): Use langhook.
9671         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9672         * langhooks.h (struct lang_hooks): New hook.
9673         * stmt.c (expand_decl_cleanup): Use langhook.
9674         * tree.h (truthvalue_conversion): Remove.
9675 objc:
9676         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9677
9678 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
9679
9680         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9681         Add rules to make null object file.
9682
9683 2002-04-04  Jim Blandy  <jimb@redhat.com>
9684
9685         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9686         macro formal parameter names.
9687
9688 2002-04-04  David S. Miller  <davem@redhat.com>
9689
9690         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9691
9692 2002-04-04  Richard Henderson  <rth@redhat.com>
9693
9694         PR middle-end/5099
9695         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9696         Support copies into and out of memory.  Don't accept allows_reg
9697         and allows_mem as gospel.
9698
9699 2002-04-04  Richard Henderson  <rth@redhat.com>
9700
9701         PR opt/6165
9702         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9703         (write_dependence_p): Likewise.
9704
9705 2002-04-04  Richard Henderson  <rth@redhat.com>
9706
9707         * predict.c (estimate_bb_frequencies): Do frequency calculation
9708         with a volatile temporary.
9709
9710 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
9711
9712         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9713
9714 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9715
9716         PR c++/6119
9717         * final.c (final_start_function): Don't bump profile_label_no here...
9718         (final_end_function): ...but here.
9719
9720 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9721
9722         * config/sparc/sparc.md (pic): New attribute.
9723         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9724         into stack slots.
9725         (split after do_builtin_setjmp_setup): New.
9726
9727 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9728
9729         PR fortran/6106
9730         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9731         change.
9732
9733 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9734
9735         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9736         UNITS_PER_WORD for zero sized aggregates.
9737
9738 2002-04-03  David S. Miller  <davem@redhat.com>
9739
9740         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9741         one-character spec for this, just use %(link_gcc_c_sequence).
9742
9743 2002-04-03  David S. Miller  <davem@redhat.com>
9744
9745         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9746         handling.
9747
9748 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9749
9750         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9751         (DWARF_FRAME_RETURN_COLUMN): Move.
9752         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9753         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9754         * pa.c (except.h, predict.h): Include.
9755         (FRP): Delete.
9756         (store_reg_modify, set_reg_plus_d): Revise prototypes.
9757         (output_ascii): Add cast.
9758         (store_reg_modify): Revise to add frame notes.
9759         (set_reg_plus_d): Likewise.
9760         (compute_frame_size): Include space for eh data registers in frame if
9761         the current function calls eh_return.
9762         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
9763         function calls eh_return.  Save eh data registers if the current
9764         function calls eh_return.  Fix code to add frame notes.  Emit
9765         blockage to prevent insns with frame notes being scheduled in the
9766         delay slot of calls.
9767         (hppa_expand_epilogue): Restore eh data registers and do final stack
9768         adjustment if the current function calls eh_return.  Don't add frame
9769         notes.
9770         (output_call): Revise for change in length of call insn.  Don't do
9771         return pointer adjustment for an unconditional jump in the delay slot
9772         of a call when using frame notes.
9773         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9774         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9775         (ARG_POINTER_CFA_OFFSET): Define.
9776         * pa.md (return_external_pic): New pattern.
9777         (prologue): Correct formatting.  Use return_external_pic if current
9778         function calls eh_return.
9779         (call_internal_symref, call_value_internal_symref,
9780         sibcall_internal_symref, sibcall_value_internal_symref): Change default
9781         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9782         respectively.
9783         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9784
9785         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9786         list of targets to check using "nop" insn.
9787         * configure: Rebuilt.
9788
9789 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
9790
9791         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9792
9793 2002-04-03  David S. Miller  <davem@redhat.com>
9794
9795         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9796         library sequence passed to the linker.
9797         (LINK_COMMAND_SPEC): Use it.
9798         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9799         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9800         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9801
9802 2002-04-03  Jason Merrill  <jason@redhat.com>
9803
9804         * except.c (struct eh_status): Remove protect_list.
9805         (begin_protect_partials, end_protect_partials): Remove.
9806         (add_partial_entry): Remove.
9807         * except.h: Remove prototypes.
9808
9809         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9810         expand_decl_cleanup_eh.
9811
9812         PR c++/5636
9813         * tree.h (CLEANUP_EH_ONLY): New macro.
9814         * stmt.c (expand_decl_cleanup_eh): New fn.
9815         (expand_cleanups): Check CLEANUP_EH_ONLY.
9816         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9817         Use expand_decl_cleanup_eh.
9818         (expand_stmt): Adjust.
9819         * c-common.h: Adjust prototype.
9820
9821 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
9822
9823         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9824         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9825         (cris_target_asm_function_epilogue): Ditto.
9826         (cris_initial_frame_pointer_offset): Ditto.
9827         (cris_simple_epilogue): Ditto.
9828         (cris_expand_builtin_va_arg): Variable-size types come in
9829         by-reference.
9830
9831 2002-04-03  David S. Miller  <davem@redhat.com>
9832
9833         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9834         little-endian.
9835         (set_fast_math): Correct 'fsr' type.
9836
9837 2002-04-03  Richard Henderson  <rth@redhat.com>
9838
9839         PR opt/3569
9840         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9841         * toplev.c (check_global_declarations): Use it.
9842         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9843         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9844         (LANG_HOOKS_DECLS): Add it.
9845         * langhooks.c (lhd_warn_unused_global_decl): New.
9846         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9847         * c-objc-common.c (c_warn_unused_global_decl): New.
9848         * c-tree.h (c_warn_unused_global_decl): Declare.
9849         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9850
9851 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9852
9853         * langhooks-def.h (lhd_set_decl_assembler_name,
9854         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9855         (LANG_HOOKS_INITIALIZER): Update.
9856         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9857         * langhooks.h (struct lang_hooks): New hook.
9858         * tree.c (set_decl_assembler_name): Move to langhooks.c.
9859         (lang_set_decl_assembler_name): Remove.
9860         (init_obstacks): Don't set hook.
9861         (decl_assembler_name): New function.
9862         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9863         (decl_assembler_name): New.
9864         (lang_set_decl_assembler_name): Remove.
9865
9866 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9867
9868         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9869         works properly with .hidden symbols.
9870         * configure: Rebuilt.
9871         * config.in: Rebuilt.
9872         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9873         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9874         properly with .hidden symbols.
9875
9876 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9877
9878         PR middle-end/6102
9879         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9880         USE argument.
9881
9882 2002-04-03  Richard Henderson  <rth@redhat.com>
9883
9884         PR opt/4120
9885         * sched-rgn.c (sets_likely_spilled): New.
9886         (sets_likely_spilled_1): New.
9887         (add_branch_dependences): Use it.
9888
9889 2002-04-02  Richard Henderson  <rth@redhat.com>
9890
9891         PR opt/4311
9892         * loop.h (LOOP_FIRST_PASS): New.
9893         * loop.c (strength_reduce): Mind it when deciding to unroll.
9894         * toplev.c (rest_of_compilation): Set it.
9895
9896 2002-04-02  David S. Miller  <davem@redhat.com>
9897
9898         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9899         mems_ok_for_ldd_peep when the order of the loads being examined
9900         is reversed.
9901         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9902         existing comment to increase comprehension of this situation.
9903
9904 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
9905
9906         * config/sh/sh.md: Don't use union real_extract.
9907
9908 2002-04-02  Richard Henderson  <rth@redhat.com>
9909
9910         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9911
9912 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9913
9914         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9915         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9916         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9917         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9918         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9919         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9920         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9921         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9922         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9923         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9924         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9925         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9926         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9927         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9928         Include as many configury headers via tm_file as possible.  This
9929         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9930         * config/openbsd-oldgas.h: New file.
9931         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9932         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9933         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9934         config/i386/i386-coff.h, config/i386/i386-interix.h,
9935         config/i386/iscdbx.h, config/i386/linux-aout.h,
9936         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9937         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9938         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9939         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9940         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9941         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9942         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9943         config/i386/vxi386.h: Do not directly include configury headers.
9944         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9945         Directly include configury headers that are no longer automatically
9946         included by the above headers.
9947         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9948         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9949         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9950         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9951         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9952         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9953         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9954         (TARGET_VERSION): Define.
9955         * config/i386/beos-elf.h, config/i386/freebsd.h,
9956         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9957         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9958         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9959         config/i386/sco5.h, config/i386/sysv4.h
9960         (TARGET_VERSION): Do not need to protect.
9961         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9962         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9963         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9964         config/i386/i386-interix.h, config/i386/linux-aout.h,
9965         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9966         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9967         (YES_UNDERSCORES): Do not define - not needed.
9968         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9969         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9970         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9971         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9972         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9973         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9974         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9975         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9976
9977 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
9978             Richard Henderson  <rth@redhat.com>
9979
9980         PR c/5484
9981         * function.c (assign_temp): Accept either type or decl argument.
9982         Detect variables whose size is too large to fit into an integer.
9983         * stmt.c (expand_decl): Pass the decl, not the type.
9984
9985 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9986
9987         * protoize.c: Match include directory usage with cppdefault.c.
9988
9989 2002-04-03  Jeffrey A Law  (law@redhat.com)
9990             Hans-Peter Nilsson  <hp@bitrange.com>
9991
9992         * combine.c (simplify_comparison): Avoid narrowing a comparison
9993         with a paradoxical subreg when doing so would drop signficant bits.
9994
9995 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
9996
9997         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9998         if POINTERS_EXTEND_UNSIGNED is defined.
9999
10000 2002-04-02  Richard Henderson  <rth@redhat.com>
10001
10002         PR opt/3967
10003         * local-alloc.c (contains_replace_regs): LO_SUM may contain
10004         replace regs.
10005
10006 2002-04-02  Richard Henderson  <rth@redhat.com>
10007
10008         * doc/standards.texi: Document required freestanding libc entry points.
10009
10010 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
10011
10012         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10013         associated splitter.  Remove MQ constraint.
10014         (ctrdi_internal4): Correct CCmode clobber.
10015
10016 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10017
10018         * milli64.S ($$dyncall): New function.
10019         * t-linux (LIB1ASMFUNCS): Revise module list.
10020         (LIB1ASMSRC): Use pa/milli64.S.
10021
10022 2002-04-02  Richard Henderson  <rth@redhat.com>
10023
10024         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10025         rename solaris_sys_varargs_h.
10026
10027 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10028
10029         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10030         the same mode as its component.
10031
10032 2002-04-02  Richard Henderson  <rth@redhat.com>
10033
10034         PR opt/190
10035         * final.c (this_is_asm_operands): Export.
10036         * output.h (this_is_asm_operands): Declare.
10037         * config/i386/i386.c (print_operand): Error odd asm operands.
10038
10039 2002-04-02  Richard Henderson  <rth@redhat.com>
10040
10041         PR opt/420
10042         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10043
10044 2002-04-01  Richard Henderson  <rth@redhat.com>
10045
10046         PR target/1538
10047         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10048         * fixinc/fixincl.x: Rebuild.
10049
10050 2002-04-01  Richard Henderson  <rth@redhat.com>
10051
10052         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10053         (atomic_alloc, atomic_free): New.
10054         (SIZE, MASK_FOR, PTR_IN): New.
10055         (emergency_reg_state, emergency_reg_state_free): New.
10056         (emergency_labeled_state, emergency_labeled_state_free): New.
10057         (reg_state_alloced, labeled_state_alloced): New.
10058         (alloc_reg_state, free_reg_state): New.
10059         (alloc_label_state, free_label_state, free_label_states): New.
10060         (push, pop, dup_state_stack, free_state_stack): Use them.
10061         (desc_label_state): Likewise.
10062         (uw_frame_state_for): Free label states and state stack.
10063         (uw_update_reg_address): Eliminate warnings.
10064
10065 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
10066
10067         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10068         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10069
10070 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10071
10072         * c-decl.c (grokdeclarator): Update.
10073         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10074         * c-tree.h (c_mark_addressable): New.
10075         * c-typeck.c (default_function_array_conversion, build_unary_op,
10076         build_array_ref, convert_for_assignment): Update.
10077         (mark_addressable): Rename.
10078         * calls.c (try_to_integrate, expand_call): Use langhook.
10079         * expr.c (expand_expr): Use langhook.
10080         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10081         * langhooks.h (struct lang_hooks): New hook.
10082         * stmt.c (expand_asm_operands): Use langhook.
10083         * tree.h (mark_addressable): Remove.
10084 objc:
10085         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10086
10087 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10088
10089         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10090         in previous change.
10091
10092 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10093
10094         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10095         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10096
10097 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10098
10099         * c-common.c (unsigned_conversion_warning, convert_and_check,
10100         unsigned_type, signed_type, shorten_compare,
10101         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10102         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10103         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10104         New.
10105         * c-decl.c (grokdeclarator): Update.
10106         * c-format.c (check_format_types): Update.
10107         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10108         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10109         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10110         * convert.c (convert_to_integer): Use new hooks.
10111         * expmed.c (make_tree): Use new hooks.
10112         * expr.c (store_expr): Use new hooks.
10113         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10114         all_ones_mask_p, unextend, fold): Use new hooks.
10115         * langhooks.h (struct lang_hooks_for_types): New hooks.
10116         * tree.h (signed_or_unsigned_type, signed_type,
10117         unsigned_type): Remove.
10118 objc:
10119         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10120         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10121
10122 2002-03-31  Richard Henderson  <rth@redhat.com>
10123
10124         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10125         (desc_frgr_mem): Fix reference to f16-f31.
10126
10127 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10128
10129         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10130         RTVEC_ELT): Const-ify.
10131         * varray.h (VARRAY_CHECK): Const-ify.
10132         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10133         ggc_mark_rtvec, ggc_mark): Const-ify.
10134
10135 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10136
10137         * diagnostic.c: Include langhooks-def.h.
10138         * Makefile.in (diagnostic.o): Update.
10139
10140 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10141
10142         * c-common.c (c_unsafe_for_reeval): Rename.
10143         * c-common.h (c_unsafe_for_reeval): Rename.
10144         * c-decl.c (finish_incomplete_decl): Rename.
10145         (c_init_decl_processing): Don't set langhook.
10146         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10147         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10148         * c-objc-common.c (c_objc_common_init): Don't set langhook.
10149         * c-tree.h (finish_incomplete_decl): Rename.
10150         * langhooks-def.h (lhd_unsafe_for_reeval): New.
10151         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10152         (LANG_HOOKS_INITIALIZER): Update.
10153         * langhooks.c (lhd_unsafe_For_reeval): New.
10154         * langhooks.h (struct langhooks): New hooks.
10155         * toplev.c (incomplete_decl_finalize_hook): Remove.
10156         (wrapup_global_declarations): Update.
10157         * tree.c (lang_unsafe_for_reeval): Remove.
10158         (unsafe_for_reeval): Update.
10159         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10160         Remove.
10161 objc:
10162         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10163         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10164
10165 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10166
10167         * diagnostic.c (print_error_function): Remove.
10168         (default_print_error_function): Rename.
10169         (report_error_function): Update.
10170         * diagnostic.h (print_error_function): Remove.
10171         (default_print_error_function): Remove.
10172         * langhooks-def.h (struct diagnostic_context): Predeclare.
10173         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10174         (LANG_HOOKS_INITIALIZER): Update.
10175         * langhooks.h (struct diagnostic context): Predeclare.
10176         (struct lang_hooks): New hook.
10177
10178 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10179
10180         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10181         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10182         !flag_pic.
10183         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10184         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10185         of PIC_OFFSET_TABLE_REGNUM thruout.
10186         * config/rs6000/rs6000.md: Likewise.
10187         * config/rs6000/darwin.h: Likewise.
10188
10189 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10190
10191         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10192         unsigned HOST_WIDE_INT, not unsigned int.
10193
10194 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10195
10196         PR middle-end/6096, middle-end/6098, middle-end/6099
10197         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10198         CODE_LABELs.
10199         (fill_slots_from_thread): Likewise.
10200
10201 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10202
10203         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10204         floating fields in float regs.
10205         (function_arg_record_value_2): Likewise.
10206
10207 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10208
10209         * config/mmix/mmix.md (define_constants): Remove misleading
10210         FIXME.  Add MMIX_fp_rO_OFFSET.
10211         ("nonlocal_goto_receiver"): Don't have stack-frame address of
10212         saved rO as part of the pattern.  Remove FIXME.
10213         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
10214         here, at output-time.
10215
10216 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10217
10218         PR middle-end/6100
10219         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10220         REG_BR_PRED.
10221         (output_v9branch): Likewise.
10222
10223 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10224
10225         * gcc.c: Revert previous patch for now.
10226         * config/i386/djgpp.h: Likewise.
10227
10228 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10229
10230         * config/mmix/crti.asm (_init): Register _fini with atexit.
10231         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10232
10233 2002-03-31  Richard Henderson  <rth@redhat.com>
10234
10235         PR target/3997
10236         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10237         (ASM_OUTPUT_DEF_FROM_DECLS): New.
10238
10239 2002-03-31  Richard Henderson  <rth@redhat.com>
10240
10241         * libgcc2.c (__bb_exit_func): Make static.
10242
10243         * config/alpha/alpha.md (trap): New.
10244
10245 2002-03-31  Richard Henderson  <rth@redhat.com>
10246
10247         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10248         promoted argument types; build trap.
10249         (expand_builtin_trap): New.
10250         (expand_builtin): Use it.
10251         * stmt.c (expand_nl_goto_receivers): Likewise.
10252         * expr.h (expand_builtin_trap): Declare.
10253         * libfuncs.h (LTI_abort, abort_libfunc): New.
10254         * optabs.c (init_optabs): Init abort_libfunc.
10255
10256 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10257
10258         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10259         (LINK_COMMAND_SPEC): ... from here.
10260         (init_gcc_specs): Duplicate it here too, omitting
10261         shared_name in the second copy.
10262         (init_spec): Test for duplicate
10263         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10264
10265 2002-03-30  David S. Miller  <davem@redhat.com>
10266
10267         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10268         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10269
10270 2002-03-30  Roger Sayle <roger@eyesopen.com>
10271             Richard Henderson  <rth@redhat.com>
10272
10273         * regmove.c (combine_stack_adjustments_for_block): Avoid
10274         emitting a stack adjustment of zero bytes.  Let delete_insn
10275         update bb->head.
10276
10277 2002-03-30  Richard Henderson  <rth@redhat.com>
10278
10279         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10280         (sparc_emitting_epilogue): New.
10281         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10282         * config/sparc/sparc-protos.h: Update.
10283         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10284         (TARGET_SWITCHES): Update.
10285         * config/sparc/sparc.md (return): Remove.
10286         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10287         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10288         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10289         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10290         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10291         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10292         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10293         Remove MASK_EPILOGUE.
10294         * doc/invoke.texi: Update.
10295
10296 2002-03-30  Daniel Berlin  <dan@dberlin.org>
10297
10298         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10299         CPP will start the file for us.
10300
10301 2002-03-30  Richard Henderson  <rth@redhat.com>
10302
10303         PR target/5446
10304         * config/ia64/ia64.c (group_barrier_needed_p): Special case
10305         prologue_allocate_stack.
10306         (ia64_single_set): Use insn codes for recognition of special
10307         cases, not rtl matching.
10308         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10309
10310 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10311
10312         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10313
10314 2002-03-30  Richard Henderson  <rth@redhat.com>
10315
10316         PR target/6032
10317         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10318         or -fomit-frame-pointer with profiling.
10319         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10320         (FUNCTION_PROFILER): Do nothing.
10321         (PROFILE_HOOK): New.
10322         * config/sparc/sparc.c (sparc_override_options): Don't check
10323         code models for profiling.
10324         (sparc_function_profiler): Remove.
10325         (sparc_profile_hook): New.
10326         * config/sparc/sparc-protos.h: Update.
10327
10328 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
10329
10330         PR optimization/6086
10331         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10332         of SUBREG of volatile MEM or because the MEM was mode dependent,
10333         return CLOBBER instead of unmodified SUBREG.
10334
10335 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10336
10337         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10338         when not optimizing.
10339
10340         * toplev.c (rest_of_compilation): Cann mark_constant_function
10341         only when optimizing.
10342
10343         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10344         are NULL.
10345
10346         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10347         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10348         (try_optimize_cfg): clear all AUX fields.
10349
10350         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10351         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10352         (ix86_address_cost): Be prepared for SUBREGed registers.
10353         (legitimate_address_p): Accept SUBREGed registers.
10354
10355 2002-03-29  Richard Henderson  <rth@redhat.com>
10356
10357         PR target/5672
10358         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10359
10360 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10361
10362         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10363         for aggregate and TFmode types.
10364
10365 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10366
10367         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10368
10369 2002-03-29  Richard Henderson  <rth@redhat.com>
10370
10371         PR target/5886
10372         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10373         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10374
10375 2002-03-29  Richard Henderson  <rth@redhat.com>
10376
10377         PR target/6041
10378         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10379         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10380         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10381         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10382         conditional.
10383         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10384
10385 2002-03-29  Dale Johannesen <dalej@apple.com>
10386
10387         * loop.c (combine_movables): Do allow combination of pseudos.
10388
10389 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
10390
10391         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10392         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10393         No functional change except ...
10394         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
10395         * doc/install.texi (*-*-freebsd*): Document port configuration.
10396
10397 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10398
10399         * Makefile.in (convert.o, calls.o, expmed.o): Update.
10400         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10401         Use new hooks.
10402         * builtin-types.def (BT_PTRMODE): Update.
10403         * c-common.c (type_for_size): Rename c_common_type_for_size.
10404         (type_for_mode): Similarly.
10405         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10406         Use new hook.
10407         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10408         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10409         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10410         Redefine.
10411         * c-typeck.c (common_type, comptypes, default_conversion):
10412         Use new hooks.
10413         * calls.c: Include langhooks.h.
10414         (emit_library_call_value_1): Use new hooks.  Avoid redundant
10415         calls.
10416         * convert.c: Include langhooks.h
10417         (convert_to_pointer, convert_to_integer): Use new hooks.
10418         * except.c (init_eh): Similarly.
10419         * expmed.c: Include langhooks.h.
10420         (expand_mult_add): Use new hooks.
10421         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10422         try_casesi): Similarly.
10423         * fold-const.c (optimize_bit_field_compare, make_range,
10424         decode_field_reference, fold_truthop, fold): Similarly.
10425         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10426         put_var_into_stack): Similarly.
10427         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10428         LANG_HOOKS_TYPE_FOR_SIZE): New.
10429         (LANG_HOOKS_TYPES_INITIALIZER): Update.
10430         * langhooks.h (lang_hooks_for_types): New hooks.
10431         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10432         * tree.c (get_unwidened, get_narrower): Similarly.
10433         * tree.h (type_for_mode, type_for_size): Remove.
10434         * varasm.c (force_const_mem): Use new hooks.
10435         * utils2.c (nonbinary_modular_operation): Update.
10436 objc:
10437         * objc-act.c (handle_impent): Update.
10438         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10439         Redefine.
10440
10441 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
10442
10443         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10444         * config/ia64/ia64.c (basereg_operand): New.
10445         * config/ia64/ia64-protos.h (basereg_operand): Declare.
10446         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10447
10448 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10449
10450         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10451         unwind information when frame_pointer_needed.
10452         (mmix_assemble_integer): Tweak wording in comment.
10453
10454 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10455
10456         * Makefile.in (except.o): Update.
10457         * except.c: Include langhooks.h.
10458         (init_eh): Use langhook.
10459         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10460         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10461         (LANG_HOOKS_INITIALIZER): Update.
10462         * langhooks.h (lang_hooks_for_types): New.
10463         (struct lang_hooks): Add it.
10464         * tree.c (make_lang_type_fn, make_lang_type): Remove.
10465         * tree.h (make_lang_type_fn, make_lang_type): Remove.
10466 config:
10467         * alpha/alpha.c: Include langhooks.h.
10468         (alpha_build_va_list): Use langhook.
10469         * d30v/d30v.c: Include langhooks.h.
10470         (d30v_build_va_list): Use langhook.
10471         * i386/i386.c: Include langhooks.h.
10472         (ix86_build_va_list): Use langhook.
10473         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10474         * s390/s390.c: Include langhooks.h.
10475         (s390_build_va_list): Use langhook.
10476         * stormy16/stormy16.c: Include langhooks.h.
10477         (stormy16_build_va_list): Use langhook.
10478
10479 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10480
10481         PR c++/5964
10482         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10483         attributes.
10484         (length): Compute variable length for branches/calls/jumps here.
10485         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10486         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10487         define branch_type attribute.
10488         (divsi3_sp32): Maximum length is 6 not 7.
10489         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10490         call_address_untyped_struct_value_sp32,
10491         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10492         * config/sparc/sparc.c (empty_delay_slot): New function.
10493         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10494         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10495
10496 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10497
10498         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10499         nonzero_bits if not needed.
10500         (nonzero_bits) [XOR]: Likewise.
10501         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10502         reg_last_set_mode and mode are both MODE_INT, but not equal.
10503         (record_value_for_reg): Compute reg_last_set_nonzero_bits
10504         in nonzero_bits_mode for MODE_INT modes.
10505
10506 2002-03-28  Richard Henderson  <rth@redhat.com>
10507
10508         PR target/5715
10509         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10510         to GAS.  Correct drift between alternatives.
10511
10512 2002-03-28  Richard Henderson  <rth@redhat.com>
10513
10514         PR target/6087
10515         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10516
10517 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
10518
10519         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10520         emulation to the linker.
10521
10522 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
10523
10524         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10525         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10526
10527 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
10528
10529         * combine.c (simplify_and_const_int): Make sure to apply mask
10530         when force_to_mode returns a constant integer.  PR3311.
10531
10532 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10533
10534         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10535
10536 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10537
10538         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10539         and Objective-C Dialect Options.
10540
10541 2002-03-28  Richard Henderson  <rth@redhat.com>
10542
10543         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10544         comparison should be done vs !=0 not >0 return code.  Tidy cases.
10545
10546 2002-03-28  Richard Henderson  <rth@redhat.com>
10547
10548         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
10549         on to c_expand_body.
10550         * c-tree.h (finish_function): Update decl.
10551         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10552
10553 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10554
10555         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10556
10557 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
10558
10559         * rtlanal.c: Include flags.h
10560         (may_trap_p): Do not mark FP operations if trapping
10561         if !flag_trapping_math
10562         * Makefile.in (rtlanal.o): Add dependency on flag.h
10563         * ifcvt.c (noce_operand_ok): Avoid the lameness.
10564
10565 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
10566
10567         * mips.md: Use dconst1, not 1.0, as first argument of
10568         REAL_VALUE_LDEXP.  Don't use union real_extract.
10569
10570 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
10571
10572         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10573         rather than $target.  Heed program_prefix and
10574         program_transform_name.  Search for gas in cross-compiler case too.
10575         "test -x" rather than "test -f".
10576         (gcc_cv_ld): Likewise.
10577         (gcc_cv_nm): Heed program_prefix and program_transform_name.
10578         (gcc_cv_objdump): Likewise.
10579         * configure: Regenerate.
10580
10581 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10582
10583         * Makefile.in (attribs.o): Update.
10584         * attribs.c: Include langhooks.h.
10585         (decl_attributes): Use langhook.
10586         * c-decl.c (insert_default_attributes): Rename.
10587         * c-tree.h (c_insert_default_attributes): New.
10588         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10589         (LANG_HOOKS_INITIALIZER): Update.
10590         * langhooks.h (struct lang_hooks): New hook.
10591         * tree.h (insert_default_attributes): Remove.
10592 objc:
10593         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10594
10595 2002-03-27  Andreas Schwab  <schwab@suse.de>
10596
10597         * config/i386/i386.c (classify_argument): Also check for
10598         QUAL_UNION_TYPE.
10599
10600 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10601
10602         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10603         any more.
10604
10605 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10606
10607         * i960.md (ret): Set PC.
10608         (nonlocal_goto): Fix expander.
10609         * builtins.c (epxand_builin_longjmp): Check that we've emitted
10610         some jump or call.
10611
10612 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
10613
10614         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10615         of libcall regions.
10616
10617 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10618
10619         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10620         assigning to BLOCK_FOR_INSN directly.
10621
10622 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10623
10624         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10625
10626 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10627
10628         * c-common.c (c_expand_expr): Fix prototype.
10629         * c-common.h (c_expand_expr): Always declare, update.
10630         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10631         * c-objc-common.c (c_objc_common_init): No global hook.
10632         * expr.c (expand_expr): Use langhook.
10633         * expr.h (enum expand_modifier): Conditionally declare.
10634         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10635         (LANG_HOOKS_INITIALIZER): Update.
10636         * langhooks.c (lhd_expand_expr): New.
10637         * langhooks.h (struct lang_hooks): New hook.
10638         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10639         (lang_independent_init): Don't default hook.
10640 objc:
10641         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10642
10643 2002-03-27  Richard Henderson  <rth@redhat.com>
10644
10645         PR target/6054
10646         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10647         TARGET_CONST_GP.  Simplify conditions.
10648
10649 2002-03-27  Richard Henderson  <rth@redhat.com>
10650
10651         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10652         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10653         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10654
10655 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
10656
10657         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10658         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10659         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10660         Remove unnecessary masks.
10661         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10662         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10663         -mwindows, -mdll switches and their negations.
10664
10665 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10666
10667         * gcc-common.c (lang_mark_false_label_stack): Remove.
10668         * ggc.h (lang_mark_false_label_stack): Similarly.
10669
10670 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
10671
10672         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10673
10674         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10675         or __rtems_ is defined.
10676
10677 2002-03-26  Richard Henderson  <rth@redhat.com>
10678
10679         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10680         if a non-trivial load was emitted.
10681         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
10682         in high+extra+low case.
10683
10684 2002-03-26  Richard Henderson  <rth@redhat.com>
10685
10686         * config.gcc (sparc*-solaris): Use float_format=sparc.
10687
10688 2002-03-26  Richard Henderson  <rth@redhat.com>
10689
10690         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10691         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10692         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10693         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10694         (WINT_TYPE_SIZE): Fix at 32.
10695
10696 2002-03-26  Richard Henderson  <rth@redhat.com>
10697
10698         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10699         until after eh landing pad generation.
10700         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10701         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10702
10703 2002-03-26  Richard Henderson  <rth@redhat.com>
10704
10705         * expr.h (ADD_PARM_SIZE): One more convert for INC.
10706
10707 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
10708
10709         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
10710         and warning switches.
10711         (cc1_options):  Likewise.
10712
10713 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
10714
10715         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10716         Restore more of the signal context.  Set no_reg_stack_frame.
10717         * config/ia64/unwind-ia64.c (unw_state_record):
10718         Add no_reg_stack_frame, comments.
10719         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10720         (uw_update_context): Adjust bsp when unwinding from leaf,
10721         but not signal frame.
10722
10723 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
10724
10725         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10726
10727 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10728
10729         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10730
10731 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10732
10733         PR target/5621
10734         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10735         "Add a pool_range attribute", which was lost during the ARM/Thumb
10736         merge.
10737
10738 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10739
10740         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10741         a register into the MAC16 accumulator.
10742
10743 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
10744
10745         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10746         (Warning Options): Document -Wswitch-enum.
10747         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
10748         -Wswitch.
10749         (warn_switch_enum): Define variables.
10750         * flags.h (warn_switch_enum): Declare variables.
10751         * stmt.c (expand_end_case_type): When warn_switch_enum /
10752         -Wswitch-enum, perform switch checks.
10753         Fix PR c/5044.
10754
10755 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10756
10757         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10758         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10759         (reload_muladdsi_compare0_scratch): Delete.
10760
10761 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
10762
10763         * doc/install.texi (*-*-freebsd*): Update.
10764
10765 2002-03-26  Richard Henderson  <rth@redhat.com>
10766
10767         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10768         (SUB_PARM_SIZE): Cast DEC to ssizetype.
10769
10770         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10771         types from the normal argument frame.
10772
10773         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10774         variable sized objects by reference.
10775         (sparc_va_arg): Receive them by reference too.
10776
10777 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
10778
10779         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10780         code to not restoring global registers.
10781
10782 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10783
10784         * Makefile.in (ggc-common.o): Update.
10785         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10786         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10787         * c-tree.h (c_mark_tree): New.
10788         * ggc-common.c: Include langhooks.h.
10789         (gcc_mark_trees): Use new langhook.
10790         * ggc-callbacks.c: Delete file.
10791         * ggc.h (lang_mark_tree): Remove.
10792         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10793         (LANG_HOOKS_INITIALIZER): Update.
10794         * langhooks.h (struct lang_hooks): New hook.
10795 objc:
10796         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10797
10798 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10799
10800         * doc/cpp.texi: Exclude entire Top node from printed manual.
10801         Move option index after directive index.  Insert page breaks
10802         before GFDL and concept index.  Index environment variables
10803         with command line options.
10804         * doc/cppenv.texi: Use @vtable for environment variable list.
10805         Add paragraph explaining semantics of empty elements in path
10806         variables.  Exclude a cross-reference to Fishkill from the
10807         manpage.  Remove an unnecessary cross-reference of the entry
10808         right above the referer.  Don't use @anchor in text that goes
10809         into manpage.
10810         * doc/cppopts.texi: Cross-reference the environment variables
10811         section, not the specific environment variable, for consistency.
10812
10813 2002-03-25  Richard Henderson  <rth@redhat.com>
10814
10815         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10816         anywhere in the block.  Don't refer to insns that have been
10817         removed from the chain.  Iterate backward through the new insns.
10818         Don't refer to edges that have been removed.
10819
10820 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
10821
10822         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10823         test for overflow of constant.
10824
10825 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
10826
10827         PR target/2623
10828         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10829         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10830         these patterns on arm_archv4.
10831
10832 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
10833
10834         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10835         int".
10836
10837 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10838
10839         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
10840         float_handled, float_handler, float_signal, set_float_handler,
10841         and do_float_handler.  Set handler for SIGFPE to crash_signal.
10842         * toplev.h: Don't prototype do_float_handler.
10843
10844         * c-lex.c: Fold parse_float into lex_number.  Make warning
10845         about portability of hex float constants more informative, and
10846         don't issue it on top of a syntax error.
10847         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10848         their callers.
10849         * real.h: Define REAL_VALUE_ABS here...
10850         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
10851         simplify_unary_real, simplify_binary_real, and
10852         simplify_binary_is2orm1 into their callers.
10853         * tree.c: Fold build_real_from_int_cst_1 into caller.
10854
10855         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10856
10857         * tsystem.h: Include float.h here...
10858         * libgcc2.c: ... not here.
10859
10860 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
10861
10862         Fixes for: PR bootstrap/3591, target/5676
10863         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10864         defined.  Do not disable exceptions or rtti.
10865         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10866         mcore.h.  Disable exceptions and rtti, since they are not
10867         supported by EPOC.
10868
10869 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10870
10871         * c-decl.c (maybe_build_cleanup): Remove.
10872         * expr.c (expand_expr): Use langhook.
10873         * langhooks-def.h (lhd_return_null_tree,
10874         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10875         (LANGHOOKS_INITIALIZER): Update.
10876         * langhooks.c (lhd_return_null_tree): New.
10877         * langhooks.h (struct lang_hooks): New hook.
10878         * tree-inline.c (initialize_inlined_parameters): Use langhook.
10879         * tree.h (maybe_build_cleanup): Remove.
10880
10881 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10882
10883         * regrename.c (build_def_use): Move recog_memoized
10884         before extract_insn.
10885
10886 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10887
10888         PR target/6043
10889         * expr.c (emit_group_store): Handle storing into CONCAT.
10890
10891 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10892
10893         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10894         corresponding MATCH_DUP.
10895
10896 2002-03-24  Richard Henderson  <rth@redhat.com>
10897
10898         * unroll.c (unroll_loop): Zero label_map.
10899
10900         * gcse.c: Include except.h.
10901         * Makefile.in (gcse.o): Update.
10902
10903 2002-03-24  Richard Henderson  <rth@redhat.com>
10904
10905         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10906         Do resolve_unique_section before shared data clause.
10907
10908 2002-03-24  Richard Henderson  <rth@redhat.com>
10909
10910         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10911
10912 2002-03-24  Richard Henderson  <rth@redhat.com>
10913
10914         * recog.c (peephole2_optimize): Split blocks when EH insns are
10915         generated in the middle of a block.  Do global life update if
10916         zapped EH edges.
10917
10918 2002-03-24  Richard Henderson  <rth@redhat.com>
10919
10920         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10921
10922 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10923
10924         preprocessor/3951
10925         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10926         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10927         (init_dependency_output): Don't make no_output decision here.
10928
10929 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
10930
10931         * stmt.c (check_for_full_enumeration_handling): Remove tests of
10932         warn_switch.  Update description.
10933         (expand_end_case_type): Call check_for_full_enumeration_handling
10934         when warn_switch.
10935
10936 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10937
10938         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10939         (m68hc11_split_move): Call it to see if the source and destination
10940         operands use the same direction auto inc/dec mode, otherwise make the
10941         source an offsetable memory operand and generate an add.
10942
10943 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10944
10945         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10946         register for operand 2.
10947         ("*subsi3_zero_extendqi"): Likewise.
10948         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10949         bits so that it is compatible with a pop.
10950         ("*andhi3_gen"): Likewise.
10951         ("xorhi3"): Likewise.
10952
10953 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10954
10955         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10956         -pedantic here...
10957         (cpp_post_options): ... not here.
10958
10959 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10960             Aldy Hernandez  <aldyh@redhat.com>
10961
10962         Removal of separate preprocessor cpp0.
10963
10964         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10965         cpp0, install-common): Update.
10966         * c-common.c (flag_preprocess_only): New.
10967         (c_common_init): Preprocess for -E.
10968         * c-common.h (flag_preprocess_only): New.
10969         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10970         * c-objc-common.c (c_init_decl_processing): Exit quickly
10971         for NULL return from c_common_init.
10972         * cpplib.h (cpp_preprocess_file): New.
10973         * cppmain.c (main, general_init, pfile, progname): Remove.
10974         (do_preprocessing): Rename cpp_preprocess_file, don't call
10975         cpp_finish.  Don't close stdout here.
10976         (setup_callbacks): Update prototype.
10977         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10978         Update.
10979         * tradcpp.c (main): Ignore -quiet.
10980 objc:
10981         * lang-specs.h (default_compilers): Preprocess with cc1obj.
10982
10983 2002-03-24  Richard Henderson  <rth@redhat.com>
10984
10985         PR optimization/5742
10986         * machmode.def: Add inner mode field to complex modes.
10987         * config/mips/mips.c (mips_function_value): Always define.  Add
10988         new argument to handle libcalls.
10989         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10990         (FUNCTION_VALUE): Likewise.
10991         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10992         * config/mips/mips-protos.h: Update.
10993
10994 2002-03-23  Richard Henderson  <rth@redhat.com>
10995
10996         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10997         * config/sparc/sparc-protos.h: Update.
10998         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10999
11000 2002-03-23  Richard Henderson  <rth@redhat.com>
11001
11002         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11003         _start or _init begins the text segment.
11004
11005 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
11006
11007         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
11008         not HOST_WIDEST_INT.
11009         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11010
11011 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
11012
11013         PR java/5489
11014         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11015         operand argument to output_return_instruction.
11016         * arm.c (arm_print_operand, case 'd'): If the operand is
11017         const_true_rtx then just return.
11018         (arm_print_operand, case 'D'): If the operand is const_true_rtx
11019         then abort.
11020
11021 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11022
11023         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11024         (Warning Options): Document -Wswitch-default.
11025         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
11026         -Wswitch.
11027         (warn_switch_default): Define variable.
11028         (warn_switch): Update comment.
11029         * flags.h (warn_switch_default): Declare variable.
11030         (warn_switch): Update comment.
11031         * stmt.c (expand_end_case): Check for and, when
11032         warn_switch_no_default, warn of a missing default case.
11033
11034 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
11035
11036         * real.h (N): Special case 128 bit doubles.
11037
11038         * combine.c (simplify_comparison): When widening modes, ignore
11039         sign extension on CONST_INTs.
11040
11041 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11042
11043         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11044         passed to adjust_address.  Fix comment formatting.
11045
11046
11047 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
11048
11049         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11050         Always make REAL_VALUE_TYPE a struct containing an array of
11051         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
11052         big it is.  Don't declare or use union real_extract.
11053
11054         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11055         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11056         (print_operand), config/arm/arm.c (output_move_double),
11057         config/arm/arm.md (consttable_4, consttable_8),
11058         config/romp/romp.c (output_fpops), config/s390/s390.h
11059         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11060         (xtensa_output_literal): Don't use union real_extract.
11061
11062         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11063         (sfmode_constant_to_ulong), config/ns32k/merlin.h
11064         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11065         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11066         (PRINT_OPERAND): Don't use local version of union
11067         real_extract.
11068
11069         * config/convex/convex.c (check_float_value), config/vax/vax.c
11070         (vax_float_literal), config/m88k/m88k.md (divdf3),
11071         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11072         config/pdp11/pdp11.c (output_move_quad): Don't do host
11073         arithmetic on target floating point quantities.
11074
11075         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11076         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11077
11078         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11079         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11080
11081         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11082         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11083         INFINITY.
11084         * print-rtl.c (print_rtx): Disable code which needs
11085         floating-point emulator.
11086         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11087         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11088         depending on HOST_FLOAT_FORMAT to be defined properly.
11089
11090         * config/1750a/1750a.c (get_double, float_label): Delete.
11091         (print_operand): Delete huge commented-out chunk.  Use
11092         REAL_VALUE_TO_DECIMAL.
11093         * config/1750a/1750a-protos.h: Delete prototypes of deleted
11094         functions.
11095         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11096         IEEE_FLOAT_FORMAT.
11097         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11098         Use REAL_VALUE_TO_DECIMAL as ELF version does.
11099         * config/m88k/m88k.c (real_power_of_2_operand,
11100         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11101         real_extract out of the union; run the input through
11102         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11103         from that into the union.
11104         * config/pdp11/pdp11.c (output_move_double): Rearrange
11105         parentheses to make automatic indenter happy.
11106
11107         * doc/tm.texi (Cross-compilation): Rename node to "Floating
11108         Point" and rewrite to describe current situation.  Also adjust
11109         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11110         match code.
11111         * doc/rtl.texi: Adjust cross reference.
11112
11113 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11114
11115         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11116         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11117         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11118         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11119         prevent use of sp as a reload register.
11120         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11121         non_acc_reg_operand.
11122         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11123         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11124         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11125         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11126
11127 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11128
11129         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11130         * cpplex.c (unterminated): Delete.
11131         (parse_string): No string literal may extend over multiple
11132         lines.  Suppress the error when preprocessing assembly.
11133         * cppmain.c (scan_translation_unit): Strings are single-line.
11134
11135         * doc/cpp.texi: Update to match.
11136
11137 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11138
11139         PR optimization/5854
11140         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11141         Shut up warnings.
11142         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11143         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11144         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11145         const0 if scratch register was not allocated.
11146         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11147         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11148         with GEN_INT (...).
11149         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11150         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11151         with GEN_INT (...) everywhere.  Remove constraints in define_split
11152         patterns.
11153         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11154         require scratch register for setting 0 into regs/non-pushable memory.
11155
11156 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11157
11158         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11159         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11160
11161 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
11162
11163         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
11164         * cppinit.c (cpp_create_reader):  On by default.
11165         (cpp_handle_option):  Handle -W[no-]endif-labels.
11166         (cpp_post_options):  Also enable if -pedantic.
11167         * cpplib.c (do_else):  Use it.
11168         (do_endif):  Likewise.
11169         * doc/cppopts.texi:  Document new option.
11170         * doc/invoke.texi:  Document new option.
11171
11172 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
11173
11174         * config/i386/i386.c, config/i386/i386.md: Change all occurences
11175         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11176
11177 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11178
11179         * flow.c (calculate_global_regs_live): Clear aux fields of
11180         ENTRY and EXIT.
11181
11182 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11183
11184         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11185         REG or MEM subregs, pass rtx * instead of rtx to it.
11186         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11187         rtx * instead of rtx to alter_subreg.
11188         * config/m32r/m32r.c (gen_split_move_double): Likewise.
11189         * config/pj/pj.c (pj_output_rval): Likewise.
11190
11191 2002-03-22  Richard Henderson  <rth@redhat.com>
11192
11193         PR target/3177
11194         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11195         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11196         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11197         (ia64_expand_prologue): Look at int_regs, not words, for number
11198         of incomming int regs.
11199
11200 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
11201
11202         * expr.c (expand_expr): A RESULT_DECL is part of a call.
11203
11204 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
11205
11206         * toplev.c (flag_loop_optimize, flag_crossjumping):
11207         New static variables.
11208         (rest_of_compilation): Conditionalize crossjumping and
11209         loop optimizer.
11210         (parse_options_and_default_flags): Default loop_optimize and
11211         crossjumping.
11212         (lang_independent_options): Add -fcrossjumping and -floop-optimize
11213         * invoke.texi (crossjumping, loop-optimize): Document.
11214
11215 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11216
11217         * real.c (eiisneg): Move outside #ifdef NANS.
11218
11219 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11220
11221         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11222         frequencies match; avoid match on different loop depths.
11223         (try_crossjump_to_bb): Kill tests that no longer brings time
11224         savings.
11225         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11226         updating code.
11227         (split_edge): Likewise.
11228
11229         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11230         variable.
11231
11232         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11233         * cfgrtl.c: Include insn-config.h
11234         (split_block) Dirtify block in presence of conditional execution
11235
11236 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11237
11238         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11239         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11240         (function_arg): Constify CUMULATIVE_ARGS.
11241         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11242         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11243         (UNITS_PER_DOUBLE): New macro.
11244         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
11245         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
11246         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
11247         fp_regs and stack_words.
11248         (EABI_FLOAT_VARARGS_P): New macro.
11249         * config/mips/mips.c (struct mips_arg_info): New.
11250         (mips_arg_info): New function.
11251         (function_arg_advance): Use it.  Add adjustment instructions here
11252         rather than in function_arg.
11253         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
11254         for VOIDmode at the beginning of the function.
11255         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
11256         (function_arg_pass_by_reference): Likewise.
11257         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11258         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11259         (mips_va_start): Likewise.  Use the new stack_words field of
11260         CUMULATIVE_ARGS to set up overflow area.  Reformat.
11261         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
11262         doubles and other types, aligning the overflow pointer for non-doubles
11263         too.  Remove some code duplication.  Replace hard-coded constants.
11264
11265 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11266
11267         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11268         (CLASS_UNITS): Undefine.
11269         (CLASS_MAX_NREGS): Use FP_INC.
11270         * config/mips/mips.c (compute_frame_size): Likewise.
11271         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11272
11273 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11274
11275         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11276         prototype, and handle lexing numbers and identifiers.
11277         (parse_identifier): Update to new form of parse_slow.
11278         (parse_number): Fast path only, use parse_slow otherwise.
11279         (_cpp_lex_direct): Update calls to parse_number.
11280
11281 2002-03-21  DJ Delorie  <dj@redhat.com>
11282
11283         * bb-reorder.c (make_reorder_chain_1): Protect against
11284         when redundant edges are omitted.
11285         * predict.c (dump_prediction): Likewise.
11286
11287 2002-03-21  Richard Henderson  <rth@redhat.com>
11288
11289         PR target/5996
11290         * fixinc/inclhack.def (solaris_stdio_tag): New.
11291         * fixinc/fixincl.x: Regenerate.
11292
11293 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11294
11295         PR c/5597
11296         * c-typeck.c (process_init_element): Flag non-static
11297         initialization of a flexible array member as illegal.
11298
11299 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
11300
11301         * config/rs6000/t-linux64: New.
11302         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11303         t-ppccomm.  Use t-rs6000 and t-linux64.
11304         (powerpc64-*-gnu* <tmake_file>): Likewise.
11305         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11306         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11307         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11308
11309 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
11310
11311         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11312         flag_really_no_inline instead of optimize == 0.
11313
11314         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11315
11316         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11317
11318         * flags.h (flag_really_no_inline): New.
11319
11320         * c-common.c (c_common_post_options): Initialize
11321         flag_really_no_inline.
11322
11323         * toplev.c (flag_really_no_inline): New.
11324
11325 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
11326
11327         * config/avr/avr.md (length): Fix length computation for
11328         conditional branches.
11329
11330 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11331
11332         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11333         sdbout.o, profile.o): Update.
11334         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11335         langhook.
11336         * c-common.h (gettags): Move here from tree.h.
11337         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11338         insert_block, getdecls, kept_level_p, global_bindings_p): New.
11339         * dbxout.c (dbxout_init): Use getdecls langhook.
11340         * expr.c (expand_expr): Use insert_block langhook.
11341         * fold-const.c: Include langhooks.h.
11342         (fold_range_test, fold_binary_op_with_conditional_arg,
11343         fold): Use global_bindings_p langhook.
11344         * integrate.c (expand_inline_function): Use insert_block langhook.
11345         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11346         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11347         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11348         LANG_HOOKS_GETDECLS): New.
11349         (LANG_HOOKS_INITIALIZER): Update.
11350         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11351         langhook.
11352         * langhooks.h (struct lang_hooks_for_decls): New.
11353         (struct lang_hooks): Update.
11354         * profile.c: Include langhooks.h.
11355         (output_func_start_profiler): Use new langhooks.
11356         * sdbout.c: Include langhooks.h.
11357         (sdbout_init, sdbout_finish): Use getdecls langhook.
11358         * stmt.c: Include langhooks.h.
11359         (expand_fixup, fixup_gotos): Use new langhooks.
11360         * stor-layout.c: Include langhooks.h.
11361         (variable_size): Use global_bindings_p langhook.
11362         * toplev.c (compile_file): Use getdecls langhook.
11363         * tree-inline.c (remap_block): Use insert_block langhook.
11364         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11365         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11366
11367 2002-03-21  Richard Henderson  <rth@redhat.com>
11368
11369         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11370         constants in .data when -fpic.
11371
11372 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11373
11374         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11375         where appropriate.
11376
11377 2002-03-21  Tom Tromey  <tromey@redhat.com>
11378
11379         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
11380
11381 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11382
11383         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11384
11385         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11386
11387 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11388             Richard Henderson  <rth@redhat.com>
11389
11390         PR c/5354
11391         * c-common.c (c_expand_expr): Preserve result of a statement
11392         expression if needed.
11393
11394 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
11395
11396         PR bootstrap/4195
11397         * genrecog.c (maybe_both_true_mode): Remove.
11398         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11399         * machmode.def (Pmode): Likewise.
11400
11401 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
11402
11403         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11404         (nonlocal_mentioned_p_1): New function.
11405         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11406         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11407         (mark_constant_function): Recognize pure functions.
11408         * rtl.h (global_reg_mentioned_p): New prototype.
11409         * rtlanal.c (global_reg_mentioned_p,
11410         global_reg_mentioned_p_1): New function.
11411
11412 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11413
11414         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11415         UNIX assert.h.
11416         * fixinc/fixincl.x: Regenerate.
11417
11418 2002-03-20  Jason Merrill  <jason@redhat.com>
11419
11420         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11421
11422 2002-03-20  Michael Meissner  <meissner@redhat.com>
11423
11424         * doc/invoke.texi (Optimize Options): Document that -O2 sets
11425         -fstrict-aliasing.
11426
11427 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11428
11429         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11430         ".literal_position" directive before the constant pool.
11431
11432 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11433
11434         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11435         Add Craig Rodrigues.
11436         Add Brad Lucier to testers.
11437
11438 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11439
11440         PR target/4792
11441         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11442         to if_then_else.
11443         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11444         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11445         instead of insn_extract.
11446
11447 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11448
11449         PR bootstrap/4192
11450         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11451
11452         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11453         stmt if some case has been output.
11454
11455 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11456
11457         PR c/5972
11458         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11459         movsfcc_1, movdfcc_1): Add %O2.
11460         * config/i386/i386.c (print_operand): Handle %ON.
11461         Print . before float condition codes in Sun as cmov syntax.
11462         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11463         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11464         no longer true.
11465
11466 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
11467
11468         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11469         return instruction if PC was popped.
11470
11471 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11472
11473         * config/xtensa/xtensa.md: Remove unused type attributes.
11474         (adddi_carry, subddi_carry): Change type attribute to "multi".
11475
11476 2002-03-19  Dale Johannesen  <dalej@apple.com>
11477
11478         PR optimization/5999, middle-end/5731
11479         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11480         multiplications by reciprocals.
11481
11482 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11483
11484         * Makefile.in: Update.
11485         * c-common.c: Include langhooks.h.
11486         (inline_forbidden_p): Use new hook.
11487         * diagnostic.c: Include langhooks.h.
11488         (format_with_decl, announce_function,
11489         default_print_error_function): Use new hook.
11490         * dwarf2out.c (dwarf2_name): Use new hook.
11491         * function.c: Include langhooks.h.
11492         (init_function_start): Use new hook.
11493         * langhooks-def.h (lhd_decl_printable_name): New.
11494         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11495         (LANGHOOKS_INITIALIZER): Update.
11496         * langhooks.c (lhd_decl_printable_name): New.
11497         * langhooks.h (struct lang_hooks): New hook.
11498         * toplev.c (decl_name, decl_printable_name): Remove.
11499         (open_dump_file): Use new hook.
11500         (process_options): Remove old hook.
11501         * tree.h (decl_printable_name): Remove.
11502 objc:
11503         * objc-act.c (objc_init): Remove old hook.
11504         (objc_printable_name): Export.
11505         * objc-act.h (objc_printable_name): New.
11506         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11507
11508 2002-03-19  Jim Blandy  <jimb@redhat.com>
11509
11510         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11511         the start_source_file debug hook, not the current line number.
11512
11513 2002-03-19  Richard Henderson  <rth@redhat.com>
11514
11515         * flow.c (EH_USES): Provide default.
11516         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11517         * doc/tm.texi (EH_USES): New.
11518
11519         * config/ia64/ia64.c (ia64_eh_uses): New.
11520         * config/ia64/ia64-protos.h: Update.
11521         * config/ia64/ia64.h (EH_USES): New.
11522
11523 2002-03-19  Richard Henderson  <rth@redhat.com>
11524
11525         * varasm.c (output_constant_def): Fix stupid typo.
11526
11527 2002-03-19  Richard Henderson  <rth@redhat.com>
11528
11529         PR 5879
11530         * except.c (current_function_has_exception_handlers): New.
11531         * except.h: Declare it.
11532         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11533         Combine tests that disable all sibcalls for the function.
11534
11535 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
11536
11537         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11538         for INTEGER_CST.
11539
11540 2002-03-19  Richard Henderson  <rth@redhat.com>
11541
11542         PR 5977, 5991
11543         * config/ia64/ia64.c: Revert 2002-03-01 patch.
11544         * config/ia64/ia64.h (INIT_EXPANDERS): New.
11545
11546 2002-03-19  Jim Blandy  <jimb@redhat.com>
11547
11548         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11549         name, even if the replacement list contains no tokens, as required
11550         by Dwarf.
11551
11552 2002-03-19  Jason Merrill  <jason@redhat.com>
11553
11554         * varasm.c (globalize_decl): Get the name from the RTL, not
11555         DECL_ASSEMBLER_NAME.
11556
11557         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11558
11559 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
11560
11561         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11562         subdi_carry): Define.
11563
11564 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11565
11566         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11567         about -fpic/-fPIC if extra_warnings set.
11568
11569 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11570
11571         * expr.c (expand_expr): Sign-extend CONST_INT generated from
11572         TREE_STRING_POINTER.
11573         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11574
11575 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11576
11577         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11578         in favor of SP if FRAME_POINTER_REQUIRED is false.
11579
11580 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
11581
11582         * emit-rtl.c (gen_int_mode): New function.
11583         * rtl.h: Prototype for it.
11584         * combine.c (make_extraction, simplify_comparison), expmed.c
11585         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11586         (convert_modes, store_field), optabs.c (expand_fix),
11587         simplify-rtx.c (neg_const_int, simplify_unary_real),
11588
11589         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11590         Use it instead of GEN_INT (trunc_int_for_mode (...)).
11591
11592 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
11593
11594         PR c/5656
11595         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11596         convert_parm_for_inlining.
11597         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11598         Define.
11599         * langhooks-def.h: Likewise.
11600         * objc/objc-lang.c: Likewise.
11601         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11602         function.
11603         * tree-inline.c (initialize_inlined_parameters):
11604         Call convert_parm_for_inlining lang hook if needed.
11605         * c-typeck.c (c_convert_parm_for_inlining): New function.
11606         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11607
11608 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
11609
11610         * calls.c (precompute_arguments): Do not assume that temporaries
11611         can be destroyed after expanding the argument.
11612         (expand_call): Likewise.
11613
11614 2002-03-15  Eric Christopher  <echristo@redhat.com>
11615
11616         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11617         Fix register preference on last change.
11618         * config/mips/mips.c (mips_return_in_memory): New function.
11619         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11620         * config/mips/mips-protos.h: Declare.
11621         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11622         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11623
11624 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
11625
11626         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11627         a register too.
11628         (anddi3, iorsi3): Likewise.
11629
11630         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11631         use %gprel for symbols that are going to be placed in linkonce
11632         sections.
11633
11634         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11635         RETURN_ADDRESS_POINTER_REGNUM to $ra.
11636         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11637         not needed.  Disregard leaf_function_p().
11638         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11639         mips16 frame pointer.
11640         * config/mips/mips.md (store ra): Only to small SP offsets.
11641         2001-08-22  Graham Stott  <grahams@redhat.com>
11642         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11643         return a REG rtx for the return address register.
11644
11645 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
11646
11647         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11648         constant-pool addresses as "mode-dependent".
11649         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11650
11651 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
11652
11653         PR target/5740
11654         * expr.c (emit_group_load): Use extract_bit_field if
11655         needed for CONCAT arguments.
11656
11657 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
11658
11659         PR target/4863
11660         * arm.md (tablejump): Make this a define_expand.  For PIC add the
11661         offset to the base of the table.
11662         (thumb_tablejump): Matcher for Thumb tablejump insn.
11663         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11664         as the difference of two labels.
11665         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11666         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11667         tables in the code.
11668         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11669         * arm.c (get_jump_table_size): If the table is not in the text
11670         section, return zero.
11671
11672 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
11673
11674         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11675         of gen_rtx_SUBREG.
11676         (arm_reload_out_hi): Use gen_lowpart instead of
11677         gen_rtx_SUBREG to access QImode components.
11678         * config/arm/arm.md: Disable zero_extend split for QImode
11679         subregs in BIG_ENDIAN mode.
11680         (storehi_bigend): Match use of least significant byte.
11681         (storeinthi): Remove extraneous SUBREG.
11682         Add missing construction of operands[2].
11683         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11684         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11685         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11686
11687 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
11688
11689         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11690         any_operand.
11691
11692 2002-03-17  Richard Henderson  <rth@redhat.com>
11693
11694         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11695         explicitly.
11696
11697 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11698
11699         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11700         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11701
11702 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11703
11704         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11705
11706         * predict.c (estimate_bb_frequencies): Delete unused variables.
11707
11708 2002-03-17  Richard Henderson  <rth@redhat.com>
11709
11710         * config/ia64/ia64.c (ia64_attribute_table): Move before
11711         targetm definition.  Make static.
11712
11713 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11714
11715         * c-common.h (yyparse, c_common_parse_file): New.
11716         * c-lang.c: Include c-common.h.
11717         (LANG_HOOKS_PARSE_FILE): Redefine.
11718         * c-lex.c: Include c-common.h.
11719         (yyparse): Rename c_common_parse_file.  Call yyparse.
11720         * c-parse.in (yyparse): Remove macro.
11721         * c-tree.h (yyparse_1): Remove.
11722         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11723         (LANG_HOOKS_INITIALIZER): Update.
11724         * langhooks.h (struct lang_hoooks): New hook parse_file.
11725         * toplev.c (compile_file): Use parse_file hook.
11726         * tree.h (yyparse): Remove.
11727         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11728
11729 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11730
11731         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11732         float_truncate, not fix.
11733         ("*truncdfsf2_real"): Ditto.
11734         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11735
11736         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11737
11738 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
11739
11740         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11741         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
11742         where appropriate.  Make the second reference to
11743         leaf_function_p a function call, as intended.  Reindented.
11744
11745         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11746         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11747
11748         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11749         add register to non-constant into sp.
11750
11751         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11752         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11753         (mips16_gp_pseudo_rtx): Lose.
11754         (INIT_EXPANDERS): Deleted.
11755         * config/mips/mips.c (mips_init_machine_status): New.
11756         (mips_free_machine_status): New.
11757         (mips_mark_machine_status): New.
11758         (override_options): Set them.
11759         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11760         (struct machine_function): ... new.  Replaced all references.
11761         (mips_add_gc_roots): Don't mark them.
11762         (embedded_pic_fnaddr_reg): New, extracted from...
11763         (embedded_pic_offset): ... here.
11764         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11765         (movsi): Likewise.
11766
11767 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11768
11769         * cppinit.c: Revert -MD removal.
11770
11771 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11772
11773         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11774         soft registers by default for 68HC12.
11775         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11776         when compiling with -fomit-frame-pointer.
11777         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11778         (expand_epilogue): Likewise.
11779         (m68hc11_gen_rotate): Use exg when rotating by 8.
11780
11781 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11782
11783         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11784         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11785         (splits): Remove unused add splits.
11786         ("*addhi3_68hc12"): Tune constraints.
11787         ("addhi_sp"): Try to use X instead of Y in all cases and if the
11788         constant fits in 8-bits and D is dead use abx/aby instructions.
11789         ("*addhi3"): Remove extern declaration of ix_reg.
11790         ("*subsi3"): Optimize and provide new split.
11791         ("subhi3"): Cleanup.
11792         ("*subhi3_sp"): Avoid saving X if we know it is dead.
11793         (arith splits): For 68hc12 save the address register on the stack
11794         and do the arithmetic operation with a pop.
11795
11796 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11797
11798         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11799         allocating QImode in address registers.
11800         ("*movqi_m68hc11"): Likewise.
11801
11802 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
11803
11804         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11805
11806 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11807
11808         * cppinit.c (print_help): Display -MD and -MMD.
11809         Don't display usage string.  Update assertion syntax and
11810         typo.
11811         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11812         (cpp_handle_option): Update.
11813
11814 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
11815
11816         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11817         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11818         and define it so that regardless of target CPU size,
11819         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11820         of "int" rather than "long."
11821
11822 2002-03-15  Richard Henderson  <rth@redhat.com>
11823
11824         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11825         size as a tree.
11826
11827 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11828
11829         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11830         ("tstqi" split): Avoid using memory for tstqi on address register.
11831         (splits): Remove constraints.
11832         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11833         ("cmpdf", "cmpsf"): Remove since not used.
11834         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11835         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11836
11837 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11838
11839         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11840         ("neghi2"): Tighten constraints.
11841         ("one_cmplsi2"): Optimize and simplify split.
11842         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11843
11844 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11845
11846         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11847         and split of AND operation to clear the upper bits.
11848         ("*logicalsi3_zextqi"): Likewise.
11849         ("*logicallhi3_zexthi_ashift8"): Likewise.
11850         ("*logicalsi3_silshr16"): Likewise.
11851         ("logicalsi3_silshl16"): Likewise.
11852         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11853
11854 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11855
11856         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11857         (m68hc11_indirect_p): New function.
11858         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11859         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11860         TARGET_M6812.
11861         (asm_print_register): Likewise.
11862         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11863         (m68hc11_indirect_p): Declare.
11864         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11865         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11866         (TARGET_SWITCHES): New option -mrelax.
11867         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11868         destination.
11869         ("iorsi3", "xorsi3"): Likewise.
11870         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11871         ("*andhi3_mem"): New to handle destination in memory with bclr
11872         and a scratch register.
11873         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11874         ("*andhi3_const"): New when operand2 is constant.
11875         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11876         ("*andhi3_gen"): Cleanup of the old "andhi3".
11877         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11878         ("xorqi3"): Update constraints.
11879
11880 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11881
11882         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11883         for reg_equiv_memory_loc when the operand is a register that does
11884         not get a hard register (stack location).
11885         (tst_operand): After reload, accept all memory operand.
11886         (symbolic_memory_operand): Fix detection of symbolic references.
11887         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11888         accept symbols and any constant.
11889
11890 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11891
11892         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11893         note on the insn that sets the soft frame register.
11894         (must_parenthesize): ix and iy are also reserved names.
11895         (print_operand_address): One more place where parenthesis are required
11896         to avoid confusion with register names.
11897         (m68hc11_gen_movhi): Allow push of stack pointer.
11898         (m68hc11_check_z_replacement): Fix handling of parallel with a
11899         clobber.
11900         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11901         the replacement register is.
11902         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11903         and D8_REGS classes.
11904         (MODES_TIEABLE_P): All modes are tieable except QImode.
11905
11906 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11907
11908         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11909         (___subdi3): Likewise.
11910         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11911         (__map_data_section): Optimize 68hc11 case.
11912
11913 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11914
11915         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11916         than a shift to avoid adding a register with itself.
11917         (m68hc11_memory_move_cost): Take into account NO_REGS.
11918         (m68hc11_register_move_cost): Update and use memory move cost
11919         for soft registers.
11920         (m68hc11_address_cost): Make cost of valid offset not 0 so that
11921         it gives more opportunities to cse to optimize.
11922         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11923         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11924
11925 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
11926
11927         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11928         * c-common.def (CLEANUP_STMT): New tree node.
11929         * c-common.h (CLEANUP_DECL): New macro.
11930         (CLEANUP_EXPR): Likewise.
11931         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11932         * expr.c (expand_expr): Tidy.
11933         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11934         * tree-inline.c (initialize_inlined_parameters): Clean up
11935         new local variables.
11936
11937 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11938
11939         PR bootstrap/4128
11940         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11941         before movrXX only, use reg_overlap_mentioned_p.
11942         Only special case NE if just one insn can be generated.
11943
11944 2002-03-15  Jason Merrill  <jason@redhat.com>
11945
11946         * varasm.c (assemble_variable): Call resolve_unique_section before
11947         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
11948         of error_mark_node.
11949
11950 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11951
11952         PR target/5170
11953         * arm.md (split pattern for thumb shiftable immediates): Add comment
11954         explaining non-obvious test.
11955
11956 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11957
11958         PR target/5712
11959         * arm.md (movaddr, movaddr_insn): Delete.
11960
11961 2002-03-15  Jason Merrill  <jason@redhat.com>
11962
11963         * toplev.c (wrapup_global_declarations): Clarify variable handling.
11964         -fkeep-static-consts doesn't apply to comdats.
11965
11966 2002-03-14  Richard Henderson  <rth@redhat.com>
11967
11968         * c-decl.c: Include c-pragma.h.
11969         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11970         (finish_function): Tidy.
11971         * c-pragma.c: Include c-common.h.
11972         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11973         (handle_pragma_weak): Use them.
11974         (init_pragma): Register pending_weaks.
11975         * c-pragma.h (maybe_apply_pragma_weak): Declare.
11976         * print-tree.c (print_node): Print DECL_WEAK.
11977         * varasm.c (mark_weak_decls): Remove.
11978         (remove_from_pending_weak_list): Remove.
11979         (add_weak): Remove.
11980         (asm_emit_uninitialised): Call globalize_decl for weak commons.
11981         (weak_decls): Make a tree_list.
11982         (declare_weak): Cons weak_decls directly.
11983         (globalize_decl): Remove weak_decls elements directly.
11984         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
11985         symbols.  Don't pretend to handle aliases.
11986         (init_varasm_once): Update weak_decls registry.
11987         * Makefile.in: Update dependencies.
11988
11989 2002-03-14  Richard Henderson  <rth@redhat.com>
11990
11991         PR target/5312
11992         * config/ia64/ia64.c: Include tm_p.h last.
11993         (gen_nop_type): Remove duplicate definition.
11994         (cycle_end_fill_slots): Set sched_data for second L slot.
11995         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11996         (nop_cycles_until): Fix typos.
11997
11998 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11999
12000         PR optimization/5891
12001         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12002
12003 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12004
12005         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12006           descriptors correctly.
12007
12008 2002-03-14  Michael Meissner  <meissner@redhat.com>
12009
12010         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12011         100, allowing MAX_UNROLLED_INSNS to be overridden.
12012
12013         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12014         --param.
12015
12016         * unroll.c (params.h): Include.
12017         (MAX_UNROLLED_INSNS): Delete, now in params.h.
12018
12019         * doc/invoke.texi (--param max-unroll-insns): Document.
12020
12021         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12022
12023 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12024
12025         * arm.md: Fix warnings about constraints in peepholes and splits.
12026
12027 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
12028
12029         * cpphash.h (struct lexer_state): Remove line_extension member.
12030         * cpplib.c (dequote_string, do_linemarker): New functions.
12031         (linemarker_dir): New data object.
12032         (DIRECTIVE_TABLE): No longer need to interpret #line in
12033         preprocessed source.  Delete obsolete comment about return
12034         values of handlers.
12035         (end_directive, directive_diagnostics, _cpp_handle_directive):
12036         Don't muck with line_extension.
12037         (directive_diagnostics): No need to issue warnings for
12038         linemarkers here.
12039         (_cpp_handle_directive): Issue warnings for linemarkers here,
12040         when appropriate.  Dispatch linemarkers to do_linemarker, not
12041         do_line.
12042         (do_line): Code to handle linemarkers split out to do_linemarker.
12043         Convert escape sequences in filename argument, both places.
12044
12045         * cppmacro.c (quote_string): Rename cpp_quote_string and
12046         export.  All callers changed.
12047         * cpplib.h (cpp_quote_string): Prototype.
12048         * cppmain.c (print_line): Call cpp_quote_string on to_file
12049         before printing it.
12050
12051         * doc/cpp.texi: Document that escapes are now interpreted in
12052         #line and in linemarkers, and that non-printing characters are
12053         converted to octal escapes when linemarkers are generated.
12054
12055 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12056
12057         * emit-rtl.c (try_split): Use delete_insns.
12058         * recog.c (split_all_insns): Fix terminating condition.
12059
12060 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12061             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12062
12063         PR target/5828
12064         * arm.c (arm_output_epilogue): Fix floating-point register save
12065         adjustment when using a frame pointer.
12066
12067 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
12068
12069         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12070         * config/mips/mips.c (compute_frame_size): Retrofit them here.
12071         (save_restore_insns, mips_expand_epilogue): And here.
12072         (build_mips16_call_stub): And here.
12073         (mips_function_value): Use the new macros to decide whether a single
12074         or complex float can be returned in floating-point registers.  Return
12075         a parallel rtx in the complex case.
12076
12077 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
12078
12079         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12080         call after liveness analysis.
12081
12082         * recog.c (split_insn): Use delete_insn_and_edges.
12083
12084         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12085         instructions to have branch prediction notes.
12086         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12087
12088 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12089
12090         * configure.in: Don't pass -Wno-long-long to a ADA compiler
12091         that doesn't support it.
12092         * configure: Regenerate.
12093
12094 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12095
12096         PR target/5626
12097         * config/sparc/sparc.md (normal_branch, inverted_branch,
12098         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12099         inverted_fp_branch): Adjust calls to output_cbranch.
12100         Set length attribute.
12101         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12102         output_v9branch.  Set length attribute.
12103         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12104         predicates.
12105         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12106         (output_cbranch): Likewise.  Handle far branches.
12107         (output_v9branch): Handle far branches.
12108         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12109         Adjust prototypes.
12110         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12111         noov_compare64_op predicates.
12112
12113 2002-03-13  Jason Merrill  <jason@redhat.com>
12114
12115         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12116         into the function and constify it.
12117         * gthr-dce.h, gthr-solaris.h: Likewise.
12118
12119 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
12120
12121         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12122         * config/rs6000/rs6000.c (rs6000_va_arg): Use
12123         std_expand_builtin_va_arg if not ABI_V4.
12124
12125 2002-03-13  Jason Merrill  <jason@redhat.com>
12126
12127         * varasm.c (globalize_decl): New fn.
12128         (assemble_start_function): Use it.
12129         (asm_emit_uninitialized): Use it.
12130         (assemble_alias): Use it.
12131         (assemble_variable): Use it.
12132
12133 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
12134
12135         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12136         2002-03-12 internal visibility change.
12137         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12138         visibility into SYMBOL_REF_FLAG.
12139
12140 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
12141
12142         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12143         VOIDmode operand.  Add compile-time optimization for constant results.
12144
12145 2002-03-12  Jason Merrill  <jason@redhat.com>
12146
12147         * c-typeck.c (convert_for_assignment): Don't allow conversions
12148         between pointers and references.  Only allow lvalues to convert to
12149         reference.
12150
12151 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
12152
12153         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12154         before prologue, to avoid scheduling problems.
12155
12156 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12157
12158         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12159         (ELIMINABLE_REGS): Add sfp->sp.
12160         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12161
12162 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12163
12164         PR optimization/5892
12165         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12166
12167 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12168
12169         * loop.c (basic_induction_var): Don't call convert_modes if mode
12170         classes are different.
12171
12172 2002-03-12  Richard Henderson  <rth@redhat.com>
12173
12174         PR optimization/5901
12175         * function.c (reposition_prologue_and_epilogue_notes): Position
12176         the markers after/before the last/first insn not deleted.
12177
12178 2002-03-12  Richard Henderson  <rth@redhat.com>
12179
12180         PR optimization/5878
12181         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12182         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12183         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12184
12185         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12186         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12187         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12188
12189         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12190         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12191         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12192         also.  Don't set it if not flag_pic.
12193         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12194         to be INVALID_REGNUM when not used.
12195
12196 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
12197
12198         * expmed.c (store_bit_field): Reset alias set for memory.
12199         (extract_bit_field): Same.
12200
12201 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12202
12203         * c-common.c (c_tree_code_type, c_tree_code_length,
12204         c_tree_code_name, add_c_tree_codes): Delete.
12205         * c-common.h (add_c_tree_codes): Delete.
12206         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12207         Define.
12208         * c-objc-common.c (c_objc_common_init): Don't call
12209         add_c_tree_codes, instead set lang_unsafe_for_reeval.
12210         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12211         objc_tree_code_name, add_objc_tree_codes): Delete.
12212         (objc_init): Don't call add_objc_tree_codes.
12213         * objc/objc-lang.c (tree_code_type, tree_code_length,
12214         tree_code_name): Define.
12215         * toplev.c (lang_independent_init): Don't set
12216         tree_code_length[IDENTIFIER_NODE].
12217         * tree.c (tree_code_type, tree_code_length, tree_code_name):
12218         Delete definitions, moved to language front-ends.
12219         * tree.def (IDENTIFIER_NODE): Hardwire the length.
12220         * tree.h (tree_code_type, tree_code_length, tree_code_name):
12221         Const-ify.
12222         (tree_code_length): Change type to unsigned char.
12223
12224 2002-03-12  Richard Henderson  <rth@redhat.com>
12225
12226         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12227         internal visibility change.
12228
12229 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12230
12231         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12232         validize_mem() instead of change_address to avoid clobbering
12233         memory attributes.
12234
12235 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12236
12237         * c-lex.h (position_after_whitespace): Remove.
12238
12239 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
12240
12241         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12242         (lex_string): Use unsigned char pointers.
12243
12244 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12245
12246         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12247         is not a valid memory_operand.
12248
12249 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12250
12251         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12252         * config/xtensa/lib1funcs.asm: Fix copyright to include
12253         special case for libgcc files.
12254         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12255         (__divsi3): Likewise.
12256         (__umodsi3): Likewise.
12257         (__modsi3): Likewise.
12258         * config/xtensa/lib2funcs.S: Fix copyright to include
12259         special case for libgcc files.
12260
12261 2002-03-12  Tom Rix  <trix@redhat.com>
12262
12263         * collect2.c (resolve_lib_name): Move outside of
12264         OBJECT_FORMAT_COFF ifdef.
12265         (ignore_library): Same.
12266
12267 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12268
12269         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12270
12271 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12272
12273         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12274         to function_section before writing out the constant pool.
12275
12276 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
12277
12278         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12279         zero_constant.
12280         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12281
12282 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
12283
12284         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12285         (adddi3): Likewise.
12286         (movdf): Likewise.
12287         (movdi): Likewise.
12288         (cmpsi splitter): Likewise.
12289         (modsi3): Fail if <= 0.
12290         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12291         redundant test when HOST_BITS_PER_WIDE_INT != 32.
12292         (reg_or_sub_cint64_operand): Likewise.
12293         (num_insns_constant_wide): Optimize sign extension.
12294         (rs6000_legitimize_address): Likewise.
12295
12296 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12297
12298         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12299         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12300
12301 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12302
12303         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12304         address calculation.
12305
12306 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12307
12308         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12309         scratch register to DImode / TImode.
12310         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12311         register used does not overlap the target.
12312
12313 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12314
12315         * Makefile.in (debug.o): Depend on debug.h.
12316         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12317         * debug.c (do_nothing_debug_hooks): Likewise.
12318         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12319         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12320         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12321         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12322         * dwarfout.c (dwarf_debug_hooks): Likewise.
12323         * integrate.c (output_inline_function): Likewise.
12324         * objc/objc-act.c (synth_module_prologue): Likewise.
12325         * sdbout.c (sdb_debug_hooks): Likewise.
12326         * toplev.c (debug_hooks): Likewise.
12327         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12328
12329 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12330
12331         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12332         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12333         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12334         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12335         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12336         * defaults.h (POINTER_SIZE): Define.
12337         * doc/tm.texi (POINTER_SIZE): Document default.
12338
12339 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12340
12341         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12342
12343 2002-03-11  Richard Henderson  <rth@redhat.com>
12344
12345         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12346         if rebuild_label_notes_after_reload.
12347
12348 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
12349
12350         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
12351         emit pic register load if "internal" visibility.
12352         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12353         (cris_expand_builtin_va_arg): Do all computations on trees.
12354
12355 2002-03-11  Richard Henderson  <rth@redhat.com>
12356
12357         * rtlanal.c: Include recog.h.
12358         (keep_with_call_p): Fix thinko.
12359         * Makefile.in (rtlanal.o): Update dependencies.
12360
12361 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
12362
12363         * genflags.c (gen_insn): Use IS_VSPACE.
12364         * genoutput.c (output_insn_data): Likewise.
12365         (process_template): Likewise.
12366
12367 2002-03-11  Richard Henderson  <rth@redhat.com>
12368
12369         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12370
12371 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12372
12373         * Makefile.in: Update.
12374         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12375         Update documentation.
12376         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12377         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12378
12379 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
12380
12381         * Makefile.in: Give texi2pod its input file as a command line
12382         argument, not on stdin.
12383
12384 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
12385             Daniel Berlin  <dan@dberlin.org>
12386
12387         C++ alias analysis improvement.
12388         * alias.c (record_component_aliases): Record aliases for base
12389         classes too.
12390
12391 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
12392
12393         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12394
12395 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
12396
12397         * toplev.c (vms_fopen): Remove, not needed.
12398
12399         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12400
12401         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12402
12403         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12404         for FP, already done later.
12405
12406         * toplev.c (debug_args): Add entry for VMS_DEBUG.
12407         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12408
12409 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
12410
12411         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12412         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12413         LARGEST_EXPONENT_IS_NORMAL for the given mode.
12414         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12415         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12416         (ediv, emul, eldexp, esqrt): Likewise.
12417         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12418         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12419         (saturate): New function.
12420         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12421         (make_nan): Use a saturation value instead of a NaN if
12422         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
12423         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12424         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
12425         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
12426         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12427         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12428         !ROUND_TOWARDS_ZERO.
12429         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12430         (ROUND_TOWARDS_ZERO): Document.
12431
12432 2002-03-11  Andreas Jaeger  <aj@suse.de>
12433
12434         * cfg.c (dump_flow_info): Remove unused variable.
12435
12436 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
12437
12438         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12439         computations on trees.
12440
12441 2002-03-10  Richard Henderson  <rth@redhat.com>
12442
12443         PR 5693:
12444         * reload.c (copy_replacements_1): New.
12445         (copy_replacements): Use it to recurse through the rtx.
12446
12447 2002-03-10  Richard Henderson  <rth@redhat.com>
12448
12449         * loop.c (strength_reduce): Compute number of iterations as
12450         unsigned HOST_WIDE_INT.
12451
12452 2002-03-10  Richard Henderson  <rth@redhat.com>
12453
12454         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12455         to move away from the end of the block.
12456
12457 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12458
12459         PR preprocessor/5899
12460         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12461
12462 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12463
12464         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12465
12466         * attribs.c (decl_attributes): Fix signed/unsigned warning.
12467
12468 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
12469
12470         * config/mmix/mmix.c: Improve comments.
12471         (mmix_target_asm_function_prologue): Drop variable
12472         empty_stack_frame.  Don't allocate unused slot above fp.
12473         (mmix_target_asm_function_epilogue): Mirror prologue changes.
12474         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12475         brace in first column.
12476         (enum reg_class): Ditto.
12477         (FIRST_PARM_OFFSET): Now 0.
12478         (USER_LABEL_PREFIX): Remove #if 0:d definition.
12479
12480 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12481
12482         * combine.c (make_extraction): Fix error in last change.
12483
12484 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12485
12486         * c4x.c (c4x_fp_reglist): Const-ify.
12487         * cris.c (cris_print_operand): Likewise.
12488         * i386.c (ix86_va_arg): Likewise.
12489         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12490         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12491         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12492         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12493         * mcore.h (regno_reg_class): Likewise.
12494         * mips.c (gen_int_relational): Likewise.
12495         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12496         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12497         * pdp11.c (move_costs): Likewise.
12498         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12499         * s390.c (s390_branch_condition_mnemonic, regclass_map):
12500         Likewise.
12501         * s390.h (regclass_map): Likewise.
12502         * sh.c (shift_amounts): Likewise.
12503         * sh.md (rotlsi3): Likewise.
12504
12505 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12506
12507         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12508         (ne0+5): Use new clobber to generate proper shift pattern.
12509         Patch by Michael Matz <matz@kde.org>.
12510
12511 2002-03-09  Andreas Schwab  <schwab@suse.de>
12512
12513         * gcc.c (validate_all_switches): Also handle `%W{...}'.
12514
12515 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12516
12517         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12518
12519 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
12520
12521         PR middle-end/5877
12522         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12523         even for non-representable constants.
12524
12525 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12526
12527         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12528         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12529         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12530         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12531         (pop_function_context): Compute MAY_SHARE parameter for
12532         fixup_var_refs.
12533         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12534         (gen_mem_addressof): Call fixup_var_refs with new parm.
12535
12536         * combine.c (make_extraction): Don't make extension of CONST_INT.
12537
12538 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12539
12540         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12541         in o32 and o64 ABIs.
12542         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12543         but getting fixed-size structs passed in registers regardless of
12544         padding in o32 and o64 ABIs.
12545
12546         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12547         offset before loading address of argument passed by transparent
12548         reference.
12549
12550 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12551
12552         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12553
12554 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12555
12556         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12557         marker such that registers after it are saved.
12558
12559 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12560
12561         * sparc.c (arith_4096_operand): Fix error in last change.
12562
12563 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12564
12565         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12566         defaults for MEABI.
12567
12568 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12569
12570         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12571         vectors.
12572
12573 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12574
12575         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12576
12577 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12578
12579         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12580         removed; fix return value.
12581         * combine.c (combine_instructions): Dirtify blocks where we failed to
12582         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12583         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12584
12585 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12586
12587         * gcse.c (insert_insn_end_bb): Fix typo in last change.
12588
12589 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
12590
12591         * recog.c (peephole2_optimize): Re-distribute EH edges.
12592
12593 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12594
12595         * expr.c (expand_expr): Use unsave lang hook.
12596         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12597         (LANG_HOOKS_INITIALIZER): Update.
12598         * langhooks.h (struct lang_hooks): New hook unsave.
12599         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12600         (unsave_expr_1): Remove unused lang_unsave_expr_now.
12601         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
12602         (unsave_expr_now): Remove.
12603         * tree.h (unsave_expr_now, lang_unsave,
12604         lang_unsave_expr_now): Remove.
12605         (lhd_unsave): New.
12606
12607 2002-03-08  Andreas Jaeger  <aj@suse.de>
12608
12609         * flow.c (propagate_block_delete_insn): Remove unused variable.
12610
12611 2002-03-08  Kazu Hirata  <kazu@hxi.com>
12612
12613         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12614         insn length for memory load/store.
12615
12616 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12617
12618         * doc/install.texi (--with-libiconv-prefix): Document.
12619
12620 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
12621
12622         * doc/sourcebuild.texi: Fix typo.
12623
12624 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
12625
12626         PR c/3711
12627         * builtins.c (std_expand_builtin_va_arg): Do all computations on
12628         trees.
12629
12630 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12631
12632         * rtl.c (copy_most_rtx): Move from here ...
12633         * emit-rtl.c (copy_most_rtx): ... to here.
12634
12635 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12636
12637         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12638         SUBTARGET_CPP_SIZE_SPEC.
12639         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12640
12641         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12642
12643 2002-03-07  Matt Hiller  <hiller@redhat.com>
12644
12645         * gensupport.c (first_dir_md_include): Renamed from include;
12646         change all references.
12647         (last_dir_md_include): Renamed from last_include; change all
12648         references.
12649         (init_md_reader): Unconditionally initialize base_dir whether or
12650         not filename is a relative path.
12651
12652 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
12653
12654         * config/fp-bit.c (_unord_f2): Compile it in even if
12655         US_SOFTWARE_GOFAST is enabled.
12656
12657         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12658         NULL_RTX.  Set all HFmode operations as NULL_RTX.
12659         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12660         NULL_RTX, try reversing the comparison and the operands.
12661
12662 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12663
12664         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12665         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12666         and MATCH_OP_DUP.
12667
12668 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
12669
12670         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12671
12672 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12673
12674         * basic-block.h (fixup_abnormal_edges): Declare.
12675         * reload1.c (fixup_abnormal_edges): New function.
12676         * reg-stack.c (convert_regs): Use it.
12677
12678         * gcse.c (insert_insn_end_bb): Handle trapping insns.
12679
12680         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12681
12682 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
12683
12684         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12685         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12686         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12687         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12688         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12689         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12690         unless x and y could be infinite.
12691         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12692         Check that the common type of both arguments is a real, even for
12693         targets without unordered comparisons.  Allow an integer argument
12694         to be compared against a real.
12695         (expand_tree_builtin): Use expand_unordered_cmp.
12696         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12697         * cse.c (fold_rtx): Likewise.  Fix indentation.
12698         * fold-const.c (fold_real_zero_addition_p): New.
12699         (fold): Use it, and the new HONOR_... macros.
12700         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12701         * jump.c (reversed_comparison_code_parts): After searching for
12702         the true comparison mode, use HONOR_NANS to decide whether it
12703         can be safely reversed.
12704         (reverse_condition_maybe_unordered): Remove IEEE check.
12705         * simplify-rtx.c (simplify_binary_operation): Use the new macros
12706         to decide which simplifications are valid.  Allow the following
12707         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12708         and (a - -b) to (a + b).
12709         (simplify_relational_operation): Use HONOR_NANS.
12710         * doc/tm.texi: Document the MODE_HAS_... macros.
12711
12712 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12713
12714         * combine.c (simplify_comparison): If simplifying a logical shift
12715         right and compare with constant, force the comparison to unsigned.
12716
12717 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
12718
12719         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12720
12721         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12722         -mabi=no-altivec
12723         (alt_reg_names): Remove % for vrsave.
12724
12725 2002-03-06  Richard Henderson  <rth@redhat.com>
12726
12727         PR optimization/5844
12728         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
12729         if used indicates we've already emitted one copy of an operand.
12730         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12731         (gen_split): Supply a non-null used.
12732
12733 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12734
12735         * reload1.c (reload): Unshare all rtl after reload is done.
12736
12737         * simplify-rtx.c (simplify_plus_minus): Do not abort,
12738         but simply fail if the expression is too complex to simplify.
12739         (simplify_gen_binary): Handle simplify_plus_minus failures.
12740
12741 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
12742
12743         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12744         consistently call delete_trivially_dead_insns after CSE and GCSE;
12745         fix DFI_life dumping; do jump threading after liveness; do crossjumping
12746         after liveness2; update comment in last crossjumping.
12747         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12748
12749 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
12750
12751         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12752         after completing fast dead code elimination.
12753
12754         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12755         COMPARE operator.
12756
12757 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
12758
12759         * version.c:  Fix misplaced leading blanks on first line.
12760
12761 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
12762
12763         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12764
12765 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
12766
12767         * cfgcleanup.c (mentions_nonequal_regs): New function.
12768         (thread_jump): Use it.
12769         * toplev.c (rest_of_compilation): Run jump threading after
12770         liveness.
12771
12772 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
12773
12774         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12775         patch.
12776
12777 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
12778
12779         * predict.c (estimate_bb_frequencies): Do not reload the
12780         frequencies from notes.
12781
12782 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
12783
12784         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12785         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12786
12787         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12788         delete_noop_moves): Return indeger.
12789         * flow.c (ndead): New variable.
12790         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12791         BB argument; update callers.
12792         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12793         (life_analysis): Do not call purge_all_dead_edges.
12794         (update_life_info): Return number of deleted insns; print statistics.
12795         (update_life_info_in_dirty_blocks): likewise.
12796         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12797         return number of insns deleted.
12798
12799         * cse.c: Include timevar.h
12800         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12801         iterate until stabilizes; print statistics; return number of killed
12802         insns.
12803         * Makefile.in: (cse.o): Add timevar.h dependency
12804         * rtl.h (delete_trivially_dead_insns): New.
12805         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12806         * toplev.c (rest_of_compilation): Update callers.
12807
12808         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12809         (try_optimize_cfg): Do not update liveness.
12810         (cleanup-cfg): Loop until try_optimize_cfg and dead code
12811         removal stabilizes; use delete_trivially_dead_insns.
12812
12813         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12814
12815 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
12816
12817         * cppmain.c (setup_callbacks): Disable #pragma and #ident
12818         callbacks when processing assembly language.
12819
12820 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12821
12822         * pa.h (ASM_FILE_END): Define.
12823         * som.h (ASM_FILE_END): Delete.
12824
12825         * pa.c (function_arg): Don't pass floats in general registers in
12826         indirect calls if TARGET_ELF32.
12827
12828 2002-03-05  Richard Henderson  <rth@redhat.com>
12829
12830         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12831
12832 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
12833
12834         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12835
12836 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12837
12838         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12839         -r command line.  Don't hide any symbols if not building
12840         shared libgcc.
12841
12842 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
12843
12844         * cfg.c (dump_flow_info): Warn about profile mismatches.
12845         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12846         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12847
12848 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12849
12850         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12851         wide volatile memory by parts.
12852
12853 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12854
12855         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12856         is NULL.
12857
12858 2002-03-05  Richard Henderson  <rth@redhat.com>
12859
12860         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12861
12862 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12863
12864         * toplev.c (documented_lang_options): Document more
12865         language-specific options.
12866         * doc/invoke.texi (Warning Options): Correct documentation for
12867         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12868         * c-decl.c (c_decode_option): Use a table to handle warning options.
12869
12870 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
12871
12872         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12873         parameter to mmix_encode_section_info.
12874         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12875         relocatably.  Always produce ELF, not mmo if linking relocatably.
12876         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12877         first is non-zero, don't add symbol prefix.
12878         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12879         prototype accordingly.
12880
12881 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
12882
12883         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12884
12885 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
12886
12887         * configure.in: Increase required makeinfo version to 4.1.
12888         * configure: Regenerate.
12889
12890 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12891
12892         * .cvsignore: Remove *.info* and genrtl*; these files are generated
12893         elsewhere now.
12894
12895 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12896
12897         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12898         * doc/invoke.texi: Fix @math uses.
12899
12900 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12901
12902         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12903         removal
12904
12905 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
12906
12907         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12908         (powerpc-*-eabisimaltivec*): Same.
12909
12910         * config/rs6000/t-ppcendian: New.
12911
12912 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12913
12914         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12915         nonimmediate_src_operand and nonimmediate_lsrc_operand to
12916         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12917
12918 2002-03-03  Richard Henderson  <rth@redhat.com>
12919
12920         * toplev.c (rest_of_decl_compilation): Revert last two changes.
12921
12922 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
12923
12924         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12925         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12926         tree.c, config/m68k/m68k.c:
12927         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12928         REAL_ARITHMETIC blocks unconditional.  Delete some further
12929         #ifdef blocks predicated on REAL_ARITHMETIC.
12930         * flags.h, toplev.c: Delete remaining references to
12931         flag_pretend_float.
12932
12933         * doc/invoke.texi: Remove documentation of -fpretend-float.
12934         * doc/tm.texi: Describe the various REAL_* macros as provided by
12935         real.h, not by the target configuration files.
12936
12937         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12938         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12939         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12940         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12941         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12942         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12943         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12944         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12945         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12946         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12947         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12948         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12949         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12950         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12951         config/xtensa/xtensa.h:
12952         Do not define, undefine, or mention in comments any of
12953         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12954         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12955         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12956         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12957         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12958         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12959         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12960         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12961         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12962
12963 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12964
12965         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12966         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12967         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12968         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12969         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12970         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12971         Delete.
12972         * defaults.h (BITS_PER_WORD): Define.
12973         * doc/tm.texi (BITS_PER_WORD): Document default value.
12974
12975         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12976         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12977         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12978
12979 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12980
12981         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12982         lieu of explicit sizeof/sizeof.
12983         * i386.c (override_options, ix86_init_mmx_sse_builtins,
12984         ix86_expand_builtin): Likewise.
12985         * mips.c (mips_add_gc_roots): Likewise.
12986         * mmix.c (mmix_output_condition): Likewise.
12987         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12988         altivec_init_builtins): Likewise.
12989         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12990         * cppexp.c (Nsuff, parse_number): Likewise.
12991         * cppinit.c (builtin_array_end): Likewise.
12992         * gcc.c (n_default_compilers, process_command): Likewise.
12993         * genpreds.c (output_predicate_decls): Likewise.
12994         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12995         * lcm.c (N_ENTITIES): Likewise.
12996         * stor-layout.c (set_sizetype): Likewise.
12997
12998 2002-03-03  Richard Henderson  <rth@redhat.com>
12999
13000         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13001         for types or labels.
13002
13003 2002-03-03  Richard Henderson  <rth@redhat.com>
13004
13005         * c-decl.c (start_decl): Initialized variables are not common.
13006
13007 2002-03-02  Per Bothner  <per@bothner.com>
13008
13009         * gcc.c (option_map):  Suport new --bootclasspath option.
13010         --CLASSPATH is now just an alias for --classpath.
13011
13012 2002-03-02  Richard Henderson  <rth@redhat.com>
13013
13014         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13015         load if "internal" visibility.
13016         * doc/extend.texi: Document visibility meanings.
13017
13018 2002-03-02  Richard Henderson  <rth@redhat.com>
13019
13020         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13021         to functions as well.
13022
13023 2002-03-02  Richard Henderson  <rth@redhat.com>
13024
13025         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13026         (handle_visibility_attribute): Don't call assemble_visibility.
13027         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13028         without asmspec.  Invoke assemble_alias when needed.
13029         * varasm.c (maybe_assemble_visibility): New.
13030         (assemble_start_function, assemble_variable, assemble_alias): Use it.
13031
13032 2002-03-02  Richard Henderson  <rth@redhat.com>
13033
13034         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13035         invoke ENCODE_SECTION_INFO with first call flag.
13036
13037         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13038         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13039         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13040         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13041         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13042         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13043         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13044         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13045         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13046         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13047         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13048         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13049         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13050         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13051         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13052         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13053         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13054         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13055         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13056         config/sh/sh.h, config/sparc/sparc.h,
13057         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13058         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13059         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13060         FIRST argument.  As needed, examine it and do nothing.
13061
13062         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13063         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13064         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13065
13066         * config/arm/t-pe (pe.o): Add dependencies.
13067
13068 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13069
13070         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13071         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13072         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13073         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13074         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13075         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13076         * defaults.h (BITS_PER_UNIT): Define.
13077         * doc/tm.texi (BITS_PER_UNIT): Document default value.
13078
13079 2002-03-02  Kazu Hirata  <kazu@hxi.com>
13080
13081         * config/h8300/h8300-protos.h: Add a prototype for
13082         compute_a_shift_length.
13083         * config/h8300/h8300.c (h8300_asm_insn_count): New.
13084         (compute_a_shift_length): Likewise.
13085         (h8300_adjust_insn_length): Do not adjust insn length of shift
13086         insns.
13087         * config/h8300/h8300.md (anonymous shift patterns): Use
13088         compute_a_shift_length.
13089
13090 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13091
13092         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13093         trunc_int_for_mode.
13094
13095         * emit-rtl.c (offset_address): Call update_temp_slot_address.
13096
13097 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13098
13099         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13100         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13101         * flags.h (flag_zero_initialized_in_bss): Declare.
13102         * toplev.c (flag_zero_initialized_in_bss): New flag.
13103         (lang_independent_options): Add flag_zero_initialized_in_bss.
13104         * tree.c (initializer_zerop): New function.
13105         * tree.h (initializer_zerop): Declare.
13106         * varasm.c (assemble_variable): If we can emit bss, put zero
13107         initializers in the bss section.
13108
13109 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
13110
13111         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13112         like more than one symbol per .weak directive.
13113
13114 2002-03-01  Richard Henderson  <rth@redhat.com>
13115
13116         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13117         adjust argument_pointer by pretend_args_size.
13118         (ia64_va_start): Adjust va_start address by -pretend_args_size.
13119
13120 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13121
13122         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13123
13124 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
13125
13126         * toplev.c (rest_of_compilation): Delete dead jumptables before
13127         loop.
13128         * flow.c (delete_dead_jumptables): Make global.
13129         * rtl.h (delete_dead_jumptables): Declare.
13130
13131 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
13132
13133         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13134         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13135         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13136
13137 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13138
13139         * config/h8300/h8300-protos.h: Fix formatting.
13140         * config/h8300/h8300.c: Likewise.
13141         * config/h8300/h8300.h: Likewise.
13142
13143 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13144
13145         * config/h8300/h8300.c (print_operand): Support 16-bit
13146         constant addresses.
13147         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13148
13149 2002-02-28  Richard Henderson  <rth@redhat.com>
13150
13151         * expmed.c (store_bit_field): Prevent generation of CONCATs;
13152         pun complex values as integers; use gen_lowpart instead of
13153         gen_rtx_SUBREG.
13154         (extract_bit_field): Likewise.
13155
13156 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
13157             David Edelsohn  <edelsohn@gnu.org>
13158
13159         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13160         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13161         (SUPPORTS_WEAK): Likewise.
13162         * output.h (add_weak): Add tree param.
13163         * varasm.c (add_weak): Likewise.  Save decl.
13164         (struct weak_syms): Add decl field.
13165         (mark_weak_decls): New function.
13166         (init_varasm_once): ggc_add_root mark_weak_decls.
13167         (assemble_start_function): Use ASM_WEAKEN_DECL.
13168         (assemble_variable): Likewise.
13169         (assemble_alias): Likewise.
13170         (declare_weak): Pass decl to add_weak.
13171         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13172         (remove_from_pending_weak_list): Declare and define for
13173         ASM_WEAKEN_DECL.
13174         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13175         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13176         * defaults.h (SUPPORTS_WEAK): Likewise.
13177         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13178         .weak for code sym.  Do emit .size for descriptor sym.
13179         (ASM_DECLARE_FUNCTION_SIZE): Define.
13180         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13181         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
13182         .lglobl unless TARGET_XCOFF.  Formatting fixes.
13183         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13184         .weak for code sym.
13185         (HANDLE_PRAGMA_WEAK): Remove.
13186         (ASM_WEAKEN_LABEL): Remove.
13187         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13188
13189 2002-03-01  Jason Merrill  <jason@redhat.com>
13190
13191         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13192         (TARGET_EXPR_CLEANUP): New macro.
13193
13194 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
13195
13196         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13197         to take ptr_extend into account as third type of extension.
13198         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13199         fields used by SUBREG_PROMOTED_UNSIGNED_P.
13200         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13201         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13202         * calls.c (precompute_arguments): Use new macro.
13203         (expand_call): Ditto.
13204         * combine.c (nonzero_bits): Ditto.
13205         (record_promoted_value): Ditto.
13206         * expr.c (store_expr): Ditto.
13207         (expand_expr): Ditto.
13208         * function.c (assign_parms): Ditto.
13209
13210 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
13211
13212         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13213         override -shared and -shared-libgcc.
13214
13215 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
13216
13217         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13218         of "ultrasparc".
13219         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
13220         to be broken.
13221
13222 2002-02-28  Richard Henderson  <rth@redhat.com>
13223
13224         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13225         4 cycle latency from MM producers.
13226         (ia64_internal_sched_reorder): Likewise with pipeline flush.
13227
13228 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
13229
13230         * mklibgcc.in: Don't use GNU make extension.
13231
13232 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13233
13234         * c-parse.in (STATIC): New terminal.
13235         (scspec): New non-terminal.  Update productions accordingly.
13236         (program): Remove bogus ifc / end ifc.
13237         (array_declarator): Simplify production using STATIC.
13238
13239 2002-02-28  Jim Meyering  <meyering@lucent.com>
13240
13241         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13242         \a still means TARGET_BELL.
13243
13244 2002-02-28  Richard Henderson  <rth@redhat.com>
13245
13246         * haifa-sched.c (sched_emit_insn): New.
13247         (schedule_block): Use last_scheduled_insn to track last insn.
13248         * sched-int.h (sched_emit_insn): Prototype.
13249         * config/ia64/ia64.c (last_issued): Remove.
13250         (ia64_variable_issue): Don't set it.
13251         (nop_cycles_until): Use sched_emit_insn.
13252
13253 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
13254
13255         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13256         extended constants.
13257
13258 2002-02-28  Kazu Hirata  <kazu@hxi.com>
13259
13260         * config/h8300/h8300.c: Fix formatting.
13261         * config/h8300/h8300.h: Likewise.
13262
13263 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13264
13265         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13266         which may overwrite the high byte of the frame pointer.
13267
13268 2002-02-28  Bo Thorsen  <bo@suse.de>
13269
13270         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13271         (STARTFILE_SPEC): Add 64 bit files.
13272         (ENDFILE_SPEC): Likewise.
13273
13274 2002-02-28  Jason Merrill  <jason@redhat.com>
13275
13276         * c-decl.c (finish_function): Only warn about missing return
13277         statement with -Wreturn-type.
13278
13279 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
13280
13281         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13282
13283         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13284         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13285
13286 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13287
13288         * basic-block.h (BB_REACHABLE): Renumber.
13289         (BB_DIRTY, BB_NEW): New flags.
13290         (clear_bb_flags): Declare.
13291         (update_life_info_in_dirty_blocks): Declare.
13292         * cfg.c (clear_bb_flags): New function.
13293         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13294         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13295         reorder_insns, emit_insn_after): Mark block as dirty.
13296         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13297         (update_life_info_in_dirty_blocks): New function.
13298         * recog.c (apply_change_group): Dirtify block.
13299
13300         * cse.c (cse_insn): Reorder emitting of jump insn to keep
13301         cfg consistent.
13302         * gcse.c (delete_null_pointer_checks): Likewise.
13303
13304         * toplev.c (dump_file_index): Move cse2 after bp,
13305         add DFI_null
13306         (dump_file_info): Similary.
13307         (rest_of_compilation): Avoid most of CFG rebuilds;
13308         do first if converision after null pointer checks, do cse2
13309         after branch prediction; avoid full liveness rebuild after
13310         initializing subregs.
13311         * invoke.texi (-d options): Document -du, renumber.
13312
13313         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13314         (notice_new_block): Do not set BB_UPDATE_LIFE.
13315         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13316          merge_blocks_move_successor_nojumps, merge_blocks,
13317          try_crossjump_to_edge): Likewise.
13318         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13319         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13320         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13321         (merge_of_block): Do not use life_data_ok.
13322         (find_if_case_1): Do not use SET_UPDATE_LIFE.
13323         (if_convert): Use BB_DIRTY mechanizm to update life.
13324         * lcm.c (optimize_mode_switching): Update
13325         update_life_info_in_dirty_blocks
13326
13327 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13328
13329         * Makefile.in (integrate.o): Update.
13330         * c-decl.c (copy_lang_decl): Rename.
13331         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13332         * integrate.c: Include langhooks.h.
13333         (copy_decl_for_inlining): Update to use langhook.
13334         * langhooks-def.h (lhd_do_nothing_t,
13335         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13336         (LANG_HOOKS_INITIALIZER): Update.
13337         * langhooks.c (lhd_do_nothing_t): New.
13338         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13339         * tree.h (copy_lang_decl): Remove.
13340 objc:
13341         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13342
13343 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
13344
13345         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13346         POST_DEC, and POST_MODIFY.
13347
13348 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13349
13350         * c-typeck.c (digest_init): Remove unused parameter; all
13351         callers changed.
13352
13353 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
13354
13355         * expmed.c (expand_shift): Correctly test for low part of a
13356         subreg.
13357
13358 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
13359
13360         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13361         insn UIDs with insn addresses.
13362
13363 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13364
13365         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13366         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13367         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13368         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13369         gcc.c, toplev.c: Delete code implementing -traditional mode.
13370
13371         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13372         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13373         Document removal of -traditional mode for compilation, and
13374         remove documentation only relevant to that mode.
13375
13376         * config/nextstep.h, config/ptx4.h, config/svr4.h,
13377         config/convex/convex.h, config/d30v/d30v.h,
13378         config/i386/dgux.h, config/i386/osf1elf.h,
13379         config/i386/osfelf.h, config/i386/osfrose.h,
13380         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13381         config/m68k/hp310.h, config/m88k/dgux.h,
13382         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13383         config/m88k/m88k.h, config/m88k/openbsd.h,
13384         config/mips/abi64.h, config/mips/osfrose.h,
13385         config/mips/svr4-5.h, config/mips/svr4-t.h,
13386         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13387         config/stormy16/stormy16.h: Remove all references to
13388         -traditional from target specs.  Delete all mention of the
13389         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
13390         delete a couple of commented-out definitions of
13391         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13392         to -traditional.
13393
13394         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13395         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13396
13397 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13398
13399         * mklibgcc.in: Don't use \n in a line subject to
13400         interpretation by echo.
13401
13402 2002-02-27  Graham Stott  <grahams@redhat.com>
13403
13404         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13405         Constify NAME.
13406
13407         * loop.c (prescan_loop): Handle PARALLEL.
13408
13409         * unroll.c (loop_iterations): Return 0 if the add_val for
13410         a BIV is REG.
13411
13412         * final.c (output_operand_lossage): Constify PFX_STR.
13413
13414         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13415
13416 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13417
13418         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13419         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13420
13421 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
13422
13423         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13424
13425 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
13426
13427         * cpplex.c (_cpp_lex_token): Handle directives in macro
13428         arguments.
13429         * cpplib.c (_cpp_handle_directive): Save and restore state
13430         if parsing macro args when entering a directive.
13431         * cppmacro.c (collect_args): No need to handle directives
13432         in macro arguments.
13433         (enter_macro_context, replace_args): Use the original macro
13434         definition in case it was redefined whilst collecting arguments.
13435 doc:
13436         * cpp.texi: Update.
13437
13438 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
13439
13440         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13441         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13442         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13443         method on AIX.
13444         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13445         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13446         (load_toc_v4_PIC_2): Same.
13447
13448 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
13449
13450         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13451
13452 2002-02-26  Richard Henderson  <rth@redhat.com>
13453
13454         * config/alpha/alpha.md (ashldi_se): Re-enable.
13455
13456 2002-02-26  Richard Henderson  <rth@redhat.com>
13457
13458         * config/alpha/alpha.c (alpha_encode_section_info): Examine
13459         MODULE_LOCAL_P; improve commentary.
13460
13461 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
13462
13463         * doc/cpp.texi: Clarify documentation of relationship between
13464         #line and #include.
13465
13466 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13467
13468         * config/h8300/h8300-protos.h: Update the prototype for
13469         compute_logical_op_length.  Add the prototype for
13470         compute_logical_op_cc.
13471         * config/h8300/h8300.c (compute_logical_op_length): Figure out
13472         code from operands.
13473         (compute_logical_op_cc): New.
13474         * config/h8300/h8300.md: Combine all the logical op patterns
13475         in HImode and SImode.  Use compute_logical_op_cc.
13476
13477 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
13478
13479         * config/i386/i386.c (print_operand): Don't append ATT-style
13480         length suffixs to x87 opcodes when in Intel mode.
13481
13482 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
13483
13484         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13485         (init_emit_once): Update calls.
13486         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13487         (init_syntax_once): Prototype.
13488
13489 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13490
13491         * pa-linux.h (LIB_SPEC): Update definition.
13492         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13493
13494 2002-02-26  Richard Henderson  <rth@redhat.com>
13495
13496         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13497         if we emitted a stop bit.
13498
13499 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13500
13501         * configure.in (libgcc_visibility): Substitute.
13502         * configure: Rebuilt.
13503         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13504         defined symbols .hidden.
13505
13506 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13507
13508         * attribs.c (c_common_attribute_table): Add visibility.
13509         (handle_visibility_attribute): New function.
13510         * varasm.c (assemble_visibility): New function.
13511         * output.h (assemble_visibility): Add prototype.
13512         * tree.h (MODULE_LOCAL_P): Define.
13513         * crtstuff.c (__dso_handle): Use visibility attribute.
13514         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13515         for MODULE_LOCAL_P symbols too.
13516         * config/ia64/ia64.c (ia64_encode_section_info): Handle
13517         MODULE_LOCAL_P symbols the same way as local symbols.
13518         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13519         into .sdata/.sbss by the user.
13520         * doc/extend.texi (Function Attributes): Document visibility
13521         attribute.
13522
13523 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13524
13525         PR debug/5770
13526         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13527         STRING_CST initializer spanning the whole variable without
13528         embedded zeros.
13529         If expand_expr returned MEM, don't use it.
13530
13531 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
13532
13533         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13534         generate a die for the lexical block.
13535
13536 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13537
13538         * config/h8300/h8300-protos.h: Add a prototype for
13539         compute_logical_op_length.
13540         * config/h8300/h8300.c (compute_logical_op_length): New.
13541         * config/h8300/h8300.md (anonymous logical patterns): Use
13542         compute_logical_op_length for length.
13543
13544 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13545
13546         * dwarf2out.c (modified_type_die): Do not call type_main_variant
13547         for vectors.
13548         (gen_type_die): Same.
13549
13550         * attribs.c (handle_vector_size_attribute): Set debug information.
13551
13552 2002-02-26  Daniel Egger  <degger@fhm.edu>
13553
13554         * config/rs6000/rs6000.md: Swap define_insn attributes to
13555         fix incorrect generation of merge high instructions instead
13556         of merge low.
13557
13558 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13559
13560         * c-typeck.c (really_start_incremental_init): Use
13561         bitsize_zero_node for vectors.
13562
13563 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13564
13565         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13566         ("*set_vrsave_internal"): Same.
13567
13568 2002-02-25  Richard Henderson  <rth@redhat.com>
13569
13570         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13571         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
13572
13573 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
13574
13575         PR target/5755
13576         * config/i386/i386.c (ix86_return_pops_args): Only pop
13577         fake structure return argument if it was passed on the stack.
13578
13579 2002-02-25  Jason Merrill  <jason@redhat.com>
13580
13581         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13582         RESULT_DECL.
13583
13584 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13585
13586         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13587         link with shared_name only.
13588         * doc/invoke.texi (Link Options): Document new behavior.
13589
13590 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13591
13592         * c-typeck.c (push_init_level): Handle vectors.
13593
13594 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13595
13596         * config/sparc/sparc.c (const64_high_operand): Zero-extend
13597         operands of SPARC_SETHI_P.
13598         (input_operand): Likewise.
13599         (sparc_emit_set_const32): Likewise.
13600         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13601         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13602         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
13603         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13604         (movdi_insn_sp64_vis): Likewise.
13605         (movdi split, movdf split): Use SETHI32.
13606         * doc/md.texi: Document SPARC constraints L, M and N.
13607
13608 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13609
13610         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13611         ("*set_vrsave_internal"): use mfspr for Darwin.
13612
13613         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13614         gen_get_vrsave_internal.
13615
13616 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13617
13618         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13619
13620 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13621
13622         * cpplex.c (cpp_interpret_charconst): Get signedness or
13623         otherwise of wide character constants correct.
13624         * cppexp.c (lex): Get signedness of wide charconsts correct.
13625
13626 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13627
13628         * optabs.c (widen_operand): Only call convert_modes for
13629         promoted SUBREG if signedness matches.
13630         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13631
13632 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13633
13634         * cpplib.c (glue_header_name): Use local buffer to build up
13635         header name.
13636
13637 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13638
13639         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13640
13641 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13642
13643         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13644         H8/300[HS] separately.
13645         * config/h8300/h8300.md: Remove the early clobber constraint
13646         from bit field patterns.
13647
13648 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13649
13650         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13651         register_operand.
13652         (mulhisi3): Likewise.
13653         (umulqisi3): Likewise.
13654         (umulhisi3): Likewise.
13655
13656 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13657
13658         * cppinit.c (output_deps): Correct test for stdout output.
13659         (init_dependency_output): Cure warning.
13660
13661 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13662
13663         * expr.c (store_expr): When converting expression to promoted
13664         equivalent type, allow using SUBREG_REG of TARGET as the target
13665         of the expansion of EXP.
13666         * loop.c (basic_induction_var, case SUBREG): Always look inside.
13667         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13668         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13669         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13670         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13671
13672 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
13673
13674         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13675         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13676         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13677
13678 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
13679
13680         PR optimization/5747
13681         * loop.c (scan_loop): Update reg info if move_movables created new
13682         pseudos.
13683
13684 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13685
13686         * gcc.c (init_gcc_spec): Revert last change.
13687
13688 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13689
13690         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13691         gpc_reg_operand constraint.
13692
13693 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
13694
13695         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13696         Simplify comparison of `low'.
13697         (add_operand): Fix formatting.
13698         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13699         (mask_operand): Disallow mask to wrap in 64-bit mode.
13700         (rs6000_stack_info): Remove redundant test setting push_p.
13701         (output_toc): Fix formatting.
13702         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13703         cc_reg_not_cr0_operand constraint.
13704         (booldi3, boolcdi3 splitters): Same.
13705
13706 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
13707
13708         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13709
13710 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
13711
13712         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13713         gcc invoked with -shared-libgcc.
13714
13715 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
13716
13717         PR c++/5748
13718         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13719         decl if any of elements was TREE_USED.
13720
13721 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
13722
13723         * config/sparc/sol2.h: Don't include sys/mman.h.
13724         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13725         (arith_4096_operand): Don't throw high bits away.
13726         (const64_operand): Take sign extension of CONST_INTs into account.
13727         (const64_high_operand, sparc_emit_set_const32): Likewise.
13728         (GEN_HIGHINT64): Likewise.
13729         (sparc_emit_set_const64_quick1): Likewise.
13730         (const64_is_2insns): Likewise.
13731         (print_operand): Use trunc_int_for_mode for sign extension.
13732         * config/sparc/sparc.h (SMALL_INT32): Likewise.
13733         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13734         chars.  Assume CONST_INT is already properly sign-extended.
13735         (movdi split): Sign-extend each SImode part.
13736         (andsi3 split): Don't mask high bits off, so that result
13737         remains properly sign-extend.
13738         (iorsi3 split): Likewise.
13739         (xorsi3 split): Likewise.
13740
13741 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
13742
13743         * fold-const.c (fold): Fix typo in comments.
13744
13745 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13746
13747         * Makefile.in (langhooks.o): Update dependencies.
13748
13749 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13750
13751         * langhooks.c: Include flags.h.
13752
13753 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
13754
13755         * testsuite/gcc.dg/attr-alwaysinline.c: New.
13756
13757         * c-common.c (c_common_post_options): Set inline trees by
13758         default.
13759
13760         * doc/extend.texi (Function Attributes): Document always_inline
13761         attribute.
13762         Update documentation about inlining when not optimizing.
13763
13764         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13765
13766         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13767         unless DECL_ALWAYS_INLINE.
13768
13769         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13770         unless DECL_ALWAYS_INLINE.
13771         (c_disregard_inline_limits): Disregard if always_inline set.
13772
13773         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13774         Disregard if always_inline set.
13775         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13776         unless DECL_ALWAYS_INLINE.
13777
13778         * attribs.c (handle_always_inline_attribute): New.
13779         (c_common_attribute_table): Add always_inline.
13780
13781         * config/rs6000/altivec.h: Add prototypes for builtins
13782         requiring the always_inline attribute.
13783
13784 2002-02-21  Eric Christopher  <echristo@redhat.com>
13785
13786         * expmed.c (store_bit_field): Try to simplify the subreg
13787         before generating a new one when when the mode size of
13788         value is less than maxmode.
13789
13790 2002-02-21  Richard Henderson  <rth@redhat.com>
13791
13792         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13793         than gen_rtx_PLUS to form the sum.
13794         * explow.c (force_reg): Rearrange to not allocate new pseudo
13795         when force_operand returns a register.
13796         * expr.c (expand_assignment): Allow offset_rtx expansion to
13797         return a sum.  Do not force addresses into registers.
13798         (expand_expr): Likewise.
13799         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13800         to canonicalize arithmetic that didn't simpify.
13801         (simplify_plus_minus): New argument force; update
13802         all callers.  Don't split CONST unless we can do something with it,
13803         and wouldn't lose the constness of the operands.
13804
13805         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13806         that we generated earlier.
13807
13808 2002-02-21  Tom Tromey  <tromey@redhat.com>
13809
13810         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13811         (output_line_info): Use constant `1', with a long explanatory
13812         comment.
13813         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13814
13815 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
13816
13817         * jump.c (redirect_jump): If old label has no UID, don't try to
13818         delete it.
13819
13820 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
13821
13822         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13823         If input is constant, do shifts at compile time.
13824
13825 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13826
13827         * doc/extend.texi: Fix some more overfull hboxes.
13828
13829 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13830
13831         PR optimization/4994
13832         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13833         register moves.
13834
13835 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13836
13837         PR c++/4574
13838         * expr.h (expand_and): Add mode argument.
13839         * expmed.c (expand_and): Add mode argument.
13840         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13841         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13842         * except.c (expand_builtin_extract_return_addr): Likewise.
13843         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13844         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13845         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13846         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13847         * config/c4x/c4x.md: Use GEN_INT (x) instead of
13848         gen_rtx (CONST_INT, VOIDmode, x).
13849
13850 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13851
13852         PR c/4697:
13853         * stmt.c (warn_if_unused_value): Move side effects test once more.
13854
13855 2002-02-20  Torbjorn Granlund  <tege@swox.com>
13856
13857         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13858         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13859
13860 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
13861
13862         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13863         SUBREG or ZERO_EXTEND.
13864
13865 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
13866
13867         * sh.h (current_function_anonymous_args): Remove.
13868         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13869         of current_function_varargs and current_function_stdarg is set.
13870         * sh.c (sh_expand_prologue): Check current_function_varargs /
13871         current_function_stdarg / TARGET_SH5 instead of
13872         current_function_anonymous_args.
13873
13874         * sh64.h (TARGET_VERSION): Define.
13875
13876 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
13877
13878         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13879         VRSAVE_REGNO on TARGET_ALTIVEC.
13880
13881 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
13882
13883         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13884         bits of SImode const_int.
13885         (includes_rshift_p): Likewise.
13886         (print_operand): Call mask_operand and mask64_operand with correct
13887         mode.
13888         (rs6000_output_function_epilogue): Pad traceback table to word.
13889         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13890         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13891         mask64_operand with correct mode.
13892         (FUNCTION_ARG_REGNO_P): Correct parentheses.
13893
13894 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13895
13896         PR debug/4461
13897         * varasm.c (get_pool_constant_mark): New.
13898         * rtl.h (get_pool_constant_mark): Add prototype.
13899         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13900         be represented if it has not been output.
13901
13902 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13903
13904         * combine.c (do_SUBST): Sanity check substitutions of
13905         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13906         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13907         CONST_INT into its operand.
13908         (known_cond): Likewise, for ZERO_EXTEND.
13909         * simplify-rtx.c (simplify_unary_operation): Fix condition to
13910         allow for simplification of wide modes.  Reject CONST_INTs in
13911         ZERO_EXTEND when their actual mode is not given.
13912
13913 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13914
13915         * c-decl.c (pushdecl): If no global declaration is found for an
13916         extern declaration in block scope, try a limbo one.
13917
13918 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13919
13920         PR c++/4401
13921         * c-common.c (pointer_int_sum): Moved from...
13922         * c-typeck.c (pointer_int_sum): ...here.
13923         * c-common.h (pointer_int_sum): Add prototype.
13924
13925 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13926
13927         PR c++/5713
13928         * c-decl.c (duplicate_decls): Return 0 if issued error about
13929         redeclaration.
13930
13931 2002-02-20  Roger Sayle  <roger@eyesopen.com>
13932             Jakub Jelinek  <jakub@redhat.com>
13933
13934         PR c/4389
13935         * tree.c (host_integerp): Ensure that the constant integer is
13936         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13937         when pos is zero or non-zero respectively.  Clarify comment.
13938         * c-format.c (check_format_info_recurse): Fix host_integerp
13939         usage; the pos argument should be zero when assigning to a
13940         signed HOST_WIDE_INT.
13941
13942 2002-02-20  Richard Henderson  <rth@redhat.com>
13943
13944         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13945         of the operand, rather than assuming TImode.
13946         (ix86_expand_binop_builtin): Cope with commutative patterns
13947         using nonimmediate_operand for both operands.
13948         (ix86_expand_timode_binop_builtin): Likewise.
13949         (ix86_expand_store_builtin): Validate operand 1.
13950         (ix86_expand_unop1_builtin): Likewise.
13951
13952 2002-02-20  Philip Blundell  <philb@gnu.org>
13953
13954         PR 5705
13955         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13956
13957 2002-02-20  Richard Henderson  <rth@redhat.com>
13958
13959         PR c/5615
13960         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13961
13962 2002-02-20  Tom Tromey  <tromey@redhat.com>
13963
13964         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13965         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13966         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13967         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13968         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13969         unconditionally.
13970
13971 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13972
13973         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13974           for (const_int 0) in X not just INTVAL.
13975
13976 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
13977
13978         * doc/extend.texi: Avoid or reduce overfull hboxes.
13979
13980 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
13981
13982         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13983         operations if the field does not start at a mode boundary.
13984
13985 2001-02-20      Joel Sherrill <joel@OARcorp.com>
13986
13987         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13988         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13989         Also done for -Acpu and -Amachine.
13990
13991 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13992
13993         * cppinit.c (init_dependency_output): Take deps output file
13994         from -o if none given with -MF.  Suppress normal output.
13995         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13996         * doc/cpp.texi, doc/invoke.texi: Update.
13997
13998 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
13999
14000         * toplev.c (output_quoted_string): Write unprintable
14001         characters with octal escapes.
14002
14003 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14004
14005         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14006         really_call_used[VRSAVE_REGNO] if not Altivec.
14007
14008 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
14009
14010         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14011         MODE_MASK.
14012         (constant_pool_expr_1): Fix formatting.
14013         (rs6000_legitimize_reload_address): Likewise.
14014
14015 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14016
14017         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14018         now that we have one.
14019
14020 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14021
14022         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
14023         end of first block of bitfields (which was only seven bits);
14024         rename dummy to unused_1; remove comment which is no longer true.
14025
14026 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14027
14028         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14029
14030 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14031
14032         PR 5399
14033         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14034         if generating PIC.
14035
14036         PR 5054
14037         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14038         arm_is_longcall_p rather than inspecting call-type cookie
14039         directly.
14040         (call_value_insn) [TARGET_THUMB]: Likewise.
14041
14042 2002-02-19  Graham Stott  <grahams@redhat.com>
14043
14044         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14045
14046 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14047
14048         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14049         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14050         (FP_SAVE_INLINE): Delete.
14051
14052         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14053         * config/rs6000/eabi.asm: Remove ABI save restore routines.
14054         * config/rs6000/t-ppccomm: Build crtsavres.o.
14055         * config/rs6000/crtsavres.asm: New file.
14056
14057 2002-02-19  Philip Blundell  <philb@gnu.org>
14058
14059         * config/arm/arm.c (use_return_insn): Don't reject interrupt
14060         functions.
14061         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14062         (output_return_instruction): Allow interrupt functions to return with
14063         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
14064         (arm_expand_prologue): Subtract 4 before stacking LR in an
14065         interrupt function.
14066
14067 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14068
14069         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14070         decl, not just FUNCTION_DECL.
14071         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14072         (arm_assemble_integer): Likewise.
14073         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14074         marked local.
14075
14076 2002-02-19  matthew green  <mrg@eterna.com.au>
14077
14078         * config.gcc (sparc-*-netbsdelf*): Enable target.
14079         (sparc64-*-netbsd*): New target.
14080         * config/sparc/netbsd-elf.h: New file.
14081         * config/sparc/t-netbsd64: New file.
14082
14083 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14084
14085         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14086
14087 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
14088
14089         * doc/invoke.texi: explicitly list the style guidelines that
14090         -Weffc++ checks for.
14091
14092 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
14093
14094         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14095
14096 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14097
14098         PR other/5718
14099         * gcc.c (cpp_unique_options): Treat -o as indicating object file
14100         only if not -E.  If -E, pass -o through to the preprocessor.
14101
14102 2002-02-19  Kazu Hirata  <kazu@hxi.com>
14103
14104         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14105         register number with an appropriate macro.
14106
14107 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14108
14109         * doc/rtl.texi (Constants): Close @code tag.
14110
14111 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
14112
14113         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14114         ("mmx_uavgv4hi3"): Same.
14115         ("pmulhrwv4hi3"): Same.
14116
14117         * tree-inline.c (walk_tree): Handle vectors.
14118
14119         * c-common.c (constant_expression_warning): Handle vectors.
14120         (overflow_warning): Same.
14121
14122         * sched-deps.c (sched_analyze_2): Handle vectors.
14123
14124         * rtlanal.c (rtx_unstable_p): Handle vectors.
14125         (rtx_varies_p): Same.
14126         (count_occurrences): Same.
14127         (regs_set_between_p): Same.
14128         (modified_between_p): Same.
14129         (modified_in_p): Same.
14130         (volatile_insn_p): Same.
14131         (volatile_refs_p): Same.
14132         (side_effects_p): Same.
14133         (may_trap_p): Same.
14134         (inequality_comparisons_p): Same.
14135         (replace_regs): Same.
14136         (computed_jump_p_1): Same.
14137
14138         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14139         argument.
14140         (inner_mode_array): New.
14141         (copy_rtx): Handle vectors.
14142         (copy_most_rtx): Same.
14143         (rtx_equal_p): Same.
14144         (get_mode_alignment): Adjust for vectors.
14145
14146         * resource.c (mark_referenced_resources): Handle vectors.
14147         (mark_set_resources): Same.
14148
14149         * reload1.c (eliminate_regs): Handle vectors.
14150         (elimination_effects): Same.
14151         (scan_paradoxical_subregs): Same.
14152
14153         * reload.c (subst_reg_equivs): Handle vectors.
14154
14155         * regrename.c (scan_rtx): Handle vectors.
14156
14157         * regclass.c (reg_scan_mark_refs): Handle vectors.
14158
14159         * recog.c (find_single_use_1): Handle vectors.
14160
14161         * local-alloc.c (equiv_init_varies_p): Handle vectors.
14162         (contains_replace_regs): Same.
14163         (memref_referenced_p): Same.
14164
14165         * integrate.c (copy_rtx_and_substitute): Handle vectors.
14166         (subst_constants): Same.
14167
14168         * genattrtab.c (attr_copy_rtx): Handle vectors.
14169         (encode_units_mask): Same.
14170         (clear_struct_flag): Same.
14171         (count_sub_rtxs): Same.
14172
14173         * gcse.c (want_to_gcse_p): Handle vectors.
14174         (oprs_unchanged_p): Same.
14175         (hash_expr_1): Same.
14176         (oprs_not_set_p): Same.
14177         (expr_killed_p): Same.
14178         (compute_transp): Same.
14179         (store_ops_ok): Same.
14180
14181         * function.c (purge_addressof_1): Do not allow paradoxical subregs
14182         of vectors.
14183         (fixup_var_refs_1): Same.
14184         (instantiate_virtual_regs_1): Same.
14185
14186         * fold-const.c (operand_equal_p): Handle vectors.
14187         (fold): Same.
14188         (rtl_expr_nonnegative_p): Same.
14189
14190         * flow.c (mark_used_regs): Handle vectors.
14191
14192         * df.c (df_uses_record): Handle vectors.
14193
14194         * cselib.c (cselib_subst_to_values): Handle vectors.
14195         (cselib_mem_conflict_p): Same.
14196         (hash_rtx): Same.
14197
14198         * cse.c (canon_reg): Handle vectors.
14199         (fold_rt): Same.
14200         (cse_process_notes): Same.
14201         (count_reg_usage): Same.
14202         (canon_hash): Same.
14203
14204         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14205
14206         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14207
14208         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14209         (gen_rtx): Handle CONST_VECTOR.
14210         (gen_const_vector_0): New.
14211         (copy_rtx_if_shared): CONST_VECTORs can be shared.
14212         (reset_used_flags): Same.
14213         (copy_insn_1): Same.
14214         (initializer_constant_valid_p): Handle VECTOR_CST.
14215
14216         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14217
14218         * doc/rtl.texi (Constants): Document const_vector.
14219         (CONST0_RTX): Update for vectors.
14220         (RTL sharing): Same.
14221
14222         * print-tree.c (print_node): Add case for VECTOR_CST.
14223
14224         * tree.h (TREE_VECTOR_CST_ELTS): New.
14225         (struct tree_vector): New.
14226         (union tree_node): Add vector node.
14227         (build_vector): Add prototype.
14228
14229         * tree.def (VECTOR_CST): New.
14230
14231         * tree.c (build_vector): New.
14232
14233         * expmed.c (make_tree): Handle CONST_VECTOR.
14234
14235         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14236         (CONST_VECTOR_ELT): New.
14237         (CONST_VECTOR_NUNITS): New.
14238
14239         * machmode.h (GET_MODE_INNER): New.
14240         (DEF_MACHMODE): Accept 8th arg.
14241
14242         * machmode.def: Add 8th argument for vector inner mode.
14243         Add inner vector modes for vectors.
14244
14245         * rtl.def (VEC_CONST): Remove.
14246         (CONST_VECTOR): New.
14247
14248         * expr.c (clear_storage): Allow vectors.
14249         (is_zeros_p): Handle VECTOR_CST.
14250
14251         * varasm.c (output_constant_pool): Handle vectors.
14252         (rtx_const): Add veclo and vechi fields.
14253         (kind): Add RTX_VECTOR.
14254         (decode_rtx_const): Add case for vector.
14255
14256         * config/rs6000/rs6000-protos.h: Add zero_constant.
14257
14258         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14259         constants.  Force easy vector constants into memory.
14260         (easy_vector_constant): New.
14261         (emit_easy_vector_constant): New.
14262         (rs6000_legitimize_reload_address): Do not generate bad reloads on
14263         darwin.
14264
14265         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14266         instruction does.
14267         ("altivec_lvxl"): Same.
14268         (altivec_lvebx): Same.
14269         (altivec_lvehx): Same.
14270         (altivec_lvewx): Same.
14271         ("*movv4si_const0"): New.
14272         ("*movv4sf_const0"): New.
14273         ("*movv8hi_const0"): New.
14274         ("*movv16qi_const0"): New.
14275
14276 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14277
14278         * config/h8300/h8300.c (notice_update_cc): Use
14279         cc_status.value2.
14280
14281 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14282
14283         * config/h8300/h8300.md (divmod patterns): Change the
14284         constraints for operands[1] to register_operand.
14285
14286 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14287
14288         * config/h8300/h8300-protos.h: Remove the prototype for
14289         p_operand.
14290         * config/h8300/h8300.c (p_operand): Remove.
14291         * config/h8300/h8300.md: Replace p_operand with
14292         const_int_operand.
14293
14294 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14295
14296         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14297         comment.
14298         (output_return_instruction): Allow use of LDR to unstack
14299         return addresss even for interrupt handlers or when
14300         interworking.  If compiling for ARMv5, use interworking-safe
14301         return instructions by default.  Remove duplicated code and
14302         lengthy "strcat" sequences.
14303
14304 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14305
14306         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14307         (LINK_EH_SPEC): Define.
14308         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14309
14310 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
14311
14312         * config/s390/s390.c (s390_emit_prologue): Do not set the
14313         frame_related flag for call-clobbered registers.
14314
14315 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14316
14317         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14318         (construct_container): Fix handling of SSE operands.
14319         (ix86_expand_builtin): Fix handling of 64bit pointers.
14320         (mmx_maskmovq_rex): New pattern.
14321
14322 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
14323
14324         * regrename.c (kill_set_value): Handle subregs properly.
14325
14326 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
14327
14328         * objc/objc-act.c (handle_impent): Remove leading '*'
14329         from objc_class_name.
14330
14331 2002-02-17  Richard Henderson  <rth@redhat.com>
14332
14333         * config/alpha/alpha.c (some_small_symbolic_operand,
14334         some_small_symbolic_operand_1, split_small_symbolic_operand,
14335         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14336         Handle small SYMBOL_REFs anywhere, not just inside memories.
14337         * config/alpha/alpha-protos.h: Update.
14338         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14339         * config/alpha/alpha.md (small symbolic operand splitter): Update.
14340
14341 2002-02-17  Roland McGrath  <roland@frob.com>
14342
14343         * config.gcc (powerpc-*-gnu-gnualtivec*,
14344         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14345         * config/rs6000/gnu.h: New file.
14346         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14347         Grok "gnu" in rs6000_abi_name.
14348         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14349         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14350         Grok -mcall-gnu analogous to -mcall-linux et al.
14351         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14352         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14353         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14354
14355 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
14356
14357         PR c/3444:
14358         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14359         shortening.
14360
14361 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14362
14363         * config/cris/cris.h: Undefine STARTFILE_SPEC and
14364         ENDFILE_SPEC before (re)defining them.
14365
14366 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14367
14368         * config/h8300/h8300.c: Fix formatting.
14369         * config/h8300/h8300.h: Likewise.
14370
14371 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14372
14373         * doc/tm.texi: Explain why empty strings should not be
14374         marked for translation.
14375
14376 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14377
14378         * final.c (output_operand_lossage): Changed to accept
14379         printf style arguments. Change calls where necessary.
14380         * output.h (output_operand_lossage): Change declaration
14381         accordingly. Update copyright.
14382         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14383         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14384         Update copyright date where necessary.
14385
14386         * config/i386/i386.c (print_operand): Likewise. Remove use of
14387         sprintf.
14388
14389         * config/cris/cris.c (cris_operand_lossage): Likewise.
14390         Rename parameter so that exgettext recognizes it as
14391         translatable message.
14392         (LOSE_AND_RETURN): Rename parameter to msgid.
14393
14394 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14395
14396         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14397         hard coded register number with an appropriate macro.
14398         (HARD_REGNO_MODE_OK): Likewise.
14399         (ARG_POINTER_REGNUM): Likewise.
14400         (STATIC_CHAIN_REGNUM): Likewise.
14401         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14402         * config/h8300/h8300.md (define_constants): Define more
14403         register numbers.
14404
14405 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14406
14407         * config/i386/i386.h: Don't mark empty strings for translation.
14408
14409 2002-02-16  H.J. Lu <hjl@gnu.org>
14410
14411         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14412
14413 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
14414
14415         * cppinit.c (merge_include_chains): Check for brack being
14416         NULL before attempting to merge it with qtail.
14417
14418 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
14419
14420         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14421         DBX_DEBUG.
14422
14423 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14424
14425         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14426
14427 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14428
14429         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14430         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14431         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14432
14433 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14434
14435         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14436         now only if !TARGET_FIX.
14437         (*movsi_nt_vms_fix): New pattern.
14438
14439 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
14440
14441         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14442         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14443         (alpha_sa_mask, alpha_sa_size): Reflect above change.
14444         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14445         (alpha_start_function, alpha_expand_epilogue): Likewise.
14446         (unicosmk_gen_dsib): Likewise.
14447
14448 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14449
14450         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14451
14452 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
14453
14454         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14455         check_and_change_labels, s390_final_chunkify): Delete.
14456         (s390_split_branches, s390_chunkify_pool): New functions.
14457         (s390_function_prologue): Call them.
14458
14459         * config/s390/s390.h (S390_REL_MAX): Delete.
14460         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14461
14462         * config/s390/s390.md (cjump, icjump, jump): Fix length
14463         attribute calculation.
14464
14465
14466 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
14467
14468         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14469         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14470
14471 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14472
14473         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14474         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14475         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14476
14477 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14478
14479         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14480
14481 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14482
14483         * reload.c (find_dummy_reload): Check that an output register
14484         is valid for its mode.
14485
14486 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
14487
14488         * combine.c (known_cond): After replacing the REG of a SUBREG, try
14489         to simplify it.
14490
14491         * function.c (assign_parms): Demote promoted argument passed by
14492         transparent reference.
14493
14494 2001-02-14      Joel Sherrill <joel@OARcorp.com>
14495
14496         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14497         -Acpu() and -Amachine() to eliminate warnings.
14498
14499 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
14500
14501         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14502
14503 2002-02-14  Kazu Hirata  <kazu@hxi.com>
14504
14505         * config/h8300/h8300-protos.h: Update the prototype for
14506         const_costs.
14507         * config/h8300/h8300.c (const_costs): Treat SET as a little
14508         more expensive operation.
14509         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14510         reference to const_costs.
14511
14512 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
14513
14514         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14515
14516 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
14517
14518         PR c/5503:
14519         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14520         use arguments from newtype.
14521
14522 2002-02-13  Eric Christopher  <echristo@redhat.com>
14523
14524         * config/mips/mips.c (override_options): Add check for march/mipsX
14525         on the same command line. Fix error message in cpu processing.
14526         Remove architecture and ISA checks.
14527
14528 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14529
14530         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14531
14532         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14533
14534 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14535
14536         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14537         alternatives.
14538         ("*movv8hi_internal1"): Same.
14539         ("*movv16qi_internal1"): Same.
14540         ("*movv4sf_internal1"): Same.
14541
14542         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14543         not push_reload for altivec modes.
14544
14545 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
14546
14547         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14548         all RTEMS targets including removal of #includes from config/*/rtems*.h
14549         file and adding them to tm_file setting. Added xm_defines=POSIX to
14550         many targets.
14551         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14552         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14553         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14554         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14555         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14556         config/m68k/rtemself.h: Ditto.
14557         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14558         config/mips/rtems64.h: Ditto.
14559         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14560         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14561         Ditto.
14562         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14563         config/sparc/rtemself.h: Ditto.
14564         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14565         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14566         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14567         more like arm-elf.
14568         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14569         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14570         target made more similar to i386-elf.
14571         * config/i386/t-rtems-i386: Added soft float support and multilibs.
14572         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14573         be similar to config/m68k/t-m68kelf.
14574         * gthr-rtems.h: Encapsulate with extern "C" for C++.
14575
14576 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
14577
14578         * regmove.c (kill_value): Handle subregs.
14579
14580 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14581
14582         * i386.md (mul patterns): Allow memory operand to be first;
14583         add expanders where needed; fix constraints.
14584         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14585         Allow memory operand to be the first.
14586
14587         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14588         operands.
14589
14590 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14591
14592         PR c/5681:
14593         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14594         GET_MODE (x).
14595
14596 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14597
14598         PR optimization/5547:
14599         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14600         all valid IA-32 address modes involving non-scaled %ebx and
14601         GOT/GOTOFF as displacement.
14602
14603 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
14604
14605         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14606         after emitting ltorg insns.
14607
14608         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14609         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14610         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14611         *abssf2): Fix "op_type" attribute.
14612
14613 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
14614
14615         * mkconfig.sh: Avoid using a subshell redirect.
14616         ($output.T): Change to $(output)T.
14617         (ENABLE_NLS): Remove unneeded undef.
14618
14619         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14620         * config/alpha/x-vms (libsubdir): Define.
14621
14622         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14623         register frame procedures. Optimize retrieving context.
14624
14625         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14626         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14627         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14628
14629 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14630
14631         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14632         Make same change as for find_base_value.
14633
14634 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14635
14636         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14637         of QImode and SImode.
14638
14639 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14640
14641         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14642         length computation of movsi.
14643         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14644
14645 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14646
14647         * config/h8300/h8300.md (subqi3): Tighten the predicate for
14648         operands[2] to register_operand.
14649
14650 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14651
14652         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14653
14654 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
14655
14656         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14657         for altivec_lvx* and altivec_stvx*.
14658         ("*movv4si_internal"): Add constraint for loading from GPRs.
14659         ("*movv8hi_internal1"): Same.
14660         ("*movv16qi_internal1"): Same.
14661         ("*movv4sf_internal1"): Same.
14662
14663         * config/rs6000/rs6000.c (altivec_register_operand): New.
14664
14665         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14666         altivec_register_operand.
14667
14668 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
14669
14670         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14671         handle SYMBOL_REF.
14672
14673 2002-02-13  Stan Shebs  <shebs@apple.com>
14674
14675         * c-typeck.c (digest_init): Handle vectors.
14676         (really_start_incremental_init): Same.
14677         (pop_init_level): Same.
14678         (process_init_element): Same.
14679
14680         * varasm.c (output_constant): Same.
14681
14682         * expr.c (clear_storage): Same.
14683         (store_constructor): Same.
14684
14685 2002-02-12  Eric Christopher  <echristo@redhat.com>
14686
14687         * explow.c (hard_function_value): Add comment explaining
14688         signed/unsigned comparison.
14689
14690 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
14691
14692         * jump.c (never_reached_warning): Add finish argument.
14693         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14694         real insn after end.
14695         * rtl.h (never_reached_warning): Adjust prototype.
14696         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14697         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14698         never_reached_warning.
14699
14700 2002-02-12  Graham Stott  <grahams@redhat.com>
14701
14702         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14703
14704 2002-02-12  Kazu Hirata  <kazu@hxi.com>
14705
14706         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14707         logical shifts on H8/300.
14708         (shift_alg_si): Improve several shifts on H8/300.
14709         (get_shift_alg): Likewise.
14710
14711 2002-02-12  Graham Stott  <grahams@redhat.com>
14712
14713         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14714
14715 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14716
14717         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14718         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14719
14720 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
14721
14722         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14723         non-CONST_INT through default_assemble_integer.
14724         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14725         <case 8>: Abort for CONST_DOUBLE.
14726
14727 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14728
14729         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14730         is specified.
14731         * config/pa/pa-linux.h (LIB_SPEC): Delete.
14732         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14733
14734 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
14735
14736         * config/stormy16/stormy16.md (zero_extendqihi2): New.
14737
14738 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
14739
14740         * regrename.c (regrename_optimize): Don't accept a
14741         part-clobbered register if the replaced register is not part
14742         clobbered.
14743
14744         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14745         take padding into account when computing the argument value.
14746
14747         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14748
14749         * combine.c (try_combine): Apply substitutions in
14750         CALL_INSN_FUNCTION_USAGE too.
14751
14752 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
14753
14754         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14755         __builtin_altivec_abs*.
14756         (bdesc_abs): New.
14757
14758         * config/rs6000/rs6000.h (rs6000_builtins): Add
14759         ALTIVEC_BUILTIN_ABS*.
14760
14761         * config/rs6000/altivec.h: Use const char for builtins expecting
14762         literals.
14763         (vec_abs): New versions for C and C++.
14764         (vec_abss): Same.
14765
14766 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14767
14768         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14769         using Pmode.
14770
14771 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14772
14773         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14774         constant definition from h8300.md.
14775         (FRAME_POINTER_REGNUM): Likewise.
14776         * config/h8300/h8300.md (define_constants): Add FP_REG.
14777
14778 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14779
14780         * config/h8300/h8300.c (print_operand): Remove redundant code.
14781
14782 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14783
14784         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14785         * config/h8300/h8300.c (byte_reg): Make it static.
14786
14787 2002-02-10  Richard Henderson  <rth@redhat.com>
14788
14789         PR c/5623
14790         * c-typeck.c (incomplete_type_error): Handle flexible array members.
14791
14792 2002-02-10  Richard Henderson  <rth@redhat.com>
14793
14794         PR c++/5624
14795         * tree.c (append_random_chars): Don't abort if main_input_filename
14796         does not exist.
14797
14798 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
14799
14800         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14801
14802 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14803
14804         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14805         (pushhi1): Likewise.
14806
14807 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14808
14809         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14810         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14811
14812 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
14813
14814         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14815         remove MASK_VIS.
14816         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
14817
14818 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14819
14820         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14821         a half of an SImode register on H8/300.
14822
14823 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
14824
14825         * i386.md (movdi_2): Add missing '!'.
14826
14827 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14828
14829         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
14830         definitions.
14831
14832 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14833
14834         * config/h8300/h8300.md (length): Correct the distance valid
14835         for the short branch.
14836
14837 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14838
14839         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14840
14841 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14842
14843         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14844         registers in SImode.
14845         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14846         part-clobbered.
14847
14848         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14849         patch.
14850
14851         Contribute sh64-elf.
14852         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14853         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14854         (sh_cannot_modify_jumps_p): New function.
14855         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14856         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14857         (sh_ms_bitfield_layout_p): New function.
14858         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
14859                     Zack Weinberg  <zack@codesourcery.com>
14860         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14861         expand_simple_binop instead of expand_binop.
14862         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
14863         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14864         use of .quad and .uaquad.
14865         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14866         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14867         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14868         * config/sh/sh.md (movdi_const, movdi_const_32bit,
14869         movdi_const_16bit): Make sure all CONSTs have modes.
14870         (sym2PIC): Ditto, but by adjusting all callers.
14871         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14872         if the prologue calls the SHmedia argument decoder or register
14873         saver.
14874         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14875         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14876         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14877         (sh_expand_epilogue): Don't emit USE of return target register.
14878         (prepare_move_operands): Legitimize DImode PIC addresses.
14879         (sh_media_register_for_return): Skip tr0, used to initialize the
14880         PIC register.
14881         (sh_expand_prologue): Remove explicit USE of return register.
14882         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
14883         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
14884         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14885         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14886         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14887         EXTRA_CONSTRAINT_T.
14888         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14889         (MOVI_SHORI_BASE_OPERAND_P): New.
14890         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14891         (EXTRA_CONSTRAINT_T): Define in terms of them.
14892         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14893         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14894         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14895         alternatives supporting TARGET_REGS.
14896         (UNSPEC_GOTPLT): New constant.
14897         (movdi split): Move incrementing of LABEL_NUSES...
14898         (movdi_const, movdi_const_32bit): Here.  Use
14899         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14900         (movdi_const_16bit): New.
14901         (call, call_value) [flag_pic]: Use GOTPLT.
14902         (call_pop, call_value_pop): New expands.
14903         (call_pop_compact, call_pop_rettramp): New insns.
14904         (call_value_pop_compact, call_value_pop_rettramp): New insns.
14905         (sibcall) [flag_pic]: Use GOT.
14906         (builtint_setjmp_receiver): Remove bogus, unused expand.
14907         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14908         (*pt, *ptb, ptrel): New insns.
14909         (sym2GOT): Handle DImode GOT.
14910         (sym2GOTPLT, symGOTPLT2reg): New expands.
14911         (sym2PIC): New expand.
14912         (shcompact_return_tramp): Use GOTPLT to return trampoline.
14913         (shcompact_return_tramp_i): Use return register explicitly.
14914         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14915         disable flag_reorder_blocks.
14916         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
14917         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14918         clobbers, for clarity.
14919         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14920         restoring of r0 in macl as MAYBE_DEAD.
14921         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
14922         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14923         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14924         alter_subreg all over.
14925         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14926         reload, instead of emitting instructions that would require
14927         reloading.
14928         (casesi_load_media): Add missing modes.
14929         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
14930         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14931         as used if the argument decoder is called.
14932         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14933         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14934         Pmode, then extend it to DImode if necessary.
14935         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14936         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14937         constants in FPU-enabled SHmedia, let them be loaded from memory.
14938         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14939         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14940         Adjust whitespace in assembly output templates.
14941         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14942         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14943         mode of if_then_else.
14944         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
14945         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14946         sh.h.
14947         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
14948                     Joern Rennecke <amylaar@redhat.com>
14949         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14950         (SUBTARGET_CPP_PTR_SPEC): New.
14951         (SUBTARGET_CPP_SPEC): Remove.
14952         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14953         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14954         Fix typo in previous checkin.
14955         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
14956         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14957         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
14958                     Alexandre Oliva  <aoliva@redhat.com>
14959         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14960         what single FP register can hold for SHmedia target.
14961         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14962                     Alexandre Oliva  <aoliva@redhat.com>
14963         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14964         Do not split into SUBREG.
14965         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
14966         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14967         and added new functions as specified in SH5 ABI r9.
14968         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
14969         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14970         8-byte boundary.
14971         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
14972         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14973         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
14974         and consttable_window_ends.
14975         2001-06-03  Graham Stott  <grahams@redhat,com>
14976         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14977         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
14978         * config/sh/sh.c (print_operand): Handle floating-point pair,
14979         vector and matrix registers.
14980         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14981         vector modes into account.
14982         * config/sh/sh.md (movv2sf): Split move between registers into
14983         movdf.
14984         (movv4sf, movv16sf): Introduce insns that get split only after
14985         reload.
14986         * config/sh/shmedia.h: Fix Copyright dates.
14987         * config/sh/ushmedia.h: Likewise.  Move loop counter
14988         declarations into conditionals that uses them.
14989         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14990         loop boundary.
14991         * config/sh/sshmedia.h: Fix Copyright dates.
14992         (sh_media_PUTCFG): Fix constraints.
14993         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
14994         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14995         ptrmemfunc_vbit_in_delta for SH5.
14996         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
14997         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14998         * invoke.texi: Likewise.
14999         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
15000         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15001         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15002         GCC_pop_shmedia_regs_nofpu): New global symbols.
15003         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15004         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15005         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15006         compact function with nonlocal labels.
15007         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15008         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15009         (initial_elimination_offset): Account for their stack space.
15010         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15011         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15012         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15013         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15014         least one of the operands to be a register.
15015         (movv2sf): Likewise.  Renamed to movv2sf_i.
15016         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15017         prepare_move_operands() before emitting SHmedia insns.
15018         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
15019         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15020         Don't save nor initialize r12.  Don't mis-align the stack.
15021         Pad the code with a nop.
15022         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
15023         stack.
15024         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15025         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15026         [__SHMEDIA__]: Implement.
15027         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
15028         * config/sh/sh.md: Set latency of `pt' closer to reality.
15029         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15030         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15031         Set move, load and store type attributes.
15032         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15033         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15034         profiling.
15035         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15036         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15037         * config/sh/sh.c (sh_media_register_for_return): New function.
15038         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15039         branch-target register.
15040         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15041         * config/sh/sh.md (return_media_i): Use any call-clobbered
15042         branch-target register.
15043         (return_media): If r18 wasn't copied in the prologue, copy it
15044         here.
15045         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15046         Clear class FP0_REGS.
15047         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15048         from elf.h.
15049         2001-03-08  DJ Delorie  <dj@redhat.com>
15050         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15051         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
15052         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15053         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
15054         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15055         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
15056         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15057         return value correctly for call_cookie.
15058         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
15059         * config/sh/crt1.asm (start): Modified so as to call
15060         ___setup_argv_and_call_main.
15061         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
15062         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15063         SHmedia mode.
15064         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
15065         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15066         (STRIP_NAME_ENCODING): Use it.
15067         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
15068         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
15069         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15070         prepare_scc_operands().
15071         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15072         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15073         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
15074         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15075         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
15076         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15077         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15078         used in shcompact_incoming_args.
15079         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15080         change.
15081         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15082         mode.
15083         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15084         Adjust accordingly.
15085         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15086         Simplify.  Adjust.  Add sanity check.
15087         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15088         FPU_SINGLE_BIT.
15089         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15090         TARGET_SHCOMPACT.
15091         (udivsi3, divsi3): Use them.
15092         (force_mode_for_call): New insn.
15093         (call, call_value, sibcall_value): Emit it before SHcompact
15094         calls.
15095         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
15096         * config/sh/sh.md (call, call_value, sibcall): Make sure the
15097         call cookie is non-NULL before taking its value.
15098         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
15099         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15100         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
15101         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15102         block.
15103         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15104         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15105         temporary for stack adjusts.  Use MACL and MACH to pass
15106         arguments to shcompact_incoming_args.
15107         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
15108         clobber r1.
15109         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15110         (nested_trampoline): Load static chain address into r1.
15111         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15112         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
15113         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15114         fp_arith_reg_operand().
15115         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
15116         * config/sh/sh.md (casesi): Sign-extend the first two operands,
15117         and use signed compares for them.
15118         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15119         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
15120         ones properly aligned.
15121         (find_barrier): Account for extra alignment needed for 8-byte wide
15122         constants.
15123         (machine_dependent_reorg): Require a label for the second 4-byte
15124         constant after an 8-byte one.
15125         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15126         change.
15127         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15128         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15129         last_float when switching float modes.
15130         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15131         auto-increment for general-purpose registers.
15132         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15133         result.
15134         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15135         for stack adjust.
15136         * config/sh/sh.c (sh_builtin_saveregs): Support using all
15137         registers for varargs.
15138         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
15139         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15140         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15141         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15142         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15143         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
15144         call_cookie accordingly.
15145         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15146         (SHCOMPACT_BYREF): Likewise.
15147         (SHCOMPACT_FORCE_ON_STACK): New macro.
15148         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15149         (sh_builtin_saveregs): Likewise.
15150         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15151         shcompact_incoming_args): Use new shift values.  Support
15152         sequences of consecutive and non-consecutive pushes/pops.
15153         * config/sh/sh.md (return): Don't explicitly use PR_REG.
15154         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
15155         * config/sh/sh.h (TEXT_SECTION): Define.
15156         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15157         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15158         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15159         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15160         return values on FPU-enabled SHmedia.
15161         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15162         FPU-enabled SHmedia.
15163         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15164         value is returned in a non-FP reg and is not returned by
15165         reference.
15166         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15167         jump_ind.
15168         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
15169         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15170         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15171         quad-aligned to be passed by callee-copy reference.
15172         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
15173         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15174         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15175         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
15176         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15177         copying low-numbered FP regs to r7 and r8.
15178         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15179         FP regs to general-purpose regs only if the copy was passed on the
15180         stack.
15181         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15182         copying FP reg to r9.
15183         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15184         copy FP regs to general-purpose regs only in outgoing calls.
15185         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15186         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
15187         HOST_WIDE_INT.
15188         * config/sh/sh.h (struct sh_args): Document all fields.
15189         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15190         passed partially on the stack should not consider making
15191         sibcalls.
15192         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15193         stack_regs only for incoming calls.  When passing FP args,
15194         make sure there are FP regs available before modifying
15195         call_cookie.
15196         (SHCOMPACT_BYREF): Pass double args in general-purpose
15197         registers by reference.
15198         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
15199         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15200         attempt to generate sibcalls if the caller got any arguments
15201         by reference.
15202         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15203         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15204         to 8-byte boundaries.
15205         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15206         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15207         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15208         stored in the stack.
15209         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15210         for the offsets to have the ISA bit set.
15211         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
15212         invocation.  Use beq instead of bgt to mark end of sequence of
15213         loads.
15214         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
15215         bgt to mark end of sequence of stores.
15216         * config/sh/sh.c (arith_operand): Don't check whether
15217         CONST_OK_FOR_J for now.
15218         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15219         instead of long for conversion.
15220         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
15221         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15222         before passing it to fprintf.
15223         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
15224         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15225         Call set_fpscr before reading/writing SR.
15226         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15227         Call set_fpscr.
15228         * config/sh/lib1funcs.asm: Add `.align 2' directives before
15229         SHmedia code.
15230         (FMOVD_WORKS): Define on SH5 with FPU.
15231         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
15232         setting.
15233         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15234         _fpscr_values.
15235         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
15236         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15237         address.
15238         (ia_main_table): Ditto.
15239         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
15240         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15241         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15242         the definitions from sh.h.
15243         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15244         TARGET_SH5.
15245         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15246         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15247         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15248         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
15249         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15250         Increment LABEL_NUSES.
15251
15252         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15253         TARGET_SH5.
15254         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15255         defined.
15256         * config/sh/elf.h (SIZE_TYPE): Likewise.
15257         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15258         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15259         shcompact_incoming_args): Load switch table addresses using
15260         datalabel.
15261         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15262         (NO_BUILTIN_SIZE_TYPE): Define.
15263         (SIZE_TYPE): Don't define.
15264         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15265         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15266         definition of __SH5__=32 for -m5-compact-nofpu.
15267         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15268         ADDR_DIFF_VEC.
15269         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
15270         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15271         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
15272         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15273         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15274         (INSN_LENGTH_ALIGNMENT): Likewise.
15275         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15276         * config/sh/sh.md (call, call_value, sibcall): Simplify
15277         copying of non-branch-target register.
15278         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15279         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
15280         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15281         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15282         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15283         floating-point values as structs.
15284         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15285         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15286         general-purpose register.
15287         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15288         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15289         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15290         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15291         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15292         (ENCODE_SECTION_INFO): Enclose variables and constants in
15293         DATALABEL unspecs.
15294         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15295         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15296         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15297         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15298         only for LABEL_REFs.  For SYMBOL_REFs, prepend
15299         SH_DATALABEL_ENCODING to the symbol name.
15300         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15301         convert_mode().
15302         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15303         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15304         UNSPEC_DATALABEL.
15305         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15306         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15307         (DATALABEL_REF_P): Don't require CONST.
15308         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15309         REL label.
15310         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
15311         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15312         right.
15313         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15314         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15315         Use shallow_copy_rtx and PUT_MODE to change the mode of
15316         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15317         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15318         on SHmedia using GENERAL_REGs.
15319         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15320         bltu_media_i): Fix reversion of conditions.
15321         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15322         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15323         * config/sh/sh.c (output_far_jump): Save r13 in macl.
15324         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
15325         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15326         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
15327         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15328         (GCC_nested_trampoline): Likewise.
15329         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15330         * config/sh/sh.c (gen_datalabel_ref): Define.
15331         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15332         (INITIALIZE_TRAMPOLINE): Likewise.
15333         (TRAMPOLINE_ADJUST_ADDRESS): Define.
15334         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15335         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15336         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15337         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15338         (ic_invalidate): Adjust for SH5.
15339         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15340         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15341         _nested_trampoline.
15342         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
15343         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15344         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15345         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15346         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15347         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15348         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15349         * config/sh/sh.c (target_reg_operand): Match only target-branch
15350         registers and pseudos that aren't virtual registers.
15351         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15352         Copy operands that don't match target_reg_operand to pseudos.
15353         (call_media, call_value_media, sibcall_media): Use
15354         target_reg_operand instead of target_operand.
15355         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
15356         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15357         * config/sh/sh.c (target_reg_operand): Match hardware registers
15358         other than branch-target registers.
15359         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15360         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15361         (fpscr_values) [SH5 == 32]: Define.
15362         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15363         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15364         Handle function addresses coming in SUBREGs.
15365         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
15366         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15367         shcompact_return_trampoline): Use datalabel where appropriate.
15368         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
15369         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15370         general-purpose register to copy one branch-target register to
15371         another.
15372         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15373         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15374         SYMBOL_REFs with VOIDmode.
15375         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15376         bltu_media_i): New insns.
15377         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15378         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15379         (INIT_CUMULATIVE_ARGS): Likewise.
15380         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
15381         * machmode.def (V16SFmode): New mode.
15382         * c-common.c (type_for_mode): Support V2SF and V16SF.
15383         * tree.c (build_common_tree_nodes_2): Likewise.
15384         * tree.h (tree_index): Likewise.
15385         * calls.c (emit_call_1): Take args_so_far.  Adjust all
15386         callers.  Introduce CALL_POPS_ARGS.
15387         * tm.texi (CALL_POPS_ARGS): Document.
15388         * config/sh/crt1.asm: Implement in SHmedia mode.
15389         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15390         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15391         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15392         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15393         Implement divsi and udivsi in SHmedia mode.  Introduce
15394         SHcompact trampolines.
15395         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15396         only in SHmedia64.
15397         (regno_reg_class): Rewrite.
15398         (fp_reg_names): Remove.
15399         (sh_register_names, sh_additional_register_names): New.
15400         (print_operand): Added `u'.  Support SUBREGs in addresses.
15401         Add parentheses around shifted CONSTs.
15402         (output_file_start): Output .mode and .abi directives.
15403         (shiftcosts, addsubcosts, multcosts): Adjust.
15404         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
15405         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
15406         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
15407         bytes, not registers.  Take into account the need for the
15408         SHcompact incoming args trampoline.  Adjust all callers.
15409         (sh_expand_prologue): Take stack_regs into account.  Call
15410         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
15411         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
15412         stack aligned as per SH5 ABI.
15413         (sh_builtin_saveregs): Support SH5 ABI.
15414         (sh_build_va_list, sh_va_start): Likewise.
15415         (initial_elimination_offset): Take alignment into account.
15416         Compute location of PR according to the SH5 stack frame.
15417         (arith_reg_operand): Reject branch-target registers.
15418         (shmedia_6bit_operand): New.
15419         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15420         (target_reg_operand): Match DImode only.  Accept SUBREGs.
15421         (target_operand): New.
15422         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15423         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
15424         SIBCALL_REGS for SHmedia.
15425         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15426         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15427         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15428         (TARGET_SWITCHES): New SH5 flags.
15429         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
15430         VALID_REGISTER_P to disable unsupported registers.
15431         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15432         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15433         (FUNCTION_ARG_PADDING): Define.
15434         (FASTEST_ALIGNMENT): Adjust.
15435         (SH_REGISTER_NAMES_INITIALIZER): New.
15436         (sh_register_names): Declare.
15437         (DEBUG_REGISTER_NAMES): Define.
15438         (REGISTER_NAMES): Define based on sh_register_names.
15439         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15440         (sh_additional_register_names): Declare.
15441         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15442         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15443         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15444         (REGISTER_NATURAL_MODE): Define.
15445         (FIRST_PSEUDO_REGISTER): Adjust.
15446         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15447         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15448         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15449         (VECTOR_MODE_SUPPORTED_P): Define.
15450         (REG_CLASS_CONTENTS): Adjust.
15451         (SMALL_REGISTER_CLASSES): Adjust.
15452         (REG_ALLOC_ORDER): Adjust.
15453         (INDEX_REG_CLASS): Adjust.
15454         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15455         (CONST_OK_FOR_LETTER_P): Adjust.
15456         (PREFERRED_RELOAD_CLASS): Adjust.
15457         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15458         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15459         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15460         (FIRST_FP_PARM_REG): Adjust.
15461         (CALL_POPS_ARGS): Define.
15462         (FUNCTION_ARG_REGNO_P): Adjust.
15463         (struct sh_args): New fields.
15464         (GET_SH_ARG_CLASS): Adjust.
15465         (INIT_CUMULATIVE_ARGS): Adjust.
15466         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15467         (FUNCTION_ARG_ADVANCE): Adjust.
15468         (FUNCTION_ARG): Adjust.
15469         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15470         (FUNCTION_ARG_CALLEE_COPIES): Define.
15471         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15472         (STRICT_ARGUMENT_NAMING): Define.
15473         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15474         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15475         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15476         (SETUP_INCOMING_VARARGS): Adjust.
15477         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15478         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15479         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15480         (SUBREG_OK_FOR_INDEX_P): Adjust.
15481         (EXTRA_CONSTRAINT_S): Update.
15482         (EXTRA_CONSTRAINT_T): New.
15483         (EXTRA_CONSTRAINT): Adjust.
15484         (GO_IF_LEGITIMATE_INDEX): Adjust.
15485         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15486         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15487         (MOVE_MAX): Adjust.
15488         (MAX_MOVE_MAX): Define.
15489         (Pmode): Adjust.
15490         (CONST_COSTS): Adjust.
15491         (REGISTER_MOVE_COST): Adjust.
15492         (BRANCH_COST): Adjust.
15493         (TEXT_SECTION_ASM_OP): Adjust.
15494         (DBX_REGISTER_NUMBER): Adjust.
15495         (ASM_OUTPUT_DOUBLE_INT): New.
15496         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15497         (PREDICATE_CODES): Adjust.
15498         (PROMOTE_MODE): Adjust.
15499         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15500         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15501         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15502         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15503         (DR0_REG, DR2_REG, DR4_REG): Renumber.
15504         (TR0_REG, TR1_REG, TR2_REG): New.
15505         (XD0_REG): Renumber.
15506         (UNSPEC_COMPACT_ARGS): New.
15507         (type): Added pt and ptabs.
15508         (length): Default to 4 on SHmedia.  Default pt length to 12
15509         and     20 on SHmedia32 and SHmedia64, respectively.
15510         (pt): New function unit.
15511         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
15512         Add whitespace between operands of SHmedia instructions.
15513         (movdicc): Fix.
15514         (adddi3_media, addsi3_media): Adjust constraints.
15515         (subsi3) [SHmedia]: Force operand 1 into a register.
15516         (udivsi3_i1_media, udivsi3_i4_media): New.
15517         (udivsi3): Support SHmedia.
15518         (divsi3_i1_media, divsi3_i4_media): New.
15519         (divsi3): Support SHmedia.
15520         (anddi3, iordi3, xordi3): Adjust constraints.
15521         (zero_extendhidi2, zero_extendqidi2): New.
15522         (extendsidi2, extendhidi2, extendqidi2): New.
15523         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15524         (pop_e, pop_fpul, pop_4): Likewise.
15525         (movsi_media): Support FP and BT registers.
15526         (movsi_media_nofpu): New.  Adjust splits to DImode.
15527         (lduw, ldub): Renamed to zero_extend* above.
15528         (movqi_media): Fix typo.
15529         (movdi_media): Support FP and BT registers.
15530         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
15531         (movdi_const_32bit): New.
15532         (shori_media): Require immediate operand.  Use `u' for output.
15533         (movdf_media, movsf_media): Simplified.
15534         (movdf_media_nofpu, movsf_media_nofpu): New.
15535         (movdf, movsf): Adjust
15536         (movv2sf, movv2sf, movv16sf): New.
15537         (beq_media, beq_media_i): Adjust constraints.  Don't use
15538         scratch BT register.
15539         (bne_media, bne_media_i): Likewise.
15540         (bgt_media, bgt_media_i): Likewise.
15541         (bge_media, bge_media_i): Likewise.
15542         (bgtu_media, bgtu_media_i): Likewise.
15543         (bgeu_media, bgeu_media_i): Likewise.
15544         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15545         bunordered): Emit jump insn.  Force operands to registers when
15546         needed.
15547         (jump_media, jump): Simplify.
15548         (call_compact, call_compact_rettramp): New.
15549         (call_value_compact, call_value_compact_rettramp): New.
15550         (call_media, call_value_media): Simplify.
15551         (sibcall_compact, sibcall_media): New.
15552         (call, call_value): Adjust for SHmedia and SHcompact.
15553         (sibcall, sibcall_value, untyped_call): Likewise.
15554         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15555         (indirect_jump): Adjust for SHmedia.
15556         (casesi_jump_media): New.
15557         (nop): Re-enable for SHmedia.
15558         (call_site): Restrict to SH1.
15559         (casesi): Adjust for SHmedia.
15560         (casesi_shift_media, casesi_load_media): New.
15561         (return): Explicitly use PR register.  Call return trampoline
15562         on SHcompact.
15563         (return_i): Explicitly use PR register.
15564         (shcompact_return_tramp, shcompact_return_tramp_i): New.
15565         (return_media): Adjust.
15566         (shcompact_incoming_args): New.
15567         (epilogue): Adjust.
15568         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15569         (movstrsi): Disable on SH5.
15570         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15571         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15572         (subsf3, subsf3_media): Likewise.
15573         (mulsf3, mulsf3_media, mac_media): Likewise.
15574         (divsf3, divsf3_media): Likewise.
15575         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
15576         (floatsisf2, fux_truncsfsi2): Likewise.
15577         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
15578         constraints.
15579         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15580         (cmpunsf_media, cmpsf): Likewise.
15581         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15582         (abssf2, abssf2_media): Likewise.
15583         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15584         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15585         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
15586         (floatsidf2, fix_truncdfsi2): Likewise.
15587         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
15588         constraints.
15589         (cmpeqdf_media, cmpgtdf_media): Likewise.
15590         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15591         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15592         (absdf2, absdf2_media): Likewise.
15593         (extendsfdf2, extendsfdf2_media): Likewise.
15594         (truncsfdf2, truncsfdf2_media): Likewise.
15595         * config/sh/sh64.h: New file.
15596         * config/sh/t-sh64: New file.
15597         * config/sh/shmedia.h: New file.
15598         * config/sh/ushmedia.h: New file.
15599         * config/sh/sshmedia.h: New file.
15600         * configure.in: Added sh64-*-elf.
15601         * configure: Rebuilt.
15602         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
15603         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15604         (reg_class_from_letter): Use `b' for TARGET_REGS.
15605         (print_operand): Support `%M', `%m', `AND' and
15606         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
15607         (andcosts): Adjust for SHmedia.
15608         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15609         Likewise.
15610         (target_reg_operand): New function.
15611         * config/sh/sh-protos.h (target_reg_operand): Declare.
15612         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15613         FP registers on SH5.
15614         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15615         on SH4.
15616         (TARGET_REGISTER_P): New macro.
15617         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15618         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15619         (EXTRA_CONSTRAINT_S): New macro.
15620         (EXTRA_CONSTRAINT): Adjust.
15621         (FLOAT_TYPE_SIZE): Define to 32.
15622         (Pmode): DImode on SHmedia.
15623         (CONST_COSTS): Adjust for SHmedia literals.
15624         (PREDICATE_CODES): Added target_reg_operand.
15625         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15626         * config/sh/sh.md: Remove all attrs from SHmedia insns.
15627         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15628         (cmpdi): Accept SHmedia.
15629         (movdicc_false, movdicc_true): New insns.
15630         (movdicc): New expand.
15631         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15632         no_new_pseudos.
15633         (addsi3_media): Match `S' constraint.
15634         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15635         (negdi2): Expand for SHmedia.
15636         (one_cmpldi2): New expand.
15637         (zero_extendsidi2): Change from expand to insn.
15638         (extendsidi2): Add constraints.
15639         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
15640         LD/ST address.  Fix SI immediate loading split.
15641         (movhi_media, movqi_media, lduw, ldub): New insns.
15642         (movhi, movqi): Accept SHmedia.
15643         (shori_media, movdi_media): Relax input constraints.  Split
15644         symbolic constants.
15645         (movdf_media, movsf_media): New insn.  New split to movdi.
15646         (movdf, movsf): Match on SHmedia.
15647         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15648         bgeu_media): New insns and splits.  New insns with `_i' suffix.
15649         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15650         (bunordered): New expand.
15651         (jump_compact): Renamed from `jump'.
15652         (jump_media): New insn.
15653         (jump): New expand.
15654         (call_media, call_value_media): New insns.
15655         (call, call_value): Adjust.
15656         (indirect_jump_compact): Renamed from `indirect_jump'.
15657         (indirect_jump_media): New insn.
15658         (indirect_jump): New expand.
15659         (untyped_call, return): Accept SHmedia.
15660         (return_media): New insn.
15661         (prologue, epilogue, blockage): Accept SHmedia.
15662         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15663         (sunordered): New expand.
15664         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15665         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15666         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15667         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15668         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15669         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15670         abssf2_media): New insns.
15671         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15672         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15673         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15674         floatdidf2, floatsidf2_media, fix_truncdfdi2,
15675         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15676         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15677         absdf2_media): New insns.
15678         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15679         (extendsfdf2_media, truncdfsf2_media): New insns.
15680         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
15681         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15682         * config/sh/sh.h (CONST_OK_FOR_J): Document.
15683         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15684         * config/sh/sh.md (adddi3): New expand.
15685         (adddi3_media, adddi3z_media): New insns.
15686         (adddi3_compact): Renamed from adddi3.
15687         (addsi3_media): Use add.l r63 to add constant zero.
15688         (subdi3): New expand.
15689         (subdi3_media): New insn.
15690         (subdi3_compact): Renamed from subdi3.
15691         (mulsidi3): New expand.
15692         (mulsidi3_media): New insn.
15693         (mulsidi3_compact): Renamed from mulsidi3.
15694         (umulsidi3): New expand.
15695         (umulsidi3_media): New insn.
15696         (umulsidi3_compact): Renamed from umulsidi3.
15697         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15698         (ashlsi3, ashrsi3, lshrsi3): Use them.
15699         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15700         (ashldi3, ashrdi3, lshrdi3): Use them.
15701         (zero_extendsidi2): New expand.
15702         (extendsidi2): New insn.
15703         (movsi_media): New insn.  Split to movdi to load constants.
15704         (movsi): Enable for shmedia.
15705         (movdi_media): New insn.  Use shori_media to load wide constants.
15706         (short_media): New insn.
15707         (movdi): Enable for shmedia.
15708         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
15709         * config/sh/sh.h (CPP_SPEC): Added `m5'.
15710         (SUBTARGET_CPP_SPEC): Added `!m5'.
15711         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15712         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
15713         to all other SH variants.
15714         (TARGET_DEFAULT): Set to SH1_BIT.
15715         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15716         (BITS_PER_WORD): Raise to 64 on shmedia.
15717         (MAX_BITS_PER_WORD): Change to 64.
15718         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15719         (INT_TYPE_SIZE): Keep as 32.
15720         (UNITS_PER_WORD): Raise to 8 on shmedia.
15721         (MIN_UNITS_PER_WORD): Keep as 4.
15722         (POINTER_SIZE): Raise to 64 on shmedia.
15723         (CONST_OK_FOR_J): New macro.
15724         (CONST_OK_FOR_LETTER_P): Use it.
15725         (processor_type): Add PROCESSOR_SH5.
15726         * config/sh/sh.md: Conditionalize all expands, insns and
15727         splits to TARGET_SH1.
15728         (cpu): Added sh5.
15729         (addsi3_compact): Renamed from...
15730         (addsi3): Now an expand.
15731         (addsi3_media, subsi3_media): New insns.
15732         (subsi3): Don't negate constants with SHmedia.
15733
15734         * hooks.c: New file.
15735         * hooks.h: New file.
15736         * Makefile.in (HOOKS_H): New.
15737         (TARGET_DEF_H): Added $(HOOKS_H).
15738         (OBJS): Added hooks.o.
15739         (cfgcleanup.o, bb-reorder.o): Added target.h.
15740         (hooks.o): Added dependencies.
15741         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15742         (TARGET_INITIALIZER): this.
15743         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15744         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15745         * bb-reorder.c: Include target.h.
15746         (reorder_basic_blocks): Skip if cannot modify jumps.
15747         * cfgcleanup.c: Include target.h.
15748         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15749
15750 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15751
15752         * config/mips/mips.md (casesi_internal, casesi_internal_di):
15753         Protect jump delay slot instructions with .set noreorder and
15754         .set nomacro.
15755
15756 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15757
15758         * config/mips/mips.md (casesi_internal_di): Calculate
15759         the index into the target offset table correctly.
15760
15761 2002-02-08  Richard Henderson  <rth@redhat.com>
15762
15763         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15764         * final.c (output_addr_const): Accept and discard SUBREG.
15765         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15766         mark them unknown instead.
15767         (simplify_subtraction): Handle RTX_UNKNOWN.
15768         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15769
15770 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
15771
15772         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15773
15774 2002-02-08  Richard Henderson  <rth@redhat.com>
15775
15776         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15777
15778 2002-02-08  Andreas Jaeger  <aj@suse.de>
15779
15780         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15781         * config/i386/t-linux64: New file.
15782
15783 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
15784
15785         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15786         * c-parse.in (compstmt): Clear last_expr_type.
15787
15788 2002-02-07  Richard Henderson  <rth@redhat.com>
15789
15790         * loop.c (strength_reduce): Sink final_value when not
15791         eliminating a biv.
15792
15793 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
15794
15795         * config/sparc/freebsd.h: Fix mismatched spec {.
15796
15797 2002-02-07  Richard Henderson  <rth@redhat.com>
15798
15799         * cfgrtl.c: Include recog.h and insn-config.h.
15800         (keep_with_call_p): Fix general_operand invocation.
15801         * Makefile.in (cfgrtl.o): Update dependencies.
15802
15803 2002-02-07  Kazu Hirata  <kazu@hxi.com>
15804
15805         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15806         comment.  Accept HImode only if TARGET_H8300.
15807
15808 2002-02-07  Eric Christopher  <echristo@redhat.com>
15809
15810         * config/mips/crtn.asm: Cleanup #ifdefs.
15811
15812 2002-02-07  Eric Christopher  <echristo@redhat.com>
15813
15814         * config/mips/crti.asm: Add changes for mips16. mips16 uses
15815         register 7 as RA instead of $31.
15816         * config/mips/crtn.asm: Ditto.
15817         * config/mips/mips.c (mips_move_2words): Add case for
15818         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15819         (compute_frame_size): Fix typo.
15820         (save_restore_insns): Ditto.  Make documentation about using
15821         register $7 as return register more precise.
15822         (mips_expand_epilogue): Fix comment. Add code to work around not
15823         being able to add to the stack pointer directly.
15824         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15825         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15826         epilogue.
15827
15828 2002-02-07  Tom Rix  <trix@redhat.com>
15829
15830         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15831         immediates in ldu and stdu DS opcode field.
15832         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15833         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15834         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15835
15836 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
15837
15838         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15839         offset for stack bias.
15840
15841 2002-02-07  H.J. Lu <hjl@gnu.org>
15842
15843         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15844
15845 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
15846
15847         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15848
15849 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
15850
15851         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15852         * i386.c (x86_order_regs_for_local_alloc): New global function.
15853         * i386.h (REG_ALLOC_ORDER): CLeanup.
15854         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15855
15856 2002-02-07  Richard Henderson  <rth@redhat.com>
15857
15858         PR optimization/2463
15859         * alias.c (find_base_value): Recall base values for fixed hard regs.
15860         * loop.c (loop_regs_update): Don't use single_set on non-insns.
15861
15862 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
15863
15864         * config/mips/mips.md (define_delay) [mips16]: Adjust required
15865         length.
15866
15867 2002-02-06  Richard Henderson  <rth@redhat.com>
15868
15869         PR c/5609
15870         * stmt.c (resolve_operand_name_1): Take more care with mixed
15871         named and unnamed operands.
15872
15873 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
15874             Jan Hubicka  <jh@suse.cz>
15875
15876         * loop.c (remove_constant_addition): Avoid clobbering a shared
15877         CONST expression.
15878
15879 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15880
15881         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15882         * config/s390/t-linux64: New file.
15883         * config/s390/libgcc-glibc.ver: New file.
15884
15885 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15886
15887         * config/s390/linux64.h: Delete file.
15888         * config/s390/s390x.h: New file.
15889         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15890         as target header file.
15891         * config/s390/linux.h (TARGET_VERSION): Define depending on
15892         DEFAULT_TARGET_64BIT.
15893         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15894         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15895         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15896         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15897         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15898         (EXTRA_SPEC): New define.
15899         * config/s390/s390.h (TARGET_VERSION): Define depending on
15900         DEFAULT_TARGET_64BIT.
15901         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15902
15903 2002-02-06  Jason Merrill  <jason@redhat.com>
15904
15905         * c-decl.c (finish_function): Warn about a non-void function with
15906         no return statement and no abnormal exit.
15907         (current_function_returns_abnormally): New variable.
15908         (start_function): Clear it.
15909         (struct c_language_function): Add returns_abnormally.
15910         (push_c_function_context): Save it.
15911         (pop_c_function_context): Restore it.
15912         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15913         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15914         an explicit return type.
15915         * c-tree.h: Declare current_function_returns_abnormally.
15916         (C_FUNCTION_IMPLICIT_INT): New macro.
15917         * c-typeck.c (build_function_call): Set it.
15918         (c_expand_return): Set current_function_returns_value even if the
15919         value is erroneous.
15920
15921 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15922
15923         PR c/5420:
15924         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15925         unsafe for reevaluation.
15926
15927 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15928
15929         PR c/5482:
15930         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15931         EXPR_STMT, but COMPOUND_STMT, recurse into it.
15932
15933 2002-02-06  Richard Henderson  <rth@redhat.com>
15934
15935         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15936         be a general_operand.  Dest for function value must be a pseudo.
15937
15938 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
15939
15940         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15941         as SYMBOL_REFs from the constant pool.
15942
15943 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
15944
15945         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15946         passed by invisible reference.
15947
15948 2002-02-05  Richard Henderson  <rth@redhat.com>
15949
15950         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15951
15952 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
15953
15954         Implement using "base addresses" in insn operands as default.
15955         * config/mmix/mmix.c (mmix_conditional_register_usage): if
15956         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15957         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15958         used to read the rtx value.
15959         (mmix_target_asm_function_epilogue): Fix spacing.
15960         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15961         (mmix_legitimate_address): Ditto.
15962         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15963         should be loaded with a GETA insn.  Don't allocate needless extra
15964         char for nul termination and fix misleading comment.
15965         (mmix_print_operand_address): Handle constants if
15966         TARGET_BASE_ADDRESSES.
15967         (mmix_output_register_setting): Use base addressing if
15968         TARGET_BASE_ADDRESSES and the number of insns is 3.
15969         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15970         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15971         to use R as constraint, add LDA to match s.
15972         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15973         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15974         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15975         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15976         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15977         order with other fixed registers.
15978         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15979         other parameter/call-clobbered registers.
15980         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15981         -mbase-addresses, -mno-base-addresses.
15982         (MMIX Options): Ditto.
15983
15984 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15985
15986         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15987
15988 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
15989
15990         * config/rs6000/altivec.h: Change elem to _S_elem.
15991
15992 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
15993
15994         * config/netbsd.h (WCHAR_TYPE): Define.
15995         (WCHAR_TYPE_SIZE): Ditto.
15996         (WINT_TYPE): Ditto.
15997         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15998         (WCHAR_UNSIGNED): Ditto.
15999         (WCHAR_TYPE_SIZE): Ditto.
16000         (WINT_TYPE): Ditto.
16001         * config/arm/netbsd.h: Likewise.
16002         * config/i386/netbsd-elf.h: Likewise.
16003         * config/i386/netbsd.h: Likewise.
16004         * config/m68k/netbsd-elf.h: Likewise.
16005         * config/m68k/netbsd.h: Likewise.
16006         * config/ns32k/netbsd.h: Likewise.
16007         * config/sparc/netbsd.h: Likewise.
16008         * config/vax/netbsd.: Likewise.
16009
16010 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16011
16012         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16013         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
16014         (TARGET_INITIALIZER): this.
16015         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16016         (BITFIELD_NBYTES_LIMITED): Markup fix.
16017         * tree.h (default_ms_bitfield_layout_p): Declare.
16018         (record_layout_info): Added prev_field.
16019         * tree.c (default_ms_bitfield_layout_p): New fn.
16020         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16021         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16022         * stor-layout.c: Include target.h.
16023         (start_record_layout): Initialize prev_field.
16024         (place_field): Handle MS bit-field layout, and disregard
16025         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16026         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
16027         * Makefile.in (stor-layout.o): Adjust dependencies.
16028
16029 2002-02-05  Jason Merrill  <jason@redhat.com>
16030
16031         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16032
16033 2002-02-05  Andreas Jaeger  <aj@suse.de>
16034
16035         * crtstuff.c: Fix comments.
16036
16037 2002-02-05  Richard Henderson  <rth@redhat.com>
16038
16039         PR fortran/3393
16040         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16041         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16042
16043         PR fortran/3392
16044         * config/mips/mips.c (function_arg): Handle TImode.
16045         (function_arg_advance): Likewise.
16046
16047 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16048
16049         * config/rs6000/altivec.h (vec_step_help): Rename to
16050         __vec_step_help.
16051
16052 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16053
16054         * config/rs6000/altivec.h: Fix typos.
16055
16056 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16057
16058         * config/arm/netbsd.h: Correct a comment.
16059
16060 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16061
16062         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16063         building void typed builtins.
16064
16065         * config/rs6000/altivec.h (vec_ld*): Fix typos.
16066         (vec_step): Implement for C++.
16067
16068 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16069
16070         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16071
16072 2002-02-04  Richard Henderson  <rth@redhat.com>
16073
16074         * combine.c (nonzero_bits): Re-introduce special case for
16075         sp/fp/ap wrt REGNO_POINTER_ALIGN.
16076
16077 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16078
16079         * doc/extend.texi: Warn about unsupported usage of altivec
16080         builtins.
16081
16082         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16083         (altivec_predicate_*): New.
16084
16085         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16086         Add C++ version of vec_*() functions.
16087
16088         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16089         (bdesc_2arg): Remove altivec predicates.
16090         (altivec_expand_builtin): Handle predicates.
16091         (altivec_init_builtins): Handle predicates.
16092         (altivec_expand_predicate_builtin): New.
16093
16094 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16095
16096         * pa.c (DO_FRAME_NOTES): Move forward.
16097         (store_reg): Revise handling of frame notes.
16098         (load_reg): Likewise.
16099         (set_reg_plus_d): Likewise.
16100         (hppa_expand_prologue): Likewise.
16101         (hppa_expand_epilogue): Likewise.
16102
16103 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16104
16105         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16106
16107 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16108
16109         PR c/4475, c++/3780:
16110         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16111         * c-common.h (SWITCH_TYPE): Define.
16112         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16113         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16114         Rename spareness variable to sparseness.
16115         (expand_end_case_type): Renamed from expand_end_case, use orig_type
16116         if non-NULL instead of TREE_TYPE (orig_index).
16117         * tree.h (expand_end_case_type): Renamed from expand_end_case.
16118         (expand_end_case): Define using expand_end_case_type.
16119         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16120         to expand_end_case_type.
16121         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16122
16123 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16124
16125         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16126         (BIGGEST_ALIGNMENT): Change to 128.
16127
16128 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16129
16130         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16131
16132 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16133
16134         * pa.md (call_internal_reg_64bit): Remove unused variable.
16135
16136 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
16137
16138         * config/arm/arm.h (machine_function): Add uses_anonymous_args
16139         field.
16140         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16141         * config/arm/arm.c (current_function_anonymous_args): Delete,
16142         replace uses with cfun->machine->uses_anonymous_args.
16143         (arm_reorg): Do not reset uses_anonymous_args.
16144
16145         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16146         any geenral register.
16147
16148 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
16149
16150         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16151         the entry block.
16152
16153 2002-02-04  Richard Henderson  <rth@redhat.com>
16154
16155         * combine.c (force_to_mode): Remove STACK_BIAS code.
16156         (nonzero_bits): Likewise.  Replace sp/fp special case with
16157         REGNO_POINTER_ALIGN.
16158
16159         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16160         (HARD_FRAME_POINTER_REGNUM): New.
16161         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16162         (FIXED_REGS, CALL_USED_REGS): Update.
16163         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16164         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16165         (HARD_REGNO_NREGS): Update for SFP.
16166         (STACK_POINTER_OFFSET): Include bias here ...
16167         (FIRST_PARM_OFFSET): ... not here.
16168         (STACK_BIAS): Remove.
16169         (INIT_EXPANDERS): New.
16170         (STARTING_FRAME_OFFSET): Do not include bias.
16171         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16172         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16173         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16174         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16175         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16176         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16177         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16178         (MUST_SAVE_REGISTER): Likewise.
16179         (sparc_flat_function_prologue): Likewise.
16180         (sparc_flat_function_epilogue): Likewise.
16181         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16182         (sparc_init_modes): SFP is GENERAL_REGS.
16183         (sparc_builtin_saveregs): SFP does not have bias applied.
16184
16185 2002-02-04  Richard Henderson  <rth@redhat.com>
16186
16187         * config/alpha/alpha.c (current_function_is_thunk): Don't check
16188         current_function_is_thunk.
16189         (alpha_sa_mask): Distinguish between current_function_is_thunk
16190         called from ASM_OUTPUT_MI_THUNK and not.
16191         (alpha_does_function_need_gp): Thunks always need gp.
16192         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16193         (alpha_output_mi_thunk_osf): New.
16194         * config/alpha/alpha-protos.h: Update.
16195         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16196
16197 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
16198
16199         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16200         function types, not when they're taken away.
16201
16202 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
16203
16204         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16205         CODE_LABEL and jump table when replacing a table jump with a
16206         simple jump.
16207
16208 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16209
16210         * config/s390/s390-protos.h (legitimize_la_operand,
16211         s390_secondary_input_reload_class, s390_plus_operand,
16212         s390_expand_plus_operand): Add prototypes.
16213
16214         config/s390/s390.c (s390_secondary_input_reload_class,
16215         s390_plus_operand, s390_expand_plus_operand): New functions.
16216
16217         (struct s390_address): New member 'pointer'.
16218         (s390_decompose_address): Compute it.
16219         (legitimate_la_operand_p): Use it.
16220         (legitimize_la_operand): New function.
16221         (movti, movdi, movdf splitters): Call it.
16222
16223         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16224         (PREDICATE_CODES): Add s390_plus_operand.
16225
16226         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16227         (la_ccclobber): Allow GENERAL_REGS as output operand.
16228
16229         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16230         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16231         (*la_64, *la_31, reload_indi, reload_insi): ... these.
16232
16233 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16234
16235         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16236         register names for regular asm () construct.
16237
16238 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16239
16240         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16241         registers.
16242
16243 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16244
16245         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16246         pat for recog.
16247
16248 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
16249
16250         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16251         constant pool to be identical by string address and index.
16252
16253 2002-02-04  Anthony Green  <green@redhat.com>
16254
16255         * output.h (SECTION_OVERRIDE): Define.
16256         * varasm.c (named_section): Obey SECTION_OVERRIDE.
16257
16258 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16259
16260         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16261         by existing arm*-*-netbsd* (a.out) target.
16262         (ns32k-*-netbsdelf*): Likewise.
16263         (sparc-*-netbsdelf*): Likewise.
16264         (vax-*-netbsdelf*): Likewise.
16265
16266 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
16267
16268         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16269         headers and libobjc headers.
16270
16271 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
16272
16273         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16274         (_mingw.h): Remove duplicate include.
16275
16276 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16277
16278         * config.gcc: Set cpu_type to m68k for 68010, as well.
16279         (m68010-*-netbsdelf*): New...
16280         (m68k*-*-netbsdelf*): ...targets.
16281         * config/m68k/netbsd-elf.h: New file.
16282
16283 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16284
16285         * config/h8300/h8300.c (hand_list): Move inside function_arg.
16286
16287 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16288
16289         * config/h8300/h8300.c (h8_push_ops): Move inside
16290         h8300_init_once.
16291         (h8_pop_ops): Likewise.
16292         (h8_move_ops): Likewise.
16293
16294 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16295
16296         * config/h8300/h8300.c (os_task): Make it static.
16297         (monitor): Likewise.
16298         (pragma_saveall): Likewise.
16299
16300 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
16301
16302         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16303         constant is a valid sign-extension for Pmode.
16304
16305 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16306
16307         * config/h8300/h8300.c: Fix formatting.
16308
16309 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16310
16311         * config/h8300/h8300.md: Fix formatting.
16312
16313 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16314
16315         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16316         predicates of operands[1].  Split the patterns for each
16317         processor variant.
16318
16319 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16320
16321         * config/h8300/h8300.md (xor patterns): Tighten the predicates
16322         of operands[1] to register_operand.
16323
16324 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16325
16326         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16327         * cpphash.c (_cpp_init_hashtable): Similarly.
16328         * cppinit.c (cpp_create_reader): Default the signed_char flag.
16329         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16330         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16331         (cpp_handle_option): Handle the new options.
16332         * cpplex.c (cpp_interpret_charconst): Use new flag.
16333         * cpplib.h (struct cpp_options): New member signed_char.
16334         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16335         (cpp_options): Handle -fsigned-char and -funsigned-char.
16336         (static_specs): Remove signed_char_spec.
16337         (do_spec1): Don't handle %c.
16338         * system.h: Poison SIGNED_CHAR_SPEC.
16339         * tradcif.y (yylex): Use flag_signed_char.
16340         * tradcpp.h (flag_signed_char): New.
16341         * tradcpp.c (flag_signed_char): New.
16342         (main): Handle new command-line options.
16343         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16344 config:
16345         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16346         * avr/avr.h: Remove old comments.
16347         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16348         (CC1_SPEC): Pass -fsigned-char if -mic*.
16349         (SIGNED_CHAR_SPEC): Remove.
16350 doc:
16351         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16352
16353 2002-02-01  Eric Christopher  <echristo@redhat.com>
16354
16355         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16356         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16357         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16358         (ASM_OUTPUT_REG_POP): Ditto.
16359
16360 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16361
16362         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16363         patch.
16364
16365 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16366
16367         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16368
16369 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16370
16371         PR c/5304:
16372         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16373         unconditionally.
16374
16375 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16376
16377         * cfganal.c: Include tm_p.h.
16378         (keep_with_call_p): Fix the test that determines if a register holds
16379         the return value of a call.
16380
16381 2002-02-01  DJ Delorie  <dj@redhat.com>
16382
16383         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16384         we are given conflicting registers, switch to the other one we
16385         had allocated for us.
16386         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16387         as TImode so we know when the "other" register is available.
16388
16389 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
16390
16391         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16392         sparc/sparc_bi.h.
16393
16394 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16395
16396         * cfganal.c (keep_with_call_p): New function.
16397         (flow_call_edges_add): Prevent splitting a block between a call and
16398         a single-set instruction that should be kept in the same block.
16399
16400 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16401
16402         * doc/install.texi (avr): Update outdated URL.
16403
16404 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
16405
16406         * config/stormy16/stormy16.md (pushqi): New.
16407         (popqi): New.
16408         (pushhi): New.
16409         (pophi): New.
16410         (movhi): Remove stack operands.
16411         (movqi): Likewise.
16412         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16413         nonimmediate_nonstack_operand.
16414         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16415         New.
16416         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16417         New.
16418
16419 2002-01-31  Jason Merrill  <jason@redhat.com>
16420
16421         * Makefile.in (c-parse.c): Handle .output file.
16422         * objc/Make-lang.in (objc-parse.c): Likewise.
16423
16424 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
16425
16426         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16427         the -me[lb] option is given.  Don't output the default flag
16428         twice.
16429
16430 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
16431
16432         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16433         the primary source file; this has not been done yet.
16434         * c-decl.c (c_expand_body): Reset input_filename from
16435         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16436
16437 2002-01-31  Kazu Hirata  <kazu@hxi.com>
16438
16439         * rtlanal.c (subreg_regno_offset): Do not use
16440         SUBREG_REGNO_OFFSET.
16441         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16442         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16443
16444 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16445
16446         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
16447         version rather than GNATS version in --version output.
16448
16449 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
16450
16451         * ifcvt.c (noce_process_if_block): Make a copy of the destination
16452         when copying back from a temporary.
16453
16454 2002-01-30  Richard Henderson  <rth@redhat.com>
16455
16456         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16457         and new_dest are the same.
16458
16459 2002-01-30  Richard Henderson  <rth@redhat.com>
16460
16461         PR opt/5076
16462         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16463         * rtl.c (note_insn_name): Update.
16464         * emit-rtl.c (remove_unnecessary_notes): Kill it.
16465         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
16466         to perform loop rotation.
16467         (expand_exit_loop_top_cond): New.
16468         * tree.h (expand_exit_loop_top_cond): Declare it.
16469         * c-semantics.c (genrtl_while_stmt): Use it.
16470         (genrtl_for_stmt): Likewise.
16471
16472 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
16473
16474         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16475         arguments to 64-bit boundaries on 64-bit ABIs.
16476
16477 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
16478
16479         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16480
16481 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16482
16483         * c-decl.c (grokdeclarator): Handle type being a typedef for an
16484         invalid type.
16485
16486 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
16487
16488         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16489         * config/sparc/sparc_bi.h: Remove file.
16490         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16491
16492 2002-01-30  Richard Henderson  <rth@redhat.com>
16493
16494         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16495
16496 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
16497
16498         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16499
16500 2002-01-30  Jason Merrill  <jason@redhat.com>
16501
16502         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16503         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16504         (reg_save): Use DW_CFA_offset_extended_sf instead.
16505
16506         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16507
16508 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16509
16510         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16511         in cselib_lookup.
16512
16513 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
16514
16515         * rs6000.md ("*call_value_local32"): Remove constraints.
16516         ("*call_value_local64"): Same.
16517         ("*call_value_indirect_nonlocal_aix32"): Same.
16518         ("*call_value_nonlocal_aix32"): Same.
16519         ("*call_value_indirect_nonlocal_aix64"): Same.
16520         ("*call_value_nonlocal_aix64"): Same.
16521         ("*call_value_nonlocal_sysv"): Same.
16522
16523 2002-01-29  Richard Henderson  <rth@redhat.com>
16524
16525         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16526
16527 2002-01-29  Richard Henderson  <rth@redhat.com>
16528
16529         * expr.c (force_operand): Ignore flag_pic for detecting pic
16530         address loads.
16531         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16532         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16533         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16534         instead of open-coded loop.
16535         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16536         be fixed when in use.
16537
16538 2002-01-29  Richard Henderson  <rth@redhat.com>
16539
16540         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16541         * sched-rgn.c (propagate_deps): Update them.
16542         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
16543         clobbers list when either gets too long.
16544
16545 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16546
16547         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16548         and INDEX_REGS the same as GENERAL_REGS.
16549         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16550
16551 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16552
16553         * tree.c (build_nonstandard_integer_type): Correct prototype.
16554
16555 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
16556
16557         * config/s390/s390.md (movstrsico, movstrdix_64,
16558         movstrsix_31): Remove, replace by ...
16559         (movstrdi_short, movstrsi_short, movstrdi_long,
16560         movstrsi_long): ... these.  New.
16561         (movstrdi, movstrsi): Adapt.
16562
16563         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16564         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16565         Remove unnecessary CC clobber.
16566         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16567         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16568
16569         (divmoddi4): Don't partially initialize TImode register.
16570
16571 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
16572
16573         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16574
16575 2002-01-29  Richard Henderson  <rth@redhat.com>
16576
16577         * flow.c (print_rtl_and_abort): Remove.
16578         (print_rtl_and_abort_fcn): Remove.
16579         (verify_local_live_at_start): Use dump_bb instead.
16580         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16581         (verify_wide_reg_1): Return 2 on mode test failure.
16582
16583 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16584
16585         PR c/3325, c/3326, c/2511, c/3347
16586         * c-decl.c (enum_decl_context): Remove BITFIELD.
16587         (grokdeclarator): Take bitfield width as an input.
16588         Ensure bitfields are given the correct type.  Perform
16589         bitfield width validation with build_bitfield_integer_type
16590         rather than waiting for finish_struct.
16591         (grok_typename, grok_typename_in_parm_context, start_decl,
16592         push_parmdecl, grokfield, start_function): Update calls to
16593         grokdeclarator.
16594         (build_bitfield_integer_type): New function.
16595         (finish_struct): Move bitfield validation to grokdeclarator
16596         and build_bitfield_integer_type.
16597         * tree.c (build_nonstandard_integer_type): New function.
16598         * tree.h (build_nonstandard_integer_type): New prototype.
16599 objc:
16600         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16601
16602 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16603
16604         PR other/1502:
16605         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16606         don't ignore unrecognized -W* options.
16607         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16608         * cpplib.h (cpp_handle_option): Adjust prototype.
16609         * c-decl.c (c_decode_options): Pass 0 as last argument to
16610         cpp_handle_option.
16611
16612         PR c/2896:
16613         * gcc.c (cpp_unique_options): Split from cpp_options.
16614         (cpp_options): Source cpp_unique_options.
16615         (default_compilers): Use cpp_unique_options instead of cpp_options
16616         when used together with cc1_options.
16617         (static_specs): Add cpp_unique_options.
16618         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16619         when used together with cc1_options.
16620
16621 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16622
16623         * config/h8300/h8300-protos.h: Update the prototype of
16624         output_a_shift.
16625         * config/h8300/h8300.c (output_a_shift): Remove an unused
16626         argument 'insn'.  Remove redundant code.
16627         * config/h8300/h8300.md: Adust to the new prototype of
16628         output_a_shift.
16629
16630 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16631
16632         * config/h8300/h8300-protos.h: Update the prototypes of
16633         emit_a_rotate and expand_a_rotate.
16634         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16635         first argument to 'enum rtx_code'.
16636         (expand_a_rotate): Likewise.
16637
16638 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16639
16640         * config/h8300/h8300-protos.h: Update the prototype of
16641         output_simode_bld.
16642         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16643         'log2'.
16644         * config/h8300/h8300.md: Adjust to the new prototype.
16645
16646 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16647
16648         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16649         redundant code.
16650
16651 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16652
16653         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16654         is a fixed register before returning pic_offset_table_rtx.
16655         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16656         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16657
16658 2002-01-28  Jason Merrill  <jason@redhat.com>
16659
16660         * dwarf2.h: Sync with src version.
16661
16662 2002-01-28  Paul Koning  <pkoning@equallogic.com>
16663
16664         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16665         BT_FN_VOID_PTR_VAR.
16666         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16667         * doc/extend.texi (__builtin_prefetch): Update documentation:
16668         first argument is now const void ptr.
16669
16670 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16671
16672         * config/h8300/h8300-protos.h: Remove an unused prototype.
16673
16674 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
16675
16676         * toplev.c (lang_independent_init): Round up identifier size.
16677
16678 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16679
16680         * config.gcc: Revert previous change.
16681
16682 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
16683
16684         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16685
16686 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16687
16688         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16689         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
16690         other non-elf netbsd config frags.
16691         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16692         collect2 will does that.
16693         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16694         shared-lib frobbing will work.
16695
16696 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16697
16698         * config/h8300/h8300.h: Fix formatting.
16699         * config/h8300/h8300.md: Likewise.
16700
16701 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
16702
16703         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16704         the old, removed AAA_standards fix.
16705         * fixinc/fixincl.x: Rebuilt.
16706
16707 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
16708
16709         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16710         atexit call in crtbegin, hooked in after call to frame_dummy;
16711         register EH before registering __fini__start.
16712
16713 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
16714
16715         * config/rs6000/altivec.h: Remove spurious semicolons.
16716
16717 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16718
16719         * config/h8300/h8300.md: Replace dead bit extraction patterns
16720         with ones that work.
16721
16722 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16723
16724         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16725         if not STRICT_ALIGNMENT.
16726         * rtl.h (MEM_ALIGN): Likewise.
16727
16728 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16729
16730         * doc/invoke.texi (-fdump-translation-unit): Revert this
16731         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16732
16733 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16734
16735         * config/h8300/h8300.md (define_constants): New.
16736         (anonymous patterns) Use defined constants appropriately.
16737
16738 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16739
16740         * config/h8300/h8300.c (function_arg): Remove redundant code.
16741
16742 2002-01-26  Richard Henderson  <rth@redhat.com>
16743
16744         * sched-deps.c (reg_pending_uses_head): New.
16745         (reg_pending_barrier): Rename from reg_pending_sets_all.
16746         (find_insn_list): Don't mark inline.
16747         (find_insn_mem_list): Remove.
16748         (add_dependence_list, add_dependence_list_and_free): New.
16749         (flush_pending_lists): Replace only_write param with separate
16750         for_read and for_write parameters.  Update all callers.  Use
16751         add_dependence_list_and_free.
16752         (sched_analyze_1): Do not add reg dependencies here; just set
16753         the pending bits.  Use add_dependence_list.
16754         (sched_analyze_2): Likewise.
16755         (sched_analyze_insn): Replace schedule_barrier_found with
16756         reg_pending_barrier.  Add all dependencies for pending reg
16757         uses, sets, and clobbers.
16758         (sched_analyze): Don't add reg dependencies for calls, just
16759         set pending bits.  Use regs_invalidated_by_call.  Treat
16760         sched_before_next_call as a normal list, not a fake insn.
16761         (init_deps): No funny init for sched_before_next_call.
16762         (free_deps): Free pending mems lists.  Don't zero reg_last.
16763         (init_deps_global): Init reg_pending_uses.
16764         (finish_deps_global): Free it.
16765         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
16766         (find_insn_mem_list): Remove.
16767         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16768         (propagate_deps): Use them.  Zero temp mem lists.
16769
16770 2002-01-26  Richard Henderson  <rth@redhat.com>
16771
16772         * Makefile.in (CRTSTUFF_CFLAGS): New.
16773         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16774         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16775         crtstuff.c instead of alpha assembly version.
16776         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16777         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
16778         not FORCE_{INIT,FINI}_SECTION_ALIGN.
16779         (__do_global_dtors_aux): Mark used.
16780         (frame_dummy, __do_global_ctors_aux): Mark used.
16781         (fini_dummy, init_dummy): Remove.
16782
16783         * config/alpha/crtbegin.asm: Remove file.
16784         * config/alpha/crtend.asm: Remove file.
16785         * config/alpha/t-crtbe: Remove file.
16786         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16787         (LINK_EH_SPEC): New.
16788
16789         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16790         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
16791         calling constructors.
16792         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16793
16794         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16795         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16796         CRT_END_INIT_DUMMY hack.
16797         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16798         FORCE_{INIT,FINI}_SECTION_ALIGN.
16799
16800         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16801         FORCE_{INIT,FINI}_SECTION_ALIGN.
16802
16803         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16804         invocation sequence.
16805         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16806
16807         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16808         (FORCE_CODE_SECTION_ALIGN): New.
16809
16810 2002-01-26  Richard Henderson  <rth@redhat.com>
16811
16812         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16813
16814 2002-01-26  Richard Henderson  <rth@redhat.com>
16815
16816         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16817         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16818
16819 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16820
16821         * config/h8300/h8300.md: Remove bit extraction patterns that
16822         cannot be triggered.
16823         Restrict each bit extraction pattern to a variant on which the
16824         pattern is tested.
16825
16826 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
16827
16828         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16829
16830 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16831
16832         * config/h8300/h8300.md: Remove bit test patterns that cannot
16833         be triggered.
16834         Restrict each bit test pattern to a variant on which the
16835         pattern is tested.
16836
16837 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16838
16839         * builtins.c (expand_builtin_strncat): Remove redundant check for
16840         INTEGER_CST.
16841
16842 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16843
16844         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16845         default setting.
16846         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16847         existing setting.
16848
16849 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16850
16851         * dbxout.c (dbxout_init): Use assemble_name rather than just
16852         stripping off the first character.
16853         (dbxout_source_file): Likewise.
16854
16855 2002-01-25  DJ Delorie  <dj@redhat.com>
16856
16857         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16858         using rtx_equal_p, not by comparing pointers.
16859
16860 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
16861
16862         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16863         for PIC_OFFSET_TABLE_REGNUM.
16864         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16865
16866 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16867
16868         * config.gcc (x86_64-*-freebsd*): New target.
16869         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16870         value.
16871         (i[34567]86-*-freebsd*): Don't include svr4.h.
16872         * config/i386/freebsd64.h: New file.
16873
16874 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
16875
16876         * config/alpha/x-vms (version): Make static.
16877
16878         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16879         in previous checkin.
16880
16881         * Makefile.in (install-headers-cp): New target.
16882         * config.gcc (alpha-dec-*vms*): Install headers with
16883         install-headers-cp
16884
16885 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16886
16887         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16888         avoid it's copies.
16889
16890 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16891
16892         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16893         of compare_tree_int.
16894         (expand_builtin_strncat): Likewise.
16895         * c-decl.c (finish_struct): Use tree_low_cst.
16896         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16897         * tree.c (compare_tree_int): Likewise.
16898
16899 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
16900
16901         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16902         adjustments even if they are implemented by more than two insns.
16903
16904 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16905
16906         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16907         * df.h (struct ref): Kill B.
16908         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16909
16910         * basic-block.h (PROP_EQUAL_NOTES): New flag.
16911         * flow.c (propagate_one_insn): Use it.
16912         (mark_used_regs): Handle NIL.
16913
16914 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16915
16916         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16917         to help folding.
16918
16919 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
16920
16921         * rs6000.md (prefetch): Make address V4SI mode so that the address
16922         is restricted to legitimate form for instruction.
16923
16924 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
16925
16926         * doc/install.texi (xtensa-*-elf): New target.
16927         (xtensa-*-linux*): New target.
16928         * doc/contrib.texi: Add myself.
16929
16930 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
16931
16932         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16933         purpose register to hold an SImode (or smaller) value.
16934
16935 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
16936
16937         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16938         registry only.
16939         * crtstuff.c: Likewise.
16940
16941 2002-01-25  Kazu Hirata  <kazu@hxi.com>
16942
16943         * config/h8300/h8300.md (negation patterns): Tighten
16944         predicates to register_operand.
16945
16946 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
16947
16948         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16949         mode, not Pmode.
16950
16951         * builtins.c (expand_builtin_prefetch): Same.
16952
16953 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16954
16955         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16956         modes.
16957
16958 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16959
16960         * config/h8300/h8300.c (print_operand): Remove support for
16961         operand character 'A'.
16962         * config/h8300/h8300.md (three anonymous patterns): Replace
16963         operand character 'A' with either 'T' or 'S'.
16964
16965 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16966
16967         * config/h8300/h8300.c (print_operand): Remove support for
16968         operand character 'U'.
16969
16970 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
16971
16972         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16973
16974 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
16975
16976         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16977         values to be assigned to the stack pointer.
16978
16979 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
16980
16981         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16982         to const_double needs to be done right for big-endian systems.
16983
16984 2002-01-24  Jason Merrill  <jason@redhat.com>
16985
16986         PR c++/2432
16987         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16988         to can_throw_internal.
16989
16990 2002-01-23  Richard Henderson  <rth@redhat.com>
16991
16992         * fold-const.c (fold): Change UINT_MAX test to check vs precision
16993         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
16994
16995 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16996
16997         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16998         (symGOT2reg): Use them, then set as GOT value as unchanging.
16999         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
17000         as a temporary, if possible.
17001         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
17002         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17003
17004 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17005
17006         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17007         accept to accept 0x80 as operands[2].
17008
17009 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17010
17011         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17012
17013 2002-01-23  Richard Henderson  <rth@redhat.com>
17014
17015         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17016
17017 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
17018
17019         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17020         (parmlist_or_identifiers_1): Verify that only a parmlist follows
17021         an attribute.
17022
17023 2002-01-23  Richard Henderson  <rth@redhat.com>
17024
17025         * expr.c (move_by_pieces_1): Extend size before negation.
17026
17027         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17028         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17029         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17030         * config/m68k/t-m68kelf: Likewise.
17031
17032 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
17033
17034         * config/xtensa/elf.h: New file.
17035         * config/xtensa/lib1funcs.asm: New file.
17036         * config/xtensa/lib2funcs.S: New file.
17037         * config/xtensa/linux.h: New file.
17038         * config/xtensa/t-xtensa: New file.
17039         * config/xtensa/xtensa-config.h: New file.
17040         * config/xtensa/xtensa-protos.h: New file.
17041         * config/xtensa/xtensa.c: New file.
17042         * config/xtensa/xtensa.h: New file.
17043         * config/xtensa/xtensa.md: New file.
17044         * config.gcc (xtensa-*-elf*): New target.
17045         (xtensa-*-linux*): New target.
17046         * cse.c (canon_hash): Compare rtx pointers instead of register
17047         numbers.  This is required for the Xtensa port.
17048         * integrate.c (copy_insn_list): Handle case where the static
17049         chain is in memory and the memory address has to be copied to
17050         a register.
17051         * doc/invoke.texi (Option Summary): Add Xtensa options.
17052         (Xtensa Options): New node.
17053         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17054
17055 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17056
17057         * diagnostic.c (internal_error): Do ICE suppression only
17058         when ENABLE_CHECKING is not defined.
17059
17060         * c-typeck.c (require_complete_type): Return error_mark_node
17061         if type is error_mark_node.
17062
17063 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
17064
17065         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17066         -Os and issue a warning.
17067
17068 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17069
17070         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17071         current (lack of) need for host configuration by hand.
17072
17073         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17074         references.  Documentation of some target macros moved from
17075         hostconfig.texi to tm.texi.
17076
17077 2002-01-23  Will Cohen  <wcohen@redhat.com>
17078
17079         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17080         defined.
17081
17082 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17083
17084         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17085         operand[3].
17086
17087 2002-01-23  Jason Merrill  <jason@redhat.com>
17088
17089         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17090
17091         * function.c (assign_parms): Don't put args of inline functions
17092         into registers when not optimizing.
17093
17094 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
17095
17096         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17097         (prologue_use): New pattern.
17098         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17099         preference to gen_rtx_USE.
17100         (thumb_expand_prologue): Use gen_prologue_use in preference to
17101         gen_rtx_USE.
17102         (thumb_expand_epilogue): Use gen_prologue_use in preference to
17103         gen_rtx_USE.
17104
17105 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
17106
17107         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17108
17109 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17110
17111         PR c/3504
17112         * doc/extend.texi: Correct documentation of __alignof__.
17113
17114 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
17115
17116         * params.h: Rename arguments of DEFPARAM so that it will be
17117         recognized as a translation keyword.
17118
17119 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17120
17121         * extend.texi: Document altivec functions.
17122         Fix N-bit adjectives in X86 builtin documentation.
17123
17124 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17125
17126         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17127         auto_inc_dec values.
17128
17129 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
17130
17131         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17132         after backslash.
17133         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17134
17135 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17136
17137         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17138
17139 2002-01-22  Richard Henderson  <rth@redhat.com>
17140
17141         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17142         copy_insn not copy_rtx.
17143
17144 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
17145
17146         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17147         "nonzero" as that might add "1" bits.  Ensure "constop" is
17148         properly sign extened.
17149         (force_to_mode): Tweak for sign extended constop.
17150
17151 2002-01-22  Richard Henderson  <rth@redhat.com>
17152
17153         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17154         for_each_rtx instead of assuming we're already looking at the MEM.
17155         (split_small_symbolic_mem_operand): Likewise.
17156         * config/alpha/alpha.h (PREDICATE_CODES): Update.
17157         * config/alpha/alpha.md (small symbolic memory splitters): Update.
17158
17159 2002-01-22  Richard Henderson  <rth@redhat.com>
17160
17161         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17162         sequence number for the literal.
17163         (divmoddi_internal_er): Likewise.
17164
17165 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17166
17167         PR java/4972
17168         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17169         in LIBICONV variable.
17170         * configure: Regenerated.
17171
17172 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
17173
17174         * dependence.c (build_def_use): Remove array_idx.
17175
17176         * dwarfout.c (last_filename): Remove.
17177         (output_compile_unit_die): Remove last_filename.
17178
17179 2002-01-22  Roger Sayle  <roger@eyesopen.com>
17180             Richard Henderson  <rth@redhat.com>
17181
17182         PR opt/3640
17183         * fold-const.c (fold): Optimize unsigned comparisons against
17184         UINT_MAX (and similar unsigned constants).
17185
17186 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
17187
17188         * Makefile.in (loop.o): Depend on OPTABS_H.
17189         * loop.c (emit_prefetch_instructions): Check the prefetch operand
17190         against the predicate.
17191
17192         PR target/5379
17193         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17194         for the address operand.
17195
17196 2002-01-22  Richard Henderson  <rth@redhat.com>
17197
17198         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17199
17200 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17201
17202         PR other/5450
17203         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17204         preprocessor flags.
17205
17206 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
17207
17208         * config.gcc (x86_64-*-netbsd*): New target.
17209         * config/i386/netbsd64.h: New file.
17210
17211 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17212
17213         * regrename.c (kill_value): Fix typo.
17214
17215 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17216
17217         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17218
17219         * config/rs6000/rs6000.h: Same.
17220
17221         * function.c (instantiate_virtual_regs): Remove
17222         STARTING_FRAME_PHASE.
17223         (assign_stack_local_1): Same.
17224         Calculate frame phase.
17225
17226 2002-01-22  Nick Clifton  <nickc@redhat.com>
17227
17228         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17229         variable declaration to outer scope in order to simplify
17230         future extensions.
17231         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17232         arm_hard_regno_mode_ok.
17233         * config/arm/arm-protos.h: Add a prototype for
17234         arm_hard_regno_mode_ok.
17235         * config/arm/arm.c (soft_df_operand): Remove now redundant
17236         check for DImode values using IP_REGNUM.
17237         (nonimmediate_soft_df_operand): Remove now redundant check for
17238         DImode values using IP_REGNUM.
17239         (arm_hard_regno_mode_ok): New function. New check: make sure
17240         that DImode values are not stored in IP_REGNUM.
17241
17242         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17243         note with a USE.
17244         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17245
17246 2002-01-22  Jason Merrill  <jason@redhat.com>
17247
17248         * c-semantics.c (genrtl_compound_stmt): Only check nesting
17249         consistency if this COMPOUND_STMT is scoped.
17250
17251 2002-01-22  Kazu Hirata  <kazu@hxi.com>
17252
17253         * predict.c: Fix formatting.
17254         * print-tree.c: Likewise.
17255         * protoize.c: Likewise.
17256         * real.h: Likewise.
17257         * rtl.h: Likewise.
17258         * sbitmap.h: Likewise.
17259         * scan.c: Likewise.
17260         * sched-deps.c: Likewise.
17261         * sched-vis.c: Likewise.
17262         * sdbout.c: Likewise.
17263         * sibcall.c: Likewise.
17264         * ssa.c: Likewise.
17265         * ssa-ccp.c: Likewise.
17266         * ssa-dce.c: Likewise.
17267         * stmt.c: Likewise.
17268         * stor-layout.c: Likewise.
17269         * system.h: Likewise.
17270
17271 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17272
17273         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17274         if fits in bounds of base type.
17275
17276         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17277         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17278         (add_bound_info, default): If can't find a context, make a
17279         SAVE_EXPR.
17280         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17281
17282 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
17283
17284         * c-typeck.c (parser_build_binary_op): If result from
17285         build_binary_op is ERROR_MARK just return error_mark_node without
17286         further processing.
17287
17288 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
17289
17290         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17291         Split a.out-specific bits into...
17292         * config/netbsd-aout.h: ...this.
17293         * config/netbsd-elf.h: New file.
17294         * config/alpha/netbsd-elf.h: Remove.
17295         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17296         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17297         (STARTFILE_SPEC): Remove redundant definition.
17298         (ENDFILE_SPEC): Likewise.
17299         (LINK_SPEC): Likewise.
17300         (CPP_SPEC): Likewise.
17301         (ASM_SPEC): Likewise.
17302         (LIB_SPEC): Likewise.
17303         (SWITCH_TAKES_ARG): Likewise.
17304         (TARGET_MEM_FUNCTIONS): Likewise.
17305         (CPP_PREDEFINES): Redefine.
17306         (ASM_FINAL_SPEC): Remove redefinition.
17307         (ASM_COMMENT_START): Redefine.
17308         (FUNCTION_PROFILER): Define.
17309         (TARGET_VERSION): Redefine.
17310         Comment and formatting cleanup.
17311         * config/i386/netbsd.h: Include <netbsd-aout.h>.
17312         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17313         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17314         big- or little-endian.
17315         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17316         * config.gcc (*-*-netbsd*): Add definitions common to all
17317         NetBSD configs.
17318         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17319         gnu_ld definitions.  Add netbsd-elf.h to and remove
17320         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
17321         tmake_file, and don't lose previous tmake_file contents.
17322         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17323         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17324         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
17325         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17326         (mipsel-*-netbsd*): Rename this to...
17327         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
17328         mips/little.h to tm_file for mips*el-*.
17329         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17330         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17331         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17332
17333 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17334
17335         * pa-protos.h (reg_before_reload_operand): New function prototype.
17336         * pa.c (reg_before_reload_operand): New function implementation.
17337         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
17338         contraints to "*m".
17339
17340 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17341
17342         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17343
17344 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17345
17346         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17347         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17348         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17349         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17350         (ENDFILE_SPEC): Undefine.
17351         (STARTFILE_SPEC): Redefine for PA.
17352
17353 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17354
17355         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17356
17357 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
17358
17359         * config.gcc: Add entries to supported PowerPC --with-cpu
17360         types.
17361
17362 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
17363
17364         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17365         true for 64-bit mode only SSE registers in 32-bit mode.
17366
17367 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17368
17369         * unwind-dw2.c: Fix formatting.
17370         * unwind-dw2-fde.c: Likewise.
17371         * unwind-dw2-fde.h: Likewise.
17372         * unwind-pe.h: Likewise.
17373         * varasm.c: Likewise.
17374         * varray.h: Likewise.
17375
17376 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
17377
17378         Remove workaround for register stack overwrite bug in mmix.
17379         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17380         support for TARGET_REG_STACK_FILL_BUG.
17381         * config/mmix/mmix.h: Remove member has_call_without_parameters.
17382         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17383         Delete.
17384         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17385         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17386         -mno-reg-stack-fill-bug-workaround.
17387         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17388         machine member has_call_without_parameters.
17389         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17390         -mreg-stack-fill-bug-workaround and
17391         -mno-reg-stack-fill-bug-workaround.
17392         (MMIX Options): Ditto.
17393
17394 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17395
17396         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17397         as appropriate.
17398         Remove redundant code.
17399
17400 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17401
17402         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17403         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17404         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17405         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17406         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17407         out target macro definitions and non-target-specific comments
17408         mostly taken from old versions of the manual.
17409
17410 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17411
17412         * config/h8300/h8300.h: Fix comment formatting.
17413         * config/ia64/aix.h: Likewise.
17414         * config/ia64/ia64-protos.h: Likewise.
17415         * config/ia64/ia64.c: Likewise.
17416         * config/ia64/ia64.h: Likewise.
17417         * config/ia64/ia64intrin.h: Likewise.
17418         * config/ia64/linux.h: Likewise.
17419         * config/ia64/unwind-aix.c: Likewise.
17420         * config/ia64/unwind-ia64.c: Likewise.
17421
17422 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17423
17424         * config/h8300/h8300.c: Revise comments about shift code.
17425
17426 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17427
17428         * config/h8300/h8300.c (function_arg): Update a comment.
17429
17430 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17431
17432         * config/h8300/h8300.md: Update the comments at the beginning
17433         of the file.
17434
17435 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17436
17437         * config/i370/i370.c: Fix comment formatting.
17438         * config/i370/i370.h: Likewise.
17439         * config/i370/i370.md: Likewise.
17440         * config/i370/linux.h: Likewise.
17441
17442 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17443
17444         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17445
17446         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17447         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17448         in incomplete case.
17449
17450 2002-01-20  Graham Stott  <grahams@redhat.com>
17451
17452         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17453
17454 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17455
17456         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17457
17458 2002-01-19  Tom Rix  <trix@redhat.com>
17459
17460         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17461
17462 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
17463
17464         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17465
17466         * function.c (assign_stack_local_1): Adjust x_frame_offset with
17467         STARTING_FRAME_PHASE.
17468         (STARTING_FRAME_PHASE): New.
17469         (instantiate_virtual_regs): Check saneness of
17470         STARTING_FRAME_PHASE.
17471
17472         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17473
17474 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17475
17476         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17477
17478 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17479
17480         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17481         be used for bootstrapping GCC 3.0.
17482
17483 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17484
17485         * config/h8300/h8300.md: Fix an insn length.
17486
17487 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17488
17489         * bitmap.h: Fix comment formatting.
17490         * combine.c: Likewise.
17491         * cppfiles.c: Likewise.
17492         * c-pragma.h: Likewise.
17493         * c-typeck.c: Likewise.
17494         * df.c: Likewise.
17495         * dwarf2out.c: Likewise.
17496         * function.c: Likewise.
17497         * gcc.c: Likewise.
17498         * genattrtab.c: Likewise.
17499         * gthr-win32.h: Likewise.
17500         * haifa-sched.c: Likewise.
17501         * predict.c: Likewise.
17502         * rtlanal.c: Likewise.
17503         * rtl.h: Likewise.
17504         * unwind-dw2-fde.h: Likewise.
17505         * unwind-pe.h: Likewise.
17506         * vmsdbgout.c: Likewise.
17507
17508 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17509
17510         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17511         if type_required and passed decl.
17512
17513 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
17514
17515         * config.gcc (cpu_type): Include altivec.h in powerpc
17516         extra_headers.
17517         Same for darwin.
17518
17519         * config/rs6000/altivec.h: New.
17520
17521 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
17522
17523         * doc/install.texi (*-ibm-aix*): Update assembler and exception
17524         handling information.
17525         * doc/trouble.texi (Interoperation): Add libstdc++ information
17526         for AIX.
17527         (Misunderstandings): Add template instantiation and static template
17528         member information for AIX.
17529
17530 2002-01-17  Jason Merrill  <jason@redhat.com>
17531
17532         * dbxout.c (dbxout_type): Support const and volatile.
17533
17534         * except.c (add_partial_entry): Remove backwards compatibility code.
17535         (end_protect_partials): Likewise.
17536
17537 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
17538
17539         * config/ia64/ia64.md (prologue_use): New.
17540         * config/ia64/ia64.c (ia64_expand_prologue): Use
17541         gen_prologue_use instead of gen_rtx_USE.
17542         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17543         as CODE_FOR_pred_rel_mutex.
17544         (ia64_sched_reorder2): Likewise.
17545
17546 2002-01-16  Eric Christopher  <echristo@redhat.com>
17547
17548         * config/mips/r3900.h: Reformat.
17549         (SUBTARGET_CPP_SIZE_SPEC): Remove.
17550         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17551         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17552         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17553         * config/mips/t-elf: Remove mips3 multilib.
17554
17555 2002-01-16  H.J. Lu <hjl@gnu.org>
17556
17557         * config/mips/linux.h: Include "mips/abi64.h".
17558
17559 2002-01-16  H.J. Lu <hjl@gnu.org>
17560
17561         * config/mips/t-linux: New.
17562
17563         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17564
17565         * config/mips/linux.h: Don't include "gofast.h".
17566         (INIT_SUBTARGET_OPTABS): Removed.
17567
17568 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17569
17570         * config/h8300/h8300-protos.h: Replace emit_a_shift with
17571         output_a_shift.
17572         * config/h8300/h8300.c: Likewise.
17573         * config/h8300/h8300.md: Likewise.
17574
17575 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17576
17577         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17578         spaces after an opcode name.
17579         (pushqi1_h8300hs): Likewise.
17580         (pushhi1_h8300hs): Likewise.
17581
17582 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17583
17584         * doc/extend.texi: Replace "option" with "attribute"
17585         appropriately.
17586
17587 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17588
17589         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17590         (and:DI () (const_int -8)).
17591         (split_small_symbolic_mem_operand): Split
17592         (mem (and:DI () (const_int -8)).
17593
17594 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17595
17596         PR target/5309:
17597         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17598         same way as TYPE_IMUL.
17599         (ultrasparc_sched_reorder): Likewise.
17600         * config/sparc/sparc.md (type): Add comment to update
17601         ultrasparc_sched_reorder when making changes.
17602
17603 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17604
17605         * doc/invoke.texi: Change the dump file name of block
17606         reordering pass from 28.bbro to 29.bbro.
17607         Mention -dk option.
17608
17609 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
17610
17611         * i386.md (minsf splitter): Fix pasto.
17612
17613 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17614
17615         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17616         to frame pointer initialisation instruction.
17617         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17618         initialisation instruction.
17619         (soft_df_operand): Do not accept the IP register.
17620         (nonimmediate_soft_df_operand): Do not accept the IP register.
17621
17622 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17623
17624         PR target/5357:
17625         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17626         MASK_V8 being both set.
17627
17628 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
17629
17630         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17631         insn for GOT register; add REG_MAYBE_DEAD notes instead.
17632         config/s390/s390.md (call, call_value): Add GOT register to
17633         CALL_INSN_FUNCTION_USAGE where needed.
17634         (call_exp, call_value_exp): New.
17635
17636 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17637
17638         * config/arm/arm.c: General formatting tidy up.
17639
17640 2002-01-16  Graham Stott  <grahams@redhat.com>
17641
17642         * calls.c (try_to_integrate): Use "(size_t)" intermediate
17643         cast and when casting an integer literal to "rtx" pointer.
17644         (expand_call): Likewise.
17645         * flow.c (try_pre_increment): Likewise.
17646         (find_use_as_address): Likewise.
17647         * integrate.c (expand_iline_function): Likewise.
17648         * regmove.c (try_auto_increment): Likewise.
17649
17650 2002-01-16  Graham Stott  <grahams@redhat.com>
17651
17652         * sched-rgn.c (passed): Use sbitmap_free.
17653         (header): Likewise.
17654         (inner): Likewise.
17655         (in_queue): Likewise.
17656         (in_stack): Likewise.
17657
17658 2002-01-15  Eric Christopher  <echristo@redhat.com>
17659
17660         * flow.c (propagate_one_insn): Change to use fatal_insn.
17661
17662 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17663
17664         * expmed.c (extract_fixed_bit_field): Remove unused code.
17665         * system.h: Poison SLOW_ZERO_EXTEND.
17666         * doc/tm.texi: Remove.
17667         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17668         * config/arm/arm.h: Likewise.
17669         * config/avr/avr.h: Likewise.
17670         * config/clipper/clipper.h: Likewise.
17671         * config/convex/convex.h: Likewise.
17672         * config/d30v/d30v.h: Likewise.
17673         * config/dsp16xx/dsp16xx.h: Likewise.
17674         * config/elxsi/elxsi.h: Likewise.
17675         * config/fr30/fr30.h: Likewise.
17676         * config/h8300/h8300.h: Likewise.
17677         * config/i370/i370.h: Likewise.
17678         * config/i386/i386.h: Likewise.
17679         * config/m68k/m68k.h: Likewise.
17680         * config/mips/mips.h: Likewise.
17681         * config/ns32k/ns32k.h: Likewise.
17682         * config/pdp11/pdp11.h: Likewise.
17683         * config/pj/pj.h: Likewise.
17684         * config/s390/s390.h: Likewise.
17685         * config/sh/sh.h: Likewise.
17686         * config/stormy16/stormy16.h: Likewise.
17687         * config/v850/v850.h: Likewise.
17688         * config/vax/vax.h: Likewise.
17689         * config/we32k/we32k.h: Likewise.
17690
17691 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17692
17693         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17694         (altivec_lvsl): Change constraint to b.
17695         (altivec_lvsr): Same.
17696         (altivec_lvebx): Same.
17697         (altivec_lvehx): Same.
17698         (altivec_lvewx): Same.
17699         (altivec_lvxl): Same.
17700         (altivec_lvx): Same.
17701         (altivec_stvx): Add parallel.
17702         (altivec_stvxl): Same.
17703         (altivec_stvehx): Same.
17704         (altivec_stvebx): Same.
17705         (altivec_stvebx): Same.
17706
17707 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17708
17709         * config.gcc: Change altivec.h to altivec-defs.h.
17710
17711         * config/rs6000/altivec.h: Delete.
17712
17713         * config/rs6000/altivec-defs.h: Add.
17714
17715 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17716
17717         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17718         and UMOD modes.
17719
17720         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17721         less than or equal to eight bytes.
17722
17723         * vax.md (andsi3): Remove constraints and change SET destination
17724         operand type to nonimmediate_operand.
17725         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
17726         when it is a CONST_INT.
17727
17728 2002-01-15  Jason Merrill  <jason@redhat.com>
17729
17730         * c-common.def (FILE_STMT): New code.
17731         * c-common.c (statement_code_p): It's a statement.
17732         * c-common.h (stmt_tree_s): Add x_last_filename.
17733         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17734         (last_expr_filename): New macro.
17735         * c-semantics.c (begin_stmt_tree): Initialize it.
17736         (add_stmt): If the filename changed, also insert a
17737         FILE_STMT.
17738         (expand_stmt): Handle seeing one.
17739
17740 2002-01-15  Eric Christopher  <echristo@redhat.com>
17741
17742         * flow.c (propagate_one_insn): Add error message and print out
17743         insn for debugging.
17744
17745 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17746
17747         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17748         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17749         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17750         TRAMPOLINE_ALIGNMENT.
17751         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
17752         to be in bits.
17753         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17754         PCC_BITFIELD_TYPE_MATTERS.
17755         * config/interix.h (STDC_VALUE): Remove.  Use
17756         STDC_0_IN_SYSTEM_HEADERS.
17757         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17758         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17759         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17760
17761 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17762
17763         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17764         not work on this platform currently.
17765
17766 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17767
17768         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17769         readonly_warning in _().
17770
17771 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
17772
17773         * gcc.c (delete_if_ordinary): Backout previous change.
17774
17775 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17776
17777         * config/h8300/h8300.c (print_operand): Remove support for
17778         unused operand characters.
17779
17780         * read-rtl.c: Fix formatting.
17781         * real.c: Likewise.
17782         * recog.c: Likewise.
17783         * regclass.c: Likewise.
17784         * regmove.c: Likewise.
17785         * reg-stack.c: Likewise.
17786         * reload1.c: Likewise.
17787         * rtlanal.c: Likewise.
17788
17789 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17790
17791         * config/i386/i386.c: Fix formatting.
17792
17793 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
17794
17795         * c-typeck.c (process_init_element): Don't save_expr
17796         COMPOUND_LITERAL_EXPR if just its initializer will be used.
17797
17798 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
17799
17800         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17801         emit optional traceback table if optimize_size or TARGET_ELF.
17802         * config/rs6000/rs6000.md (prefetch): New.
17803
17804 2002-01-15  Andreas Jaeger  <aj@suse.de>
17805
17806         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17807
17808 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17809
17810         * mips-tfile.c: Fix formatting.
17811
17812 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17813
17814         * unroll.c (final_reg_note_copy): Fix previous commit.
17815
17816 2002-01-14  Kazu Hirata  <kazu@hxi.com>
17817
17818         * config/h8300/h8300-protos.h: Remove the prototype for
17819         eq_operator.
17820         * config/h8300/h8300.c (eq_operator): Remove.
17821
17822 2002-01-14  Richard Henderson  <rth@redhat.com>
17823
17824         * config/i386/i386.md (prefetch): Tidy.
17825         (prefetch_3dnow): Fix locality operand.
17826
17827 2002-01-14  Richard Henderson  <rth@redhat.com>
17828
17829         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17830         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17831
17832 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
17833
17834         * reload1.c (reload_combine): Pass reg_sum replacement through
17835         copy_rtx in loop performing multiple changes.
17836
17837 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
17838
17839         * except.c (remove_unreachable_regions): New.
17840         (free_eh_status): Clear exception_handler_labels.
17841         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17842         (find_exception_handler_labels): Don't add the same label more than
17843         once.
17844         (remove_exception_handler_label): Don't die if
17845         find_exception_handler_labels hasn't been called for the current
17846         function yet.
17847
17848 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
17849
17850         * toplev.c (rest_of_compilation): Rebuild jump labels after
17851         gcse.
17852
17853 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
17854
17855         * doc/extend.texi: Move documentation of X86 built-in functions
17856         here.
17857         * doc/invoke.texi: From here.
17858         * doc/sourcebuild.texi: Document location of documentation for
17859         machine built-in functions.
17860
17861 2002-01-13  Christopher Faylor  <cgf@redhat.com>
17862
17863         * cppfiles.c (TEST_THRESHOLD): New macro.
17864         (SHOULD_MMAP): Ditto.
17865         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17866         be used.
17867
17868 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
17869
17870         * unroll.c (final_reg_note_copy): Properly handle
17871         REG_LABEL
17872         (unroll_loops): Fix LOOP_CONDITION heuristics.
17873
17874 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
17875
17876         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17877         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17878
17879 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
17880
17881         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17882         threaded loop.
17883
17884 2002-01-14  Tom Rix  <trix@redhat.com>
17885
17886         * config/rs6000/rs6000.md: Fix typo with sradi.
17887
17888 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
17889
17890         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17891         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17892         (clrstrdi, clrstrsi): Adapt callers.
17893
17894         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17895
17896         (movti splitter): Never use register 0 as base register.
17897
17898 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17899
17900         * combine.c (simplify_shift_const): Always generate new rtx
17901         for shift expression instead of reusing given expression.
17902
17903 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17904
17905         * config/alpha/alpha.c (alpha_expand_mov): Don't call
17906         alpha_legitimize_address unless mode is Pmode.
17907
17908 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
17909
17910         * doc/md.texi (Modifiers): Document the '*' constraint for the
17911         user.
17912
17913         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17914         * doc/extend.texi (Function Attributes): 'interrupt' is valid
17915         for xstormy16 too.
17916
17917 2002-01-13  Richard Henderson  <rth@redhat.com>
17918
17919         * reload.c (find_reloads): Use a hard reg destination as reload reg
17920         for an input reload of the source.
17921
17922 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17923
17924         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17925         more generic.
17926
17927 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
17928
17929         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17930         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17931
17932         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17933
17934 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17935
17936         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17937
17938 2002-01-12  Tom Rix  <trix@redhat.com>
17939
17940         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17941         TARGET_POWERPC64.
17942
17943 2002-01-12  Richard Henderson  <rth@redhat.com>
17944
17945         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17946
17947         * doc/invoke.texi: Update Alpha options.
17948
17949         * doc/invoke.texi: Update i386 built-in function lists.
17950
17951 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17952
17953         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17954         referencing outside.
17955
17956 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17957
17958         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17959         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17960         offsets, and change line folding.
17961         * optabs.c (expand_binop): Remove warnings.
17962         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17963
17964 2002-01-12  Graham Stott <grahams@redhat.com>
17965
17966         * attribs.c (handle_deprecated_attribute): constify WHAT.
17967         * diagnostic.c (warn_deprecated_use): Add braces, fixes
17968         dangling else warning and constify WHAT.
17969         * except.h (struct function, struct inline_remap): Move
17970         struct tag forward defs before all prototypes.
17971         (duplicate_eh_regions): Whitespace.
17972
17973 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
17974
17975         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17976         MODE_BASE_REG_CLASS.
17977         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17978
17979 2002-01-12  Richard Henderson  <rth@redhat.com>
17980
17981         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17982         (ix86_expand_vector_move): New.
17983         (bdesc_2arg): Remove andps, andnps, orps, xorps.
17984         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
17985         Remove old prefetch builtins.  Special case the logicals removed above.
17986         (ix86_expand_builtin): Likewise.
17987         (safe_vector_operand): Use V4SFmode, not TImode.
17988         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
17989         (ix86_expand_timode_binop_builtin): New.
17990         * config/i386/i386-protos.h: Update.
17991         * config/i386/i386.h (enum ix86_builtins): Update.
17992         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17993         Use ix86_expand_vector_move in vector move expanders.
17994         (movti_internal, movti_rex64): Add xorps alternative.
17995         (sse_clrv4sf): Rename and adjust from sse_clrti.
17996         (prefetch): Don't work so hard.
17997         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17998         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17999         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18000
18001 2002-01-11  Richard Henderson  <rth@redhat.com>
18002
18003         * config/i386/mmintrin.h: New file.
18004         * config/i386/xmmintrin.h: New file.
18005         * config.gcc (i?86-*-*): Add extra_headers.
18006         * simplify-rtx.c (simplify_unary_operation): Handle saturating
18007         truncation codes.
18008         (simplify_binary_operation): Handle saturating arithmetic codes.
18009         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18010         not the lowpart subreg.
18011         (ix86_expand_builtin): Return a TImode dummy register instead of 0
18012         on error.
18013         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18014
18015 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18016
18017         * conflict.c (conflict_graph_compute): Free regsets when finished.
18018         * ssa.c (compute_coalesced_reg_partition): Likewise.
18019
18020 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18021
18022         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18023         every where we allocate a register.
18024
18025 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18026
18027         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18028         * lcm.c (compute_earliest, compute_farthest): Likewise.
18029
18030 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18031
18032         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18033
18034 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18035
18036         * doc/rtl.texi (Insns): Fix 2 typos.
18037
18038 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
18039
18040         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
18041         options.  Use @table @gcctabopt for MMIX options.  Add index
18042         entries for MMIX options.  Start new paragraph with first
18043         heading of the machine-dependent options.
18044
18045 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18046
18047         PR other/5299
18048         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18049         * combine.c (force_to_mode): Same.
18050         * reload1.c (clear_reload_reg_in_use): Same.
18051
18052 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
18053
18054         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18055         and 'subtargets'.
18056
18057 2002-01-11  Andreas Jaeger  <aj@suse.de>,
18058             Brad Lucier <lucier@math.purdue.edu>
18059
18060         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18061         mcpu.
18062
18063 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
18064
18065         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18066         Protect with IN_LIBGCC.
18067         (LINK_EH_SPEC): Add required trailing space.
18068
18069 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18070
18071         * c-tree.h: Move function declarations so that they are listed
18072         under the filename which contains them.
18073         (check_identifier, finish_decl_top_level,
18074         lookup_name_current_level_global, shadow_record_fields): Remove.
18075
18076 2002-01-11  Andreas Jaeger  <aj@suse.de>
18077
18078         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18079         march.
18080
18081 2002-01-10  Richard Henderson  <rth@redhat.com>
18082
18083         * config/alpha/alpha.c (print_operand): Add 'J'.
18084         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18085         new operand with the sequence number for the lituse.  When splitting
18086         the insns, use gen_movdi_er_high_g and generate a sequence number.
18087         (gen_movdi_er_high_g): Print the sequence number if non-zero.
18088
18089 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
18090
18091         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18092         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18093         stvxl.
18094         (altivec_expand_builtin): Same.
18095         (altivec_expand_stv_builtin): New.
18096
18097         * config/rs6000/rs6000.h (rs6000_builtins): Same.
18098
18099         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18100         ("altivec_lvehx"): New.
18101         ("altivec_lvewx"): New.
18102         ("altivec_lvxl"): New.
18103         ("altivec_lvx"): New.
18104         ("altivec_stvx"): New.
18105         ("altivec_stvebx"): New.
18106         ("altivec_stvehx"): New.
18107         ("altivec_stvewx"): New.
18108         ("altivec_stvxl"): New.
18109
18110 2002-01-10  Richard Henderson  <rth@redhat.com>
18111
18112         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18113         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
18114         care not to delete instructions twice.
18115
18116 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18117
18118         * toplev.c: Don't declare environ (it's not used anywhere).
18119         * configure.in: Don't check for declaration of environ.
18120         * config/i386/xm-mingw32.h: Don't #define environ.
18121         * config.in, configure: Regenerate.
18122
18123 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18124
18125         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18126         * configure: Regenerate.
18127
18128         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18129         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18130         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18131         alpha/xm-vms.h.
18132         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18133         LIMITS_H_TEST here, not in m68k/x-next.
18134         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18135         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18136
18137         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18138         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18139         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
18140
18141         * config/i386/x-djgpp: Renamed i386/t-djgpp.
18142         * config/m88k/x-dolph: Renamed m88k/t-dolph.
18143         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18144         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
18145         replacement of quadlib.asm with quadlib.c.
18146
18147         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18148         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18149         config/rs6000/xm-beos.h: Delete file.
18150
18151         * config.gcc: Update to match above changes.
18152
18153 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18154
18155         * config/h8300/h8300.h: Fix comment typos.
18156         * config/h8300/h8300.md: Likewise.
18157         * config/h8300/lib1funcs.asm: Likewise.
18158
18159 2002-01-10  Dale Johannesen  <dalej@apple.com>
18160
18161         PR optimization/5269
18162         * unroll.c (precondition_loop_p): Make *increment be the correct
18163         sign when n_iterations known, to avoid confusing caller.
18164
18165 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18166
18167         * doc/extend.texi (deprecated): Fix a typo.
18168
18169 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18170
18171         * basic-block.h (update_br_prob_note): Declare.
18172         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18173         (try_forward_edges): Care negative frequencies and update note.
18174         (outgoing_edges_match): Tweek conditional merging heuristics.
18175         (try_crossjump_to_edge): use update_br_prob_note.
18176         * cfglayout.c (fixup_reorder_chain): Likewise.
18177         * cfrtl.c (update_br_prob_note): New.
18178         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18179
18180         * i386.c (ix86_decompose_address): Return -1 if address contains
18181         shift.
18182         (legitimate_address_p): Require ix86_decompose_address to return 1.
18183
18184         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18185         (cprop_insn): Likewise.
18186
18187 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18188
18189         * toplev.c: Fix formatting.
18190         * tree.c: Likewise.
18191         * tree-dump.c: Likewise.
18192         * unroll.c: Likewise.
18193         * unwind-dw2.c: Likewise.
18194         * unwind-dw2-fde.c: Likewise.
18195         * unwind-dw2-fde-glibc.c: Likewise.
18196         * unwind-sjlj.c: Likewise.
18197
18198 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18199
18200         * doc/invoke.texi: Document PDP-11 options.
18201
18202 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18203
18204         * config/h8300/h8300.h: Fix formatting.
18205
18206 2002-01-10  Ira Ruben   <ira@apple.com>
18207
18208         Add __attribute__ ((deprecated)).
18209         * extend.texi: Document __attribute__ ((deprecated)).
18210         * invoke.texi: Document -Wno-deprecated-declarations.
18211         * testsuite/g++.dg/other/deprecated.C: New C++ test.
18212         * testsuite/gcc.dg/deprecated.c: New C test.
18213         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18214         (c_common_attribute_table): Add "deprecated" entry.
18215         (handle_deprecated_attribute): New function.
18216         * c-decl.c (deprecated_states): New enum.
18217         deprecated_state: State of "deprecated" handling.
18218         (start_decl): Set deprecated_state based on attributes.
18219         (grokdeclarator): Test for deprecated uses, propagate attribute.
18220         * c-typeck.c (build_component_ref): Test for deprecated fields.
18221         (build_external_ref): Test for deprecated primaries.
18222         * diagnostic.c (warn_deprecated_use) New function to issue
18223         warnings about __attribute__ ((depricated)) references.
18224         * flags.h (warn_deprecated_decl): Extern declared for
18225         -W[no-]deprecated-declarations option.
18226         * print-tree.c (print_node): Show deprecated flag status.
18227         * toplev.c (warn_deprecated_decl): Defined.
18228         (W_options): Added "deprecated-declaration".
18229         * toplev.h (warn_deprecated_use): Extern declared.
18230         * tree.h (struct tree_common): Define deprecated_flag.
18231         (TREE_DEPRECATED): New macro to access flag.
18232         * cp/call.c (build_call): Test for deprecated calls.
18233         * cp/class.c (add_implicitly_declared_members): Set global
18234         flag to tell grokdeclarator to not issue deprecated warnings.
18235         * cp/cp-tree.h: Add extern for adding_implicit_members.
18236         * cp/decl.c (deprecated_states): New enum.
18237         (start_decl): Set deprecated_state based on attributes.
18238         (grokdeclarator): Test for deprecated uses, propagate attribute.
18239         * cp/lex.c (do_identifier): Test for deprecated primaries.
18240         * cp/typeck.c (build_component_ref): Test for deprecated fields.
18241
18242 2002-01-10  Ira Ruben   <ira@apple.com>
18243
18244         Fix to assign attributes to inline member functions.
18245         * cp/decl.c (start_method): Handle attrlist.
18246
18247 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18248
18249         * combine.c (expand_field_assignment): Use subreg_lsb().
18250
18251 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
18252
18253         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18254         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18255         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18256         Recurse for any operand of AND as long as constant is non-zero.
18257
18258 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18259
18260         * config/h8300/h8300.md: Remove constraints from expanders.
18261
18262 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18263
18264         * varasm.c: Fix formatting.
18265         * varray.c: Likewise.
18266         * vmsdbgout.c: Likewise.
18267         * xcoffout.c: Likewise.
18268
18269 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
18270
18271         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18272         update edge probabilities to match.
18273
18274 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18275
18276         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18277         dependencies.
18278         * doc/languages.texi, doc/sourcebuild.texi: New files.
18279         * doc/configfiles.texi: Make a subsubsection.  Update.
18280         * doc/configterms.texi: Add @node.  Remove warning that this isn't
18281         instructions for building GCC.
18282         * doc/makefile.texi: Make a subsection.
18283         * doc/gccint.texi: Update.
18284
18285 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
18286
18287         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18288
18289 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18290
18291         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18292
18293 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
18294
18295         * optabs.c (expand_fix): Look for wider integer modes first.
18296
18297         * i386.md (mov?f): Avoid the fake const double trick for medium
18298         memory model.
18299         (min?f*/max?f*): Prohibit memory operands for i387 variant.
18300         (fop_df_4): Disable for SSE compilation.
18301
18302 2002-01-10  Graham Stott  <grahams@redhat.com>
18303
18304         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18305         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18306
18307 2002-01-10  Richard Henderson  <rth@redhat.com>
18308
18309         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18310
18311 2002-01-10  Richard Henderson  <rth@redhat.com>
18312
18313         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18314         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
18315
18316 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18317
18318         * combine.c (can_combine_p): Fix a comment typo.
18319
18320 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
18321
18322         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18323         empty list correctly.  Change loop index $t to $f for
18324         consistency with rest of Makefile.
18325
18326 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
18327
18328         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18329         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18330
18331         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18332         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18333         (altivec_init_builtins): Same.
18334         (altivec_expand_unop_builtin): Return NULL_RTX on error.
18335         (altivec_expand_binop_builtin): Same.
18336         (altivec_expand_ternop_builtin): Same.
18337         (bdesc_dst): New.
18338
18339         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18340         ("altivec_vctuxs"): Fix typo.
18341         ("altivec_vnmsubfp"): Same.
18342         ("altivec_dssall"): New.
18343         ("altivec_mfvscr"): New.
18344         ("altivec_dss"): New.
18345         ("altivec_lvsl"): New.
18346         ("altivec_lvsr"): New.
18347         ("altivec_dstt"): New.
18348         ("altivec_dstst"): New.
18349         ("altivec_dststt"): New.
18350         ("altivec_dst"): New.
18351
18352         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18353         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18354
18355 2002-01-09  Richard Henderson  <rth@redhat.com>
18356
18357         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18358
18359 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
18360
18361         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18362         function.
18363         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18364         prototype.
18365         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18366
18367 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18368
18369         * read-rtl.c: Fix formatting.
18370         * real.c: Likewise.
18371         * regclass.c: Likewise.
18372         * regrename.c: Likewise.
18373         * reg-stack.c: Likewise.
18374         * reload1.c: Likewise.
18375         * reload.c: Likewise.
18376         * rtl.c: Likewise.
18377
18378 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18379
18380         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18381         to extract items in the expr_list chain.
18382
18383 2002-01-09  Richard Henderson  <rth@redhat.com>
18384
18385         * config/vax/vax.c (vax_rtx_cost): Never abort.
18386
18387         * config/vax/vax.h (REAL_ARITHMETIC): Define.
18388
18389 2002-01-09  Jan Hubicka  <jh@suse.cz>
18390
18391         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18392
18393 2002-01-09  Richard Henderson  <rth@redhat.com>
18394
18395         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18396         Unify code from various alternatives.
18397
18398 2002-01-09  Richard Henderson  <rth@redhat.com>
18399
18400         * regrename.c (copy_value): Ignore the copy if the source register
18401         is present in the value chain with a narrower mode.
18402
18403 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
18404
18405         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18406         for the c4x target. Also improve layout.
18407
18408 2002-01-09  Richard Henderson  <rth@redhat.com>
18409
18410         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18411         * config/m32r/m32r.md (and ior xor splitters): Swap operands
18412         to match insn patterns.
18413
18414 2002-01-09  Richard Henderson  <rth@redhat.com>
18415
18416         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18417         (copyprop_hardreg_forward_1): Likewise.
18418
18419 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18420
18421         * pa.md (decrement_and_branch_until_zero): Change predicate for
18422         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18423
18424 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
18425
18426         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18427         gets undefined. For Darwin.
18428
18429 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18430
18431         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18432
18433 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18434
18435         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18436
18437 2002-01-08  Richard Henderson  <rth@redhat.com>
18438
18439         * regrename.c (copy_value): Ignore overlapping copies.
18440
18441 2002-01-08  Richard Henderson  <rth@redhat.com>
18442
18443         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18444         as needed to avoid shared structure.
18445
18446 2002-01-08  Kazu Hirata  <kazu@hxi.com>
18447
18448         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18449         H8/300H and H8/S.
18450
18451 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18452
18453         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18454         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18455         documentation of obsolete macros.
18456         * system.h: Poison these macros.
18457         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18458         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18459         config/c4x/c4x.h, config/clipper/clipper.h,
18460         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18461         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18462         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18463         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18464         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18465         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18466         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18467         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18468         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18469         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18470         config/sparc/sparc.h, config/stormy16/stormy16.h,
18471         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18472         definitions and commented out definitions of obsolete macros.
18473         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18474         of MAX_INT_TYPE_SIZE.
18475
18476 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18477
18478         * config/s390/s390.c (s390_preferred_reload_class): Never
18479         return ADDR_REGS if it isn't a subset of the given class.
18480         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18481         FP_REGS, but all superclasses as well.
18482
18483         * config/s390/s390.c (s390_function_profiler): Fix thinko.
18484
18485         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18486         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18487         must not be a const_int.
18488
18489 2002-01-08  Richard Henderson  <rth@redhat.com>
18490
18491         * Makefile.in (toplev.o): Depend on options.h.
18492         (gcc.o): Depend on specs.h.
18493
18494 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
18495
18496         * expr.c (store_expr): Convert VOIDmode constants back to target's
18497         mode.
18498
18499 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18500
18501         * doc/invoke.texi: Markup gcc as @command.  Refer to
18502         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18503         of http://gcc.gnu.org/thanks.html.
18504
18505 2002-01-08  Dale Johannesen  <dalej@apple.com>
18506
18507         * config/rs6000/rs6000.md: Add missing int register
18508         target case to movdf_low.
18509
18510 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
18511
18512         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18513         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
18514         (cppinit.o): Depend on except.h.
18515         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18516         s-specs): New rules.
18517
18518         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18519         Don't create specs.h/options.h/gencheck.h here.  Remove
18520         unnecessary variable settings from last argument of AC_OUTPUT.
18521         * config.in, configure: Regenerate.
18522         * intl.c: Hardcode package name as "gcc".
18523
18524         * cppinit.c: Include except.h.
18525         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18526         appropriate.
18527         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18528         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18529         (!)USING_SJLJ_EXCEPTIONS.
18530         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18531
18532 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18533
18534         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18535         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18536         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18537         documentation of obsolete macros.
18538         * system.h: Poison these macros.
18539         * config/d30v/d30v.h, config/ns32k/encore.h,
18540         config/stormy16/stormy16.h: Remove definitions and commented out
18541         definitions of obsolete macros.
18542
18543 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
18544
18545         * objc/objc-act.c (handle_class_ref): Mark the declaration of
18546         %sobjc_class_ref_%s as used - to prevent unwanted compiler
18547         warnings.
18548
18549 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18550
18551         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18552         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18553         to insn adjusting stack/frame pointer.
18554         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18555         accept operands that cause the insn to be non-splittable.
18556
18557 2002-01-08  Graham Stott  <grahams@redhat.com>
18558
18559         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18560         (C_TYPE_FIELDS_VOLATILE): Likewise.
18561         (C_TYPE_BEING_DEFINED): Likewise.
18562         (C_IS_RESERVED_WORD): Likewise.
18563         (C_TYPE_VARIABLE_SIZE): Likewise.
18564         (C_DECL_VARIABLE_SIZE): Likewise.
18565         (C_MISSING_PROTOTYPE_WARNED): Likewise.
18566         (C_SET_EXP_ORIGINAL_CODE): Likewise.
18567         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18568         parenthesis.
18569         (C_DECL_ANTICIPATED): Likewise.
18570         (c_build_type_variant): Add parenthesis.
18571
18572 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18573
18574         * gcc.c (option_map): Remove --version.
18575         (process_command): Handle -fversion following the GNU Coding
18576         Standards.  Partially addresses PR other/704.
18577
18578 2002-01-08  Graham Stott  <grahams@redhat.com>
18579
18580         * combine.c (combine_instructions): Fix typo.
18581
18582 2002-01-08  Graham Stott  <grahams@redhat.com>
18583
18584         * debug.h: Use "tree" and "rtx" throughout.
18585
18586         * debug.c: Likewise.
18587
18588 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
18589
18590         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18591         constant pool, use the pool's version of the symbol instead.
18592
18593 2002-01-07  Richard Henderson  <rth@redhat.com>
18594
18595         * regrename.c (find_oldest_value_reg): Ignore the value chain if
18596         the original register was copied in a mode with a fewer number of
18597         hard registers than the desired mode.
18598         (copyprop_hardreg_forward_1): Likewise.
18599         (debug_value_data): Fix loop test.
18600         * toplev.c (parse_options_and_default_flags): Reenable
18601         -fcprop-registers at -O1.
18602
18603 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18604
18605         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18606         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18607
18608         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18609         predicates.
18610
18611         * config/rs6000/rs6000.md: Add altivec predicate patterns.
18612
18613 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18614
18615         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18616         (pa_output_function_prologue): Output local label at the beginning of
18617         the prologue when profiling.
18618         (hppa_profile_hook): Use the local label rather than the function label.
18619         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18620
18621 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18622
18623         * config/rs6000/rs6000.c (print_operand): Remove extra space.
18624         (altivec_expand_unop_builtin): Fix thinko.
18625         (altivec_expand_binop_builtin): Same.
18626         (altivec_expand_ternop_builtin): Same.
18627         (altivec_expand_builtin): Same.
18628
18629 2002-01-07  Richard Henderson  <rth@redhat.com>
18630
18631         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18632
18633 2002-01-07  Jason Merrill  <jason@redhat.com>
18634
18635         * unwind-dw2.c (execute_cfa_program): Use < again.
18636
18637 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18638
18639         * predict.c (combine_predictions_for_insn): Avoid division by zero.
18640
18641 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18642
18643         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18644         Don't allow -1 - x -> ~x simplifications in the first pass.
18645
18646 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18647
18648         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18649         arguments.
18650         (altivec_expand_binop_builtin): Same.
18651         (altivec_expand_unop_builtin): Same.
18652         (print_operand): Fix typo.
18653         (bdesc_1arg): Add vupk* variants.
18654
18655         * rs6000.h (rs6000_builtins): Add vupk* enums.
18656
18657         * rs6000.md: Add altivec_vupk* variants.
18658
18659 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
18660
18661         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18662         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18663         and last update dates.
18664
18665 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
18666
18667         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18668
18669 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18670
18671         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18672         * config/avr/avr.h (CPP_SPEC): Likewise.
18673         (LINK_SPEC): Likewise.
18674         (CRT_BINUTILS_SPECS): Likewise.
18675         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18676         * doc/invoke.texi (AVR Options): Document them.
18677
18678 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18679
18680         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18681         LABEL_NUSES.
18682
18683 2002-01-07  Graham Stott  <grahams@redhat.com>
18684
18685         * config/i386/i386.h: Update copyright date.
18686         (HALF_PIC_PTR): Add parenthesis.
18687         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18688         (CONSTANT_ALIGNMENT): Add parenthesis.
18689         (DATA_ALIGNMENT): Likewise.
18690         (LOCAL_ALIGNMENT): Likewise.
18691         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18692         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18693         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18694         (HARD_REGNO_NREGS): Add paranethesis.
18695         (VALID_SSE_REG_MODE): Whitespace.
18696         (VALID_MMX_REG_MODE): Whitespace.
18697         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18698         (ix86_hard_regno_mode_ok): Add parenthesis.
18699         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18700         (RETURN_IN_MEMORY): Whitespace.
18701         (N_REG_CLASSES): Add parenthesis.
18702         (INTEGER_CLASS_P): Add parenthesis and wrap.
18703         (FLOAT_CLASS_P): Likewise.
18704         (SSE_CLASS_P): Likewise.
18705         (MMX_CLASS_P): Likewise.
18706         (MAYBE_INTEGER_CLASS_P): Likewise.
18707         (MAYBE_FLOAT_CLASS_P): Likewise.
18708         (MAYBE_SSE_CLASS_P): Likewise.
18709         (MAYBE_MMX_CLASS_P): Likewise.
18710         (Q_CLASS_P): Likewise.
18711         (GENERAL_REGNO_P): Uppercase macro parameter.
18712         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18713         (FP_REGNO_P): Likewise.
18714         (ANY_FP_REGNO_P): Uppercase macro parameter.
18715         (SSE_REGNO_P): Likewise.
18716         (SSE_REGNO): Likewise.
18717         (SSE_REG_P): Likewise.
18718         (SSE_FLOAT_MODE_P): Likewise.
18719         (MMX_REGNO_P): Likewise.
18720         (MMX_REG_P):Likewise.
18721         (STACK_REG_P): Likewise.
18722         (NON_STACK_REG_P): Likewise.
18723         (STACK_TOP_P): Likewise.
18724         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18725         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18726         (SECONDARY_MEMORY_NEEDED): Likewise.
18727         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18728         (MD_ASM_CLOBBERS): Whitespace and wrap.
18729         (MUST_PASS_IN_STACK): Whitespace and wrap.
18730         (RETURN_POPS_ARGS): Add parenthesis.
18731         (INIT_CUMULATIVE_ARGS): Likewise.
18732         (FUNCTION_ARG): Likewise.
18733         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18734         (SETUP_INCOMING_VARARGS): Likewise.
18735         (BUILD_VA_LIST_TYPE):  Add parenthesis.
18736         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18737         parenthsis.
18738         (EXPAND_BUILTIN_VA_ARG): Likewise.
18739         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18740         (INITIALIZE_TRAMPOLINE): Add parenthesis.
18741         (INITIAL_ELIMINATION_OFFSET): Likewise.
18742         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18743         (REGNO_OK_FOR_BASE_P): Likewise.
18744         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18745         (REGNO_OK_FOR_DIREG_P): Likewise.
18746         (REG_OK_FOR_INDEX_P): Whitespace.
18747         (REG_OK_FOR_BASE_P): Whitespace.
18748         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18749         parenthesis.
18750         (FIND_BASE_TERM): Fix typo.
18751         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
18752         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18753         (SYMBOLIC_CONST; Whitespace.
18754         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
18755         (ENCODE_SECTION_INFO): Whitespace.
18756         (FINALIZE_PIC): Remove do { ... } while (0).
18757         (PROMOTE_MODE): Wrap in do { ... } while (0).
18758         (CONST_COSTS): Whitespace.
18759         (RTX_COSTS): Add paramethesis, whitespace and wrap.
18760         (REGISTER_MOVE_COST): Add parenthesis.
18761         (MEMORY_MOVE_COST): Likewise.
18762         (EXTRA_CC_MODES): Whitespace.
18763         (SELECT_CC_MODE): Add parenthesis and whitespace.
18764         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18765         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18766         (ASM_OUTPUT_LABEL): Add paramethesis.
18767         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18768         (ASM_OUTPUT_REG_POP): Likewise.
18769         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18770         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18771
18772         * config/i386/i386.c: Update copyright.
18773         (CHECK_STACK_LIMIT): Add parenthesis.
18774         (AT_BP): Uppercase macro parameter.
18775         (x86_64_int_parameter_registers): Constify.
18776         (x86_64_int_return_registers): Likewise.
18777         (ix86_compare_op0): Use rtx.
18778         (construct_container): Constify INTREG parameter.
18779         (function_arg): Use rtx.
18780
18781         * diagnostic.h: Update copyright date.
18782         (output_buffer_state): Add parenthesis.
18783         (output_buffer_format_args): Likewise.
18784
18785         * combine.c (combine_instructions): Replace XEXP (links, 0)
18786         with link.
18787
18788 2002-01-06  H.J. Lu <hjl@gnu.org>
18789
18790         * cfgcleanup.c (thread_jump): Fix 2 typos.
18791
18792 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
18793
18794         * config.gcc: Add support for --enable-altivec.
18795
18796 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18797
18798         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18799
18800 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
18801
18802         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18803         __objc_class_name_*.
18804
18805 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18806
18807         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18808
18809 2002-01-06  Richard Henderson  <rth@redhat.com>
18810
18811         * reorg.c (emit_delay_sequence): Remove death notes, not merely
18812         nop them out.  Increment label reference count for REG_LABEL.
18813         (fill_slots_from_thread): Frob label reference count around
18814         delete_related_insns.
18815
18816 2002-01-05  Richard Henderson  <rth@redhat.com>
18817
18818         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18819         jump threading.
18820
18821 2002-01-05  Richard Henderson  <rth@redhat.com>
18822
18823         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18824         * integrate.c (output_inline_function): Likewise.
18825         * toplev.c (rest_of_compilation): Do it here instead.  Move call
18826         to remove_unnecessary_notes after emitting abstract instance.
18827         Force an emitted nested function to have its parent emited as well.
18828         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18829         for null.
18830         (rtl_for_decl_location): Do not look at reload data structures
18831         before reload has run.
18832
18833 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18834
18835         * cse.c: Fix formatting.
18836         * dwarf2asm.c: Likewise.
18837         * dwarf2out.c: Likewise.
18838         * explow.c: Likewise.
18839         * expmed.c: Likewise.
18840         * function.c: Likewise.
18841         * gcov.c: Likewise.
18842         * gencheck.c: Likewise.
18843         * genrecog.c: Likewise.
18844         * ggc-common.c: Likewise.
18845         * ggc-page.c: Likewise.
18846         * global.c: Likewise.
18847
18848 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18849
18850         * combine.c: Fix formatting.
18851
18852 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
18853
18854         PR middle-end/1557
18855         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18856
18857 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
18858
18859         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18860         as 1 for __powerpc64__ as well.
18861
18862         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18863
18864         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18865         return it.
18866
18867 2002-01-05  Daniel Berlin  <dan@dberlin.org>
18868
18869         * lcm.c: Revert change, due to performance regression it causes on
18870         SPEC because it's slightly more conservative (sigh, I hate
18871         edge-based LCM).
18872
18873 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
18874
18875         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18876
18877 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
18878
18879         * doc/cppinternals.texi: Update.
18880
18881 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
18882
18883         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18884         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18885         negatives.
18886         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
18887         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18888         kludge for pre-october-14th mmix versions to handle new-found bug
18889         with PUSHJ/PUSHGO and the register stack.
18890         * config/mmix/mmix.h (struct machine_function): Rename member
18891         has_call_value_without_parameters to has_call_without_parameters.
18892         All referers changed.
18893         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18894         TARGET_MASK_BRANCH_PREDICT): New macros.
18895         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18896         -mno-reg-stack-fill-bug-workaround.
18897         * config/mmix/mmix.md ("call"): Set struct machine member
18898         has_call_without_parameters.
18899
18900 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18901
18902         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18903
18904 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
18905
18906         * cfgcleanup.c: Include tm_p.h
18907         (mark_effect): Fix handling of hard register; fix handling of SET
18908
18909 2002-01-04  Kazu Hirata  <kazu@hxi.com>
18910
18911         * config/h8300/h8300.md (anonymous patterns): Check that
18912         operands are registers before using REGNO on them.
18913
18914 2002-01-03  Roland McGrath  <roland@frob.com>
18915
18916         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18917
18918 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
18919
18920         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18921         * c-common.h (genrtl_expr_stmt_value): Likewise.
18922         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18923         (expand_expr_stmt_value): Add maybe_last argument.
18924         Don't warn about statement with no effect if it is the last statement
18925         in expression statement.
18926         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18927         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18928         expand_expr_stmt_value.
18929         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18930         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18931         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18932         as maybe_last to expand_expr_stmt_value.
18933
18934 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
18935
18936         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18937         be passed in, do not build it.
18938         (c_begin_if_stmt): New function.
18939         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18940         * c-common.h (c_expand_start_cond): Update prototype.
18941         (c_begin_if_stmt): Prototype new function.
18942         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18943         * c-parse.in (if_prefix): Use c_begin_if_stmt,
18944         c_begin_while_stmt and c_finish_while_stmt_cond.
18945
18946 2002-01-04  William Cohen  <wcohen@redhat.com>
18947
18948         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18949         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18950         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18951         * config/pa/som.h (ASM_FILE_START): Likewise.
18952
18953 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
18954
18955         * lcm.c: Include df.h.
18956         Add available_transfer_function prototype.
18957         (compute_available): Rework to use iterative dataflow framework.
18958         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18959         with bb_info in df.h
18960         (available_transfer_function): New function.
18961
18962         * Makefile.in (lcm.o): add df.h to dependencies.
18963
18964 2002-01-04  Richard Henderson  <rth@redhat.com>
18965
18966         * config/alpha/alpha.c (some_operand): Accept HIGH.
18967         (input_operand): Likewise; accept simple references to globals.
18968         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18969         (alpha_const_double_ok_for_letter_p): Likewise.
18970         (alpha_extra_constraint): Likewise.
18971         (alpha_preferred_reload_class): Likewise.  Do not force
18972         symbolic constants to memory.
18973         (alpha_legitimate_address_p): Accept simple references
18974         to small_symbolic_operand.
18975         (alpha_legitimize_address): New arg scratch.  Be prepared to be
18976         called when no_new_pseudos.  Emit simple symbolic references.
18977         Split integers into low, high, and rest.
18978         (alpha_expand_mov): Use alpha_legitimize_address.
18979         (some_small_symbolic_mem_operand): New.
18980         (split_small_symbolic_mem_operand): New.
18981         * config/alpha/alpha-protos.h: Update.
18982         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18983         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18984         (EXTRA_CONSTRAINT): Likewise.
18985         (PREFERRED_RELOAD_CLASS): Likewise.
18986         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18987         (PREDICATE_CODES): Update.
18988         * config/alpha/alpha.md: New post-reload splitters to convert
18989         simplfied symbolic operands to the form that references $29.
18990         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18991         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18992
18993 2002-01-03  Richard Henderson  <rth@redhat.com>
18994
18995         * local-alloc.c (function_invariant_p): Update commentary.
18996
18997 2002-01-04  H.J. Lu <hjl@gnu.org>
18998
18999         * toplev.c (rest_of_compilation): Fix a typo when calling
19000         cleanup_cfg.
19001
19002 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19003
19004         * c-common.c: Fix formatting.
19005         * diagnostic.c: Likewise.
19006         * doloop.c: Likewise.
19007         * dwarf2out.c: Likewise.
19008
19009 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19010
19011         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19012         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19013
19014 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19015
19016         * cpperror.c: Update comments and copyright.
19017         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19018         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19019
19020 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19021
19022         * collect2.c (main): Use strcmp when testing for "-shared".
19023
19024 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19025
19026         * cppmacro.c: Don't include intl.h.  Update comments.
19027         (new_number_token): Allocate enough buffer for 64-bit unsigned
19028         integers; update prototype.
19029         * cppmain.c: Update comments.
19030
19031 2002-01-03  William Cohen  <wcohen@redhat.com>
19032
19033         * function.h (struct function): Add profile.
19034         (current_function_profile): New.
19035         doc/extend.texi: Update documentation.
19036         * final.c (final_start_function): Use current_function_profile
19037         instead of profile_flag.
19038         (profile_after_prologue): Likewise.
19039         * function.c (expand_function_start): Likewise.
19040         (expand_function_start): Likewise.
19041         * config/alpha/alpha.c (direct_call_operand):
19042         (alpha_does_function_need_gp): Likewise.
19043         (alpha_expand_prologue): Likewise.
19044         * config/arm/arm.c (arm_expand_prologue): Likewise.
19045         thumb_expand_prologue: Likewise.
19046         * config/d30v/d30v.c (d30v_stack_info): Likewise.
19047         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19048         (fr30_expand_prologue): Likewise.
19049         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19050         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19051         * config/i386/i386.h (FINALIZE_PIC): Likewise.
19052         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19053         * config/i960/i960.c (i960_output_function_prologue): Likewise.
19054         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19055         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19056         (m32r_expand_prologue): Likewise.
19057         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19058         (m88k_expand_prologue): Likewise.
19059         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19060         * config/mips/mips.c (compute_frame_size): Likewise.
19061         (mips_expand_prologue): Likewise.
19062         (mips_can_use_return_insn): Likewise.
19063         * config/pa/elf.h (ASM_FILE_START): Likewise.
19064         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19065         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19066         * config/pa/som.h (ASM_FILE_START): Likewise.
19067         * config/romp/romp.c (romp_using_r14): Likewise.
19068         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19069         (rs6000_stack_info): Likewise.
19070         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19071         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19072         * config/v850/v850.c (compute_register_save_size): Likewise.
19073
19074 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
19075
19076         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19077         gen_lowpart_common fails, use gen_lowpart_SUBREG.
19078
19079 2002-01-03  Turly O'Connor  <turly@apple.com>
19080
19081         * darwin.c (machopic_output_possible_stub_label): Don't generate
19082         stub routines for pseudo-stubs which we've just defined.
19083
19084 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19085
19086         * builtins.c: Fix formatting.
19087         * c-typeck.c: Likewise.
19088         * combine.c: Likewise.
19089         * expr.c: Likewise.
19090         * loop.c: Likewise.
19091
19092 2002-01-03  Andreas Schwab  <schwab@suse.de>
19093
19094         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19095         and return true if _cpp_push_next_buffer pushed a new include
19096         file.
19097         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19098         _cpp_pop_file_buffer did not push a new file.
19099         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19100
19101 2002-01-02  Eric Christopher  <echristo@redhat.com>
19102
19103         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19104         FIND_REG_INC_NOTE call. Update copyright.
19105         * loop.c (canonicalize_condition): Ditto.
19106         * reorg.c (delete_scheduled_jump): Ditto.
19107
19108 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19109
19110         * gcse.c: Fix formatting.
19111
19112 2002-01-03  Graham Stott  <grahams@redhat.com>
19113
19114         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19115         forward defs for struct tags rtx_def, union_tree, rtvec_def
19116         also output corresponding typedefs for rtx, tree, and rtvec.
19117
19118         * system.h: Move forward defs for struct tags rtx_def, union_tree,
19119         rtvec_def along with corresponding typedefs for rtx, tree, and
19120         rtvec to config.h, hconfig.h, tconfig.h.
19121
19122 2002-01-03  Graham Stott  <grahams@redhat.com>
19123
19124         * tree.h: Update copyright date.
19125         (IS_EXPR_CODE_CLASS): Add parenthesis.
19126         (TREE_SET_CODE): Add whitespace.
19127         (TREE_CHECK): Add parenthesis.
19128         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19129         (CST_OR_CONSTRUCTOR_CHECK):
19130         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19131         (TREE_SYMBOL_REFERENCED): Whitespace.
19132         (INT_CST_LT): Likewise.
19133         (INT_CST_LT_UNSIGNED): Likewise.
19134         (tree_real_cst): Unwrap comment.
19135         (tree_string): Likewise.
19136         (tree_complex): Likewise.
19137         (IDENTIFIER_POINTER): correct cast.
19138         (SAVE_EXPR_CONTEXT): Whitespace.
19139         (EXPR_WFL_FILENAME_NODE): Likewise.
19140         (EXPR_WFL_FILENAME): Remove parenthesis.
19141         (DECL_ORIGIN): Add parenthesis.
19142         (DECL_FROM_INLINE): Use NULL_TREE.
19143         (build_int_2): Whitespace.
19144         (build_type_variant): Add parenthesis.
19145
19146         * gcc/jcf-parse.c: Update copyright date.
19147         (yyparse): Constify resource_filename.
19148
19149 2002-01-03  Graham Stott  <grahams@redhat.com>
19150
19151         * rtl.h: Update copyright date.
19152         (RTL_CHECK1): Wrap long line.
19153         (RTL_CHECK2): Likewise.
19154         (RTL_CHECKC1): Wrap long line and whitespace.
19155         (RTL_CHECKC2): Likewise.
19156         (XWINT): Whitespace.
19157         (XINT): Likewise.
19158         (XSTR): Likewise.
19159         (XEXP): Likewise.
19160         (XVEC): Likewise.
19161         (XMODE): Likewise.
19162         (XBITMAP): Likewise.
19163         (XTREE): Likewise.
19164         (XBBDEF): Likewise.
19165         (XTMPL): Likewise.
19166         (X0WINT): Likewise.
19167         (X0INT):Likewise.
19168         (X0UINT): Likewise.
19169         (X0STR): Likewise.
19170         (X0EXP): Likewise.
19171         (X0VEC): Likewise.
19172         (X0MODE): Likewise.
19173         (X0BITMAP): Likewise.
19174         (X0TREE): Likewise.
19175         (X0BBDEF): Likewise.
19176         (X0ADVFLAGS): Likewise.
19177         (X0CSELIB): Likewise.
19178         (X0MEMATTR): Likewise.
19179         (XCWINT): Likewise.
19180         (XCINT): Likewise.
19181         (XCUINT): Likewise.
19182         (XCSTR): Likewise.
19183         (XCEXP): Likewise.
19184         (XCVEC): Likewise.
19185         (XCMODE): Likewise.
19186         (XCBITMAP): Likewise.
19187         (XCTREE): Likewise.
19188         (XCBBDEF): Likewise.
19189         (XCADVFLAGS): Likewise.
19190         (XCCSELIB): Likewise.
19191         (XC2EXP): Likewise.
19192         (INSN_UID): Likewise.
19193         (PREV_INSN): Likewise.
19194         (PATTERN): Likewise.
19195         (INSN_CODE): Likewise.
19196         (PUT_REG_NOTE_KIND): Likewise.
19197         (CODE_LABEL_NUMBER): Likewise.
19198         (NOTE_SOURCE_FILE): Likewise.
19199         (NOTE_BLOCK): Likewise.
19200         (NOTE_EH_HANDLER): Likewise.
19201         (NOTE_RANGE_INFO): Likewise.
19202         (NOTE_LIVE_INFO): Likewise.
19203         (NOTE_BASIC_BLOCK): Likewise.
19204         (NOTE_EXPECTED_VALUE): Likewise.
19205         (NOTE_LINE_NUMBER): Likewise.
19206         (LABEL_NAME): Likewise.
19207         (LABEL_NUSES): Likewise.
19208         (LABEL_ALTERNATE_NAME): Likewise.
19209         (ADDRESSOF_DECL): Likewise.
19210         (JUMP_LABEL): Likewise.
19211         (LABEL_NEXTREF): Likewise.
19212         (REGNO): Likewise.
19213         (ORIGINAL_REGNO: Likewise.
19214         (HARD_REGISTER_NUM_P): Add parenthesis.
19215         (SUBREG_REG): Whitespace.
19216         (SUBREG_BYTE): Likewise.
19217         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19218         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19219         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19220         (ASM_OPERANDS_INPUT_VEC): Likewise.
19221         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19222         (ASM_OPERANDS_INPUT): Likewise.
19223         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19224         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19225         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19226         (ASM_OPERANDS_INPUT_MODE): Likewise.
19227         (ASM_OPERANDS_SOURCE_FILE): Likewise.
19228         (ASM_OPERANDS_SOURCE_LINE): Likewise.
19229         (MEM_SET_IN_STRUCT_P): Minor reformat.
19230         (TRAP_CONDITION): Whitespace.
19231         (TRAP_CODE): Likewise.
19232         (COND_EXEC_TEST): Likewise.
19233         (COND_EXEC_CODE): Likewise.
19234         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19235         (PHI_NODE_P): Add parenthesis.
19236         (plus_constant): Whitespace and add parenthesis.
19237
19238 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19239
19240         * config/avr/avr.c: Fix comment typos.
19241         * config/c4x/c4x.md: Likewise.
19242         * config/dsp16xx/dsp16xx.h: Likewise.
19243         * config/dsp16xx/dsp16xx.md: Likewise.
19244         * config/i386/i386.md: Likewise.
19245         * config/ia64/ia64.c: Likewise.
19246         * config/m32r/m32r.h: Likewise.
19247         * config/m68hc11/m68hc11.md: Likewise.
19248         * config/mmix/mmix.c: Likewise.
19249         * config/mn10200/mn10200.c: Likewise.
19250         * config/romp/romp.c: Likewise.
19251         * config/sh/sh.c: Likewise.
19252         * config/stormy16/stormy16.c: Likewise.
19253         * config/stormy16/stormy16.h: Likewise.
19254         * config/stormy16/stormy16.md: Likewise.
19255
19256 2002-01-03  Graham Stott  <grahams@redhat.com>
19257
19258         * loop.h: Update copyright date.
19259         (LOOP_MOVABLES): Fix typo.
19260         (LOOP_REGS): Likewise.
19261         (LOOP_IVS): Likewise.
19262
19263 2002-01-03  Graham Stott  <grahams@redhat.com>
19264
19265         * cppinit.c: Update copyright date.
19266         Don't include output.h
19267         * Makefile.in: Update copyright date.
19268         Update dependency.
19269
19270 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19271
19272         PR c/5226
19273         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19274         (-pthread) Add to RS/6000 options.
19275
19276 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19277
19278         * except.c: Fix comment typos.
19279         * loop.c: Likewise.
19280         * varasm.c: Likewise.
19281         * doc/tm.texi: Fix a typo.
19282
19283 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
19284
19285         * c-typeck.c (output_init_element): Allow initializing static storage
19286         duration objects with compound literals.
19287
19288 2002-01-02  Richard Henderson  <rth@redhat.com>
19289
19290         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19291         after abusing it.
19292
19293 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19294
19295         * gcc.c (default_compilers): Const-ify.
19296         * mips-tdump.c (stab_names): Likewise.
19297         * mips-tfile.c (map_coff_types, map_coff_storage,
19298         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19299         pseudo_ops_t, pseudo_ops): Likewise.
19300         * protoize.c (default_include): Likewise
19301
19302         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19303         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19304         Add array size in declaration.
19305         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19306         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19307         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19308         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19309         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19310         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19311         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19312         emtens, make_nan): Const-ify.
19313         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19314         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19315
19316 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
19317
19318         * config.gcc (ia64-*-*): Set extra_headers.
19319         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
19320         * config/alpha/t-osf: Remove.
19321         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19322
19323 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
19324
19325         * config/rs6000/t-aix43: Revert previous change.
19326
19327 2002-01-02  Jason Merrill  <jason@redhat.com>
19328
19329         * c-decl.c (c_expand_body): Call outlining_inline_function when
19330         emitting an inline function out of line.
19331
19332 2002-01-02  Richard Henderson  <rth@redhat.com>
19333
19334         * dwarf2out.c (limbo_die_node): Add created_for member.
19335         (new_die): New argument created_for.  Update all callers.
19336         (mark_limbo_die_list): New.
19337         (dwarf2out_init): Register limbo_die_list as a root.
19338         (dwarf2out_finish): Force insert limbo dies into their function
19339         context.
19340
19341 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
19342
19343         PR c++/5089
19344         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19345
19346 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19347
19348         * config/h8300/fixunssfsi.c: Update copyright.
19349         Fix comment typos.
19350         Fix formatting.
19351         * config/h8300/h8300.c: Update copyright.
19352         Eliminate warnings.
19353
19354 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19355
19356         * config/romp/romp.c: Fix comment formatting.
19357         * config/romp/romp.h: Likewise.
19358         * config/romp/romp.md: Likewise.
19359         * config/s390/s390.c: Likewise.
19360         * config/stormy16/stormy16.c: Likewise.
19361         * config/stormy16/stormy16.h: Likewise.
19362
19363 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
19364
19365         * c-common.h (genrtl_expr_stmt_value): Declare.
19366         * c-semantics.c (genrtl_goto_stmt): Redirect to...
19367         (genrtl_goto_stmt_value): ... this new function.  Pass new
19368         argument down to expand_expr_stmt_value, taking
19369         TREE_ADDRESSABLE into account.
19370         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19371         STMT_EXPR as addressable, i.e., one whose result we want.
19372         * expr.c (expand_expr): Don't save expression statement value
19373         of labeled_blocks or loop_exprs.
19374         * stmt.c (expand_expr_stmt): Redirect to...
19375         (expand_expr_stmt_value): ... this new function.  Use new
19376         argument to tell whether to save expression value.
19377         (expand_end_stmt_expr): Reset last_expr_type and
19378         last_expr_value if we don't have either.
19379         * tree-inline.c (declare_return_variable): Mark its use
19380         statement as addressable.
19381         * tree.h: Document new use of TREE_ADDRESSABLE.
19382         (expand_expr_stmt_value): Declare.
19383
19384 2002-01-01  Tom Rix  <trix@redhat.com>
19385
19386         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19387         rs6000_emit_allocate_stack.
19388
19389 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19390
19391         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19392         ${srcdir}/ginclude/ to every entry in extra_headers.
19393         * configure: Regenerate.
19394         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19395         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19396         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19397         * ginclude/proto.h: Rename to config/convex/proto.h.
19398
19399 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19400
19401         * attribs.c (handle_vector_size_attribute): Use host_integerp
19402         and tree_int_cst; remove warnings.
19403         * caller-save.c (insert_restore): Add cast to get rid of warning.
19404         (insert_save): Likewise.
19405         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19406         * regmove.c (find_matches): Add temporary var to kill a warning.
19407
19408 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
19409
19410         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19411         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19412         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19413         (vms-dwarf2eh.o): Add Makefile rule.
19414         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19415         * config/alpha/vms-dwarf2eh.asm: New file.
19416
19417         * gcc.c (delete_if_ordinary): Delete all versions.
19418
19419 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
19420
19421         * config/mmix/mmix.md: Update FIXME to not mention
19422         define_constants.
19423         (MMIX_rJ_REGNUM): New define_constants constant.
19424         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19425         "*movdicc_real"): Adjust contraints formatting.
19426         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19427         for branch prediction.
19428         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19429         output template.
19430         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19431         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19432         number.  Delete related FIXMEs.
19433         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19434         from number to MMIX_rJ_REGNUM.
19435         (TARGET_MASK_BRANCH_PREDICT): New.
19436         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19437         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
19438         value.  Add -mbranch-predict and -mno-branch-predict.
19439         (TARGET_VERSION): Drop date.
19440         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19441         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19442         for finding out global symbols.
19443         (mmix_asm_output_labelref): Revert condition for global symbol.
19444         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19445         (mmix_print_operand_punct_valid_p): A '+' is valid.
19446
19447 See ChangeLog.6 for earlier changes.