sh.c (langhooks.h): Include.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
2
3         * sh.c (langhooks.h): Include.
4         (sh_init_builtins, sh_media_init_builtins): New functions.
5         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
6         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
8         (builtin_description): New struct tag.
9         (signature_args, bdesc): New arrays.
10         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
11         (print_operand): Add 'N' modifier.
12         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
13         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
14         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
15         (CONST_COSTS): Add special case for SHmedia AND.
16         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
17         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
18         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
19         target_operand can also be const or unspec.
20         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
21         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
22         (attribute type): Add new types.
23         (anddi3): Add splitter.
24         (movdi_const_16bit+1): Add code to handle vector constants and
25         bitmasks efficiently.
26         (shori_media): Have generator function made.
27         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
28         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
29         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
30         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
31         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
32         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
33         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
34         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
35         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
36         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
37         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
38         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
39         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
40         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
41         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
42         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
43         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
44         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
45         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
46         (ftrv): Likewise.
47
48         (fpu_switch+1, fpu_switch+2): Remove constraint.
49
50 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
51
52         * tree.c (build_function_type_list): Update function comment.
53         Rename first argument to return_type.
54
55 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
56
57         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
58         tradcif.y and related files.
59
60 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
61
62         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
63
64 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
65
66         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
67
68 2002-06-30  Devang Patel  <dpatel@apple.com>
69
70         * objc/objc-act.c (finish_file): Avoid finish_objc() if
71         -fsyntax-only.
72
73 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
74                           Frank Ch. Eigler  <fche@redhat.com>
75                           Matthew Green  <mrg@redhat.com>
76                           Richard Henderson <rtl@redhat.com>
77                           Dave Hudson  <dave.hudson@ubicom.com>
78                           Jeff Johnston  <jjohnstn@redhat.com>
79                           Alan Lehotsky <apl@alum.mit.edu>
80                           Bernd Schmidt  <bernds@redhat.com>
81                           Graham Stott  <grahams@redhat.com>
82                           
83         * doc/extend.texi: Add ip2k port to description of attribute
84         naked.
85         * doc/install.texi (Specific): Add ip2k description.
86         * doc/install-old.texi (Configurations): Add ip2k to possible
87         cpu types.
88         * doc/md.texi: Document ip2k constraints.
89         * config/ip2k/crt0.S: New file.
90         * config/ip2k/ip2k-protos.h: New file.
91         * config/ip2k/ip2k.c: New file.
92         * config/ip2k/ip2k.h: New file.
93         * config/ip2k/ip2k.md: New file.
94         * config/ip2k/libgcc.S: New file.
95         * config/ip2k/t-ip2k: New file.
96
97 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
98
99         * config/mmix/mmix.md ("return"): New pattern.
100         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
101         (TARGET_USE_RETURN_INSN): New macros.
102         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
103         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
104         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
105         (MMIX_POP_ARGUMENT): New macro.
106         (mmix_target_asm_function_prologue): When no epilogue is executed,
107         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
108         (mmix_print_operand) <case '.'>: New case.
109         (mmix_print_operand_punct_valid_p): Match '.'.
110         (mmix_use_simple_return): New function.
111         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
112         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
113         -msingle-exit, -mno-single-exit.
114         (MMIX Options): Ditto.
115
116 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
117
118         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
119
120 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
121
122         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
123
124 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
125
126         * unroll.c (loop_iterations): Handle EQ loops.
127
128 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
129
130         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
131         constraint in define_expand, not splitter.
132         Formatting.
133
134 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
135
136         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
137         build_function_type_list instead of build_function_type.
138
139         * config/ia64/ia64.c (ia64_init_builtins): Same.
140
141         * config/alpha/alpha.c (alpha_init_builtins): Same.
142
143         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
144
145         * config/arm/arm.c (arm_init_builtins): Same.
146
147         * tree.h: Add build_function_type_list prototype.
148
149         * tree.c (build_function_type_list): New.
150
151 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
152
153         * collect2.c (scan_prog_file): Fix typo in message.
154
155 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
156
157         * fold-cont.c: Remove unused CHARMASK.
158
159 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
160
161         PR preprocessor/7150
162         * cppmain.c (scan_translation_unit_trad): Simplify.
163         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
164
165 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
166
167         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
168         Don't use CPP_PREDEFINES.
169         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
170         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
171         * config/i386/djgpp.h, config/i386/i386-coff.h,
172         config/i386/i386-interix.h, config/i386/i386-interix3.h,
173         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
174         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
175         config/i386/uwin.h: Similarly.
176
177 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
178
179         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
180         flag_inline_trees to enable inlining.
181
182 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
183
184         * configure.in (gcc_gxx_include_dir):  Change to match versioned
185         C++ headers if --enable-version-specific-runtime-libs is used.
186         * configure:  Regenerate.
187
188 2002-06-28  Jan Hubicka  <jh@suse.cz>
189
190         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
191
192 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
193
194         * combine.c (combine_simplify_rtx): Pass the mode of the
195         shift count, not the shift operation when trying to simplify
196         a shift on a SHIFT_COUNT_TRUNCATED target.
197
198 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
199
200         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
201         avoid the auto increment addressing modes.
202         ("*subsi3"): Likewise.
203         (split for add/sub on address): For 68HC12 push the value on 
204         the stack and do the operation with a pop.
205
206 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
207
208         * cpplib.c (_cpp_handle_directive): Move #define-specific
209         code to the #define handler...
210         (do_define): ...here.
211         (lex_macro_node): No longer a need to check for comments here.
212
213 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
214
215         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
216         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
217         Declare.
218         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
219         do not reorder basic blocks at the end when optimizing for size.
220
221 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
222
223         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
224         (m68hc11_make_autoinc_notes): New function.
225         (m68hc11_split_move): Be very cautious when spliting a move with
226         auto increment/decrement modes because this may result in incompatible
227         directions; add REG_INC notes to the resulting insn for CSE reg.
228
229 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
230
231         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
232         can be a valid address.
233
234 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
235
236         * config/rs6000/rs6000.c: Remove unusued variables from last
237         patch.
238
239 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
240
241         Revert:
242         * config/rs6000/rs6000.c (rs6000_override_options): Move
243         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
244
245 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
246
247         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
248         lvx/stv/dst builtins...
249         (altivec_expand_ld_builtin): ...to here.
250         (altivec_expand_st_builtin): ...here.
251         (altivec_expand_dst_builtin): ...and here (respectively).
252
253 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
254
255         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
256
257 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
258
259         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
260         subregs.
261         * recog.c (general_operand, register_operand): Disallow them.
262
263 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
264
265         PR preprocessor/7138
266         * cpplib.c (_cpp_handle_directive): Do traditional
267         preparation after setting state.angled_headers.
268         * cpptrad.c (scan_out_logical_line): Fix potential
269         quote bug.
270
271 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
272
273         * config/rs6000/rs6000.c (rs6000_override_options): Move
274         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
275
276 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
277
278         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
279         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
280         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
281
282 2002-06-27  Roger Sayle  <roger@eyesopen.com>
283
284         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
285         * config/stormy16/stormy16.h: Likewise.
286
287         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
288         with #define.
289
290 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
291
292         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
293         Hitachi entry.  Make punctuation more consistent.
294
295 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
296
297         * doc/install.texi: Change ` bit' to `-bit'.
298         * doc/md.texi: Change `-bits' to `-bit'.
299         * doc/tm.texi: Change `-bits' to ` bits'.
300
301 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
302
303         * gcse.c (hoist_code): Rewrite to only get list of dominated
304         blocks once per BB. Also fix reversed test (by removing need for 
305         the test at all).
306
307 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
308
309         * cpphash.h (_cpp_set_trad_context): Remove.
310         * cpplib.c (prepare_directive_trad): Do nothing for #define.
311         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
312         * cpptrad.c: Update comments.
313         (_cpp_read_logical_line_trad): Let scan_logical_line handle
314         updating the current context.
315         (scan_logical_line): Update the current context.
316         (_cpp_create_trad_definition): Similarly.
317         (_cpp_set_trad_context): Remove.
318
319 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
320
321         PR preprocessor/7070
322         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
323
324 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
325
326         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
327         config/xtensa/xtensa.c (xtensa_return_addr): New function.
328         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
329         config/xtensa/xtensa.md (fix_return_addr): New pattern.
330
331 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
332
333         * mips.c (coprocessor_operand, coprocessor2_operand,
334         symbolic_operand): Move prototypes from here...
335         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
336         symbolic_operand): ...to here.
337
338 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
339
340         * config/sh/crt1.asm: remove _stack label definition
341         and sentinel value.
342
343 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
344
345         * varasm.c: Include real.h before output.h.
346
347 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
348
349         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
350         check for TARGET_ALTIVEC.
351
352 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
353
354         * config.gcc (vax-*-vms*): Make obselete.
355
356 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
357
358         * gcc.c (warn_std): Delete.
359
360 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
361
362         * doc/extend.texi: Fix formatting of last checkin.
363
364 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
365
366         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
367         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
368
369 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
370
371         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
372         discrepancies from motorola's documentation.
373
374 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
375
376         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
377         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
378
379         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
380         produce a 32 bit result before normalization, then normalize with a
381         left shift.  Compute approximative error of 2nd reciprocal
382         approximation in 2's complement.  Fix mask generation from upper
383         longword of second divide stage result.
384         For large divisor, fix shift count used to truncate first stage
385         divide result; make decision if to adjust upwards based on comparison
386         of higher parts of normalized values.
387         (udivdi): Likewise.  Undo normalization of result for large divisor
388         case.
389
390 2002-06-25  David S. Miller  <davem@redhat.com>
391
392         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
393
394 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
395
396         * cpplib.c (do_include_common): Revert to correct line number
397         if -traditional.
398         * cpptrad.c (scan_out_logical_line): Treat null directive as
399         white space.  Invlidate MI optimization for non-whitespace
400         text outside a directive.
401
402 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
403
404         * Makefile.in (SHELL): Set to @SHELL@.
405         * fixinc/Makefile.in (SHELL): Likewise.
406
407         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
408         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
409         initialization.
410
411 2002-06-24  Jeff Law <law@redhat.com>
412
413         * flow.c (propagate_one_insn): When removing an insn
414         with a REG_LIBCALL note but not the entire libcall sequence,
415         delete the associated REG_RETVAL note.
416
417 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
418
419         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
420         (udivsi3): Likewise.  Rewrite SH1 implementation.
421         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
422         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
423         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
424         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
425         (_moddi3): Likewise.
426
427         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
428
429         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
430         arguments into account for stack_regs.
431
432 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
433
434         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
435         in examples.
436         
437 2002-06-24  Art Haas  <ahaas@neosoft.com>
438
439         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
440         * doc/tm.texi (Frame Layout): Likewise.
441
442 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
443         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
444         Set float_format to i128.
445
446 2002-06-24  David S. Miller  <davem@redhat.com>
447
448         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
449         32-bit ABI libfuncs to NULL.
450
451         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
452         strings instead of quoted strings for code blocks.
453
454         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
455         optabs if op1 is const0_rtx.
456
457         * Makefile.in (GTFILES): Add basic-block.h
458         * basic-block.h (label_value_list, tail_recursion_label_list):
459         Mark with GTY.
460
461 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
462
463         * cpptrad.c (scan_out_logical_line): Check recursing only when
464         we know we have a macro invocation in the function-like case.
465         Only call _cpp_handle_directive if we know we have a good
466         directive, or we want to reject a bad directive.
467
468 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
469
470         * doloop.c (doloop_valid_p): Correct comment.
471         (doloop_modify_runtime <abs_inc != 1>): Simplify.
472         (doloop_modify_runtime <do-while>): Don't emit code when NE.
473
474 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
475
476         * config.gcc: Add support for ip2k.
477
478 2002-06-23  Jan Hubicka  <jh@suse.cz>
479             Jeff Law <law@redhat.com>
480
481         * function.h (struct emit_status): Clarify potential contents
482         of regno_reg_rtx array.
483         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
484         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
485
486         * reg-stack.c (convert_regs_exit): Push the registers to stack in
487         proper order.
488
489 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
490
491         PR middle-end/6963
492         * function.c (assign_stack_temp_for_type): Do not return
493         the same MEM rtx for multiple uses of a stack slot.
494
495 2002-06-22  David S. Miller  <davem@redhat.com>
496
497         PR target/6841 target/6770 target/6719
498         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
499         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
500         GENERAL_OR_EXTRA_FP_REGS.
501
502 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
503
504         * cpptrad.c (struct fun_macro): Add line number.
505         (scan_out_logical_line): Set it, and use it to report unterminated
506         macro invocations.
507
508 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
509
510         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
511         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
512         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
513         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
514         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
515         REGEXP_ONEOF, check_name): Const-ify.
516
517 2002-06-21  Matt Thomas  <matt@3am-software.com>
518
519         * config/vax/vax.c (vax_output_function_prologue): Use
520         REGISTER_PREFIX.  Fix some indentation.
521         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
522         (VAX_ISTREAM_SYNC): Define.
523         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
524         i-stream sync to the end.
525         (REGISTER_PREFIX): Define as "".
526         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
527
528 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
529
530         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
531         configurations.
532
533 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
534
535         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
536         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
537
538 2002-06-21  Matt Thomas  <matt@3am-software.com>
539
540         * config/vax/netbsd.h: Adjust a comment.
541         (TARGET_DEFAULT): Redefine as 0.
542
543 2002-06-21  Richard Henderson  <rth@redhat.com>
544
545         * bb-reorder.c (make_reorder_chain_1): Search harder for the
546         vax casesi fallthru edge.
547         * cfglayout.c (cleanup_unconditional_jumps): Use
548         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
549         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
550         block after ADDR_VEC.
551
552 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
553
554         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
555
556 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
557
558         * cpperror.c (cpp_error): For traditional CPP, default to
559         diagnostics on pfile->line.
560         * cpplib.c (prepare_directive_trad): Set line number for
561         diagnostics for #define too.
562         * cpptrad.c (skip_whitespace): Skip comments properly.
563         (_cpp_expansions_different_trad): Initialize quote2.
564
565 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
566
567         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
568         * config/mmix/mmix.h: Ditto.
569         * config/mmix/mmix-protos.h: Ditto.
570         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
571         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
572         comment.  Comment extra CC modes.
573
574 2002-06-20 Jan Hubicka  <jh@suse.cz>
575
576         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
577         (scope_to_insns_finalize): Do not call set_block_levels; handle
578         sequences.
579         (choose_inner_scope): New.
580         * rtl.h (choose_inner_scope): Declare.
581
582 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
583
584         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
585         HOST_WIDE_INT.
586         * pa.c (pa_asm_output_mi_thunk): Likewise.
587         (n_deferred_plabels): Change type to size_t.
588         (output_deferred_plabels, output_call): Use size_t instead of int.
589
590 2002-06-20  Richard Henderson  <rth@redhat.com>
591
592         PR target/4041
593         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
594         pattern and adjust constraints for coldfire.
595
596 2002-06-20  Richard Henderson  <rth@redhat.com>
597
598         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
599
600 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
601
602         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
603
604 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
605
606         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
607
608 2002-06-20  Stan Shebs  <shebs@apple.com>
609
610         * dominance.c: Include errors.h instead of error.h.
611
612 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
613
614         * cppexp.c (cpp_interpret_integer): Don't force traditional
615         numbers to be unsigned.
616         * cpplib.c (prepare_directive_trad): Set line number for
617         diagnostics.
618         * cpptrad.c (scan_out_logical_line): Continue scanning out
619         at start of buffer.
620         * gcc.c (trad_capable_cpp): Use cc1 always.
621
622 2002-06-20  Jeffrey Law  <law@redhat.com>
623
624         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
625         elimination in leaf functions by default yet.
626
627 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
628
629         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
630
631 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
632
633         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
634         multilibs.
635         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
636         Fixes PR other/6836.
637
638 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
639                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
640
641         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
642
643         * basic-block.h: Do not include et-forest.h
644         (dominance_info): Declare as struct dominance-info.
645         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
646         deleting block.
647         * dominance.c (struct dominance_info): Define.
648         (BB_NODE, SET_BB_NODE): New macros.
649         (bb_hash_func, bb_eq_func): Kill.
650         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
651         nearest_common_dominator, dominated_by_p, recount_dominator,
652         add_to_dominance_info, delete_from_dominance_info): update for new
653         representation.
654         (get_dominated_by, redirect_immediate_dominators): Rewrite using
655         enumerate_sons.
656         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
657         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
658         structure.
659
660         * et-forest.h: Update copyright; revamp all function to operate on
661         nodes
662         (et_forest_value): Kill.
663         (et_forest_enumerate_sons, et_forest_node_value): New.
664         * et-forest.c: Update copyright.
665         * et-forest.h: Update copyright; revamp all function to operate on
666         nodes
667         (et_forest_value): Kill.
668         (et_forest_enumerate_sons, et_forest_node_value): New.
669
670         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
671
672         * basic-block.h: Inlude et-forest.h
673         (basic_block_def): Kill dominator.
674         (dominance_info): New type.
675         (loops): Use dominace_info.
676         (dominace handling functions): Take dominace_info as argument
677         instead of bitmaps.
678         (create_preheader): Likewise.
679         * cfg.c (entry_exit_blocks): Kill dominator.
680         (dump_flow_info): Do not dump dominators.
681         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
682         dominators.
683         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
684         (flow_loops_pre_header_scan, make_forwarder_block,
685         canonicale_loop_headers, flow_loops_find): Likewise.
686         * dominance.c: Include error.h
687         (idoms_to_doms): Kill.
688         (bb_hash_func, bb_eq_func): New static functions.
689         (debug_dominace_info): New global function.
690         (calculate_dominance_info): Use new et forest structure.
691         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
692         get_dominated_by, redirect_immediate_dominators,
693         nearest_common_dominator, dominated_by_p, verify_dominators,
694         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
695         delete_from_dominance_info): New global functions.
696         * gcse.c (domnators): CHange to dominance_info.
697         (alloc_hoist_mem): Do not alloc dominators
698         (free_code_hoist_mem): Use free_dominance_info.
699         (compute_code_hoist_data): Use dominance_info.
700         (hoist_code): Likewise.
701         * ifcvt.c (post_dominators): Likewise.
702         (find_if_case_2, if_convert): Likewise.
703         * predict.c (process_note_predictions, process_note_prediction,
704         estimate-probability): Likewise.
705         * sched-rgn.c (find_rgns, init_regions): Likewise.
706         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
707         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
708         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
709         find_evaluations, convert_to_ssa): Likewise.
710         * ssa.h (compute_dominance_frontiers): Likewise.
711
712         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
713
714         * Makefile.in (et-forest.c): Add.
715         * et-forest.c: New file.
716         * at-forest.h: New file.
717
718 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
719
720         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
721         array size calculation.
722         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
723         Likewise.
724
725         * diagnostic.c (diagnostic_kind_text): Const-ify.
726         * gengtype.c (lang_names): Likewise.
727
728 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
729
730         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
731
732 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
733
734         * config/sol2.h: New file.
735         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
736         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
737         (sparc-*-chorusos*): Likewise.
738         (sparc-*-elf*): Likewise.
739         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
740         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
741         (sparc-hal-solaris2*): Likewise.
742         (sparc-*-solaris2*): Likewise.
743         (sparclite-*-elf*): Likewise.
744         (sparc86x-*-elf*): Likewise.
745         (sparc64-*-elf*): Likewise.
746
747         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
748         config/sol2.h.
749         (ASM_SPEC): Override config/sol2.h version for now.
750         Removed obsolete GAS_REJECTS_MINUS_S variant.
751         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
752         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
753         (TARGET_OS_CPP_BUILTINS): Likewise.
754         Assert system=unix.
755         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
756         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
757         config/sol2.h.
758         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
759         (ASM_CPU_SPEC): Define.
760         (SUBTARGET_EXTRA_SPECS): Define.
761
762         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
763         in config/sparc/sol2.h.
764         (ASM_SPEC): Moved to config/sol2.h.
765         (CPP_CPU_SPEC): Simplified.
766         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
767         consistency.
768         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
769         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
770         STARTFILE_ARCH64_SPEC.
771         (STARTFILE_SPEC): Moved to config/sol2.h
772         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
773         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
774         (LINK_ARCH64_SPEC): Simplified.
775         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
776         (LINK_SPEC): Moved to config/sol2.h
777
778         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
779         config/sol2.h.
780         Use BITS_PER_WORD for size.
781         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
782         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
783         (CPP_PREDEFINES): Removed OS-specific part handled by
784         TARGET_OS_CPP_BUILTINS.
785         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
786         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
787         (ASM_SPEC): Moved to config/sol2.h.
788         (PREFERRED_DEBUGGING_TYPE): Likewise.
789         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
790         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
791         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
792         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
793
794         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
795         * config/i386/sol2gas.h: Removed.
796
797 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
798
799         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
800
801 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
802         
803         * gcc.c-torture/execute/simd-1.c: New.
804
805         * gcc.dg/simd-1.c: New.
806
807         * doc/extend.texi (Vector Extensions): Document that we can
808         specify simd types not specifically supported by the hardware.
809         Document that simd types can be used as function arguments.
810         Document that signness does make a difference in SIMD types.
811         Misc cleanups and revisions to the vector extensions section.
812
813         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
814         constants.
815
816         * expr.c (vector_mode_valid_p): New.
817
818         * expr.h: Add vector_mode_valid_p.
819
820         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
821
822         * c-common.c (type_for_mode): Always build vector nodes regardless
823         of VECTOR_MODE_SUPPORTED_P.
824         (handle_mode_attribute): Error if we can't emulate a nonexisting
825         vector mode.
826         (handle_vector_size_attribute): Same.
827
828         * optabs.c (expand_binop): Open-code vector operations.
829         (expand_unop): Open-code vector unops.
830         (expand_vector_binop): New.
831         (expand_vector_unop): New.
832         
833         * c-typeck.c (build_binary_op): Allow vectors in binops.
834         Allow vectors in conditional operatiors.
835         (build_unary_op): Allow vectors in unary minus.
836
837         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
838         TARGET_ALTIVEC.
839
840 2002-05-20  Richard Henderson  <rth@redhat.com>
841
842         * c-common.c (c_common_get_alias_set): Correctly handle characters.
843         Rearrange order of expressions; don't handle vectors here.
844         * alias.c (get_alias_set): Let vectors match their components.
845
846 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
847
848         * config/mips/mips.c (mips_emit_prefetch): Use hints which
849         match desired locality.
850
851 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
852
853         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
854         (h8300_insert_attributes): New.
855
856 2002-06-19  Akim Demaille  <akim@epita.fr>
857
858         * c-parse.in (initelt: identifier ':' initval): Add an empty
859         action to fix a type clash.
860         (aliasdecl, classdef): Add the missing closing `;'.
861         Whitespace changes.
862         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
863         $$ = $1 type clashes.
864
865 2002-06-19  Eric Christopher  <echristo@redhat.com>
866
867         * config/mips/mips.c (symbol_operand): New function.
868         (mips_emit_prefetch): Ditto.
869         * config/mips/mips-protos.h: Define.
870         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
871         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
872         (LEGITIMIZE_ADDRESS): Ditto.
873         * config/mips/mips.md (prefetch, prefetch_si_address,
874         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
875
876 2002-06-19  Eric Christopher  <echristo@redhat.com>
877
878         * config/fp-bit.h: Add unordered defines for gofast.
879
880 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
881
882         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
883         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
884         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
885         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
886         checking and without it.
887         (decl_name, decl_mode_check_failed, regexp_name,
888         regexp_mode_check_failed): New functions.
889         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
890         gen_presence_set, gen_absence_set, gen_automaton,
891         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
892         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
893         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
894         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
895         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
896         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
897         (decl_hash, decl_eq_p): Use the macros.
898         (find_decl): Ditto.  Set up mode of work_decl.
899         (process_excls, process_presence_absence, process_decls,
900         check_automaton_usage, process_regexp, process_regexp_decls,
901         check_usage, loop_in_regexp, check_loops_in_regexps,
902         process_regexp_cycles, add_advance_cycle_insn_decl,
903         initiate_states, initiate_excl_sets,
904         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
905         transform_2): Use the macros.
906         (transform_3): Ditto.  Check mode before making transformations of
907         ALLOF.
908         (regexp_transform_func, transform_insn_regexps,
909         process_unit_to_form_the_same_automaton_unit_lists,
910         form_the_same_automaton_unit_lists_from_regexp,
911         form_the_same_automaton_unit_lists,
912         process_seq_for_forming_states, process_alts_for_forming_states,
913         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
914         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
915         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
916         units_to_automata_heuristic_distr, create_ainsns,
917         units_to_automata_distr, create_automata): Use the macros.
918         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
919         (longest_path_length, min_issue_delay_pass_states,
920         output_dead_lock_vect, output_tables, output_insn_code_cases,
921         output_internal_insn_latency_func, output_print_reservation_func,
922         output_description, output_automaton_units, generate): Use the
923         macros.
924         (make_insn_alts_attr): Ditto.  Check case when there are not
925         alternatives in the reservation.
926         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
927         make_bypass_attr, form_important_insn_automata_lists,
928         expand_automata): Use the macros.
929
930 2002-06-20  Tim Josling  <tej@melbpc.org.au>
931
932         * Makefile.in: Clean up code to check for misspecified languages
933         in enable-languages.
934
935 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
936
937         * cpptrad.c (_cpp_replacement_text_len): initialize len.
938
939 2002-06-19  Jason Merrill  <jason@redhat.com>
940
941         * Makefile.in (unstrap, restrap): New targets.
942         (bootstrap): Mention restrap.
943
944 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
945
946         * except.c (ehl_free): Remove.
947
948         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
949         builtin_define and builtin_define_std.
950
951 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
952
953         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
954         (sCOND): Restrict operand class so that gcc knows how to reload them.
955         (bitfield_set): Merge two unnamed insn's using alternatives.
956         (call_value): Remove constraint on unused uperand.
957         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
958         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
959
960         * longlong.h (count_trailing_zeros): Escape newline and beautify.
961
962 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
963
964         * Makefile.in (QMTEST_DIR): Simplify definition.
965
966 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
967
968         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
969         #define.
970
971 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
972
973         * cpphash.h (struct cpp_reader): Make date and time strings.
974         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
975         _cpp_replacement_text_len): New.
976         * cppinit.c (cpp_create_reader): Update.
977         (init_builtins): Register appropriate builtins for -traditional-cpp.
978         * cppmacro.c (new_number_token): Remove.
979         (_cpp_builtin_macro_text): New.
980         (builtin_macro): Use it.
981         (cpp_macro_definition): Update to handle traditional macros.
982         * cppmain.c (cb_line_change): Don't do column positioning for
983         traditional output.
984         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
985         state ls_fun_close.
986         (skip_whitespace): Fix.
987         (maybe_start_funlike): Don't set state.parsing_args.
988         (scan_out_logical_line): Remove duplicate error.  Use lex_state
989         rather than state.parsing_args.
990         (push_replacement_text): Handle builtins.
991         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
992
993 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
994             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
995
996         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
997         attribute __always_inline__.
998
999 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
1000
1001         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
1002         when generating the call to _mcount.
1003         (NO_PROFILE_COUNTERS): Define.
1004
1005 2002-06-18  Richard Henderson  <rth@redhat.com>
1006
1007         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
1008         2002-06-02 change.
1009
1010 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
1011
1012         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
1013         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
1014         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
1015         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
1016
1017         * sh-protos.h (sh_pr_interrupt): Declare.
1018         * sh.c (sh_pr_interrupt): New function.
1019         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
1020         (sh_hard_regno_rename_ok): Likewise.
1021         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
1022
1023 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
1024
1025         * rtl.def (DEFINE_AUTOMATON): Add description of new options
1026         `time' and `v'.  Fix incorrect description of option `w'.
1027
1028         * doc/md.texi: Ditto.
1029
1030         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
1031         (gen_automata_option): Process the new options.
1032         (transform_2, transform_3): Initialize some variables.
1033         (initiate_automaton_gen): Use the new macros.
1034
1035 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
1036
1037         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
1038         (mips_set_return_address, mips_restore_gp): Declare.
1039         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
1040         (current_frame_info): Remove.
1041         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
1042         * config/mips/mips.c: Remove uses of current_frame_info.
1043         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
1044         (struct machine_function): Add 'frame' and 'insns_len'.
1045         (current_frame_info, zero_frame_info): Remove.
1046         (mips_restore_gp, mips_set_return_address): New.
1047         (mips_initial_elimination_offset): New.
1048         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
1049         (eh_return define_split): Use mips_set_return_address.
1050
1051 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1052
1053         * cpplib.c (dtable): Update.
1054         (end_directive): Decrement expansion prevention count.
1055         Clear state.in_expression.
1056         (prepare_directive_trad): Set state.in_expression.
1057         Increment expansion prevention count.
1058         * cpptrad.c (enum ls): New.
1059         (_cpp_overlay_buffer): Set overlaid_buffer.
1060         (_cpp_remove_overlay): Use overlaid_buffer.
1061         (_cpp_read_logcial_line_trad): Update buffer when it might
1062         have changed.
1063         (scan_out_logical_line): Handle state transitions for assertions
1064         and defined() in #if, and for funlike invocations including the
1065         directive case.  Handle '<' and '>' as a quote mechanism in
1066         #include.  Warn about unterminated macro invocations.
1067         * cpphash.h (struct lexer_state): New member in_expression.
1068         (struct cpp_reader): New member overlaid buffer.
1069
1070 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
1071
1072         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
1073         __always_inline__.
1074
1075 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
1076
1077         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
1078
1079         * doloop.c (doloop_optimize): Extract pattern from insn.
1080
1081 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
1082
1083         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
1084
1085 2002-06-17  Jeff Law <law@redhat.com>
1086
1087         * libgcc2.c: Do not include symcat.h or machmode.h.
1088
1089 2002-06-17  Richard Henderson  <rth@redhat.com>
1090
1091         PR target/6922
1092         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1093
1094 2002-06-17  Tom Tromey  <tromey@redhat.com>
1095
1096         * dwarfout.c: Include function.h.
1097
1098 2002-06-17  Andreas Schwab  <schwab@suse.de>
1099
1100         * print-rtl.c (print_rtx): Print space before vector, not after.
1101         (debug_rtx): Clear sawclose before printing.
1102         (debug_rtx_list): Print newline after each list element.
1103         (debug_rtx_range): Likewise.
1104
1105 2002-06-17  Richard Henderson  <rth@redhat.com>
1106
1107         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
1108         (current_function_funcdef_no): Similarly.
1109         * function.c (funcdef_no): Similarly.
1110         (prepare_function_start): Set current_function_funcdef_no.
1111         (expand_function_start): Don't set current_function_profile_label_no.
1112         * dwarf2out.h (current_funcdef_number): Remove.
1113         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
1114         current_function_funcdef_no throughout.
1115         * dwarfout.c, vmsdbgout.c: Similarly.
1116         * except.c (sjlj_funcdef_number): Remove.
1117         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1118         (output_function_exception_table): Likewise.
1119         * final.c (profile_function): Use current_function_funcdef_no
1120         instead of current_function_profile_label_no.
1121
1122 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
1123
1124         * sched-ebb.c (init_ready_list): Check INSN_P first.
1125
1126 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
1127
1128         * sh.md (divsi3): Update way how to find insns in a sequence.
1129
1130         * reload1.c (merge_assigned_reloads): Don't change reloads
1131         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1132         to RELOAD_OTHER when there are conflicting input reloads.
1133
1134 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
1135
1136         * function.c (epilogue_done): Correctly build a sequence of insns for
1137         a sibcall epilogue.
1138
1139 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
1140
1141         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1142         #define.
1143
1144         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1145
1146 2002-06-16  Richard Henderson  <rth@redhat.com>
1147
1148         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1149         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1150
1151 2002-06-16  Richard Henderson  <rth@redhat.com>
1152
1153         PR opt/6722
1154         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1155
1156 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1157
1158         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1159         * config/i386/i386-aout.h, config/i386/i386elf.h,
1160         config/i386/sysv4.h: Remove CPP_PREDEFINES.
1161         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1162         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1163         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1164         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1165         CPP_PREDEFINES and part of CPP_SPEC.
1166         * config/i386/sysv4-cpp.h: New.
1167
1168 2002-06-16  Richard Henderson  <rth@redhat.com>
1169
1170         PR c/7030
1171         * dwarf2out.c (modified_type_die): Don't assign the qualified die
1172         to the unqualified type.
1173
1174 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
1175
1176         * i386-protos.h (x86_field_alignment): Declare.
1177         * i386.c (x86_field_alignment): Define.
1178         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1179         (BIGGEST_FIELD_ALIGNMENT): Kill.
1180
1181 2002-06-16  Richard Henderson  <rth@redhat.com>
1182
1183         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
1184
1185 2002-06-16  Richard Henderson  <rth@redhat.com>
1186
1187         * c-common.c (flag_ms_extensions): Move from c++ front end.
1188         * c-common.h (flag_ms_extensions): Declare.
1189         * c-decl.c (c_decode_option): Add -fms-extensions.
1190         (grokfield): Don't accept anonymous structures in ISO C mode;
1191         accept only unnamed anonymous structures in GNU C mode; accept
1192         Plan 9 extensions in MS mode.
1193         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1194         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1195         (extension): Clear flag_iso.
1196         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1197
1198 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
1199
1200         PR target/7042
1201         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1202         early if current_function_epilogue_delay_list is non-empty.
1203         * config/cris/cris.md ("return"): Add sanity check asserting that
1204         current_function_epilogue_delay_list is empty.
1205
1206 2002-06-16  Jeff Law <law@redhat.com>
1207
1208         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1209         sharing of hard registers.
1210
1211         * toplev.c (rest_of_compilation): Remove redundant conditional.
1212
1213         * toplev.c (rest_of_compilation): Perform a simpler, less costly
1214         cleanup of the CFG when not optimizing.
1215
1216 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
1217
1218         * gcc.c (main): Correct startfile_prefix_spec check.
1219
1220 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1221
1222         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
1223         include both darwin.o and rs6000-c.o.
1224
1225 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1226
1227         * expr.c (compare_from_rtx): Call simplify_relational_operation
1228         on all comparisons, not just those between integer constants,
1229         with the correct (possibly unsigned) comparison code.
1230         (do_compare_rtx_and_jump): Likewise.
1231
1232 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1233
1234         * Makefile.in (tm_defines): New configuration variable.
1235         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1236         Pass tm_defines in TM_DEFINES.
1237         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
1238         * config.gcc (tm_defines): New configuration variable.
1239         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1240         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
1241         * configure.in: Substitute tm_defines.
1242         * configure: Rebuilt.
1243         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
1244         * doc/install.texi: Update.
1245         * pa/pa-700.h: Delete file.
1246         * pa/pa-7100.h: Delete file.
1247
1248 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1249
1250         * fold-const.c (comparison_to_compcode): New function to convert
1251         an comparison TREE CODE into a bit-based representation.
1252         (compcode_to_comparison): New function to convert from this bit
1253         based representation back to a comparison TREE CODE.
1254         (fold_truthop): Simplify (x<y) && (x==y) and related composite
1255         comparisons.
1256
1257 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
1258
1259         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1260
1261         * stor-layout.c (compute_record_mode): Remove check for
1262         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1263         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
1264         MEMBER_TYPE_FORCES_BLK.
1265
1266         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1267
1268         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1269
1270 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1271
1272         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1273
1274 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
1275
1276         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1277         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1278         * configure, config.in: Regenerate.
1279
1280 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1281
1282         * loop.c (check_final_value): Use v->always_executed
1283         instead of v->always_computable.
1284         * unroll.c (final_giv_value): Don't calculate the final
1285         value as a function of the biv if the giv is not computed
1286         for every loop iteration.
1287
1288 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1289
1290         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1291
1292 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1293
1294         PR c/6677
1295         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1296         the truncation down when the target type is signed.
1297         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1298         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1299         the conversion if the target type is a smaller type.
1300
1301 2002-06-14  Richard Henderson  <rth@redhat.com>
1302
1303         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1304         earlier.  Re-factor comparisons vs extrema.
1305
1306 2002-06-14  Richard Henderson  <rth@redhat.com>
1307
1308         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1309
1310 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1311
1312         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1313         * sched-deps.c (add_dependence): Likewise.
1314         (group_leader): Likewise.
1315         * sched-rgn.c (init_ready_list): Likewise.
1316         * doc/rtl.texi: Adjust accordingly.
1317
1318 2002-06-13  Jeffrey Law  <law@redhat.com>
1319
1320         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1321         null pointer checks were eliminated.  Update prototype.
1322         (delete_null_pointer_checks): Similarly.
1323         * rtl.h (delete_null_pointer_checks): Update prototype.
1324         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1325         delete_null_pointer_checks deletes one or more null
1326         pointer checks.  Do not run cleanup_cfg before gcse, the
1327         CFG is accurate and optimized at that point..
1328
1329         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1330         of hard registers.
1331
1332 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1333
1334         * Makefile.in (libgcc.mk): Depend on specs.
1335
1336 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1337
1338         * sh.md (mulsi3): Update way how to find insns in a sequence.
1339
1340 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1341
1342         * sh.h: Define HARD_REGNO_RENAME_OK
1343         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1344         interrupt_handler attribute, only registers saved on stack are OK.
1345         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1346
1347 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1348
1349         * config/sh/sh.md (jump): Emit jump insn.
1350         (call_pcrel): Get pattern of the result of gen_call_site.
1351         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1352
1353 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1354
1355         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1356         * cpptrad.c: Update comments.
1357         (skip_whitespace, copy_comment): Take a new parameter.
1358         (skip_escaped_newlines): Don't duplicate escaped newline test.
1359         (copy_comment): Different location for CUR, decide here how
1360         to copy / replace the comment.
1361         (skip_whitespace): Copy whitespace.
1362         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1363         (scan_out_logical_line): Let copy comment handle keeping or
1364         replacing comments.
1365         (scan_parameters, _cpp_create_trad_definition): Update.
1366
1367 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1368
1369         * reload.c (get_secondary_mem,find_reloads_address,
1370         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1371         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1372
1373 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1374
1375         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1376         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1377         * doc/tm.texi: Document them.
1378         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1379         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1380         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1381         (ASM_OUTPUT_FDESC): Likewise.
1382
1383 2002-06-13  Eric Christopher  <echristo@redhat.com>
1384
1385         * diagnostic.c (output_format): Fix thinko.
1386
1387 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1388
1389         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1390         (DWARF2_UNWIND_INFO): Define to 0.
1391
1392         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1393         optimization for PR_MEDIA_REG.
1394
1395 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1396
1397         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1398         * cpplib.c (end_directive): Don't skip, always remove overlay
1399         apart from #define.
1400         (prepare_directive_trad): Handle NULL pfile->directive.
1401         (_cpp_handle_directive): Always call prepare_directive_trad
1402         if traditional.
1403         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1404         generalize inputs.
1405         (scan_translation_unit_trad): Use it.
1406         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1407         output, get escaped newline in comment close correct.
1408         (check_output_buffer, skip_whitespace): Update.
1409         (_cpp_lex_identifier_trad): Remove.
1410         (scan_out_logical_line): Handle -C and comments in directives
1411         properly.
1412
1413 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1414
1415         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1416         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1417         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1418         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1419         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1420         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1421         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1422         (TARGET_SWITCHES): Use them.
1423         (TARGET_CPU_DEFAULT): Define if not already defined.
1424         (TARGET_DEFAULT): Use it.
1425         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1426         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1427         * config/sh/t-monolib: New file.
1428
1429 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1430
1431         * toplev.c (rest_of_compilation): Simplify (and correct) the
1432         logic of the first delete-null-pointer-checks pass.
1433
1434 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1435
1436         * i386.c (ix86_expand_movstr):  Fix pasto.
1437
1438 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1439
1440         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1441
1442 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1443
1444         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1445         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1446         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1447         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1448
1449 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1450
1451         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1452         fields.
1453
1454 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1455
1456         * diagnostic.c (output_format): Recognize "%H" as a format
1457         specifier for a location_t.
1458         (text_specifies_location): New function.
1459         (diagnostic_set_info): Use it.
1460
1461 2002-06-13  Jeffrey Law  <law@redhat.com>
1462
1463         * emit-rtl.c (static_regno_reg_rtx): Define.
1464         (init_emit_once): Initialize static_regno_reg_rtx.
1465         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1466         of building new hard reg objects once per function.
1467         (gen_rtx_REG): Try to share hard regs.
1468         * regclass.c (init_fake_stack_mems): New function broken out from
1469         init_regs.
1470         * rtl.h (init_fake_stack_mems): Declare.
1471         * toplev.c (lang_independent_init): Call init_regs before
1472         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1473
1474         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1475
1476         * alias.c (argument_registers): Remove.
1477         (init_alias_once): Initialize static_reg_base_value here.  Remove
1478         initialization of argument_registers.
1479         (init_alias_once_per_function): Remove.
1480         (init_alias_analysis): Copy all the entries from static_reg_base_value
1481         into new_reg_base_value all at once.
1482         * rtl.h (init_alias_once_per_function): Remove declaration.
1483         * function.c (prepare_function_start): Do not call
1484         init_alias_once_per_function.
1485
1486         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1487         starting a sequence and emitting an INSN.
1488
1489 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1490
1491         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1492
1493 2002-06-13  David S. Miller  <davem@redhat.com>
1494
1495         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1496
1497 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1498
1499         * cpplib.c (end_directive): Handle line skipping.  Only remove
1500         the rest of the line if the directive was valid.
1501         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1502         expanding a traditional macro.
1503         * cpptrad.c (recursive_macro): New.
1504         (read_logical_line_trad): Handle skipping.
1505         (scan_out_logical_line): Continue after a successful directive.
1506         Don't expand macros whilst skipping, or if recursing.
1507         (_cpp_create_trad_definition): scan_out_logical_line now sets
1508         the output current position.
1509
1510 2002-06-12  Eric Christopher  <echristo@redhat.com>
1511
1512         From Chris Demetriou  <cgd@broadcom.com>
1513         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1514         comment.
1515         (ISA_HAS_MADD_MSUB): Ditto.
1516         (ISA_HAS_NMADD_NMSUB): Ditto.
1517
1518 2002-06-12  Eric Christopher  <echristo@redhat.com>
1519
1520         * config.gcc: Consolidate little endian handling and
1521         little/big endian targets.
1522         * config/mips/elfl.h: Remove file.
1523         * config/mips/elfl64.h: Ditto.
1524         * config/mips/ecoffl.h: Ditto.
1525         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1526
1527 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1528
1529         * gengtype.h (xvasprintf): New prototype.
1530         (xasprintf): New prototype.
1531         (struct outf): New.
1532         (get_output_file): Return an outf_p.
1533         (header_file): Is now an outf_p.
1534         (base_files): Now are outf_p.
1535         (oprintf): New.
1536         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1537         rather than stdio operations.  Use xasprintf in a few places,
1538         when appropriate.
1539         (xvasprintf): New.
1540         (xasprintf): New.
1541         (struct filemap): Delete.
1542         (files): Delete.
1543         (output_files): New.
1544         (oprintf): New.
1545         (create_file): Create an outf_p.  Add parameter to indicate output
1546         file name, change all callers.
1547         (open_base_files): Create gtype-desc.c here.
1548         (get_output_file_with_visibility): Rewrite.
1549         (get_output_file_name): Just look at 'name' field in struct outf.
1550         (close_output_files): Rewrite.
1551
1552 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1553
1554         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1555         (MASK_G_FLOAT): Define.
1556         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1557         (TARGET_SWITCHES): Likewise.
1558         (TARGET_DEFAULT): Likewise.
1559
1560 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1561
1562         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1563         * config/mips/mips.c (mips_output_filename): Don't print a
1564         ".file" directive if we are using DWARF-2.
1565         (mips_output_function_prologue): Do not emit source file
1566         name for TARGET_GAS.
1567
1568 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1569
1570         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1571         decide whether emit the short opcode.
1572         * i386.h (x86_shift1): Declare.
1573         (TARGET_SHIFT1): New macro.
1574         * i386.c (x86_shift1): New global variable.
1575
1576         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1577         unconditionally; make loop to rebuild CFG; kill unnecesary
1578         find_basic_block calls; kill compute_bb_for_insn call.
1579         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1580         * haifa-sched.c (sched_init): Likewise.
1581         * ssa-ccp.c (ssa_const_prop): Likewise.
1582         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1583
1584 2002-06-11  David S. Miller  <davem@redhat.com>
1585
1586         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1587         active_insn_p.
1588
1589 2002-06-11  Richard Henderson  <rth@redhat.com>
1590
1591         * c-common.c (builtin_define_type_max): New.
1592         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1593         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1594
1595         From Joseph S. Myers:
1596         * glimits.h: Rewrite to expect the double underscore definitions
1597         from the compiler.
1598
1599         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1600         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1601         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1602         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1603         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1604         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1605         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1606         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1607
1608 2002-06-11  Richard Henderson  <rth@redhat.com>
1609
1610         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1611         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1612         (code_for_builtns): Update.
1613         (alpha_init_builtins): Add __builtin_thread_pointer and
1614         __builtin_set_thread_pointer.
1615         (alpha_expand_builtin): Handle void builtins.
1616         * doc/extend.texi (Alpha Built-in Functions): Update.
1617
1618 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1619
1620         PR target/6997
1621         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1622
1623 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1624
1625         * config.gcc: Make the name of the extra-modes file adjustable
1626         by target stanzas.
1627         (s390x, strongarm, xscale stanzas): Use this facility.
1628         * configure.in: Update to match.
1629         * configure: Regenerate.
1630
1631 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1632
1633         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1634         max/mins as unsigned GE compares.
1635
1636 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1637
1638         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1639         * config/vax/bsd.h: New file.
1640         * config/vax/netbsd.h: Add missing notice.
1641         (CPP_PREDEFINES): Remove.
1642         (TARGET_OS_CPP_BUILTINS): Define.
1643         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1644         * config/vax/openbsd.h: Update copyright years.
1645         (CPP_PREDEFINES): Remove.
1646         (TARGET_OS_CPP_BUILTINS): Define.
1647         * config/vax/ultrix.h: Likewise.
1648         * config/vax/vaxv.h: Likewise.
1649         * config/vax/vms.h: Likewise.
1650         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1651         (CPP_PREDEFINES, CPP_SPEC): Remove.
1652
1653 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1654
1655         * i386.md (addqi_1_slp, subqi_1_slp
1656         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1657         (addhi*, addqi*): Simplify "dec" condition.
1658         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1659         (and, or, xor to QImode splitters): New.
1660         (iorqi_ext*): New.
1661         (xorqi_ext_0): New.
1662         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1663         (andqi_ext_1_rex64): New.
1664         (ashrqi*_slp): New.
1665         (ashlqi*_slp): New.
1666         (lshlqi*_slp): New.
1667         (rotrqi3*_slp): New.
1668         (rotlqi3*_slp): New.
1669
1670 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1671
1672         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1673         softfloat.h.
1674         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1675         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1676         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1677         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1678         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1679         (CPP_DEFAULT_SPEC): Delete.
1680         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1681         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1682         (CPP_SYSV_DEFAULT_SPEC): Delete.
1683         (CPP_ENDIAN_BIG_SPEC): Delete.
1684         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1685         (CPP_ENDIAN_SPEC): Delete.
1686         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1687         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1688         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1689         cpp_longdouble_default.
1690         * config/rs6000/softfloat.h: Delete.
1691         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1692         (EXTRA_SPECS): Delete cpp_cpu.
1693         (TARGET_CPU_CPP_BUILTINS): New.
1694         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1695         prototype.
1696         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1697         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1698         (CPP_DEFAULT_SPEC): Delete.
1699         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1700         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1701         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1702         (CPP_DEFAULT_SPEC): Delete.
1703         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1704         (CPLUSPLUS_CPP_SPEC): Likewise.
1705         (CPP_CPU_SPEC): Delete.
1706         (CPP_DEFAULT_SPEC): Delete.
1707         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1708         (CPLUSPLUS_CPP_SPEC): Likewise.
1709         (CPP_CPU_SPEC): Delete.
1710         (CPP_DEFAULT_SPEC): Delete.
1711         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1712         (CPP_DEFAULT_SPEC): Delete.
1713         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1714         (CPP_DEFAULT_SPEC): Delete.
1715
1716         * doc/gty.texi: Small updates.
1717
1718 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1719
1720         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1721         diagnostic_count_error.
1722         (warn_with_method): Likewise.
1723
1724         * diagnostic.h (warnings_are_errors_message): New field of
1725         diagnostic_context.
1726         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1727         match semantics.
1728         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1729         (diagnostic_count_diagnostic): Make aware of other kinds of
1730         diagnostics.
1731         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1732
1733 2002-06-11  Tom Tromey  <tromey@redhat.com>
1734
1735         For PR java/6520:
1736         * fold-const.c (fold_convert): Don't modify existing tree's type.
1737
1738 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1739
1740         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1741
1742 2002-06-11  Richard Henderson  <rth@redhat.com>
1743
1744         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1745
1746 2002-06-11  Richard Henderson  <rth@redhat.com>
1747
1748         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1749         DWARF2_UNWIND_INFO is false.
1750
1751 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1752
1753         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1754
1755         * config/s390/s390.c (emit_prologue): gen_store_multiple
1756         returns an insn now, not a pattern.
1757
1758 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1759
1760         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1761         $(TEXI2DVI) -o.
1762
1763 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1764
1765         * i386.c (x86_promote_QImode): Set for Athlon
1766         (x86_fast_prefix): New global variable.
1767         (x86_arch_always_fancy_math_387): Fix formating.
1768         * i386.h (x86_fast_prefix): Declare
1769         (TARGET_FAST_PREFIX): define.
1770         * i386.md (and to strict_low_part, HI to SI
1771         promoting splitter): Use new macro.
1772
1773         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1774
1775 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1776
1777         * Makefile.in (distclean): Delete junk left in testsuite
1778         directory, too.
1779
1780 2002-06-11  Jeffrey Law <law@redhat.com>
1781
1782         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1783         last insn created by the splitter.
1784
1785         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1786         and RESTINSN into into the scope of the sequence.
1787
1788         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1789         RETURN insns.
1790
1791         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1792
1793         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1794         not the pattern.  So extract the pattern from the insn.
1795
1796         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1797
1798 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1799
1800         * config/s390/s390.md (movsi): Only use floating point
1801         register alternatives when operands are already fprs.
1802         (movdi_31, movdi_64): Likewise.
1803
1804 2002-06-11  David S. Miller  <davem@redhat.com>
1805
1806         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1807         Only run RTX equality checks on INSN_P rtl.
1808
1809 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1810
1811         * config/s390/s390.md (reload_base, ltorg): Remove.
1812         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1813         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1814         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1815         s390_asm_output_pool_prologue): Likewise.
1816         * s390.h (s390_pool_start_insn): Likewise.
1817
1818         * s390.c (s390_output_symbolic_const): Remove support for
1819         old-style pool chunks.
1820         (s390_function_epilogue): Likewise.
1821         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1822         alignment for 64-bit literal pools.
1823         (print_operand_address): Remove 'y' and 'Y' format flags.
1824         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1825         old-style pool chunks.
1826         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1827         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1828         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1829
1830         * s390.c (consttable_operand): New function.
1831         * s390-protos.h (consttable_operand): Declare it.
1832         * s390.h (PREDICATE_CODES): Add consttable_operand.
1833         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1834         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1835         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1836         * s390.c (struct constant, struct constant_pool): New data types.
1837         (constant_modes, gen_consttable): New variables.
1838         (s390_start_pool, s390_end_pool, s390_add_pool,
1839         s390_dump_pool, s390_free_pool): New functions.
1840         (s390_chunkify_pool): Completely reimplement literal pool
1841         overflow handling.
1842
1843         * s390.c (s390_pool_overflow): New variable.
1844         * s390.h (s390_pool_overflow): Declare it.
1845         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1846         jumps in literal pool overflow situations.
1847
1848         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1849         (s390_frame_info): Account for possible use of RETURN_REGNUM
1850         by new literal pool overflow code.
1851         (s390_emit_prologue): Likewise.
1852
1853 2002-06-05  David S. Miller  <davem@redhat.com>
1854
1855         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1856         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1857         emit_insns_before_scope, emit_insns_after,
1858         emit_insns_after_scope): Delete declaration.
1859         * ada/misc.c (insert_code_for): Use emit_insn* instead of
1860         emit_insns_foo.
1861         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1862         (alpha_set_memflags): Fix comment.
1863         (set_frame_related_p): Use get_insns instead of gen_sequence.
1864         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1865         emitting no insns.
1866         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1867         gen_sequence.
1868         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1869         * config/fr30/fr30.c (fr30_move_double): Likewise.
1870         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1871         Likewise.
1872         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1873         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1874         no insns.
1875         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1876         instead of gen_sequence.
1877         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1878         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1879         * config/sh/sh.c (sh_need_epilogue): Likewise.
1880         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1881         attributes.
1882         (setjmp pattern and split): Use them to avoid splitter which emits
1883         no RTL.
1884         * genattrtab.c (main): Emit include of function.h
1885         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1886         get_insns instead of gen_sequence.
1887         * config/cris/cris.c (cris_split_movdx): Likewise.
1888         * emit-rtl.c (emit_insns*): Kill.
1889         (try_split): Expect insn list instead of SEQUENCE.
1890         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1891         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1892         Make them abort if a SEQUENCE is given and RTL checking is
1893         enabled.
1894         (emit_*_scope): Don't forget to set scope on final insn.
1895         (gen_sequence): Move from here...
1896         * ssa.c (gen_sequence): To here as private function.
1897         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1898         comments.
1899         (expand_builtin_return, expand_builtin_mathfn): Likewise.
1900         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1901         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1902         (expand_builtin_expect_jump): Use get_insns and fix comments.
1903         * calls.c (try_to_integrate): Use emit_insn_foo.
1904         (expand_call, emit_library_call_value_1): Likewise.
1905         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1906         (emit_move_insn_1): Use get_insns instead of gen_sequence.
1907         (expand_expr): Use emit_insn_foo.
1908         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1909         * except.c (build_post_landing_pads): Likewise.
1910         * flow.c (attempt_auto_inc): Likewise.
1911         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1912         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1913         * function.c (fixup_var_refs_insn): Use get_insns instead of
1914         gen_sequence.
1915         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1916         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1917         (fixup_stack_1, purge_addressof_1, expand_main_function,
1918         get_arg_pointer_save_area): Likewise.
1919         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1920         expand_function_end): Use emit_insn_foo.
1921         (record_insns, keep_stack_depressed): Work with insn list instead
1922         of SEQUENCE, fix comments.
1923         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1924         noce_try_store_flag_constants, noce_try_store_flag_inc,
1925         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1926         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1927         (noce_process_if_block): Use get_insns instead of gen_sequence.
1928         * optabs.c (add_equal_note): Work with insn list, fix comments.
1929         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1930         (expand_unop, expand_complex_abs, expand_unop_insn,
1931         expand_no_conflict_block): Likewise.
1932         (gen_move_insn): Use get_insns instead of gen_sequence.
1933         (gen_cond_trap): Likewise.
1934         * integrate.c (copy_rtx_and_substitute): Likewise.
1935         (emit_initial_value_sets): Use emit_insn_foo.
1936         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1937         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1938         now that RTL generators give insn lists.
1939         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1940         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1941         instead of gen_sequence.
1942         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1943         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1944         instead of gen_sequence.
1945         * loop.c (move_movables, emit_prefetch_instructions,
1946         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1947         Likewise.
1948         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1949         (product_cheap_p): Likewise, and add commentary about RTL wastage
1950         here.
1951         * lcm.c (optimize_mode_switching): Use get_insns instead of
1952         gen_sequence.
1953         * profile.c (gen_edge_profiler): Likewise.
1954         * regmove.c (copy_src_to_dest): Likewise.
1955         * reg-stack.c (compensate_edge): Likewise and fix comment.
1956         * gcse.c (process_insert_insn): Likewise.
1957         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1958         * jump.c (delete_prior_computation): Update comment.
1959         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1960         of gen_sequence, update comments to match.
1961         * recog.c (peephole2_optimize): Work with insn lists instead of
1962         SEQUENCE rtl.
1963         * sched-vis.c (print_pattern): Abort on SEQUENCE.
1964         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1965         Use get_insns instead of gen_sequence.
1966         (copy_loop_body): Likewise and don't emit dummy NOTE.
1967         * genrecog.c: Don't mention SEQUENCE rtl in comments.
1968         * combine.c (try_combine): Expect insn lists from split generator.
1969         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1970         hand.
1971
1972 2002-06-11  Roger Sayle  <roger@eyesopen.com>
1973             Andreas Jaeger <aj@suse.de>
1974
1975         * cfgbuild.c: Update copyright years.
1976
1977 2002-06-11  Andreas Schwab  <schwab@suse.de>
1978
1979         * config/m68k/m68k.h (PREDICATE_CODES): Define.
1980
1981 2002-06-11  Eric Christopher  <echristo@redhat.com>
1982
1983         * doc/tm.texi (Run-time Target): Add comment about flag_iso
1984         and strict ANSI.
1985         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1986         * config/mips/ecoffl.h: Ditto.
1987         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1988         (CPP_PREDEFINES): Ditto.
1989         * config/mips/elfl64.h: Ditto.
1990         * config/mips/elfl.h: Ditto.
1991         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1992         out until irix header consolidation.
1993         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1994         with SUBTARGET_OS_CPP_BUILTINS.
1995         * config/mips/iris6.h: Ditto.
1996         (CPLUSPLUS_CPP_SPEC): Remove.
1997         * config/mips/linux.h: Ditto.
1998         * config/mips/netbsd.h: Ditto.
1999         * config/mips/openbsd.h: Ditto.
2000         * config/mips/rtems.h: Ditto.
2001         * config/mips/rtems64.h: Ditto.
2002         * config/mips/sni-svr4.h: Ditto.
2003         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
2004         ISA_MIPS32, ISA_MIPS64): New defines.
2005         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
2006         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
2007         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2008         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
2009         (TARGET_CPU_CPP_BUILTINS): Define.
2010         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
2011         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
2012         (movdicc): Remove check for ISA_MIPS32.
2013          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
2014         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
2015         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
2016         sunge_sf, sunle_df, sunle_sf): New patterns.
2017
2018 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2019
2020         * Makefile.in: Update cppmain.o.
2021         * cpphash.h (struct cpp_reader): Move some members to a
2022         nested structure.
2023         (trad_line): Rename saved_line.
2024         (_cpp_read_logical_line_trad): Update.
2025         (_cpp_remove_overlay): New.
2026         * cppinit.c (cpp_create_reader): No need to set saved_line.
2027         (cpp_destroy): Update.
2028         (cpp_read_main_file): Only overlay if compiling.
2029         * cpplex.c (continue_after_nul): Return false if in directive.
2030         * cpplib.c (EXPAND): New.
2031         (directive_table, SEEN_EOL): Update.
2032         (end_directive): Remove overlay if traditional; don't skip
2033         line in traditional #define.
2034         (prepare_directive_trad): New.
2035         (_cpp_handle_directive, run_directive): Update for traditional
2036         directives.
2037         (lex_macro_node): Simplify, don't use lex_identifier_trad.
2038         * cpplib.h (struct options): Add preprocess_only.
2039         * cppmain.c: Don't include intl.h.
2040         (cpp_preprocess_file): Set options->preprocess_only.
2041         (scan_translation_unit_trad): Fix, and print line numbers.
2042         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
2043         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
2044         save_replacement_text, _cpp_create_trad_definition): Update for
2045         variable renaming.
2046         (_cpp_overlay_buffer): Save line number.
2047         (_cpp_remove_overlay): Rename from restore_buff, restore line.
2048         (_cpp_read_logical_line_trad): Don't handle overlays here.
2049         (scan_out_logical_line): Process directives.
2050
2051 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
2052
2053         * gthr-win32.h: Wrap functions in extern "C".
2054         (__gthread_key_t): Typedef as unsigned long,
2055         not win32 DWORD.
2056         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
2057         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
2058         (__gthr_win32_once, __gthr_win32_key_create,
2059         __gthr_win32_key_delete, __gthr_win32_getspecific,
2060         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2061         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2062         __gthr_win32_mutex_unlock): Declare.
2063         (__gthread_once,__gthread_key_create,
2064         __gthread_key_delete, __gthread_getspecific,
2065         __gthread_setspecific, __gthread_mutex_init_function,
2066         __gthread_mutex_lock,__gthread_mutex_trylock,
2067         __gthread_mutex_unlock): Call corresponding
2068         __gthr_win32_* extern implementations if #defined
2069         __GTHREAD_HIDE_WIN32API.
2070         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
2071         $(srcdir)/config/i386/gthr-win32.c
2072         * config/i386/gthr-win32.c: New implementation file.
2073         (__gthr_win32_once, __gthr_win32_key_create,
2074         __gthr_win32_key_delete, __gthr_win32_getspecific,
2075         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2076         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2077         __gthr_win32_mutex_unlock): New functions, based on
2078         static inlines in gthr-win32.h.
2079
2080 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
2081
2082         * config/xtensa/xtensa.c (override_options): Don't warn about
2083         using -fpic or -fPIC when PIC is enabled by default.
2084
2085 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2086
2087         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
2088
2089 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2090
2091         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
2092         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
2093         exists, substitute its pathname as @extra_modes_file@, define
2094         EXTRA_MODES_FILE to be an appropriate string to #include it
2095         with, and define EXTRA_CC_MODES to 1.
2096
2097         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
2098         it's defined.  Get rid of redundancy in calling sequence for
2099         CC; don't use it to define CCmode, to avoid a warning.
2100         * libgcc2.c: Include symcat.h for the sake of machmode.def.
2101
2102         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
2103         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
2104         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
2105         New files.
2106         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
2107         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
2108
2109         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
2110         defining extra CC modes.
2111
2112 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2113             Andreas Jaeger <aj@suse.de>
2114
2115         * cfgrtl.c (create_basic_block_structure):  Remove index argument
2116         and use last_basic_block++ instead.  (create_basic_block): Update.
2117         * cfgbuild.c (find_basic_blocks_1): Likewise.
2118
2119         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2120         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2121         * sched-ebb.c (schedule_ebbs): Likewise.
2122         * sched-rgn.c (schedule_insns): Likewise.
2123         * ssa-ccp.c (ssa_const_prop): Likewise.
2124         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2125         * toplev.c (rest_of_compilation): Likewise.
2126         * config/ia64/ia64.c (ia64_reorg): Likewise.
2127
2128 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2129
2130         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2131         of matching registers.
2132
2133 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2134
2135         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2136         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2137
2138 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
2139
2140         * config/mmix/mmix.h: Improve comments.
2141         (CPP_SPEC, CPP_PREDEFINES): Don't define.
2142         (TARGET_CPU_CPP_BUILTINS): Define.
2143         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2144         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2145         unused predicate.
2146         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2147         compiler warning.
2148         (mmix_constant_address_p): Remove another
2149         redundant test before case.
2150         (mmix_canonicalize_comparison): Remove unused function.
2151         (mmix_print_operand_address): Don't test and adjust for operand in
2152         non-canonical format.
2153         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2154         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2155
2156 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2157
2158         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2159         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2160         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2161         (gen_compare): Use CCmode unconditionally.
2162
2163 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2164
2165         PR optimization/6759
2166         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2167         the REQ_EQUAL note.
2168
2169 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2170
2171         PR c/6660
2172         * c-decl.c (grokfield): Allow user defined types if they declare
2173         structs or unions for unnamed fields.
2174
2175 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2176
2177         PR c/6809
2178         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2179
2180 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2181
2182         PR optimization/6842
2183         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2184         operand subreg cannot be simplified.
2185
2186 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2187
2188         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2189         (compare_constant): Likewise.
2190         (output_addressed_constants): Likewise.
2191
2192 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2193
2194         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2195         merge bb with itself.
2196
2197 2002-06-10  Richard Henderson  <rth@redhat.com>
2198
2199         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2200         (builtin_zapnot): Likewise.
2201
2202         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2203         reservation.
2204
2205 2002-06-10  Eric Christopher  <echristo@redhat.com>
2206
2207         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2208         prototype and function.
2209         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2210         (call_insn_operand): Remove half pic references.
2211         (legitimate_address_p): Ditto.
2212         * config/i386/i386.h: Remove half pic defines.
2213
2214 2002-06-10  Eric Christopher  <echristo@redhat.com>
2215
2216         * doc/extend.texi (Return Address): Add note explaining the side-
2217         effects of inlining on __builtin_return_address.
2218
2219 2002-06-10  Tom Tromey  <tromey@redhat.com>
2220
2221         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2222         (c-common.o): Depend on langhooks.h.
2223
2224 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2225
2226         * cpphash.h (_cpp_read_logical_line_trad,
2227         _cpp_expansions_different_trad): Update prototypes.
2228         * cpplex.c (continue_after_nul): New.
2229         * cppmain.c: Include cpphash.h.
2230         (scan_translation_unit_trad): New.
2231         (cpp_preprocess_file): Call it.
2232         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2233         overlay.
2234         (_cpp_expansions_different_trad): Update prototype.
2235
2236 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
2237
2238         Fix cfi generation for SH[1-4]:
2239
2240         * sh.c (frame_insn): New function.
2241         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
2242         (push): Now returns rtx.  Use frame_insn.
2243         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2244         of a DF register.
2245         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2246
2247 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2248
2249         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2250         and gtype-desc.c.
2251         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2252         (distclean): ... not here.  But do delete all testsuite/*.log,
2253         testsuite/*.sum files here.  Delete mkheaders.  Delete
2254         po/*.gmo and the testsuite directory in a split tree build.
2255
2256 2002-06-10  Jeffrey Law  <law@redhat.com>
2257
2258         * alias.c (static_reg_base_value): New to hold RTL for
2259         items allocated once per function for the aliasing code.
2260         (init_alias_once_per_function): Initialize static_reg_base_value.
2261         (init_alias_analysis): Avoid throw-away allocations of RTL by
2262         using pre-computed values in static_reg_base_value.
2263         * function.c (prepare_function_start): Call
2264         init_alias_once_per_function appropriately.
2265         * rtl.h (init_alias_once_per_function): Declare.
2266         * caller-save (init_caller_save): Restructure slightly to
2267         avoid lots of silly RTL generation.
2268         * expr.c (init_expr_once): Likewise.
2269         * reload1.c (reload_cse_regs_1): Allocate throw-away register
2270         RTL object here.  Pass it into children.
2271         (reload_cse_simplify_operands): Use passed-in register RTL
2272         object.
2273         (reload_cse_simplify): Pass through throw-away register
2274         RTL object.
2275
2276 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
2277
2278         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2279
2280 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2281
2282         * gcc.c (process_command): Avoid assignment to read-only location.
2283         Fix sizeof calculation.
2284
2285 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2286
2287         * cpphash.h (struct cpp_macro): Put comments on their own lines.
2288         (_cpp_expansions_different_trad): New.
2289         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2290         * cpptrad.c (canonicalize_text): New.
2291         (scan_out_logical_line): Handle no arguments correctly.
2292         (save_replacement_text): Commit memory when finished.
2293         (_cpp_expansions_different_trad): New.
2294
2295 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2296
2297         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2298         TREELANG and COBOL.
2299         (lang_names): Add treelang and cobol.
2300         (get_file_basename): Add code to support treelang and cobol as
2301         4th and 5th users of c-common.c.
2302
2303 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2304
2305         * Makefile.in (install-driver): Install driver as
2306         $(target_alias)-gcc-$(version).
2307         * gcc.c (spec_version): Make const.
2308         (process_command): Handle -V and -b by using exec.
2309         * doc/invoke.texi (Target Options): Restore -V option,
2310         update docs for -b option.
2311
2312 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2313
2314         * configure.in (remaining_languages_check):
2315         Added check that all languages specified were found.
2316         Exit if not found. Previous behaviour was silent failure.
2317         * configure: Regenerated.
2318
2319 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2320
2321          First steps to making treelang documentation compliant, based on
2322          instructions in sourcebuild.texi. Also add to gcc.c list of
2323          default languages.
2324
2325         * doc/contrib.texi: Add self as contributor of treelang.
2326
2327         * doc/frontends.texi: Add mention of treelang.
2328
2329         * doc/invoke.texi (Overall Options): Add mention of treelang.
2330
2331         * doc/standards.texi:  Add mention of treelang.
2332
2333 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2334
2335         * config/cris/cris.c: Include ggc.h
2336
2337 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2338
2339         * cpphash.h (_cpp_push_text_context): Update.
2340         (_cpp_arguments_ok): New.
2341         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2342         (collect_args): ...here.
2343         (_cpp_push_text_context): Change inputs.
2344         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2345         replace_args_and_push): New.
2346         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2347         Don't use IS macros directly.
2348         (scan_out_logical_line): Handle function-like macro argument
2349         collection.
2350         (push_replacement_text): Update.
2351         (replacement_length): Remove.
2352         (_cpp_create_trad_definition): Don't skip whitespace before
2353         checking for '('.
2354
2355 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2356
2357         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2358         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2359         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2360         * config/avr/avr.md ("type" and "length" attributes): New type
2361         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2362         output a single "call" or "rcall" insn depending on device size.
2363         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2364
2365 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2366
2367         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2368         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2369         assembler option.
2370         (CPP_CPU_SPEC): Add power3 and power4.
2371         (PROCESSOR_DEFAULT): Change to 604e.
2372         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2373         (CPP_CPU_SPEC): Similar additions.
2374         (enum process_type): Add POWER4.
2375         (RTX_COSTS): Add POWER4.
2376         (CPP_CPU_SPEC): Similar additions.
2377         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2378         (PROCESSOR_DEFAULT64): Define.
2379         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2380         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2381         branch adjustment.
2382         (rs6000_issue_rate): Add Power4.
2383         * config/rs6000/rs6000.md (cpu attr): Add power4.
2384         (iu compare): Remove 604, 604e, 620, 630.
2385         Add basic Power4 scheduling information.
2386         (mfcr/mtcrf): Change type attribute to cr_logical.
2387
2388 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2389
2390         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2391         ATTRIBUTE_PRINTF_2.
2392         * gengtype-lex.l: Fix format specifier warning.
2393
2394         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2395         not isspace.
2396         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2397         lieu of isspace/IDchar.
2398         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2399         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2400         ISSPACE.
2401
2402 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2403
2404         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2405         * cpphash.h (cpp_reader): Take out print_version member.
2406         * cppinit.c: (cpp_handle_option): Don't do anything with
2407         -version.  Just set help_only for --version, --target-help.
2408         Just set verbose option for -v.
2409         (cpp_post_options): Don't print a version string.
2410
2411 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2412
2413         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2414         (avr_section_type_flags): New, handle .noinit* sections.
2415
2416 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2417
2418         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2419         and include netbsd_entry_point.
2420         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2421         (NETBSD_ENTRY_POINT): Define.
2422
2423 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2424
2425         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2426         if not already defined.
2427         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2428
2429 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2430
2431         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2432         in a noreturn function.
2433         (avr_output_function_prologue, avr_output_function_epilogue):
2434         Correct function size calculation.  Do not crash on empty function.
2435         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2436
2437 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2438
2439         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2440         netbsd_link_spec and netbsd_entry_point.
2441         (LINK_SPEC): Use %(netbsd_link_spec).
2442         (NETBSD_ENTRY_POINT): Define.
2443
2444 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2445
2446         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2447         linker emulation.
2448         (LINK_ARCH64_SPEC): Likewise.
2449         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2450         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2451
2452 2002-06-08  Marc Espie  <espie@openbsd.org>
2453
2454         * lists.c (free_list):  Fix typo in comment.
2455
2456 2002-06-08  Andreas Jaeger  <aj@suse.de>
2457
2458         * lcm.c (optimize_mode_switching): Add unused attribute for
2459         variable.
2460
2461         * sched-deps.c (sched_analyze): Remove unused variable.
2462
2463 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2464
2465         * diagnostic.def: Don't capitalize diagnostict descriptors.
2466
2467 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2468
2469         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2470         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2471         (NETBSD_ENTRY_POINT): Define.
2472
2473 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2474
2475         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2476         NETBSD_LINK_SPEC_ELF.
2477         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2478         (NETBSD_ENTRY_POINT): Define.
2479         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2480         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2481         netbsd_entry_point.
2482         (NETBSD_ENTRY_POINT): Define.
2483
2484 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2485
2486         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2487         netbsd_link_spec and netbsd_entry_point.
2488         (LINK_SPEC): Use %(netbsd_link_spec).
2489         (NETBSD_ENTRY_POINT): Define.
2490
2491 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2492
2493         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2494         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2495         to specify program entry point.
2496
2497 2002-06-07  Jeff Law <law@redhat.com
2498
2499         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2500         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2501         than creating a new register.
2502         (distribute_notes): Likewise.
2503         * df.c (df_reg_use_gen): Likewise.
2504         (df_reg_clobber_gen): Likewise.
2505         (df_ref_record): Likewise.
2506         * expr.c (use_regs): Likewise.
2507         * flow.c (propagate_one_insn): Likewise.
2508         (mark_set_1): Likewise.
2509         (mark_used_reg): Likewise.
2510         * reload.c (emit_reload_insns): Likewise.
2511
2512 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2513
2514         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2515         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2516         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2517         comparison code comp can be reversed.
2518
2519 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2520
2521         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2522         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2523         equivalent x > -1.0 when -ffast-math.
2524
2525 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2526
2527         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2528         * config/mips/t-netbsd: New file.
2529
2530 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2531
2532         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2533         options their own entries.
2534         (parse_option): Clarify comment.
2535         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2536         special case.  Replace if/strcmp chain for -W options with
2537         use of new OPT_* entries for them.
2538         (cpp_handle_options): Update to match.
2539         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2540         * c-decl.c: Update call to cpp_handle_option.
2541
2542 2002-06-07  Akim Demaille  <akim@epita.fr>
2543
2544         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2545         Whitespace changes.
2546
2547 2002-06-07  Jeffrey Law  <law@redhat.com>
2548
2549         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2550         on empty lists.
2551
2552 2002-06-07  H.J. Lu  (hjl@gnu.org)
2553
2554         * configure.in: Add --enable-__cxa_atexit.
2555         * configure: Regenerated.
2556         * config.in: Likewise.
2557
2558         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2559         not defined.
2560
2561 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2562
2563         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2564
2565 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2566
2567         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2568
2569 2002-06-07  Jason Merrill  <jason@redhat.com>
2570
2571         * cppexp.c (num_equality_op): Use a temporary variable to work
2572         around gcc 3.0.4 bug.
2573
2574 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2575
2576         * diagnostic.c (diagnostic_build_prefix): Tidy.
2577
2578 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2579
2580         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2581         scan_parameters, save_replacement_text, replacement_length): New.
2582         (scan_out_logical_line): Take a macro and save parameters if
2583         non-NULL.
2584         (_cpp_logical_line_trad): Update.
2585         (_cpp_create_trad_definition): Update to handle function-like
2586         macros.
2587         * cpplex.c (new_buff): Update.
2588         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2589         * cpphash.h: ...here.
2590         (CPP_ALIGN2, _cpp_save_parameter): New.
2591         * cppmacro.c (save_parameter): Rename, export.
2592         (parse_params): Update.
2593
2594 2002-06-07  Andreas Jaeger  <aj@suse.de>
2595
2596         * config/mmix/mmix.c: Remove extra broken prototype for
2597         mmix_init_machine_status.
2598
2599 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2600
2601         * gengtype.c: Add comments before all the routines.
2602
2603 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2604
2605         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2606         from and add t-sh64 to ${tmake_file}.
2607         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2608         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2609         * config/sh/t-netbsd-sh5-32: Remove.
2610         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2611         MULTILIB_ENDIAN.
2612         (MULTILIB_DIRNAMES): Define.
2613
2614 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2615
2616         * i386.md (and promoting splitters): Disable QI to SImode promoting
2617         when doing so changes immediate to be 32bit.
2618
2619         * rtl.h (emit_*_scope): Declare.
2620         * emit-rtl.c (emit_*_scope): New global functions.
2621         (try_split): Copy scope.
2622         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2623         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2624         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2625         noce_process_if_block, find_cond_trap): Copy scopes.
2626         * recog.c (peephole2_optimize): likewise.
2627
2628 2002-06-06  Jeffrey Law  <law@redhat.com>
2629
2630         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2631
2632 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2633
2634         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2635
2636 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2637
2638         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2639         ($(docdir)/gccinstall.info): New target.
2640         (info): Depend on it.
2641         (gccinstall.dvi): New target.
2642         (dvi): Depend on it.
2643         * doc/.cvsignore: Ignore new info files.
2644         * doc/install.texi (@setfilename): Reflect new info filename.
2645
2646 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2647
2648         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2649         on an UNSPEC.
2650
2651 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2652
2653         PR objc/6834
2654         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2655         c_common_get_alias_set.
2656         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2657
2658 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2659
2660         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2661         functions.
2662         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2663         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2664         function size.
2665         * pa/pa.c (pa_output_function_prologue): Likewise.
2666
2667 2002-06-05  David S. Miller  <davem@redhat.com>
2668
2669         * integrate.c (subst_constants): Handle 'B' RTL format.
2670
2671 2002-06-05  Eric Christopher  <echristo@redhat.com>
2672
2673         * varasm.c (make_decl_rtl): Fix comment for removed
2674         halfpic.c.
2675
2676 2002-06-05  Eric Christopher  <echristo@redhat.com>
2677
2678         * Makefile.in: Remove missed halfpic bits.
2679
2680 2002-06-05  Eric Christopher  <echristo@redhat.com>
2681
2682         * toplev.c: Remove half-pic.
2683         * config/mips/mips.c: Ditto.
2684         * config/mips/mips.h: Ditto. Remove unused defines.
2685         * config/mips/openbsd.h: Update comment to reflect above.
2686         * config/mips/mips.md: Remove half-pic constraints.
2687         * halfpic.h: Delete.
2688         * halfpic.c: Ditto.
2689
2690 2002-06-05  Jeffrey Law  <law@redhat.com>
2691
2692         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2693         rejects (mem (lo_sum (reg) (unspec))), but will allow
2694         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2695
2696 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2697
2698         * cpphash.h (_cpp_create_definition): Update prototype.
2699         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2700         ( cpp_lex_identifier_trad): New.
2701         (_cpp_set_trad_context): New.
2702         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2703         * cpplib.c (SEEN_EOL): Update.
2704         (lex_macro_node): Update for -traditional.
2705         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2706         * cppmacro.c (_cpp_create_definition): Split into
2707         create_iso_definition() and _cpp_create_trad_definition().
2708         (warn_of_redefinition): Update prototype; handle traditional
2709         macros.
2710         (_cpp_push_text_context): New.
2711         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2712         (lex_identifier): Call ht_lookup with correct start.
2713         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2714         _cpp_set_trad_context): New.
2715         (scan_out_logical_line): Update to handle changing contexts.
2716
2717 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2718
2719         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2720         (shl*-*-elf*): Add.
2721         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2722         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2723         * t-sh (MULTILIB_ENDIAN): Set.
2724         (MULTILIB_OPTIONS): Use it.
2725         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2726         (MULTILIB_DIRNAMES): Likewise.
2727
2728 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2729
2730         * toplev.h (report_error_function): Remove.
2731
2732         * diagnostic.h (location_t): New datatype.
2733         (text_info): Likewise.
2734         (diagnostic_info): Likewise.
2735         (output_prefix): New macro.
2736         (diagnostic_last_function_changed): Likewise.
2737         (diagnostic_set_last_function): Likewise.
2738         (diagnostic_last_module_changed): Likewise.
2739         (diagnostic_set_last_module): Likewise.
2740         (report_diagnostic): Now macro.
2741         (diagnostic_set_info): Declare.
2742
2743         * diagnostic.c (report_problematic_module): Rename to
2744         diagnostic_repor_current_module.
2745         (set_diagnostic_context): Remove.
2746         (count_error): Rename to diagnostic_error_count.
2747         (error_function_changed): Remove.
2748         (record_last_error_function): Likewise.
2749         (error_module_changed): Likewise.
2750         (record_last_error_module): Likewise.
2751         (context_as_prefix): Rename to diagnostic_build_prefix.
2752         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2753         (diagnostic_set_info): New function.
2754
2755         * objc/objc-act.c: #include diagnostic.h
2756         (error_with_ivar): Adjust call to count_error.
2757         (warn_with_method): Likewise.
2758         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2759
2760 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2761
2762         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2763         lang_hooks.types.make_type instead of make_node; set up
2764         __va_list_tag type decl.
2765         (xtensa_builtin_saveregs): Remove broken use of
2766         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2767         for saved registers; add varargs alias set.
2768
2769 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2770
2771 config:
2772         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2773         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2774         CPP_PREDEFINES and part of CPP_SPEC.
2775         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2776         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2777
2778 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2779
2780         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2781
2782 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2783
2784         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2785
2786 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2787
2788         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2789
2790 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2791
2792         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2793         typo in function prototype and include "ggc.h" header.
2794
2795 2002-06-04  Richard Henderson  <rth@redhat.com>
2796
2797         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2798         (print_operand) ['U']: Likewise.
2799         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2800         (alpha_expand_unaligned_store_words): Likewise.
2801         (alpha_expand_builtin_vector_binop): Fix typo.
2802         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2803         umulh, and cix insns.
2804         (one_arg_builtins): Add cix builtins.
2805         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2806         (alpha_expand_builtin): Fix typo in arity.
2807         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2808         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2809         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2810         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2811         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2812         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2813         builtin_ctlz, builtin_ctpop): New.
2814         * doc/extend.texi (Alpha Built-in Functions): Update.
2815
2816 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
2817
2818         * gengtype.c (write_gc_root): Don't unnecessarily prevent
2819         global variable-length arrays being roots.
2820
2821         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2822         * configure.in (config_gtfiles): New variable.
2823         (all_gtfiles): Initialise from config_gtfiles.
2824         * configure: Regenerate.
2825
2826 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2827
2828 config/i386:
2829         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2830         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2831         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2832         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2833         win32.h (CPP_SPEC): Remove cpp_cpu.
2834         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2835         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2836
2837 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
2838
2839         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2840
2841 2002-06-04  Jeff Law <law@redhat.com.
2842             David Edelsohn <edelsohn@gnu.org>
2843             Michael Matz <matz@kde.org>
2844
2845         * sched-int.h (struct deps): New field libcall_block_tail_insn.
2846         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2847         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2848         is set, then mark the current insn as being part of a libcall
2849         scheduling group.
2850         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2851
2852         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2853         insns against the issue rate.
2854
2855 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
2856
2857         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2858         * final.c (final_scan_insn): Likewise.
2859         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2860         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2861         * haifa-sched.c (unlink_other_notes): Likeewise.
2862         (reemit_notes): Likewise.
2863         * print-rtl.c (print_rtx): Likewise.
2864         * sched-deps (sched-analyze): Likewise.
2865         * rtl.c (note_insn_name): Likewise.
2866         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2867         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2868         (RANGE_*): Kill.
2869
2870 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2871
2872         * varasm.c (mark_constants): Handle RTX format 'B'.
2873
2874 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2875
2876         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2877         (struct cpp_context): Add traditional fields.
2878         * cppmacro.c (paste_all_tokens, push_ptoken_context,
2879         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2880         * cpptrad.c (skip_comment, lex_identifier,
2881         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2882
2883 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
2884
2885         * gbl-ctors.h: Fix formatting.
2886         * gcc.c: Likewise.
2887         * gccspec.c: Likewise.
2888         * gcov.c: Likewise.
2889         * gcov-io.h: Likewise.
2890         * gcse.c: Likewise.
2891         * ggc-common.c: Likewise.
2892         * ggc.h: Likewise.
2893         * ggc-page.c: Likewise.
2894         * ggc-simple.c: Likewise.
2895         * global.c: Likewise.
2896         * graph.h: Likewise.
2897         * gthr-dce.h: Likewise.
2898         * gthr.h: Likewise.
2899         * gthr-posix.h: Likewise.
2900         * gthr-rtems.h: Likewise.
2901         * gthr-solaris.h: Likewise.
2902         * gthr-win32.h: Likewise.
2903
2904 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
2905
2906         Merge from pch-branch:
2907
2908         * gengtype.h (UNION_OR_STRUCT_P): New macro.
2909         * gengtype.c (write_gc_structure_fields): Use it.
2910         (write_gc_root): Use it here too.
2911
2912         * gengtype.c (write_gc_structure_fields): Assume that lengths
2913         of typenames fit into an 'int'; don't pass a size_t to "%d" in
2914         printf.
2915         (write_gc_marker_routine_for_structure): Likewise.
2916         (write_gc_types): Likewise.
2917         (write_gc_root): Likewise.
2918
2919         * varray.h (VARRAY_CLEAR): New.
2920         (varray_clear): Prototype.
2921         * varray.c (varray_clear): New.
2922         * cselib.c (reg_values_old): New.
2923         (used_regs_old): New.
2924         (cselib_init): Use cached varrays if available to avoid
2925         generating large amounts of garbage.
2926         (cselib_finish): Don't throw away old varrays.
2927
2928         * final.c (insn_addresses_): Move out of ifdef.
2929
2930         * varray.c (uses_ggc): Make more varray kinds GCable.
2931         * varray.h (union varray_data_tag): Let gengtype see
2932         fields 'generic' and 'te'.
2933         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2934         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2935         (reg_to_stack): Don't call VARRAY_FREE.
2936         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2937         (insn_addresses_): Use gengtype to mark.
2938         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2939         pointers; handle generic pointers in unused union fields.
2940         (get_output_file_with_visibility): Include cselib.h,
2941         insn-addr.h in gtype-desc.c.
2942         * function.c (prologue): Use gengtype to mark.
2943         (epilogue): Likewise.
2944         (sibcall_epilogue): Likewise.
2945         * dependence.c: Include gt-dependence.h, ggc.h.
2946         (struct def_use): Use gengtype to mark.
2947         (struct loop): Likewise.
2948         (struct induction): Likewise.
2949         (struct dependence): Likewise.
2950         (def_use_chain): Likewise.
2951         (dep_chain): Likewise.
2952         (loop_chain): Likewise.
2953         (induction_chain): Likewise.
2954         (init_dependence_analysis): Don't free anything, just clear pointers.
2955         (build_def_use): Use GGC to allocate def_use.
2956         (add_loop): Use GGC to allocate loop.
2957         (find_induction_variable): Use GGC to allocate induction.
2958         (check_node_dependence): Use GGC to allocate induction, dependence.
2959         (dump_node_dependence): Don't free varrays.
2960         (end_dependence_analysis): Likewise.
2961         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2962         (struct elt_loc_list): Likewise.
2963         (struct elt_list): Likewise.
2964         * cselib.c: Don't include obstack.h.
2965         (hash_table): Use gengtype to mark.
2966         (reg_values): Use gengtype to mark.
2967         (used_regs): Use gengtype to mark.
2968         (cselib_obstack): Delete.
2969         (cselib_startobj): Delete.
2970         (empty_vals): Mark as deletable.
2971         (empty_elt_lists): Mark as deletable.
2972         (empty_elt_loc_lists): Mark as deletable.
2973         (new_elt_list): Use GGC to allocate struct elt_list.
2974         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2975         (clear_table): Don't delete obstack; don't unnecessarily clear
2976         deletable variables.
2977         (new_cselib_val): Use GGC to allocate struct cselib_val.
2978         (cselib_init): Don't set up obstacks.  Use GGC to allocate
2979         hash table.
2980         (cselib_finish): Just clear variables, don't free anything.
2981         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2982         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2983         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2984         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2985         (gt-reg-stack.h): New rule.
2986         (gt-dependence.h): New rule.
2987         (gtype-desc.o): Add cselib.h, insn-addr.h.
2988
2989         * varray.c: Use only necessary headers.
2990         (element_size): New.
2991         (uses_ggc): New.
2992         (varray_init): Take type, not size.  Use GGC if appropriate.
2993         (varray_grow): Update for change to struct varray_head_tag.
2994         Use GGC if appropriate.
2995         * varray.h (struct const_equiv_data): Use gengtype.
2996         (enum varray_data_enum): New.
2997         (union varray_data_tag): Use gengtype.
2998         (struct varray_head_tag): Use gengtype.  Replace size field with
2999         enum varray_data_enum.
3000         (varray_init): Update prototype.
3001         (VARRAY_SCHED_INIT): Delete.
3002         (VARRAY_*_INIT): Update for change to varray_init.
3003         (VARRAY_SCHED): Delete.
3004         (VARRAY_PUSH_SCHED): Delete.
3005         (VARRAY_TOP_SCHED): Delete.
3006         * tree.h: Update for change to length specifier.
3007         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
3008         (clone_body): Likewise.
3009         * ssa.h (ssa_definition): Use gengtype to mark.
3010         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
3011         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
3012         * rtl.h (struct rtvec_def): Update for change to length specifier.
3013         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
3014         (struct initial_value_struct): Update for change to length specifier.
3015         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
3016         (ggc_add_tree_varray_root): Delete prototype.
3017         (ggc_mark_rtx_varray): Delete prototype.
3018         (ggc_mark_tree_varray): Delete prototype.
3019         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
3020         (ggc_add_tree_varray_root): Delete.
3021         (ggc_mark_rtx_varray): Delete.
3022         (ggc_mark_tree_varray): Delete.
3023         (ggc_mark_rtx_varray_ptr): Delete.
3024         (ggc_mark_tree_varray_ptr): Delete.
3025         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
3026         (create_varray): Delete prototype.
3027         * gengtype.c (varrays): Delete.
3028         (create_varray): Delete.
3029         (adjust_field_type): Detect array of string pointers.
3030         (process_gc_options): Remove code to handle varray_type option.
3031         (set_gc_used_type): Remove TYPE_VARRAY case.
3032         (output_escaped_param): New.
3033         (write_gc_structure_fields): Use output_escaped_param on all
3034         parameters.  Handle 'skip' with 'use_param' option.  Handle
3035         arrays of strings.  Remove TYPE_VARRAY handling.
3036         (write_gc_roots): Use boolean to detect 'length' option.
3037         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
3038         (struct_fields): Call adjust_field_type on array fields.
3039         (type): Remove VARRAY_TYPE case.
3040         (type_option): Likewise.
3041         * gengtype-lex.l: Don't consider varray_type a keyword.
3042         * function.h: Update for change to length specifier.
3043         (free_eh_status): Delete prototype.
3044         * function.c (free_after_compilation): Don't call free_eh_status.
3045         (reorder_blocks): Don't use VARRAY_FREE.
3046         * except.c (struct eh_status): Update for change to length specifier.
3047         remove varray_type specifier.
3048         (free_eh_status): Delete.
3049         * dwarf2out.c: Include gt-dwarf2out.h.
3050         (used_rtx_varray): Use gengtype to mark, move
3051         outside ifdefs.
3052         (incomplete_types): Likewise.
3053         (decl_scope_table): Likewise.
3054         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
3055         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
3056         * c-tree.h (struct lang_type): Update for change to length specifier.
3057         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
3058         * c-objc-common.c: Include gt-c-objc-common.h.
3059         (deferred_fns): Mark for gengtype.
3060         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
3061         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
3062         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
3063         (gtype-desc.o): Update dependencies.
3064         (dwarf2out.o): Add gt-dwarf2out.h.
3065         (varray.o): Update dependencies.
3066         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
3067         (gt-c-objc-common.h): New rule.
3068         (gt-dwarf2out.h): New rule.
3069         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
3070
3071         * doc/gty.texi (GTY Options): Correct spelling.
3072         (GGC Roots): Likewise.
3073         * Makefile.in (TEXI_CPP_FILES): New.
3074         (TEXI_GCC_FILES): New.
3075         (TEXI_GCCINT_FILES): New.
3076         (TEXI_CPPINT_FILES): New.
3077         ($(docdir)/cpp.info): Use new macros.
3078         ($(docdir)/gcc.info): Likewise.
3079         ($(docdir)/gccint.info): Likewise.
3080         ($(docdir)/cppinternals.info): Likewise.
3081         (cpp.dvi): Likewise.
3082         (gcc.dvi): Likewise.
3083         (gccint.dvi): Likewise.
3084         (cppinternals.dvi): Likewise.
3085
3086         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
3087         * doc/gccint.texi (Top): Include gty.texi.
3088         * doc/gty.texi: New file.
3089
3090         * bitmap.c: Include ggc.h, gt-bitmap.h.
3091         (bitmap_ggc_free): New.
3092         (bitmap_elem_to_freelist): New.
3093         (bitmap_element_free): Use bitmap_elem_to_freelist.
3094         (bitmap_element_allocate): Allow use of GGC.
3095         (bitmap_clear): Use bitmap_elem_to_freelist.
3096         (bitmap_copy): Update for change to bitmap_element_allocate.
3097         (bitmap_set_bit): Likewise.
3098         (bitmap_operation): Update for changes elsewhere.
3099         (bitmap_initialize): Allow to create bitmaps that will use GGC.
3100         * bitmap.h (struct bitmap_element_def): Use gengtype.
3101         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
3102         (bitmap_initialize): Add extra parameter.
3103         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
3104         (BITMAP_ALLOCA): Delete.
3105         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
3106         (BITMAP_GGC_ALLOC): New.
3107         * Makefile.in (gtype-desc.o): Add bitmap.h.
3108         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
3109         (GTFILES): Add bitmap.c.
3110         (gt-bitmap.h): New rule.
3111         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
3112         * basic-block.h: Update for changes to bitmap_initialize.
3113         * except.c (exception_handler_label_map): Move into...
3114         (struct eh_status): Here.
3115         (struct eh_region): Make 'aka' GCable.
3116         (free_eh_status): Don't need to specially handle
3117         exception_handler_label_map.
3118         (add_ehl_entry): Update for changes to exception_handler_label_map.
3119         (find_exception_handler_labels): Likewise.
3120         (remove_exception_handler_label): Likewise.
3121         (maybe_remove_eh_handler): Likewise.
3122         (for_each_eh_label): Likewise.
3123         (remove_eh_handler): Allocate 'aka' using GGC.
3124         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3125         to list of includes.
3126
3127         * gengtype.c (write_gc_marker_routine_for_structure): Name
3128         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3129         (write_gc_types): Arrange for the tests with NULL to be inlined.
3130         (write_gc_roots): Update uses of procedure pointers.
3131         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3132
3133         * Makefile.in (explow.o): Add dependency on gt-explow.h.
3134         (sdbout.o): Add dependency on gt-sdbout.h.
3135
3136         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3137         (mem_attrs_htab): Likewise.
3138         (init_emit_once): Don't call ggc_add_deletable_htab.
3139         * fold-const.c (size_htab): Use gengtype to clear unused entries.
3140         (size_int_type_wide): Don't call ggc_add_deletable_htab.
3141         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3142         parameters, use them, change callers.
3143         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3144         (write_gc_roots): Handle 'if_marked' option.
3145         (main): Don't need to call set_gc_used_type any more.
3146         * ggc.h (ggc_htab_marked_p): Delete.
3147         (ggc_htab_mark): Delete.
3148         (struct ggc_cache_tab): New.
3149         (gt_ggc_cache_rtab): New declaration.
3150         * ggc-common.c (struct d_htab_root): Delete.
3151         (d_htab_roots): Delete.
3152         (ggc_add_deletable_htab): Delete.
3153         (ggc_htab_delete): Handle new htab-deleting mechanism.
3154         (ggc_mark_roots): Use new htab-deleting mechanism.
3155         * tree.c (type_hash_table): Use gengtype to clear unused entries.
3156         Make static.
3157         (init_obstacks): Don't call ggc_add_deletable_htab.
3158
3159         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3160         (struct hashed_entry): Likewise.
3161         (nst_method_hash_list): Likewise.
3162         (cls_method_hash_list): Likewise.
3163         (HASH_ALLOC_LIST_SIZE): Delete.
3164         (ATTR_ALLOC_LIST_SIZE): Delete.
3165         * objc/objc-act.c (hash_init): Use ggc to allocate
3166         nst_method_hash_list, cls_method_hash_list.
3167         (hash_enter): Use ggc to allocate; allocate one entry at a time.
3168         (hash_add_attr): Likewise.
3169         (ggc_mark_hash_table): Delete.
3170         (objc_act_parse_init): Delete.
3171         (objc_init): Delete reference to objc_act_parse_init.
3172         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
3173         obstack.h.  Replace references to 'struct hash_table' with htab_t.
3174         (struct symbol_hash_entry): Replace hash header with key field.
3175         (struct file_hash_entry): Replace hash header with key field.
3176         (struct demangled_hash_entry): Replace hash header with key field.
3177         (hash_string_eq): New.
3178         (hash_string_hash): New.
3179         (symbol_hash_newfunc): Delete.
3180         (symbol_hash_lookup): Modify to use htab_t.
3181         (file_hash_newfunc): Delete.
3182         (file_hash_lookup): Modify to use htab_t.
3183         (demangled_hash_newfunc): Delete.
3184         (demangled_hash_lookup): Modify to use htab_t.
3185         (tlink_init): Modify to use htab_t.
3186         * hash.h: Delete.
3187         * hash.c: Delete.
3188         * ggc.h: Delete forward structure declarations.
3189         Delete prototypes for deleted functions.
3190         * ggc-common.c: Don't include hash.h.
3191         (ggc_add_tree_hash_table_root): Delete.
3192         (ggc_mark_tree_hash_table_entry): Delete.
3193         (ggc_mark_tree_hash_table): Delete.
3194         (ggc_mark_tree_hash_table_ptr): Delete.
3195         * gengtype.c (write_gc_structure_fields): Allow param_is option.
3196         (write_gc_marker_routine_for_structure): Use visibility of
3197         the parameter if there is one.
3198         * function.c: Replace hash.h with hashtab.h.  Replace references
3199         to 'struct hash_table *' with htab_t.
3200         (struct insns_for_mem_entry): Include a plain key.
3201         (fixup_var_refs_insns_with_hash): Update to use htab_t.
3202         (insns_for_mem_newfunc): Delete.
3203         (insns_for_mem_hash): Update to use htab_t.
3204         (insns_for_mem_comp): Likewise.
3205         (insns_for_mem_walk): Likewise.
3206         * c-lang.c: Include ggc.h.
3207         * Makefile.in (OBJS): Remove hash.o.
3208         (c-lang.o): Add GGC_H.
3209         (COLLECT2_OBJS): Remove hash.o.
3210         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3211         (ggc-common.o): Remove hash.h.
3212         (function.o): Remove hash.h, add HASHTAB_H.
3213         (genautomata.o): Remove hash.h, add HASHTAB_H.
3214
3215         * varasm.c (mark_const_str_htab_1): Delete.
3216         (mark_const_str_htab): Delete.
3217         (const_str_htab_del): Delete.
3218         (const_str_htab): Use gengtype to mark.
3219         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
3220         allocate them.
3221         * tree.c (mark_tree_hashtable_entry): Delete.
3222         (mark_tree_hashtable): Delete.
3223         * tree.h (mark_tree_hashtable): Delete prototype.
3224         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3225         (ggc_mark): Likewise.
3226         (ggc_calloc): New.
3227         (htab_create_ggc): New.
3228         * ggc-common.c (ggc_calloc): New.
3229         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3230         (struct type): Add param_struct structure.
3231         * gengtype.c (param_structs): New.
3232         (adjust_field_type): Handle param_is option.
3233         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3234         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3235         (write_gc_structure_fields): Add new PARAM parameter.  Update
3236         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
3237         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3238         Use it to generate function name.  Update callers.
3239         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
3240         Process them.
3241         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
3242         option.
3243         (main): Define PTR as pointer-to-scalar.  Don't specially
3244         mark deferred_string or ehl_map_entry.
3245         * gengtype-yacc.y (PARAM_IS): Add new token.
3246         (externstatic): Use adjust_field_type.
3247         (type_option): Add PARAM_IS.
3248         * gengtype-lex.l: Add rule for typedef of function pointers.
3249         Add rule for PARAM_IS.
3250         (IWORD): Add size_t.
3251         * except.c (exception_handler_label_map): Use gengtype to mark.
3252         (type_to_runtime_map): Likewise.
3253         (mark_ehl_map_entry): Delete.
3254         (mark_ehl_map): Delete.
3255         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3256         (t2r_mark_1): Delete.
3257         (t2r_mark): Delete.
3258         * Makefile.in (gtype-desc.o): Correct dependencies.
3259         (GTFILES): Add hashtab.h.
3260         (genautomata.o): Actually uses hashtab.h.
3261
3262         * Makefile.in (stringpool.o): Add $(GGC_H).
3263         (dwarf2asm.o): Likewise.
3264         (GTFILES): Add hashtable.h.
3265         * c-common.h (struct c_common_identifier): Use gengtype.
3266         * c-decl.h (c_mark_tree): Delete.
3267         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3268         * c-tree.h (struct lang_identifier): Use gengtype.
3269         (union lang_tree_node): New.
3270         (c_mark_tree): Delete prototype.
3271         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3272         dwarf2_debug_hooks.
3273         * gengtype-lex.l (IWORD): Allow 'bool'.
3274         (ptr_alias): Match.
3275         * gengtype-yacc.y (ALIAS): New token.
3276         (type_option): New rule.
3277         (option): Use type_option.
3278         * gengtype.c (process_gc_options): New.
3279         (set_gc_used_type): Use it.
3280         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3281         Add new variable 't' to hold the type of the field being processed.
3282         Add more error checking.  Use UNION_P when looking at 'desc' option.
3283         Handle language-specific structures containing other
3284         language-specific structures.
3285         (write_gc_types): Handle 'ptr_alias' option.
3286         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3287         * ggc-common.c (ggc_pending_trees): Delete.
3288         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3289         (ggc_mark_trees): Delete.
3290         (gt_ggc_m_tree_node): Delete.
3291         * ggc.h (ggc_pending_trees): Delete.
3292         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3293         * hashtable.h (ht_identifier): Use gengtype.
3294         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3295         * langhooks.h (struct lang_hooks): Delete mark_tree.
3296         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3297         anyway.
3298         * system.h: Poison LANG_HOOKS_MARK_TREE.
3299         * tree.c (tree_node_structure): New.
3300         * tree.h (struct tree_common): Use gengtype.
3301         (struct tree_int_cst): Likewise.
3302         (struct tree_real_cst): Likewise.
3303         (struct tree_string): Likewise.
3304         (struct tree_complex): Likewise.
3305         (struct tree_vector): Likewise.
3306         (struct tree_identifier): Likewise.
3307         (struct tree_list): Likewise.
3308         (struct tree_vec): Likewise.
3309         (struct tree_exp): Likewise.
3310         (struct tree_block): Likewise.
3311         (struct tree_type): Likewise.
3312         (struct tree_decl): Likewise.
3313         (enum tree_structure_enum): New.
3314         (union tree_node): Use gengtype, with an alias.
3315         (tree_node_structure): Prototype.
3316         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3317
3318         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3319         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3320         to LANG_HOOKS_FUNCTION_FINAL.
3321         * Makefile.in (GTFILES): Add bitmap.h.
3322         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3323
3324         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3325         (alpha_init_machine_status): Give proper type.
3326         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3327         (optabs.o): Depend on gt-optabs.h.
3328         (GTFILES): Add optabs.o.
3329         (gt-optabs.h): Add rule.
3330         * optabs.c: Include gt-optabs.h.
3331
3332         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3333         (write_gc_structure_fields): If a field which should be NULL is
3334         not, abort.
3335         * c-pragma.c: Move struct align_stack and variable alignment_stack
3336         out from the ifdef.
3337
3338         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3339         * config/xtensa/xtensa.c: Include gt-cris.h.
3340         (struct machine_function): Use gengtype to mark.
3341         * config/mmix/mmix.h (struct machine_function): Use gengtype
3342         to mark.
3343         * config/cris/t-cris: Add dependencies for gt-cris.h.
3344         * config/cris/cris.c: Include gt-cris.h.
3345         (struct machine_function): Use gengtype to mark.
3346         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3347         to mark.
3348         * doc/tm.texi (Per-Function Data): Delete references to
3349         mark_machine_status.
3350         * config/ia64/ia64.c (ia64_override_options): Don't set
3351         mark_machine_status.
3352         * config/i386/i386.c (override_options): Likewise.
3353         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3354         * config/arm/arm.c (arm_init_expanders): Likewise.
3355         * config/alpha/alpha.c (override_options): Likewise.
3356         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3357         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3358         (write_gc_structure_fields): Don't handle 'really' option.
3359         Handle 'maybe_null' option.
3360         (write_gc_types): Handle 'maybe_null' option.
3361         * function.h (struct function): Don't use "really".
3362         (mark_machine_status): Delete declaration.
3363         (mark_lang_status): Delete declaration.
3364         (gt_ggc_mr_machine_function): Delete prototype.
3365         (gt_ggc_mr_language_function): Delete prototype.
3366         * function.c (mark_machine_status): Delete.
3367         (mark_lang_status): Delete.
3368         (gt_ggc_mr_machine_function): Delete.
3369         (gt_ggc_mr_language_function): Delete.
3370         * c-tree.h (mark_c_function_context): Delete prototype.
3371         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3372         * c-decl.c (struct language_function): Rename from struct
3373         c_language_function.  Update uses.  Use gengtype to mark.
3374         (mark_c_function_context): Delete.
3375         * c-common.h (struct c_language_function): Rename from struct
3376         language_function.
3377         (mark_stmt_tree): Delete prototype.
3378         (c_mark_lang_decl): Delete prototype.
3379         (mark_c_language_function): Delete prototype.
3380         * c-common.c (mark_stmt_tree): Delete.
3381         (c_mark_lang_decl): Delete.
3382         (mark_c_language_function): Delete.
3383
3384         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3385         (lang_bitmap): New typedef.  Use where appropriate.
3386         (struct type): Add gc_used field, lang_struct field.
3387         (UNION_P): New macro.
3388         (new_structure): New prototype.
3389         (find_structure): Remove 'pos' parameter.  Change all callers.
3390         * gengtype-lex.l: Update for changes to find_structure.
3391         * gengtype-yacc.y (typedef_struct): Use new_structure.
3392         (yacc_ids): Suppress warning.
3393         (type): Use new_structure.
3394         * gengtype.c (string_type): Update for changes to struct type.
3395         (find_structure): Just find a structure, don't worry about
3396         creating one.
3397         (new_structure): New.
3398         (note_yacc_type): Use new_structure.
3399         (set_gc_used_type): New.
3400         (set_gc_used): New.
3401         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3402         (write_gc_types): Handle TYPE_LANG_STRUCT.
3403         (write_gc_marker_routine_for_structure): New.
3404         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3405         for places where GCC doesn't use gengtype properly yet.
3406         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3407         (gt_ggc_m_tree_node): Likewise.
3408
3409         * varasm.c (copy_constant): Call expand_constant if we hit
3410         something we can't recognise.
3411
3412         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3413         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3414         (lang_mark_false_label_stack): Delete.
3415         * rtl.h (struct rtvec_def): Use gengtype to mark.
3416         * ggc.h (ggc_mark_rtvec): Delete.
3417         (gt_ggc_m_rtvec_def): Delete.
3418         (ggc_mark_nonnull_tree): Delete.
3419         (ggc_mark_rtvec_children): Delete prototype.
3420         (lang_mark_false_label_stack): Delete declaration.
3421
3422         * gengtype.h (note_yacc_type): Add prototype.
3423         * gengtype.c (note_yacc_type): New function.
3424         * gengtype-lex.l: Add lexer support for yacc files.
3425         * gengtype-yacc.y (start): Extract union from yacc files.
3426         (yacc_union): New rule.
3427         (yacc_typematch): New rule.
3428         (yacc_ids): New rule.
3429         (enum_items): Tweak for efficiency.
3430         (optionseq): Likewise.
3431
3432         * c-common.h (struct language_function): Use gengtype.
3433         (struct c_lang_decl): Likewise.
3434         * c-tree.h (struct lang_decl): Likewise.
3435         (struct lang_type): Likewise.
3436         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3437         tree language substructures.
3438
3439         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3440         ggc_mark_tree.
3441         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3442
3443         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3444
3445         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3446         mark. Remove 'data.block.cleanup_ptr' field.
3447         (struct stmt_status): Use usual technique to mark struct nesting.
3448         (gt_ggc_mr_nesting_cond): Delete.
3449         (gt_ggc_mr_nesting_loop): Delete.
3450         (gt_ggc_mr_nesting_block): Delete.
3451         (gt_ggc_mr_nesting_case_stmt): Delete.
3452         (expand_start_cond): Set discriminator.
3453         (expand_start_loop): Likewise.
3454         (expand_start_null_loop): Likewise.
3455         (expand_start_bindings_and_block): Set discriminator.  Don't set
3456         deleted fields.
3457         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3458         &thisblock->data.block.cleanups.
3459         (expand_start_case): Set discriminator.
3460         (expand_start_case_dummy): Set discriminator.
3461
3462         * ggc-callbacks.c: Remove.
3463
3464         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3465         (find_structure): Add 'pos' parameter.
3466         * gengtype-lex.l: Update callers to find_structure.
3467         * gengtype-yacc.y: Likewise.
3468         * gengtype.c (find_structure): Allow for structures to be defined
3469         in multiple language backends.
3470         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3471         (counter): Rename to gc_counter.
3472         (write_gc_structure_fields): Fail when writing out fields for
3473         an incomplete structure.  Ignore arrays of scalars.  Handle
3474         'tree_vec' special.
3475         (write_gc_types): Reset counter for each procedure written.
3476
3477         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3478         (free_case_nodes): Delete.
3479         (expand_end_case_type): Delete call to free_case_nodes.
3480
3481         * Makefile.in (cselib.o): Include gt-<filename>.h.
3482         (gcse.o): Likewise.
3483         (profile.o): Likewise.
3484         (alias.o): Likewise.
3485         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3486         alphabetize backend files.
3487         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3488         * alias.c: Use gengtype for roots.
3489         * c-common.h (struct stmt_tree_s): Use gengtype.
3490         * c-decl.c: Use gengtype for roots.
3491         * cselib.c: Use gengtype for roots.
3492         * expr.c: Use gengtype for roots.
3493         * fold-const.c: Use gengtype for roots.
3494         * gcse.c: Use gengtype for roots.
3495         * gengtype-lex.l: Handle typedefs of function types.
3496         Allow for empty array bounds.
3497         Allow processing to stop on initialisers.
3498         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3499         (semiequal): New rule.
3500         * gengtype.c (create_file): Tidy output files.
3501         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3502         involving multiple input files mapping to one output file.
3503         (write_gc_structure_fields): Skip arrays of scalars.
3504         (write_gc_types): Tidy output files.
3505         (write_gc_root): New function.
3506         (write_gc_roots): Fix bugs, add support for roots that are
3507         structures.
3508         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3509         (ggc_mark_tree_ptr): Delete.
3510         (ggc_add_rtx_root): Delete.
3511         (ggc_add_tree_root): Delete.
3512         (ggc_del_root): Delete.
3513         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3514         allocate struct initial_value_struct.
3515         * profile.c: Use gengtype for roots.
3516         * sdbout.c: Use gengtype for roots.
3517         * varasm.c (mark_weak_decls): Delete unused prototype.
3518         (mark_const_hash_entry): Delete unused function.
3519         * config/darwin-protos.h: Use gengtype for roots.
3520         (machopic_add_gc_roots): Delete.
3521         * config/arm/arm.c: Use gengtype for roots.
3522         * config/arm/arm.h: Use gengtype for roots.
3523         * config/c4x/c4x-protos.h: Use gengtype for roots.
3524         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3525         * config/d30v/d30v-protos.h: Use gengtype for roots.
3526         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3527         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3528         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3529         * config/ia64/ia64-protos.h: Use gengtype for roots.
3530         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3531         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3532         * config/m68hc11/m68hc11.c (z_reg): Make global.
3533         (z_reg_qi): Make global.
3534         (m68hc11_add_gc_roots): Delete.
3535         * config/mcore/mcore-protos.h: Use gengtype for roots.
3536         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3537         * config/mips/mips.c (mips_add_gc_roots): Delete.
3538         * config/mips/mips.h: Use gengtype for roots.
3539         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3540         * config/mmix/mmix.h: Use gengtype for roots.
3541         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3542         * config/mn10200/mn10200.h: Use gengtype for roots.
3543         * config/pa/pa.c: Use gengtype for roots, marking.
3544         (struct deferred_plabel): Use GGC, gengtype.
3545         (pa_add_gc_roots): Delete.
3546         (mark_deferred_plabels): Delete.
3547         * config/pj/pj-protos.h: Use gengtype for roots.
3548         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3549         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3550         machopic_add_gc_roots.
3551         * config/rs6000/rs6000.h: Use gengtype for roots.
3552         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3553         (gt-darwin.h): Add rule.
3554         * config/sh/sh.c: Use gengtype for roots.
3555         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3556         (gt-sh.h): Add rule.
3557         * config/sparc/sparc.c: Use gengtype for roots.
3558         (sparc_add_gc_roots): Delete.
3559         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3560         (mark_ultrasparc_pipeline_state): Delete.
3561         * config/sparc/sparc.h: Use gengtype for roots.
3562
3563         * Makefile.in (c-parse.o): Update dependencies.
3564         (c-common.o): Likewise.
3565         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3566         Add dependencies for the files they generate.
3567         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3568         * c-common.h: Likewise.
3569         * c-decl.c: Likewise.
3570         (gt_ggc_mp_binding_level): Delete.
3571         * c-lang.c: Include gtype-c.h.
3572         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3573         gt-c-parse.h.
3574         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3575         (gt_ggc_mp_align_stack): Delete.
3576         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3577         * function.c: Replace ggc_add_* uses with GTY annotations.
3578         (gt_ggc_mp_function): Delete.
3579         * function.h: Replace ggc_add_* uses with GTY annotations.
3580         * gengtype.c (lang_names): New.
3581         (NUM_BASE_FILES): New.
3582         (open_base_files): Create language base files.
3583         (startswith): New.
3584         (get_file_basename): New.
3585         (get_base_file_bitmap): New.
3586         (get_output_file_with_visibility): Rename from get_output_file.
3587         Add more mappings for various C/Objc filenames.
3588         (finish_root_table): New.
3589         (write_gc_roots): Handle dependencies and scoping properly.
3590         * gengtype.h: Add prototypes for new functions.
3591         * ggc-common.c (struct deletable_root): Delete.
3592         (deletables): Delete.
3593         (ggc_add_deletable_root): Delete.
3594         (ggc_mark_roots): No need to deal with deleted functionality.
3595         * ggc.h (ggc_add_deletable_root): Delete prototype.
3596         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3597         (gtype-objc.h): Add rule to create.
3598         * objc/config-lang.in (gtfiles): New.
3599         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3600         ggc_add_* with GTY markers.  Include gtype-objc.h.
3601         (ggc_mark_imp_list): Delete.
3602         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3603         * objc/objc-lang.c: Random Whitespace Change.
3604
3605         * except.h (exception_handler_labels): Delete.
3606         (get_exception_handler_labels): New.
3607         * except.c (exception_handler_labels): Delete.
3608         (struct eh_status): Add exception_handler_labels field.
3609         (doing_eh): Don't add exception_handler_labels as root.
3610         (free_eh_status): Don't need to free exception_handler_labels.
3611         (get_exception_handler_labels): New.
3612         (find_exception_handler_labels): Update for move of
3613         exception_handler_labels.
3614         (remove_exception_handler_label): Likewise.
3615         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3616         * jump.c (rebuild_jump_labels): Likewise.
3617         * loop.c (find_and_verify_loops): Likewise.
3618         * sched-rgn.c (is_cfg_nonregular): Likewise.
3619
3620         * gengtype.c (write_gc_structure_fields): Handle variable-length
3621         TYPE_ARRAYs.
3622
3623         * varasm.c (struct weak_syms): Use GGC, gengtype.
3624         (mark_weak_decls): Delete.
3625         (weak_decls): Likewise.
3626         (add_weak): Likewise.
3627         (remove_from_pending_weak_list): Likewise.
3628         (init_varasm_once): Likewise.
3629
3630         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3631         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3632         stor-layout.c, regclass.c, and lists.c.
3633         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3634         gt-regclass.h and gt-lists.h on s-gtype.
3635         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3636         * except.c: Use gengtype for roots.
3637         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3638         * expr.h (init_stor_layout_once): Delete prototype.
3639         * function.c: Use gengtype for roots.
3640         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3641         * gengtype-yacc.y (start): Can also be an externstatic.
3642         (externstatic): New production.
3643         (struct_fields): Correct array bounds inversion for 2-d arrays.
3644         * gengtype.c (variables): New variable.
3645         (note_variable): New function.
3646         (get_output_file): Include libfuncs.h into gtype-desc.c.
3647         (get_output_file_name): New function.
3648         (write_gc_structure_fields): Suppress warnings.
3649         (write_gc_types): Make static.
3650         (put_mangled_filename): New function.
3651         (write_gc_roots): New function.
3652         (main): Call write_gc_roots.
3653         * gengtype.h (note_variable): Prototype.
3654         (get_output_file_name): Prototype.
3655         (write_gc_types): Delete prototype.
3656         * ggc.h: Clean up unnecessary structure predefinitions.
3657         (struct ggc_root_tab): Define.
3658         (gt_ggc_m_rtx_def): Make function, not macro.
3659         (gt_ggc_m_tree_node): Likewise.
3660         * libfuncs.h: Use gengtype for roots.
3661         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3662         (init_EXPR_INSN_LIST_cache): Delete.
3663         * optabs.c: Use gengtype for roots.
3664         (gt_ggc_mp_optab): Delete.
3665         * optabs.h: Use gengtype for roots.
3666         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3667         * rtl.h: Use gengtype for roots.
3668         (init_EXPR_INSN_LIST_cache): Delete prototype.
3669         * stor-layout.c: Use gengtype for roots.
3670         Include gt-stor-layout.h.
3671         (init_stor_layout_once): Delete.
3672         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3673         routines.
3674         * tree.c: Use gengtype for roots.
3675         * tree.h: Use gengtype for roots.
3676         * varasm.c: Use gengtype for roots.
3677
3678         * Makefile.in (GTFILES): Add @all_gtfiles@.
3679         * configure: Regenerate.
3680         * configure.in: Construct all_gtfiles from the gtfiles definitions
3681         in config-lang.in.
3682         * gengtype-yacc.y (type): Warn about duplicate structure names.
3683         * gengtype.c (get_output_file): Handle .c files in language
3684         subdirectories.
3685
3686         * Makefile.in (GTFILES): Run gengtype on all the config files
3687         and on the target .c file.
3688         * except.c (mark_eh_region): Delete.
3689         (init_eh_for_function): Use GGC on struct eh_status.
3690         (mark_eh_status): Delete.
3691         (free_eh_status): Use GGC.
3692         (expand_eh_region_start): Use GGC to
3693         (collect_eh_region_array): Allocate last_region_number using GGC.
3694         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3695         (remove_eh_handler): Let GGC free struct eh_region.
3696         (add_call_site): Use GGC to reallocate call_site_record array.
3697         * function.c (init_machine_status): Update calling sequence.
3698         (mark_machine_status): Likewise.
3699         (mark_lang_status): Likewise.
3700         (prepare_function_start): Update init_machine_status call.
3701         (mark_function_status): Delete.
3702         (maybe_mark_struct_function): Delete.
3703         (ggc_mark_struct_function): Delete.
3704         (gt_ggc_mp_function): New.
3705         (gt_ggc_mr_machine_function): New.
3706         (gt_ggc_mr_language_function): New.
3707         (init_function_once): Use canonical names.
3708         * function.h (struct function): Use gengtype.
3709         (init_machine_status): Return the structure.
3710         (mark_machine_status): Take a 'void *'.
3711         (mark_lang_status): Likewise.
3712         * ggc-common.c (ggc_mark_trees): Use canonical name for
3713         ggc_mark_struct_function.
3714         * tree.h (ggc_mark_struct_function): Delete prototype.
3715         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3716         (alpha_init_machine_status): Likewise.
3717         (override_options): Use canonical name for alpha_mark_machine_status.
3718         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3719         * config/arm/arm.h (struct machine_function): Use gengtype.
3720         * config/arm/arm.c (arm_mark_machine_status): Delete.
3721         (arm_init_machine_status): Update calling sequence.
3722         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3723         * config/cris/cris.c (cris_init_machine_status): Update
3724         calling sequence.
3725         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3726         * config/d30v/d30v.c (d30v_init_machine_status): Update
3727         calling sequence.
3728         (d30v_mark_machine_status): Delete.
3729         * config/i386/i386.c: Include gt-i386.h.
3730         (struct machine_function): Use gengtype.
3731         (ix86_init_machine_status): Update calling sequence.
3732         (ix86_mark_machine_status): Delete.
3733         (override_options): Use canonical namke for ix86_mark_machine_status.
3734         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3735         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3736         sequence.
3737         (ia64_mark_machine_status): Delete.
3738         (ia64_override_options): Use canonical name for
3739         ia64_mark_machine_status.
3740         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3741         sequence.
3742         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3743         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3744         * gengtype.c (get_output_file): Fix warning.
3745         (main): Add prototype to suppress warning.
3746         * tree.c: Remove tree_hash_mark prototype.
3747
3748         * tree.h (init_stmt): Delete prototype.
3749         * toplev.c (lang_independent_init): Don't call init_stmt.
3750         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3751         (stmt_obstack): Delete.
3752         (POPSTACK): No need to free 'struct nesting'.
3753         (gt_ggc_mr_nesting_cond): Use canonical names.
3754         (gt_ggc_mr_nesting_loop): Use canonical names.
3755         (gt_ggc_mr_nesting_block): Use canonical names.
3756         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3757         (mark_stmt_status): Delete.
3758         (init_stmt): Delete.
3759         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3760         Use it everywhere that last_expr_type was cleared.
3761         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3762         (zap_lists): Delete.
3763         * ggc.h (ggc_add_deletable_root): Prototype.
3764         (mark_stmt_status): Remove prototype.
3765         * ggc-common.c (ggc_add_deletable_root): New.
3766         (ggc_mark_roots): Handle deletable roots.
3767         * function.c (ggc_mark_struct_function): Use canonical name
3768         for mark_stmt_status.
3769         * emit-rtl.c (free_sequence_stack): New.
3770         (start_sequence): Use a freelist for sequences.
3771         (end_sequence): Likewise.
3772         (init_emit_once): Add free_sequence_stack as a deleteable root.
3773         * c-pragma.c Include gt-c-pragma.h.
3774         (struct align_stack): Use gengtype.
3775         (push_alignment): Use GGC for struct align_stack.
3776         (mark_align_stack): Delete.
3777         (gt_ggc_mp_align_stack): New.
3778         (init_pragma): Use canonical name for mark_align_stack.
3779         * c-decl.c: Include gt-c-decl.h.
3780         (struct binding_level): Use gengtype.
3781         (make_binding_level): Use GGC; handle the freelist here.
3782         (pop_binding_level): New.
3783         (pushlevel): Move code into make_binding_level.
3784         (push_label_level): Likewise.
3785         (poplevel): Move code into pop_binding_level.
3786         (pop_label_level): Likewise.
3787         (mark_binding_level): Delete.
3788         (gt_ggc_mp_binding_level): New.
3789         (c_init_decl_processing): Use canonical name for mark_binding_level.
3790         Add free_binding_level as deletable root.
3791         (mark_c_function_context): Use canonical name for mark_binding_level.
3792         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3793         (c-pragma.o): Add gt-c-pragma.h.
3794         (GTFILES): Add c-decl.c and c-pragma.c.
3795         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3796
3797         * tree.c (struct type_hash): Use gengtype.
3798         (init_obstacks): Use canonical name for type_hash_mark.
3799         (type_hash_mark): Delete.
3800         Include gt-tree.h.
3801         * rtl.h (struct mem_attrs): Use gengtype.
3802         * optabs.h (struct optab): Use gengtype.
3803         * optabs.c (expand_binop): Squish signed/unsigned warning.
3804         (mark_optab): Make local, use canonical name, use autogenerated
3805         marker procedure.
3806         (init_optabs): Use canonical name for mark_optab.
3807         (new_optab): Use GGC to allocate optabs.
3808         * ggc.h: Delete mark_optab prototype.
3809         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3810         mem_attrs marker procedure.
3811         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3812         explicitly rather than deducing them from file names.
3813         (write_gc_structure_fields): Handle arrays of structures.
3814         (main): Return non-zero exit code if errors occur during output.
3815         * emit-rtl.c (mem_attrs_mark): Delete.
3816         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3817         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3818         (tree.o): Depend on gt-tree.h.
3819         (GTFILES): Add rtl.h, optabs.h, tree.c.
3820         (gt-tree.h): Add it to s-gtype rule.
3821
3822         * .cvsignore: Ignore gengtype flex/bison generated files.
3823         * Makefile.in (GGC_H): Add gtype-desc.h.
3824         (OBJS): Add gtype-desc.o.
3825         (GEN): Add gengtype.
3826         (STAGESTUFF): Add gengtype.
3827         (varasm.o): Add gt-varasm.h.
3828         (stmt.o): Add gt-stmt.h.
3829         (except.o): Add gt-except.h.
3830         (integrate.o): Add gt-integrate.h.
3831         (GTFILES): New.
3832         Add new rules for new files.
3833         * configure: Regenerate.
3834         * configure.in: Correct defaults.h paths.
3835         * emit-rtl.c (mark_sequence_stack): Delete.
3836         (mark_emit_status): Delete.
3837         (start_sequence): Allocate sequence structures using GGC.
3838         (end_sequence): Allocate sequence structures using GGC.
3839         * except.c: Use gengtype for various structures.  Include
3840         gt-except.h.
3841         * expr.c (mark_expr_status): Delete.
3842         * function.c: Use gengtype for various structures.  Include
3843         gt-function.h.
3844         (mark_function_status): Use standard gt_ggc names for marker functions.
3845         (ggc_mark_struct_function): Likewise.
3846         * function.h: Use gengtype for various structures.
3847         * gengtype-lex.l: New file.
3848         * gengtype-yacc.y: New file.
3849         * gengtype.c: New file.
3850         * gengtype.h: New file.
3851         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
3852         the standard names.  Remove some now-unnecessary prototypes.
3853         * integrate.c: Use gengtype for various structures.  Include
3854         gt-integrate.h.
3855         (mark_hard_reg_initial_vals): Delete.
3856         * integrate.h (mark_hard_reg_initial_vals): Delete.
3857         * stmt.c: Use gengtype for various structures.  Include
3858         gt-stmt.h.
3859         (mark_case_node): Delete.
3860         (mark_goto_fixup): Delete.
3861         (mark_stmt_status): Use standard gt_ggc names for marker functions.
3862         * system.h: Define GTY to empty.   In flex/bison files,
3863         don't poison malloc or realloc, instead just define them to
3864         xmalloc and xrealloc.
3865         * varasm.c: Use gengtype for various structures.  Include
3866         gt-varasm.h.  Use standard gt_ggc names for marker functions.
3867         (mark_pool_constant): Delete.
3868         (mark_varasm_status): Delete.
3869         (decode_rtx_const): #if 0 out non-typesafe hack.
3870
3871         * function.h (free_lang_status): Mark as obsolete.
3872         * function.c (free_lang_status): Mark as obsolete.
3873         * c-decl.c (push_c_function_context): Use GC to allocate and free
3874         struct language_function.
3875         (pop_c_function_context): Likewise.
3876         * c-common.c (mark_c_language_function): Mark struct
3877         language_function.
3878
3879         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3880         Document that the machine_function structures must be allocated
3881         using GC.  Update mark_machine_status documentation.
3882         * function.h: Don't declare free_machine_status.
3883         * function.c (free_machine_status): Don't define.
3884         (free_after_compilation): Don't call free_machine_status.
3885         (ggc_mark_struct_function): Mark f->machine.  Call
3886         mark_machine_status only on non-NULL pointers.
3887         * system.h: Poison free_machine_status.
3888         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3889         struct machine_function.
3890         (xtensa_free_machine_status): Delete.
3891         (override_options): Don't set free_machine_status.
3892         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3893         free_machine_status.
3894         (rs6000_init_machine_status): Use GC on struct machine_function.
3895         (rs6000_free_machine_status): Delete.
3896         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3897         machine_function.
3898         (ia64_mark_machine_status): Likewise.
3899         (ia64_free_machine_status): Delete.
3900         (ia64_override_options): Don't set free_machine_status.
3901         * config/i386/i386.c (override_options): Don't set
3902         free_machine_status.
3903         (ix86_init_machine_status): Use GC on struct machine_function.
3904         (ix86_mark_machine_status): Likewise.
3905         (ix86_free_machine_status): Delete.
3906         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3907         machine_function.
3908         (d30v_mark_machine_status): Likewise.
3909         (d30v_free_machine_status): Delete.
3910         (d30v_init_expanders): Don't set free_machine_status.
3911         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3912         machine_function.
3913         (arm_init_machine_status): Likewise.
3914         (arm_free_machine_status): Delete.
3915         (arm_init_expanders): Don't set free_machine_status.
3916         * config/alpha/alpha.c (override_options): Don't set
3917         free_machine_status.
3918         (alpha_init_machine_status): Use GC on struct machine_function.
3919         (alpha_mark_machine_status): Likewise.
3920         (alpha_free_machine_status): Delete.
3921
3922         * varasm.c (compare_constant): Fix typo.
3923
3924         * varasm.c: Don't include obstack.h.
3925         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3926         (struct rtx_const): Give substructures names, improve formatting.
3927         (struct constant_descriptor): Delete.
3928         (struct constant_descriptor_tree): New, based on constant_descriptor.
3929         (const_hash_table): Is a hash table of trees.
3930         (mark_const_hash_entry): Is used for hashes of trees.  Mark
3931         constant_descriptor_tree structure.
3932         (mark_const_str_htab_1): Mark deferred_string structure.
3933         (compare_constant): Rewrite to compare trees.
3934         (compare_constant_1): Delete.
3935         (record_constant): Delete.
3936         (record_constant_1): Delete.
3937         (output_constant_def): Use struct constant_descriptor_tree.
3938         Don't duplicate trees twice.
3939         (struct constant_descriptor_rtx): New.
3940         (struct pool_constant): Used for rtx constants.
3941         (init_varasm_status): Update for change to struct varasm_status.
3942         (mark_varasm_status): Likewise.
3943         (free_varasm_status): Delete.
3944         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3945         (record_constant_rtx): Likewise.
3946         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3947         (force_const_mem): Likewise.
3948         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3949         * function.c (free_after_compilation): Don't use free_varasm_status.
3950         * function.h: Don't prototype free_varasm_status.
3951
3952         * ggc-common.c (ggc_realloc): Handle X being NULL.
3953
3954         * ggc-common.c (ggc_realloc): New function.
3955         * ggc.h: Prototype it.
3956         * emit-rtl.c (free_emit_status): Delete.
3957         (init_emit): Allocate emit subarrays using GC.
3958         (gen_reg_rtx): Reallocate subarrays using GC.
3959         (init_emit): Use GC to allocate 'struct emit_status' and its
3960         subarrays.
3961         (mark_emit_status): Mark structure and its subarrays.
3962         * stmt.c (free_stmt_status): Delete.
3963         * expr.c (free_expr_status): Delete.
3964         * function.h: Remove prototypes for deleted functions.
3965         * function.c (free_after_compilation): Don't use deleted functions.
3966         Don't call free() on x_parm_reg_stack_loc.
3967         (free_after_parsing): Don't use free_stmt_status.
3968         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3969         (mark_function_status): Mark x_parm_reg_stack_loc.
3970
3971         * varasm.c (init_varasm_status): Use GC to allocate
3972         'struct varasm_status' and its fields x_const_rtx_hash_table
3973         and x_const_rtx_sym_hash_table.
3974         (mark_varasm_status): Mark them.
3975         (free_varasm_status): Use GC to free them.
3976         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3977         (mark_expr_status): Mark the structure itself.
3978         (free_expr_status): Use GC to free the structure.
3979         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3980         (mark_stmt_status): Mark the 'struct stmt_status' itself.
3981         (init_stmt_for_function): Allocate the structure for GC.
3982
3983         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3984         (equate_type_number_to_die): Likewise.
3985         * tree.h (TYPE_SYMTAB_DIE): New macro.
3986         (struct die_struct): Predeclare.
3987         (struct tree_type): Add field symtab.die.   Add a tag
3988         to the union type of field symtab.
3989
3990         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3991         'struct rtvec_def *', not 'struct rtvec_def'.
3992
3993         * function.h (original_arg_vector): Make a real rtvec.
3994         * function.c (ggc_mark_struct_function): Adjust.
3995         * integrate.c (expand_inline_function): Adjust.
3996
3997 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3998
3999         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
4000         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
4001         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
4002         (TARGET_VERSION_CPU): Define according to the
4003         default target.
4004         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
4005         TARGET_VERSION_CPU.
4006         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
4007         if TARGET_SHMEDIA64.
4008         (LINK_DEFAULT_CPU_EMUL): Define according to the
4009         default target.
4010         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
4011         (SUBTARGET_LINK_SPEC): Define.
4012         (LINK_SPEC): Use SH_LINK_SPEC.
4013         (ASM_SPEC): Remove.
4014         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4015         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
4016         and TARGET_SHMEDIA64 which abort, for now.
4017         * config/sh/t-netbsd-sh5: New file.
4018         * config/sh/t-netbsd-sh5-32: New file.
4019         * config/sh/t-netbsd-sh5-64: New file.
4020
4021 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4022             Richard Henderson  <rth@redhat.com>
4023
4024         * config/alpha/alpha.c (reg_or_const_int_operand): New.
4025         (some_operand, input_operand): Accept CONST_VECTOR.
4026         (alpha_extra_constraint): Add 'W'.
4027         (alpha_expand_zap_mask): New.
4028         (alpha_expand_builtin_vector_binop): New.
4029         (enum alpha_builtin): New.
4030         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
4031         (alpha_init_builtins, alpha_expand_builtin): New.
4032         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
4033         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
4034         (PREDICATE_CODES): Update.
4035         * config/alpha/alpha-protos.h: Update.
4036         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
4037         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
4038         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
4039         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
4040         (movv2si, movv2si_fix, movv2si_nofix): New.
4041         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
4042         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
4043         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
4044         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
4045         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
4046         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
4047         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
4048         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
4049         builtin_unpkbw, unpkbw): New.
4050         * doc/extend.texi (Alpha Built-in Functions): New.
4051
4052 2002-06-03  Richard Henderson  <rth@redhat.com>
4053
4054         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
4055         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
4056
4057 2002-06-03  Richard Henderson  <rth@redhat.com>
4058
4059         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
4060
4061         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
4062         (const0_operand): New.
4063         (reg_or_fp0_operand, fp0_operand): Remove.
4064         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4065         * config/alpha/alpha-protos.h: Update.
4066         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
4067         and fp0_operand with reg_or_0_operand and const0_operand.
4068
4069 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4070
4071         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4072
4073 2002-06-03  Roger Sayle  <roger@eyesopen.com>
4074
4075         * gcse.c (cprop_jump): Use single_set to get the pattern
4076         from the setcc argument.
4077
4078 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
4079
4080         * diagnostic.h (diagnostic_count): Move from output_buffer to
4081         diagnostic_context.
4082         (diagnostic_kind_count): Adjust definition.
4083
4084 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
4085
4086         * except.c (except.c): Do not rebuild CFG.
4087         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
4088         optimization.
4089
4090 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4091
4092         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4093         * toplev.c: Include cfglahout.h
4094         * Makefile.in (toplev.c): Add dependnecy.
4095
4096 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4097
4098         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
4099         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
4100         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
4101
4102 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4103
4104         * config/ns32k/netbsd.h: Update copyright years.
4105         (TARGET_OS_CPP_BUILTINS): Define.
4106         (CPP_PREDEFINES): Remove.
4107         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
4108         (TARGET_CPU_CPP_BUILTINS): Define.
4109
4110 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4111
4112         * emit-rtl.c: Fix formatting.
4113         * errors.h: Likewise.
4114         * except.c: Likewise.
4115         * explow.c: Likewise.
4116         * expmed.c: Likewise.
4117         * expr.c: Likewise.
4118         * expr.h: Likewise.
4119
4120 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4121
4122         * config/h8300/elf.h: Fix formatting.
4123         * config/h8300/rtems.h: Likewise.
4124
4125 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4126
4127         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4128
4129 2002-06-02  Tom Tromey  <tromey@redhat.com>
4130
4131         * fixinc/fixincl.x: Rebuilt.
4132         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4133
4134 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4135
4136 config/i370:
4137         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4138         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4139         * mvs.h: Similarly.
4140         * oe.h: Similarly.
4141
4142 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4143
4144         * final.c (final):  Allow notes to not have computed addresses;
4145         kill no longer needed STACK_REGS ifdef.
4146
4147 2002-06-02  Richard Henderson  <rth@redhat.com>
4148
4149         * gcse.c (bypass_conditional_jumps): Fix typo last change.
4150
4151 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4152
4153         * loop.c (emit_prefetch_instructions): Properly place the address
4154         computation.
4155
4156 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
4157
4158         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4159         (set_block_for_insn): Turn into macro.
4160         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4161         * cfglayout.c (insn_scopes): Kill.
4162         (scope_to_insns_initialize): Do not use insn_scopes.
4163         (scope_to_insns_finalize): Likewise.
4164         (duplicate_insn_chain): Likewise.
4165         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4166         * cfgrtl.c (basic_block_for_insn): Kill.
4167         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4168         (create_basic_block_structure): Use reorder_insns.
4169         (compute_bb_for_insn): Do not use basic_block_for_insn.
4170         (merge_blocks_nomove): Likewise.
4171         (update_bb_for_insn): Likewise.
4172         (verify_flow_info): Likewise.
4173         (set_block_for_insn): Kill.
4174         * combine.c (try_combine): Update gen_rtx_INSN call.
4175         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4176         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4177         scopes and BBs.
4178         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4179         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4180         Clear BB.
4181         (emit_insns_after): Simplify.
4182         (emit_copy_of_insn_after): Copy scope.
4183         * final.c (final_start_function): Lower scopes.
4184         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4185         * integrate.c (copy_insn_list): Cope scopes.
4186         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4187         * loop.c (loop_optimize): Do not care block notes.
4188         * print-rtl.c (print_rtx): Print BB.
4189         * recog.c (apply_change_group): Simplify.
4190         * rtl.c (copy_rtx): Handle 'B'.
4191         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4192         * rtl.h (Field accessors): Update indexes.
4193         * sched-ebb.c (schedule_ebbs): Do not lower notes.
4194         * sched-rgn.c (schedule_insns): Likewise.
4195         * toplev.c (rest_of_compilation): Lower notes.
4196         * unroll.c (unroll_loop): Do not care scoping notes.
4197         (copy_loop_body): Copy scopes.
4198
4199 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4200
4201 config/h8300:
4202         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4203         SUBTARGET_SPEC.
4204         * rtems.h: Similarly.
4205         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4206         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4207         (TARGET_CPU_CPP_BUILTINS): Use.
4208
4209 2002-06-02  Richard Henderson  <rth@redhat.com>
4210
4211         * alias.c: Include target.h.
4212         (mark_constant_function): Use targetm.binds_local_p instead
4213         of checking TREE_PUBLIC ourselves.
4214         * Makefile.in (alias.o): Add TARGET_H.
4215
4216 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4217
4218         * c-lex.c: Update copyright and file description.
4219
4220 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4221
4222         * config/fr30/fr30.h: Update to new CPP macros.
4223
4224 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4225
4226         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4227
4228 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4229             Zack Weinberg <zack@codesourcery.com>
4230
4231         * c-common.c (c_common_init): Override cpplib's default
4232         warn_long_long setting.
4233         * c-lex.c (lex_number): Replace with interpret_integer,
4234         interpret_float, narrowest_unsigned_type and
4235         narrowest_signed_type, taking advantage of the new
4236         cpplib functionality.
4237         * cpperror.c (_cpp_begin_message): If a warning is turned
4238         into an error, avoid printing "warning:".
4239         * cppexp.c (cpp_num_sign_extend): New.
4240         * cppinit.c: Update comment.
4241         * cpplib.h (cpp_num_sign_extend): New.
4242         * tree.h: Update comment.
4243
4244 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4245
4246         * diagnostic.h (struct diagnostic_context):  Add new member
4247         internal_error.
4248         (internal_error_function): Remove declaration.
4249         * diagnostic.c (internal_error_function): Remove definition..
4250         (internal_error): Adjust use.
4251
4252 2002-06-02  Richard Henderson  <rth@redhat.com>
4253
4254         * rtl.h (CC0_P): New.
4255         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
4256         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
4257         (bypass_block): Save old dest block for dump text.
4258         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4259         Allow only true SET insns, not single_set.
4260
4261 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4262
4263         * diagnostic.c (diagnostic_finish): Rename to output_flush.
4264         (clear_disgnostic_info): Rename to output_clear_data.  Use false
4265         instead of 0 for boolean value.
4266         Adjust function call throughout.
4267
4268 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
4269
4270         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4271         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4272
4273 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4274
4275         * d30v.h (CPP_PREDEFINES): Replace with
4276         (TARGET_CPU_CPP_BUILTINS): New.
4277
4278 2002-06-02  Roger Sayle  <roger@eyesopen.com>
4279
4280         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4281
4282 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
4283
4284         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4285
4286 2002-06-02  Richard Henderson  <rth@redhat.com>
4287
4288         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4289
4290 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4291
4292         Support for C++ constructors/destructors.
4293         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4294         instead of looping if main() returns.
4295         (asm_file_start): Output global symbols that cause .data and .bss
4296         initialization code to be linked in, unconditionally for now.
4297         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4298         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4299         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4300         (LIBSTDCXX): New.
4301         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4302         (__tablejump__): New.
4303         (__do_copy_data, __do_clear_bss): New.
4304         (__do_global_ctors, __do_global_dtors): New.
4305         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4306         _ctors, _dtors.
4307
4308 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4309
4310         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4311         (CPP_SPEC, CPP_PREDEFINES): Kill.
4312         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4313         (TARGET_OS_CPP_BUILTINS): New.
4314
4315 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4316
4317         * Makefile.in (tracer.o): New.
4318         * params.def (TRACER_*): New options.
4319         * rtl.h (tracer): Declare.
4320         * timevar.def (TV_TRACER): New.
4321         * toplev.c (dump_file_index): Add DFI_tracer.
4322         (dump_file_info): Add tracer.
4323         (flag_tracer): New.
4324         (lang_indepdenent_options): Add tracer.
4325         (rest_of_compilation): Call tracer.
4326         * tracer.c: New file.
4327         * invoke.texi (-ftracer): Document.
4328         (--param tracer-*): Document.
4329
4330 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4331
4332         * tree-inline.c (expand_call_inline): Make the statement
4333         expression we generate have a COMPOUND_STMT.
4334
4335 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4336
4337         * gcse.c (cprop_cc0_jump): Function deleted.
4338         (cprop_jump): Take an additional argument which is the possibly
4339         NULL cc setting insn immediately before the conditional jump.
4340         When a MODE_CC set is present, substitute it into the JUMP_INSN
4341         before attempting the constant propagation.
4342         (cprop_insn):  Recognize cc setters followed by conditional jumps
4343         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4344         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4345         (find_bypass_set): New function based upon find_avail_set used by
4346         cprop, but finds constant expressions available at the end of
4347         basic blocks.
4348         (bypass_block): New function.  Given a basic block that begins
4349         with a conditional jump and multiple incoming edges, perform
4350         the jump bypass optimization.
4351         (bypass_conditional_jumps): New function.  Call bypass_block with
4352         each suitable basic block in the CFG using a simple single pass.
4353
4354 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4355
4356         * tree.c (real_minus_onep): New function to test for -1.0.
4357         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4358
4359 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4360
4361         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4362         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4363
4364 2002-06-01  Andreas Jaeger  <aj@suse.de>
4365
4366         * cppexp.c (cpp_classify_number): Cast precission to int for
4367         correct printf format.
4368
4369 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4370
4371         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4372         expected, but don't really exist: atmega83, atmega85, attiny10.
4373         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4374         emulations for all devices.
4375         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4376         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4377
4378 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4379
4380         * config/h8300/h8300-protos.h: Add a prototype for
4381         h8300_shift_needs_scratch_p.
4382         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4383         * config/h8300/h8300.h (OK_FOR_R): New.
4384         (OK_FOR_S): Likewise.
4385         (OK_FOR_T): Likewise.
4386         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4387         * config/h8300/h8300.md (anonymous shift patterns): Use
4388         constraints R, S, and T.
4389
4390 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4391
4392         * basic-block.h (struct basic_block_def): New field loop_father.
4393         (BB_VISITED): New flag.
4394         (struct loop): New field pred, removed field shared.
4395         (struct loops): New field parray.
4396         (LOOP_EXITS_DOMS): Removed.
4397         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4398         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4399         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4400         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4401         verify_loop_structure): Declare.
4402         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4403         * cfganal.c (dfs_enumerate_from): New function.
4404         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4405         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4406         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4407         flow_loop_dump, flow_loops_dump, flow_loops_free,
4408         flow_loop_tree_node_add, flow_loop_level_compute,
4409         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4410         flow_loop_outside_edge_p): Modified for new infrastructure.
4411         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4412         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4413         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4414         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4415         find_common_loop, verify_loop_structure, loop_latch_edge,
4416         loop_preheader_edge): New functions.
4417         (flow_loops_cfg_dump): Do not show dominators, as this information
4418         does not remain up to date long.
4419         (flow_loops_find): Store results in new format.
4420         * predict.c (propagate_freq, estimate_probability,
4421         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4422         infrastructure.
4423
4424 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4425
4426         * except.c (nothrow_function_p): Walk epilogue delay list
4427         checking the insn, not the chain for potential throws.
4428
4429 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4430
4431         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4432         (install): Refer to install-cpp directly.
4433         (uninstall-cpp): Folded into uninstall rule.
4434         * configure.in: Delete all code relating to --disable-cpp.
4435         * configure: Regenerate.
4436         * config/t-install-cpp: Delete.
4437
4438 2002-05-31  Richard Henderson  <rth@redhat.com>
4439
4440         * configure.in (HAVE_AS_TLS): Add alpha tests.
4441         * configure: Rebuild.
4442         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4443         (alpha_tls_size, alpha_tls_size_string): New.
4444         (overide_options): Set it.  Always install machine_status hooks.
4445         (input_operand): Accept got tls predicates.
4446         (local_symbol_p): Merge into ...
4447         (local_symbolic_operand): ... here.  Reject tls symbols.
4448         (global_symbolic_operand): Likewise.
4449         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4450         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4451         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4452         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4453         (alpha_encode_section_info): Handle TLS symbols.
4454         (alpha_strip_name_encoding): Likewise.
4455         (alpha_legitimate_address_p): Likewise.
4456         (alpha_legitimize_address): Likewise.
4457         (alpha_expand_mov): Early exit to avoid nop moves.
4458         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4459         (alpha_init_machine_status, alpha_mark_machine_status,
4460         alpha_free_machine_status): Always define.
4461         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4462         (print_operand, print_operand_address): Add TLS relocs.
4463         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4464         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4465         (TARGET_SWITCHES): Add -mtls-kernel.
4466         (alpha_tls_size, alpha_tls_size_string): New.
4467         (TARGET_OPTIONS): Add -mtls-size=.
4468         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4469         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4470         (ASM_OUTPUT_LABELREF): Skip %.
4471         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4472         (PREDICATE_CODES): Update.
4473         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4474         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4475         UNSPEC_TP, UNSPECV_SET_TP): New.
4476         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4477         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4478         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4479         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4480         (call_value_osf_2_er): Accept anything as op4.
4481         * config/alpha/alpha-protos.h: Update.
4482         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4483
4484 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4485
4486         * cppinit.c (append_include_chain): Always pay attention to
4487         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4488         marker on argument.
4489
4490 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4491
4492         * target.h: Fix formatting.
4493         * timevar.h: Likewise.
4494         * tlink.c: Likewise.
4495         * toplev.c: Likewise.
4496         * toplev.h: Likewise.
4497         * tree.c: Likewise.
4498         * tree-dump.h: Likewise.
4499         * tree.h: Likewise.
4500         * tree-inline.h: Likewise.
4501         * unroll.c: Likewise.
4502         * unwind-dw2.c: Likewise.
4503         * unwind-dw2-fde.c: Likewise.
4504         * unwind-dw2-fde-glibc.c: Likewise.
4505         * unwind-dw2-fde.h: Likewise.
4506         * unwind.h: Likewise.
4507         * unwind-sjlj.c: Likewise.
4508         * varasm.c: Likewise.
4509         * varray.h: Likewise.
4510         * vmsdbg.h: Likewise.
4511         * vmsdbgout.c: Likewise.
4512         * xcoffout.h: Likewise.
4513
4514 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4515
4516         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4517         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4518
4519 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4520
4521         * gcc.c (cpp_unique_options): Remove "-d" options.
4522         (cpp_debug_options): New spec string.
4523         (default_compilers): Use it.
4524         * objc/lang-specs.h: Likewise.
4525
4526 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4527
4528         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4529         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4530         * gcc/mklibgcc.in: Likewise.
4531         * gcc/config/arc/t-arc: Likewise.
4532         * gcc/configure.in: Likewise.
4533         * gcc/configure: Regenerate.
4534
4535 2002-05-31  Stan Shebs  <shebs@apple.com>
4536             Turly O'Connor  <turly@apple.com>
4537
4538         * c-decl.c (struct binding_level): Change int field n_incomplete
4539         to tree list incomplete_list.
4540         (clear_binding_level): Init field with NULL.
4541         (pushdecl): Add incomplete type to list.
4542         (mark_binding_level): Mark the incomplete list.
4543         (finish_struct): Scan the incomplete list for types instead
4544         of all decls in the current binding level.
4545
4546 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4547
4548         * pa.c (output_millicode_call): Add missing '%' characters.
4549         (output_call): Likewise.
4550
4551 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4552
4553         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4554         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4555
4556 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4557
4558         * varasm.c (mark_constant_pool): Walk epilogue delay list
4559         checking the insn, not the chain for potential constants.
4560
4561 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4562
4563         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4564
4565 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4566
4567         * i386.c (classify_argument): Properly handle base types.
4568
4569         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4570         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4571         registers.
4572
4573 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4574
4575         * gcse.c (gcse_emit_move_after): New.
4576         (pre_delete, hoist_store): Use it.
4577
4578         * reload1.c (emit_input_reload_insns): Use constrain_operands
4579         instead of constraint_accepts_reg_p to verify optimization.
4580         (constraint_accepts_reg_p): Kill
4581
4582         * reload1.c (reload_cse_delete_noop_set): Kill.
4583         (reload_cse_simplify): use delte_insn_and_edges.
4584
4585 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4586
4587         * cfgloop.c (flow_loops_find): Initialize first and last fields
4588         correctly.
4589
4590 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4591
4592         * c-common.c (builtin_define_std): Correct logic.
4593
4594 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4595
4596         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4597         (output_call): Likewise.
4598
4599 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4600
4601         * pa.c: Move output.h include after tree.h include.
4602         (pa_asm_output_mi_thunk): Constify identifier lab.
4603
4604 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4605
4606         * config/ns32k/ns32k.h: Define named constants for the
4607         bits in target_flags and use them.
4608         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4609
4610 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4611
4612         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4613         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4614         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4615         default scheduling model.
4616         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4617         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4618         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4619         * doc/install.texi (hppa*-*-*): Document default scheduling.
4620
4621 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4622
4623         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4624
4625 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4626
4627         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4628         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4629         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4630         netbsd.h, or netbsd-aout.h.
4631
4632 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4633
4634         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4635         whitespace in __ns32000__ case.
4636
4637 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4638
4639         * expr.c (expand_expr): Output partially zeroed out vectors with
4640         output_constant_def.
4641
4642 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4643
4644         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4645         (sh-*-netbsdelf*)
4646         (shl*-*-netbsdelf*): New targets.
4647         * config/sh/netbsd-elf.h: New file.
4648         * config/sh/t-netbsd: New file.
4649
4650 2002-05-30  Richard Henderson  <rth@redhat.com>
4651             Eric Botcazou  <ebotcazou@multimania.com>
4652
4653         PR optimization/6822
4654         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4655         to unsigned int for op1 comparisons.  Use gen_int_mode.
4656
4657 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4658
4659         * expmed.c (const_mult_add_overflow_p): New.
4660         * expr.h: Declare it.
4661         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4662         Don't eliminate the biv if the giv has a constant multiplier and
4663         the rhs argument of the comparison does satisfy the predicate.
4664         Use expand_mult_add to compute the replacement constant.
4665
4666 2002-05-30  Osku Salerma  <osku@iki.fi>
4667
4668         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4669         (c_common_get_alias_set): Handle it.
4670         * doc/extend.texi: Document it.
4671
4672 2002-05-30  Richard Henderson  <rth@redhat.com>
4673
4674         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4675         * toplev.c (process_options): Don't check it.
4676         * doc/tm.texi: Don't document it.
4677         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4678         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4679         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4680         frame pointer optimization if current_function_profile.
4681
4682 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4683
4684         * langhooks.c: Fix formatting.
4685         * langhooks.h: Likewise.
4686         * lcm.c: Likewise.
4687         * libgcc2.c: Likewise.
4688         * lists.c: Likewise.
4689         * local-alloc.c: Likewise.
4690         * loop.c: Likewise.
4691         * loop.h: Likewise.
4692
4693 2002-05-30  Marc Espie <espie@openbsd.org>
4694
4695         * config.gcc (sparc64-*-openbsd*): New.
4696         * config/sparc/openbsd1-64.h: New.
4697         * config/sparc/openbsd64.h: New.
4698
4699 2002-05-30  Jeff Law <law@redhat.com>
4700
4701         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4702         a dead insn with a REG_RETVAL note when the entire libcall is not
4703         dead and remove the associated REG_LIBCALL note at the same time.
4704
4705 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4706
4707         * lcm.c (output.h): #include.
4708         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4709         as an ordinary block.
4710         (optimize_mode_switching): Don't pretend that the exit block is
4711         an ordinary block, or handle sucessors of entry block specially.
4712         Instead, split edges from entry block and to exit block, and
4713         put a computing definition on the thus gained post-entry-block,
4714         and a need on the pre-exit-block.
4715
4716 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4717
4718         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4719         * rtl.texi: Document 'B'
4720
4721 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4722
4723         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4724         at run-time.
4725         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4726
4727 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4728
4729         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4730         const0_rtx instead of NULL_RTX when in error.
4731         (altivec_expand_abs_builtin): Same.
4732         (rs6000_expand_binop_builtin): Same.
4733         (altivec_expand_predicate_builtin): Same.
4734         (altivec_expand_stv_builtin): Same.
4735         (rs6000_expand_ternop_builtin): Same.
4736         (altivec_expand_builtin): Same.
4737
4738 2002-05-29  David S. Miller  <davem@redhat.com>
4739
4740         * rtl.h (clear_emit_caches): Delete.
4741         * integrate.c (output_inline_function): Don't call it.
4742         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4743         (clear_emit_caches): Delete definition.
4744         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4745
4746 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4747
4748         * config/mmix/mmix.c: Include real.h.
4749         (mmix_constant_address_p): Remove redundant test before switch.
4750
4751 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4752
4753         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4754         only if not already defined.
4755
4756 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4757
4758         * config/h8300/h8300-protos.h: Remove prototypes for
4759         ok_for_bclr and small_power_of_two.
4760         * config/h8300/h8300.c (small_power_of_two): Remove.
4761         (ok_for_blcr): Likewise.
4762         (fix_bit_operand): Make WHAT deal with an integer instead of a
4763         constraint character.
4764         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4765         (CONST_OK_FOR_P): Likewise.
4766         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4767         CONST_OK_FOR_P any more.
4768         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4769         of fix_bit_operand.
4770         (iorqi3): Likewise.
4771         (xorqi3): Likewise.
4772
4773 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4774
4775         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4776         (CPP_PREDEFINES): Make sure this is undefined.
4777         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4778         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4779         or -U__MIPSEB__ before defining one or the other.  Instead,
4780         use %(subtarget_endian_default) if neither -EB nor -EL are
4781         specified.
4782         (SUBTARGET_EXTRA_SPECS): Define.
4783         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4784         %(netbsd_cpp_spec).
4785
4786 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4787
4788         * doc/md.texi (Patterns): Note pattern condition pitfall
4789         for unnamed insn.
4790
4791 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4792
4793         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4794         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4795         ternary operations from here...
4796         (rs6000_expand_builtin): ...to here.
4797         New argument expandedp.
4798         Change all instances of altivec_expand_binop_builtin to
4799         rs6000_expand_binop_builtin.
4800         (altivec_expand_unop_builtin): Rename to
4801         rs6000_expand_unop_builtin.
4802         (altivec_expand_binop_builtin): Rename to
4803         rs6000_expand_binop_builtin.
4804         (altivec_expand_ternop_builtin): Rename to
4805         rs6000_expand_ternop_builtin.
4806
4807 2002-05-29  Richard Henderson  <rth@redhat.com>
4808
4809         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4810         (TARGET_BI_ARCH): Likewise.
4811         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4812         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4813         (TARGET_64BIT_DEFAULT): Default to 0.
4814         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4815
4816 2002-05-29  Richard Henderson  <rth@redhat.com>
4817
4818         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4819         (get_pc_thunk_name): New.
4820         (output_set_got): Use it.
4821         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4822         into linkonce sections.
4823
4824 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4825
4826         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4827         (CPP_PREDEFINES): Make sure this is undefined.
4828         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4829         (CPP_SUBTARGET_SPEC): Don't provide different versions for
4830         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
4831         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4832         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
4833         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4834         (CPP_PREDEFINES): Make sure this is undefined.
4835         (SUBTARGET_EXTRA_SPECS): Define.
4836         (CPP_SPEC): Use %(netbsd_cpp_spec).
4837
4838 2002-05-29  Jeff Law <law@redhat.com>
4839
4840         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4841
4842         * flow.c (propagate_one_insn): Do not remove a dead insn if it
4843         contains a REG_RETVAL note.
4844
4845         * haifa-sched (sched_analyze): Remove another useless clearing
4846         of SCHED_GROUP_P I missed yesterday.
4847
4848         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4849         * pa.c (pa_asm_output_mi_thunk): New function.
4850         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4851
4852 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4853             Marek Michalkiewicz  <marekm@amelek.gda.pl>
4854
4855         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4856         (avr_asm_only_p): Make non-static.
4857         (enum avr_arch): Remove.
4858         (avr_arch_types): New.
4859         (avr_mcu_types): Update.
4860         (avr_override_options): Use avr_arch_types table instead of switch.
4861         * avr.h (CPP_PREDEFINES): Die.
4862         (avr_base_arch_macro, avr_extra_arch_macro): New.
4863         (TARGET_CPU_CPP_BUILTINS): New.
4864         (CPP_SPEC, EXTRA_SPECS): Simplify.
4865         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4866         CPP_AVR5_SPEC): Die.
4867
4868 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4869
4870         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4871         NETBSD_OS_CPP_BUILTINS_AOUT.
4872         (SUBTARGET_EXTRA_SPECS): Define.
4873         (CPP_SPEC): Use %(netbsd_cpp_spec).
4874
4875 2002-05-29  Richard Henderson  <rth@redhat.com>
4876
4877         * config/i386/i386.c (ix86_output_function_epilogue): New.
4878         (TARGET_ASM_FUNCTION_EPILOGUE): New.
4879         (pic_label_name): Remove.
4880         (pic_labels_used): New.
4881         (ix86_asm_file_end): Emit one pc load stub for each register used.
4882         (output_set_got): Generate deep pc load to any register.
4883         (ix86_select_alt_pic_regnum): New.
4884         (ix86_save_reg): Don't save pic register if we can find a valid
4885         call-clobbered replacement.
4886         (ix86_expand_prologue): If we found a valid replacement, renumber
4887         pic_offset_table_rtx.
4888         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4889         pic_offset_table_rtx after reload.
4890         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4891         * config/i386/i386.md (set_got): Make insn, not expander.
4892         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4893
4894 2002-05-29  Richard Henderson  <rth@redhat.com>
4895
4896         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4897         alignment for alloca.
4898
4899 2002-05-29  Richard Henderson  <rth@redhat.com>
4900
4901         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4902         (print_operand_address): Only add rip for symbolic addresses
4903         for which we do not have another relocation type.
4904
4905 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4906
4907         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4908         (EXTRA_SPECS): Add netbsd_cpp_spec.
4909         (CPP_SPEC): Use %(netbsd_cpp_spec).
4910         (CPP_PREDEFINES): Remove.
4911         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4912         (EXTRA_SPECS): Define.
4913         (CPP_SPEC): Use %(netbsd_cpp_spec).
4914         (CPP_PREDEFINES): Remove.
4915
4916 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4917
4918         PR preprocessor/6844
4919         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4920         NUL.
4921
4922 2002-05-29  Eric Christopher  <echristo@redhat.com>
4923
4924         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4925         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4926
4927 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
4928
4929         * config/fr30/fr30.md: Remove previous restriction on splits.
4930         Enforce conformance through gen_lowpart and cont_int_operand.
4931         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4932         as the assembler does not support ".bss".
4933
4934 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4935
4936         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4937         (CPP_PREDEFINES): Remove.
4938         (SUBTARGET_EXTRA_SPECS): Define.
4939         (CPP_SPEC): Use %(netbsd_cpp_spec).
4940         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4941         (CPP_PREDEFINES): Remove.
4942         (SUBTARGET_EXTRA_SPECS): Define.
4943         (CPP_SPEC): Use %(netbsd_cpp_spec).
4944         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4945         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4946         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4947         Add netbsd_cpp_spec.
4948         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4949
4950 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4951             Zack Weinberg <zack@codesourcery.com>
4952
4953         * cppexp.c (cpp_num): Move to cpplib.h.
4954         (CPP_ERROR): Remove.
4955         (interpret_float_suffix, interpret_int_suffix): New.
4956         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4957         (cpp_classify_number, cpp_interpret_integer): New.
4958         (interpret_number): Remove.
4959         (eval_token): Update to use new routines.
4960         * cpphash.h (cpp_num_part): Move to cpplib.h.
4961         * cppinit.c (cpp_post_options): Set warn_long_long.
4962         * cpplib.h (struct cpp_options): Add warn_long_long.
4963         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4964         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4965         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4966         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4967         cpp_interpret_integer): New.
4968
4969 2002-05-29  Joel Sherrill <joel@OARcorp.com>
4970
4971         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4972
4973 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4974
4975         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4976         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4977         (CPP_SUBTARGET_SPEC): Define.
4978         (SUBTARGET_EXTRA_SPECS): Define.
4979         (CPP_SPEC): Remove.
4980
4981 2002-05-29  Chris Lattner  <sabre@nondot.org>
4982
4983         * ssa.c (rename_insn_1): Rename uses of undefined registers to
4984         prevent confusion if/when the register is defined.
4985
4986 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4987
4988         PR target/6838
4989         * config/cris/cris.md: Fix typos and thinkos in comments.
4990         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4991         second alternative.
4992         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4993         ("*mov_sideqi_mem"): Similar, but for operand 3.
4994         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4995         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4996         Remove spurious mode specifier on operand 2.
4997
4998 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4999
5000         * config/h8300/h8300-protos.h: Remove the prototype for
5001         o_operand.
5002         Add prototypes for single_one_operand and single_zero_operand.
5003         * config/h8300/h8300.c (o_operand): Remove.
5004         (single_one_operand): New.
5005         (single_zero_operand): Likewise.
5006         (print_operand): For 'V' operand, and the operand with 0xff.
5007         For 'V' and 'W' operands, do not and the bit position with 7.
5008         * config/h8300/h8300.md (various anonymous patterns): Replace
5009         use of exact_log2 with single_one_operand/single_zero_operand.
5010
5011 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
5012
5013         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
5014
5015 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
5016
5017         * config/s390/s390.c (legitimate_pic_operand_p): Do not
5018         accept symbolic LARL operands.
5019         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
5020         epilogue insns.
5021
5022 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
5023
5024         * config/s390/s390.md (cmpstr_64/31): Mark whole
5025         input registers as used.
5026
5027 2002-05-28  Richard Henderson  <rth@redhat.com>
5028
5029         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
5030         not current_function_uses_pic_offset_table and
5031         current_function_uses_const_pool; examine current_function_profile.
5032         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
5033         input to blockage if needed.
5034         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
5035         (legitimize_pic_address): Likewise.  Set regs_ever_live for
5036         pic_offset_table_rtx when invoked during reload.
5037         * config/i386/i386.h (FINALIZE_PIC): Remove.
5038         * config/i386/i386.md (tablejump): Reformat.  Do not set
5039         current_function_uses_pic_offset_table.
5040         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
5041         (blockage): Accept anything as operand 0.
5042
5043 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
5044
5045         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
5046         common CPP built-ins for all NetBSD a.out targets.
5047         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
5048         common CPP built-ins for all NetBSD ELF targets.
5049         * config/netbsd.h: Add missing notice.
5050         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
5051         for all NetBSD targets.
5052         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
5053         for all NetBSD targets using an LP64 code model.
5054         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
5055         NetBSD targets.
5056
5057 2002-05-28  Richard Henderson  <rth@redhat.com>
5058
5059         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
5060         update if UPDATE_LIFE_LOCAL.
5061
5062 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5063
5064         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
5065
5066 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5067                           Jason R. Thorpe <thorpej@wasabisystems.com>
5068
5069         config/sh reorganization to factor out endianness and coff:
5070
5071         * config/sh/little.h: New file.
5072         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
5073         defined, define to 0 to select big-endian.
5074         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
5075         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5076         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5077         * config/sh/t-be: New file.
5078         * config/sh/t-le: New file.
5079
5080         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
5081         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
5082         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
5083         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
5084         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5085         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5086         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
5087         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
5088         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
5089         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
5090         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
5091         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
5092         (LINK_SPEC): Define to SH_LINK_SPEC.
5093         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
5094         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
5095         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5096         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
5097         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
5098         * config/sh/coff.h: New file.
5099         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
5100         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5101         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
5102         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
5103         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
5104         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
5105         (PTRDIFF_TYPE): Likewise.
5106         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
5107         (CPP_PREDEFINES): Don't define.
5108         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5109         (LINK_SPEC): Define to SH_LINK_SPEC.
5110         (LINK_EMUL_PREFIX): Redefine.
5111         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
5112         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
5113         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
5114         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5115         (TARGET_OS_CPP_BUILTINS): Define.
5116         (TARGET_DEFAULT): Redefine.
5117         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5118         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5119         (LINK_SPEC): Don't redefine.
5120         (LINK_DEFAULT_CPU_EMUL): Redefine.
5121         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5122         * sh.c (sh_asm_named_section): Don't declare / define.
5123         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5124         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5125         (sh64-*-elf* tm_file): Likewise.
5126         (sh-*-rtemself* tm_file): Likewise.
5127         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
5128         (sh-*-linux* tmake_file): Add sh/t-le.
5129         (sh-*-rtems* tm_file): Add sh/coff.h
5130         (sh-*-* tm_file): Likewise.
5131
5132 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5133
5134         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5135         CONSTANT_POOL_ADDRESS_P.
5136
5137         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5138
5139 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
5140             Jeff Law <law@redhat.com>
5141
5142         * optabs.c (expand_binop): Fix nwords sign warnings.
5143         generate pseudo for add_optab.
5144
5145         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5146         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5147
5148 2002-05-28      Marc Espie <espie@openbsd.org>
5149
5150         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
5151         inherited from gas.h.
5152         (ASM_QUAD):  Undef.  OpenBSD does not support it.
5153
5154 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
5155
5156         * doc/install.texi (binaries): Change mingw binaries
5157         link to www.mingw.org.
5158
5159 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5160
5161         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5162
5163 2002-05-28  Richard Henderson  <rth@redhat.com>
5164
5165         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5166         bottom alignment for leaf functions.
5167
5168 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5169
5170         * config/pa/milli32.S, config/pa/lib1funcs.asm,
5171         config/sparc/sol2-g1.asm: Delete unused files.
5172
5173 2002-05-28  Richard Henderson  <rth@redhat.com>
5174
5175         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5176
5177         * flow.c (calculate_global_regs_live): Rename call_used to
5178         invalidated_by_call.  Initialize from regs_invalidated_by_call
5179         instead of call_used_regs.
5180
5181         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5182         DECL_EXTERNAL.
5183
5184 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5185
5186         * tree.h: Don't include real.h.
5187         Forward-declare struct realvaluetype.
5188         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5189         contain it.
5190         (TREE_REAL_CST_PTR): New accessor.
5191         (TREE_REAL_CST): Update.
5192         * real.h: Include machmode.h.
5193         (realvaluetype): Make it struct realvaluetype, not a typedef.
5194         (build_real): Prototype here.
5195
5196         * tree.c: Include real.h.
5197         (build_real): Allocate the REAL_VALUE_TYPE as a separate
5198         object in GC memory, set TREE_REAL_CST_PTR to point to it.
5199         (build_real_from_int_cst): Use build_real.
5200         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5201         REAL_CST.
5202
5203         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5204         fold-const.c, print-tree.c, real.c: Include real.h.
5205         * Makefile.in: Update dependency lists.
5206
5207 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5208
5209         * basic-block.h (last_basic_block): Declare.
5210         (expunge_block_nocompact): Declaration removed.
5211         (compact_blocks): Declare.
5212         * cfg.c (last_basic_block): New variable.
5213         (expunge_block_nocompact): Removed.
5214         (expunge_block): Do not compact basic blocks.
5215         (compact_blocks): New.
5216         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5217         longer change.
5218         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5219         last_basic_block.
5220         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5221         real positions of blocks.
5222         (delete_unreachable_blocks): Simplified -- quadratic behavior now
5223         cannot occur.
5224         (cleanup_cfg): Compact blocks.
5225         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5226         basic_block_info varray.
5227         (flow_delete_block): Comment update.
5228         (back_edge_of_syntactic_loop_p): Modify position check code.
5229         (verify_flow_info): Update checking.
5230         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5231         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5232         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5233         indices no longer change.
5234         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5235         last_basic_block.
5236         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5237         * profile.c (branch_prob): Compact blocks.
5238         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5239         last_basic_block.
5240
5241 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
5242
5243         * config/h8300/h8300.md (two anonymous patterns): New.
5244
5245 2002-05-28  David S. Miller  <davem@redhat.com>
5246
5247         * config/sparc/sparc.md (cpu): Tidy.
5248         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5249         'trap'.
5250         (in_call_delay): Delete reference to 'return' type.
5251         (eligible_for_return_delay, in_return_delay, define_delay
5252         referencing those): Delete.
5253         (rest of file): Use new type attributes as appropriate.
5254         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5255         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5256         * config/sparc/ultra1_2.md (us1_single): New reservation.
5257         (us1_ialuX): Likewise.
5258         * config/sparc/ultra3.md (us3_single): Likewise.
5259         (us3_ialuX): Likewise.
5260         (us3_imul, us3_idiv): Tweak.
5261
5262 2002-05-28  Richard Henderson  <rth@redhat.com>
5263
5264         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5265         STRING_CST.
5266
5267 2002-05-28  Richard Henderson  <rth@redhat.com>
5268
5269         * config.gcc: Obsolete mn10200.
5270
5271 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5272
5273         * cppexp.c (interpret_number): Optimize for single-digit
5274         and less-than-half-precision cases.
5275         (num_trim, num_positive, num_div_op): Cast constants.
5276
5277 2002-05-27  Bo Thorsen  <bo@suse.de>
5278
5279         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5280         3.1 branch. The file was made by Jakub Jelinek.
5281         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5282         support so multilib doesn't break. And don't define this at all
5283         when -Dinhibit_libc is used.
5284         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5285         * config/i386/t-linux64: Implement full multilib support. Patch
5286         originally done by Andreas Jaeger and Jakub Jelinek.
5287
5288 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5289
5290         * c-common.c: Add support for __attribute__((nothrow)) to specify
5291         that a function cannot throw an exception (using TREE_NOTHROW).
5292         (handle_nothrow_attribute): New function to process this attribute.
5293
5294         * doc/extend.texi: Document the new nothrow function attribute.
5295
5296 2002-05-27  H.J. Lu  (hjl@gnu.org)
5297
5298         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5299         (num_positive): Likewise.
5300         (num_div_op): Likewise.
5301
5302 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5303
5304         * c-common.c (c_common_init): Always use intmax_t.
5305
5306 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5307
5308         * c-common.c (c_common_init): Use intmax_t for now.
5309
5310 2002-05-24  Andrew Haley  <aph@redhat.com>
5311
5312         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5313         if T is a boolean type.
5314
5315 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5316
5317         * basic-block.h (last_basic_block): Defined as synonym for
5318         n_basic_blocks.
5319         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5320         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5321         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5322         n_basic_blocks with last_basic_block.
5323         * cfgbuild.c (make_edges): Likewise.
5324         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5325         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5326         * combine.c (combine_instructions): Likewise.
5327         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5328         iterative_dataflow_bitmap): Likewise.
5329         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5330         calc_idoms, idoms_to_doms): Likewise.
5331         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5332         Likewise.
5333         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5334         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5335         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5336         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5337         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5338         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5339         compute_store_table, build_store_vectors): Likewise.
5340         * haifa-sched.c (sched_init): Likewise.
5341         * ifcvt.c (if_convert): Likewise.
5342         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5343         pre_edge_lcm, compute_available, compute_nearerout,
5344         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5345         Likewise.
5346         * predict.c (estimate_probability, process_note_prediction,
5347         note_prediction_to_br_prob): Likewise.
5348         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5349         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5350         * regrename.c (copyprop_hardreg_forward): Likewise.
5351         * resource.c (init_resource_info): Likewise.
5352         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5353         init_regions, schedule_insns): Likewise.
5354         * ssa-ccp.c (ssa_const_prop): Likewise.
5355         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5356         * ssa.c (compute_dominance_frontiers,
5357         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5358
5359         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5360         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5361         sizes consistently.
5362
5363 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5364
5365         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5366         new.
5367         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5368         hoist_insn_after, hoist_insn_to_edge): New.
5369
5370 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5371
5372         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5373         (PROP_FINAL): Include.
5374         * flow.c (life_analysis, update_life_info,
5375         init_propagate_block_info, mark_set_1, mark_used_rgs):
5376         Support SCAN_DEAD_STORE.
5377
5378 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5379
5380         * c-common.c (c_common_init): Set CPP arithmetic precision.
5381         * cppexp.c (cpp_num_part): Move typedef ...
5382         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5383         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5384         (sanity_checks): Update.
5385
5386 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5387
5388         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5389         (mkheaders): New rule.
5390         (install-mkheaders): New rule.
5391         * configure.in (all_outputs): Add mkheaders.
5392         * configure: Regenerate.
5393         * mkheaders.in: New file.
5394
5395 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5396
5397         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5398
5399 2002-05-26  Andreas Jaeger  <aj@suse.de>
5400
5401         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5402
5403 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5404
5405         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5406         right_shift): Remove.
5407         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5408         HIGH_PART): New.
5409         (struct op): Use cpp_num.
5410         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5411         num_part_mul, num_unary_op, num_binary_op, num_negate,
5412         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5413         num_div_op, num_lshift, num_rshift, append_digit): New.
5414         (interpret_number, parse_defined, eval_token, reduce): Update
5415         for two-integer arithmetic.
5416         (binary_handler): New typedef.
5417         (optab): Update.
5418         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5419         (_cpp_parse_expr, reduce): Update to handle two-integers.
5420         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5421
5422 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5423
5424         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5425         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5426         branch insn into account, do not assume 1.
5427         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5428         over single word insn.  Handle upper half of I/O space too.
5429         * config/avr/avr.md (*sbrx_branch): Use it.
5430         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5431         (*sbix_branch, *sbix_branch_bit7): Likewise.
5432         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5433         Use RTL peepholes to optimize register operand sign tests.
5434
5435 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5436
5437         * config/avr/avr.c (avr_asm_only_p): New variable.
5438         (avr_override_options): Set it here if AVR1.
5439         (asm_file_start): Test it here, report an error if set.
5440
5441 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5442
5443         * alias.c: Fix formatting.
5444         * attribs.c: Likewise.
5445         * bb-reorder.c: Likewise.
5446         * bitmap.c: Likewise.
5447         * bitmap.h: Likewise.
5448         * builtins.c: Likewise.
5449
5450 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5451
5452         * reload.c (find_valid_class): Accept new argument DEST,
5453         choose class accordingly.
5454         (push_reload): Update callers.
5455
5456 2002-05-26  Andreas Jaeger  <aj@suse.de>
5457
5458         * combine.c (combine_instructions): Do not indent #if for
5459         traditional C.
5460
5461 2002-05-25  Richard Henderson  <rth@redhat.com>
5462
5463         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5464         string for decl_attributes.
5465         (handle_pragma_weak): Call assemble_alias if we're modifying
5466         an existing decl.
5467
5468 2002-05-25  Richard Henderson  <rth@redhat.com>
5469
5470         PR target/6788
5471         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5472         using rtl instead of fprintf.
5473         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5474         * config/sparc/sparc-protos.h: Update.
5475
5476 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5477
5478         * Makefile.in (C_COMMON_H): Fix.
5479         Update other targets.
5480         * c-common.c: Don't include c-lex.h.
5481         (builtin_define_with_value): Make static and prototype.
5482         (builtin_define_std): Move from c-lex.h.
5483         * c-common.h (init_c_lex): Move from c-lex.h.
5484         * c-decl.c: Don't include c-lex.h.
5485         (make_pointer_declarator): Move from c-parse.in.
5486         * c-lex.c: Don't include c-lex.h.
5487         * c-lex.h: Remove.
5488         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5489         (make_pointer_declarator): Move to c-decl.c.
5490         * c-pragma.c: Don't include c-lex.h.
5491         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5492         * c-tree.h (make_pointer_declarator): New.
5493 doc:
5494         * passes.texi, tm.texi: Update.
5495 objc:
5496         * Make-lang.in: Update and correct.
5497         * objc-act.c: Don't include c-lex.h or cpplib.h.
5498 treelang:
5499         * treetree.c: Don't include c-lex.h.
5500 config:
5501         * darwin-c.c: Don't include c-lex.h.
5502         * c4x/c4x-c.c: Don't include c-lex.h.
5503         * c4x/t-c4x: Update.
5504         * i370/i370-c.c: Don't include c-lex.h.
5505         * i370/t-i370: Update.
5506         * i960/i960-c.c: Don't include c-lex.h.
5507         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5508         * i960/t-960bare: Update.
5509         * i960/t-vxworks: Update.
5510         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5511         * rs6000/t-darwin: Update.
5512         * rs6000/t-rs6000-c-rule: Update.
5513         * v850/v850-c.c: Don't include c-lex.h.
5514         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5515
5516
5517 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5518
5519         * tree.def: Fix typos.
5520         * doc/install.texi: Likewise.
5521
5522 2002-05-25  Richard Henderson  <rth@redhat.com>
5523
5524         * configure.in (HAVE_AS_TLS): Add ia64 test.
5525         * configure: Rebuild.
5526         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5527         (override_options): Set it.
5528         (TARGET_HAVE_TLS): New.
5529         (sdata_symbolic_operand): Look for 's'.
5530         (tls_symbolic_operand): New.
5531         (ia64_expand_load_address): Abort for tls symbols.
5532         (gen_tls_get_addr): New.
5533         (gen_thread_pointer): New.
5534         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5535         (rtx_needs_barrier): Add new unspecs.
5536         (ia64_encode_section_info): Handle tls symbols.
5537         (ia64_strip_name_encoding): Strip two encoding chars.
5538         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5539         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5540         (TARGET_OPTIONS): Add tls-size.
5541         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5542         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5543         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5544         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5545         (movsf, movdf): Likewise.
5546         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5547         have a scratch availiable.
5548         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5549         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5550         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5551         * config/ia64/ia64-protos.h: Update.
5552         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5553         sdata_symbolic_operand.
5554         (ASM_OUTPUT_LABELREF): Strip two characters.
5555
5556 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5557
5558         * combine.c (simplify_set): Remove an unnecessary subreg.
5559
5560 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5561
5562         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5563
5564         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5565
5566 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5567
5568         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5569
5570 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5571
5572         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5573         (cond (compare x y) 0) into the equivalent (cond x y).
5574
5575 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5576
5577         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5578
5579 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5580
5581         * config.gcc: Remove all stanzas for previously obsoleted
5582         systems.  Where necessary, add explicit error stanzas to
5583         prevent removed systems from being misidentified as something
5584         else.  Begin a fresh obsoletions list, with the systems that
5585         were reprieved last round.
5586         * doc/install.texi: Remove all mention of dead targets.
5587         * fixinc/mkfixinc.sh: Likewise.
5588
5589         * config/arm/arm.h: Bit 31 of target_flags is no longer
5590         reserved.
5591
5592         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5593         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5594         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5595         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5596         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5597         config/alpha/osf12.h, config/alpha/osf2or3.h,
5598         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5599         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5600         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5601         config/clipper/clipper.h, config/clipper/clipper.md,
5602         config/clipper/clix.h, config/convex/convex-protos.h,
5603         config/convex/convex.c, config/convex/convex.h,
5604         config/convex/convex.md, config/convex/fixinc.convex,
5605         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5606         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5607         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5608         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5609         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5610         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5611         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5612         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5613         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5614         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5615         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5616         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5617         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5618         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5619         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5620         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5621         config/m68k/altos3068.h, config/m68k/apollo68.h,
5622         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5623         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5624         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5625         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5626         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5627         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5628         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5629         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5630         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5631         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5632         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5633         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5634         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5635         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5636         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5637         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5638         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5639         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5640         config/mips/dec-osf1.h, config/mips/elflorion.h,
5641         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5642         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5643         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5644         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5645         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5646         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5647         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5648         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5649         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5650         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5651         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5652         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5653         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5654         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5655         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5656         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5657         Delete file.
5658
5659 2002-05-24  Richard Henderson  <rth@redhat.com>
5660
5661         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5662         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5663         * config/i386/i386.c (tls_model_chars): Add leading space.
5664         (tls_symbolic_operand): Don't bias by 1.
5665         (legitimize_address): Don't unbias by 1.
5666
5667 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5668
5669         * lcm.c (optimize_mode_switching): Change bb used as indices
5670         to bb->index.
5671
5672 2002-05-24  Richard Henderson  <rth@redhat.com>
5673
5674         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5675         of update_life_info_in_dirty_blocks.
5676
5677 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5678
5679         PR other/6782
5680         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5681
5682 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5683
5684         PR preprocessor/6780
5685         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5686
5687 2002-05-24  Jim Blandy  <jimb@redhat.com>
5688
5689         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5690         entry with a type code of zero, marking the end of the compilation
5691         unit's macro info.
5692
5693 2002-05-24  Richard Henderson  <rth@redhat.com>
5694
5695         * varasm.c (asm_output_bss): Always output one byte.
5696         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5697
5698 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5699
5700         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5701         namespace.
5702
5703 2002-05-24  Andreas Jaeger  <aj@suse.de>
5704
5705         * ggc-page.c (alloc_page): Cast variables of type size_t to
5706         unsigned long, adjust printf format string.
5707         (ggc_alloc): Likewise.
5708         (ggc_print_statistics): Likewise.
5709         (ggc_print_statistics): Correct printf format string for SCALE to
5710         use unsigned long.
5711
5712 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5713
5714         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5715
5716 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5717             Zack Weinberg     <zack@codesourcery.com>
5718
5719         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5720         quoted strings.
5721         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5722         directive in assembly file.
5723         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5724         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5725         * config/pj/pj.h (ASM_FILE_START): Likewise.
5726         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5727         * config/avr/avr.c (asm_file_end): Likewise.
5728         * toplev.c (output_quoted_string): Handle possibly signed plain
5729         char.
5730         * toplev.h (output_clean_symbol_name): Declare
5731         * toplev.c (output_clean_symbol_name): Define.
5732         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5733         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5734
5735 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5736
5737         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5738
5739 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5740
5741         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5742         of size of unsigned.
5743
5744 2002-05-23  Richard Henderson  <rth@redhat.com>
5745
5746         * configure.in (HAVE_AS_TLS): New test.
5747         * config.in, configure: Rebuild.
5748         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5749         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5750         (override_options): Set it.
5751         (tls_model_chars, tls_symbolic_operand): New.
5752         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5753         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5754         (local_exec_symbolic_operand): New.
5755         (get_pic_label_name): Merge into output_set_got.
5756         (ix86_asm_file_end): Emit pic_label_name if defined.
5757         (legitimate_constant_p, constant_address_p): New.
5758         (legitimate_pic_operand_p): New.
5759         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5760         (legitimate_address_p): Likewise.
5761         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5762         (ix86_strip_name_encoding): New.
5763         (get_thread_pointer): New.
5764         (legitimize_address): Handle tls symbols.
5765         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5766         Remove UNSPEC_PLT.
5767         (struct machine_function): Add some_ld_name.
5768         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5769         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5770         (output_addr_const_extra): New.
5771         (maybe_get_pool_constant): New.
5772         (ix86_split_to_parts): Use it.
5773         (ix86_expand_move): Handle tls symbols.
5774         (ix86_tls_get_addr): New.
5775         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5776         (TARGET_OPTIONS): Add tls-dialect.
5777         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5778         (LEGITIMATE_CONSTANT_P): Likewise.
5779         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5780         (TARGET_STRIP_NAME_ENCODING): New.
5781         (ASM_OUTPUT_LABELREF): New.
5782         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5783         (OUTPUT_ADDR_CONST_EXTRA): New.
5784         (PREDICATE_CODES): Update.
5785         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5786         * config/i386/i386.md: Regroup and renumber unspec constants.
5787         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5788         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5789         (tls_global_dynamic, tls_local_dynamic_base): New.
5790         (tls_local_dynamic_once): New.
5791         * config/i386/i386-protos.h: Update.
5792
5793 2002-05-23  Richard Henderson  <rth@redhat.com>
5794
5795         * genemit.c (gen_insn): Print file:lineno comment before function.
5796         (main): likewise.
5797         * gensupport.c (struct queue_elem): Add filename member.
5798         (queue_pattern): Initialize it; update all callers.
5799         (process_include): Don't free filename.
5800         (read_md_rtx): Set read_rtx_filename.
5801
5802 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5803
5804         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5805
5806 2002-05-23  Richard Henderson  <rth@redhat.com>
5807
5808         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5809
5810 2002-05-23  Richard Henderson  <rth@redhat.com>
5811
5812         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5813         commentary from Mark.
5814
5815 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5816
5817         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5818         Use FOR_EACH_BB macros to iterate over basic block chain.
5819         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5820         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5821         Likewise.
5822         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5823         find_unreachable_blocks, create_edge_list, verify_edge_list,
5824         remove_fake_edges, add_noreturn_fake_exit_edges,
5825         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5826         Likewise.
5827         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5828         find_sub_basic_blocks): Likewise.
5829         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5830         Likewise.
5831         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5832         Likewise.
5833         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5834         Likewise.
5835         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5836         commit_edge_insertions, commit_edge_insertions_watch_calls,
5837         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5838         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5839         * conflict.c (conflict_graph_compute): Likewise.
5840         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5841         df_modified_p, df_refs_unlink, df_dump): Likewise.
5842         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5843         * final.c (compute_alignments): Likewise.
5844         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5845         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5846         count_or_remove_death_notes): Likewise.
5847         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5848         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5849         classic_gcse, compute_transp, cprop, compute_pre_data,
5850         compute_transpout, invalidate_nonnull_info,
5851         delete_null_pointer_checks_1, delete_null_pointer_checks,
5852         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5853         compute_store_table, build_store_vectors, store_motion): Likewise.
5854         * global.c (global_conflicts, mark_elimination): Likewise.
5855         * graph.c (print_rtl_graph_with_bb): Likewise.
5856         * haifa-sched.c (sched_init): Likewise.
5857         * ifcvt.c (if_convert): Likewise.
5858         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5859         compute_available, compute_nearerout, compute_rev_insert_delete,
5860         optimize_mode_switching): Likewise.
5861         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5862         * predict.c (estimate_probability, note_prediction_to_br_prob,
5863         propagate_freq, counts_to_freqs, expensive_function_p,
5864         estimate_bb_frequencies): Likewise.
5865         * profile.c (instrument_edges, get_exec_counts,
5866         compute_branch_probabilities, compute_checksum, branch_prob,
5867         find_spanning_tree): Likewise.
5868         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5869         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5870         Likewise.
5871         * regclass.c (scan_one_insn, regclass): Likewise.
5872         * regmove.c (mark_flags_life_zones, regmove_optimize,
5873         record_stack_memrefs): Likewise.
5874         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5875         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5876         * resource.c (find_basic_block): Likewise.
5877         * sched-ebb.c (schedule_ebbs): Likewise.
5878         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5879         find_single_block_region, find_rgns, schedule_insns)
5880         * sibcall.c (optimize_sibling_and_tail_recursive_call)
5881         * ssa-ccp.c (optimize_unexecutable_edges,
5882         ssa_ccp_df_delete_unreachable_insns): Likewise.
5883         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5884         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5885         rename_block, convert_to_ssa, compute_conservative_reg_partition,
5886         compute_coalesced_reg_partition, rename_equivalent_regs,
5887         convert_from_ssa): Likewise.
5888         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5889         process_for_unwind_directive): Likewise.
5890
5891         * df.c (FOR_ALL_BBS): Removed.
5892         * gcse.c (struct null_pointer_info): Type of current_block field
5893         changed.
5894         (struct reg_avail_info): Type of last_bb field changed.
5895         * config/ia64/ia64.c (block_num): Removed.
5896         (need_copy_state): Type changed.
5897         (last_block): New.
5898
5899 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5900
5901         * cppinit.c (mark_named_operators): Split out from init_builtins.
5902         (cpp_finish_options): Call it from here instead.
5903
5904 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5905
5906         * builtin-attrs.def: Update copyright years.
5907         (ATTR_NONNULL): New attribute identifier.
5908         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5909         attribute tree lists.
5910         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5911         format operand.
5912         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5913         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5914         attribute lists.  Chain the appropriate nonnull attribute.
5915         * c-format.c (check_format_arg): Remove null format string
5916         warning.
5917         * testsuite/gcc.dg/format/null-1.c: New test.
5918
5919 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5920
5921         * Makefile.in (ADAC): Define.
5922         (SYSLIBS): Define.
5923         (.SUFFIXES): Move before language makefile fragments.
5924         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5925
5926 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
5927
5928         * varasm.c (make_decl_rtl): Don't allow weak variables to be
5929         placed in common.
5930
5931 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5932
5933         * cfg.c (dump_flow_info): Print results of
5934         maybe_hot/probably_never_executed predicates.
5935         * toplev.c (open_dump_file): Print function frequency.
5936
5937 2002-05-23  David S. Miller  <davem@redhat.com>
5938
5939         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5940         regsets.
5941
5942 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5943
5944         * c-common.c (warn_nonnull): Declare.
5945         (c_common_attribute_table): Add "nonnull" attribute.
5946         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5947         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5948         check_function_arguments_recurse): New functions.
5949         * c-common.h (warn_nonnull): Declare extern.
5950         (check_function_arguments, check_function_arguments_recurse): New
5951         prototypes.
5952         * c-decl.c (c_decode_option): Add -Wnonnull option.
5953         * c-format.c (set_Wformat): Set warn_nonnull if enabling
5954         format checking.
5955         (format_check_context): New structure.
5956         (check_format_info_recurse): Remove recursion and rename to...
5957         (check_format_arg): ...this.  Update comment.
5958         (check_format_info): Use check_function_arguments_recurse.
5959         * c-typeck.c (build_function_call): Call check_function_arguments
5960         instead of check_function_format.
5961         * doc/extend.texi: Document "nonnull" attribute.
5962         * doc/invoke.texi: Docuemnt -Wnonnull option.
5963         * testsuite/gcc.dg/nonnull-1.c: New test.
5964         * testsuite/gcc.dg/nonnull-2.c: New test.
5965
5966 2002-05-23  David S. Miller  <davem@redhat.com>
5967
5968         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5969         * cfgcleanup.c (cleanup_cfg): If it is set do not
5970         attempt to delete trivially dead insns.
5971         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5972         * toplev.c (rest_of_compilation): Document non-trivial aspect
5973         the RTL before optimize_save_area_alloca is run.
5974
5975 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5976
5977         * c-lex.c (indent_level): Remove.
5978         (cb_file_change, c_lex): Remove indent level handling.
5979         * c-lex.h (indent_level): Remove.
5980         * input.h (struct file_stack): Remove indent_level.
5981         * toplev.c (push_srcloc): Remove indent_level handling.
5982
5983 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5984
5985         PR target/6753
5986         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5987         of x in constraints for clarity.
5988         (sse_mov?fcc split): abort if op2 == op3.
5989         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5990         sse_movsfcc_const0_4): Add earlyclobber.
5991         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5992         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
5993         Use Y instead of x in constraints.
5994
5995 2002-05-23  Richard Henderson  <rth@redhat.com>
5996
5997         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5998         (C++98 Thread-Local Edits): New subsection.
5999
6000         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
6001         (ix86_arch): Set type to enum processor_type.
6002
6003         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
6004         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
6005
6006 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6007
6008         * configure.in: Fix as version test for binutils 2.12.1 releases
6009         (without dates).
6010         * configure: Rebuilt.
6011
6012 2002-05-23  Richard Henderson  <rth@redhat.com>
6013
6014         * config/i386/i386.c (get_pic_label_name): New.
6015         (load_pic_register): Remove.
6016         (output_set_got): New.
6017         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
6018         * config/i386/i386.md (UNSPEC_SET_GOT): New.
6019         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
6020         (prologue_set_got, prologue_get_pc): Remove.
6021         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
6022         (builtin_setjmp_receiver): Use gen_set_got.
6023         * config/i386/i386-protos.h: Update.
6024
6025 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6026
6027         * gcse.c (hash_expr): Do not use alias set for hashing.
6028
6029 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
6030
6031         * dbxout.c (dbxout_class_name_qualifiers): New function.
6032         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
6033
6034 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6035
6036         * cpperror.c (_cpp_begin_message): No special casing
6037         of CPP_FATAL_LIMIT.
6038         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
6039         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
6040         * cpplib.c (do_include_common): Use DL_ERROR.
6041         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
6042         (DL_ICE): Renumber.
6043         * fix-header.c (read_scan_file): Update.
6044
6045 2002-05-22  Richard Henderson  <rth@redhat.com>
6046
6047         * config/i386/i386.c (ix86_expand_call): New function, extracted
6048         from md call patterns.  Add pic_offset_table_rtx to
6049         CALL_INSN_FUNCTION_USAGE when needed.
6050         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
6051         (call_value_pop, call_value, untyped_call): Likewise.
6052         (call_exp, call_value_exp): Remove.
6053         * config/i386/i386-protos.h: Update.
6054
6055 2002-05-22  Richard Henderson  <rth@redhat.com>
6056
6057         * varasm.c (default_section_type_flags): Check for VAR_DECL
6058         before using DECL_THREAD_LOCAL.
6059
6060 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
6061
6062         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
6063         (STARTFILE_SPEC): Delete PE crt0.o.
6064         * config/rs6000/aix51.h: Same.
6065         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
6066         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
6067         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
6068         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
6069         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
6070
6071 2002-05-22  Richard Henderson  <rth@redhat.com>
6072
6073         * varasm.c (default_section_type_flags): Handle tls data and
6074         default sections.
6075         (default_unique_section): Handle tls sections.
6076
6077 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
6078
6079         * configure.in (CROSS): Define NATIVE_CROSS.
6080         * configure: Regenerate.
6081         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
6082         (startfile_prefix_spec): New var.
6083         (static_specs): Add startfile_prefix_spec.
6084         (do_spec_2): Split out from..
6085         (do_spec): ..here.
6086         (main): Process startfile_prefix_spec.
6087         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
6088         dynamic linker.
6089         (STARTFILE_PREFIX_SPEC): Define.
6090         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
6091         absolute paths.
6092
6093 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6094
6095         * cpperror.c: Fix formatting.
6096         * cppexp.c: Likewise.
6097         * cppfiles.c: Likewise.
6098         * cpphash.c: Likewise.
6099         * cpphash.h: Likewise.
6100         * cppinit.c: Likewise.
6101         * cpplex.c: Likewise.
6102         * cpplib.c: Likewise.
6103         * cppmacro.c: Likewise.
6104         * cppmain.c: Likewise.
6105         * cppspec.c: Likewise.
6106
6107 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6108
6109         * combine.c (force_to_mode): Use gen_int_mode.
6110         Don't clear CONST_INT bits outside of mode.
6111
6112 2002-05-22  Richard Henderson  <rth@redhat.com>
6113
6114         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6115         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6116
6117 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6118
6119         PR c/6643
6120         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6121         if DECL_SIZE_UNIT is INTEGER_CST.
6122
6123 2002-05-22  Richard Henderson  <rth@redhat.com>
6124
6125         * flow.c (life_analysis): Delete broken reg_label check.
6126
6127 2002-05-22  Richard Henderson  <rth@redhat.com>
6128
6129         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6130         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6131
6132 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6133
6134         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6135         (embed-bb.c): New rule.
6136         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6137         * config/sh/embed_bb.c: Delete.
6138
6139 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6140
6141         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6142
6143 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6144
6145         * config/h8300/h8300.md (*andorqi3): New.
6146
6147 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6148
6149         PR preprocessor/6517
6150         * Makefile.in: Update.
6151         * c-common.c (c_common_post_options): Add preprocessor
6152         errors to the error count.
6153         * c-lang.c (c_post_options): Kill.
6154         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6155         * hooks.h: Add header guards.
6156         * langhooks-def.h: Include hooks.h.
6157         (LANG_HOOKS_POST_OPTIONS): Update.
6158         * langhooks.h (struct lang_hooks): Update post_options.
6159         * toplev.c (parse_options_and_default_flags): Update.
6160 objc:
6161         * objc-lang.c (objc_post_options): Kill.
6162         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6163
6164 2002-05-21  Bruce Korb  <bkorb@gnu.org>
6165
6166         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6167         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6168         * fixinc/fixincl.x: regen.
6169
6170 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
6171
6172         * cfgbuild.c: Fix formatting.
6173         * cfg.c: Likewise.
6174         * cfgcleanup.c: Likewise.
6175         * cfglayout.c: Likewise.
6176         * cfgloop.c: Likewise.
6177         * cfgrtl.c: Likewise.
6178
6179 2002-05-21  Richard Henderson  <rth@redhat.com>
6180
6181         * c-common.h (enum rid): Add RID_THREAD.
6182         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6183         (grokdeclarator): Grok __thread.
6184         * c-parse.in (reswords): Add __thread.
6185         (rid_to_yy): Add RID_THREAD.
6186
6187         * tree.h (DECL_THREAD_LOCAL): New.
6188         (struct tree_decl): Add thread_local_flag.
6189         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6190         * tree.c (staticp): TLS variables are not static.
6191
6192         * target-def.h (TARGET_HAVE_TLS): New.
6193         * target.h (have_tls): New.
6194         * output.h (SECTION_TLS): New.
6195         * varasm.c (assemble_variable): TLS variables can't be common for now.
6196         (default_section_type_flags): Handle .tdata and .tbss.
6197         (default_elf_asm_named_section): Handle SECTION_TLS.
6198         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6199
6200         * flags.h (flag_tls_default): Declare.
6201         * toplev.c (flag_tls_default): Define.
6202         (display_help): Display help for it.
6203         (decode_f_option): Set it.
6204
6205         * doc/extend.texi (Thread-Local): New node describing language-level
6206         thread-local storage.
6207         * doc/invoke.texi (-ftls-model): Document.
6208
6209         * fixinc/inclhack.def (thread_keyword): New.
6210         * fixinc/fixincl.x: Rebuild.
6211
6212 2002-05-21  Jeffrey A Law  <law@redhat.com>
6213
6214         * optabs.c (expand_binop): For double-word integer multiplies,
6215         do not compute intermediate results into something that is
6216         not a register (such as a SUBREG or MEM).
6217
6218         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6219         (ix86_sched_reorder): Make sure to initialize scheduling
6220         data even when there's only one insn in the ready queue.
6221
6222 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6223
6224         * genautomata.c (reserv_sets_hash_value): Fix a typo.
6225
6226 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6227
6228         * genautomata.c (reserv_sets_hash_value): Define hash_value as
6229         set_el_t.  Transform the hash value into unsigned.
6230         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6231         (transform_3): Add code to process `(A,B)+(D,E)'.
6232
6233 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
6234
6235         * reload1.c (do_output_reload): Run delete_output_reload
6236         only if optimizing.
6237
6238 2002-05-21  Roger Sayle  <roger@eyesopen.com>
6239
6240         PR middle-end/6600
6241         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6242         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
6243         (can_store_by_pieces): ... and here to limit the largest mode used.
6244         Add a comment to document this function.
6245
6246 2002-05-21  Richard Henderson  <rth@redhat.com>
6247
6248         * flow.c (life_analysis): Fix test for deleted label.
6249
6250 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6251
6252         * doc/tm.texi: Fix typo.
6253
6254 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
6255
6256         * c-common.c (c_common_init): Set options->unsigned_char from
6257         flag_signed_char.
6258         (cb_register_builtins): Define __STRICT_ANSI__ and
6259         __CHAR_UNSIGNED__ here...
6260         * cppinit.c (init_builtins): Not here.
6261         (cpp_create_reader): unsigned_char option defaults to 0, not
6262         !DEFAULT_SIGNED_CHAR.
6263         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6264         and -funsigned-char.
6265
6266         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6267         * cpphash.c (_cpp_init_hashtable): Don't set it.
6268         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6269         directly.  Clarify comment.
6270
6271 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6272
6273         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6274         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
6275         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
6276         BASIC_BLOCK (n_basic_blocks - 1).
6277         * cfganal.c (can_fallthru, flow_call_edges_add,
6278         flow_preorder_transversal_compute): Too.
6279         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6280         find_sub_basic_blocks): Too.
6281         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6282         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6283         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6284         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6285         * combine.c (this_basic_block): Type changed to basic_block.
6286         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6287         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6288         get_last_value, distribute_notes, distribute_links): Too.
6289         * final.c (compute_alignments): Too.
6290         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6291         * function.c (thread_prologue_and_epilogue_insns): Too.
6292         * gcse.c (compute_code_hoist_vbeinout): Too.
6293         * global.c (build_insn_chain): Too.
6294         * ifcvt.c (find_if_block, find_cond_trap): Too.
6295         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6296         * regmove.c (regmove_optimize): Too.
6297         * resource.c (find_basic_block): Too.
6298         * sched-ebb.c (schedule_ebbs): Too.
6299         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6300
6301 2002-05-21  Andreas Jaeger  <aj@suse.de>
6302
6303         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6304
6305 2002-05-21  Richard Henderson  <rth@redhat.com>
6306
6307         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6308         unspec names, not numbers.
6309
6310 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6311
6312         * doc/sourcebuild.texi: Mention snapshot-README and
6313         snapshot-index.html as needing updating for new front ends.
6314
6315 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6316
6317         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6318         disabling checking, and avoid multiple evaluation of RTX.
6319
6320 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6321
6322         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6323         element cached.
6324
6325 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6326
6327         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6328         used.
6329
6330 2002-05-20  David S. Miller  <davem@redhat.com>
6331
6332         * cselib.c (max_value_regs): New.
6333         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6334         adding new entries to the REG_VALUES table and we are dealing with
6335         a hard register.
6336         (clear_table): Initialize it.
6337         (cselib_invalidate_regno): Use it to determine which hard
6338         registers to scan when mode is not VOIDmode.
6339
6340 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6341
6342         * tradcpp.c (fixup_newlines): Use old-style function header.
6343
6344 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6345
6346         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6347
6348 2002-05-20  H.J. Lu  (hjl@gnu.org)
6349
6350         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6351
6352         * config/mips/mips.h (DFMODE_NAN): Defined.
6353         (SFMODE_NAN): Likewise.
6354
6355 2002-05-20  Dale Johannesen  <dalej@apple.com>
6356
6357         * combine.c (cant_combine_insn_p):  Back out my
6358         previous patch.
6359
6360 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6361
6362         * params.c: Fix formatting.
6363         * params.h: Likewise.
6364         * predict.c: Likewise.
6365         * prefix.c: Likewise.
6366         * print-rtl.c: Likewise.
6367         * print-tree.c: Likewise.
6368         * profile.c: Likewise.
6369
6370 2002-05-20  H.J. Lu  (hjl@gnu.org)
6371
6372         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6373
6374 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6375
6376         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6377         switches straight on to the assembler, do not abbreviate them.
6378         * config/arm/elf.h (ASM_SPEC): As above.
6379         * config/arm/semi.h (ASM_SPEC): As above.
6380         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6381         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6382         -mcpu=xscale on to the assembler by default.
6383         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6384
6385 2002-05-20  Richard Henderson  <rth@redhat.com>
6386
6387         * cse.c (canon_hash): Reorder do_not_record test.  Always
6388         allow pic_offset_table_rtx.
6389
6390 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6391
6392         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6393         (expand_binop): Ditto (3 times).
6394
6395 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6396
6397         * Makefile.in (distclean): Remove QMTest stuff.
6398         (QMTEST_PATH): New variable.
6399         (QMTESTFLAGS): Likewise.
6400         (QMTESTRUNFLAGS): Likewise.
6401         (QMTEST): Likewise.
6402         (QMTEST_GPP_TESTS): Likewise.
6403         (QMTEST_DIR): Likewise.
6404         (QMTEST_DIR/context): New target.
6405         (qmtest-g++): Likeise.
6406         (qmtest-gui): Likewise.
6407         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6408
6409 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6410
6411         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6412         an altivec register if TARGET_ALTIVEC.
6413
6414         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6415         to ALTIVEC_VECTOR_MODE.
6416         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6417         (rs6000_va_arg): Vectors may go in registers if they are not
6418         altivec vectors.
6419
6420 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6421
6422         * protoize.c: Fix formatting.
6423
6424 2002-05-19  Richard Henderson  <rth@redhat.com>
6425
6426         * gensupport.c (init_include_reader): Merge into ...
6427         (process_include): ... here.  Simplify composite path creation.
6428         Plug memory leaks.  Fix file/line number tracking.  Do not
6429         process_define_cond_exec.  Return void.
6430         (process_rtx): Don't check process_include return value.
6431
6432 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6433
6434         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6435         fields.
6436         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6437         traversing basic block chain.
6438         (create_basic_block_structure, create_basic_block): Declaration changed.
6439         (link_block, unlink_block): Declare.
6440         * cfg.c (entry_exit_blocks): Initialize new fields.
6441         (link_block, unlink_block): New.
6442         (expunge_block_nocompact): Unlink basic block.
6443         (dump_flow_info): Print prev_bb/next_bb fields.
6444         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6445         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6446         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6447         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6448         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6449         (verify_flow_info): Check that list agrees with numbering.
6450
6451 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6452
6453         * c-common.c (preprocessing_asm): New macro.
6454         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6455 doc:
6456         * tm.texi: Update.
6457 config/alpha:
6458         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6459         (CPP_SPEC): Simplify.
6460         (TARGET_CPU_CPP_BUILTINS): Update.
6461         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6462         (CPP_SPEC): Simplify.
6463         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6464         (TARGET_OS_CPP_BUILTINS): Update.
6465         * osf.h (CPP_XFLOAT_SPEC): Kill.
6466         (TARGET_OS_CPP_BUILTINS): Update.
6467         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6468         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6469         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6470         (TARGET_OS_CPP_BUILTINS): Update.
6471
6472 2002-05-19  Richard Henderson  <rth@redhat.com>
6473
6474         * varasm.c (default_binds_local_p): Fix typo.
6475
6476 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6477
6478         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6479         CONST_INT operand to the correct mode after adding 1 to it.
6480
6481 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6482
6483         * config.gcc (powerpc-wrs-windiss*): New target.
6484
6485 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6486
6487         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6488         (ashrdi3): Use it.
6489
6490 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6491
6492         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6493         alphasort.
6494         * config.in: Regenerated.
6495         * configure: Regenerated.
6496
6497 2002-05-19  Richard Henderson  <rth@redhat.com>
6498
6499         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6500         * target.h (struct gcc_target): Move boolean fields to the end.
6501         Add binds_local_p.
6502         * varasm.c (default_binds_local_p): New.
6503         * output.h: Declare it.
6504
6505         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6506         * config/cris/cris.c (cris_encode_section_info): Likewise.
6507         * config/i386/i386.c (i386_encode_section_info): Likewise.
6508         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6509         * config/sh/sh.c (sh_encode_section_info): Likewise.
6510
6511         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6512         (TARGET_BINDS_LOCAL_P): New.
6513
6514 2002-05-19  Richard Henderson  <rth@redhat.com>
6515
6516         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6517         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6518         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6519
6520         * toplev.c (display_help): Kill -a -ax help.
6521
6522         * config/1750a/1750a.h, config/alpha/alpha.h,
6523         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6524         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6525         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6526         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6527
6528         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6529         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6530
6531         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6532         (ix86_output_function_block_profiler): Kill.
6533         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6534         (m68hc11_function_block_profiler): Kill.
6535         * config/m68hc11/m68hc11-protos.h: Update.
6536         * config/m88k/m88k.c (output_block_profiler): Kill.
6537         (output_function_block_profiler): Kill.
6538         * config/m88k/m88k-protos.h: Update.
6539
6540 2002-05-19  Richard Henderson  <rth@redhat.com>
6541
6542         * system.h (STRIP_NAME_ENCODING): Poison it.
6543         * output.h (STRIP_NAME_ENCODING): Remove.
6544         (default_strip_name_encoding): Declare.
6545         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6546         * target.h (strip_name_encoding): New.
6547         * varasm.c (default_strip_name_encoding): New.
6548
6549         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6550         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6551         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6552         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6553         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6554         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6555         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6556         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6557         config/v850/v850.h: Use the hook, not the macro.
6558
6559         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6560         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6561         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6562         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6563         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6564         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6565         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6566         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6567         config/v850/v850.c, config/v850/v850.h:
6568         Move STRIP_NAME_ENCODING to out-of-line function and add
6569         TARGET_STRIP_NAME_ENCODING.
6570
6571         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6572         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6573         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6574         make function static.
6575
6576         * xcoffout.c: Include target.h
6577         * Makefile.in (xcoffout.o): Update.
6578
6579         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6580         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6581         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6582         reloc argument unused.
6583         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6584
6585         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6586         STRIP_NAME_ENCODING docs.
6587
6588 2002-05-19  Andreas Jaeger  <aj@suse.de>
6589
6590         * gengenrtl.c: Add prototype for excluded_rtx.
6591
6592         * real.h: Add prototype for exact_real_truncate.
6593
6594 2002-05-18  Richard Henderson  <rth@redhat.com>
6595
6596         * system.h (ENCODE_SECTION_INFO): Poison it.
6597         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6598         * target.h (encode_section_info): New.
6599         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6600         * hooks.c (hook_tree_int_void): New.
6601         * hooks.h: Declare it.
6602
6603         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6604         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6605         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6606         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6607         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6608         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6609         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6610         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6611         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6612         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6613         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6614         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6615         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6616         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6617         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6618         referencing existing function.  Make function static.
6619
6620         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6621         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6622         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6623         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6624         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6625         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6626         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6627         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6628         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6629         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6630         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6631         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6632         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6633         Move ENCODE_SECTION_INFO to out-of-line function and add
6634         TARGET_ENCODE_SECTION_INFO.
6635
6636         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6637         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6638
6639         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6640         from SUBTARGET_*
6641         (switch_to_section): Replace in_rdata case with in_readonly_data.
6642
6643         * config/h8300/h8300.c (h8300_encode_label): Make static.
6644         * config/h8300/h8300-protos.h: Update.
6645
6646         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6647         from rs6000_encode_section_info; make static.
6648         (rs6000_xcoff_encode_section_info): New.
6649
6650         * config/v850/v850.c (v850_encode_data_area): Make static.
6651         * config/v850/v850-protos.h: Update.
6652
6653         * config/vax/vax.c: Include flags.h.
6654         (vms_select_section): Fix typo.
6655
6656         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6657         ENCODE_SECTION_INFO docs.
6658
6659 2002-05-18  Richard Henderson  <rth@redhat.com>
6660
6661         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6662         REGISTER_TARGET_PRAGMAS.
6663         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6664
6665         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6666
6667 2002-05-18  Richard Henderson  <rth@redhat.com>
6668
6669         * system.h (SELECT_RTX_SECTION): Poison.
6670         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6671         * target.h (select_rtx_section): New.
6672         * varasm.c (output_constant_pool): Use it.
6673         (default_select_rtx_section, default_elf_select_rtx_section): New.
6674         * output.h: Declare them.
6675
6676         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6677         * config/darwin.c (machopic_select_rtx_section): ... here.
6678         * config/darwin-protos.h: Update.
6679
6680         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6681         * config/nextstep.c (machopic_select_rtx_section): ... here.
6682         (nextstep_select_section): Rename variable to avoid macro clash.
6683         * config/nextstep-protos.h: Update.
6684
6685         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6686         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6687         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6688         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6689         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6690         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6691         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6692         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6693         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6694         (SELECT_RTX_SECTION): Remove.
6695
6696         * config/darwin.h, config/elfos.h, config/nextstep.h,
6697         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6698         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6699         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6700         config/sparc/lynx.h, config/xtensa/xtensa.c
6701         (TARGET_ASM_SELECT_RTX_SECTION): New.
6702
6703         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6704         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6705         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6706         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6707         (ia64_aix_select_rtx_section): New.
6708         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6709         redefining.
6710         * config/mips/mips.c (mips_select_rtx_section): Make static.
6711         Support ELF SHF_MERGE features.
6712         * config/mips/mips-protos.h: Update.
6713         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6714         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6715         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6716         make static, fall back to default_elf_select_rtx_section.
6717         * config/rs6000/rs6000-protos.h: Update.
6718         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6719         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6720         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6721         * config/romp/romp.c (romp_select_rtx_section): New.
6722         * config/s390/s390.c (s390_select_rtx_section): New.
6723         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6724         declarations before target macro definition.
6725         (xtensa_emit_call): Use static buffer.
6726         (xtensa_select_rtx_section): New.
6727         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6728         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6729         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6730
6731         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6732         SELECT_RTX_SECTION docs.
6733
6734 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6735
6736         * i386.md (movsi/movdi): Fix template.
6737         (sse2 patterns): Set attributes consistently.
6738
6739         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6740
6741 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6742
6743         * optabs.c (complex_part_zero_p): New.
6744         * (expand_cmplxdiv_straight): Use it.
6745         * (expand_cmplxdiv_wide): Ditto.
6746         * (expand_binop): Ditto.
6747
6748 2002-05-18  Richard Henderson  <rth@redhat.com>
6749
6750         * final.c (HAVE_READONLY_DATA_SECTION): New.
6751         (shorten_branches): Use it instead of ifdefs.
6752         * varasm.c (enum in_section): Add in_readonly_data.
6753         (text_section, data_section): Tidy.
6754         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6755
6756         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6757         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6758         (READONLY_DATA_SECTION): Don't undef.
6759
6760         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6761         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6762         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6763
6764         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6765         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6766         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6767         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6768
6769         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6770         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6771         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6772         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6773         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6774         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6775         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6776         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6777         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6778
6779         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6780         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6781         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6782         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6783         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6784         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6785
6786         * config/elfos.h, config/netware.h, config/svr3.h,
6787         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6788         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6789         config/h8300/h8300.h, config/i386/i386-interix.h,
6790         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6791         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6792
6793         * config/elfos.h, config/netware.h, config/svr3.h,
6794         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6795         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6796         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6797         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6798
6799         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6800         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6801         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6802         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6803         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6804         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6805         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6806         config/rs6000/sysv4.h, config/v850/v850.h
6807         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6808         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6809
6810         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6811         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6812         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6813         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6814         * config/alpha/alpha.c (alpha_start_function): Likewise.
6815         (alpha_write_linkage): Likewise.
6816         * config/m32r/m32r.c (m32r_select_section): Likewise.
6817         * config/m88k/m88k.c (m88k_select_section): Likewise.
6818         * config/mips/mips.c (mips_select_rtx_section): Likewise.
6819         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6820         (rs6000_elf_select_section): Likewise.
6821         * config/v850/v850.c (v850_select_section): Likewise.
6822
6823         * config/1750a/1750a.h, config/i860/sysv3.h
6824         (READONLY_DATA_SECTION_ASM_OP): New.
6825         READONLY_DATA_SECTION_ASM_OP.
6826         * config/i386/interix.c, config/i386/winnt.c
6827         (i386_pe_unique_section): Always use .rdata prefix.
6828         * config/pa/som.h (readonly_data): Always switch to read-only section.
6829         (READONLY_DATA_SECTION): Predicate on flag_pic.
6830         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6831         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6832         (READONLY_DATA_SECTION): Update.
6833
6834 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
6835
6836         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6837         is used without -Wformat.
6838         * c-common.h (warn_format_zero_length): Declare extern.
6839         * c-decl.c (warn_options): Add "format-zero-length".
6840         * c-format.c (warn_format_zero_length): Declare.
6841         (set_Wformat): Set warn_format_zero_length for -Wformat.
6842         (check_format_info): Only warn about zero-length formats if
6843         warn_format_zero_length is true.  Include the format type
6844         name in the warning message.
6845         * doc/invoke.texi: Document -Wformat-zero-length.
6846         * testsuite/gcc.dg/format/zero-length-1.c: New test.
6847
6848 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
6849
6850         * timevar.c: Fix formatting.
6851         * tlink.c: Likewise.
6852         * toplev.c: Likewise.
6853         * tree-dump.c: Likewise.
6854         * tree-inline.c: Likewise.
6855
6856 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6857
6858         * cppinit.c (cpp_post_options): If preprocessed, turn off
6859         traditional.  If traditional, turn off column numbers.
6860         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6861         * cpptrad.c (handle_newline): Update line_base.
6862         (skip_comment): Handle -Wcomment.
6863
6864 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
6865
6866         * cppinit.c (struct builtin): Remove unused fields.
6867         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6868         (operator_array): New - was second half of builtin_array.
6869         (init_builtins): Simplify loop over builtin_array/operator_array.
6870
6871 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6872
6873         * defaults.h (UNIQUE_SECTION): Remove.
6874         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6875
6876 2002-05-17  Richard Henderson  <rth@redhat.com>
6877
6878         * expr.c (init_expr_once): Don't use start/end_sequence.
6879         Use rtx_alloc instead of emit_insn.
6880         * toplev.c (lang_dependent_init): Run init_expr_once here ...
6881         (lang_independent_init): ... not here.
6882
6883 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6884
6885         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6886
6887 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6888
6889         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
6890         for fixed registers, possibly used for global register variables.
6891         (initial_elimination_offset, avr_output_function_prologue,
6892         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
6893
6894 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6895
6896         * Makefile.in: Update for cpptrad.c.
6897         * cpphash.h (struct cpp_buffer): New members for buffer
6898         overlays.
6899         (struct cpp_reader): New members for traditional output.
6900         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6901         * cppinit.c (cpp_create_reader): Set trad_line.
6902         (cpp_destroy): Free trad_out_base if used.
6903         (cpp_read_main_file): Overlay an empty buffer if traditional.
6904         (cpp_finish_options): Don't do builtins.
6905         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6906         (cpp_handle_option): Handle it.
6907         * cpplex.c (continue_after_nul): New.
6908         (_cpp_lex_direct): Use handle_nul.
6909         * cpplib.h (struct cpp_options): New traditional option.
6910         * cpptrad.c: New file.
6911
6912 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6913
6914         * c-common.c (c_common_init_options): Use C89 for Objective-C,
6915         and set the options flag.
6916         * cppinit.c (lang_flags): Remove objc.
6917         (lang_defaults): Remove OBJC and OBJCXX.
6918         (set_lang): Update.
6919         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6920         (cpp_handle_option): Remove -+ and -lang-objc++.
6921         For ObjC, just set a flag.
6922         (print_help): Update.
6923         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6924
6925 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6926
6927         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6928         bootstrap with -mips3.
6929
6930 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
6931
6932         * final.c: Fix formatting.
6933         * fix-header.c: Likewise.
6934         * flow.c: Likewise.
6935         * fold-const.c: Likewise.
6936         * function.c: Likewise.
6937
6938 2002-05-17  David S. Miller  <davem@redhat.com>
6939
6940         PR c/6689, PR optimization/6615
6941         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6942         and make it a pointer to rtx.  Update comments.
6943         (update_equiv_regs): When scanning for equivalences, record
6944         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
6945         it while making the equiv replacements.
6946
6947 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6948
6949         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6950
6951 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6952
6953         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6954         when encoding visibility into SYMBOL_REF_FLAG.
6955
6956 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
6957
6958         * expr.c (force_operand): Fix reversed move.
6959
6960 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
6961
6962         * doc/install.texi (Testing): Mention two common DejaGnu warnings
6963         that can be ignored.
6964
6965 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6966
6967         * doc/install.texi (Final install): Recommend to install into a
6968         "clean" target directory.
6969
6970 2002-05-17  Richard Henderson  <rth@redhat.com>
6971
6972         * config/ia64/ia64.md: Use braced strings instead of quoted strings
6973         for code blocks.  Tidy whitespace.
6974
6975 2002-05-17  Richard Henderson  <rth@redhat.com>
6976
6977         * hooks.c (hook_tree_bool_false): New.
6978         * hooks.h: Declare it.
6979         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6980         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6981         * target.h (select_section, unique_section): New.
6982         (in_small_data_p): New.
6983         * varasm.c (resolve_unique_section): Use hooks instead of macros.
6984         (variable_section, output_constant_def_contents): Likewise.
6985         (default_select_section, default_unique_section): New.
6986         (categorize_decl_for_section, default_elf_select_section): New.
6987         * output.h: Declare them.
6988
6989         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6990         (TARGET_ASM_SELECT_SECTION): New.
6991         (SELECT_SECTION): Move ...
6992         * config/darwin.c (machopic_select_section): ... here.
6993         * config/darwin-protos.h: Update.
6994
6995         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6996         (SELECT_SECTION): Move ...
6997         * config/nextstep.c (nextstep_select_section): ... here.
6998         * config/nextstep-protos.h: Update.
6999
7000         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
7001         (TARGET_ASM_SELECT_SECTION): New.
7002         * config/svr3.h (SELECT_SECTION): Remove.
7003
7004         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
7005         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
7006         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
7007         (alpha_encode_section_info): Use it.
7008         * config/alpha/alpha-protos.h: Update.
7009         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
7010         (SELECT_SECTION, UNIQUE_SECTION): Remove.
7011         (TARGET_ASM_SELECT_SECTION): New.
7012         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
7013
7014         * config/arm/pe.h (UNIQUE_SECTION): Remove.
7015         (TARGET_ASM_UNIQUE_SECTION): New.
7016
7017         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
7018         (avr_unique_section): Rename from unique_section; make static.
7019         * config/avr/avr-protos.h: Update.
7020         * config/avr/avr.h (UNIQUE_SECTION): Remove.
7021
7022         * config/c4x/c4x.h (SELECT_SECTION): Remove.
7023
7024         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
7025         (TARGET_ASM_UNIQUE_SECTION): New.
7026         * config/i386/i386-interix.h: Likewise.
7027         * config/i386/win32.h: Likewise.
7028         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
7029         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
7030         * config/i386/sco5.h (SELECT_SECTION): Remove.
7031         (TARGET_ASM_SELECT_SECTION): New.
7032         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
7033
7034         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
7035         instead of SELECT_SECTION.
7036         * config/m68k/dpx2.h: Likewise.
7037         * config/rs6000/lynx.h: Likewise.
7038
7039         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7040         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7041         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
7042         (ia64_in_small_data_p): New.
7043         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
7044         (ia64_aix_select_section, ia64_aix_unique_section): New.
7045         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
7046         (SELECT_SECTION, UNIQUE_SECTION): Remove.
7047
7048         * config/m32r/m32r.h (SELECT_SECTION): Remove.
7049         (TARGET_ASM_SELECT_SECTION): New.
7050         * config/m32r/m32r.c (m32r_select_section): Take align argument.
7051         * config/m32r/m32r-protos.h: Update.
7052
7053         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
7054         (SELECT_SECTION): Move ...
7055         * config/m88k/m88k.c (m88k_select_section): ... here.
7056
7057         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
7058         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
7059         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
7060         (mcore_unique_section): Make static.
7061         * config/mcore/mcore-protos.h: Update.
7062
7063         * config/mips/elf.h (UNIQUE_SECTION): Remove.
7064         (TARGET_ASM_UNIQUE_SECTION): New.
7065         * config/mips/elf64.h: Likewise.
7066         * config/mips/iris6gld.h: Likewise.
7067         * config/mips/linux.h: Likewise.
7068         * config/mips/mips-protos.h: Update.
7069         * config/mips/mips.c (mips_select_section): Add align argument.
7070         * config/mips/mips.h (SELECT_SECTION): Remove.
7071         (TARGET_ASM_SELECT_SECTION): New.
7072
7073         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7074         * config/mmix/mmix.c (mmix_select_section): Remove.
7075         (mmix_unique_section): Remove.
7076         * config/mmix/mmix-protos.h: Update.
7077
7078         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
7079         (SELECT_SECTION): Move ...
7080         * config/pa/pa.c (pa_select_section): ... here.
7081         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
7082
7083         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
7084         from rs6000_select_section and make static.
7085         (rs6000_elf_unique_section): Similarly.
7086         (rs6000_xcoff_select_section): From xcoff.h.
7087         (rs6000_xcoff_unique_section): Likewise.
7088         * config/rs6000/rs6000-protos.h: Update.
7089         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7090         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7091         * config/rs6000/xcoff.h: Likewise.
7092
7093         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
7094         (SELECT_SECTION): Move ...
7095         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
7096
7097         * config/v850/v850.h (SELECT_SECTION): Move ...
7098         * config/v850/v850.c (v850_select_section): ... here.
7099         (TARGET_ASM_SELECT_SECTION): New.
7100
7101         * config/vax/vms.h (SELECT_SECTION): Move ...
7102         * config/vax/vax.c (vms_select_section): ... here.
7103         (TARGET_ASM_SELECT_SECTION): New.
7104
7105         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
7106         for the target hooks.
7107
7108 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
7109
7110         * config/arm/arm.c (emit_multi_reg_push): Do not set
7111         RTX_FRAME_RELATED_P on the SEQUENCE.
7112
7113 2002-05-16  Richard Henderson  <rth@redhat.com>
7114
7115         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7116         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
7117
7118 2002-05-16  Richard Henderson  <rth@redhat.com>
7119
7120         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7121
7122         * config/ia64/ia64.c (saveable_obstack): Do not declare.
7123
7124 2002-05-16  Richard Henderson  <rth@redhat.com>
7125
7126         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7127         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7128         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7129         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7130         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7131         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7132         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7133         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7134         Revert "Basic block renumbering removal", and two followup patches.
7135
7136 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7137
7138         * lcm.c (optimize_mode_switching): Revert previous change.
7139
7140 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7141
7142         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7143         with only extant block numbers.
7144
7145 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7146
7147         * lcm.c (optimize_mode_switching): Fix typo.
7148
7149 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7150
7151         * flow.c (calculate_global_regs_live): Queue blocks in program order.
7152
7153 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7154
7155         * doc/install.texi (Configuration): Document PWDCMD.
7156
7157 2002-05-16  Dale Johannesen  <dalej@apple.com>
7158
7159         * combine.c (cant_combine_insn_p):  Reenable combinations
7160         involving hard regs unless CLASS_LIKELY_SPILLED_P.
7161
7162 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7163
7164         * c-common.c (cb_register_builtins): Handle more built-ins
7165         here rather than in gcc.c specs.
7166         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7167         (cpp_options): Pass -O flags even when only preprocessing.
7168         * toplev.c (set_fast_math_flags): New prototype.
7169         (fast_math_flags_set_p): New.
7170         (set_no_fast_math_flags): Remove.
7171         (decode_f_option): Update.
7172         * toplev.h (set_fast_math_flags): Update.
7173         (fast_math_flags_set_p): New.
7174         (set_no_fast_math_flags): Remove.
7175 config:
7176         * c4x/c4x.c (c4x_override_options): Update.
7177
7178 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
7179
7180         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7181         Default-define here.
7182         (builtin_define_with_value): Can now wrap the expansion in
7183         quotation marks if such is wanted.
7184         (cb_register_builtins): Update calls to builtin_define_with_value.
7185         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7186         here.
7187         (c_common_init): Set options->stdc_0_in_system_headers.
7188         * c-lex.h: Update prototype of builtin_define_with_value.
7189         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7190         and REGISTER_PREFIX.
7191
7192         * cppinit.c (VERS, ULP, C, X): Kill.
7193         (builtin_array): Remove entries for __VERSION__,
7194         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7195         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
7196         a constant.
7197         (init_builtins): Kill off a bunch of now-dead code.
7198         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7199         -fno-leading-underscore.
7200         (cpp_handle_option): Remove code to set user_label_prefix.
7201         (cpp_post_options): Likewise.
7202
7203         * cpplib.h (struct cpp_options): Remove user_label_prefix.
7204         (stdc_0_in_system_headers): New.
7205         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7206         stdc_0_in_system_headers) too to decide the value of __STDC__.
7207
7208         * tradcpp.c (user_label_prefix): Kill.
7209         (main): Remove code handling -f(no-)leading-underscore.
7210         (initialize_builtins): Don't define __REGISTER_PREFIX__
7211         or __USER_LABEL_PREFIX__.
7212         (install_value): Wrap compound statement in dummy loop so the
7213         macro works properly in an if statement.
7214
7215
7216 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
7217
7218         * loop.h (struct loop_info): Add member has_prefetch.
7219         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7220         (prescan_loop): Initialize has_prefetch.
7221         (struct prefetch_info): Change prefetch_in_loop and
7222         prefetch_before_loop from bit fields to ints.
7223         (emit_prefetch_instructions): Several small fixes.
7224         (check_dbra_loop): Don't reverse loop that uses prefetch.
7225
7226 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7227
7228         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7229         * configure.in: Likewise.
7230         * fixinc/check.tpl: Likewise.
7231         * fixinc/fixinc.dgux: Likewise.
7232         * fixinc/fixinc.svr4: Likewise.
7233         * fixinc/fixinc.winnt: Likewise.
7234         * fixinc/fixincl.sh: Likewise.
7235         * fixproto: Likewise.
7236         * configure: Regenerate.
7237
7238 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7239
7240         Basic block renumbering removal:
7241         * basic_block.h (struct basic_block_def): Renamed index to sindex,
7242         added prev_bb and next_bb fields.
7243         (n_basic_blocks): Renamed to num_basic_blocks.
7244         (last_basic_block): New, index of last basic block.
7245         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7246         traversing basic block chain.
7247         (BLOCK_NUM): index -> sindex.
7248         (create_basic_block_structure, create_basic_block): Declaration changed.
7249         (debug_num2bb): Declare.
7250         (expunge_block_nocompact): Declaration removed.
7251         (link_block, unlink_block, compact_blocks): Declare.
7252         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7253         * cfg.c (entry_exit_blocks): Initialize new fields.
7254         (clear_edges, alloc_block, expunge_block, cached_make_edge,
7255         redirect_edge_pred, dump_flow_info, dump_edge_info,
7256         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7257         free_aux_for_edges): Modified.
7258         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7259         (expunge_block_nocompact): Removed.
7260         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7261         find_unreachable_blocks, create_edge_list, print_edge_list,
7262         verify_edge_list, flow_edge_list_print, remove_fake_successors,
7263         remove_fake_edges, flow_reverse_top_sort_order_compute,
7264         flow_depth_first_order_compute, flow_preorder_transversal_compute,
7265         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7266         flow_dfs_compute_reverse_execute): Modified.
7267         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7268         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7269         Modified.
7270         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7271         merge_blocks_move_predecessor_nojumps,
7272         merge_blocks_move_successor_nojumps, merge_blocks,
7273         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7274         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7275         * cfglayout.c (skip_insns_after_block, label_for_bb,
7276         record_effective_endpoints, scope_to_insns_finalize,
7277         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7278         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7279         cfg_layout_duplicate_bb): Modified.
7280         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7281         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7282         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7283         flow_loops_find, flow_loop_outside_edge_p): Modified.
7284         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7285         flow_delete_block, compute_bb_for_insn, split_block,
7286         try_redirect_by_replacing_jump, redirect_edge_and_branch,
7287         force_nonfallthru_and_redirect, tidy_fallthru_edge,
7288         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7289         commit_edge_insertions, commit_edge_insertions_watch_calls,
7290         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7291         purge_all_dead_edges): Modified.
7292         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7293         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7294         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7295         Modified.
7296         * conflict.c (conflict_graph_compute): Modified.
7297         * df.c (FOR_ALL_BBS): Removed.
7298         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7299         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7300         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7301         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7302         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7303         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7304         * final.c (compute_alignments, final_scan_insn): Modified.
7305         * flow.c (verify_local_live_at_start, update_life_info,
7306         update_life_info_in_dirty_blocks, free_basic_block_vars,
7307         delete_noop_moves, calculate_global_regs_live,
7308         initialize_uninitialized_subregs, allocate_bb_life_data,
7309         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7310         mark_used_reg, count_or_remove_death_notes): Modified.
7311         * function.c (thread_prologue_and_epilogue_insns): Modified.
7312         * gcse.c (struct null_pointer_info): Change typo of current_block
7313         to basic_block.
7314         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7315         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7316         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7317         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7318         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7319         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7320         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7321         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7322         pre_delete, one_pre_gcse_pass, compute_transpout,
7323         invalidate_nonnull_info, delete_null_pointer_checks_1,
7324         free_code_hoist_mem, compute_code_hoist_vbeinout,
7325         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7326         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7327         compute_store_table, build_store_vectors, insert_insn_start_bb,
7328         insert_store, replace_store_insn, free_store_memory, store_motion):
7329         Modified.
7330         * global.c (global_alloc, global_conflicts, mark_elimination,
7331         build_insn_chain): Modified.
7332         * graph.c (print_rtl_graph_with_bb): Modified.
7333         * haifa-sched.c (sched_init): Modified.
7334         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7335         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7336         if_convert): Modified.
7337         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7338         compute_insert_delete, pre_edge_lcm, compute_available,
7339         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7340         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7341         Modified.
7342         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7343         * loop.c (loop_dump_aux): Modified.
7344         * predict.c (combine_predictions_for_insn, estimate_probability,
7345         last_basic_block_p, process_note_prediction, process_note_predictions,
7346         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7347         expensive_function_p, estimate_bb_frequencies,
7348         compute_function_frequency): Modified.
7349         * print-rtl.c (print_rtx): Modified.
7350         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7351         get_exec_counts, compute_branch_probabilities, compute_checksum,
7352         branch_prob, find_spanning_tree): Modified.
7353         * recog.c (split_all_insns, peephole2_optimize): Modified.
7354         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7355         convert_regs_1, convert_regs_2, convert_regs): Modified.
7356         * regclass.c (scan_one_insn, regclass): Modified.
7357         * regmove.c (mark_flags_life_zones, regmove_optimize,
7358         combine_stack_adjustments): Modified.
7359         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7360         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7361         * reorg.c (dbr_schedule): Modified.
7362         * resource.c (find_basic_block, init_resource_info): Modified.
7363         * sbitmap.c (sbitmap_intersection_of_succs,
7364         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7365         sbitmap_union_of_preds): Modified.
7366         * sched-deps.c (init_dependency_caches): Modified.
7367         * sched-ebb.c (schedule_ebbs): Modified.
7368         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7369         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7370         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7371         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7372         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7373         ssa_const_prop): Modified.
7374         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7375         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7376         * ssa.c (remove_phi_alternative, find_evaluations,
7377         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7378         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7379         make_regs_equivalent_over_bad_edges,
7380         make_equivalent_phi_alternatives_equival,
7381         compute_conservative_reg_partition,
7382         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7383         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7384         Modified.
7385
7386 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7387
7388         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7389
7390 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7391
7392         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7393         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7394         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7395         calling CONSTANT_POOL_ADDRESS_P.
7396         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7397         to decide whether to define __arm__ or __thumb.
7398         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7399         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7400
7401 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7402
7403         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7404         (CPP_SPEC): Update.
7405         (TARGET_CPU_CPP_BUILTINS): New.
7406
7407 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7408
7409         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7410         * cppmacro.c (cpp_macro): Remove.
7411         (enter_macro_context, replace_args, warn_of_redefinition,
7412         _cpp_create_definition, cpp_macro_definition): Update.
7413
7414 2002-05-16  Jason Merrill  <jason@redhat.com>
7415
7416         * config/mips/mips.c (mips_output_external): Don't do sdata
7417         optimization for a variable with DECL_COMDAT set.
7418
7419 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7420
7421         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7422         Cleanups for accepting modifiers on pointers.
7423         Fix predicate typos.
7424         Allow long pointers as well as int pointers.
7425
7426 2002-05-15  Richard Henderson  <rth@redhat.com>
7427
7428         * varasm.c (merge_weak): Remove special case for extern and common.
7429
7430 2002-05-15  Matt Hiller  <hiller@redhat.com>
7431
7432         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7433         XFAILing.
7434         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7435         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7436         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7437         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7438         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7439         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7440
7441 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7442
7443         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7444
7445 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7446
7447         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7448         ("altivec_mfvscr"): Read from VSCR.
7449
7450         Add vscr sets for the following insns: altivec_vctuxs,
7451         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7452         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7453         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7454         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7455         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7456         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7457         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7458         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7459         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7460         altivec_vsum2sws, altivec_vsumsws.
7461
7462         * config/rs6000/rs6000.h: Add VSCR fixed register.
7463         (CALL_REALLY_USED_REGISTERS): Add vscr.
7464         (CALL_USED_REGISTERS): Same.
7465         (FIXED_REGISTERS): Same.
7466         (REG_ALLOC_ORDER): Same.
7467         (reg_class): Add VSCR_REGS.
7468         (REG_CLASS_NAMES): Same.
7469         (REG_CLASS_CONTENTS): Same.
7470         (VSCR_REGNO): New.
7471         (REGISTER_NAMES): Add vscr.
7472         (DEBUG_REGISTER_NAMES): Same.
7473         (ADDITIONAL_REGISTER_NAMES): Same.
7474         (FIRST_PSEUDO_REGISTER): Increment.
7475         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7476
7477 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7478
7479         * fold-const.c (fold): Fix a typo.
7480
7481 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7482
7483         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7484         comparison against the highest or lowest integer value before
7485         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7486         transformation and that of an unsigned comparison against 0
7487         right after.
7488
7489 2002-05-15  Richard Henderson  <rth@redhat.com>
7490
7491         * varasm.c (merge_weak): Error for any weakening after definition.
7492         Adjust weakening after use warning to catch more cases.
7493         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7494         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7495
7496 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7497
7498         * invoke.texi (-malign-double): Re-add lost warning.
7499
7500         * i386-protos.h (x86_output_mi_thunk): Declare.
7501         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7502         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7503
7504         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7505         when flag_asynchronous_unwind_tables is set.
7506
7507         * flags.h (flag_reorder_functions): Declare.
7508         * function.c (prepare_function_start): Initialize frequnecy.
7509         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7510         * Makefile.in (predict.o): Add dependency on target.h and params.h
7511         * defaults.h (HOT_TEXT_SECTION_NAME,
7512         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7513         * predict.c (choose_function_section): New function.
7514         (estimate_bb_frequencies): Use it.
7515         * toplev.c (flag_reorder_functions): New global variable.
7516         (lang_independent_options): New.
7517         (parse_options_and_default_flags): Set.
7518         * varasm.c (assemble_start_function): Bypass functdion alignment
7519         for never executed functions.
7520         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7521         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7522         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7523         Document.
7524
7525         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7526
7527         * predict.c: Inlude profile.h
7528         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7529         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7530         Use the information about maximal counter in the program.
7531
7532         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7533
7534         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7535         probably_never_executed_bb_p): New functions.
7536         * cfgcleanup.c (outgoing_edges_match): Use them.
7537         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7538         (maybe_hot_bb_p, probably_cold_bb_p,
7539         probably_never_executed_bb_p): New functions.
7540
7541         * function.h (function): Add new field function_frequency.
7542         * predict.c (compute_function_frequency): New function.
7543         (estimate_probability): Call it.
7544
7545 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7546
7547         PR optimization/5172, optimization/5200
7548         * gcse.c (gcse_main): Disable store_motion.
7549
7550 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7551
7552         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7553         (c_common_nodes_and_builtins): Use it.
7554         (builtin_define_with_value): New function.
7555         (cb_register_builtins): Define __SIZE_TYPE__,
7556         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7557         using builtin_define_with_value.  Use consistent notation when
7558         defining __GXX_WEAK__.
7559         (WCHAR_TYPE_SIZE): Don't redefine.
7560         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7561
7562         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7563         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7564         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7565         * tradcpp.c (initialize_builtins): Likewise.
7566         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7567
7568         * c-lex.h (builtin_define_with_value): Prototype.
7569         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7570         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7571         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7572
7573         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7574         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7575         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7576         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7577         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7578         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7579         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7580         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7581         to __SIZE_TYPE__ etc from all spec strings. When this makes
7582         extra specs empty, delete them.
7583
7584 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7585
7586         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7587         for PA8000 or generating dwarf2 call frame information.
7588         (output_call): Remove DO_FRAME_NOTES check from return pointer
7589         optimization.
7590         (following_call): Return 0 when scheduling for PA8000 or generating
7591         dwarf2 call frame information.  Revise comment.
7592
7593 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7594
7595 config/alpha:
7596         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7597         and __IEEE_FP_INEXACT as appropriate.
7598         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7599         (CPP_SPEC): Remove ieee defines.
7600         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7601
7602 2002-05-14  Richard Henderson  <rth@redhat.com>
7603
7604         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7605         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7606
7607 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7608
7609         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7610         (CPP_SPEC): Update.
7611         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7612         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7613         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7614         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7615         (EXTRA_SPECS): Update.
7616         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7617         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7618         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7619         define TARGET_OS_CPP_BUILTINS if necessary.
7620
7621 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7622
7623         * gcc.c (cpp_options): Must pass -m* and -f* options
7624         to the front end even when only preprocessing.
7625         (cc1_options): Remove redundant -lang-c.
7626         * tradcpp.c (main): Ignore -m options.
7627 objc:
7628         * lang-specs.h: Similarly.
7629
7630 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7631
7632         * genautomata.c (transform_3): Add code for transformation
7633         `(A,B,...)+C -> A+C,B,...'.
7634
7635 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7636
7637         * final.c (end_final): Do not output profile_arcs constructor, when
7638         no functions are instrumented.
7639
7640 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7641
7642         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7643
7644 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7645
7646         * doc/install.texi: Remove special markup originally required for
7647         HTML generation with texi2html.
7648
7649 2002-05-14  Andreas Schwab  <schwab@suse.de>
7650
7651         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7652         SELECT_SECTION.
7653         (UNIQUE_SECTION): Define to get small data correctly.
7654
7655         * varasm.c (resolve_unique_section): Add third parameter
7656         flag_function_or_data_sections and use it instead of
7657         flag_function_sections.
7658         (assemble_start_function): Pass flag_function_sections.
7659         (asm_emit_uninitialised): Pass flag_data_sections.
7660         (assemble_variable): Likewise.
7661
7662 2002-05-14  Richard Henderson  <rth@redhat.com>
7663
7664         * config/i386/i386.md: Use define_constants for unspec numbers.
7665         * config/i386/i386.c: Likewise.
7666
7667 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7668
7669         * doc/contrib.texi: Update my entry.
7670
7671 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7672
7673         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7674         * fixinc/fixincl.x: Regenerated.
7675         * fixinc/tests/base/math.h: Update.
7676         * fixinc/tests/base/testing.h: Likewise.
7677
7678 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7679
7680         * genattr.c (gen_attr): Don't emit a comma after the last
7681         enumerator.
7682
7683 2002-05-13  Richard Henderson  <rth@redhat.com>
7684
7685         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7686         by non-local gotos.
7687         * recog.c (peephole2_optimize): Likewise.
7688
7689 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7690
7691         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7692         input to O_BINARY.
7693
7694 2002-05-13  Jeffrey A Law  (law@redhat.com)
7695
7696         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7697         Update prototype and callers.
7698         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7699         the mem_set_list which reference the stack pointer, as do
7700         calls to constant functions as they may clobber outgoing
7701         argument space.
7702
7703         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7704
7705         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7706         (ia32_multipass_dfa_lookahead): New function.
7707
7708 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7709
7710         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7711         (translate_options): Remove 'V'.
7712         (process_command): Similarly.
7713 doc:
7714         * invoke.texi: Remove documentation of 'V'.
7715
7716 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7717
7718         * config/s390/linux.h: Revert 2002-04-22 changes.
7719
7720 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7721
7722         * config/fr30/fr30.md: Only allow splits of immediate loads
7723         if the destination is a register.
7724
7725 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7726
7727         * Makefile.in (c-common.o, cppinit.o): Update.
7728         * c-common.c: Include except.h.
7729         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7730         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7731         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7732         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7733         CPP_PREDEFINES): Handle here.
7734 config:
7735         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7736         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7737         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7738         TARGET_OS_CPP_BUILTINS.
7739         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7740         (CPP_SPEC, EXTRA_SPECS): Update.
7741         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7742         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7743         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7744         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7745         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7746 doc:
7747         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7748         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7749
7750 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7751
7752         * emit-rtl.c (global_rtl): Update comment.
7753         (const_double_htab, const_double_htab_hash,
7754         const_double_htab_hash, lookup_const_double): New.
7755         (const_int_htab_hash, const_int_htab_eq): Remove const
7756         qualifiers, which cause tons of warnings with RTL checking on.
7757         (gen_rtx_CONST_DOUBLE): Deleted.
7758         (const_double_from_real_value): New function - bears some
7759         resemblance to the former immed_real_const_1.
7760         (immed_double_const): Moved here from varasm.c and
7761         simplified.
7762         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7763         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7764         (gen_rtx): Use immed_double_const.
7765         (init_emit_once): Initialize the const_double_htab.  Use
7766         REAL_VALUE_FROM_INT where possible.  Can now use
7767         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7768         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7769         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7770         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7771         (init_varasm_status, mark_varasm_status): Don't touch
7772         x_const_double_chain.
7773
7774         * output.h: Delete prototype for clear_const_double_mem.
7775         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7776         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7777         const_double_from_real_value, not immed_real_const_1, and use
7778         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7779         CONST_DOUBLE_ATOF.
7780         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7781         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7782         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7783         (gen_rtx_REG): Second arg is unsigned.
7784
7785         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7786         (excluded_rtx): New, return true for CONST_DOUBLE.
7787         (genmacro): Write nothing for excluded codes.
7788         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7789         * expr.c (expand_expr): Likewise.
7790         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7791         CONST_DOUBLE_CHAIN.
7792         * toplev.c (rest_of_compilation): Don't call
7793         clear_const_double_mem.
7794
7795         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7796         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7797         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7798         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7799         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7800         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7801         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7802         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7803
7804 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7805
7806         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7807
7808 2002-05-12  Tom Tromey  <tromey@redhat.com>
7809
7810         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7811
7812 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7813
7814         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7815         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7816         * gensupport.h: Prototype new routines.
7817         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
7818         use of printf.
7819         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7820         (next_comma_elt): Use scan_comma_elt.
7821
7822         * config/i386/i386.md: Use new attribute notation to break up
7823         long lines in define_attr forms.
7824
7825 2002-05-12  Richard Henderson  <rth@redhat.com>
7826
7827         * expr.c (compress_float_constant): New.
7828         (emit_move_insn): Use it.
7829         (float_extend_from_mem): New.
7830         (init_expr_once): Initialize it.
7831         * real.c (exact_real_truncate): New.
7832
7833         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7834         dropped into memory; penalize for size.
7835         (RTX_COSTS): FLOAT_EXTEND is free.
7836         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7837         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7838
7839 2002-05-12  Richard Henderson  <rth@redhat.com>
7840
7841         * profile.h (profile_info): Add missing extern to declaration.
7842         * profile.c (profile_info): Define it.
7843
7844 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7845
7846         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7847         used for DImode and TImode.
7848
7849 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7850
7851         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7852         fake a newline.
7853
7854 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
7855
7856         * config/rs6000/rs6000.c (rs6000_default_long_calls,
7857         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7858         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7859         (rs6000_override_options): Handle -m(no-)longcall.
7860         (init_cumulative_args, output_mi_thunk): Check for both
7861         longcall and shortcall attributes on the function.
7862         (rs6000_attribute_table): Add "shortcall".
7863         (rs6000_handle_longcall_attribute): Update comment.
7864         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7865         altivec_expand_ternop_builtin): Add default clauses to switches
7866         to silence warnings.
7867
7868         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7869         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
7870         (TARGET_OPTIONS): Add longcall and no-longcall.
7871
7872         * config/rs6000/rs6000.md (call_nonlocal_sysv,
7873         call_value_nonlocal_sysv): Split by alternatives.  One pair
7874         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7875         the call cookie.  The other pair accepts only LR/CTR and has
7876         no restriction.
7877
7878         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7879         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7880         tmake_file.
7881         * config/rs6000/rs6000-c.c: New file.
7882         * config/rs6000/t-rs6000-c-rule: New file.
7883         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7884         Prototype rs6000_pragma_longcall.
7885
7886         * doc/extend.texi: Document shortcall attribute.
7887         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7888
7889 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7890
7891         * reorg.c (dbr_schedule): Remove unnecessary test.
7892
7893 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7894
7895         * i386.md (testsi to testqi spliters): New.
7896
7897         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
7898
7899         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7900
7901         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7902
7903         * basic-block.h: New flag EDGE_CAN_FALLTHRU
7904         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7905         that can be made fallthru.
7906
7907         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
7908
7909         * cfglayout.c (cleanup_unconditional_jumps): New static function.
7910         (cfg_layout_initialize): Use it.
7911
7912 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7913
7914         * config/avr/avr.c (avr_mcu_types): Update supported devices.
7915         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7916         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7917
7918 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
7919
7920         * dbxout.c: Fix formatting.
7921         * dependence.c: Likewise.
7922         * df.c: Likewise.
7923         * diagnostic.c: Likewise.
7924         * doloop.c: Likewise.
7925         * dominance.c: Likewise.
7926         * doschk.c: Likewise.
7927         * dwarf2asm.c: Likewise.
7928         * dwarf2out.c: Likewise.
7929         * dwarfout.c: Likewise.
7930
7931 2002-05-10  Richard Henderson  <rth@redhat.com>
7932
7933         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
7934         Convert integers constants as needed.  Replace "nwords" field with
7935         "sizeof_bb".
7936         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7937         * function.h: Fix typo in comment.
7938         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7939
7940 2002-05-10  Roger Sayle  <roger@eyesopen.com>
7941
7942         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7943         into the equivalent (signed char)c > 0.
7944
7945 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
7946
7947         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7948         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7949         (struct prefetch_info): Fix spelling of member bytes_accessed.
7950         (emit_prefetch_instructions): Make dump messages more regular;
7951         restructure code to add more dump messages; use new macros for
7952         heuristics. (There are no code generation changes in any of this).
7953
7954 2002-05-10  David S. Miller  <davem@redhat.com>
7955
7956         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7957         (struct rtx_def): Update unchanging flag comment.
7958         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7959         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7960         to be handled to INSN too.
7961         (dbr_schedule): Likewise.
7962         * resource.c (next_insn_no_annul): Likewise.
7963
7964         * cse.c (rtx_cost): Remove multiplication by power of 2 special
7965         casing.
7966
7967 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7968
7969         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7970         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7971         (possibly) work around broken /bin/sh.
7972
7973 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7974
7975         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7976         . as N64/N32 libgcc_s.so subdirs.
7977
7978 2002-05-10  David S. Miller  <davem@redhat.com>
7979
7980         * config/sparc/sparc.md: Use define_constants for unspec numbers.
7981
7982         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7983         more accurately.
7984         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7985         comment.
7986         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7987         * doc/rtl.texi: Document these macros more accurately.
7988         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7989         JUMP_INSNs and CALL_INSNs.
7990         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7991         or INSN_FROM_TARGET_P if the code is appropriate.
7992
7993 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7994
7995         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7996         before using SYMBOL_REF_FLAG (addr).
7997
7998         * config/avr/avr-protos.h (avr_io_address_p): Declare.
7999         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
8000         Make non-static.  Update all callers.
8001         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
8002         New insns to clear/set/test a single bit in I/O address space.
8003
8004 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8005
8006         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
8007
8008 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8009
8010         * Makefile.in: Update.
8011         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
8012         builtin_define_std): New.
8013         (c_common_init): Register CPP builtins callback.
8014         * c-common.h (flag_iso, flag_undef): New.
8015         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
8016         * c-lex.c: Don't include target.h.
8017         (cb_register_builtins): Move to c-common.c.
8018         (init_c_lex): Don't register hook here.
8019         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
8020         (cpp_define, cpp_assert): Remove.
8021         * gcc.c (cc1_options): Pass -undef to front end.
8022         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
8023         (TARGET_INITIALIZER): Update.
8024         * target.h (struct cpp_reader): Don't predeclare.
8025         (struct gcc_target): Remove cpp builtin hook.
8026         * tree.c (default_register_cpp_builtins): Remove.
8027 doc:
8028         * tm.texi: Update.
8029
8030 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8031
8032         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
8033
8034 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8035
8036         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
8037         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
8038
8039 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
8042         * config/sparc/libgcc-sparc-glibc.ver: New file.
8043         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
8044         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
8045
8046 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
8047
8048         PR target/6429
8049         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
8050         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
8051         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
8052         base multilibs.
8053         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
8054         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
8055         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8056         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8057
8058 2002-05-09  Richard Henderson  <rth@redhat.com>
8059
8060         * config/ia64/ia64.md: Use define_constants for unspec numbers.
8061         * config/ia64/ia64.c: Likewise.
8062
8063 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
8064
8065         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
8066         (save_restore_insns): Likewise.
8067         (mips_expand_prologue, mips_expand_epilogue): Update callers.
8068         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
8069
8070 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
8071
8072         * athlon.md, k6.md, pentium.md, ppro.md): New files.
8073         * i386.md: Move scheduling information into new files.
8074
8075         * i386.md (type attribute): Add "rotate" for rotate insns.
8076         (rotate insns): Set type to "rotate".
8077         (various attributes and function units): Treat rotate like shift.
8078         (pent_pair attribute): Only rotates by one bit position are
8079         pairable.
8080         (sbb insns): Explicitly set pent_pair attribute on a couple
8081         that were missing it.
8082
8083 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8084
8085         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
8086         make sure that buffer starts on odd word address.
8087         (sh_va_arg): Skip odd fp registers when reading a double precision
8088         value.
8089
8090 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8091
8092         * tree.h (preserve_data, object_permanent_p, type_precision):
8093         Remove.
8094
8095 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8096
8097         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
8098         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
8099 doc:
8100         * cpp.texi: Update for removal of obsolete features.
8101
8102 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
8103                           Jeffrey A Law  (law@redhat.com)
8104
8105         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
8106         the DFA interface for Pentium processors.
8107         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
8108         (attr_pent_pair, ix86_pent_find_pair): Remove.
8109         (ix86_sched_reorder_pentium): Remove.
8110         (ix86_sched_reorder): Remove reordering for Pentium.
8111         * i386.md (Pentium scheduling): Rewrite using DFA description.
8112
8113 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
8114
8115         * cfganal.c (can_fallthru): Fix fast path.
8116         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8117         with edges to the next block.
8118
8119 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
8120                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
8121
8122         * final.c (end_final): Use C trees to output data structures for profiling.
8123
8124         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8125         (profile.o): New dependency profile.h
8126         (final.o): New dependency profile.h
8127         * profile.h: New file. New global structure profile_info.
8128         * final.h (count_edges_instrumented_now): Declare.
8129         (current_function_cfg_checksum): Declare.
8130         (function_list): New structure.
8131         (functions_head, functions_tail): New static variables.
8132         (end_final): Emits more data, removed some -ax stuff.
8133         (final): Stores function names and chcksums.
8134         * gcov-io.h (__write_gcov_string): New function.
8135         (__read_gcov_string): New function.
8136         * gcov.c (read_profile): New function.
8137         (create_program_flow_graph): Uses read_profile instead of reading
8138         da_file.
8139         (read_files): Removed da_file checking, it's done by read_profile now.
8140         * libgcc2.c (bb_function_info): New structure.
8141         (bb): New field in structure, removed some -ax stuff.
8142         (__bb_exit_func): Changed structure of da_file.
8143         * profile.c (count_edges_instrumented_now): New global variable.
8144         (current_function_cfg_checksum): New global variable.
8145         (max_counter_in_program): New global variable.
8146         (get_exec_counts): New function.
8147         (compute_checksum): New function.
8148         (instrument_edges): Sets count_edges_instrumented_now.
8149         (compute_branch_probabilities): Uses get_exec_counts instead of
8150         reading da_file.
8151         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8152         (init_branch_prob): Removed da_file checking, done in get_exec_counts
8153         now.
8154         (end_branch_prob): Removed da_file checking, done in get_exec_counts
8155         now.
8156         * gcov.texi: Updated information about gcov file format.
8157
8158 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
8159
8160         * sbitmap.c: Fix formatting.
8161         * scan.c: Likewise.
8162         * scan-decls.c: Likewise.
8163         * sched-deps.c: Likewise.
8164         * sched-ebb.c: Likewise.
8165         * sched-rgn.c: Likewise.
8166         * sched-vis.c: Likewise.
8167         * sdbout.c: Likewise.
8168         * sibcall.c: Likewise.
8169         * simplify-rtx.c: Likewise.
8170         * ssa.c: Likewise.
8171         * ssa-ccp.c: Likewise.
8172         * ssa-dce.c: Likewise.
8173         * stmt.c: Likewise.
8174         * stor-layout.c: Likewise.
8175         * stringpool.c: Likewise.
8176
8177 2002-05-09  David S. Miller  <davem@redhat.com>
8178
8179         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8180
8181 2002-05-07  David S. Miller  <davem@redhat.com>
8182
8183         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8184         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8185         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8186         library implementation clobbers the output before the inputs
8187         are fully consumed, use stack temporary for the output.
8188
8189 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
8190
8191         * config/netbsd.h (CPP_SPEC): Remove.
8192         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8193         * config/i386/netbsd.h (CPP_SPEC): Define.
8194         * config/ns32k/netbsd.h (CPP_SPEC): Define.
8195         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8196         * config/sparc/netbsd.h (CPP_SPEC): Define.
8197         * config/vax/netbsd.h (CPP_SPEC): Define.
8198
8199 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
8200
8201         * read-rtl.c: Fix formatting.
8202         * real.c: Likewise.
8203         * recog.c: Likewise.
8204         * regclass.c: Likewise.
8205         * regmove.c: Likewise.
8206         * reg-stack.c: Likewise.
8207         * reload1.c: Likewise.
8208         * reload.c: Likewise.
8209         * resource.c: Likewise.
8210         * rtlanal.c: Likewise.
8211         * rtl.c: Likewise.
8212         * rtl-error.c: Likewise.
8213
8214 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8215
8216         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8217         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8218
8219 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
8220
8221         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8222         use __SSE2__ macro instead.
8223         * config/i386/xmmintrin.h: Likewise.
8224
8225 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
8226
8227         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8228         and use it in all invocations of these macros.  Clean up comments.
8229         * rtl.c (rtl_check_failed_flag): Add an argument for the name
8230         of the flag access macro whose check failed.
8231         * doc/rtl.texi (Flags): Document additional flag uses.
8232
8233 2002-05-08  Robert Spier <rspier@pobox.com>
8234             Neil Booth  <neil@daikokuya.demon.co.uk>
8235
8236         PR preprocessor/6521
8237         * cppfiles.c (handle_missing_header): Don't do anything
8238         different for <> includes.
8239 doc:
8240         * cppopts.texi: Update documentation for -MG.
8241
8242 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8243
8244         * cpplex.c (cpp_interpret_charconst): Truncate as well as
8245         sign-extend.
8246 doc:
8247         * cpp.texi: Clarify multichar charconst valuation.
8248
8249 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8250
8251         * doc/invoke.texi: Document -mwindiss option.
8252
8253 2002-05-08  Jason Merrill  <jason@redhat.com>
8254
8255         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8256
8257         * dwarf2out.c (gen_type_die): Abort on broken recursion.
8258
8259         PR c++/6381
8260         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8261         REAL_CST.
8262
8263 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
8264
8265         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8266         little-endian multilibs to override arm/thumb multilibs.
8267         Do not build hardware floating point multilibs, nor apcs-26
8268         multilibs for the Thumb.
8269
8270 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8271
8272         PR c/6569.
8273         * varasm.c (mark_weak): New function.
8274         (merge_weak): Use it.  Do not call declare_weak.
8275         (declare_weak): Use merge_weak.
8276
8277 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8278
8279         * cse.c (dead_libcall_p): Update counts.
8280         (delete_trivially_dead_insns): Update call of dead_libcall_p.
8281
8282 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8283
8284         * cfglayout.c (function_tail_eff_head): Rename to ...
8285         (function_footer): ... this one.
8286         (unlink_insn_chain): New functions.
8287         (label_for_bb): Only call block_label and emit debug message.
8288         (record_effective_endpoints): Actually unlink the headers and footers.
8289         (fixup_reorder_cahin): Re-insert the unlinked sequences.
8290         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8291         * cfglayout.h (struct reorder_block_def): New fields footer/header;
8292         remove eff_head/eff_end.
8293         * rtl.h (set_first_insn): Declare.
8294         * emit-rtl.c (set_first_insn): New function.
8295
8296         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8297         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8298         cfg_layout_duplicate_bb): New global function.
8299         (duplicate_insn_chain): New static function.
8300         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8301         cfg_layout_duplicate_bb): Declare.
8302         (struct reorder_block_def): Add "original" field.
8303         * emit-rtl.c (emit_copy_of_insn_after): New function.
8304         * rtl.h (emit_copy_of_insn_after): Declare.
8305
8306         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8307         (fixup_reorder_chain): properly handle edges to exit block.
8308
8309 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8310                                Jan Hubicka  <jh@suse.cz>
8311
8312         * basic-block.h (note_prediction_to_br_prob): declare.
8313         * c-semantics.c: Inlucde predit.h
8314         (expand_stmt): predict GOTO_STMT as not taken.
8315         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8316         (cleanup_cfg): Do not free tail_recursion_list.
8317         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8318         (flow_delete_block): Kill predictions past end of basic block.
8319         * output.h (delete_unreachable_blocks): Declare.
8320         * predict.c (predicted_by_p, process_note_predictions,
8321         process_note_prediction, last_block_p): New function.
8322         (estimate_probability): Bypass loop on PRED_CONTINUE;
8323         do not handle noreturn heuristics; kill PRED_RETURN; add
8324         PRED_EARLY_RETURN.
8325         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8326         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8327         * predict.h (IS_TAKEN): New constant.
8328         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8329         * rtl.c (NOTE_INSN_PREDICTION): New.
8330         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8331         New macro.
8332         (insn_note): add NOTE_INSN_PREDICTION.
8333         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8334         CFG; free tail_recursion_label_list.
8335         * stmt.c: Include predict.h;
8336         (return_prediction): New.
8337         (expand_value_return): Use it.
8338         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8339
8340 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8341
8342         * config/mips/mips.md: Name the unspecs with define_constant.
8343         (*HILO_delay): Rename to 'hilo_delay' (no star).
8344         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8345         (reload_outdi, reload_outsi): Likewise.
8346
8347 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8348
8349         * toplev.c: Fix formatting.
8350
8351 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8352
8353         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8354         * configure.in (ac_rtlflag_checking): New.
8355         * doc/install.texi (--enable-checking): Document RTL flag checking.
8356
8357 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8358
8359         * c-common.c (c_common_init): Set options->unsigned_wchar.
8360         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8361         group target dependencies.
8362         (init_builtins, cpp_handle_option): Update.
8363         * cpplex.c (cpp_interpret_charconst): Update.
8364         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8365         signed_char to unsigned_char, group target dependencies.
8366         * defaults.h (WCHAR_UNSIGNED): Remove.
8367         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8368 config:
8369         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8370         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8371         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8372         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8373         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8374 doc:
8375         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8376
8377 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8378
8379         * fixinc/inclhack.def (windiss_math1): New fix.
8380         (windiss_math2): Likewise.
8381         (windiss_valist): Likewise.
8382         * fixinc/fixincl.x: Regenerated.
8383
8384 2002-05-07  Andreas Jaeger  <aj@suse.de>
8385
8386         * genautomata.c (output_internal_min_issue_delay_func): Add
8387         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8388         (output_internal_trans_func): Likewise.
8389
8390 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8391
8392         * pa.c (hppa_profile_hook): Use force_reg to get the address
8393         of the profile hook into an appropriate pseudo register.
8394
8395 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8396
8397         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8398         (LINK_START_SPEC): Handle it.
8399         (LINK_OS_SPEC): Likewise.
8400         (CPP_SPEC): Likewise.
8401         (STARTFILE_SPEC): Likewise.
8402         (LIB_SPEC): Likewise.
8403         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8404         all platforms.
8405         (CRTSAVRES_DEFAULT_SPEC): New macro.
8406         (LIB_WINDISS_SPEC): New macro.
8407         (CPP_OS_WINDISS_SPEC): Likewise.
8408         (STARTFILE_WINDISS_SPEC): Likewise.
8409         (ENDFILE_WINDISS_SPEC): Likewise.
8410         (LINK_START_WINDISS_SPEC): Likewise.
8411         (LINK_OS_WINDISS_SPEC): Likewise.
8412         * config/rs6000/windiss.h: New file.
8413
8414 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8415
8416         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8417
8418 2002-05-06  David S. Miller  <davem@redhat.com>
8419
8420         * config/sparc/sparc.md (shift insns): Do not mask off
8421         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8422         take care of it.
8423
8424 2002-05-06  Richard Henderson  <rth@redhat.com>
8425
8426         PR c++/6212
8427         * expr.c (highest_pow2_factor_for_type): New.
8428         (expand_assignment): Use it.
8429
8430 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8431
8432         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8433         unspec_volatile.
8434         ("altivec_mfvscr"): Same.
8435
8436 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8437
8438         * rtl.h (struct rtx_def): Update comments.
8439         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8440         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8441         RTL_FLAG_CHECK macros with list of expected RTL codes.
8442         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8443         (rtl_check_failed_flag): New.
8444         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8445         (reload_cse_noop_set_p): Check rtx code before using access macro.
8446         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8447         before using access macro.
8448
8449 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8450
8451         * doc/rtl.texi (Flags): Update to reflect current usage.
8452
8453 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8454
8455         PR opt/3995
8456         * fold-const.c (sign_bit_p): New function.
8457         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8458         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8459         Reapply fold when converting (A & C) == C into (A & C) != 0.
8460         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8461
8462 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8463
8464         * c-common.c (warn_multichar): New.
8465         (c_common_init): Set CPP's warn_multichar.
8466         * c-common.h (warn_multichar): New.
8467         * c-decl.c (warn_multichar): Remove.
8468         * c-lex.c (lex_charconst): Update.
8469         * c-tree.h (warn_multichar): Remove.
8470         * cppexp.c (eval_token): Sign-extend charconst value.
8471         * cppinit.c (cpp_create_reader): Set warn_multichar.
8472         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8473         each character.  Update prototype.  Sign-extend the result.
8474         * cpplib.h: Fix conditions.
8475         (struct cpp_options): Add new warning flag.
8476         (cpp_interpret_charconst): Update prototype.
8477 doc:
8478         * cpp.texi: Update documentation.
8479
8480 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8481
8482         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8483         Fix typo in usage of allof instead of unit.
8484
8485 2002-05-06  Richard Henderson  <rth@redhat.com>
8486
8487         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8488         and any jump or call for IN.
8489
8490 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8491
8492         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8493         -msse2.
8494         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8495
8496 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8497
8498         * fold-const.c (lshift-double): Cast the high word to an unsigned
8499         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8500         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8501         avoid compiler warning.  (fold): Remove redundant code from
8502         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8503
8504 2002-05-06  Jeff Law  <law@redhat.com>
8505
8506         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8507         * pa.c (pa_adjust_cost): Remove all true dependency cost
8508         adjustments.  Also remove support for non-DFA scheduling.
8509         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8510         to adjust true dependency costs.  Update various comments.
8511         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8512         FP ALU & MPY units into a single unit.
8513
8514 2002-05-06  Catherine Moore  <clm@redhat.com>
8515
8516         * config/v850/v850.c (compute_register_save_size): Make sure
8517         to count all of the registers that will be saved.
8518
8519 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8520
8521         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8522
8523 2002-05-06  David S. Miller  <davem@redhat.com>
8524
8525         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8526         allow result to overlap input operands in memory.
8527
8528 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8529
8530 doc:
8531         * cpp.texi: Update multichar charconst docs.
8532
8533 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8534
8535         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8536         character.  Don't ignore excess characters.  Treat
8537         multicharacter character constants as signed.
8538         (cpp_parse_escape): Clarify diagnostic.
8539
8540 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8541
8542         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8543         use add instead of shift.
8544         (ashldi3_sp64): Likewise.
8545         (ashlsi3_const1, ashldi3_const1): Remove.
8546         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8547         * config/sparc/sparc.c (const1_operand): New.
8548
8549 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8550
8551         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8552
8553 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8554
8555         PR target/6561
8556         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8557
8558 2002-05-05  Richard Henderson  <rth@redhat.com>
8559
8560         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8561         memory latency adjustments.
8562         (alpha_variable_issue): Remove.
8563         (alpha_use_dfa_pipeline_interface): New.
8564         (alpha_multipass_dfa_lookahead): New.
8565         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8566         include new dfa scheduling.
8567         (attr type): Add none.
8568         (blockage): Use it.
8569         * config/alpha/ev4.md: New.
8570         * config/alpha/ev5.md: New.
8571         * config/alpha/ev6.md: New.
8572
8573 2002-05-05  David S. Miller  <davem@redhat.com>
8574
8575         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8576
8577 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8578
8579         * cse.c: Fix formatting.
8580         * emit-rtl.c: Likewise.
8581
8582 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8583
8584         * genautomata.c (initiate_states): Add additional guard to
8585         initialize `units_array'.
8586
8587 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8588
8589         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8590         process_unit_to_form_the_same_automaton_unit_lists,
8591         form_the_same_automaton_unit_lists
8592         check_unit_distributions_to_automata): New prototypes and
8593         functions.
8594         (check_automata): Rename it into `check_automata_insn_issues'.
8595         (unit_decl): New fields `the_same_automaton_unit' and
8596         `the_same_automaton_message_reported_p'.
8597         (unit_decl_t): New typedef.
8598         (the_same_automaton_lists): New gloval variable.
8599         (unit_regexp, unit_set_el, units_array, units_cmp,
8600         output_get_cpu_unit_code_func): Use the typedef.
8601         (evaluate_max_reserv_cycles): Increment
8602         `description->max_insn_reserv_cycles'.
8603         (initiate_states): Don't increment `max_cycles_num'.
8604         (transform_insn_regexps): Move code around transformation of
8605         regexps from `generate'.
8606         (generate): Remove call of `transform_insn_regexps'.
8607         (expand_automata): Call `transform_insn_regexps' and
8608         `check_unit_distributions_to_automata'.  Check errors before
8609         `generate'.
8610
8611         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8612         automaton `ultrasparc3_1'.
8613
8614 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8615
8616         * c-common.c (c_common_init): Set up CPP arithmetic.
8617         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8618         something reasonable for the host.
8619         (sanity_checks): Add checks.
8620         (cpp_read_main_file): Call sanity_checks() from here...
8621         (cpp_post_options): ... not here.
8622         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8623         * cpplib.h (struct cpp_options): New member int_precision.
8624
8625 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8626
8627         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8628
8629 2002-05-04  David S. Miller  <davem@redhat.com>
8630
8631         * config/sparc/linux.h, config/sparc/linux64.h
8632         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8633
8634         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8635         more RTX codes.
8636         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8637
8638         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8639         of SETs.
8640
8641 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8642
8643         * treelang; New directory for new sample language treelang.
8644
8645 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8646
8647         * Makefile.in (c-lex.o): Update.
8648         * c-lex.c: Include target.h.
8649         (cb_register_builtins): New.
8650         (init_c_lex): Set builtins callback.
8651         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8652         * cppinit.c (init_builtins): Use callback, including for
8653         GXX_WEAK.
8654         * cpplib.h (struct cpp_callbacks): New member.
8655         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8656         (TARGET_INITIALIZER): Update.
8657         * target.h (struct gcc_target): New hook.
8658         * tree.c (default_register_cpp_builtins): New.
8659         * tree.h (default_register_cpp_builtins): New.
8660 doc:
8661         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8662
8663 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8664
8665         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8666         (cpp_post_options): Move sanity checks to...
8667         (sanity_checks): New.
8668         * cpplex.c (maybe_read_ucs): Fix prototype.
8669         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8670         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8671         if necessary.
8672
8673 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8674
8675         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8676         builtins.  Use V2DI patterns instead of TI for logical operations.
8677         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8678         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8679         (ix86_expand_builtins): Change the pattern used for movntdq.
8680         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8681         sse2_nandv2di3): New patterns.
8682         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8683         on operands.
8684         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8685         (cvtdq2pd): Correct mode on operand 1.
8686         (sse2_umulsidi3): Describe without unspec.
8687         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8688         machine modes.
8689         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8690         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8691         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8692         ashlv4si3, ashlv2di3): Use SImode for shift count.
8693         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8694         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8695         New patterns.
8696         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8697         New typedefs.
8698         (__m128i, __m128d): New macros.
8699         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8700         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8701         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8702         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8703         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8704         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8705         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8706         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8707         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8708         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8709         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8710         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8711         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8712         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8713         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8714         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8715         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8716         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8717         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8718         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8719         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8720         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8721         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8722         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8723         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8724         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8725         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8726         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8727         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8728         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8729         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8730         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8731         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8732         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8733         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8734         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8735         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8736         functions.
8737         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8738         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8739
8740 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8741
8742         * dwarf2out.c: Fix formatting.
8743         * varasm.c: Likewise.
8744
8745 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8746
8747         PR c/6543
8748         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8749         clobber and use result as temporary value.
8750
8751 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8752
8753         * expr.c (force_operand): Use expand_simple_* to handle more
8754         cases.
8755
8756 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8757
8758         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8759         and sign-extension.
8760         (lex_charconst): Update for change in prototype of
8761         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8762         appropriately.
8763         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8764         * cppinit.c (cpp_create_reader): Initialize them for no
8765         change in semantics.
8766         (cpp_post_options): Add sanity checks.
8767         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8768         and truncation issues.  Calculate in type cppchar_t.
8769         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8770         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8771         run-time dependent precision correctly.  Return whether the
8772         result is signed or not.
8773         * cpplib.c (dequote_string): Use cppchar_t; update.
8774         * cpplib.h (cppchar_signed_t): New.
8775         struct cpp_options): New precision members.
8776         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8777         * cppexp.c (eval_token): Update.
8778
8779 2002-05-03  David S. Miller  <davem@redhat.com>
8780
8781         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8782         * config/sparc/sparc.c (sparc_rtx_costs): New function
8783         implementing RTX_COSTS and CONST_COSTS.
8784         * config/sparc/sparc.h (CONST_COSTS): Delete.
8785         (RTX_COSTS_CASES): Define.
8786         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8787         the work.
8788
8789         * config/sparc/sparc.md (DFA schedulers): Split out...
8790         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8791         config/sparc/sparclet.md, config/sparc/supersparc.md,
8792         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8793
8794         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8795         checks on it, always defined for Sparc.
8796
8797         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8798         Tweak, and add more detailed comments.
8799
8800 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8801
8802         * Re-apply patch accidentally reverted with
8803         DFA scheduler merge: remove all rules and variables to slurp
8804         source files out of libiberty and rebuild them with HOST_CC.
8805         ($(HOST_PREFIX_1)varray.o): New rule.
8806         (genattrtab rule): Word wrap.
8807
8808 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8809
8810         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8811         (CPP_SUBTARGET_SPEC): Define.
8812         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8813         cpp_subtarget specs.
8814         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8815
8816 2002-05-03  David S. Miller  <davem@redhat.com>
8817
8818         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8819         * target.h (struct gcc_target): Delete cycle_display member.
8820
8821         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8822         (rtx_needs_barrier): Delete reference to cycle_display unspec.
8823         (ia64_sched_reorder2): Mention need for cycle display handling
8824         once such notes exist.
8825
8826 2002-05-03  Richard Henderson  <rth@redhat.com>
8827
8828         * real.c (etoasc): Strip most trailing zeros for clarity.
8829         * sched-vis.c: Include real.h.
8830         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8831         * Makefile.in (sched-vis.o): Add real.h.
8832
8833 2002-05-03  David S. Miller  <davem@redhat.com>
8834
8835         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8836         no longer needed.
8837
8838 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
8839
8840         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8841         when we get an out of range literal.
8842         (altivec_expand_ternop_builtin): Same.
8843         (altivec_expand_unop_builtin): Same.
8844         (altivec_expand_builtin): Same, for dss.
8845         (altivec_expand_builtin): Use trees instead of rtl when
8846         determining literal argument validity.
8847
8848 2002-05-03  David S. Miller  <davem@redhat.com>
8849
8850         Delete cycle display scheduling hook.
8851         * config/ia64/ia64.c (ia64_cycle_display,
8852         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8853         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8854         and use emit_insn_before instead of ia64_emit_insn_before.
8855         * config/ia64/ia64.md (unspec usage): Delete cycle display.
8856         (cycle_display): Delete insn pattern.
8857         * config/sparc/sparc.md (unspec usage): Delete cycle display.
8858         (cycle_display): Delete insn pattern.
8859         * config/sparc/sparc.c (sparc_cycle_display,
8860         TARGET_SCHED_CYCLE_DISPLAY): Delete.
8861         * doc/md.texi (cycle_display): Don't mention.
8862         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8863
8864 2002-05-03  Richard Henderson  <rth@redhat.com>
8865
8866         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8867         * recog.h: Declare them.
8868
8869         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8870         * config/sparc/sparc.md: Use store_data_bypass_p instead.
8871         * config/sparc/sparc-protos.h: Update.
8872
8873 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8874
8875         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8876         -D__arch64__.  Add -D_LP64.
8877         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8878         from sparc.h.
8879         (CPP_ARCH64_SPEC): Likewise.
8880         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8881         (NO_BUILTIN_SIZE_TYPE): Undef.
8882
8883 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
8884
8885         * genautomata.c (min_issue_delay_pass_states): Change return type
8886         in the prototype.
8887         (min_issue_delay_pass_states): Change the algorithm.
8888         (min_issue_delay): Set up min_insn_issue_delay for the state.
8889         (output_min_issue_delay_table): Interchange the nested loops and
8890         and initiate min_insn_issue_delay for states.
8891
8892 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
8893
8894         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
8895         jump is simplejump.
8896
8897 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8898
8899         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
8900         sequence.
8901
8902 2002-05-03  Richard Henderson  <rth@redhat.com>
8903
8904         PR opt/6534
8905         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8906         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8907         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8908         code before JUMP, not EARLIEST.
8909
8910 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
8911
8912         * c-format.c (check_format_info_main): Don't check for presence of
8913         parameter for * width until after operand number has been read,
8914         and only check for it if format parameters are available.
8915         Fixes PR c/6547.
8916
8917 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8918
8919         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8920         (LINK_SPEC): Undef before defining.
8921
8922 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8923
8924         PR preprocessor/6489
8925         * tradcpp.c (fixup_newlines): New.
8926         (main, finclude): Use it.
8927
8928 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
8929
8930         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8931         * config/mips/mips.c (mips_unique_section): Strip encoding from
8932         decl name.
8933
8934 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8935
8936         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8937         mode.
8938
8939 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8940
8941         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8942         (Specific): Removed buildstats references.
8943         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8944         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8945         Accomodate Solaris versions beyond 8.
8946         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8947         (Specific, *-*-solaris2.8): Removed, obsolete.
8948
8949 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8950
8951         PR target/6542
8952         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8953         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8954         fill leaf_reg_remap with identity.
8955         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8956
8957 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8958
8959         * config/h8300/crti.asm: Remove trailing spaces.
8960         * config/h8300/h8300.c: Likewise.
8961         * config/h8300/lib1funcs.asm: Likewise.
8962
8963 2002-05-02  Jason Merrill  <jason@redhat.com>
8964
8965         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8966         * c-decl.c (c_init_decl_processing): Use it.
8967         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8968         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8969         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8970
8971 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8972
8973         * regrename.c: Fix formatting.
8974         * tree.c: Likewise.
8975
8976 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
8977
8978         * i386.md (attribute memory): Handle compares properly.
8979
8980 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
8981
8982         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8983         to none.
8984
8985 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8986
8987         * function.c: Fix formatting.
8988
8989 2002-05-02  Jan Hubicka  <jh@suse.cz>
8990
8991         * haifa-sched.c (schedule_insn): Print table of instructions and
8992         reservations.
8993         (sched_block): Do not print ready list at verbosity level 1.
8994         * sched-vis.c (print_insn): Make global.
8995         * sched-ebb.c (ebb_print_insn): Rename from...
8996         (print_insn): ... this one.
8997         * sched-int.h (print_insn): Declare
8998
8999 2002-05-02  Richard Henderson  <rth@redhat.com>
9000
9001         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
9002         emitted by cycle_display.
9003
9004 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
9005
9006         * doc/install.texi (*-*-freebsd*): Update to latest status.
9007
9008 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
9009
9010         PR target/6540
9011         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
9012         * config/float-sparc.h: Assume 128-bit long double if
9013         __LONG_DOUBLE_128__ is defined.
9014
9015 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
9016
9017         * genattrtab.c (write_function_unit_info): Add a dummy element
9018         when num_units == 0.
9019
9020 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9021
9022         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
9023         TYPE_MODE (double_type_node) instead of DFmode.
9024
9025 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
9026
9027         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
9028         jumps post reload.
9029         * toplev.c (rest_of_compilation): Revert Richard's patch.
9030
9031 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9032
9033         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
9034
9035 2002-05-02  Catherine Moore  <clm@redhat.com>
9036
9037         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
9038
9039 2002-05-02  Kazu Hirata  <kazu@hxi.com>
9040
9041         * combine.c: Fix comment typos.
9042         * expr.c: Likewise.
9043         * genautomata.c: Likewise.
9044         * stmt.c: Likewise.
9045         * tree.h: Likewise.
9046
9047 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9048
9049         * doc/install.texi: State GNAT version requirements.
9050
9051 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
9052
9053         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
9054         of the frame pointer or arg pointer register which strict register
9055         checking is not enabled.
9056
9057 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
9058
9059         * gcc.dg/altivec-8.c: New.
9060
9061         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
9062         PRE_INC and PRE_DEC for altivec modes.
9063
9064 2002-05-01  Bruce Korb  <bkorb@gnu.org>
9065
9066         * fixinc/check.tpl(set-writable): make sure the function exists first
9067         * fixinc/inclhack.def(alpha_assert): fix test_text
9068         * fixinc/tests/base/assert.h: add in missing result
9069
9070 2002-05-01  Jeff Law  <law@redhat.com>
9071
9072         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
9073         'T' constraint.
9074
9075 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
9076
9077         * dbxout.c (dbxout_type): Emit size information for range types,
9078         as well, but only when using GDB extensions.
9079
9080 2002-05-01  Richard Henderson  <rth@redhat.com>
9081
9082         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
9083         target-independent gnu binutils date test.
9084
9085 2002-05-01  Richard Henderson  <rth@redhat.com>
9086
9087         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
9088         info before expunging the block.
9089
9090 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9091
9092         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
9093         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
9094         -M -or -MM is in effect.
9095
9096 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
9097
9098         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
9099         A29k configurations.
9100         * doc/install.texi: Update to match.
9101
9102 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9103
9104         PR bootstrap/6514
9105         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
9106         for duplicates. Always loop over whole list.
9107
9108 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9109
9110         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
9111
9112 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9113
9114         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9115         support routines.
9116
9117 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9118
9119         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9120
9121 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
9122
9123         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9124         (nabs_nopower): Same.
9125         (floatdisf2): New pattern.
9126         (absdi2): Convert to define_insn_and_split.
9127         (nabsdi2): Same.
9128         (trunctfsf2): Same.
9129         (floatditf2): Same.
9130         (floatsitf2): Same.
9131         (fix_trunctfdi2): Same.
9132         (fix_trunctfsi2): Same.
9133
9134 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
9135
9136         * doc/install.texi: Update Texinfo version requirement
9137         documentation.
9138
9139 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9140
9141         PR target/6512, PR target/5628
9142         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9143         when memory is not aligned.
9144         (movdf_insn_v9only_vis): Likewise.
9145         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9146         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9147         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9148
9149 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
9150
9151         * gcc.dg/altivec-7.c: New.
9152
9153         * config/rs6000/altivec.h: Cleanup.
9154
9155 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
9156
9157         * doc/invoke.texi (Option Summary): Add -mvrsave=.
9158         (RS/6000 and PowerPC Options): Document -mvrsave=.
9159
9160         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9161         (rs6000_altivec_vrsave_string): Same.
9162         (rs6000_override_options): Call rs6000_parse_vrsave_option.
9163         (rs6000_parse_vrsave_option): New.
9164         (rs6000_stack_info): Only generate vrsave instructions when
9165         TARGET_ALTIVEC_VRSAVE.
9166
9167         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9168         (rs6000_altivec_vrsave_string): Define extern.
9169         (rs6000_altivec_vrsave): Same.
9170         (TARGET_ALTIVEC_VRSAVE): New.
9171
9172 2002-04-30  Richard Henderson  <rth@redhat.com>
9173
9174         PR opt/6516
9175         * toplev.c (rest_of_compilation): Don't run cross-jump before
9176         bb-reorder.
9177
9178 2002-04-30  Tom Rix  <trix@redhat.com>
9179
9180         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9181         check which_alternative.
9182
9183 2002-04-30  Kazu Hirata  <kazu@hxi.com>
9184
9185         * cpplex.c: Fix comment formatting.
9186         * function.c: Likewise.
9187         * integrate.c: Likewise.
9188         * regrename.c: Likewise.
9189         * sibcall.c: Likewise.
9190         * simplify-rtx.c: Likewise.
9191         * tree-inline.c: Likewise.
9192
9193 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9194
9195         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9196         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9197         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9198         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9199         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9200         * pa/x-ada: New file.  Define ADA_CFLAGS.
9201
9202 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
9203
9204         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9205         from MMIX_LAST_REGISTER_FILE_REGNUM.
9206         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9207         (struct machine_function): New member highest_saved_stack_register
9208         previously static variable in mmix.c.
9209         (MACHINE_DEPENDENT_REORG): Define.
9210         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9211         (MMIX_OUTPUT_REGNO): New.
9212         (mmix_target_asm_function_prologue): Move calculation of last used
9213         saved-stack-register into...
9214         (mmix_machine_dependent_reorg): New function.  Update to also handle
9215         !TARGET_ABI_GNU.
9216         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9217         register names, simplify somewhat by new variable regno.
9218         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
9219         register.
9220         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9221         emitting register names.
9222         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9223         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9224         Remove fixed FIXME.
9225         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9226         Declare.
9227
9228         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9229
9230 2002-04-30  Richard Henderson  <rth@redhat.com>
9231
9232         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9233         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9234         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9235         emit_tfmode_cvt): New.
9236         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9237         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9238         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9239         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9240         * config/sparc/sparc-protos.h: Update.
9241
9242 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
9243
9244         * install.texi (Final install): Add to the list of info to include
9245         in a report of a successful bootstrap, and add link to 3.1 list.
9246
9247 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
9248
9249         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9250         (mode): Add vector modes
9251         (i387): Kill attribute.
9252         (unit): New attribute.
9253         (length_immediate): Grok new types.
9254         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9255         (modrm): Use "unit".
9256         (memory): Handle MMX/SSE properly.
9257         (scheduling descriptions): Kill uses of fop1.
9258         (sse, mmx, fp patterns): Set type and mode properly.
9259
9260 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
9261
9262         * pa.c (override_options): Default to PA8000 scheduling.
9263         * doc/invoke.texi (HP-PA options): Mention newly added 7300
9264         scheduling parameter.
9265
9266         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9267         handling of double precision multiplies.
9268
9269         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9270         fpdiv and fpsqrt instructions.
9271         (7200 & 7300 scheduling): Fix typo in handling of
9272         store-load and store-store penalties.
9273
9274 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9275
9276         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9277         mips.  Add two missing commas.
9278
9279 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
9280
9281         * doc/contrib.texi (Contributors): Update Paolo Carlini's
9282         and Benjamin Kosnik's entries.
9283
9284 2002-04-29  David S. Miller  <davem@redhat.com>
9285
9286         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9287         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9288         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9289         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9290
9291 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9292
9293         * combine.c (find_split_point): Use gen_int_mode.
9294
9295 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9296
9297         Merging code from dfa-branch:
9298
9299         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9300
9301         * genautomata.c (output_reserv_sets): Fix typo.
9302
9303         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9304
9305         * genautomata.c (output_reserv_sets): Remove
9306         next_cycle_output_flag.
9307
9308         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9309
9310         * sched-rgn.c (init_ready_list): Make the DFA code handle
9311         USE/CLOBBER insns in the same way as the traditional
9312         scheduler.
9313         (new_ready): Similarly..
9314
9315         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9316
9317         * haifa-sched.c (schedule_block): Change the DFA state only after
9318         issuing insn.
9319
9320         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9321
9322         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9323         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9324         (override_options): Add PA7300 scheduling support.
9325         (pa_adjust_cost): Update various comments.  Properly
9326         handle anti and output dependencies when using the
9327         DFA scheduler.
9328         (pa_issue_rate): Add PA7300 scheduling support.
9329         (pa_can_combine_p): Call extract_insn before calling
9330         constrain_operands (taken from mainline tree).
9331         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9332         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9333         descriptions using DFA descriptions.  Add PA7300
9334         scheduling support.
9335
9336         2002-03-30  David S. Miller  <davem@redhat.com>
9337
9338         Add UltraSPARC-III DFA scheduling support.
9339         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9340         Update FP conditional move on register insn patterns to use it, as
9341         appropriate.
9342         (define_attr cpu): Add ultrasparc3.
9343         (define_attr us3load_type): New, update integer load patterns to
9344         set it, as appropriate.
9345         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9346         (rest): Add UltraSPARC3 scheduling description.
9347         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9348         (PROCESSOR_ULTRASPARC3): New.
9349         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9350         ({ASM,CPP}_CPU_SPEC): Likewise.
9351         (REGISTER_MOVE_COST): Likewise.
9352         (RTX_COSTS): Likewise.
9353         * config/sparc/sparc.c (sparc_override_options,
9354         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9355         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9356         sparc_issue_rate): Likewise.
9357         * config/sparc/sol2.h: Likewise.
9358         * config/sparc/sol2-sld-64.h: Likewise.
9359         * config/sparc/linux64.h: Likewise.
9360
9361         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9362
9363         * doc/md.texi: Add comments about usage the latency time for the
9364         different dependencies and about case when two or more conditions
9365         in different define_insn_reservations returns TRUE for an insn.
9366
9367         * doc/md.texi: Add reference for automaton based pipeline
9368         description.
9369
9370         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9371
9372         * doc/passes.texi: Add missed information about genattrtab.
9373
9374         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9375
9376         * genautomata.c (output_automata_list_transition_code): Check
9377         automata_list on NULL.
9378
9379         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9380
9381         * genautomata.c (output_insn_code_cases,
9382         output_automata_list_min_issue_delay_code,
9383         output_automata_list_transition_code,
9384         output_automata_list_state_alts_code): Comment the functions.
9385
9386         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9387
9388         * genautomata.c (automata_list_el_t): New typedef.
9389         (get_free_automata_list_el,free_automata_list_el,
9390         free_automata_list, automata_list_hash, automata_list_eq_p,
9391         initiate_automata_lists, automata_list_start, automata_list_add,
9392         automata_list_finish, finish_automata_lists,
9393         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9394         output_automata_list_transition_code,
9395         output_automata_list_state_alts_code, add_automaton_state,
9396         form_important_insn_automata_lists): New functions and prototypes.
9397         (insn_reserv_decl): Add members important_automata_list and
9398         processed_p.
9399         (ainsn): Add members important_p.
9400         (automata_list_el): New structure.
9401         (first_free_automata_list_el, current_automata_list,
9402         automata_list_table): New global variables.
9403         (create_ainsns): Initiate member important_p.
9404         (output_internal_min_issue_delay_func): Generate the switch and
9405         call output_insn_code_cases.
9406         (output_internal_trans_func, output_internal_state_alts_func):
9407         Ditto.
9408         (generate): Call initiate_automata_lists.
9409         (automaton_states): New global variable.
9410         (expand_automata): Call form_important_insn_automata_lists.
9411         (write_automata): Call finish_automata_lists.
9412
9413         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9414
9415         * genautomata.c (add_excls, add_presence_absence): Check that
9416         cpu units in the sets belong the same automaton.
9417
9418         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9419         about that cpu units in the sets belong the same automaton.
9420
9421         * doc/md.texi: Ditto.
9422
9423         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9424                     Nitin Gupta  <niting@noida.hcltech.com>
9425
9426         * config/sh/sh.c (sh_use_dfa_interface): New function.
9427
9428         (sh_issue_rate): New Function.
9429         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9430         TARGET_SCHED_ISSUE_RATE: define.
9431
9432         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9433
9434         (define_attr insn_class): New attribute used for DFA
9435          scheduling.
9436         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9437         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9438          cmpeqdi_t): Likewise.
9439
9440         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9441          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9442          ex_group.
9443         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9444
9445         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9446
9447         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9448         break.
9449
9450         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9451
9452         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9453         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9454         necessary.
9455         (output_dfa_start_func): Initiate new variable insn_codes_length,
9456         (write_automata): Output definition of the new variable.
9457
9458         2001-10-02  David S. Miller  <davem@redhat.com>
9459
9460         * haifa-sched.c (advance_one_cycle): New function.
9461         (schedule_block): Use it.
9462         (queue_to_ready): Use it, and also make sure to advance the DFA
9463         state on all stall cycles, not just those where insn_queue links
9464         are found.
9465
9466         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9467
9468         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9469         non-zero if the highest-priority instruction could be scheduled.
9470         (choose_ready): Remove last argument from max_issue call.
9471
9472         2001-09-28  David S. Miller  <davem@redhat.com>
9473
9474         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9475         ultrasparc and 3 for other multi-issue sparcs.
9476
9477         2001-09-27  David S. Miller  <davem@redhat.com>
9478
9479         * config/sparc/sparc.md (cycle_display): New pattern.
9480         * config/sparc/sparc.c (sparc_cycle_display): New.
9481         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9482
9483         2001-09-25  David S. Miller  <davem@redhat.com>
9484
9485         Convert all of Sparc scheduling to DFA
9486         * config/sparc/sparc.md: Kill all define_function_unit
9487         directives and replace with DFA equivalent.
9488         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9489         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9490         ultra_fpmode_conflict_exists, ultra_find_type,
9491         ultra_build_types_avail, ultra_flush_pipeline,
9492         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9493         ultrasparc_variable_issue, ultrasparc_sched_init,
9494         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9495         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9496         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9497         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9498         ultrasparc_store_bypass_p): New.
9499         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9500         Declare.
9501
9502         2001-09-24  David S. Miller  <davem@redhat.com>
9503
9504         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9505         ready->vec[foo] not ready[foo].
9506
9507         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9508
9509         * doc/md.texi: Correct examples for define_insn_reservations
9510         `mult' and `div'.
9511
9512         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9513
9514         * genautomata.c (create_automata): Print message about creation of
9515         each automaton.
9516         (generate): Remove printing meease about creation of
9517         automata.
9518
9519         2001-09-05  David S. Miller  <davem@redhat.com>
9520
9521         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9522         * config/sparc/linux64.h: Likewise.
9523
9524         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9525
9526         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9527         schedule_block, sched_init, sched_finish): Add missed calls of
9528         use_dfa_pipeline_interface.
9529
9530         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9531         Ditto.
9532
9533         * sched-vis.c (get_visual_tbl_length): Ditto.
9534
9535         2001-08-27  Richard Henderson  <rth@redhat.com>
9536
9537         * genattr.c (main): Emit state_t even when not doing scheduling.
9538
9539         2001-08-27  Richard Henderson  <rth@redhat.com>
9540
9541         * genautomata.c (expand_automata): Always create a description.
9542
9543         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9544
9545         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9546         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9547         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9548         RTL constructions.
9549
9550         * genattr.c (main): New variable num_insn_reservations.  Increase
9551         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9552         pipeline hazard recognizer interface.
9553
9554         * genattrtab.h: New file.
9555
9556         * genattrtab.c: Include genattrtab.h.
9557         (attr_printf, check_attr_test, make_internal_attr,
9558         make_numeric_value): Move protypes into genattrtab.h.  Define them
9559         as external.
9560         (num_dfa_decls): New global variable.
9561         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9562         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9563         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9564         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9565
9566         * genautomata.c: New file.
9567
9568         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9569
9570         * sched-int.h: (curr_state): Add the external definition for
9571         automaton pipeline interface.
9572         (haifa_insn_data): Add comments for members blockage and units.
9573
9574         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9575         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9576         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9577         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9578         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9579         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9580         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9581         macros.
9582         (TARGET_SCHED): Use the new macros.
9583
9584         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9585         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9586         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9587         dfa_bubble): New members in gcc_target.sched.
9588
9589         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9590         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9591         (insn_queue): Redefine it as pointer to array.
9592         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9593         INSN_QUEUE_SIZE.
9594         (max_insn_queue_index_macro_value): New variable.
9595         (curr_state, dfa_state_size, ready_try): New varaibles for
9596         automaton interface.
9597         (ready_element, ready_remove, max_issue): New function prototypes
9598         for automaton interface.
9599         (choose_ready): New function prototype.
9600         (insn_unit, blockage_range): Add comments.
9601         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9602         FUNCTION_UNITS_SIZE == 0.
9603         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9604         actual_hazard, potential_hazard): Add comments.
9605         (insn_cost): Use cost -1 as undefined value.  Remove
9606         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9607         pipeline interface.
9608         (ready_element, ready_remove): New functions for automaton
9609         interface.
9610         (schedule_insn): Add new code for automaton pipeline interface.
9611         (queue_to_ready): Add new code for automaton pipeline interface.
9612         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9613         (debug_ready_list): Print newline when the queue is empty.
9614         (max_issue): New function for automaton pipeline interface.
9615         (choose_ready): New function.
9616         (schedule_block): Add new code for automaton pipeline interface.
9617         Print ready list before scheduling each insn.
9618         (sched_init): Add new code for automaton pipeline interface.
9619         Initiate insn cost by -1.
9620         (sched_finish): Free the current automaton state and finalize
9621         automaton pipeline interface.
9622
9623         * sched-rgn.c: Include target.h.
9624         (init_ready_list, new_ready, debug_dependencies): Add new code for
9625         automaton pipeline interface.
9626
9627         * sched-vis.c: Include target.h.
9628         (get_visual_tbl_length): Add code for automaton interface.
9629         (target_units, print_block_visualization):  Add comments.
9630
9631         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9632         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9633         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9634         (getruntime.o, genautomata.o): New entries.
9635         (genattrtab.o): Add new dependency file genattrtab.h.
9636         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9637         (getruntime.o, hashtab.o): New entries for canadian cross.
9638
9639         * doc/md.texi: Description of automaton based model.
9640
9641         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9642         Add comments.
9643         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9644         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9645         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9646         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9647         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9648         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9649         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9650         hook descriptions.
9651         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9652         MAX_DFA_ISSUE_RATE): New macro descriptions.
9653
9654         * doc/contrib.texi: Add dfa based scheduler contribution.
9655
9656         * doc/gcc.texi: Add more information about genattrtab.
9657
9658 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9659
9660         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9661         adjust_address_nv call.
9662
9663 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9664
9665         * doc/install.texi (Testing): Provide additional information, and
9666         a stronger encouragement, for running the testsuites.
9667
9668 2002-04-29  DJ Delorie  <dj@redhat.com>
9669
9670         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9671         given in upper case.
9672
9673 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9674
9675         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9676         Solaris 2 <widec.h> if missing.
9677         * fixinc/fixincl.x: Regenerate.
9678         * fixinc/tests/base/widec.h: New file.
9679
9680 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9681
9682         * toplev.c (f_options): Add "profile" switch so that
9683         -fno-profile can be used to disable -p.
9684
9685 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9686
9687         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9688         UV2DImode.
9689         * tree.c (build_common_tree_nodes_2): Likewise.
9690         * tree.h (enum tree_index): Likewise.
9691         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9692
9693         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9694         entries.
9695         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9696         (ix86_expand_builtin): Add support for SSE2 builtins.
9697         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9698         (VALID_SSE_REG_MODE): Use it.
9699         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9700         (enum ix86_builtins): Add SSE2 builtins.
9701         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9702         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9703         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9704         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9705         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9706         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9707         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9708         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9709         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9710         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9711         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9712         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9713         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9714         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9715         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9716         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9717         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9718         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9719         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9720         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9721         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9722         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9723         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9724         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9725         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9726         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9727         lfence_insn): New patterns.
9728         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9729         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9730
9731 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9732
9733         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9734
9735 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9736
9737         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9738         Janis Johnson.
9739         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9740         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9741         and CPU instead of cpu.
9742
9743 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9744
9745         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9746         variables.
9747         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9748         (rest_of_compilation): Do if conversion only when asked for.
9749         (parse_options_and_default_flags): Set new variables to 1 for -O1
9750         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9751
9752 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9753
9754         * i386.c (dbx64_register_map): Fix typo.
9755
9756 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9757
9758         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9759         real_one_half, real_bb_freq_max): New static variables.
9760         (debug_profile_bbauxs): Kill.
9761         (process_note_predictions): Kill unused variable.
9762         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9763         volatile double.
9764         (propagate_freq): Use REAL_ARITHMETICS.
9765         (estimate_bb_frequencies): Likevise; init new static variables.
9766         * Makefile.in (predict.o): Add dependency on real.h
9767
9768 2002-04-28  David S. Miller  <davem@redhat.com>
9769
9770         PR target/6500
9771         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9772         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9773         several {reads,writes} instead.
9774         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9775         Define.
9776
9777 2002-04-27  David S. Miller  <davem@redhat.com>
9778
9779         PR target/6494
9780         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9781         of the stack bias.
9782
9783         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9784         including signal.h and sys/ucontext.h, not needed.
9785
9786 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9787
9788         * varasm.c (output_constant_def): Correct test for not calling
9789         ENCODE_SECTION_INFO for INTEGER_CST.
9790
9791 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9792
9793         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9794         keep most cases as function eval_token.
9795         (eval_token): New function.
9796         (_cpp_parse_expr): Read token here for improved diagnostics.
9797         Don't use op_as_text.  Detect bad ':' here.
9798         (reduce): Don't detect bad ':' here.
9799         (op_as_text): Remove.
9800         * cpphash.h (_cpp_test_assertion): Change prototype.
9801         * cpplib.c (_cpp_test_assertion): Change prototype.
9802
9803 2002-04-28  Richard Henderson  <rth@redhat.com>
9804
9805         PR c/5154
9806         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9807         (ggc_mark_rtx_children): New.
9808
9809 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9810
9811         PR target/6496
9812         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9813         after call peepholes for UltraSPARC.
9814         (call + jump 64-bit peepholes): Remove.
9815
9816 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9817
9818         PR c/6497
9819         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9820         result as temporary value.
9821
9822 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9823
9824         PR c++/6396
9825         * toplev.c (rest_of_compilation): Only run regrename and copy
9826         propagation if optimizing.
9827
9828 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9829
9830         PR optimization/6475
9831         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9832         register of REGNO_DECL (i).
9833         * Makefile.in (reload1.o): Add $(TREE_H).
9834
9835 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9836
9837         * cppexp.c (lex): Update to use state.skip_eval.
9838         (struct op): Remove prio and flags members.
9839         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9840         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9841         (LEFT_ASSOC): New macro.
9842         (optab): New table of operator priorities and flags.
9843         (SHIFT): Update.
9844         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
9845         malloc-ed parser stack.
9846         (reduce): New; reduce the operator stack.
9847         (_cpp_expand_op_stack): Expand the operator stack as necessary.
9848         * cpphash.h (struct op): Predeclare.
9849         (struct cpp_reader): New members op_stack, op_limit.
9850         (struct lexer_state): New member skip_eval.
9851         (_cpp_parse_expr): Update.
9852         (_cpp_expand_op_stack): New.
9853         * cpplib.c (do_if): Update.
9854         * cppinit.c (cpp_create_reader): Create op stack.
9855         (cpp_destroy): And destroy it.
9856         * cpplib.h (CPP_LAST_CPP_OP): Correct.
9857         (TTYPE_TABLE): Correct.
9858
9859 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9860
9861         PR c/6343
9862         * c-decl.c (duplicate_decls): Call merge_weak.
9863         * c-pragma.c (apply_pragma_weak): Warn about misuse.
9864         * output.h (merge_weak): Prototype merge_weak.
9865         * varasm.c (merge_weak): New function.
9866         (declare_weak): Make sure we don't give an error on VAR_DECLs.
9867         Mark RTL with SYMBOL_REF_WEAK.
9868
9869 2002-04-27  Kurt Garloff <garloff@suse.de>
9870
9871         * tree-inline.c (inlinable_function_p): Improve heuristics
9872         by using a smoother function to cut down allowable inlinable size.
9873         * param.def: Add parameters max-inline-insns-single,
9874         max-inline-slope, min-inline-insns that determine the exact
9875         shape of the above function.
9876         * param.h: Likewise.
9877
9878 2002-04-26  Richard Henderson  <rth@redhat.com>
9879
9880         * c-parse.in (malloced_yyss, malloced_yyvs): New.
9881         (yyoverflow): Re-add.  Set them.
9882         (free_parser_stacks): New.
9883         * c-common.h: Declare it.
9884         * c-lex.c (c_common_parse_file): Call it.
9885
9886 2002-04-26  Richard Henderson  <rth@redhat.com>
9887
9888         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9889         for fallthru search.
9890
9891 2002-04-26  Eric Christopher  <echristo@redhat.com>
9892
9893         PR optimization/3700
9894         * config/mips/mips.c (mips_issue_rate): Define.  New function.
9895         (TARGET_SCHED_ISSUE_RATE): Use.
9896
9897 2002-04-25  David S. Miller  <davem@redhat.com>
9898
9899         PR target/6422
9900         * reorg.c (optimize_skip): Do not allow exception causing
9901         instructions to be considered for delay slots.
9902         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9903         (relax_delay_slots): Do not try to consider exception causing
9904         instructions as redundant.
9905
9906 2002-04-26  Richard Henderson  <rth@redhat.com>
9907
9908         PR c/5225
9909         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9910
9911 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
9912
9913         PR bootstrap/6445
9914         * config/i386/i386.md (untyped_call): Return the value in a float
9915         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9916         TARGET_80387.
9917
9918 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
9919
9920         * tree.c (tree_int_cst_lt): Compare constants whose types differ
9921         in unsigned-ness correctly.
9922
9923 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9924
9925         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9926         portable runtime model.
9927
9928 2002-04-26  Richard Henderson  <rth@redhat.com>
9929
9930         * c-parse.in (yyoverflow): Revert.
9931
9932 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
9933             Richard Henderson  <rth@redhat.com>
9934
9935         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9936         result as temporary value.
9937
9938 2002-04-26  Richard Henderson  <rth@redhat.com>
9939
9940         PR c/3581
9941         * c-common.c (fix_string_type): Split out of ...
9942         (combine_strings): ... here.  Take a varray, not a tree list.
9943         (c_expand_builtin_printf): Use fix_string_type.
9944         * c-common.h: Update decls.
9945         * c-parse.in (string): Remove.  Update all uses to use STRING
9946         instead, and not call combine_strings.
9947         (yylexstring): New.
9948         (_yylex): Use it.
9949         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9950         (build_asm_stmt): Likewise.
9951         * objc/objc-act.c (my_build_string): Use fix_string_type.
9952         (build_objc_string_object): Build varray for combine_strings.
9953
9954 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
9955
9956         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9957         x86-64.
9958
9959 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9960
9961         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9962         (HAVE_NO_R_OPERAND): Remove.
9963         (HAVE_VALUE): Remove.
9964         (op_to_prio): Update.
9965         (UNARY): Don't alter flags.
9966         (_cpp_parse_expr): want_value used to indicate whether
9967         a number or unary operator is expected next.  Distinguish
9968         unary and binary +/-.
9969         (op_as_text): Update for unary operators.
9970
9971 2002-04-25  Richard Henderson  <rth@redhat.com>
9972
9973         PR c/2161
9974         * c-parse.in (yyoverflow): New.
9975
9976 2002-04-25  Richard Henderson  <rth@redhat.com>
9977
9978         PR c/2098
9979         * c-common.c (shorten_compare): Simplfy conditions leading to
9980         the generation of a warning.
9981
9982 2002-04-25  Richard Henderson  <rth@redhat.com>
9983
9984         PR c/2035
9985         * expmed.c (extract_bit_field): Fall through to generic code rather
9986         than aborting on subreg special case.
9987
9988 2002-04-25  David S. Miller  <davem@redhat.com>
9989
9990         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9991         for DECL being NULL.
9992
9993 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
9994
9995         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9996
9997 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
9998
9999         * c-decl.c (grokdeclarator): Remove outdated ??? note
10000         on invalid declaration of flexible array members.
10001
10002 2002-04-25  Richard Henderson  <rth@redhat.com>
10003
10004         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
10005
10006 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
10007
10008         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
10009         needed by the compiler, even if they are used as global regs.
10010
10011 2002-04-25  Matt Hiller  <hiller@redhat.com>
10012
10013         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
10014         functions.
10015         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
10016         of the corresponding functions.
10017         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
10018         New prototypes.
10019
10020 2002-04-25  Matt Hiller  <hiller@redhat.com>
10021
10022         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
10023
10024         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
10025         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
10026         registers, adjust comment accordingly.
10027         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
10028         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
10029         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
10030         for coprocessor registers.
10031         (ADDITIONAL_REGISTER_NAMES): Include
10032         ALL_COP_ADDITIONAL_REGISTER_NAMES.
10033
10034         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
10035         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
10036         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
10037         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
10038         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
10039
10040         (mips_char_to_class): Adjust comment to include coprocessor
10041         constraint letters.
10042
10043         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
10044         New functions.
10045         (mips_reg_names, mips_regno_to_class): Include coprocessor
10046         information.
10047         (mips_sw_reg_names): Ditto, make non-static.
10048         (mips_move_1word): Handle moves to and from coprocessor registers.
10049         (mips_move_2words): Handle moves to and from coprocessor
10050         registers.
10051         (mips_class_max_nregs, mips_register_move_cost): Handle
10052         coprocessor register classes.
10053         (override_options): Initialize mips_char_to_class and
10054         mips_hard_regno_mode_ok properly for coprocessor registers.
10055
10056         * config/mips/mips.md (movdi_internal, movdi_internal2,
10057         movsi_internal1, movsi_internal2): Add constraint-sets for
10058         coprocessor registers.
10059         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
10060         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
10061         isn't mips.
10062         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
10063         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
10064         isn't mips.
10065         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
10066         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
10067         isn't mips.
10068         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
10069         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
10070         isn't mips.
10071
10072         * doc/tm.texi: Document feature.
10073
10074 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10075
10076         * integrate.c (function_attribute_inlinable_p): Simplify.
10077         Check the table pointer is not NULL.
10078
10079 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
10080
10081         * doc/c-tree.texi: Fix typo in introduction.
10082
10083 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10084
10085         * c-common.h (c_common_parse_file): Update.
10086         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10087         * c-lex.c (YYDEBUG): Get from c-lex.h.
10088         (c_common_parse_file): Update.
10089         * c-lex.h (YYDEBUG, yydebug): New.
10090         * c-parse.in (YYDEBUG): Get from c-lex.h.
10091         (c_set_yydebug): Remove.
10092         * c-tree.h (c_set_yydebug): Remove.
10093         * langhooks-def.h (lhd_do_nothing_i): New.
10094         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
10095         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
10096         * langhooks.c  (lhd_do_nothing_i): New.
10097         (lhd_set_yydebug): Remove.
10098         * langhooks.h (struct lang_hooks): Update.
10099         * toplev.c (set_yydebug): New.
10100         (compile_file): Update call to parse_file hook.
10101         (decode_d_option): Update.
10102 objc:
10103         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10104
10105 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
10106
10107         * loop.c (load_mems): Don't change the interface of called functions.
10108
10109         * calls.c (expand_call): Take current_function_pretend_args_size
10110         into account when setting argblock for sibcalls.
10111
10112 2002-04-24  Matt Hiller  <hiller@redhat.com>
10113
10114         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10115         * c-lex.c: Ditto.
10116
10117         * cpplex.c (skip_line_comment): Process comment one multibyte
10118         character at a time rather than one char at a time, if
10119         appropriate.
10120         (parse_string): Process string one multibyte character at a time
10121         rather than one char at a time, if appropriate.
10122         * c-lex.c (lex_string): Lex and copy multibyte strings
10123         appropriately.
10124         * cpplib.h (cppchar_t): Change to unsigned.
10125
10126 2002-04-24  Richard Henderson  <rth@redhat.com>
10127
10128         PR c/3467
10129         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10130         for c99.
10131
10132 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
10133
10134         * sh.c (sh_va_arg): If argument was passed by reference,
10135         dereference the pointer.
10136
10137         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10138
10139         * sh.md (divsi3_i4_media): Use match_operand for input values
10140         rather than hard registers.
10141         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10142         unnecessarily through hard registers.  Keep copies of pseudo
10143         registers outside of the libcall sequence.
10144
10145         * sh.md (casesi_shift_media): Add modes.
10146
10147         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10148         values in memory.
10149
10150 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10151
10152         * attribs.c (c_common_attribute_table): Move table and handlers
10153         to c-common.c.
10154         (format_attribute_table, lang_attribute_table,
10155         lang_attribute_common): Remove.
10156         (init_attributes): Replace NULL pointers with pointers to the
10157         empty table.
10158         (handle_packed_attribute, handle_nocommon_attribute,
10159         handle_common_attribute, handle_noreturn_attribute,
10160         handle_noinline_attribute, handle_always_inline_attribute,
10161         handle_used_attribute, handle_unused_attribute,
10162         handle_const_attribute, handle_transparent_union_attribute,
10163         handle_constructor_attribute, handle_destructor_attribute,
10164         handle_mode_attribute, handle_section_attribute,
10165         handle_aligned_attribute, handle_weak_attribute,
10166         handle_alias_attribute, handle_visibility_attribute,
10167         handle_no_instrument_function_attribute, handle_malloc_attribute,
10168         handle_no_limit_stack_attribute, handle_pure_attribute,
10169         handle_deprecated_attribute, handle_vector_size_attribute,
10170         vector_size_helper): Move to c-common.c.
10171         * c-common.c (c_common_attribute_table,
10172         handle_packed_attribute, handle_nocommon_attribute,
10173         handle_common_attribute, handle_noreturn_attribute,
10174         handle_noinline_attribute, handle_always_inline_attribute,
10175         handle_used_attribute, handle_unused_attribute,
10176         handle_const_attribute, handle_transparent_union_attribute,
10177         handle_constructor_attribute, handle_destructor_attribute,
10178         handle_mode_attribute, handle_section_attribute,
10179         handle_aligned_attribute, handle_weak_attribute,
10180         handle_alias_attribute, handle_visibility_attribute,
10181         handle_no_instrument_function_attribute, handle_malloc_attribute,
10182         handle_no_limit_stack_attribute, handle_pure_attribute,
10183         handle_deprecated_attribute, handle_vector_size_attribute,
10184         vector_size_helper): Move from attribs.c.
10185         * c-common.h (c_common_attribute_table,
10186         c_common_format_attribute_table): New.
10187         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10188         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10189         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10190         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10191         (LANG_HOOKS_INITIALIZER): Update.
10192         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10193         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10194         * target.h: Update comment.
10195         * tree.c (default_target_attribute_table): Remove.
10196         * tree.h (default_target_attribute_table, format_attribute_table,
10197         lang_attribute_table, lang_attribute_common): Remove.
10198 objc:
10199         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10200         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10201
10202 2002-04-24  Jason Merrill  <jason@redhat.com>
10203
10204         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10205         * dwarf2out.c (dwarf_attr_name): Support it.
10206         (gen_array_type_die): Emit it.
10207         (lookup_type_die): No special handling for VECTOR_TYPE.
10208         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10209
10210 2002-04-24  Richard Henderson  <rth@redhat.com>
10211
10212         * config/mips/mips.md (movdi_usd): Renumber.
10213
10214 2002-04-24  David S. Miller  <davem@redhat.com>
10215
10216         PR target/6420
10217         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10218         32-bit Sparc and current_function_returns_struct is true.
10219
10220 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10221
10222         * loop.c (canonicalize_condition): Use gen_int_mode.
10223
10224 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
10225
10226         * config/rs6000/altivec.h: Cleanup file.  Add non individual
10227         variants.
10228         (vec_vaddubm): New.
10229         (vec_vadduhm): New.
10230         (vec_vadduwm): New.
10231         (vec_vaddfp): New.
10232         (vec_vaddcuw): New.
10233         (vec_vaddubs): New.
10234         (vec_vaddsbs): New.
10235         (vec_vadduhs): New.
10236         (vec_vadduws): New.
10237         (vec_vaddsws): New.
10238         (vec_vand): New.
10239         (vec_vandc): New.
10240         (vec_vavgub): New.
10241         (vec_vavgsb): New.
10242         (vec_vavguh): New.
10243         (vec_vavgsh): New.
10244         (vec_vavguw): New.
10245         (vec_vavgsw): New.
10246         (vec_vrfip): New.
10247         (vec_vcmpbfp): New.
10248         (vec_vcmpequb): New.
10249         (vec_vcmpequh): New.
10250         (vec_vcmpequw): New.
10251         (vec_vcmpeqfp): New.
10252         (vec_vcmpgefp): New.
10253         (vec_vcmpgtub): New.
10254         (vec_vcmpgtsb): New.
10255         (vec_vcmpgtuh): New.
10256         (vec_vcmpgtsh): New.
10257         (vec_vcmpgtuw): New.
10258         (vec_vcmpgtsw): New.
10259         (vec_vcmpgtfp): New.
10260         (vec_vcmpgefp): New.
10261         (vec_vcfux): New.
10262         (vec_vcfsx): New.
10263         (vec_vctsxs): New.
10264         (vec_vctuxs): New.
10265         (vec_vexptefp): New.
10266         (vec_vrfim): New.
10267         (vec_lvx): New.
10268         (vec_lvebx): New.
10269         (vec_lvehx): New.
10270         (vec_lde): Add vector float variant.
10271         (vec_lvewx): New.
10272         (vec_lvxl): New.
10273         (vec_vlogefp): New.
10274         (vec_vmaddfp): New.
10275         (vec_vmhaddshs): New.
10276         (vec_vmaxub): New.
10277         (vec_vmaxsb): New.
10278         (vec_vmaxuh): New.
10279         (vec_vmaxsh): New.
10280         (vec_vmaxuw): New.
10281         (vec_vmaxsw): New.
10282         (vec_vmaxsw): New.
10283         (vec_vmaxfp): New.
10284         (vec_vmrghb): New.
10285         (vec_vmrghh): New.
10286         (vec_vmrghw): New.
10287         (vec_vmrglb): New.
10288         (vec_vmrglh): New.
10289         (vec_vmrglw): New.
10290         (vec_vminub): New.
10291         (vec_vminsb): New.
10292         (vec_vminuh): New.
10293         (vec_vminsh): New.
10294         (vec_vminuw): New.
10295         (vec_vminsw): New.
10296         (vec_vminfp): New.
10297         (vec_vmladduhm): New.
10298         (vec_vmhraddshs): New.
10299         (vec_msumubm): New.
10300         (vec_vmsummbm): New.
10301         (vec_vmsumuhm): New.
10302         (vec_vmsumshm): New.
10303         (vec_vmsumuhs): New.
10304         (vec_vmsumshs): New.
10305         (vec_vmuleub): New.
10306         (vec_vmulesb): New.
10307         (vec_vmuleuh): New.
10308         (vec_vmulesh): New.
10309         (vec_vmuloub): New.
10310         (vec_mulosb): New.
10311         (vec_vmulouh): New.
10312         (vec_vmulosh): New.
10313         (vec_vnmsubfp): New.
10314         (vec_vnor): New.
10315         (vec_vor): New.
10316         (vec_vpkuhum): New.
10317         (vec_vpkuwum): New.
10318         (vec_vpkpx): New.
10319         (vec_vpkuhus): New.
10320         (vec_vpkshss): New.
10321         (vec_vpkuwus): New.
10322         (vec_vpkswss): New.
10323         (vec_vpkshus): New.
10324         (vec_vpkswus): New.
10325         (vec_vperm): New.
10326         (vec_vrefp): New.
10327         (vec_vrlb): New.
10328         (vec_vrlh): New.
10329         (vec_vrlw): New.
10330         (vec_vrfin): New.
10331         (vec_vrsqrtefp): New.
10332         (vec_vsel): New.
10333         (vec_vslb): New.
10334         (vec_vslh): New.
10335         (vec_vslw): New.
10336         (vec_vsldoi): New.
10337         (vec_vsl): New.
10338         (vec_vslo): New.
10339         (vec_vspltb): New.
10340         (vec_vsplth): New.
10341         (vec_vspltw): New.
10342         (vec_vspltisb): New.
10343         (vec_vspltish): New.
10344         (vec_vspltisw): New.
10345         (vec_vsrb): New.
10346         (vec_vsrh): New.
10347         (vec_vsrw): New.
10348         (vec_vsrab): New.
10349         (vec_vsrah): New.
10350         (vec_vsraw): New.
10351         (vec_vsr): New.
10352         (vec_vsro): New.
10353         (vec_stvx): New.
10354         (vec_stvebx): New.
10355         (vec_stvehx): New.
10356         (vec_stvewx): New.
10357         (vec_stvxl): New.
10358         (vec_vsububm): New.
10359         (vec_vsubuhm): New.
10360         (vec_vsubuwm): New.
10361         (vec_vsubfp): New.
10362         (vec_vsubcuw): New.
10363         (vec_vsububs): New.
10364         (vec_vsubsbs): New.
10365         (vec_vsubuhs): New.
10366         (vec_vsubshs): New.
10367         (vec_vsubuws): New.
10368         (vec_vsubsws): New.
10369         (vec_vsum4ubs): New.
10370         (vec_vsum4sbs): New.
10371         (vec_vsum4shs): New.
10372         (vec_vsum2sws): New.
10373         (vec_vsumsws): New.
10374         (vec_vrfiz): New.
10375         (vec_vupkhsb): New.
10376         (vec_vupkhpx): New.
10377         (vec_vupkhsh): New.
10378         (vec_vupklsb): New.
10379         (vec_vupklpx): New.
10380         (vec_vupklsh): New.
10381         (vec_vxor): New.
10382
10383 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10384
10385         PR c/5430
10386         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10387         added literals from substracted literals.
10388         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10389         (fold) [associate]: Preserve MINUS_EXPR if needed.
10390
10391 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10392
10393         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10394         are obsoleted.
10395
10396 2002-04-23  Tom Tromey  <tromey@redhat.com>
10397
10398         * gcc.c: Added --resource.  For PR java/6314.
10399
10400 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10401
10402         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10403         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10404         these libraries.
10405
10406 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10407
10408         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10409
10410 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10411
10412         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10413         workaround.
10414         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10415         (ix86_expand_clrstr): Fix typo.
10416         * loop.c (gen_load_of_final_value): New.
10417         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10418         Use it.
10419
10420 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10421
10422         * builtins.c (builtin_memset_gen_str): New function.
10423         (expand_builtin_memset): Optimize the case of constant length, but
10424         unknown value.
10425
10426 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10427
10428         * config/rs6000/altivec.h (vec_step): Remove extraneous
10429         parentheses.
10430         (vec_ctu): Cast return.
10431
10432 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10433
10434         PR target/6413
10435         * function.h: (struct function): Add profile_label_no field.
10436         (current_function_profile_label_no): Define.
10437         * function.c: (profile_label_no): New static var.
10438         (expand_function_start): Increment it, and copy to
10439         current_function_profile_label_no.
10440         * output.h (profile_label_no): Delete.
10441         * final.c (profile_label_no): Delete.
10442         (profile_function): Use current_function_profile_label_no.
10443         (final_end_function): Don't increment profile_label_no here.
10444         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10445         profile_label_no with current_function_profile_label_no.
10446         * config/pa/pa.c (current_function_number): Delete.
10447         (pa_output_function_prologue): Don't output profile label here.
10448         (hppa_profile_hook): Use label_no param rather than
10449         current_function_number.
10450         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10451         * config/pa/pa.h: .. here.
10452         (FUNCTION_PROFILER): Output profile label here.
10453
10454 2002-04-22  Eric Christopher  <echristo@redhat.com>
10455
10456         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10457         patch of 2002-04-09 due to binutils issues.
10458         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10459
10460 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10461
10462         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10463         constraint to 'o' for m=r and r=m alternatives.
10464         ("*movv8hi_internal1"): Same.
10465         ("*movv16qi_internal1"): Same.
10466         ("*movv4sf_internal1"): Same.
10467
10468 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10469
10470         * rtl.h (RTX_FLAG): New macro.
10471         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10472         * final.c (alter_subreg): Use macro to access rtx flag.
10473         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10474         * print-rtl.c (print_rtx): Use new access macro.
10475
10476         * cse.c (insert): Check rtx code before accessing flag.
10477
10478         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10479         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10480         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10481         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10482         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10483         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10484         find_and_mark_used_attributes, unmark_used_attributes,
10485         add_values_to_cover, simplify_with_current_value,
10486         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10487         copy_rtx_unchanging, main): Use new access macros.
10488
10489 2002-04-22  Tom Rix  <trix@redhat.com>
10490
10491         * expmed.c (init_expmed): Generate shifted constant once.
10492
10493 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10494
10495         * c-lex.c (lex_charconst): Call convert to get constant in
10496         proper type; don't just smash the type field.
10497         Fixes PR c/6300.
10498
10499         * config.gcc: Add list of obsolete configurations.  Disallow
10500         building these without --enable-obsolete.
10501         * doc/install.texi: Document --enable-obsolete and obsoletion
10502         policy.  Mention obsoletion of individual targets in
10503         appropriate places.
10504
10505 2002-04-22  Richard Henderson  <rth@redhat.com>
10506
10507         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10508
10509 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10510
10511         PR f/6138.
10512         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10513         (walk_fixup_memory_subreg): Likewise.
10514         (fixup_var_refs_insn): Adjust accordingly.
10515         (fixup_var_refs_1): Likewise.
10516
10517 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10518
10519         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10520         LIBPATH_ARCH64_SPEC): Define.
10521         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10522         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10523         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10524         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10525
10526 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10527
10528         * gthr-rtems.h: Correct prototypes to remove warnings.
10529
10530 2002-04-22  Richard Henderson  <rth@redhat.com>
10531
10532         PR c/6344
10533         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10534
10535         * gcse.c (free_insn_expr_list_list): New.
10536         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10537         (canon_list_insert): Use EXPR_LISTs for expressions.
10538         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10539
10540 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10541
10542         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10543         file change and include code to _cpp_pop_buffer.
10544         * cpphash.h (struct pending_option): Predeclare.
10545         (struct cpp_reader): New member next_include_file.
10546         (_cpp_pop_file_buffer): Update.
10547         (_cpp_push_next_buffer): Update, rename.
10548         * cppinit.c (cpp_destroy): Free include chain and pending here.
10549         (cpp_finish_options): Simplify.
10550         (_cpp_push_next_buffer): Rename and clean up.
10551         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10552         Clarify.
10553         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10554
10555 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10556
10557         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10558         being vector signed int.
10559         (vec_andc): Same.
10560         (vec_xor): Add variant for both args being vector signed char.
10561         Remove redundant variant.
10562         (vec_andc): Same.
10563
10564 2002-04-21  David S. Miller  <davem@redhat.com>
10565
10566         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10567         compare mode in output RTL.
10568
10569 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10570
10571         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10572         style and formatting of previous patch.
10573
10574 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10575
10576         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10577         flag_pic for ABI_AIX.
10578
10579 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10580
10581         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10582         * cppfiles.c (read_include_file): Similarly.
10583         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10584         uxstrdup ustrchr, ufputs): Similarly.
10585         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10586         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10587         cpp_ideq, parse_identifier, parse_number): Similarly.
10588         * cpplib.c (struct directive, dequote_string, D, run_directive,
10589         cpp_push_buffer): Similarly.
10590         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10591         _cpp_create_definition, check_trad_stringification,
10592         cpp_macro_definition): Similarly.
10593
10594 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10595
10596         * cppmacro.c (funlike_invocation_p): Don't step back
10597         over CPP_EOF.
10598
10599 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10600
10601         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10602         labelno.
10603
10604 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10605
10606         * doc/invoke.texi: Remove Chill references.
10607         * doc/gcc.texi: Update last modified date.
10608
10609 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10610
10611         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10612         push and pop.  Replace add.l with add.w.
10613
10614 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10615
10616         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10617         multiply instructions for H8/300H case.
10618
10619 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10620
10621         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10622         Bum three instructions from each routine.
10623
10624 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10625
10626         * Makefile.in: Update.
10627         * decl.c (push_c_function_context, pop_c_function_context,
10628         mark_c_function_context): Rename for consistency.
10629         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10630         * c-tree.h (push_c_function_context, pop_c_function_context,
10631         mark_c_function_context): Rename for consistency.
10632         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10633         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10634         * function.c (init_lang_status, save_lang_status,
10635         restore_lang_status, mark_lang_status, free_lang_status):
10636         Move to langhooks.h.
10637         (push_function_context_to, pop_function_context_from,
10638         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10639         Update.
10640         * function.h (init_lang_status, save_lang_status,
10641         restore_lang_status, mark_lang_status, free_lang_status):
10642         Move to langhooks.h.
10643         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10644         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10645         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10646         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10647         (LANG_HOOKS_INITIALIZER): Update.
10648         (lhd_do_nothing_f): New.
10649         * langhooks.h (struct lang_hooks_for_functions): New.
10650         (struct lang_hooks): New hooks.
10651         * langhooks.c (lhd_do_nothing_f): New.
10652 objc:
10653         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10654         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10655
10656 2002-04-19  David S. Miller  <davem@redhat.com>
10657
10658         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10659         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10660
10661 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10662
10663         PR optimization/3756
10664         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10665         x = ((int) y < 0) ? cst1 : cst2.
10666
10667 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10668
10669         PR c/6358
10670         * function.c: Reapply patch for c/6358.
10671         (expand_function_end): Copy decl_rtl's mode, not
10672         current_function_return_rtx mode.
10673
10674 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10675
10676         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10677         targets.
10678
10679 2002-04-19  Tom Tromey  <tromey@redhat.com>
10680
10681         * doc/install.texi (Specific): Update status of Solaris 2.8.
10682         For PR libgcj/6158.
10683
10684 2002-04-19  Andreas Schwab  <schwab@suse.de>
10685
10686         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10687         (PUT_REAL): Restore old definition.
10688
10689 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10690             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10691
10692         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10693         binutils 2.11.2 and higher generate smaller binaries than Sun's
10694         native tools.
10695
10696 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10697
10698         PR c++/6352
10699         * toplev.c (rest_of_compilation): Do not defer functions for which
10700         TREE_SYMBOL_REFERENCED has already been set.
10701
10702 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10703
10704         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10705         alternative.
10706
10707 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10708
10709         * builtins.c: Include langhooks.h.
10710         (lang_type_promotes_to): Remove.
10711         (expand_builtin_va_arg): Use new hook.
10712         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10713         (simple_type_promotes_to): Move to c-typeck.c.
10714         * c-common.h (simple_type_promotes_to): Remove.
10715         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10716         * c-format.c: Include langhooks.h.
10717         (check_format_types): Update.
10718         * c-tree.h (c_type_promotes_to): New.
10719         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10720         (type_lists_compatible_p): Update.
10721         * langhooks-def.h (lhd_type_promotes_to): New.
10722         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10723         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10724         * langhooks.c (lhd_type_promotes_to): New.
10725         * langhooks.h (struct lang_hooks_for_types): New hook.
10726         * tree.h (lang_type_promotes_to): Remove.
10727 objc:
10728         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10729
10730 2002-04-18  Richard Henderson  <rth@redhat.com>
10731
10732         * function.c: Revert patch for c/6358.
10733
10734 2002-04-18  Richard Henderson  <rth@redhat.com>
10735
10736         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10737         blocks.  Handle multiple references to the TRAP block.  Handle
10738         non-adjacent THEN and OTHER blocks.
10739
10740 2002-04-18  Richard Henderson  <rth@redhat.com>
10741
10742         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10743         crash with no type for by-mode libcalls.
10744
10745         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10746
10747 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10748
10749         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10750         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10751         the register windows.
10752
10753 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10754
10755         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10756         appropriate.  Document need for extended precision even when
10757         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10758         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10759         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10760         instead of relying on later syntax error when REAL_WIDTH > 5.
10761         * real.c: Define NE based only on whether or not we have a
10762         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10763         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10764         define GET_REAL and PUT_REAL as simple memcpy operations; no
10765         need to byteswap or round.
10766         Use #error instead of #ifdef-ing out the entire file, for
10767         prompt error detection.
10768
10769         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10770
10771 2002-04-18  David S. Miller  <davem@redhat.com>
10772
10773         * config/sparc/sparc.h (BRANCH_COST): Define.
10774
10775         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10776         does it.
10777
10778 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10779
10780         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10781         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10782         propagate_block calls after relaxation loop using new variable
10783         stabilized_prop_flags.
10784
10785 2002-04-18  Richard Henderson  <rth@redhat.com>
10786
10787         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10788         (ia64_va_arg): Expect variable sized types by reference.
10789         * config/ia64/ia64-protos.h: Update.
10790         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10791         ia64_function_arg_pass_by_reference.
10792
10793 2002-04-18  Richard Henderson  <rth@redhat.com>
10794
10795         * ifcvt.c: Include except.h.
10796         (block_has_only_trap): Break out from find_cond_trap.
10797         (find_cond_trap): Use it.  Always delete the trap block.
10798         (merge_if_block): Allow then block null.  Be less simplistic about
10799         what insns can end a block.
10800         * Makefile.in (ifcvt.o): Depend on except.h.
10801
10802         * config/ia64/ia64.md (trap, conditional_trap): New.
10803
10804 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10805
10806         PR c/6358
10807         * function.c (assign_parms): Assign hard current_function_return_rtx
10808         register here...
10809         (expand_function_end): ...not here.
10810
10811 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10812
10813         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10814         * c-tree.h (c_incomplete_type_error): New.
10815         * c-typeck.c (require_complete_type, build_component_ref): Update.
10816         (incomplete_type_error): Rename.
10817         * langhooks-def.h (lhd_incomplete_type_error): New.
10818         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10819         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10820         * langhooks.c (lhd_incomplete_type_error): New.
10821         * langhooks.h (struct lang_hooks_for_types): New hook.
10822         * tree.c (size_in_bytes): Use new hook.
10823         * tree.h (incomplete_type_error): Remove.
10824 objc:
10825         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10826
10827 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10828
10829         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10830         TARGET_FLOAT_FORMAT blocks.
10831
10832 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10833
10834         * doc/install.texi (Downloading the source): Do not mention Chill
10835         any longer, but mention Ada.
10836         (Configuration): Do not mention Chill any longer.
10837
10838 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
10839
10840         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10841
10842 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
10843
10844         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10845         in last patch.
10846
10847 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10848
10849         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10850         instead of unsigned_type.
10851
10852 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10853
10854         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10855         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10856         later.
10857
10858 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
10859
10860         * attribs.c (vector_type_node_list): New static variable.
10861         (handle_vector_size_attribute): Use it to avoid generating a
10862         new type node each time we are called.
10863
10864         * combine.c (subst): Avoid trying to make a vector mode subreg of
10865         an integer constant.
10866         (gen_lowpart_for_combine): Likewise.
10867
10868 2002-04-18  Roger Sayle  <roger@eyesopen.com>
10869             Jakub Jelinek  <jakub@redhat.com>
10870
10871         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10872         for integer constant c (if x has unsigned type or sign bit is not
10873         set in c).  This folds the zero/sign extension into the bit-wise and
10874         operation.
10875
10876 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10877
10878         PR middle-end/6205
10879         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10880         otherwise xorps.
10881
10882 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
10883
10884         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10885
10886 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
10887
10888         * gcc.c (read_specs): Detect and fail if an attempt is made to
10889         rename a spec string to an already existing string.
10890
10891 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10892
10893         * config/s390/s390.c (legitimize_pic_address): Do not generate
10894         illegal address constant without CONST.
10895
10896 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10897
10898         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10899         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10900
10901 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10902
10903         PR optimization/6305
10904         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10905         to make sure previous reloads are taken into account.  Generate
10906         better code if one operand is an in-range immediate constant.
10907
10908 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
10909
10910         * doc/install.texi (Building): libgcj requires GNU make.
10911
10912 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
10913
10914         PR bootstrap/6315
10915         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10916         even if hard quad and register is not floating.
10917         (movtf reg<-mem split): Disallow splitting if hard quad and
10918         register is floating.
10919         (movtf mem<-reg split): Likewise.
10920         * config/sparc/sparc.c (fp_register_operand): New predicate.
10921         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10922
10923 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
10924
10925         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10926         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10927         (unprotoize.o): Ditto.  Build from protoize.c.  Define
10928         UNPROTOIZE on command line.
10929         * protoize.c: Include cppdefault.h.  Delete include_defaults.
10930         (in_system_include_dir): Use cpp_include_defaults (defined in
10931         cppdefault.o).
10932         * unprotoize.c: Delete file.
10933
10934 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
10935
10936         * config/rs6000/altivec.h (vec_ld): Add array variants.
10937         (vec_lde): Same.
10938         (vec_ldl): Same.
10939
10940 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
10941             Aldy Hernandez <aldyh@redhat.com>
10942
10943         * config/rs6000/altivec.h: Define __ALTIVEC__.
10944         (bool): New.
10945         (__pixel): New.
10946         (pixel): New.
10947         (vec_cfux): New.
10948         (vec_vmaddfp): New.
10949         (vec_vsldoi): New.
10950         Add parentheses to all macro arguments.
10951
10952 2002-04-16  Richard Henderson  <rth@redhat.com>
10953
10954         PR c++/6320
10955         * except.c (remove_eh_handler): Insert inner regions at beginning
10956         of sibling chain.  Refactor expressions.
10957
10958 2002-04-16  Richard Henderson  <rth@redhat.com>
10959
10960         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10961         * config/sparc/sol2-gas-bi.h: New file.
10962         * config.gcc (sparc*-solaris): Add it as needed.
10963         * configure.in (AS_SPARC64_FLAG): Remove check.
10964         * config.in, configure: Regenerate.
10965
10966         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10967
10968 2002-04-16  Richard Henderson  <rth@redhat.com>
10969
10970         * config/mips/mips.c (override_options): Don't override N32 for
10971         a 64-bit ISA.
10972
10973         PR 6202
10974         * config/mips/mips.md (can_delay): Split out of existing define_delays.
10975         (HILO_delay): Set can_delay false.
10976
10977 2002-04-16  Dale Johannesen <dalej@apple.com>
10978
10979         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10980         instruction addresses.
10981         (rs6000_output_function_epilogue): Likewise.
10982
10983 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
10984
10985         * c-parse.in (poplevel, compstmt_start,
10986         compstmt_primary_start): Add ending ';', in accordance
10987         with POSIX.
10988
10989 2002-04-16  Richard Henderson  <rth@redhat.com>
10990
10991         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10992         Adjust tm_file order to get TARGET_DEFAULT set properly.
10993         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10994         * doc/install.texi (sparc-solaris): Update.
10995
10996 2002-04-16  Dale Johannesen <dalej@apple.com>
10997
10998         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10999         comparison operands do not match each other or if modes of
11000         conditions do not match result.
11001
11002 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
11003
11004         PR target/6305
11005         * config/s390/s390.md (mulsidi3): Set both subregs of the
11006         multiword register.
11007
11008 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
11009
11010         * config/rs6000/altivec.h (vec_addc): Type check.
11011
11012 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
11013
11014         PR middle-end/6279
11015         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
11016
11017         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
11018
11019 2002-04-15  Richard Henderson  <rth@redhat.com>
11020
11021         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
11022         call_really_used_regs too.
11023
11024 2002-04-15  Richard Henderson  <rth@redhat.com>
11025
11026         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
11027
11028 2002-04-15  David S. Miller  <davem@redhat.com>
11029
11030         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
11031         as being CLOBBERed.
11032
11033 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
11034
11035         PR c/6290
11036         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
11037         CONST_VECTOR is { 0, ... 0 }.
11038
11039 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
11040
11041         * doc/install.texi (Installing GCC: Configuration): Clarify
11042         the only supported ways to configure gcc.
11043
11044 2002-04-15  Roland McGrath  <roland@frob.com>
11045
11046         * config.gcc (alpha*-*-gnu*): New target configuration.
11047         * config/alpha/gnu.h: New file for it.
11048         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
11049
11050 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
11051
11052         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
11053         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
11054         * tree.h (expand_start_stmt_expr): Update prototype.
11055         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
11056         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
11057         on the STMT_EXPR created for the inline function.
11058
11059 2002-04-15  Richard Henderson  <rth@redhat.com>
11060
11061         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
11062         config/i386/linux-aout.h, config/i386/linux-oldld.h,
11063         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
11064         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
11065         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
11066         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
11067         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
11068         Define __gnu_linux__, not gnu_linux.
11069         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
11070
11071 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
11072
11073         Remove Chill front end.
11074         * gcc.c (default_compilers): Remove Chill entries.
11075         * ch: Remove directory.
11076         * doc/frontends.texi: Remove information about Chill.
11077         * doc/sourcebuild.texi: Likewise.
11078         * doc/standards.texi: Likewise.
11079
11080 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
11081
11082         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
11083         (LONGLONG_STANDALONE): Define.
11084
11085 2002-04-15  David S. Miller  <davem@redhat.com>
11086
11087         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
11088         Call emit_library_call with LCT_NORMAL.
11089         (sparc_initialize_trampoline): Use LCT_foo instead of
11090         magic constant in emit_library_call invocations.
11091         (sparc64_initialize_trampoline): Likewise.
11092         (sparc_profile_hook): Likewise.
11093         * config/sparc/sparc.md: Likewise.
11094
11095         * config/sparc/sparc.c (sparc_extra_constraint_check):
11096         Fix type of argument 'c'.
11097         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
11098         Likewise.
11099
11100 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
11101
11102         * diagnostic.h (output_buffer_state): Redefine.
11103         (output_format_decoder): New macro.
11104         (output_prefixing_rule): Likewise.
11105         (output_line_cutoff): Likewise.
11106         (diagnostic_format_decoder): Adjust.
11107         (diagnostic_prefixing_rule): Likewise.
11108         (diagnostic_line_cutoff): Likewise.
11109         (diagnostic_state): Likewise.
11110         (diagnostic_kind_count): Likewise.
11111         (diagnostic_buffer): Now a macro.
11112
11113         * diagnostic.c (diagnostic_buffer): Remove definition.
11114         (output_is_line_wrapping): Adjust.
11115         (set_real_maximum_length): Likewise.
11116         (output_set_maximum_length): Likewise.
11117         (init_output_buffer): Likewise.
11118         (lhd_print_error_function): Likewise.
11119         (output_do_verbatim): Likewise.
11120
11121 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11122
11123         * cpperror.c (print_location): Don't print include chain
11124         if line == 0.
11125         (cpp_begin_message): Update to use DL_ macros.
11126         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11127         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11128         cpp_notice, cpp_notice_from_errno): Remove.
11129         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11130         level.
11131         (cpp_errno): New.
11132         * cppexp.c (CPP_ICE): Remove.
11133         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11134         lex, integer_overflow, _cpp_parse_expr): Update.
11135         * cppfiles.c (read_include_file, find_include_file,
11136         handle_missing_header, _cpp_read_file, remap_filename): Update.
11137         * cpphash.h (enum error_type): Remove.
11138         (_cpp_begin_message): Update.
11139         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11140         cpp_handle_option, cpp_post_options): Update.
11141         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11142         skip_whitespace, parse_identifier, parse_slow, parse_string,
11143         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11144         cpp_interpret_charconst): Update.
11145         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11146         lex_macro_node, do_undef, glue_header_name, parse_include,
11147         do_include_common, read_flag, do_line, do_linemarker, do_ident,
11148         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11149         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11150         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11151         _cpp_pop_buffer, do_diagnostic): Update.
11152         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11153         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11154         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11155         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11156         cpp_notice, cpp_notice_from_errno): Remove.
11157         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11158         level.
11159         (cpp_errno): New.
11160         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11161         collect_args, enter_macro_context, save_parameter, parse_params,
11162         _cpp_create_definition, check_trad_stringification,
11163         cpp_macro_definition): Update.
11164         * cppmain.c (cpp_preprocess_file): Update.
11165         * fix-header.c (read_scan_file): Update.
11166
11167 2002-04-14  Andreas Schwab  <schwab@suse.de>
11168
11169         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11170
11171 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11172
11173         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11174
11175 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11176
11177         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11178         not gnu_hurd.
11179
11180 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
11181
11182         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11183
11184 2002-04-13      Joel Sherrill <joel@OARcorp.com>
11185
11186         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
11187         sparc-elf and sparc-rtems targets.
11188
11189 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11190
11191         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11192         defined, and __gnu_hurd__ wherever __GNU__ is defined.
11193         * arm/linux-elf.h: Likewise.
11194         * cris/aout.h: Likewise.
11195         * cris/linux.h: Likewise.
11196         * i370/linux.h: Likewise.
11197         * i386/gnu.h: Likewise.
11198         * i386/linux-aout.h: Likewise.
11199         * i386/linux-oldld.h: Likewise.
11200         * i386/linux.h: Likewise.
11201         * i386/linux64.h: Likewise.
11202         * ia64/linux.h: Likewise.
11203         * m68k/linux-aout.h: Likewise.
11204         * m68k/linux.h: Likewise.
11205         * mips/linux.h: Likewise.
11206         * pa/pa-linux.h: Likewise.
11207         * pj/linux.h: Likewise.
11208         * rs6000/sysv4.h: Likewise.
11209         * s390/linux.h: Likewise.
11210         * sh/linux.h: Likewise.
11211         * sparc/linux-aout.h: Likewise.
11212         * sparc/linux.h: Likewise.
11213         * sparc/linux64.h: Likewise.
11214         * xtensa/linux.h: Likewise.
11215
11216 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
11217
11218         * stmt.c (check_unique_operand_names): Expect operand names to
11219         be strings rather than identifiers.  Use simple_cst_equal to
11220         compare them.
11221         (resolve_operand_name_1): Make same identifier to string change here.
11222         * c-parse.in (asm_operand): Convert a named operand into a string.
11223         * cp/parse.y (asm_operand): Likewise.
11224
11225 2002-04-13  Andreas Schwab  <schwab@suse.de>
11226
11227         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11228
11229 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
11230
11231         Revert these changes:
11232
11233         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11234
11235         PR c++/5571
11236         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11237
11238 2002-04-12  Richard Henderson  <rth@redhat.com>
11239
11240         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11241         (sparc*-*-solaris): Clean up header files.
11242         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11243         and plan on generating 64-bit code.
11244         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11245         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11246         * config/sparc/sol2-sld-64.h: Rename ...
11247         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
11248         for AS_SPARC64_FLAG not defined.
11249         * config/sparc/sol2-gld-bi.h: New.
11250         * config/sparc/sol2-sld.h: Remove.
11251         * config/sparc/sol26-sld.h: New.
11252         * config/sparc/sol2.h: Tidy comments.
11253         * doc/install.texi: Document sparc-solaris configury changes.
11254
11255 2002-04-12  Richard Henderson  <rth@redhat.com>
11256
11257         * recog.c (offsettable_address_p): Match the logic in adjust_address.
11258
11259         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11260         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
11261
11262 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11263
11264         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11265
11266 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
11267
11268         * pa.c (pa_can_combine_p): Call extract_insn before calling
11269         constrain_operands.
11270
11271 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
11272
11273         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11274         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11275         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11276         (CPP_PREDEFINES): Handle __declspec.
11277         * config/i386/t-interix (USER_H): Remove.
11278
11279 2002-04-12  DJ Delorie  <dj@redhat.com>
11280
11281         * integrate.c (compare_blocks): Make comparisons safe for when
11282         sizeof(int) < sizeof(char *).
11283         (find_block): Likewise.
11284
11285 2002-04-12  Jan Hubicka  <jh@suse.cz>
11286             David Edelsohn  <edelsohn@gnu.org>
11287
11288         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11289         registers.
11290         (symbol_ref_operand): New.
11291         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11292         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11293
11294 2002-04-12  Andreas Schwab  <schwab@suse.de>
11295
11296         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11297         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11298         overrides the definition in config/svr4.h.
11299
11300 2002-04-12      Eric Norum <eric.norum@usask.ca>
11301
11302         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11303         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11304         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11305         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11306         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11307         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11308         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11309         definitions to config/rtems.h and make the targets more similar.
11310
11311 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11312
11313         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11314         POINTERS_EXTEND_UNSIGNED.
11315         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11316         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11317
11318         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11319         not specified.
11320
11321 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11322
11323         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11324         depends on TARGET_SHMEDIA, not TARGET_SH5.
11325
11326 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11327
11328         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11329         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11330
11331 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11332
11333         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11334         no r0 clobber.
11335
11336 2002-04-12  Andreas Schwab  <schwab@suse.de>
11337
11338         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11339
11340 2002-04-12  Richard Henderson  <rth@redhat.com>
11341
11342         PR bootstrap/4191
11343         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11344
11345         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11346         modes spanning multiple hard regs.
11347
11348         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11349
11350 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11351
11352         * pa.c (pa_output_function_prologue): Don't accumulate the total
11353         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11354         the portable runtime.
11355         (output_deferred_plabels): Handle 64bit plabels.
11356         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11357         generating pic code using the GAS assembler for object formats that
11358         are not SOM (ie., ELF32 and ELF64).
11359         (output_millicode_call): Check attribute type if attribute length is 28.
11360         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11361         dbr_sequence_length once.
11362         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11363         dbr_sequence_length once.
11364         * pa.h (TARGET_SOM): Define if not defined.
11365         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11366         with GAS and not SOM.
11367         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11368         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11369
11370 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11371
11372         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11373         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11374         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11375         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11376         elfos.h and dbxelf.h values are fine now.
11377         * config/i386/freebsd.h, config/alpha/freebsd.h
11378         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11379
11380 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11381
11382         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11383         or set Acpu or Amachine.  Reformat.
11384         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11385         define.
11386         (LINK_SPEC): Do not need to undef.
11387         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11388         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11389         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11390         define.
11391         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11392         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11393         (LINK_SPEC): Do not need to undef.
11394         (DONT_USE_BUILTIN_SETJMP): Do not define.
11395         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11396         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11397         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11398         Remove trailing spaces.
11399         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11400         __ELF__, or set Acpu or Amachine.  Reformat.
11401         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11402         define.
11403
11404 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11405
11406         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11407         all other *-*-freebsd* targets.
11408
11409 2002-04-11  Richard Henderson  <rth@redhat.com>
11410
11411         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11412
11413 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11414
11415         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11416         Include {cpu}/{cpu}.h thru tm_file.
11417         (alpha*-*-linux*ecoff): Remove target.
11418         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11419         (LINK_SPEC): Remove, is not OS independent.
11420         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11421         (LINK_SPEC): Do not need to #undef any longer.
11422         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11423         any longer.
11424         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11425         __ELF__.
11426         (LINK_SPEC): Moved here from alpha/elf.h.
11427         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11428         SUB_CPP_PREDEFINES.
11429         * config/alpha/linux-ecoff.h: Remove.
11430         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11431         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11432         (CPP_SUBTARGET_SPEC): Do not define.
11433         (LINK_SPEC): Do not need to #undef any longer.
11434         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11435         * config/alpha/vms.h: Likewise.
11436
11437 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11438
11439         * doc/extend.texi: Remove old claim that typedefs cannot have
11440         an alignment attribute.
11441
11442 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11443
11444         PR optimization/6177
11445         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11446         bitpos is 0 and bitsize CONCAT size.
11447
11448 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11449
11450         PR c/6223
11451         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11452
11453 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11454
11455         * config/alpha/freebsd.h: Minor reformatting.
11456         (CPP_SPEC): Define ELF and add cpp_subtarget.
11457         (ASM_SPEC): No longer needed.
11458
11459 2002-04-11  Richard Henderson  <rth@redhat.com>
11460
11461         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11462         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11463         (dimode mem/zero splitter): New.
11464
11465 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11466
11467         * config/cris/cris.c (cris_override_options): Tweak error message
11468         for PIC not implemented.
11469
11470         * config/cris/cris.h: Tweak comments related to parameter-passing.
11471
11472         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11473
11474 2002-04-10  Richard Henderson  <rth@redhat.com>
11475
11476         * except.c (add_ehl_entry): Allow duplicates after landing pad
11477         creation.
11478
11479 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11480
11481         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11482
11483 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11484
11485         * c-decl.c (c_init_decl_processing): Move generation of
11486         decls for g77_integer_type_node and friends from here ...
11487         * c-common.c (c_common_nodes_and_builtins): ... to here.
11488
11489 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11490
11491         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11492         is only used as frame pointer when frame_pointer_needed is true.
11493
11494 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11495
11496         PR target/817
11497         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11498         for the fact that the pool entry uses two words.
11499         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11500         1k bytes.
11501         (movdf_soft_insn): Similarly.
11502         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11503         for the fact that the pool entry uses three words.
11504
11505 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11506
11507         * config/mips/mips.c (mips_va_arg): When using the struct version
11508         of the EABI va_list, allow arguments in the register save area to
11509         take up less room than a stack argument.
11510
11511 2002-04-10  Richard Henderson  <rth@redhat.com>
11512
11513         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11514         if EXPAND_INITIALIZER.
11515
11516 2002-04-09  Richard Henderson  <rth@redhat.com>
11517
11518         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11519         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11520
11521 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11522
11523         PR optimization/6233
11524         * rtlanal.c (pure_call_p): New function.
11525         * rtl.h (pure_call_p): Declare.
11526         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11527         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11528
11529 2002-04-09  Eric Christopher  <echristo@redhat.com>
11530
11531         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11532         information to .comm directive.
11533
11534 2002-04-09  Richard Henderson  <rth@redhat.com>
11535
11536         PR c/5078
11537         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11538
11539 2002-04-09  Richard Henderson  <rth@redhat.com>
11540
11541         * basic-block.h (flow_delete_block_noexpunge): Declare.
11542         (expunge_block_nocompact): Declare.
11543         * cfg.c (expunge_block_nocompact): Split out from ...
11544         (expunge_block): ... here.
11545         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11546         (flow_delete_block_noexpunge): Split out from ...
11547         (flow_delete_block): ... here.
11548         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11549         removing dead blocks.
11550         * except.c (exception_handler_labels): Remove.
11551         (exception_handler_label_map): New.
11552         (struct eh_region): Add aka member.
11553         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11554         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11555         (for_each_eh_label, for_each_eh_label_1): New.
11556         (init_eh): Register exception_handler_label_map.
11557         (free_eh_status): Use free_region.
11558         (find_exception_handler_labels): Use the map, not the list.
11559         (remove_exception_handler_label): Likewise.
11560         (maybe_remove_eh_handler): Likewise.
11561         (remove_eh_handler): Use the region aka bitmap.
11562         * except.h (exception_handler_labels): Remove.
11563         (for_each_eh_label): Declare.
11564         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11565         * loop.c (invalidate_loops_containing_label): New.
11566         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11567         * sched-rgn.c (is_cfg_nonregular): Use
11568         current_function_has_exception_handlers.
11569
11570 2002-04-09  Richard Henderson  <rth@redhat.com>
11571
11572         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11573         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11574         Do not return changed status.
11575         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11576         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11577         New functions that do return changed status.
11578         * sbitmap.h: Update decls.
11579         * gcse.c, lcm.c: Use _cg functions as needed.
11580
11581 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11582
11583         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11584         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11585         * config/sh/embed_bb.c: New file.
11586         * config/sh/embed-elf.h: New file.
11587         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11588         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11589         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11590         __PTRDIFF_TYPE__ .
11591         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11592         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11593         Add subtarget_asm_endian_spec.
11594         (ASM_SPEC): Use subtarget_asm_endian_spec.
11595         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11596         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11597         (WCHAR_UNSIGNED): Define.
11598         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11599         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11600         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11601         Fix value.
11602         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11603         (sh_adjust_cost): Likewise.
11604         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11605         __PTRDIFF_TYPE__ .
11606         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11607         (WCHAR_TYPE_SIZE): Likewise.
11608         (ASM_SPEC): Use subtarget_asm_endian_spec.
11609         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11610         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11611         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11612         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11613         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11614         (USER_LABEL_PREFIX): Don't #undef /#define .
11615         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11616         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11617         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11618         (ASM_SPEC): Likewise.
11619         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11620         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11621         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11622         (LIB2FUNCS_EXTRA): Define.
11623         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11624         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11625         (LIB1ASMFUNCS_CACHE): Define.
11626         (LIB2FUNCS_EXTRA): Redefine empty.
11627
11628 2002-04-08  Richard Henderson  <rth@redhat.com>
11629
11630         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11631
11632 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11633
11634         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11635         and optimize for size.
11636         (__do_global_ctors): Fix pointer comparison.
11637         (__do_global_dtors): Likewise.
11638
11639 2002-04-09  David S. Miller  <davem@redhat.com>
11640
11641         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11642         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11643         allow reloading pseudos.
11644         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11645         * config/sparc/sparc-protos.h: Declare it.
11646
11647         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11648         unsigned comparison warning.
11649         (output_restore_regs): Mark leaf_function as unused.
11650
11651 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11652
11653         * expr.c (is_aligning_offset): New function.
11654         (expand_expr, case COMPONENT_EXPR): Call it.
11655
11656 2002-04-08  David S. Miller  <davem@redhat.com>
11657
11658         PR target/6082
11659         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11660
11661         Make init_priority work on Sparc when using GNU ld.
11662         * config/sparc/linux.h, config/sparc/linux64.h,
11663         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11664         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11665         * config/sparc/sol2-gld.h: New file to do the same.
11666         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11667         sparc/sol2-gld.h to tm_file.
11668
11669         PR optimization/4328
11670         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11671         * doc/md.texi: Document it.
11672         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11673         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11674         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11675         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11676         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11677
11678 2002-04-08  Andreas Jaeger  <aj@suse.de>
11679
11680         * stmt.c (expand_asm_operands): Revert last patch from Richard
11681         Henderson.
11682
11683 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11684
11685         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11686         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11687
11688 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11689
11690         * doc/contrib.texi (Contributors): Add David O'Brien.
11691
11692 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11693
11694         * configure.in (auto-build.h): Use target_alias and build_alias
11695         when running configure.
11696         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11697         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11698         * configure: Regenerate.
11699
11700 2002-04-07  David S. Miller  <davem@redhat.com>
11701
11702         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11703
11704 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11705
11706         PR 5933
11707         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11708         generating 32-bit pic code.
11709
11710 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11711
11712         * cppinit.c (cpp_create_reader): Initialize
11713         discard_comments_in_macro_exp.
11714         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11715         (cpp_handle_option): Handle "-CC" option.
11716         * cpplex.c (save_comment): If saving a C++ comment in
11717         a directive, convert it to a C comment.
11718         (_cpp_lex_direct): Pass second comment start character to
11719         save_comment to indicate comment type.
11720         * cpplib.c (_cpp_handle_directive): If processing
11721         a "#define" directive and discard_comments_in_macro_exp
11722         is false,  re-enable saving of comments.
11723         (lex_macro_node): If discard_comments_in_macro_exp is false,
11724         discard any comments before the macro identifier.
11725         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11726         member.
11727         * cppmacro.c (cpp_get_token): If expanding a macro while
11728         processing a directive, discard any comments we might encounter.
11729         (parse_params): If discard_comments_in_macro_exp is false,
11730         ignore comments in the macro parameter list.
11731         * gcc.c (cpp_unique_options): Add "-CC" option.
11732         (option_map): Map "--comments-in-macros" to "-CC".
11733         * doc/cppopts.texi: Document "-CC" option.
11734         * f/lang-specs.h: Add "-CC" option.
11735         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11736         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11737         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11738         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11739         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11740         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11741
11742 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11743
11744         PR middle-end/6180
11745         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11746
11747 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11748
11749         PR c++/5571
11750         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11751
11752         PR opt/5120
11753         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11754         RTX_UNCHANGING_P for the functions arguments when a tail call
11755         is made.
11756
11757 2002-04-06  Jason Merrill  <jason@redhat.com>
11758
11759         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11760         (parse_options_and_default_flags): Set them appropriately.
11761         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11762
11763 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11764
11765         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11766         here.
11767
11768         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11769         semicolon.
11770
11771         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11772         types come in by-reference.  Fix typo in comment.
11773
11774 2002-04-05  David S. Miller  <davem@redhat.com>
11775
11776         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11777         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11778         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11779         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11780
11781 2002-04-05  David S. Miller  <davem@redhat.com>
11782
11783         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11784         are not going to emit return instructions, emit at least a nop
11785         for the sake of sane backtraces.
11786
11787 2002-04-05  Richard Henderson  <rth@redhat.com>
11788
11789         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11790
11791 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11792
11793         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11794
11795 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11796
11797         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11798         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11799         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11800
11801 2002-04-05  Andreas Schwab  <schwab@suse.de>
11802
11803         * c-convert.c: Include c-common.h.
11804         * Makefile.in (c-convert.o): Updated.
11805
11806 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11807
11808         * mklibgcc.in: Use separate libgcc.map for each multilib.
11809         * Makefile.in (distclean): Don't remove libgcc.map here.
11810
11811 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11812
11813         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11814         genmultilib invocation.
11815
11816 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
11817
11818         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11819         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
11820         to num_gprs for symmetry.
11821         * config/mips/mips.c: Adjust accordingly.
11822
11823 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11824
11825         * c-common.c (truthvalue_conversion): Rename, update.
11826         * c-common.h (c_common_truthvalue_conversion): New.
11827         * c-convert.c (convert): Update.
11828         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11829         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11830         * c-typeck.c (build_binary_op, build_unary_op,
11831         build_conditional_expr): Update.
11832         * fold-const.c (constant_boolean_node, fold): Use langhook.
11833         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11834         * langhooks.h (struct lang_hooks): New hook.
11835         * stmt.c (expand_decl_cleanup): Use langhook.
11836         * tree.h (truthvalue_conversion): Remove.
11837 objc:
11838         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11839
11840 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
11841
11842         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11843         Add rules to make null object file.
11844
11845 2002-04-04  Jim Blandy  <jimb@redhat.com>
11846
11847         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11848         macro formal parameter names.
11849
11850 2002-04-04  David S. Miller  <davem@redhat.com>
11851
11852         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11853
11854 2002-04-04  Richard Henderson  <rth@redhat.com>
11855
11856         PR middle-end/5099
11857         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11858         Support copies into and out of memory.  Don't accept allows_reg
11859         and allows_mem as gospel.
11860
11861 2002-04-04  Richard Henderson  <rth@redhat.com>
11862
11863         PR opt/6165
11864         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11865         (write_dependence_p): Likewise.
11866
11867 2002-04-04  Richard Henderson  <rth@redhat.com>
11868
11869         * predict.c (estimate_bb_frequencies): Do frequency calculation
11870         with a volatile temporary.
11871
11872 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
11873
11874         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11875
11876 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11877
11878         PR c++/6119
11879         * final.c (final_start_function): Don't bump profile_label_no here...
11880         (final_end_function): ...but here.
11881
11882 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11883
11884         * config/sparc/sparc.md (pic): New attribute.
11885         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11886         into stack slots.
11887         (split after do_builtin_setjmp_setup): New.
11888
11889 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11890
11891         PR fortran/6106
11892         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11893         change.
11894
11895 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11896
11897         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11898         UNITS_PER_WORD for zero sized aggregates.
11899
11900 2002-04-03  David S. Miller  <davem@redhat.com>
11901
11902         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11903         one-character spec for this, just use %(link_gcc_c_sequence).
11904
11905 2002-04-03  David S. Miller  <davem@redhat.com>
11906
11907         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11908         handling.
11909
11910 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11911
11912         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11913         (DWARF_FRAME_RETURN_COLUMN): Move.
11914         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11915         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11916         * pa.c (except.h, predict.h): Include.
11917         (FRP): Delete.
11918         (store_reg_modify, set_reg_plus_d): Revise prototypes.
11919         (output_ascii): Add cast.
11920         (store_reg_modify): Revise to add frame notes.
11921         (set_reg_plus_d): Likewise.
11922         (compute_frame_size): Include space for eh data registers in frame if
11923         the current function calls eh_return.
11924         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
11925         function calls eh_return.  Save eh data registers if the current
11926         function calls eh_return.  Fix code to add frame notes.  Emit
11927         blockage to prevent insns with frame notes being scheduled in the
11928         delay slot of calls.
11929         (hppa_expand_epilogue): Restore eh data registers and do final stack
11930         adjustment if the current function calls eh_return.  Don't add frame
11931         notes.
11932         (output_call): Revise for change in length of call insn.  Don't do
11933         return pointer adjustment for an unconditional jump in the delay slot
11934         of a call when using frame notes.
11935         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11936         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11937         (ARG_POINTER_CFA_OFFSET): Define.
11938         * pa.md (return_external_pic): New pattern.
11939         (prologue): Correct formatting.  Use return_external_pic if current
11940         function calls eh_return.
11941         (call_internal_symref, call_value_internal_symref,
11942         sibcall_internal_symref, sibcall_value_internal_symref): Change default
11943         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11944         respectively.
11945         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11946
11947         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11948         list of targets to check using "nop" insn.
11949         * configure: Rebuilt.
11950
11951 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
11952
11953         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11954
11955 2002-04-03  David S. Miller  <davem@redhat.com>
11956
11957         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11958         library sequence passed to the linker.
11959         (LINK_COMMAND_SPEC): Use it.
11960         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11961         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11962         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11963
11964 2002-04-03  Jason Merrill  <jason@redhat.com>
11965
11966         * except.c (struct eh_status): Remove protect_list.
11967         (begin_protect_partials, end_protect_partials): Remove.
11968         (add_partial_entry): Remove.
11969         * except.h: Remove prototypes.
11970
11971         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11972         expand_decl_cleanup_eh.
11973
11974         PR c++/5636
11975         * tree.h (CLEANUP_EH_ONLY): New macro.
11976         * stmt.c (expand_decl_cleanup_eh): New fn.
11977         (expand_cleanups): Check CLEANUP_EH_ONLY.
11978         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11979         Use expand_decl_cleanup_eh.
11980         (expand_stmt): Adjust.
11981         * c-common.h: Adjust prototype.
11982
11983 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
11984
11985         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11986         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11987         (cris_target_asm_function_epilogue): Ditto.
11988         (cris_initial_frame_pointer_offset): Ditto.
11989         (cris_simple_epilogue): Ditto.
11990         (cris_expand_builtin_va_arg): Variable-size types come in
11991         by-reference.
11992
11993 2002-04-03  David S. Miller  <davem@redhat.com>
11994
11995         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11996         little-endian.
11997         (set_fast_math): Correct 'fsr' type.
11998
11999 2002-04-03  Richard Henderson  <rth@redhat.com>
12000
12001         PR opt/3569
12002         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
12003         * toplev.c (check_global_declarations): Use it.
12004         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
12005         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12006         (LANG_HOOKS_DECLS): Add it.
12007         * langhooks.c (lhd_warn_unused_global_decl): New.
12008         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12009         * c-objc-common.c (c_warn_unused_global_decl): New.
12010         * c-tree.h (c_warn_unused_global_decl): Declare.
12011         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12012
12013 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12014
12015         * langhooks-def.h (lhd_set_decl_assembler_name,
12016         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
12017         (LANG_HOOKS_INITIALIZER): Update.
12018         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
12019         * langhooks.h (struct lang_hooks): New hook.
12020         * tree.c (set_decl_assembler_name): Move to langhooks.c.
12021         (lang_set_decl_assembler_name): Remove.
12022         (init_obstacks): Don't set hook.
12023         (decl_assembler_name): New function.
12024         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
12025         (decl_assembler_name): New.
12026         (lang_set_decl_assembler_name): Remove.
12027
12028 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
12029
12030         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
12031         works properly with .hidden symbols.
12032         * configure: Rebuilt.
12033         * config.in: Rebuilt.
12034         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12035         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
12036         properly with .hidden symbols.
12037
12038 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
12039
12040         PR middle-end/6102
12041         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
12042         USE argument.
12043
12044 2002-04-03  Richard Henderson  <rth@redhat.com>
12045
12046         PR opt/4120
12047         * sched-rgn.c (sets_likely_spilled): New.
12048         (sets_likely_spilled_1): New.
12049         (add_branch_dependences): Use it.
12050
12051 2002-04-02  Richard Henderson  <rth@redhat.com>
12052
12053         PR opt/4311
12054         * loop.h (LOOP_FIRST_PASS): New.
12055         * loop.c (strength_reduce): Mind it when deciding to unroll.
12056         * toplev.c (rest_of_compilation): Set it.
12057
12058 2002-04-02  David S. Miller  <davem@redhat.com>
12059
12060         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
12061         mems_ok_for_ldd_peep when the order of the loads being examined
12062         is reversed.
12063         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
12064         existing comment to increase comprehension of this situation.
12065
12066 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
12067
12068         * config/sh/sh.md: Don't use union real_extract.
12069
12070 2002-04-02  Richard Henderson  <rth@redhat.com>
12071
12072         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
12073
12074 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12075
12076         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
12077         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
12078         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
12079         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
12080         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
12081         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
12082         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
12083         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
12084         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
12085         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
12086         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
12087         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
12088         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
12089         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
12090         Include as many configury headers via tm_file as possible.  This
12091         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
12092         * config/openbsd-oldgas.h: New file.
12093         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
12094         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
12095         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
12096         config/i386/i386-coff.h, config/i386/i386-interix.h,
12097         config/i386/iscdbx.h, config/i386/linux-aout.h,
12098         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
12099         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
12100         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
12101         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
12102         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
12103         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
12104         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
12105         config/i386/vxi386.h: Do not directly include configury headers.
12106         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
12107         Directly include configury headers that are no longer automatically
12108         included by the above headers.
12109         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
12110         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
12111         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
12112         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
12113         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
12114         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12115         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12116         (TARGET_VERSION): Define.
12117         * config/i386/beos-elf.h, config/i386/freebsd.h,
12118         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12119         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12120         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12121         config/i386/sco5.h, config/i386/sysv4.h
12122         (TARGET_VERSION): Do not need to protect.
12123         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12124         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12125         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12126         config/i386/i386-interix.h, config/i386/linux-aout.h,
12127         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12128         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12129         (YES_UNDERSCORES): Do not define - not needed.
12130         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12131         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12132         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12133         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12134         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12135         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12136         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12137         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12138
12139 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
12140             Richard Henderson  <rth@redhat.com>
12141
12142         PR c/5484
12143         * function.c (assign_temp): Accept either type or decl argument.
12144         Detect variables whose size is too large to fit into an integer.
12145         * stmt.c (expand_decl): Pass the decl, not the type.
12146
12147 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12148
12149         * protoize.c: Match include directory usage with cppdefault.c.
12150
12151 2002-04-03  Jeffrey A Law  (law@redhat.com)
12152             Hans-Peter Nilsson  <hp@bitrange.com>
12153
12154         * combine.c (simplify_comparison): Avoid narrowing a comparison
12155         with a paradoxical subreg when doing so would drop signficant bits.
12156
12157 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
12158
12159         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12160         if POINTERS_EXTEND_UNSIGNED is defined.
12161
12162 2002-04-02  Richard Henderson  <rth@redhat.com>
12163
12164         PR opt/3967
12165         * local-alloc.c (contains_replace_regs): LO_SUM may contain
12166         replace regs.
12167
12168 2002-04-02  Richard Henderson  <rth@redhat.com>
12169
12170         * doc/standards.texi: Document required freestanding libc entry points.
12171
12172 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
12173
12174         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12175         associated splitter.  Remove MQ constraint.
12176         (ctrdi_internal4): Correct CCmode clobber.
12177
12178 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12179
12180         * milli64.S ($$dyncall): New function.
12181         * t-linux (LIB1ASMFUNCS): Revise module list.
12182         (LIB1ASMSRC): Use pa/milli64.S.
12183
12184 2002-04-02  Richard Henderson  <rth@redhat.com>
12185
12186         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12187         rename solaris_sys_varargs_h.
12188
12189 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12190
12191         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12192         the same mode as its component.
12193
12194 2002-04-02  Richard Henderson  <rth@redhat.com>
12195
12196         PR opt/190
12197         * final.c (this_is_asm_operands): Export.
12198         * output.h (this_is_asm_operands): Declare.
12199         * config/i386/i386.c (print_operand): Error odd asm operands.
12200
12201 2002-04-02  Richard Henderson  <rth@redhat.com>
12202
12203         PR opt/420
12204         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12205
12206 2002-04-01  Richard Henderson  <rth@redhat.com>
12207
12208         PR target/1538
12209         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12210         * fixinc/fixincl.x: Rebuild.
12211
12212 2002-04-01  Richard Henderson  <rth@redhat.com>
12213
12214         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12215         (atomic_alloc, atomic_free): New.
12216         (SIZE, MASK_FOR, PTR_IN): New.
12217         (emergency_reg_state, emergency_reg_state_free): New.
12218         (emergency_labeled_state, emergency_labeled_state_free): New.
12219         (reg_state_alloced, labeled_state_alloced): New.
12220         (alloc_reg_state, free_reg_state): New.
12221         (alloc_label_state, free_label_state, free_label_states): New.
12222         (push, pop, dup_state_stack, free_state_stack): Use them.
12223         (desc_label_state): Likewise.
12224         (uw_frame_state_for): Free label states and state stack.
12225         (uw_update_reg_address): Eliminate warnings.
12226
12227 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
12228
12229         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12230         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12231
12232 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12233
12234         * c-decl.c (grokdeclarator): Update.
12235         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12236         * c-tree.h (c_mark_addressable): New.
12237         * c-typeck.c (default_function_array_conversion, build_unary_op,
12238         build_array_ref, convert_for_assignment): Update.
12239         (mark_addressable): Rename.
12240         * calls.c (try_to_integrate, expand_call): Use langhook.
12241         * expr.c (expand_expr): Use langhook.
12242         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12243         * langhooks.h (struct lang_hooks): New hook.
12244         * stmt.c (expand_asm_operands): Use langhook.
12245         * tree.h (mark_addressable): Remove.
12246 objc:
12247         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12248
12249 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12250
12251         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12252         in previous change.
12253
12254 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12255
12256         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12257         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12258
12259 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12260
12261         * c-common.c (unsigned_conversion_warning, convert_and_check,
12262         unsigned_type, signed_type, shorten_compare,
12263         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12264         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12265         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12266         New.
12267         * c-decl.c (grokdeclarator): Update.
12268         * c-format.c (check_format_types): Update.
12269         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12270         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12271         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12272         * convert.c (convert_to_integer): Use new hooks.
12273         * expmed.c (make_tree): Use new hooks.
12274         * expr.c (store_expr): Use new hooks.
12275         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12276         all_ones_mask_p, unextend, fold): Use new hooks.
12277         * langhooks.h (struct lang_hooks_for_types): New hooks.
12278         * tree.h (signed_or_unsigned_type, signed_type,
12279         unsigned_type): Remove.
12280 objc:
12281         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12282         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12283
12284 2002-03-31  Richard Henderson  <rth@redhat.com>
12285
12286         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12287         (desc_frgr_mem): Fix reference to f16-f31.
12288
12289 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12290
12291         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12292         RTVEC_ELT): Const-ify.
12293         * varray.h (VARRAY_CHECK): Const-ify.
12294         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12295         ggc_mark_rtvec, ggc_mark): Const-ify.
12296
12297 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12298
12299         * diagnostic.c: Include langhooks-def.h.
12300         * Makefile.in (diagnostic.o): Update.
12301
12302 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12303
12304         * c-common.c (c_unsafe_for_reeval): Rename.
12305         * c-common.h (c_unsafe_for_reeval): Rename.
12306         * c-decl.c (finish_incomplete_decl): Rename.
12307         (c_init_decl_processing): Don't set langhook.
12308         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12309         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12310         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12311         * c-tree.h (finish_incomplete_decl): Rename.
12312         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12313         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12314         (LANG_HOOKS_INITIALIZER): Update.
12315         * langhooks.c (lhd_unsafe_For_reeval): New.
12316         * langhooks.h (struct langhooks): New hooks.
12317         * toplev.c (incomplete_decl_finalize_hook): Remove.
12318         (wrapup_global_declarations): Update.
12319         * tree.c (lang_unsafe_for_reeval): Remove.
12320         (unsafe_for_reeval): Update.
12321         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12322         Remove.
12323 objc:
12324         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12325         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12326
12327 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12328
12329         * diagnostic.c (print_error_function): Remove.
12330         (default_print_error_function): Rename.
12331         (report_error_function): Update.
12332         * diagnostic.h (print_error_function): Remove.
12333         (default_print_error_function): Remove.
12334         * langhooks-def.h (struct diagnostic_context): Predeclare.
12335         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12336         (LANG_HOOKS_INITIALIZER): Update.
12337         * langhooks.h (struct diagnostic context): Predeclare.
12338         (struct lang_hooks): New hook.
12339
12340 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12341
12342         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12343         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12344         !flag_pic.
12345         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12346         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12347         of PIC_OFFSET_TABLE_REGNUM thruout.
12348         * config/rs6000/rs6000.md: Likewise.
12349         * config/rs6000/darwin.h: Likewise.
12350
12351 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12352
12353         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12354         unsigned HOST_WIDE_INT, not unsigned int.
12355
12356 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12357
12358         PR middle-end/6096, middle-end/6098, middle-end/6099
12359         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12360         CODE_LABELs.
12361         (fill_slots_from_thread): Likewise.
12362
12363 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12364
12365         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12366         floating fields in float regs.
12367         (function_arg_record_value_2): Likewise.
12368
12369 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12370
12371         * config/mmix/mmix.md (define_constants): Remove misleading
12372         FIXME.  Add MMIX_fp_rO_OFFSET.
12373         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12374         saved rO as part of the pattern.  Remove FIXME.
12375         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12376         here, at output-time.
12377
12378 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12379
12380         PR middle-end/6100
12381         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12382         REG_BR_PRED.
12383         (output_v9branch): Likewise.
12384
12385 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12386
12387         * gcc.c: Revert previous patch for now.
12388         * config/i386/djgpp.h: Likewise.
12389
12390 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12391
12392         * config/mmix/crti.asm (_init): Register _fini with atexit.
12393         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12394
12395 2002-03-31  Richard Henderson  <rth@redhat.com>
12396
12397         PR target/3997
12398         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12399         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12400
12401 2002-03-31  Richard Henderson  <rth@redhat.com>
12402
12403         * libgcc2.c (__bb_exit_func): Make static.
12404
12405         * config/alpha/alpha.md (trap): New.
12406
12407 2002-03-31  Richard Henderson  <rth@redhat.com>
12408
12409         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12410         promoted argument types; build trap.
12411         (expand_builtin_trap): New.
12412         (expand_builtin): Use it.
12413         * stmt.c (expand_nl_goto_receivers): Likewise.
12414         * expr.h (expand_builtin_trap): Declare.
12415         * libfuncs.h (LTI_abort, abort_libfunc): New.
12416         * optabs.c (init_optabs): Init abort_libfunc.
12417
12418 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12419
12420         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12421         (LINK_COMMAND_SPEC): ... from here.
12422         (init_gcc_specs): Duplicate it here too, omitting
12423         shared_name in the second copy.
12424         (init_spec): Test for duplicate
12425         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12426
12427 2002-03-30  David S. Miller  <davem@redhat.com>
12428
12429         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12430         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12431
12432 2002-03-30  Roger Sayle <roger@eyesopen.com>
12433             Richard Henderson  <rth@redhat.com>
12434
12435         * regmove.c (combine_stack_adjustments_for_block): Avoid
12436         emitting a stack adjustment of zero bytes.  Let delete_insn
12437         update bb->head.
12438
12439 2002-03-30  Richard Henderson  <rth@redhat.com>
12440
12441         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12442         (sparc_emitting_epilogue): New.
12443         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12444         * config/sparc/sparc-protos.h: Update.
12445         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12446         (TARGET_SWITCHES): Update.
12447         * config/sparc/sparc.md (return): Remove.
12448         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12449         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12450         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12451         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12452         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12453         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12454         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12455         Remove MASK_EPILOGUE.
12456         * doc/invoke.texi: Update.
12457
12458 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12459
12460         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12461         CPP will start the file for us.
12462
12463 2002-03-30  Richard Henderson  <rth@redhat.com>
12464
12465         PR target/5446
12466         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12467         prologue_allocate_stack.
12468         (ia64_single_set): Use insn codes for recognition of special
12469         cases, not rtl matching.
12470         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12471
12472 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12473
12474         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12475
12476 2002-03-30  Richard Henderson  <rth@redhat.com>
12477
12478         PR target/6032
12479         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12480         or -fomit-frame-pointer with profiling.
12481         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12482         (FUNCTION_PROFILER): Do nothing.
12483         (PROFILE_HOOK): New.
12484         * config/sparc/sparc.c (sparc_override_options): Don't check
12485         code models for profiling.
12486         (sparc_function_profiler): Remove.
12487         (sparc_profile_hook): New.
12488         * config/sparc/sparc-protos.h: Update.
12489
12490 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12491
12492         PR optimization/6086
12493         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12494         of SUBREG of volatile MEM or because the MEM was mode dependent,
12495         return CLOBBER instead of unmodified SUBREG.
12496
12497 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12498
12499         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12500         when not optimizing.
12501
12502         * toplev.c (rest_of_compilation): Cann mark_constant_function
12503         only when optimizing.
12504
12505         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12506         are NULL.
12507
12508         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12509         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12510         (try_optimize_cfg): clear all AUX fields.
12511
12512         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12513         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12514         (ix86_address_cost): Be prepared for SUBREGed registers.
12515         (legitimate_address_p): Accept SUBREGed registers.
12516
12517 2002-03-29  Richard Henderson  <rth@redhat.com>
12518
12519         PR target/5672
12520         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12521
12522 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12523
12524         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12525         for aggregate and TFmode types.
12526
12527 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12528
12529         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12530
12531 2002-03-29  Richard Henderson  <rth@redhat.com>
12532
12533         PR target/5886
12534         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12535         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12536
12537 2002-03-29  Richard Henderson  <rth@redhat.com>
12538
12539         PR target/6041
12540         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12541         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12542         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12543         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12544         conditional.
12545         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12546
12547 2002-03-29  Dale Johannesen <dalej@apple.com>
12548
12549         * loop.c (combine_movables): Do allow combination of pseudos.
12550
12551 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12552
12553         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12554         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12555         No functional change except ...
12556         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12557         * doc/install.texi (*-*-freebsd*): Document port configuration.
12558
12559 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12560
12561         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12562         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12563         Use new hooks.
12564         * builtin-types.def (BT_PTRMODE): Update.
12565         * c-common.c (type_for_size): Rename c_common_type_for_size.
12566         (type_for_mode): Similarly.
12567         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12568         Use new hook.
12569         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12570         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12571         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12572         Redefine.
12573         * c-typeck.c (common_type, comptypes, default_conversion):
12574         Use new hooks.
12575         * calls.c: Include langhooks.h.
12576         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12577         calls.
12578         * convert.c: Include langhooks.h
12579         (convert_to_pointer, convert_to_integer): Use new hooks.
12580         * except.c (init_eh): Similarly.
12581         * expmed.c: Include langhooks.h.
12582         (expand_mult_add): Use new hooks.
12583         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12584         try_casesi): Similarly.
12585         * fold-const.c (optimize_bit_field_compare, make_range,
12586         decode_field_reference, fold_truthop, fold): Similarly.
12587         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12588         put_var_into_stack): Similarly.
12589         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12590         LANG_HOOKS_TYPE_FOR_SIZE): New.
12591         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12592         * langhooks.h (lang_hooks_for_types): New hooks.
12593         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12594         * tree.c (get_unwidened, get_narrower): Similarly.
12595         * tree.h (type_for_mode, type_for_size): Remove.
12596         * varasm.c (force_const_mem): Use new hooks.
12597         * utils2.c (nonbinary_modular_operation): Update.
12598 objc:
12599         * objc-act.c (handle_impent): Update.
12600         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12601         Redefine.
12602
12603 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12604
12605         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12606         * config/ia64/ia64.c (basereg_operand): New.
12607         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12608         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12609
12610 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12611
12612         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12613         unwind information when frame_pointer_needed.
12614         (mmix_assemble_integer): Tweak wording in comment.
12615
12616 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12617
12618         * Makefile.in (except.o): Update.
12619         * except.c: Include langhooks.h.
12620         (init_eh): Use langhook.
12621         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12622         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12623         (LANG_HOOKS_INITIALIZER): Update.
12624         * langhooks.h (lang_hooks_for_types): New.
12625         (struct lang_hooks): Add it.
12626         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12627         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12628 config:
12629         * alpha/alpha.c: Include langhooks.h.
12630         (alpha_build_va_list): Use langhook.
12631         * d30v/d30v.c: Include langhooks.h.
12632         (d30v_build_va_list): Use langhook.
12633         * i386/i386.c: Include langhooks.h.
12634         (ix86_build_va_list): Use langhook.
12635         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12636         * s390/s390.c: Include langhooks.h.
12637         (s390_build_va_list): Use langhook.
12638         * stormy16/stormy16.c: Include langhooks.h.
12639         (stormy16_build_va_list): Use langhook.
12640
12641 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12642
12643         PR c++/5964
12644         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12645         attributes.
12646         (length): Compute variable length for branches/calls/jumps here.
12647         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12648         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12649         define branch_type attribute.
12650         (divsi3_sp32): Maximum length is 6 not 7.
12651         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12652         call_address_untyped_struct_value_sp32,
12653         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12654         * config/sparc/sparc.c (empty_delay_slot): New function.
12655         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12656         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12657
12658 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12659
12660         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12661         nonzero_bits if not needed.
12662         (nonzero_bits) [XOR]: Likewise.
12663         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12664         reg_last_set_mode and mode are both MODE_INT, but not equal.
12665         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12666         in nonzero_bits_mode for MODE_INT modes.
12667
12668 2002-03-28  Richard Henderson  <rth@redhat.com>
12669
12670         PR target/5715
12671         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12672         to GAS.  Correct drift between alternatives.
12673
12674 2002-03-28  Richard Henderson  <rth@redhat.com>
12675
12676         PR target/6087
12677         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12678
12679 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12680
12681         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12682         emulation to the linker.
12683
12684 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12685
12686         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12687         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12688
12689 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12690
12691         * combine.c (simplify_and_const_int): Make sure to apply mask
12692         when force_to_mode returns a constant integer.  PR3311.
12693
12694 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12695
12696         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12697
12698 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12699
12700         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12701         and Objective-C Dialect Options.
12702
12703 2002-03-28  Richard Henderson  <rth@redhat.com>
12704
12705         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12706         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12707
12708 2002-03-28  Richard Henderson  <rth@redhat.com>
12709
12710         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12711         on to c_expand_body.
12712         * c-tree.h (finish_function): Update decl.
12713         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12714
12715 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12716
12717         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12718
12719 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12720
12721         * rtlanal.c: Include flags.h
12722         (may_trap_p): Do not mark FP operations if trapping
12723         if !flag_trapping_math
12724         * Makefile.in (rtlanal.o): Add dependency on flag.h
12725         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12726
12727 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12728
12729         * mips.md: Use dconst1, not 1.0, as first argument of
12730         REAL_VALUE_LDEXP.  Don't use union real_extract.
12731
12732 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12733
12734         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12735         rather than $target.  Heed program_prefix and
12736         program_transform_name.  Search for gas in cross-compiler case too.
12737         "test -x" rather than "test -f".
12738         (gcc_cv_ld): Likewise.
12739         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12740         (gcc_cv_objdump): Likewise.
12741         * configure: Regenerate.
12742
12743 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12744
12745         * Makefile.in (attribs.o): Update.
12746         * attribs.c: Include langhooks.h.
12747         (decl_attributes): Use langhook.
12748         * c-decl.c (insert_default_attributes): Rename.
12749         * c-tree.h (c_insert_default_attributes): New.
12750         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12751         (LANG_HOOKS_INITIALIZER): Update.
12752         * langhooks.h (struct lang_hooks): New hook.
12753         * tree.h (insert_default_attributes): Remove.
12754 objc:
12755         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12756
12757 2002-03-27  Andreas Schwab  <schwab@suse.de>
12758
12759         * config/i386/i386.c (classify_argument): Also check for
12760         QUAL_UNION_TYPE.
12761
12762 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12763
12764         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12765         any more.
12766
12767 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12768
12769         * i960.md (ret): Set PC.
12770         (nonlocal_goto): Fix expander.
12771         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12772         some jump or call.
12773
12774 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12775
12776         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12777         of libcall regions.
12778
12779 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12780
12781         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12782         assigning to BLOCK_FOR_INSN directly.
12783
12784 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12785
12786         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12787
12788 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12789
12790         * c-common.c (c_expand_expr): Fix prototype.
12791         * c-common.h (c_expand_expr): Always declare, update.
12792         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12793         * c-objc-common.c (c_objc_common_init): No global hook.
12794         * expr.c (expand_expr): Use langhook.
12795         * expr.h (enum expand_modifier): Conditionally declare.
12796         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12797         (LANG_HOOKS_INITIALIZER): Update.
12798         * langhooks.c (lhd_expand_expr): New.
12799         * langhooks.h (struct lang_hooks): New hook.
12800         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12801         (lang_independent_init): Don't default hook.
12802 objc:
12803         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12804
12805 2002-03-27  Richard Henderson  <rth@redhat.com>
12806
12807         PR target/6054
12808         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12809         TARGET_CONST_GP.  Simplify conditions.
12810
12811 2002-03-27  Richard Henderson  <rth@redhat.com>
12812
12813         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12814         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12815         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12816
12817 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
12818
12819         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12820         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12821         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12822         Remove unnecessary masks.
12823         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12824         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12825         -mwindows, -mdll switches and their negations.
12826
12827 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12828
12829         * gcc-common.c (lang_mark_false_label_stack): Remove.
12830         * ggc.h (lang_mark_false_label_stack): Similarly.
12831
12832 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12833
12834         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12835
12836         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12837         or __rtems_ is defined.
12838
12839 2002-03-26  Richard Henderson  <rth@redhat.com>
12840
12841         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12842         if a non-trivial load was emitted.
12843         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
12844         in high+extra+low case.
12845
12846 2002-03-26  Richard Henderson  <rth@redhat.com>
12847
12848         * config.gcc (sparc*-solaris): Use float_format=sparc.
12849
12850 2002-03-26  Richard Henderson  <rth@redhat.com>
12851
12852         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12853         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12854         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12855         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12856         (WINT_TYPE_SIZE): Fix at 32.
12857
12858 2002-03-26  Richard Henderson  <rth@redhat.com>
12859
12860         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12861         until after eh landing pad generation.
12862         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12863         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12864
12865 2002-03-26  Richard Henderson  <rth@redhat.com>
12866
12867         * expr.h (ADD_PARM_SIZE): One more convert for INC.
12868
12869 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
12870
12871         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
12872         and warning switches.
12873         (cc1_options):  Likewise.
12874
12875 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
12876
12877         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12878         Restore more of the signal context.  Set no_reg_stack_frame.
12879         * config/ia64/unwind-ia64.c (unw_state_record):
12880         Add no_reg_stack_frame, comments.
12881         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12882         (uw_update_context): Adjust bsp when unwinding from leaf,
12883         but not signal frame.
12884
12885 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
12886
12887         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12888
12889 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12890
12891         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12892
12893 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12894
12895         PR target/5621
12896         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12897         "Add a pool_range attribute", which was lost during the ARM/Thumb
12898         merge.
12899
12900 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12901
12902         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12903         a register into the MAC16 accumulator.
12904
12905 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
12906
12907         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12908         (Warning Options): Document -Wswitch-enum.
12909         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
12910         -Wswitch.
12911         (warn_switch_enum): Define variables.
12912         * flags.h (warn_switch_enum): Declare variables.
12913         * stmt.c (expand_end_case_type): When warn_switch_enum /
12914         -Wswitch-enum, perform switch checks.
12915         Fix PR c/5044.
12916
12917 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12918
12919         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12920         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12921         (reload_muladdsi_compare0_scratch): Delete.
12922
12923 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
12924
12925         * doc/install.texi (*-*-freebsd*): Update.
12926
12927 2002-03-26  Richard Henderson  <rth@redhat.com>
12928
12929         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12930         (SUB_PARM_SIZE): Cast DEC to ssizetype.
12931
12932         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12933         types from the normal argument frame.
12934
12935         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12936         variable sized objects by reference.
12937         (sparc_va_arg): Receive them by reference too.
12938
12939 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
12940
12941         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12942         code to not restoring global registers.
12943
12944 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12945
12946         * Makefile.in (ggc-common.o): Update.
12947         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12948         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12949         * c-tree.h (c_mark_tree): New.
12950         * ggc-common.c: Include langhooks.h.
12951         (gcc_mark_trees): Use new langhook.
12952         * ggc-callbacks.c: Delete file.
12953         * ggc.h (lang_mark_tree): Remove.
12954         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12955         (LANG_HOOKS_INITIALIZER): Update.
12956         * langhooks.h (struct lang_hooks): New hook.
12957 objc:
12958         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12959
12960 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12961
12962         * doc/cpp.texi: Exclude entire Top node from printed manual.
12963         Move option index after directive index.  Insert page breaks
12964         before GFDL and concept index.  Index environment variables
12965         with command line options.
12966         * doc/cppenv.texi: Use @vtable for environment variable list.
12967         Add paragraph explaining semantics of empty elements in path
12968         variables.  Exclude a cross-reference to Fishkill from the
12969         manpage.  Remove an unnecessary cross-reference of the entry
12970         right above the referer.  Don't use @anchor in text that goes
12971         into manpage.
12972         * doc/cppopts.texi: Cross-reference the environment variables
12973         section, not the specific environment variable, for consistency.
12974
12975 2002-03-25  Richard Henderson  <rth@redhat.com>
12976
12977         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12978         anywhere in the block.  Don't refer to insns that have been
12979         removed from the chain.  Iterate backward through the new insns.
12980         Don't refer to edges that have been removed.
12981
12982 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
12983
12984         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12985         test for overflow of constant.
12986
12987 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
12988
12989         PR target/2623
12990         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12991         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12992         these patterns on arm_archv4.
12993
12994 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
12995
12996         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12997         int".
12998
12999 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
13000
13001         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
13002         float_handled, float_handler, float_signal, set_float_handler,
13003         and do_float_handler.  Set handler for SIGFPE to crash_signal.
13004         * toplev.h: Don't prototype do_float_handler.
13005
13006         * c-lex.c: Fold parse_float into lex_number.  Make warning
13007         about portability of hex float constants more informative, and
13008         don't issue it on top of a syntax error.
13009         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
13010         their callers.
13011         * real.h: Define REAL_VALUE_ABS here...
13012         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
13013         simplify_unary_real, simplify_binary_real, and
13014         simplify_binary_is2orm1 into their callers.
13015         * tree.c: Fold build_real_from_int_cst_1 into caller.
13016
13017         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
13018
13019         * tsystem.h: Include float.h here...
13020         * libgcc2.c: ... not here.
13021
13022 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
13023
13024         Fixes for: PR bootstrap/3591, target/5676
13025         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
13026         defined.  Do not disable exceptions or rtti.
13027         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
13028         mcore.h.  Disable exceptions and rtti, since they are not
13029         supported by EPOC.
13030
13031 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
13032
13033         * c-decl.c (maybe_build_cleanup): Remove.
13034         * expr.c (expand_expr): Use langhook.
13035         * langhooks-def.h (lhd_return_null_tree,
13036         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
13037         (LANGHOOKS_INITIALIZER): Update.
13038         * langhooks.c (lhd_return_null_tree): New.
13039         * langhooks.h (struct lang_hooks): New hook.
13040         * tree-inline.c (initialize_inlined_parameters): Use langhook.
13041         * tree.h (maybe_build_cleanup): Remove.
13042
13043 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13044
13045         * regrename.c (build_def_use): Move recog_memoized
13046         before extract_insn.
13047
13048 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13049
13050         PR target/6043
13051         * expr.c (emit_group_store): Handle storing into CONCAT.
13052
13053 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13054
13055         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
13056         corresponding MATCH_DUP.
13057
13058 2002-03-24  Richard Henderson  <rth@redhat.com>
13059
13060         * unroll.c (unroll_loop): Zero label_map.
13061
13062         * gcse.c: Include except.h.
13063         * Makefile.in (gcse.o): Update.
13064
13065 2002-03-24  Richard Henderson  <rth@redhat.com>
13066
13067         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
13068         Do resolve_unique_section before shared data clause.
13069
13070 2002-03-24  Richard Henderson  <rth@redhat.com>
13071
13072         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
13073
13074 2002-03-24  Richard Henderson  <rth@redhat.com>
13075
13076         * recog.c (peephole2_optimize): Split blocks when EH insns are
13077         generated in the middle of a block.  Do global life update if
13078         zapped EH edges.
13079
13080 2002-03-24  Richard Henderson  <rth@redhat.com>
13081
13082         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
13083
13084 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13085
13086         preprocessor/3951
13087         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
13088         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
13089         (init_dependency_output): Don't make no_output decision here.
13090
13091 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
13092
13093         * stmt.c (check_for_full_enumeration_handling): Remove tests of
13094         warn_switch.  Update description.
13095         (expand_end_case_type): Call check_for_full_enumeration_handling
13096         when warn_switch.
13097
13098 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13099
13100         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
13101         (m68hc11_split_move): Call it to see if the source and destination
13102         operands use the same direction auto inc/dec mode, otherwise make the
13103         source an offsetable memory operand and generate an add.
13104
13105 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13106
13107         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
13108         register for operand 2.
13109         ("*subsi3_zero_extendqi"): Likewise.
13110         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
13111         bits so that it is compatible with a pop.
13112         ("*andhi3_gen"): Likewise.
13113         ("xorhi3"): Likewise.
13114
13115 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13116
13117         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13118         -pedantic here...
13119         (cpp_post_options): ... not here.
13120
13121 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13122             Aldy Hernandez  <aldyh@redhat.com>
13123
13124         Removal of separate preprocessor cpp0.
13125
13126         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13127         cpp0, install-common): Update.
13128         * c-common.c (flag_preprocess_only): New.
13129         (c_common_init): Preprocess for -E.
13130         * c-common.h (flag_preprocess_only): New.
13131         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13132         * c-objc-common.c (c_init_decl_processing): Exit quickly
13133         for NULL return from c_common_init.
13134         * cpplib.h (cpp_preprocess_file): New.
13135         * cppmain.c (main, general_init, pfile, progname): Remove.
13136         (do_preprocessing): Rename cpp_preprocess_file, don't call
13137         cpp_finish.  Don't close stdout here.
13138         (setup_callbacks): Update prototype.
13139         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13140         Update.
13141         * tradcpp.c (main): Ignore -quiet.
13142 objc:
13143         * lang-specs.h (default_compilers): Preprocess with cc1obj.
13144
13145 2002-03-24  Richard Henderson  <rth@redhat.com>
13146
13147         PR optimization/5742
13148         * machmode.def: Add inner mode field to complex modes.
13149         * config/mips/mips.c (mips_function_value): Always define.  Add
13150         new argument to handle libcalls.
13151         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13152         (FUNCTION_VALUE): Likewise.
13153         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13154         * config/mips/mips-protos.h: Update.
13155
13156 2002-03-23  Richard Henderson  <rth@redhat.com>
13157
13158         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13159         * config/sparc/sparc-protos.h: Update.
13160         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13161
13162 2002-03-23  Richard Henderson  <rth@redhat.com>
13163
13164         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13165         _start or _init begins the text segment.
13166
13167 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
13168
13169         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
13170         not HOST_WIDEST_INT.
13171         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13172
13173 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
13174
13175         PR java/5489
13176         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13177         operand argument to output_return_instruction.
13178         * arm.c (arm_print_operand, case 'd'): If the operand is
13179         const_true_rtx then just return.
13180         (arm_print_operand, case 'D'): If the operand is const_true_rtx
13181         then abort.
13182
13183 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
13184
13185         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13186         (Warning Options): Document -Wswitch-default.
13187         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
13188         -Wswitch.
13189         (warn_switch_default): Define variable.
13190         (warn_switch): Update comment.
13191         * flags.h (warn_switch_default): Declare variable.
13192         (warn_switch): Update comment.
13193         * stmt.c (expand_end_case): Check for and, when
13194         warn_switch_no_default, warn of a missing default case.
13195
13196 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
13197
13198         * real.h (N): Special case 128 bit doubles.
13199
13200         * combine.c (simplify_comparison): When widening modes, ignore
13201         sign extension on CONST_INTs.
13202
13203 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13204
13205         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13206         passed to adjust_address.  Fix comment formatting.
13207
13208
13209 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
13210
13211         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13212         Always make REAL_VALUE_TYPE a struct containing an array of
13213         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
13214         big it is.  Don't declare or use union real_extract.
13215
13216         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13217         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13218         (print_operand), config/arm/arm.c (output_move_double),
13219         config/arm/arm.md (consttable_4, consttable_8),
13220         config/romp/romp.c (output_fpops), config/s390/s390.h
13221         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13222         (xtensa_output_literal): Don't use union real_extract.
13223
13224         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13225         (sfmode_constant_to_ulong), config/ns32k/merlin.h
13226         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13227         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13228         (PRINT_OPERAND): Don't use local version of union
13229         real_extract.
13230
13231         * config/convex/convex.c (check_float_value), config/vax/vax.c
13232         (vax_float_literal), config/m88k/m88k.md (divdf3),
13233         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13234         config/pdp11/pdp11.c (output_move_quad): Don't do host
13235         arithmetic on target floating point quantities.
13236
13237         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13238         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13239
13240         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13241         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13242
13243         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13244         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13245         INFINITY.
13246         * print-rtl.c (print_rtx): Disable code which needs
13247         floating-point emulator.
13248         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13249         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13250         depending on HOST_FLOAT_FORMAT to be defined properly.
13251
13252         * config/1750a/1750a.c (get_double, float_label): Delete.
13253         (print_operand): Delete huge commented-out chunk.  Use
13254         REAL_VALUE_TO_DECIMAL.
13255         * config/1750a/1750a-protos.h: Delete prototypes of deleted
13256         functions.
13257         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13258         IEEE_FLOAT_FORMAT.
13259         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13260         Use REAL_VALUE_TO_DECIMAL as ELF version does.
13261         * config/m88k/m88k.c (real_power_of_2_operand,
13262         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13263         real_extract out of the union; run the input through
13264         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13265         from that into the union.
13266         * config/pdp11/pdp11.c (output_move_double): Rearrange
13267         parentheses to make automatic indenter happy.
13268
13269         * doc/tm.texi (Cross-compilation): Rename node to "Floating
13270         Point" and rewrite to describe current situation.  Also adjust
13271         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13272         match code.
13273         * doc/rtl.texi: Adjust cross reference.
13274
13275 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13276
13277         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13278         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13279         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13280         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13281         prevent use of sp as a reload register.
13282         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13283         non_acc_reg_operand.
13284         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13285         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13286         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13287         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13288
13289 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13290
13291         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13292         * cpplex.c (unterminated): Delete.
13293         (parse_string): No string literal may extend over multiple
13294         lines.  Suppress the error when preprocessing assembly.
13295         * cppmain.c (scan_translation_unit): Strings are single-line.
13296
13297         * doc/cpp.texi: Update to match.
13298
13299 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13300
13301         PR optimization/5854
13302         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13303         Shut up warnings.
13304         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13305         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13306         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13307         const0 if scratch register was not allocated.
13308         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13309         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13310         with GEN_INT (...).
13311         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13312         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13313         with GEN_INT (...) everywhere.  Remove constraints in define_split
13314         patterns.
13315         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13316         require scratch register for setting 0 into regs/non-pushable memory.
13317
13318 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13319
13320         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13321         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13322
13323 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13324
13325         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13326         * cppinit.c (cpp_create_reader):  On by default.
13327         (cpp_handle_option):  Handle -W[no-]endif-labels.
13328         (cpp_post_options):  Also enable if -pedantic.
13329         * cpplib.c (do_else):  Use it.
13330         (do_endif):  Likewise.
13331         * doc/cppopts.texi:  Document new option.
13332         * doc/invoke.texi:  Document new option.
13333
13334 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13335
13336         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13337         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13338
13339 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13340
13341         * flow.c (calculate_global_regs_live): Clear aux fields of
13342         ENTRY and EXIT.
13343
13344 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13345
13346         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13347         REG or MEM subregs, pass rtx * instead of rtx to it.
13348         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13349         rtx * instead of rtx to alter_subreg.
13350         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13351         * config/pj/pj.c (pj_output_rval): Likewise.
13352
13353 2002-03-22  Richard Henderson  <rth@redhat.com>
13354
13355         PR target/3177
13356         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13357         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13358         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13359         (ia64_expand_prologue): Look at int_regs, not words, for number
13360         of incomming int regs.
13361
13362 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13363
13364         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13365
13366 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13367
13368         * toplev.c (flag_loop_optimize, flag_crossjumping):
13369         New static variables.
13370         (rest_of_compilation): Conditionalize crossjumping and
13371         loop optimizer.
13372         (parse_options_and_default_flags): Default loop_optimize and
13373         crossjumping.
13374         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13375         * invoke.texi (crossjumping, loop-optimize): Document.
13376
13377 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13378
13379         * real.c (eiisneg): Move outside #ifdef NANS.
13380
13381 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13382
13383         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13384         frequencies match; avoid match on different loop depths.
13385         (try_crossjump_to_bb): Kill tests that no longer brings time
13386         savings.
13387         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13388         updating code.
13389         (split_edge): Likewise.
13390
13391         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13392         variable.
13393
13394         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13395         * cfgrtl.c: Include insn-config.h
13396         (split_block) Dirtify block in presence of conditional execution
13397
13398 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13399
13400         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13401         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13402         (function_arg): Constify CUMULATIVE_ARGS.
13403         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13404         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13405         (UNITS_PER_DOUBLE): New macro.
13406         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13407         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13408         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13409         fp_regs and stack_words.
13410         (EABI_FLOAT_VARARGS_P): New macro.
13411         * config/mips/mips.c (struct mips_arg_info): New.
13412         (mips_arg_info): New function.
13413         (function_arg_advance): Use it.  Add adjustment instructions here
13414         rather than in function_arg.
13415         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13416         for VOIDmode at the beginning of the function.
13417         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13418         (function_arg_pass_by_reference): Likewise.
13419         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13420         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13421         (mips_va_start): Likewise.  Use the new stack_words field of
13422         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13423         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13424         doubles and other types, aligning the overflow pointer for non-doubles
13425         too.  Remove some code duplication.  Replace hard-coded constants.
13426
13427 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13428
13429         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13430         (CLASS_UNITS): Undefine.
13431         (CLASS_MAX_NREGS): Use FP_INC.
13432         * config/mips/mips.c (compute_frame_size): Likewise.
13433         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13434
13435 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13436
13437         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13438         prototype, and handle lexing numbers and identifiers.
13439         (parse_identifier): Update to new form of parse_slow.
13440         (parse_number): Fast path only, use parse_slow otherwise.
13441         (_cpp_lex_direct): Update calls to parse_number.
13442
13443 2002-03-21  DJ Delorie  <dj@redhat.com>
13444
13445         * bb-reorder.c (make_reorder_chain_1): Protect against
13446         when redundant edges are omitted.
13447         * predict.c (dump_prediction): Likewise.
13448
13449 2002-03-21  Richard Henderson  <rth@redhat.com>
13450
13451         PR target/5996
13452         * fixinc/inclhack.def (solaris_stdio_tag): New.
13453         * fixinc/fixincl.x: Regenerate.
13454
13455 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13456
13457         PR c/5597
13458         * c-typeck.c (process_init_element): Flag non-static
13459         initialization of a flexible array member as illegal.
13460
13461 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13462
13463         * config/rs6000/t-linux64: New.
13464         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13465         t-ppccomm.  Use t-rs6000 and t-linux64.
13466         (powerpc64-*-gnu* <tmake_file>): Likewise.
13467         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13468         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13469         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13470
13471 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13472
13473         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13474         flag_really_no_inline instead of optimize == 0.
13475
13476         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13477
13478         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13479
13480         * flags.h (flag_really_no_inline): New.
13481
13482         * c-common.c (c_common_post_options): Initialize
13483         flag_really_no_inline.
13484
13485         * toplev.c (flag_really_no_inline): New.
13486
13487 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13488
13489         * config/avr/avr.md (length): Fix length computation for
13490         conditional branches.
13491
13492 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13493
13494         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13495         sdbout.o, profile.o): Update.
13496         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13497         langhook.
13498         * c-common.h (gettags): Move here from tree.h.
13499         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13500         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13501         * dbxout.c (dbxout_init): Use getdecls langhook.
13502         * expr.c (expand_expr): Use insert_block langhook.
13503         * fold-const.c: Include langhooks.h.
13504         (fold_range_test, fold_binary_op_with_conditional_arg,
13505         fold): Use global_bindings_p langhook.
13506         * integrate.c (expand_inline_function): Use insert_block langhook.
13507         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13508         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13509         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13510         LANG_HOOKS_GETDECLS): New.
13511         (LANG_HOOKS_INITIALIZER): Update.
13512         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13513         langhook.
13514         * langhooks.h (struct lang_hooks_for_decls): New.
13515         (struct lang_hooks): Update.
13516         * profile.c: Include langhooks.h.
13517         (output_func_start_profiler): Use new langhooks.
13518         * sdbout.c: Include langhooks.h.
13519         (sdbout_init, sdbout_finish): Use getdecls langhook.
13520         * stmt.c: Include langhooks.h.
13521         (expand_fixup, fixup_gotos): Use new langhooks.
13522         * stor-layout.c: Include langhooks.h.
13523         (variable_size): Use global_bindings_p langhook.
13524         * toplev.c (compile_file): Use getdecls langhook.
13525         * tree-inline.c (remap_block): Use insert_block langhook.
13526         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13527         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13528
13529 2002-03-21  Richard Henderson  <rth@redhat.com>
13530
13531         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13532         constants in .data when -fpic.
13533
13534 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13535
13536         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13537         where appropriate.
13538
13539 2002-03-21  Tom Tromey  <tromey@redhat.com>
13540
13541         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13542
13543 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13544
13545         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13546
13547         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13548
13549 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13550             Richard Henderson  <rth@redhat.com>
13551
13552         PR c/5354
13553         * c-common.c (c_expand_expr): Preserve result of a statement
13554         expression if needed.
13555
13556 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13557
13558         PR bootstrap/4195
13559         * genrecog.c (maybe_both_true_mode): Remove.
13560         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13561         * machmode.def (Pmode): Likewise.
13562
13563 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13564
13565         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13566         (nonlocal_mentioned_p_1): New function.
13567         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13568         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13569         (mark_constant_function): Recognize pure functions.
13570         * rtl.h (global_reg_mentioned_p): New prototype.
13571         * rtlanal.c (global_reg_mentioned_p,
13572         global_reg_mentioned_p_1): New function.
13573
13574 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13575
13576         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13577         UNIX assert.h.
13578         * fixinc/fixincl.x: Regenerate.
13579
13580 2002-03-20  Jason Merrill  <jason@redhat.com>
13581
13582         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13583
13584 2002-03-20  Michael Meissner  <meissner@redhat.com>
13585
13586         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13587         -fstrict-aliasing.
13588
13589 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13590
13591         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13592         ".literal_position" directive before the constant pool.
13593
13594 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13595
13596         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13597         Add Craig Rodrigues.
13598         Add Brad Lucier to testers.
13599
13600 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13601
13602         PR target/4792
13603         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13604         to if_then_else.
13605         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13606         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13607         instead of insn_extract.
13608
13609 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13610
13611         PR bootstrap/4192
13612         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13613
13614         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13615         stmt if some case has been output.
13616
13617 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13618
13619         PR c/5972
13620         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13621         movsfcc_1, movdfcc_1): Add %O2.
13622         * config/i386/i386.c (print_operand): Handle %ON.
13623         Print . before float condition codes in Sun as cmov syntax.
13624         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13625         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13626         no longer true.
13627
13628 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13629
13630         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13631         return instruction if PC was popped.
13632
13633 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13634
13635         * config/xtensa/xtensa.md: Remove unused type attributes.
13636         (adddi_carry, subddi_carry): Change type attribute to "multi".
13637
13638 2002-03-19  Dale Johannesen  <dalej@apple.com>
13639
13640         PR optimization/5999, middle-end/5731
13641         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13642         multiplications by reciprocals.
13643
13644 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13645
13646         * Makefile.in: Update.
13647         * c-common.c: Include langhooks.h.
13648         (inline_forbidden_p): Use new hook.
13649         * diagnostic.c: Include langhooks.h.
13650         (format_with_decl, announce_function,
13651         default_print_error_function): Use new hook.
13652         * dwarf2out.c (dwarf2_name): Use new hook.
13653         * function.c: Include langhooks.h.
13654         (init_function_start): Use new hook.
13655         * langhooks-def.h (lhd_decl_printable_name): New.
13656         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13657         (LANGHOOKS_INITIALIZER): Update.
13658         * langhooks.c (lhd_decl_printable_name): New.
13659         * langhooks.h (struct lang_hooks): New hook.
13660         * toplev.c (decl_name, decl_printable_name): Remove.
13661         (open_dump_file): Use new hook.
13662         (process_options): Remove old hook.
13663         * tree.h (decl_printable_name): Remove.
13664 objc:
13665         * objc-act.c (objc_init): Remove old hook.
13666         (objc_printable_name): Export.
13667         * objc-act.h (objc_printable_name): New.
13668         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13669
13670 2002-03-19  Jim Blandy  <jimb@redhat.com>
13671
13672         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13673         the start_source_file debug hook, not the current line number.
13674
13675 2002-03-19  Richard Henderson  <rth@redhat.com>
13676
13677         * flow.c (EH_USES): Provide default.
13678         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13679         * doc/tm.texi (EH_USES): New.
13680
13681         * config/ia64/ia64.c (ia64_eh_uses): New.
13682         * config/ia64/ia64-protos.h: Update.
13683         * config/ia64/ia64.h (EH_USES): New.
13684
13685 2002-03-19  Richard Henderson  <rth@redhat.com>
13686
13687         * varasm.c (output_constant_def): Fix stupid typo.
13688
13689 2002-03-19  Richard Henderson  <rth@redhat.com>
13690
13691         PR 5879
13692         * except.c (current_function_has_exception_handlers): New.
13693         * except.h: Declare it.
13694         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13695         Combine tests that disable all sibcalls for the function.
13696
13697 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13698
13699         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13700         for INTEGER_CST.
13701
13702 2002-03-19  Richard Henderson  <rth@redhat.com>
13703
13704         PR 5977, 5991
13705         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13706         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13707
13708 2002-03-19  Jim Blandy  <jimb@redhat.com>
13709
13710         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13711         name, even if the replacement list contains no tokens, as required
13712         by Dwarf.
13713
13714 2002-03-19  Jason Merrill  <jason@redhat.com>
13715
13716         * varasm.c (globalize_decl): Get the name from the RTL, not
13717         DECL_ASSEMBLER_NAME.
13718
13719         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13720
13721 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13722
13723         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13724         subdi_carry): Define.
13725
13726 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13727
13728         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13729         about -fpic/-fPIC if extra_warnings set.
13730
13731 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13732
13733         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13734         TREE_STRING_POINTER.
13735         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13736
13737 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13738
13739         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13740         in favor of SP if FRAME_POINTER_REQUIRED is false.
13741
13742 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13743
13744         * emit-rtl.c (gen_int_mode): New function.
13745         * rtl.h: Prototype for it.
13746         * combine.c (make_extraction, simplify_comparison), expmed.c
13747         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13748         (convert_modes, store_field), optabs.c (expand_fix),
13749         simplify-rtx.c (neg_const_int, simplify_unary_real),
13750
13751         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13752         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13753
13754 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13755
13756         PR c/5656
13757         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13758         convert_parm_for_inlining.
13759         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13760         Define.
13761         * langhooks-def.h: Likewise.
13762         * objc/objc-lang.c: Likewise.
13763         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13764         function.
13765         * tree-inline.c (initialize_inlined_parameters):
13766         Call convert_parm_for_inlining lang hook if needed.
13767         * c-typeck.c (c_convert_parm_for_inlining): New function.
13768         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13769
13770 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13771
13772         * calls.c (precompute_arguments): Do not assume that temporaries
13773         can be destroyed after expanding the argument.
13774         (expand_call): Likewise.
13775
13776 2002-03-15  Eric Christopher  <echristo@redhat.com>
13777
13778         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13779         Fix register preference on last change.
13780         * config/mips/mips.c (mips_return_in_memory): New function.
13781         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13782         * config/mips/mips-protos.h: Declare.
13783         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13784         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13785
13786 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13787
13788         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13789         a register too.
13790         (anddi3, iorsi3): Likewise.
13791
13792         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13793         use %gprel for symbols that are going to be placed in linkonce
13794         sections.
13795
13796         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13797         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13798         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13799         not needed.  Disregard leaf_function_p().
13800         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13801         mips16 frame pointer.
13802         * config/mips/mips.md (store ra): Only to small SP offsets.
13803         2001-08-22  Graham Stott  <grahams@redhat.com>
13804         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13805         return a REG rtx for the return address register.
13806
13807 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13808
13809         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13810         constant-pool addresses as "mode-dependent".
13811         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13812
13813 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13814
13815         PR target/5740
13816         * expr.c (emit_group_load): Use extract_bit_field if
13817         needed for CONCAT arguments.
13818
13819 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
13820
13821         PR target/4863
13822         * arm.md (tablejump): Make this a define_expand.  For PIC add the
13823         offset to the base of the table.
13824         (thumb_tablejump): Matcher for Thumb tablejump insn.
13825         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13826         as the difference of two labels.
13827         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13828         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13829         tables in the code.
13830         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13831         * arm.c (get_jump_table_size): If the table is not in the text
13832         section, return zero.
13833
13834 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
13835
13836         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13837         of gen_rtx_SUBREG.
13838         (arm_reload_out_hi): Use gen_lowpart instead of
13839         gen_rtx_SUBREG to access QImode components.
13840         * config/arm/arm.md: Disable zero_extend split for QImode
13841         subregs in BIG_ENDIAN mode.
13842         (storehi_bigend): Match use of least significant byte.
13843         (storeinthi): Remove extraneous SUBREG.
13844         Add missing construction of operands[2].
13845         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13846         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13847         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13848
13849 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
13850
13851         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13852         any_operand.
13853
13854 2002-03-17  Richard Henderson  <rth@redhat.com>
13855
13856         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13857         explicitly.
13858
13859 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13860
13861         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13862         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13863
13864 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13865
13866         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13867
13868         * predict.c (estimate_bb_frequencies): Delete unused variables.
13869
13870 2002-03-17  Richard Henderson  <rth@redhat.com>
13871
13872         * config/ia64/ia64.c (ia64_attribute_table): Move before
13873         targetm definition.  Make static.
13874
13875 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13876
13877         * c-common.h (yyparse, c_common_parse_file): New.
13878         * c-lang.c: Include c-common.h.
13879         (LANG_HOOKS_PARSE_FILE): Redefine.
13880         * c-lex.c: Include c-common.h.
13881         (yyparse): Rename c_common_parse_file.  Call yyparse.
13882         * c-parse.in (yyparse): Remove macro.
13883         * c-tree.h (yyparse_1): Remove.
13884         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13885         (LANG_HOOKS_INITIALIZER): Update.
13886         * langhooks.h (struct lang_hoooks): New hook parse_file.
13887         * toplev.c (compile_file): Use parse_file hook.
13888         * tree.h (yyparse): Remove.
13889         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13890
13891 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13892
13893         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13894         float_truncate, not fix.
13895         ("*truncdfsf2_real"): Ditto.
13896         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13897
13898         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13899
13900 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
13901
13902         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13903         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
13904         where appropriate.  Make the second reference to
13905         leaf_function_p a function call, as intended.  Reindented.
13906
13907         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13908         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13909
13910         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13911         add register to non-constant into sp.
13912
13913         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13914         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13915         (mips16_gp_pseudo_rtx): Lose.
13916         (INIT_EXPANDERS): Deleted.
13917         * config/mips/mips.c (mips_init_machine_status): New.
13918         (mips_free_machine_status): New.
13919         (mips_mark_machine_status): New.
13920         (override_options): Set them.
13921         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13922         (struct machine_function): ... new.  Replaced all references.
13923         (mips_add_gc_roots): Don't mark them.
13924         (embedded_pic_fnaddr_reg): New, extracted from...
13925         (embedded_pic_offset): ... here.
13926         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13927         (movsi): Likewise.
13928
13929 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13930
13931         * cppinit.c: Revert -MD removal.
13932
13933 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13934
13935         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13936         soft registers by default for 68HC12.
13937         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13938         when compiling with -fomit-frame-pointer.
13939         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13940         (expand_epilogue): Likewise.
13941         (m68hc11_gen_rotate): Use exg when rotating by 8.
13942
13943 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13944
13945         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13946         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13947         (splits): Remove unused add splits.
13948         ("*addhi3_68hc12"): Tune constraints.
13949         ("addhi_sp"): Try to use X instead of Y in all cases and if the
13950         constant fits in 8-bits and D is dead use abx/aby instructions.
13951         ("*addhi3"): Remove extern declaration of ix_reg.
13952         ("*subsi3"): Optimize and provide new split.
13953         ("subhi3"): Cleanup.
13954         ("*subhi3_sp"): Avoid saving X if we know it is dead.
13955         (arith splits): For 68hc12 save the address register on the stack
13956         and do the arithmetic operation with a pop.
13957
13958 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13959
13960         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13961         allocating QImode in address registers.
13962         ("*movqi_m68hc11"): Likewise.
13963
13964 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
13965
13966         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13967
13968 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13969
13970         * cppinit.c (print_help): Display -MD and -MMD.
13971         Don't display usage string.  Update assertion syntax and
13972         typo.
13973         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13974         (cpp_handle_option): Update.
13975
13976 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
13977
13978         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13979         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13980         and define it so that regardless of target CPU size,
13981         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13982         of "int" rather than "long."
13983
13984 2002-03-15  Richard Henderson  <rth@redhat.com>
13985
13986         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13987         size as a tree.
13988
13989 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13990
13991         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13992         ("tstqi" split): Avoid using memory for tstqi on address register.
13993         (splits): Remove constraints.
13994         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13995         ("cmpdf", "cmpsf"): Remove since not used.
13996         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13997         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13998
13999 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14000
14001         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
14002         ("neghi2"): Tighten constraints.
14003         ("one_cmplsi2"): Optimize and simplify split.
14004         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
14005
14006 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14007
14008         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
14009         and split of AND operation to clear the upper bits.
14010         ("*logicalsi3_zextqi"): Likewise.
14011         ("*logicallhi3_zexthi_ashift8"): Likewise.
14012         ("*logicalsi3_silshr16"): Likewise.
14013         ("logicalsi3_silshl16"): Likewise.
14014         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
14015
14016 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14017
14018         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
14019         (m68hc11_indirect_p): New function.
14020         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
14021         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
14022         TARGET_M6812.
14023         (asm_print_register): Likewise.
14024         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
14025         (m68hc11_indirect_p): Declare.
14026         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
14027         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
14028         (TARGET_SWITCHES): New option -mrelax.
14029         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
14030         destination.
14031         ("iorsi3", "xorsi3"): Likewise.
14032         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
14033         ("*andhi3_mem"): New to handle destination in memory with bclr
14034         and a scratch register.
14035         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
14036         ("*andhi3_const"): New when operand2 is constant.
14037         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
14038         ("*andhi3_gen"): Cleanup of the old "andhi3".
14039         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
14040         ("xorqi3"): Update constraints.
14041
14042 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14043
14044         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
14045         for reg_equiv_memory_loc when the operand is a register that does
14046         not get a hard register (stack location).
14047         (tst_operand): After reload, accept all memory operand.
14048         (symbolic_memory_operand): Fix detection of symbolic references.
14049         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
14050         accept symbols and any constant.
14051
14052 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14053
14054         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
14055         note on the insn that sets the soft frame register.
14056         (must_parenthesize): ix and iy are also reserved names.
14057         (print_operand_address): One more place where parenthesis are required
14058         to avoid confusion with register names.
14059         (m68hc11_gen_movhi): Allow push of stack pointer.
14060         (m68hc11_check_z_replacement): Fix handling of parallel with a
14061         clobber.
14062         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
14063         the replacement register is.
14064         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
14065         and D8_REGS classes.
14066         (MODES_TIEABLE_P): All modes are tieable except QImode.
14067
14068 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14069
14070         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
14071         (___subdi3): Likewise.
14072         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
14073         (__map_data_section): Optimize 68hc11 case.
14074
14075 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14076
14077         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
14078         than a shift to avoid adding a register with itself.
14079         (m68hc11_memory_move_cost): Take into account NO_REGS.
14080         (m68hc11_register_move_cost): Update and use memory move cost
14081         for soft registers.
14082         (m68hc11_address_cost): Make cost of valid offset not 0 so that
14083         it gives more opportunities to cse to optimize.
14084         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
14085         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
14086
14087 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
14088
14089         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
14090         * c-common.def (CLEANUP_STMT): New tree node.
14091         * c-common.h (CLEANUP_DECL): New macro.
14092         (CLEANUP_EXPR): Likewise.
14093         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
14094         * expr.c (expand_expr): Tidy.
14095         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
14096         * tree-inline.c (initialize_inlined_parameters): Clean up
14097         new local variables.
14098
14099 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14100
14101         PR bootstrap/4128
14102         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
14103         before movrXX only, use reg_overlap_mentioned_p.
14104         Only special case NE if just one insn can be generated.
14105
14106 2002-03-15  Jason Merrill  <jason@redhat.com>
14107
14108         * varasm.c (assemble_variable): Call resolve_unique_section before
14109         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
14110         of error_mark_node.
14111
14112 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14113
14114         PR target/5170
14115         * arm.md (split pattern for thumb shiftable immediates): Add comment
14116         explaining non-obvious test.
14117
14118 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14119
14120         PR target/5712
14121         * arm.md (movaddr, movaddr_insn): Delete.
14122
14123 2002-03-15  Jason Merrill  <jason@redhat.com>
14124
14125         * toplev.c (wrapup_global_declarations): Clarify variable handling.
14126         -fkeep-static-consts doesn't apply to comdats.
14127
14128 2002-03-14  Richard Henderson  <rth@redhat.com>
14129
14130         * c-decl.c: Include c-pragma.h.
14131         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14132         (finish_function): Tidy.
14133         * c-pragma.c: Include c-common.h.
14134         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14135         (handle_pragma_weak): Use them.
14136         (init_pragma): Register pending_weaks.
14137         * c-pragma.h (maybe_apply_pragma_weak): Declare.
14138         * print-tree.c (print_node): Print DECL_WEAK.
14139         * varasm.c (mark_weak_decls): Remove.
14140         (remove_from_pending_weak_list): Remove.
14141         (add_weak): Remove.
14142         (asm_emit_uninitialised): Call globalize_decl for weak commons.
14143         (weak_decls): Make a tree_list.
14144         (declare_weak): Cons weak_decls directly.
14145         (globalize_decl): Remove weak_decls elements directly.
14146         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
14147         symbols.  Don't pretend to handle aliases.
14148         (init_varasm_once): Update weak_decls registry.
14149         * Makefile.in: Update dependencies.
14150
14151 2002-03-14  Richard Henderson  <rth@redhat.com>
14152
14153         PR target/5312
14154         * config/ia64/ia64.c: Include tm_p.h last.
14155         (gen_nop_type): Remove duplicate definition.
14156         (cycle_end_fill_slots): Set sched_data for second L slot.
14157         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14158         (nop_cycles_until): Fix typos.
14159
14160 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14161
14162         PR optimization/5891
14163         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14164
14165 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14166
14167         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14168           descriptors correctly.
14169
14170 2002-03-14  Michael Meissner  <meissner@redhat.com>
14171
14172         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14173         100, allowing MAX_UNROLLED_INSNS to be overridden.
14174
14175         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14176         --param.
14177
14178         * unroll.c (params.h): Include.
14179         (MAX_UNROLLED_INSNS): Delete, now in params.h.
14180
14181         * doc/invoke.texi (--param max-unroll-insns): Document.
14182
14183         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14184
14185 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14186
14187         * arm.md: Fix warnings about constraints in peepholes and splits.
14188
14189 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
14190
14191         * cpphash.h (struct lexer_state): Remove line_extension member.
14192         * cpplib.c (dequote_string, do_linemarker): New functions.
14193         (linemarker_dir): New data object.
14194         (DIRECTIVE_TABLE): No longer need to interpret #line in
14195         preprocessed source.  Delete obsolete comment about return
14196         values of handlers.
14197         (end_directive, directive_diagnostics, _cpp_handle_directive):
14198         Don't muck with line_extension.
14199         (directive_diagnostics): No need to issue warnings for
14200         linemarkers here.
14201         (_cpp_handle_directive): Issue warnings for linemarkers here,
14202         when appropriate.  Dispatch linemarkers to do_linemarker, not
14203         do_line.
14204         (do_line): Code to handle linemarkers split out to do_linemarker.
14205         Convert escape sequences in filename argument, both places.
14206
14207         * cppmacro.c (quote_string): Rename cpp_quote_string and
14208         export.  All callers changed.
14209         * cpplib.h (cpp_quote_string): Prototype.
14210         * cppmain.c (print_line): Call cpp_quote_string on to_file
14211         before printing it.
14212
14213         * doc/cpp.texi: Document that escapes are now interpreted in
14214         #line and in linemarkers, and that non-printing characters are
14215         converted to octal escapes when linemarkers are generated.
14216
14217 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14218
14219         * emit-rtl.c (try_split): Use delete_insns.
14220         * recog.c (split_all_insns): Fix terminating condition.
14221
14222 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14223             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14224
14225         PR target/5828
14226         * arm.c (arm_output_epilogue): Fix floating-point register save
14227         adjustment when using a frame pointer.
14228
14229 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
14230
14231         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14232         * config/mips/mips.c (compute_frame_size): Retrofit them here.
14233         (save_restore_insns, mips_expand_epilogue): And here.
14234         (build_mips16_call_stub): And here.
14235         (mips_function_value): Use the new macros to decide whether a single
14236         or complex float can be returned in floating-point registers.  Return
14237         a parallel rtx in the complex case.
14238
14239 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
14240
14241         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14242         call after liveness analysis.
14243
14244         * recog.c (split_insn): Use delete_insn_and_edges.
14245
14246         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14247         instructions to have branch prediction notes.
14248         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14249
14250 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14251
14252         * configure.in: Don't pass -Wno-long-long to a ADA compiler
14253         that doesn't support it.
14254         * configure: Regenerate.
14255
14256 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14257
14258         PR target/5626
14259         * config/sparc/sparc.md (normal_branch, inverted_branch,
14260         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14261         inverted_fp_branch): Adjust calls to output_cbranch.
14262         Set length attribute.
14263         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14264         output_v9branch.  Set length attribute.
14265         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14266         predicates.
14267         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14268         (output_cbranch): Likewise.  Handle far branches.
14269         (output_v9branch): Handle far branches.
14270         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14271         Adjust prototypes.
14272         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14273         noov_compare64_op predicates.
14274
14275 2002-03-13  Jason Merrill  <jason@redhat.com>
14276
14277         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14278         into the function and constify it.
14279         * gthr-dce.h, gthr-solaris.h: Likewise.
14280
14281 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
14282
14283         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14284         * config/rs6000/rs6000.c (rs6000_va_arg): Use
14285         std_expand_builtin_va_arg if not ABI_V4.
14286
14287 2002-03-13  Jason Merrill  <jason@redhat.com>
14288
14289         * varasm.c (globalize_decl): New fn.
14290         (assemble_start_function): Use it.
14291         (asm_emit_uninitialized): Use it.
14292         (assemble_alias): Use it.
14293         (assemble_variable): Use it.
14294
14295 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14296
14297         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14298         2002-03-12 internal visibility change.
14299         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14300         visibility into SYMBOL_REF_FLAG.
14301
14302 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14303
14304         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14305         VOIDmode operand.  Add compile-time optimization for constant results.
14306
14307 2002-03-12  Jason Merrill  <jason@redhat.com>
14308
14309         * c-typeck.c (convert_for_assignment): Don't allow conversions
14310         between pointers and references.  Only allow lvalues to convert to
14311         reference.
14312
14313 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14314
14315         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14316         before prologue, to avoid scheduling problems.
14317
14318 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14319
14320         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14321         (ELIMINABLE_REGS): Add sfp->sp.
14322         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14323
14324 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14325
14326         PR optimization/5892
14327         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14328
14329 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14330
14331         * loop.c (basic_induction_var): Don't call convert_modes if mode
14332         classes are different.
14333
14334 2002-03-12  Richard Henderson  <rth@redhat.com>
14335
14336         PR optimization/5901
14337         * function.c (reposition_prologue_and_epilogue_notes): Position
14338         the markers after/before the last/first insn not deleted.
14339
14340 2002-03-12  Richard Henderson  <rth@redhat.com>
14341
14342         PR optimization/5878
14343         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14344         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14345         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14346
14347         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14348         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14349         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14350
14351         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14352         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14353         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14354         also.  Don't set it if not flag_pic.
14355         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14356         to be INVALID_REGNUM when not used.
14357
14358 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14359
14360         * expmed.c (store_bit_field): Reset alias set for memory.
14361         (extract_bit_field): Same.
14362
14363 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14364
14365         * c-common.c (c_tree_code_type, c_tree_code_length,
14366         c_tree_code_name, add_c_tree_codes): Delete.
14367         * c-common.h (add_c_tree_codes): Delete.
14368         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14369         Define.
14370         * c-objc-common.c (c_objc_common_init): Don't call
14371         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14372         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14373         objc_tree_code_name, add_objc_tree_codes): Delete.
14374         (objc_init): Don't call add_objc_tree_codes.
14375         * objc/objc-lang.c (tree_code_type, tree_code_length,
14376         tree_code_name): Define.
14377         * toplev.c (lang_independent_init): Don't set
14378         tree_code_length[IDENTIFIER_NODE].
14379         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14380         Delete definitions, moved to language front-ends.
14381         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14382         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14383         Const-ify.
14384         (tree_code_length): Change type to unsigned char.
14385
14386 2002-03-12  Richard Henderson  <rth@redhat.com>
14387
14388         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14389         internal visibility change.
14390
14391 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14392
14393         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14394         validize_mem() instead of change_address to avoid clobbering
14395         memory attributes.
14396
14397 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14398
14399         * c-lex.h (position_after_whitespace): Remove.
14400
14401 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14402
14403         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14404         (lex_string): Use unsigned char pointers.
14405
14406 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14407
14408         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14409         is not a valid memory_operand.
14410
14411 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14412
14413         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14414         * config/xtensa/lib1funcs.asm: Fix copyright to include
14415         special case for libgcc files.
14416         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14417         (__divsi3): Likewise.
14418         (__umodsi3): Likewise.
14419         (__modsi3): Likewise.
14420         * config/xtensa/lib2funcs.S: Fix copyright to include
14421         special case for libgcc files.
14422
14423 2002-03-12  Tom Rix  <trix@redhat.com>
14424
14425         * collect2.c (resolve_lib_name): Move outside of
14426         OBJECT_FORMAT_COFF ifdef.
14427         (ignore_library): Same.
14428
14429 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14430
14431         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14432
14433 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14434
14435         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14436         to function_section before writing out the constant pool.
14437
14438 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14439
14440         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14441         zero_constant.
14442         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14443
14444 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14445
14446         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14447         (adddi3): Likewise.
14448         (movdf): Likewise.
14449         (movdi): Likewise.
14450         (cmpsi splitter): Likewise.
14451         (modsi3): Fail if <= 0.
14452         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14453         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14454         (reg_or_sub_cint64_operand): Likewise.
14455         (num_insns_constant_wide): Optimize sign extension.
14456         (rs6000_legitimize_address): Likewise.
14457
14458 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14459
14460         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14461         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14462
14463 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14464
14465         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14466         address calculation.
14467
14468 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14469
14470         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14471         scratch register to DImode / TImode.
14472         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14473         register used does not overlap the target.
14474
14475 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14476
14477         * Makefile.in (debug.o): Depend on debug.h.
14478         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14479         * debug.c (do_nothing_debug_hooks): Likewise.
14480         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14481         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14482         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14483         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14484         * dwarfout.c (dwarf_debug_hooks): Likewise.
14485         * integrate.c (output_inline_function): Likewise.
14486         * objc/objc-act.c (synth_module_prologue): Likewise.
14487         * sdbout.c (sdb_debug_hooks): Likewise.
14488         * toplev.c (debug_hooks): Likewise.
14489         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14490
14491 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14492
14493         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14494         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14495         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14496         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14497         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14498         * defaults.h (POINTER_SIZE): Define.
14499         * doc/tm.texi (POINTER_SIZE): Document default.
14500
14501 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14502
14503         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14504
14505 2002-03-11  Richard Henderson  <rth@redhat.com>
14506
14507         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14508         if rebuild_label_notes_after_reload.
14509
14510 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14511
14512         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14513         emit pic register load if "internal" visibility.
14514         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14515         (cris_expand_builtin_va_arg): Do all computations on trees.
14516
14517 2002-03-11  Richard Henderson  <rth@redhat.com>
14518
14519         * rtlanal.c: Include recog.h.
14520         (keep_with_call_p): Fix thinko.
14521         * Makefile.in (rtlanal.o): Update dependencies.
14522
14523 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14524
14525         * genflags.c (gen_insn): Use IS_VSPACE.
14526         * genoutput.c (output_insn_data): Likewise.
14527         (process_template): Likewise.
14528
14529 2002-03-11  Richard Henderson  <rth@redhat.com>
14530
14531         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14532
14533 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14534
14535         * Makefile.in: Update.
14536         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14537         Update documentation.
14538         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14539         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14540
14541 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14542
14543         * Makefile.in: Give texi2pod its input file as a command line
14544         argument, not on stdin.
14545
14546 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14547             Daniel Berlin  <dan@dberlin.org>
14548
14549         C++ alias analysis improvement.
14550         * alias.c (record_component_aliases): Record aliases for base
14551         classes too.
14552
14553 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14554
14555         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14556
14557 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14558
14559         * toplev.c (vms_fopen): Remove, not needed.
14560
14561         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14562
14563         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14564
14565         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14566         for FP, already done later.
14567
14568         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14569         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14570
14571 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14572
14573         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14574         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14575         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14576         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14577         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14578         (ediv, emul, eldexp, esqrt): Likewise.
14579         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14580         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14581         (saturate): New function.
14582         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14583         (make_nan): Use a saturation value instead of a NaN if
14584         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14585         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14586         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14587         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14588         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14589         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14590         !ROUND_TOWARDS_ZERO.
14591         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14592         (ROUND_TOWARDS_ZERO): Document.
14593
14594 2002-03-11  Andreas Jaeger  <aj@suse.de>
14595
14596         * cfg.c (dump_flow_info): Remove unused variable.
14597
14598 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14599
14600         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14601         computations on trees.
14602
14603 2002-03-10  Richard Henderson  <rth@redhat.com>
14604
14605         PR 5693:
14606         * reload.c (copy_replacements_1): New.
14607         (copy_replacements): Use it to recurse through the rtx.
14608
14609 2002-03-10  Richard Henderson  <rth@redhat.com>
14610
14611         * loop.c (strength_reduce): Compute number of iterations as
14612         unsigned HOST_WIDE_INT.
14613
14614 2002-03-10  Richard Henderson  <rth@redhat.com>
14615
14616         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14617         to move away from the end of the block.
14618
14619 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14620
14621         PR preprocessor/5899
14622         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14623
14624 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14625
14626         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14627
14628         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14629
14630 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14631
14632         * config/mmix/mmix.c: Improve comments.
14633         (mmix_target_asm_function_prologue): Drop variable
14634         empty_stack_frame.  Don't allocate unused slot above fp.
14635         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14636         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14637         brace in first column.
14638         (enum reg_class): Ditto.
14639         (FIRST_PARM_OFFSET): Now 0.
14640         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14641
14642 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14643
14644         * combine.c (make_extraction): Fix error in last change.
14645
14646 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14647
14648         * c4x.c (c4x_fp_reglist): Const-ify.
14649         * cris.c (cris_print_operand): Likewise.
14650         * i386.c (ix86_va_arg): Likewise.
14651         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14652         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14653         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14654         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14655         * mcore.h (regno_reg_class): Likewise.
14656         * mips.c (gen_int_relational): Likewise.
14657         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14658         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14659         * pdp11.c (move_costs): Likewise.
14660         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14661         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14662         Likewise.
14663         * s390.h (regclass_map): Likewise.
14664         * sh.c (shift_amounts): Likewise.
14665         * sh.md (rotlsi3): Likewise.
14666
14667 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14668
14669         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14670         (ne0+5): Use new clobber to generate proper shift pattern.
14671         Patch by Michael Matz <matz@kde.org>.
14672
14673 2002-03-09  Andreas Schwab  <schwab@suse.de>
14674
14675         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14676
14677 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14678
14679         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14680
14681 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14682
14683         PR middle-end/5877
14684         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14685         even for non-representable constants.
14686
14687 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14688
14689         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14690         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14691         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14692         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14693         (pop_function_context): Compute MAY_SHARE parameter for
14694         fixup_var_refs.
14695         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14696         (gen_mem_addressof): Call fixup_var_refs with new parm.
14697
14698         * combine.c (make_extraction): Don't make extension of CONST_INT.
14699
14700 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14701
14702         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14703         in o32 and o64 ABIs.
14704         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14705         but getting fixed-size structs passed in registers regardless of
14706         padding in o32 and o64 ABIs.
14707
14708         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14709         offset before loading address of argument passed by transparent
14710         reference.
14711
14712 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14713
14714         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14715
14716 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14717
14718         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14719         marker such that registers after it are saved.
14720
14721 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14722
14723         * sparc.c (arith_4096_operand): Fix error in last change.
14724
14725 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14726
14727         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14728         defaults for MEABI.
14729
14730 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14731
14732         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14733         vectors.
14734
14735 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14736
14737         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14738
14739 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14740
14741         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14742         removed; fix return value.
14743         * combine.c (combine_instructions): Dirtify blocks where we failed to
14744         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14745         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14746
14747 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14748
14749         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14750
14751 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14752
14753         * recog.c (peephole2_optimize): Re-distribute EH edges.
14754
14755 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14756
14757         * expr.c (expand_expr): Use unsave lang hook.
14758         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14759         (LANG_HOOKS_INITIALIZER): Update.
14760         * langhooks.h (struct lang_hooks): New hook unsave.
14761         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14762         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14763         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14764         (unsave_expr_now): Remove.
14765         * tree.h (unsave_expr_now, lang_unsave,
14766         lang_unsave_expr_now): Remove.
14767         (lhd_unsave): New.
14768
14769 2002-03-08  Andreas Jaeger  <aj@suse.de>
14770
14771         * flow.c (propagate_block_delete_insn): Remove unused variable.
14772
14773 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14774
14775         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14776         insn length for memory load/store.
14777
14778 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14779
14780         * doc/install.texi (--with-libiconv-prefix): Document.
14781
14782 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14783
14784         * doc/sourcebuild.texi: Fix typo.
14785
14786 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14787
14788         PR c/3711
14789         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14790         trees.
14791
14792 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14793
14794         * rtl.c (copy_most_rtx): Move from here ...
14795         * emit-rtl.c (copy_most_rtx): ... to here.
14796
14797 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14798
14799         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14800         SUBTARGET_CPP_SIZE_SPEC.
14801         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14802
14803         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14804
14805 2002-03-07  Matt Hiller  <hiller@redhat.com>
14806
14807         * gensupport.c (first_dir_md_include): Renamed from include;
14808         change all references.
14809         (last_dir_md_include): Renamed from last_include; change all
14810         references.
14811         (init_md_reader): Unconditionally initialize base_dir whether or
14812         not filename is a relative path.
14813
14814 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14815
14816         * config/fp-bit.c (_unord_f2): Compile it in even if
14817         US_SOFTWARE_GOFAST is enabled.
14818
14819         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14820         NULL_RTX.  Set all HFmode operations as NULL_RTX.
14821         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14822         NULL_RTX, try reversing the comparison and the operands.
14823
14824 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14825
14826         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14827         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14828         and MATCH_OP_DUP.
14829
14830 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
14831
14832         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14833
14834 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14835
14836         * basic-block.h (fixup_abnormal_edges): Declare.
14837         * reload1.c (fixup_abnormal_edges): New function.
14838         * reg-stack.c (convert_regs): Use it.
14839
14840         * gcse.c (insert_insn_end_bb): Handle trapping insns.
14841
14842         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14843
14844 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
14845
14846         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14847         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14848         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14849         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14850         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14851         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14852         unless x and y could be infinite.
14853         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14854         Check that the common type of both arguments is a real, even for
14855         targets without unordered comparisons.  Allow an integer argument
14856         to be compared against a real.
14857         (expand_tree_builtin): Use expand_unordered_cmp.
14858         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14859         * cse.c (fold_rtx): Likewise.  Fix indentation.
14860         * fold-const.c (fold_real_zero_addition_p): New.
14861         (fold): Use it, and the new HONOR_... macros.
14862         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14863         * jump.c (reversed_comparison_code_parts): After searching for
14864         the true comparison mode, use HONOR_NANS to decide whether it
14865         can be safely reversed.
14866         (reverse_condition_maybe_unordered): Remove IEEE check.
14867         * simplify-rtx.c (simplify_binary_operation): Use the new macros
14868         to decide which simplifications are valid.  Allow the following
14869         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14870         and (a - -b) to (a + b).
14871         (simplify_relational_operation): Use HONOR_NANS.
14872         * doc/tm.texi: Document the MODE_HAS_... macros.
14873
14874 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
14875
14876         * combine.c (simplify_comparison): If simplifying a logical shift
14877         right and compare with constant, force the comparison to unsigned.
14878
14879 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
14880
14881         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14882
14883         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14884         -mabi=no-altivec
14885         (alt_reg_names): Remove % for vrsave.
14886
14887 2002-03-06  Richard Henderson  <rth@redhat.com>
14888
14889         PR optimization/5844
14890         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
14891         if used indicates we've already emitted one copy of an operand.
14892         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14893         (gen_split): Supply a non-null used.
14894
14895 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14896
14897         * reload1.c (reload): Unshare all rtl after reload is done.
14898
14899         * simplify-rtx.c (simplify_plus_minus): Do not abort,
14900         but simply fail if the expression is too complex to simplify.
14901         (simplify_gen_binary): Handle simplify_plus_minus failures.
14902
14903 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14904
14905         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14906         consistently call delete_trivially_dead_insns after CSE and GCSE;
14907         fix DFI_life dumping; do jump threading after liveness; do crossjumping
14908         after liveness2; update comment in last crossjumping.
14909         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14910
14911 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
14912
14913         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14914         after completing fast dead code elimination.
14915
14916         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14917         COMPARE operator.
14918
14919 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
14920
14921         * version.c:  Fix misplaced leading blanks on first line.
14922
14923 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
14924
14925         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14926
14927 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
14928
14929         * cfgcleanup.c (mentions_nonequal_regs): New function.
14930         (thread_jump): Use it.
14931         * toplev.c (rest_of_compilation): Run jump threading after
14932         liveness.
14933
14934 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
14935
14936         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14937         patch.
14938
14939 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14940
14941         * predict.c (estimate_bb_frequencies): Do not reload the
14942         frequencies from notes.
14943
14944 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
14945
14946         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14947         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14948
14949         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14950         delete_noop_moves): Return indeger.
14951         * flow.c (ndead): New variable.
14952         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14953         BB argument; update callers.
14954         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14955         (life_analysis): Do not call purge_all_dead_edges.
14956         (update_life_info): Return number of deleted insns; print statistics.
14957         (update_life_info_in_dirty_blocks): likewise.
14958         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14959         return number of insns deleted.
14960
14961         * cse.c: Include timevar.h
14962         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14963         iterate until stabilizes; print statistics; return number of killed
14964         insns.
14965         * Makefile.in: (cse.o): Add timevar.h dependency
14966         * rtl.h (delete_trivially_dead_insns): New.
14967         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14968         * toplev.c (rest_of_compilation): Update callers.
14969
14970         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14971         (try_optimize_cfg): Do not update liveness.
14972         (cleanup-cfg): Loop until try_optimize_cfg and dead code
14973         removal stabilizes; use delete_trivially_dead_insns.
14974
14975         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14976
14977 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
14978
14979         * cppmain.c (setup_callbacks): Disable #pragma and #ident
14980         callbacks when processing assembly language.
14981
14982 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14983
14984         * pa.h (ASM_FILE_END): Define.
14985         * som.h (ASM_FILE_END): Delete.
14986
14987         * pa.c (function_arg): Don't pass floats in general registers in
14988         indirect calls if TARGET_ELF32.
14989
14990 2002-03-05  Richard Henderson  <rth@redhat.com>
14991
14992         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14993
14994 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
14995
14996         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14997
14998 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14999
15000         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
15001         -r command line.  Don't hide any symbols if not building
15002         shared libgcc.
15003
15004 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
15005
15006         * cfg.c (dump_flow_info): Warn about profile mismatches.
15007         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
15008         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
15009
15010 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
15011
15012         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
15013         wide volatile memory by parts.
15014
15015 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
15016
15017         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
15018         is NULL.
15019
15020 2002-03-05  Richard Henderson  <rth@redhat.com>
15021
15022         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
15023
15024 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
15025
15026         * toplev.c (documented_lang_options): Document more
15027         language-specific options.
15028         * doc/invoke.texi (Warning Options): Correct documentation for
15029         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
15030         * c-decl.c (c_decode_option): Use a table to handle warning options.
15031
15032 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
15033
15034         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
15035         parameter to mmix_encode_section_info.
15036         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
15037         relocatably.  Always produce ELF, not mmo if linking relocatably.
15038         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
15039         first is non-zero, don't add symbol prefix.
15040         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
15041         prototype accordingly.
15042
15043 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
15044
15045         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
15046
15047 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
15048
15049         * configure.in: Increase required makeinfo version to 4.1.
15050         * configure: Regenerate.
15051
15052 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
15053
15054         * .cvsignore: Remove *.info* and genrtl*; these files are generated
15055         elsewhere now.
15056
15057 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15058
15059         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
15060         * doc/invoke.texi: Fix @math uses.
15061
15062 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15063
15064         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
15065         removal
15066
15067 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
15068
15069         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
15070         (powerpc-*-eabisimaltivec*): Same.
15071
15072         * config/rs6000/t-ppcendian: New.
15073
15074 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15075
15076         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
15077         nonimmediate_src_operand and nonimmediate_lsrc_operand to
15078         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
15079
15080 2002-03-03  Richard Henderson  <rth@redhat.com>
15081
15082         * toplev.c (rest_of_decl_compilation): Revert last two changes.
15083
15084 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
15085
15086         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
15087         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
15088         tree.c, config/m68k/m68k.c:
15089         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
15090         REAL_ARITHMETIC blocks unconditional.  Delete some further
15091         #ifdef blocks predicated on REAL_ARITHMETIC.
15092         * flags.h, toplev.c: Delete remaining references to
15093         flag_pretend_float.
15094
15095         * doc/invoke.texi: Remove documentation of -fpretend-float.
15096         * doc/tm.texi: Describe the various REAL_* macros as provided by
15097         real.h, not by the target configuration files.
15098
15099         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
15100         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
15101         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15102         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
15103         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
15104         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
15105         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
15106         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
15107         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15108         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
15109         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15110         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15111         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
15112         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
15113         config/xtensa/xtensa.h:
15114         Do not define, undefine, or mention in comments any of
15115         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15116         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15117         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15118         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15119         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15120         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15121         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15122         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15123         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15124
15125 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15126
15127         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15128         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15129         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15130         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15131         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15132         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15133         Delete.
15134         * defaults.h (BITS_PER_WORD): Define.
15135         * doc/tm.texi (BITS_PER_WORD): Document default value.
15136
15137         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15138         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15139         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15140
15141 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15142
15143         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15144         lieu of explicit sizeof/sizeof.
15145         * i386.c (override_options, ix86_init_mmx_sse_builtins,
15146         ix86_expand_builtin): Likewise.
15147         * mips.c (mips_add_gc_roots): Likewise.
15148         * mmix.c (mmix_output_condition): Likewise.
15149         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15150         altivec_init_builtins): Likewise.
15151         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15152         * cppexp.c (Nsuff, parse_number): Likewise.
15153         * cppinit.c (builtin_array_end): Likewise.
15154         * gcc.c (n_default_compilers, process_command): Likewise.
15155         * genpreds.c (output_predicate_decls): Likewise.
15156         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15157         * lcm.c (N_ENTITIES): Likewise.
15158         * stor-layout.c (set_sizetype): Likewise.
15159
15160 2002-03-03  Richard Henderson  <rth@redhat.com>
15161
15162         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15163         for types or labels.
15164
15165 2002-03-03  Richard Henderson  <rth@redhat.com>
15166
15167         * c-decl.c (start_decl): Initialized variables are not common.
15168
15169 2002-03-02  Per Bothner  <per@bothner.com>
15170
15171         * gcc.c (option_map):  Suport new --bootclasspath option.
15172         --CLASSPATH is now just an alias for --classpath.
15173
15174 2002-03-02  Richard Henderson  <rth@redhat.com>
15175
15176         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15177         load if "internal" visibility.
15178         * doc/extend.texi: Document visibility meanings.
15179
15180 2002-03-02  Richard Henderson  <rth@redhat.com>
15181
15182         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15183         to functions as well.
15184
15185 2002-03-02  Richard Henderson  <rth@redhat.com>
15186
15187         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15188         (handle_visibility_attribute): Don't call assemble_visibility.
15189         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15190         without asmspec.  Invoke assemble_alias when needed.
15191         * varasm.c (maybe_assemble_visibility): New.
15192         (assemble_start_function, assemble_variable, assemble_alias): Use it.
15193
15194 2002-03-02  Richard Henderson  <rth@redhat.com>
15195
15196         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15197         invoke ENCODE_SECTION_INFO with first call flag.
15198
15199         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15200         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15201         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15202         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15203         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15204         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15205         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15206         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15207         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15208         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15209         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15210         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15211         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15212         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15213         config/mcore/mcore-protos.h, config/mcore/mcore.c,
15214         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15215         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15216         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15217         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15218         config/sh/sh.h, config/sparc/sparc.h,
15219         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15220         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15221         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15222         FIRST argument.  As needed, examine it and do nothing.
15223
15224         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15225         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15226         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15227
15228         * config/arm/t-pe (pe.o): Add dependencies.
15229
15230 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15231
15232         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15233         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15234         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15235         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15236         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15237         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15238         * defaults.h (BITS_PER_UNIT): Define.
15239         * doc/tm.texi (BITS_PER_UNIT): Document default value.
15240
15241 2002-03-02  Kazu Hirata  <kazu@hxi.com>
15242
15243         * config/h8300/h8300-protos.h: Add a prototype for
15244         compute_a_shift_length.
15245         * config/h8300/h8300.c (h8300_asm_insn_count): New.
15246         (compute_a_shift_length): Likewise.
15247         (h8300_adjust_insn_length): Do not adjust insn length of shift
15248         insns.
15249         * config/h8300/h8300.md (anonymous shift patterns): Use
15250         compute_a_shift_length.
15251
15252 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15253
15254         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15255         trunc_int_for_mode.
15256
15257         * emit-rtl.c (offset_address): Call update_temp_slot_address.
15258
15259 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15260
15261         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15262         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15263         * flags.h (flag_zero_initialized_in_bss): Declare.
15264         * toplev.c (flag_zero_initialized_in_bss): New flag.
15265         (lang_independent_options): Add flag_zero_initialized_in_bss.
15266         * tree.c (initializer_zerop): New function.
15267         * tree.h (initializer_zerop): Declare.
15268         * varasm.c (assemble_variable): If we can emit bss, put zero
15269         initializers in the bss section.
15270
15271 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
15272
15273         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15274         like more than one symbol per .weak directive.
15275
15276 2002-03-01  Richard Henderson  <rth@redhat.com>
15277
15278         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15279         adjust argument_pointer by pretend_args_size.
15280         (ia64_va_start): Adjust va_start address by -pretend_args_size.
15281
15282 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15283
15284         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15285
15286 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
15287
15288         * toplev.c (rest_of_compilation): Delete dead jumptables before
15289         loop.
15290         * flow.c (delete_dead_jumptables): Make global.
15291         * rtl.h (delete_dead_jumptables): Declare.
15292
15293 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15294
15295         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15296         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15297         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15298
15299 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15300
15301         * config/h8300/h8300-protos.h: Fix formatting.
15302         * config/h8300/h8300.c: Likewise.
15303         * config/h8300/h8300.h: Likewise.
15304
15305 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15306
15307         * config/h8300/h8300.c (print_operand): Support 16-bit
15308         constant addresses.
15309         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15310
15311 2002-02-28  Richard Henderson  <rth@redhat.com>
15312
15313         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15314         pun complex values as integers; use gen_lowpart instead of
15315         gen_rtx_SUBREG.
15316         (extract_bit_field): Likewise.
15317
15318 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15319             David Edelsohn  <edelsohn@gnu.org>
15320
15321         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15322         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15323         (SUPPORTS_WEAK): Likewise.
15324         * output.h (add_weak): Add tree param.
15325         * varasm.c (add_weak): Likewise.  Save decl.
15326         (struct weak_syms): Add decl field.
15327         (mark_weak_decls): New function.
15328         (init_varasm_once): ggc_add_root mark_weak_decls.
15329         (assemble_start_function): Use ASM_WEAKEN_DECL.
15330         (assemble_variable): Likewise.
15331         (assemble_alias): Likewise.
15332         (declare_weak): Pass decl to add_weak.
15333         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15334         (remove_from_pending_weak_list): Declare and define for
15335         ASM_WEAKEN_DECL.
15336         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15337         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15338         * defaults.h (SUPPORTS_WEAK): Likewise.
15339         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15340         .weak for code sym.  Do emit .size for descriptor sym.
15341         (ASM_DECLARE_FUNCTION_SIZE): Define.
15342         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15343         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15344         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15345         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15346         .weak for code sym.
15347         (HANDLE_PRAGMA_WEAK): Remove.
15348         (ASM_WEAKEN_LABEL): Remove.
15349         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15350
15351 2002-03-01  Jason Merrill  <jason@redhat.com>
15352
15353         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15354         (TARGET_EXPR_CLEANUP): New macro.
15355
15356 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15357
15358         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15359         to take ptr_extend into account as third type of extension.
15360         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15361         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15362         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15363         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15364         * calls.c (precompute_arguments): Use new macro.
15365         (expand_call): Ditto.
15366         * combine.c (nonzero_bits): Ditto.
15367         (record_promoted_value): Ditto.
15368         * expr.c (store_expr): Ditto.
15369         (expand_expr): Ditto.
15370         * function.c (assign_parms): Ditto.
15371
15372 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15373
15374         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15375         override -shared and -shared-libgcc.
15376
15377 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15378
15379         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15380         of "ultrasparc".
15381         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15382         to be broken.
15383
15384 2002-02-28  Richard Henderson  <rth@redhat.com>
15385
15386         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15387         4 cycle latency from MM producers.
15388         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15389
15390 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15391
15392         * mklibgcc.in: Don't use GNU make extension.
15393
15394 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15395
15396         * c-parse.in (STATIC): New terminal.
15397         (scspec): New non-terminal.  Update productions accordingly.
15398         (program): Remove bogus ifc / end ifc.
15399         (array_declarator): Simplify production using STATIC.
15400
15401 2002-02-28  Jim Meyering  <meyering@lucent.com>
15402
15403         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15404         \a still means TARGET_BELL.
15405
15406 2002-02-28  Richard Henderson  <rth@redhat.com>
15407
15408         * haifa-sched.c (sched_emit_insn): New.
15409         (schedule_block): Use last_scheduled_insn to track last insn.
15410         * sched-int.h (sched_emit_insn): Prototype.
15411         * config/ia64/ia64.c (last_issued): Remove.
15412         (ia64_variable_issue): Don't set it.
15413         (nop_cycles_until): Use sched_emit_insn.
15414
15415 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15416
15417         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15418         extended constants.
15419
15420 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15421
15422         * config/h8300/h8300.c: Fix formatting.
15423         * config/h8300/h8300.h: Likewise.
15424
15425 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15426
15427         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15428         which may overwrite the high byte of the frame pointer.
15429
15430 2002-02-28  Bo Thorsen  <bo@suse.de>
15431
15432         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15433         (STARTFILE_SPEC): Add 64 bit files.
15434         (ENDFILE_SPEC): Likewise.
15435
15436 2002-02-28  Jason Merrill  <jason@redhat.com>
15437
15438         * c-decl.c (finish_function): Only warn about missing return
15439         statement with -Wreturn-type.
15440
15441 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15442
15443         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15444
15445         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15446         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15447
15448 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15449
15450         * basic-block.h (BB_REACHABLE): Renumber.
15451         (BB_DIRTY, BB_NEW): New flags.
15452         (clear_bb_flags): Declare.
15453         (update_life_info_in_dirty_blocks): Declare.
15454         * cfg.c (clear_bb_flags): New function.
15455         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15456         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15457         reorder_insns, emit_insn_after): Mark block as dirty.
15458         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15459         (update_life_info_in_dirty_blocks): New function.
15460         * recog.c (apply_change_group): Dirtify block.
15461
15462         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15463         cfg consistent.
15464         * gcse.c (delete_null_pointer_checks): Likewise.
15465
15466         * toplev.c (dump_file_index): Move cse2 after bp,
15467         add DFI_null
15468         (dump_file_info): Similary.
15469         (rest_of_compilation): Avoid most of CFG rebuilds;
15470         do first if converision after null pointer checks, do cse2
15471         after branch prediction; avoid full liveness rebuild after
15472         initializing subregs.
15473         * invoke.texi (-d options): Document -du, renumber.
15474
15475         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15476         (notice_new_block): Do not set BB_UPDATE_LIFE.
15477         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15478          merge_blocks_move_successor_nojumps, merge_blocks,
15479          try_crossjump_to_edge): Likewise.
15480         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15481         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15482         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15483         (merge_of_block): Do not use life_data_ok.
15484         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15485         (if_convert): Use BB_DIRTY mechanizm to update life.
15486         * lcm.c (optimize_mode_switching): Update
15487         update_life_info_in_dirty_blocks
15488
15489 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15490
15491         * Makefile.in (integrate.o): Update.
15492         * c-decl.c (copy_lang_decl): Rename.
15493         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15494         * integrate.c: Include langhooks.h.
15495         (copy_decl_for_inlining): Update to use langhook.
15496         * langhooks-def.h (lhd_do_nothing_t,
15497         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15498         (LANG_HOOKS_INITIALIZER): Update.
15499         * langhooks.c (lhd_do_nothing_t): New.
15500         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15501         * tree.h (copy_lang_decl): Remove.
15502 objc:
15503         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15504
15505 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15506
15507         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15508         POST_DEC, and POST_MODIFY.
15509
15510 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15511
15512         * c-typeck.c (digest_init): Remove unused parameter; all
15513         callers changed.
15514
15515 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15516
15517         * expmed.c (expand_shift): Correctly test for low part of a
15518         subreg.
15519
15520 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15521
15522         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15523         insn UIDs with insn addresses.
15524
15525 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15526
15527         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15528         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15529         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15530         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15531         gcc.c, toplev.c: Delete code implementing -traditional mode.
15532
15533         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15534         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15535         Document removal of -traditional mode for compilation, and
15536         remove documentation only relevant to that mode.
15537
15538         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15539         config/convex/convex.h, config/d30v/d30v.h,
15540         config/i386/dgux.h, config/i386/osf1elf.h,
15541         config/i386/osfelf.h, config/i386/osfrose.h,
15542         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15543         config/m68k/hp310.h, config/m88k/dgux.h,
15544         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15545         config/m88k/m88k.h, config/m88k/openbsd.h,
15546         config/mips/abi64.h, config/mips/osfrose.h,
15547         config/mips/svr4-5.h, config/mips/svr4-t.h,
15548         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15549         config/stormy16/stormy16.h: Remove all references to
15550         -traditional from target specs.  Delete all mention of the
15551         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15552         delete a couple of commented-out definitions of
15553         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15554         to -traditional.
15555
15556         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15557         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15558
15559 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15560
15561         * mklibgcc.in: Don't use \n in a line subject to
15562         interpretation by echo.
15563
15564 2002-02-27  Graham Stott  <grahams@redhat.com>
15565
15566         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15567         Constify NAME.
15568
15569         * loop.c (prescan_loop): Handle PARALLEL.
15570
15571         * unroll.c (loop_iterations): Return 0 if the add_val for
15572         a BIV is REG.
15573
15574         * final.c (output_operand_lossage): Constify PFX_STR.
15575
15576         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15577
15578 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15579
15580         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15581         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15582
15583 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15584
15585         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15586
15587 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15588
15589         * cpplex.c (_cpp_lex_token): Handle directives in macro
15590         arguments.
15591         * cpplib.c (_cpp_handle_directive): Save and restore state
15592         if parsing macro args when entering a directive.
15593         * cppmacro.c (collect_args): No need to handle directives
15594         in macro arguments.
15595         (enter_macro_context, replace_args): Use the original macro
15596         definition in case it was redefined whilst collecting arguments.
15597 doc:
15598         * cpp.texi: Update.
15599
15600 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15601
15602         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15603         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15604         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15605         method on AIX.
15606         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15607         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15608         (load_toc_v4_PIC_2): Same.
15609
15610 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15611
15612         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15613
15614 2002-02-26  Richard Henderson  <rth@redhat.com>
15615
15616         * config/alpha/alpha.md (ashldi_se): Re-enable.
15617
15618 2002-02-26  Richard Henderson  <rth@redhat.com>
15619
15620         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15621         MODULE_LOCAL_P; improve commentary.
15622
15623 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15624
15625         * doc/cpp.texi: Clarify documentation of relationship between
15626         #line and #include.
15627
15628 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15629
15630         * config/h8300/h8300-protos.h: Update the prototype for
15631         compute_logical_op_length.  Add the prototype for
15632         compute_logical_op_cc.
15633         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15634         code from operands.
15635         (compute_logical_op_cc): New.
15636         * config/h8300/h8300.md: Combine all the logical op patterns
15637         in HImode and SImode.  Use compute_logical_op_cc.
15638
15639 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15640
15641         * config/i386/i386.c (print_operand): Don't append ATT-style
15642         length suffixs to x87 opcodes when in Intel mode.
15643
15644 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15645
15646         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15647         (init_emit_once): Update calls.
15648         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15649         (init_syntax_once): Prototype.
15650
15651 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15652
15653         * pa-linux.h (LIB_SPEC): Update definition.
15654         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15655
15656 2002-02-26  Richard Henderson  <rth@redhat.com>
15657
15658         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15659         if we emitted a stop bit.
15660
15661 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15662
15663         * configure.in (libgcc_visibility): Substitute.
15664         * configure: Rebuilt.
15665         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15666         defined symbols .hidden.
15667
15668 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15669
15670         * attribs.c (c_common_attribute_table): Add visibility.
15671         (handle_visibility_attribute): New function.
15672         * varasm.c (assemble_visibility): New function.
15673         * output.h (assemble_visibility): Add prototype.
15674         * tree.h (MODULE_LOCAL_P): Define.
15675         * crtstuff.c (__dso_handle): Use visibility attribute.
15676         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15677         for MODULE_LOCAL_P symbols too.
15678         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15679         MODULE_LOCAL_P symbols the same way as local symbols.
15680         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15681         into .sdata/.sbss by the user.
15682         * doc/extend.texi (Function Attributes): Document visibility
15683         attribute.
15684
15685 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15686
15687         PR debug/5770
15688         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15689         STRING_CST initializer spanning the whole variable without
15690         embedded zeros.
15691         If expand_expr returned MEM, don't use it.
15692
15693 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15694
15695         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15696         generate a die for the lexical block.
15697
15698 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15699
15700         * config/h8300/h8300-protos.h: Add a prototype for
15701         compute_logical_op_length.
15702         * config/h8300/h8300.c (compute_logical_op_length): New.
15703         * config/h8300/h8300.md (anonymous logical patterns): Use
15704         compute_logical_op_length for length.
15705
15706 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15707
15708         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15709         for vectors.
15710         (gen_type_die): Same.
15711
15712         * attribs.c (handle_vector_size_attribute): Set debug information.
15713
15714 2002-02-26  Daniel Egger  <degger@fhm.edu>
15715
15716         * config/rs6000/rs6000.md: Swap define_insn attributes to
15717         fix incorrect generation of merge high instructions instead
15718         of merge low.
15719
15720 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15721
15722         * c-typeck.c (really_start_incremental_init): Use
15723         bitsize_zero_node for vectors.
15724
15725 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15726
15727         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15728         ("*set_vrsave_internal"): Same.
15729
15730 2002-02-25  Richard Henderson  <rth@redhat.com>
15731
15732         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15733         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15734
15735 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15736
15737         PR target/5755
15738         * config/i386/i386.c (ix86_return_pops_args): Only pop
15739         fake structure return argument if it was passed on the stack.
15740
15741 2002-02-25  Jason Merrill  <jason@redhat.com>
15742
15743         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15744         RESULT_DECL.
15745
15746 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15747
15748         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15749         link with shared_name only.
15750         * doc/invoke.texi (Link Options): Document new behavior.
15751
15752 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15753
15754         * c-typeck.c (push_init_level): Handle vectors.
15755
15756 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15757
15758         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15759         operands of SPARC_SETHI_P.
15760         (input_operand): Likewise.
15761         (sparc_emit_set_const32): Likewise.
15762         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15763         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15764         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15765         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15766         (movdi_insn_sp64_vis): Likewise.
15767         (movdi split, movdf split): Use SETHI32.
15768         * doc/md.texi: Document SPARC constraints L, M and N.
15769
15770 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15771
15772         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15773         ("*set_vrsave_internal"): use mfspr for Darwin.
15774
15775         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15776         gen_get_vrsave_internal.
15777
15778 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15779
15780         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15781
15782 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15783
15784         * cpplex.c (cpp_interpret_charconst): Get signedness or
15785         otherwise of wide character constants correct.
15786         * cppexp.c (lex): Get signedness of wide charconsts correct.
15787
15788 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15789
15790         * optabs.c (widen_operand): Only call convert_modes for
15791         promoted SUBREG if signedness matches.
15792         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15793
15794 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15795
15796         * cpplib.c (glue_header_name): Use local buffer to build up
15797         header name.
15798
15799 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15800
15801         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15802
15803 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15804
15805         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15806         H8/300[HS] separately.
15807         * config/h8300/h8300.md: Remove the early clobber constraint
15808         from bit field patterns.
15809
15810 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15811
15812         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15813         register_operand.
15814         (mulhisi3): Likewise.
15815         (umulqisi3): Likewise.
15816         (umulhisi3): Likewise.
15817
15818 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15819
15820         * cppinit.c (output_deps): Correct test for stdout output.
15821         (init_dependency_output): Cure warning.
15822
15823 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15824
15825         * expr.c (store_expr): When converting expression to promoted
15826         equivalent type, allow using SUBREG_REG of TARGET as the target
15827         of the expansion of EXP.
15828         * loop.c (basic_induction_var, case SUBREG): Always look inside.
15829         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15830         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15831         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15832         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15833
15834 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
15835
15836         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15837         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15838         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15839
15840 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
15841
15842         PR optimization/5747
15843         * loop.c (scan_loop): Update reg info if move_movables created new
15844         pseudos.
15845
15846 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15847
15848         * gcc.c (init_gcc_spec): Revert last change.
15849
15850 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15851
15852         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15853         gpc_reg_operand constraint.
15854
15855 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
15856
15857         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15858         Simplify comparison of `low'.
15859         (add_operand): Fix formatting.
15860         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15861         (mask_operand): Disallow mask to wrap in 64-bit mode.
15862         (rs6000_stack_info): Remove redundant test setting push_p.
15863         (output_toc): Fix formatting.
15864         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15865         cc_reg_not_cr0_operand constraint.
15866         (booldi3, boolcdi3 splitters): Same.
15867
15868 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
15869
15870         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15871
15872 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
15873
15874         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15875         gcc invoked with -shared-libgcc.
15876
15877 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
15878
15879         PR c++/5748
15880         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15881         decl if any of elements was TREE_USED.
15882
15883 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
15884
15885         * config/sparc/sol2.h: Don't include sys/mman.h.
15886         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15887         (arith_4096_operand): Don't throw high bits away.
15888         (const64_operand): Take sign extension of CONST_INTs into account.
15889         (const64_high_operand, sparc_emit_set_const32): Likewise.
15890         (GEN_HIGHINT64): Likewise.
15891         (sparc_emit_set_const64_quick1): Likewise.
15892         (const64_is_2insns): Likewise.
15893         (print_operand): Use trunc_int_for_mode for sign extension.
15894         * config/sparc/sparc.h (SMALL_INT32): Likewise.
15895         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15896         chars.  Assume CONST_INT is already properly sign-extended.
15897         (movdi split): Sign-extend each SImode part.
15898         (andsi3 split): Don't mask high bits off, so that result
15899         remains properly sign-extend.
15900         (iorsi3 split): Likewise.
15901         (xorsi3 split): Likewise.
15902
15903 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
15904
15905         * fold-const.c (fold): Fix typo in comments.
15906
15907 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15908
15909         * Makefile.in (langhooks.o): Update dependencies.
15910
15911 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15912
15913         * langhooks.c: Include flags.h.
15914
15915 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
15916
15917         * testsuite/gcc.dg/attr-alwaysinline.c: New.
15918
15919         * c-common.c (c_common_post_options): Set inline trees by
15920         default.
15921
15922         * doc/extend.texi (Function Attributes): Document always_inline
15923         attribute.
15924         Update documentation about inlining when not optimizing.
15925
15926         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15927
15928         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15929         unless DECL_ALWAYS_INLINE.
15930
15931         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15932         unless DECL_ALWAYS_INLINE.
15933         (c_disregard_inline_limits): Disregard if always_inline set.
15934
15935         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15936         Disregard if always_inline set.
15937         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15938         unless DECL_ALWAYS_INLINE.
15939
15940         * attribs.c (handle_always_inline_attribute): New.
15941         (c_common_attribute_table): Add always_inline.
15942
15943         * config/rs6000/altivec.h: Add prototypes for builtins
15944         requiring the always_inline attribute.
15945
15946 2002-02-21  Eric Christopher  <echristo@redhat.com>
15947
15948         * expmed.c (store_bit_field): Try to simplify the subreg
15949         before generating a new one when when the mode size of
15950         value is less than maxmode.
15951
15952 2002-02-21  Richard Henderson  <rth@redhat.com>
15953
15954         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15955         than gen_rtx_PLUS to form the sum.
15956         * explow.c (force_reg): Rearrange to not allocate new pseudo
15957         when force_operand returns a register.
15958         * expr.c (expand_assignment): Allow offset_rtx expansion to
15959         return a sum.  Do not force addresses into registers.
15960         (expand_expr): Likewise.
15961         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15962         to canonicalize arithmetic that didn't simpify.
15963         (simplify_plus_minus): New argument force; update
15964         all callers.  Don't split CONST unless we can do something with it,
15965         and wouldn't lose the constness of the operands.
15966
15967         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15968         that we generated earlier.
15969
15970 2002-02-21  Tom Tromey  <tromey@redhat.com>
15971
15972         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15973         (output_line_info): Use constant `1', with a long explanatory
15974         comment.
15975         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15976
15977 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
15978
15979         * jump.c (redirect_jump): If old label has no UID, don't try to
15980         delete it.
15981
15982 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
15983
15984         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15985         If input is constant, do shifts at compile time.
15986
15987 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15988
15989         * doc/extend.texi: Fix some more overfull hboxes.
15990
15991 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15992
15993         PR optimization/4994
15994         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15995         register moves.
15996
15997 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15998
15999         PR c++/4574
16000         * expr.h (expand_and): Add mode argument.
16001         * expmed.c (expand_and): Add mode argument.
16002         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
16003         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
16004         * except.c (expand_builtin_extract_return_addr): Likewise.
16005         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16006         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16007         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
16008         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
16009         * config/c4x/c4x.md: Use GEN_INT (x) instead of
16010         gen_rtx (CONST_INT, VOIDmode, x).
16011
16012 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
16013
16014         PR c/4697:
16015         * stmt.c (warn_if_unused_value): Move side effects test once more.
16016
16017 2002-02-20  Torbjorn Granlund  <tege@swox.com>
16018
16019         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
16020         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
16021
16022 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
16023
16024         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
16025         SUBREG or ZERO_EXTEND.
16026
16027 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
16028
16029         * sh.h (current_function_anonymous_args): Remove.
16030         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
16031         of current_function_varargs and current_function_stdarg is set.
16032         * sh.c (sh_expand_prologue): Check current_function_varargs /
16033         current_function_stdarg / TARGET_SH5 instead of
16034         current_function_anonymous_args.
16035
16036         * sh64.h (TARGET_VERSION): Define.
16037
16038 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
16039
16040         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
16041         VRSAVE_REGNO on TARGET_ALTIVEC.
16042
16043 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
16044
16045         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
16046         bits of SImode const_int.
16047         (includes_rshift_p): Likewise.
16048         (print_operand): Call mask_operand and mask64_operand with correct
16049         mode.
16050         (rs6000_output_function_epilogue): Pad traceback table to word.
16051         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
16052         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
16053         mask64_operand with correct mode.
16054         (FUNCTION_ARG_REGNO_P): Correct parentheses.
16055
16056 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16057
16058         PR debug/4461
16059         * varasm.c (get_pool_constant_mark): New.
16060         * rtl.h (get_pool_constant_mark): Add prototype.
16061         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
16062         be represented if it has not been output.
16063
16064 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16065
16066         * combine.c (do_SUBST): Sanity check substitutions of
16067         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
16068         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
16069         CONST_INT into its operand.
16070         (known_cond): Likewise, for ZERO_EXTEND.
16071         * simplify-rtx.c (simplify_unary_operation): Fix condition to
16072         allow for simplification of wide modes.  Reject CONST_INTs in
16073         ZERO_EXTEND when their actual mode is not given.
16074
16075 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16076
16077         * c-decl.c (pushdecl): If no global declaration is found for an
16078         extern declaration in block scope, try a limbo one.
16079
16080 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16081
16082         PR c++/4401
16083         * c-common.c (pointer_int_sum): Moved from...
16084         * c-typeck.c (pointer_int_sum): ...here.
16085         * c-common.h (pointer_int_sum): Add prototype.
16086
16087 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16088
16089         PR c++/5713
16090         * c-decl.c (duplicate_decls): Return 0 if issued error about
16091         redeclaration.
16092
16093 2002-02-20  Roger Sayle  <roger@eyesopen.com>
16094             Jakub Jelinek  <jakub@redhat.com>
16095
16096         PR c/4389
16097         * tree.c (host_integerp): Ensure that the constant integer is
16098         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
16099         when pos is zero or non-zero respectively.  Clarify comment.
16100         * c-format.c (check_format_info_recurse): Fix host_integerp
16101         usage; the pos argument should be zero when assigning to a
16102         signed HOST_WIDE_INT.
16103
16104 2002-02-20  Richard Henderson  <rth@redhat.com>
16105
16106         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
16107         of the operand, rather than assuming TImode.
16108         (ix86_expand_binop_builtin): Cope with commutative patterns
16109         using nonimmediate_operand for both operands.
16110         (ix86_expand_timode_binop_builtin): Likewise.
16111         (ix86_expand_store_builtin): Validate operand 1.
16112         (ix86_expand_unop1_builtin): Likewise.
16113
16114 2002-02-20  Philip Blundell  <philb@gnu.org>
16115
16116         PR 5705
16117         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16118
16119 2002-02-20  Richard Henderson  <rth@redhat.com>
16120
16121         PR c/5615
16122         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16123
16124 2002-02-20  Tom Tromey  <tromey@redhat.com>
16125
16126         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16127         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16128         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16129         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16130         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16131         unconditionally.
16132
16133 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16134
16135         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16136           for (const_int 0) in X not just INTVAL.
16137
16138 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16139
16140         * doc/extend.texi: Avoid or reduce overfull hboxes.
16141
16142 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
16143
16144         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16145         operations if the field does not start at a mode boundary.
16146
16147 2001-02-20      Joel Sherrill <joel@OARcorp.com>
16148
16149         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16150         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16151         Also done for -Acpu and -Amachine.
16152
16153 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16154
16155         * cppinit.c (init_dependency_output): Take deps output file
16156         from -o if none given with -MF.  Suppress normal output.
16157         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16158         * doc/cpp.texi, doc/invoke.texi: Update.
16159
16160 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16161
16162         * toplev.c (output_quoted_string): Write unprintable
16163         characters with octal escapes.
16164
16165 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16166
16167         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16168         really_call_used[VRSAVE_REGNO] if not Altivec.
16169
16170 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
16171
16172         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16173         MODE_MASK.
16174         (constant_pool_expr_1): Fix formatting.
16175         (rs6000_legitimize_reload_address): Likewise.
16176
16177 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16178
16179         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16180         now that we have one.
16181
16182 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16183
16184         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
16185         end of first block of bitfields (which was only seven bits);
16186         rename dummy to unused_1; remove comment which is no longer true.
16187
16188 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16189
16190         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16191
16192 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16193
16194         PR 5399
16195         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16196         if generating PIC.
16197
16198         PR 5054
16199         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16200         arm_is_longcall_p rather than inspecting call-type cookie
16201         directly.
16202         (call_value_insn) [TARGET_THUMB]: Likewise.
16203
16204 2002-02-19  Graham Stott  <grahams@redhat.com>
16205
16206         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16207
16208 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16209
16210         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16211         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16212         (FP_SAVE_INLINE): Delete.
16213
16214         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16215         * config/rs6000/eabi.asm: Remove ABI save restore routines.
16216         * config/rs6000/t-ppccomm: Build crtsavres.o.
16217         * config/rs6000/crtsavres.asm: New file.
16218
16219 2002-02-19  Philip Blundell  <philb@gnu.org>
16220
16221         * config/arm/arm.c (use_return_insn): Don't reject interrupt
16222         functions.
16223         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16224         (output_return_instruction): Allow interrupt functions to return with
16225         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
16226         (arm_expand_prologue): Subtract 4 before stacking LR in an
16227         interrupt function.
16228
16229 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16230
16231         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16232         decl, not just FUNCTION_DECL.
16233         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16234         (arm_assemble_integer): Likewise.
16235         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16236         marked local.
16237
16238 2002-02-19  matthew green  <mrg@eterna.com.au>
16239
16240         * config.gcc (sparc-*-netbsdelf*): Enable target.
16241         (sparc64-*-netbsd*): New target.
16242         * config/sparc/netbsd-elf.h: New file.
16243         * config/sparc/t-netbsd64: New file.
16244
16245 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16246
16247         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16248
16249 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
16250
16251         * doc/invoke.texi: explicitly list the style guidelines that
16252         -Weffc++ checks for.
16253
16254 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
16255
16256         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16257
16258 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16259
16260         PR other/5718
16261         * gcc.c (cpp_unique_options): Treat -o as indicating object file
16262         only if not -E.  If -E, pass -o through to the preprocessor.
16263
16264 2002-02-19  Kazu Hirata  <kazu@hxi.com>
16265
16266         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16267         register number with an appropriate macro.
16268
16269 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16270
16271         * doc/rtl.texi (Constants): Close @code tag.
16272
16273 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
16274
16275         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16276         ("mmx_uavgv4hi3"): Same.
16277         ("pmulhrwv4hi3"): Same.
16278
16279         * tree-inline.c (walk_tree): Handle vectors.
16280
16281         * c-common.c (constant_expression_warning): Handle vectors.
16282         (overflow_warning): Same.
16283
16284         * sched-deps.c (sched_analyze_2): Handle vectors.
16285
16286         * rtlanal.c (rtx_unstable_p): Handle vectors.
16287         (rtx_varies_p): Same.
16288         (count_occurrences): Same.
16289         (regs_set_between_p): Same.
16290         (modified_between_p): Same.
16291         (modified_in_p): Same.
16292         (volatile_insn_p): Same.
16293         (volatile_refs_p): Same.
16294         (side_effects_p): Same.
16295         (may_trap_p): Same.
16296         (inequality_comparisons_p): Same.
16297         (replace_regs): Same.
16298         (computed_jump_p_1): Same.
16299
16300         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16301         argument.
16302         (inner_mode_array): New.
16303         (copy_rtx): Handle vectors.
16304         (copy_most_rtx): Same.
16305         (rtx_equal_p): Same.
16306         (get_mode_alignment): Adjust for vectors.
16307
16308         * resource.c (mark_referenced_resources): Handle vectors.
16309         (mark_set_resources): Same.
16310
16311         * reload1.c (eliminate_regs): Handle vectors.
16312         (elimination_effects): Same.
16313         (scan_paradoxical_subregs): Same.
16314
16315         * reload.c (subst_reg_equivs): Handle vectors.
16316
16317         * regrename.c (scan_rtx): Handle vectors.
16318
16319         * regclass.c (reg_scan_mark_refs): Handle vectors.
16320
16321         * recog.c (find_single_use_1): Handle vectors.
16322
16323         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16324         (contains_replace_regs): Same.
16325         (memref_referenced_p): Same.
16326
16327         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16328         (subst_constants): Same.
16329
16330         * genattrtab.c (attr_copy_rtx): Handle vectors.
16331         (encode_units_mask): Same.
16332         (clear_struct_flag): Same.
16333         (count_sub_rtxs): Same.
16334
16335         * gcse.c (want_to_gcse_p): Handle vectors.
16336         (oprs_unchanged_p): Same.
16337         (hash_expr_1): Same.
16338         (oprs_not_set_p): Same.
16339         (expr_killed_p): Same.
16340         (compute_transp): Same.
16341         (store_ops_ok): Same.
16342
16343         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16344         of vectors.
16345         (fixup_var_refs_1): Same.
16346         (instantiate_virtual_regs_1): Same.
16347
16348         * fold-const.c (operand_equal_p): Handle vectors.
16349         (fold): Same.
16350         (rtl_expr_nonnegative_p): Same.
16351
16352         * flow.c (mark_used_regs): Handle vectors.
16353
16354         * df.c (df_uses_record): Handle vectors.
16355
16356         * cselib.c (cselib_subst_to_values): Handle vectors.
16357         (cselib_mem_conflict_p): Same.
16358         (hash_rtx): Same.
16359
16360         * cse.c (canon_reg): Handle vectors.
16361         (fold_rt): Same.
16362         (cse_process_notes): Same.
16363         (count_reg_usage): Same.
16364         (canon_hash): Same.
16365
16366         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16367
16368         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16369
16370         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16371         (gen_rtx): Handle CONST_VECTOR.
16372         (gen_const_vector_0): New.
16373         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16374         (reset_used_flags): Same.
16375         (copy_insn_1): Same.
16376         (initializer_constant_valid_p): Handle VECTOR_CST.
16377
16378         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16379
16380         * doc/rtl.texi (Constants): Document const_vector.
16381         (CONST0_RTX): Update for vectors.
16382         (RTL sharing): Same.
16383
16384         * print-tree.c (print_node): Add case for VECTOR_CST.
16385
16386         * tree.h (TREE_VECTOR_CST_ELTS): New.
16387         (struct tree_vector): New.
16388         (union tree_node): Add vector node.
16389         (build_vector): Add prototype.
16390
16391         * tree.def (VECTOR_CST): New.
16392
16393         * tree.c (build_vector): New.
16394
16395         * expmed.c (make_tree): Handle CONST_VECTOR.
16396
16397         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16398         (CONST_VECTOR_ELT): New.
16399         (CONST_VECTOR_NUNITS): New.
16400
16401         * machmode.h (GET_MODE_INNER): New.
16402         (DEF_MACHMODE): Accept 8th arg.
16403
16404         * machmode.def: Add 8th argument for vector inner mode.
16405         Add inner vector modes for vectors.
16406
16407         * rtl.def (VEC_CONST): Remove.
16408         (CONST_VECTOR): New.
16409
16410         * expr.c (clear_storage): Allow vectors.
16411         (is_zeros_p): Handle VECTOR_CST.
16412
16413         * varasm.c (output_constant_pool): Handle vectors.
16414         (rtx_const): Add veclo and vechi fields.
16415         (kind): Add RTX_VECTOR.
16416         (decode_rtx_const): Add case for vector.
16417
16418         * config/rs6000/rs6000-protos.h: Add zero_constant.
16419
16420         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16421         constants.  Force easy vector constants into memory.
16422         (easy_vector_constant): New.
16423         (emit_easy_vector_constant): New.
16424         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16425         darwin.
16426
16427         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16428         instruction does.
16429         ("altivec_lvxl"): Same.
16430         (altivec_lvebx): Same.
16431         (altivec_lvehx): Same.
16432         (altivec_lvewx): Same.
16433         ("*movv4si_const0"): New.
16434         ("*movv4sf_const0"): New.
16435         ("*movv8hi_const0"): New.
16436         ("*movv16qi_const0"): New.
16437
16438 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16439
16440         * config/h8300/h8300.c (notice_update_cc): Use
16441         cc_status.value2.
16442
16443 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16444
16445         * config/h8300/h8300.md (divmod patterns): Change the
16446         constraints for operands[1] to register_operand.
16447
16448 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16449
16450         * config/h8300/h8300-protos.h: Remove the prototype for
16451         p_operand.
16452         * config/h8300/h8300.c (p_operand): Remove.
16453         * config/h8300/h8300.md: Replace p_operand with
16454         const_int_operand.
16455
16456 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16457
16458         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16459         comment.
16460         (output_return_instruction): Allow use of LDR to unstack
16461         return addresss even for interrupt handlers or when
16462         interworking.  If compiling for ARMv5, use interworking-safe
16463         return instructions by default.  Remove duplicated code and
16464         lengthy "strcat" sequences.
16465
16466 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16467
16468         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16469         (LINK_EH_SPEC): Define.
16470         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16471
16472 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16473
16474         * config/s390/s390.c (s390_emit_prologue): Do not set the
16475         frame_related flag for call-clobbered registers.
16476
16477 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16478
16479         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16480         (construct_container): Fix handling of SSE operands.
16481         (ix86_expand_builtin): Fix handling of 64bit pointers.
16482         (mmx_maskmovq_rex): New pattern.
16483
16484 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16485
16486         * regrename.c (kill_set_value): Handle subregs properly.
16487
16488 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16489
16490         * objc/objc-act.c (handle_impent): Remove leading '*'
16491         from objc_class_name.
16492
16493 2002-02-17  Richard Henderson  <rth@redhat.com>
16494
16495         * config/alpha/alpha.c (some_small_symbolic_operand,
16496         some_small_symbolic_operand_1, split_small_symbolic_operand,
16497         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16498         Handle small SYMBOL_REFs anywhere, not just inside memories.
16499         * config/alpha/alpha-protos.h: Update.
16500         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16501         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16502
16503 2002-02-17  Roland McGrath  <roland@frob.com>
16504
16505         * config.gcc (powerpc-*-gnu-gnualtivec*,
16506         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16507         * config/rs6000/gnu.h: New file.
16508         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16509         Grok "gnu" in rs6000_abi_name.
16510         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16511         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16512         Grok -mcall-gnu analogous to -mcall-linux et al.
16513         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16514         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16515         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16516
16517 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16518
16519         PR c/3444:
16520         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16521         shortening.
16522
16523 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16524
16525         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16526         ENDFILE_SPEC before (re)defining them.
16527
16528 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16529
16530         * config/h8300/h8300.c: Fix formatting.
16531         * config/h8300/h8300.h: Likewise.
16532
16533 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16534
16535         * doc/tm.texi: Explain why empty strings should not be
16536         marked for translation.
16537
16538 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16539
16540         * final.c (output_operand_lossage): Changed to accept
16541         printf style arguments. Change calls where necessary.
16542         * output.h (output_operand_lossage): Change declaration
16543         accordingly. Update copyright.
16544         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16545         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16546         Update copyright date where necessary.
16547
16548         * config/i386/i386.c (print_operand): Likewise. Remove use of
16549         sprintf.
16550
16551         * config/cris/cris.c (cris_operand_lossage): Likewise.
16552         Rename parameter so that exgettext recognizes it as
16553         translatable message.
16554         (LOSE_AND_RETURN): Rename parameter to msgid.
16555
16556 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16557
16558         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16559         hard coded register number with an appropriate macro.
16560         (HARD_REGNO_MODE_OK): Likewise.
16561         (ARG_POINTER_REGNUM): Likewise.
16562         (STATIC_CHAIN_REGNUM): Likewise.
16563         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16564         * config/h8300/h8300.md (define_constants): Define more
16565         register numbers.
16566
16567 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16568
16569         * config/i386/i386.h: Don't mark empty strings for translation.
16570
16571 2002-02-16  H.J. Lu <hjl@gnu.org>
16572
16573         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16574
16575 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16576
16577         * cppinit.c (merge_include_chains): Check for brack being
16578         NULL before attempting to merge it with qtail.
16579
16580 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16581
16582         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16583         DBX_DEBUG.
16584
16585 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16586
16587         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16588
16589 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16590
16591         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16592         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16593         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16594
16595 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16596
16597         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16598         now only if !TARGET_FIX.
16599         (*movsi_nt_vms_fix): New pattern.
16600
16601 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16602
16603         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16604         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16605         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16606         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16607         (alpha_start_function, alpha_expand_epilogue): Likewise.
16608         (unicosmk_gen_dsib): Likewise.
16609
16610 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16611
16612         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16613
16614 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16615
16616         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16617         check_and_change_labels, s390_final_chunkify): Delete.
16618         (s390_split_branches, s390_chunkify_pool): New functions.
16619         (s390_function_prologue): Call them.
16620
16621         * config/s390/s390.h (S390_REL_MAX): Delete.
16622         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16623
16624         * config/s390/s390.md (cjump, icjump, jump): Fix length
16625         attribute calculation.
16626
16627
16628 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16629
16630         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16631         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16632
16633 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16634
16635         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16636         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16637         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16638
16639 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16640
16641         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16642
16643 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16644
16645         * reload.c (find_dummy_reload): Check that an output register
16646         is valid for its mode.
16647
16648 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16649
16650         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16651         to simplify it.
16652
16653         * function.c (assign_parms): Demote promoted argument passed by
16654         transparent reference.
16655
16656 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16657
16658         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16659         -Acpu() and -Amachine() to eliminate warnings.
16660
16661 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16662
16663         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16664
16665 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16666
16667         * config/h8300/h8300-protos.h: Update the prototype for
16668         const_costs.
16669         * config/h8300/h8300.c (const_costs): Treat SET as a little
16670         more expensive operation.
16671         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16672         reference to const_costs.
16673
16674 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16675
16676         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16677
16678 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16679
16680         PR c/5503:
16681         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16682         use arguments from newtype.
16683
16684 2002-02-13  Eric Christopher  <echristo@redhat.com>
16685
16686         * config/mips/mips.c (override_options): Add check for march/mipsX
16687         on the same command line. Fix error message in cpu processing.
16688         Remove architecture and ISA checks.
16689
16690 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16691
16692         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16693
16694         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16695
16696 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16697
16698         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16699         alternatives.
16700         ("*movv8hi_internal1"): Same.
16701         ("*movv16qi_internal1"): Same.
16702         ("*movv4sf_internal1"): Same.
16703
16704         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16705         not push_reload for altivec modes.
16706
16707 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16708
16709         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16710         all RTEMS targets including removal of #includes from config/*/rtems*.h
16711         file and adding them to tm_file setting. Added xm_defines=POSIX to
16712         many targets.
16713         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16714         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16715         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16716         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16717         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16718         config/m68k/rtemself.h: Ditto.
16719         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16720         config/mips/rtems64.h: Ditto.
16721         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16722         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16723         Ditto.
16724         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16725         config/sparc/rtemself.h: Ditto.
16726         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16727         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16728         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16729         more like arm-elf.
16730         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16731         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16732         target made more similar to i386-elf.
16733         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16734         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16735         be similar to config/m68k/t-m68kelf.
16736         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16737
16738 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16739
16740         * regmove.c (kill_value): Handle subregs.
16741
16742 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16743
16744         * i386.md (mul patterns): Allow memory operand to be first;
16745         add expanders where needed; fix constraints.
16746         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16747         Allow memory operand to be the first.
16748
16749         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16750         operands.
16751
16752 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16753
16754         PR c/5681:
16755         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16756         GET_MODE (x).
16757
16758 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16759
16760         PR optimization/5547:
16761         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16762         all valid IA-32 address modes involving non-scaled %ebx and
16763         GOT/GOTOFF as displacement.
16764
16765 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16766
16767         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16768         after emitting ltorg insns.
16769
16770         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16771         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16772         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16773         *abssf2): Fix "op_type" attribute.
16774
16775 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16776
16777         * mkconfig.sh: Avoid using a subshell redirect.
16778         ($output.T): Change to $(output)T.
16779         (ENABLE_NLS): Remove unneeded undef.
16780
16781         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16782         * config/alpha/x-vms (libsubdir): Define.
16783
16784         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16785         register frame procedures. Optimize retrieving context.
16786
16787         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16788         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16789         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16790
16791 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16792
16793         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16794         Make same change as for find_base_value.
16795
16796 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16797
16798         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16799         of QImode and SImode.
16800
16801 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16802
16803         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16804         length computation of movsi.
16805         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16806
16807 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16808
16809         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16810         operands[2] to register_operand.
16811
16812 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16813
16814         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16815
16816 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
16817
16818         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16819         for altivec_lvx* and altivec_stvx*.
16820         ("*movv4si_internal"): Add constraint for loading from GPRs.
16821         ("*movv8hi_internal1"): Same.
16822         ("*movv16qi_internal1"): Same.
16823         ("*movv4sf_internal1"): Same.
16824
16825         * config/rs6000/rs6000.c (altivec_register_operand): New.
16826
16827         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16828         altivec_register_operand.
16829
16830 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
16831
16832         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16833         handle SYMBOL_REF.
16834
16835 2002-02-13  Stan Shebs  <shebs@apple.com>
16836
16837         * c-typeck.c (digest_init): Handle vectors.
16838         (really_start_incremental_init): Same.
16839         (pop_init_level): Same.
16840         (process_init_element): Same.
16841
16842         * varasm.c (output_constant): Same.
16843
16844         * expr.c (clear_storage): Same.
16845         (store_constructor): Same.
16846
16847 2002-02-12  Eric Christopher  <echristo@redhat.com>
16848
16849         * explow.c (hard_function_value): Add comment explaining
16850         signed/unsigned comparison.
16851
16852 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
16853
16854         * jump.c (never_reached_warning): Add finish argument.
16855         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16856         real insn after end.
16857         * rtl.h (never_reached_warning): Adjust prototype.
16858         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16859         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16860         never_reached_warning.
16861
16862 2002-02-12  Graham Stott  <grahams@redhat.com>
16863
16864         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16865
16866 2002-02-12  Kazu Hirata  <kazu@hxi.com>
16867
16868         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16869         logical shifts on H8/300.
16870         (shift_alg_si): Improve several shifts on H8/300.
16871         (get_shift_alg): Likewise.
16872
16873 2002-02-12  Graham Stott  <grahams@redhat.com>
16874
16875         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16876
16877 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16878
16879         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16880         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16881
16882 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
16883
16884         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16885         non-CONST_INT through default_assemble_integer.
16886         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16887         <case 8>: Abort for CONST_DOUBLE.
16888
16889 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16890
16891         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16892         is specified.
16893         * config/pa/pa-linux.h (LIB_SPEC): Delete.
16894         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16895
16896 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
16897
16898         * config/stormy16/stormy16.md (zero_extendqihi2): New.
16899
16900 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
16901
16902         * regrename.c (regrename_optimize): Don't accept a
16903         part-clobbered register if the replaced register is not part
16904         clobbered.
16905
16906         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16907         take padding into account when computing the argument value.
16908
16909         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16910
16911         * combine.c (try_combine): Apply substitutions in
16912         CALL_INSN_FUNCTION_USAGE too.
16913
16914 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
16915
16916         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16917         __builtin_altivec_abs*.
16918         (bdesc_abs): New.
16919
16920         * config/rs6000/rs6000.h (rs6000_builtins): Add
16921         ALTIVEC_BUILTIN_ABS*.
16922
16923         * config/rs6000/altivec.h: Use const char for builtins expecting
16924         literals.
16925         (vec_abs): New versions for C and C++.
16926         (vec_abss): Same.
16927
16928 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16929
16930         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16931         using Pmode.
16932
16933 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16934
16935         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16936         constant definition from h8300.md.
16937         (FRAME_POINTER_REGNUM): Likewise.
16938         * config/h8300/h8300.md (define_constants): Add FP_REG.
16939
16940 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16941
16942         * config/h8300/h8300.c (print_operand): Remove redundant code.
16943
16944 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16945
16946         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16947         * config/h8300/h8300.c (byte_reg): Make it static.
16948
16949 2002-02-10  Richard Henderson  <rth@redhat.com>
16950
16951         PR c/5623
16952         * c-typeck.c (incomplete_type_error): Handle flexible array members.
16953
16954 2002-02-10  Richard Henderson  <rth@redhat.com>
16955
16956         PR c++/5624
16957         * tree.c (append_random_chars): Don't abort if main_input_filename
16958         does not exist.
16959
16960 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
16961
16962         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16963
16964 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16965
16966         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16967         (pushhi1): Likewise.
16968
16969 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16970
16971         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16972         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16973
16974 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
16975
16976         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16977         remove MASK_VIS.
16978         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
16979
16980 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16981
16982         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16983         a half of an SImode register on H8/300.
16984
16985 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
16986
16987         * i386.md (movdi_2): Add missing '!'.
16988
16989 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16990
16991         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
16992         definitions.
16993
16994 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16995
16996         * config/h8300/h8300.md (length): Correct the distance valid
16997         for the short branch.
16998
16999 2002-02-09  Kazu Hirata  <kazu@hxi.com>
17000
17001         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
17002
17003 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
17004
17005         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
17006         registers in SImode.
17007         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
17008         part-clobbered.
17009
17010         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
17011         patch.
17012
17013         Contribute sh64-elf.
17014         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
17015         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
17016         (sh_cannot_modify_jumps_p): New function.
17017         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
17018         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
17019         (sh_ms_bitfield_layout_p): New function.
17020         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
17021                     Zack Weinberg  <zack@codesourcery.com>
17022         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
17023         expand_simple_binop instead of expand_binop.
17024         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
17025         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
17026         use of .quad and .uaquad.
17027         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
17028         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
17029         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17030         * config/sh/sh.md (movdi_const, movdi_const_32bit,
17031         movdi_const_16bit): Make sure all CONSTs have modes.
17032         (sym2PIC): Ditto, but by adjusting all callers.
17033         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
17034         if the prologue calls the SHmedia argument decoder or register
17035         saver.
17036         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17037         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
17038         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
17039         (sh_expand_epilogue): Don't emit USE of return target register.
17040         (prepare_move_operands): Legitimize DImode PIC addresses.
17041         (sh_media_register_for_return): Skip tr0, used to initialize the
17042         PIC register.
17043         (sh_expand_prologue): Remove explicit USE of return register.
17044         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
17045         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
17046         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
17047         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
17048         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
17049         EXTRA_CONSTRAINT_T.
17050         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
17051         (MOVI_SHORI_BASE_OPERAND_P): New.
17052         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
17053         (EXTRA_CONSTRAINT_T): Define in terms of them.
17054         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
17055         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
17056         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
17057         alternatives supporting TARGET_REGS.
17058         (UNSPEC_GOTPLT): New constant.
17059         (movdi split): Move incrementing of LABEL_NUSES...
17060         (movdi_const, movdi_const_32bit): Here.  Use
17061         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
17062         (movdi_const_16bit): New.
17063         (call, call_value) [flag_pic]: Use GOTPLT.
17064         (call_pop, call_value_pop): New expands.
17065         (call_pop_compact, call_pop_rettramp): New insns.
17066         (call_value_pop_compact, call_value_pop_rettramp): New insns.
17067         (sibcall) [flag_pic]: Use GOT.
17068         (builtint_setjmp_receiver): Remove bogus, unused expand.
17069         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
17070         (*pt, *ptb, ptrel): New insns.
17071         (sym2GOT): Handle DImode GOT.
17072         (sym2GOTPLT, symGOTPLT2reg): New expands.
17073         (sym2PIC): New expand.
17074         (shcompact_return_tramp): Use GOTPLT to return trampoline.
17075         (shcompact_return_tramp_i): Use return register explicitly.
17076         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
17077         disable flag_reorder_blocks.
17078         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17079         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
17080         clobbers, for clarity.
17081         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
17082         restoring of r0 in macl as MAYBE_DEAD.
17083         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
17084         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
17085         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
17086         alter_subreg all over.
17087         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
17088         reload, instead of emitting instructions that would require
17089         reloading.
17090         (casesi_load_media): Add missing modes.
17091         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
17092         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
17093         as used if the argument decoder is called.
17094         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17095         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
17096         Pmode, then extend it to DImode if necessary.
17097         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17098         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
17099         constants in FPU-enabled SHmedia, let them be loaded from memory.
17100         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17101         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
17102         Adjust whitespace in assembly output templates.
17103         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17104         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
17105         mode of if_then_else.
17106         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
17107         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
17108         sh.h.
17109         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
17110                     Joern Rennecke <amylaar@redhat.com>
17111         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
17112         (SUBTARGET_CPP_PTR_SPEC): New.
17113         (SUBTARGET_CPP_SPEC): Remove.
17114         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17115         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17116         Fix typo in previous checkin.
17117         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
17118         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17119         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
17120                     Alexandre Oliva  <aoliva@redhat.com>
17121         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17122         what single FP register can hold for SHmedia target.
17123         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17124                     Alexandre Oliva  <aoliva@redhat.com>
17125         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17126         Do not split into SUBREG.
17127         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
17128         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17129         and added new functions as specified in SH5 ABI r9.
17130         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
17131         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17132         8-byte boundary.
17133         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
17134         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17135         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
17136         and consttable_window_ends.
17137         2001-06-03  Graham Stott  <grahams@redhat,com>
17138         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17139         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
17140         * config/sh/sh.c (print_operand): Handle floating-point pair,
17141         vector and matrix registers.
17142         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17143         vector modes into account.
17144         * config/sh/sh.md (movv2sf): Split move between registers into
17145         movdf.
17146         (movv4sf, movv16sf): Introduce insns that get split only after
17147         reload.
17148         * config/sh/shmedia.h: Fix Copyright dates.
17149         * config/sh/ushmedia.h: Likewise.  Move loop counter
17150         declarations into conditionals that uses them.
17151         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17152         loop boundary.
17153         * config/sh/sshmedia.h: Fix Copyright dates.
17154         (sh_media_PUTCFG): Fix constraints.
17155         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
17156         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17157         ptrmemfunc_vbit_in_delta for SH5.
17158         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
17159         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17160         * invoke.texi: Likewise.
17161         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
17162         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17163         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17164         GCC_pop_shmedia_regs_nofpu): New global symbols.
17165         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17166         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17167         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17168         compact function with nonlocal labels.
17169         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17170         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17171         (initial_elimination_offset): Account for their stack space.
17172         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17173         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17174         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17175         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17176         least one of the operands to be a register.
17177         (movv2sf): Likewise.  Renamed to movv2sf_i.
17178         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17179         prepare_move_operands() before emitting SHmedia insns.
17180         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
17181         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17182         Don't save nor initialize r12.  Don't mis-align the stack.
17183         Pad the code with a nop.
17184         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
17185         stack.
17186         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
17187         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17188         [__SHMEDIA__]: Implement.
17189         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
17190         * config/sh/sh.md: Set latency of `pt' closer to reality.
17191         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17192         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17193         Set move, load and store type attributes.
17194         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17195         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17196         profiling.
17197         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17198         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17199         * config/sh/sh.c (sh_media_register_for_return): New function.
17200         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17201         branch-target register.
17202         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17203         * config/sh/sh.md (return_media_i): Use any call-clobbered
17204         branch-target register.
17205         (return_media): If r18 wasn't copied in the prologue, copy it
17206         here.
17207         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17208         Clear class FP0_REGS.
17209         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17210         from elf.h.
17211         2001-03-08  DJ Delorie  <dj@redhat.com>
17212         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17213         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
17214         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17215         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
17216         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17217         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
17218         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17219         return value correctly for call_cookie.
17220         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
17221         * config/sh/crt1.asm (start): Modified so as to call
17222         ___setup_argv_and_call_main.
17223         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
17224         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17225         SHmedia mode.
17226         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
17227         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17228         (STRIP_NAME_ENCODING): Use it.
17229         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
17230         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
17231         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17232         prepare_scc_operands().
17233         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17234         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17235         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
17236         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17237         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
17238         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17239         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17240         used in shcompact_incoming_args.
17241         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17242         change.
17243         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17244         mode.
17245         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17246         Adjust accordingly.
17247         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17248         Simplify.  Adjust.  Add sanity check.
17249         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17250         FPU_SINGLE_BIT.
17251         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17252         TARGET_SHCOMPACT.
17253         (udivsi3, divsi3): Use them.
17254         (force_mode_for_call): New insn.
17255         (call, call_value, sibcall_value): Emit it before SHcompact
17256         calls.
17257         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
17258         * config/sh/sh.md (call, call_value, sibcall): Make sure the
17259         call cookie is non-NULL before taking its value.
17260         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
17261         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17262         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
17263         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17264         block.
17265         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17266         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17267         temporary for stack adjusts.  Use MACL and MACH to pass
17268         arguments to shcompact_incoming_args.
17269         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
17270         clobber r1.
17271         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17272         (nested_trampoline): Load static chain address into r1.
17273         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17274         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
17275         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17276         fp_arith_reg_operand().
17277         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
17278         * config/sh/sh.md (casesi): Sign-extend the first two operands,
17279         and use signed compares for them.
17280         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17281         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
17282         ones properly aligned.
17283         (find_barrier): Account for extra alignment needed for 8-byte wide
17284         constants.
17285         (machine_dependent_reorg): Require a label for the second 4-byte
17286         constant after an 8-byte one.
17287         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17288         change.
17289         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17290         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17291         last_float when switching float modes.
17292         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17293         auto-increment for general-purpose registers.
17294         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17295         result.
17296         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17297         for stack adjust.
17298         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17299         registers for varargs.
17300         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17301         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17302         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17303         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17304         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17305         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17306         call_cookie accordingly.
17307         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17308         (SHCOMPACT_BYREF): Likewise.
17309         (SHCOMPACT_FORCE_ON_STACK): New macro.
17310         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17311         (sh_builtin_saveregs): Likewise.
17312         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17313         shcompact_incoming_args): Use new shift values.  Support
17314         sequences of consecutive and non-consecutive pushes/pops.
17315         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17316         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17317         * config/sh/sh.h (TEXT_SECTION): Define.
17318         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17319         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17320         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17321         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17322         return values on FPU-enabled SHmedia.
17323         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17324         FPU-enabled SHmedia.
17325         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17326         value is returned in a non-FP reg and is not returned by
17327         reference.
17328         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17329         jump_ind.
17330         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17331         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17332         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17333         quad-aligned to be passed by callee-copy reference.
17334         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17335         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17336         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17337         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17338         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17339         copying low-numbered FP regs to r7 and r8.
17340         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17341         FP regs to general-purpose regs only if the copy was passed on the
17342         stack.
17343         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17344         copying FP reg to r9.
17345         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17346         copy FP regs to general-purpose regs only in outgoing calls.
17347         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17348         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17349         HOST_WIDE_INT.
17350         * config/sh/sh.h (struct sh_args): Document all fields.
17351         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17352         passed partially on the stack should not consider making
17353         sibcalls.
17354         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17355         stack_regs only for incoming calls.  When passing FP args,
17356         make sure there are FP regs available before modifying
17357         call_cookie.
17358         (SHCOMPACT_BYREF): Pass double args in general-purpose
17359         registers by reference.
17360         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17361         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17362         attempt to generate sibcalls if the caller got any arguments
17363         by reference.
17364         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17365         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17366         to 8-byte boundaries.
17367         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17368         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17369         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17370         stored in the stack.
17371         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17372         for the offsets to have the ISA bit set.
17373         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17374         invocation.  Use beq instead of bgt to mark end of sequence of
17375         loads.
17376         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17377         bgt to mark end of sequence of stores.
17378         * config/sh/sh.c (arith_operand): Don't check whether
17379         CONST_OK_FOR_J for now.
17380         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17381         instead of long for conversion.
17382         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17383         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17384         before passing it to fprintf.
17385         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17386         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17387         Call set_fpscr before reading/writing SR.
17388         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17389         Call set_fpscr.
17390         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17391         SHmedia code.
17392         (FMOVD_WORKS): Define on SH5 with FPU.
17393         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17394         setting.
17395         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17396         _fpscr_values.
17397         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17398         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17399         address.
17400         (ia_main_table): Ditto.
17401         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17402         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17403         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17404         the definitions from sh.h.
17405         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17406         TARGET_SH5.
17407         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17408         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17409         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17410         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17411         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17412         Increment LABEL_NUSES.
17413
17414         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17415         TARGET_SH5.
17416         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17417         defined.
17418         * config/sh/elf.h (SIZE_TYPE): Likewise.
17419         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17420         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17421         shcompact_incoming_args): Load switch table addresses using
17422         datalabel.
17423         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17424         (NO_BUILTIN_SIZE_TYPE): Define.
17425         (SIZE_TYPE): Don't define.
17426         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17427         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17428         definition of __SH5__=32 for -m5-compact-nofpu.
17429         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17430         ADDR_DIFF_VEC.
17431         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17432         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17433         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17434         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17435         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17436         (INSN_LENGTH_ALIGNMENT): Likewise.
17437         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17438         * config/sh/sh.md (call, call_value, sibcall): Simplify
17439         copying of non-branch-target register.
17440         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17441         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17442         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17443         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17444         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17445         floating-point values as structs.
17446         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17447         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17448         general-purpose register.
17449         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17450         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17451         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17452         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17453         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17454         (ENCODE_SECTION_INFO): Enclose variables and constants in
17455         DATALABEL unspecs.
17456         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17457         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17458         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17459         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17460         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17461         SH_DATALABEL_ENCODING to the symbol name.
17462         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17463         convert_mode().
17464         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17465         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17466         UNSPEC_DATALABEL.
17467         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17468         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17469         (DATALABEL_REF_P): Don't require CONST.
17470         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17471         REL label.
17472         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17473         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17474         right.
17475         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17476         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17477         Use shallow_copy_rtx and PUT_MODE to change the mode of
17478         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17479         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17480         on SHmedia using GENERAL_REGs.
17481         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17482         bltu_media_i): Fix reversion of conditions.
17483         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17484         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17485         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17486         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17487         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17488         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17489         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17490         (GCC_nested_trampoline): Likewise.
17491         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17492         * config/sh/sh.c (gen_datalabel_ref): Define.
17493         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17494         (INITIALIZE_TRAMPOLINE): Likewise.
17495         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17496         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17497         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17498         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17499         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17500         (ic_invalidate): Adjust for SH5.
17501         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17502         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17503         _nested_trampoline.
17504         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17505         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17506         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17507         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17508         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17509         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17510         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17511         * config/sh/sh.c (target_reg_operand): Match only target-branch
17512         registers and pseudos that aren't virtual registers.
17513         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17514         Copy operands that don't match target_reg_operand to pseudos.
17515         (call_media, call_value_media, sibcall_media): Use
17516         target_reg_operand instead of target_operand.
17517         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17518         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17519         * config/sh/sh.c (target_reg_operand): Match hardware registers
17520         other than branch-target registers.
17521         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17522         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17523         (fpscr_values) [SH5 == 32]: Define.
17524         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17525         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17526         Handle function addresses coming in SUBREGs.
17527         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17528         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17529         shcompact_return_trampoline): Use datalabel where appropriate.
17530         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17531         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17532         general-purpose register to copy one branch-target register to
17533         another.
17534         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17535         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17536         SYMBOL_REFs with VOIDmode.
17537         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17538         bltu_media_i): New insns.
17539         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17540         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17541         (INIT_CUMULATIVE_ARGS): Likewise.
17542         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17543         * machmode.def (V16SFmode): New mode.
17544         * c-common.c (type_for_mode): Support V2SF and V16SF.
17545         * tree.c (build_common_tree_nodes_2): Likewise.
17546         * tree.h (tree_index): Likewise.
17547         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17548         callers.  Introduce CALL_POPS_ARGS.
17549         * tm.texi (CALL_POPS_ARGS): Document.
17550         * config/sh/crt1.asm: Implement in SHmedia mode.
17551         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17552         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17553         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17554         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17555         Implement divsi and udivsi in SHmedia mode.  Introduce
17556         SHcompact trampolines.
17557         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17558         only in SHmedia64.
17559         (regno_reg_class): Rewrite.
17560         (fp_reg_names): Remove.
17561         (sh_register_names, sh_additional_register_names): New.
17562         (print_operand): Added `u'.  Support SUBREGs in addresses.
17563         Add parentheses around shifted CONSTs.
17564         (output_file_start): Output .mode and .abi directives.
17565         (shiftcosts, addsubcosts, multcosts): Adjust.
17566         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17567         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17568         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17569         bytes, not registers.  Take into account the need for the
17570         SHcompact incoming args trampoline.  Adjust all callers.
17571         (sh_expand_prologue): Take stack_regs into account.  Call
17572         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17573         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17574         stack aligned as per SH5 ABI.
17575         (sh_builtin_saveregs): Support SH5 ABI.
17576         (sh_build_va_list, sh_va_start): Likewise.
17577         (initial_elimination_offset): Take alignment into account.
17578         Compute location of PR according to the SH5 stack frame.
17579         (arith_reg_operand): Reject branch-target registers.
17580         (shmedia_6bit_operand): New.
17581         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17582         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17583         (target_operand): New.
17584         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17585         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17586         SIBCALL_REGS for SHmedia.
17587         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17588         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17589         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17590         (TARGET_SWITCHES): New SH5 flags.
17591         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17592         VALID_REGISTER_P to disable unsupported registers.
17593         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17594         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17595         (FUNCTION_ARG_PADDING): Define.
17596         (FASTEST_ALIGNMENT): Adjust.
17597         (SH_REGISTER_NAMES_INITIALIZER): New.
17598         (sh_register_names): Declare.
17599         (DEBUG_REGISTER_NAMES): Define.
17600         (REGISTER_NAMES): Define based on sh_register_names.
17601         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17602         (sh_additional_register_names): Declare.
17603         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17604         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17605         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17606         (REGISTER_NATURAL_MODE): Define.
17607         (FIRST_PSEUDO_REGISTER): Adjust.
17608         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17609         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17610         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17611         (VECTOR_MODE_SUPPORTED_P): Define.
17612         (REG_CLASS_CONTENTS): Adjust.
17613         (SMALL_REGISTER_CLASSES): Adjust.
17614         (REG_ALLOC_ORDER): Adjust.
17615         (INDEX_REG_CLASS): Adjust.
17616         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17617         (CONST_OK_FOR_LETTER_P): Adjust.
17618         (PREFERRED_RELOAD_CLASS): Adjust.
17619         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17620         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17621         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17622         (FIRST_FP_PARM_REG): Adjust.
17623         (CALL_POPS_ARGS): Define.
17624         (FUNCTION_ARG_REGNO_P): Adjust.
17625         (struct sh_args): New fields.
17626         (GET_SH_ARG_CLASS): Adjust.
17627         (INIT_CUMULATIVE_ARGS): Adjust.
17628         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17629         (FUNCTION_ARG_ADVANCE): Adjust.
17630         (FUNCTION_ARG): Adjust.
17631         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17632         (FUNCTION_ARG_CALLEE_COPIES): Define.
17633         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17634         (STRICT_ARGUMENT_NAMING): Define.
17635         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17636         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17637         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17638         (SETUP_INCOMING_VARARGS): Adjust.
17639         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17640         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17641         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17642         (SUBREG_OK_FOR_INDEX_P): Adjust.
17643         (EXTRA_CONSTRAINT_S): Update.
17644         (EXTRA_CONSTRAINT_T): New.
17645         (EXTRA_CONSTRAINT): Adjust.
17646         (GO_IF_LEGITIMATE_INDEX): Adjust.
17647         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17648         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17649         (MOVE_MAX): Adjust.
17650         (MAX_MOVE_MAX): Define.
17651         (Pmode): Adjust.
17652         (CONST_COSTS): Adjust.
17653         (REGISTER_MOVE_COST): Adjust.
17654         (BRANCH_COST): Adjust.
17655         (TEXT_SECTION_ASM_OP): Adjust.
17656         (DBX_REGISTER_NUMBER): Adjust.
17657         (ASM_OUTPUT_DOUBLE_INT): New.
17658         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17659         (PREDICATE_CODES): Adjust.
17660         (PROMOTE_MODE): Adjust.
17661         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17662         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17663         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17664         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17665         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17666         (TR0_REG, TR1_REG, TR2_REG): New.
17667         (XD0_REG): Renumber.
17668         (UNSPEC_COMPACT_ARGS): New.
17669         (type): Added pt and ptabs.
17670         (length): Default to 4 on SHmedia.  Default pt length to 12
17671         and     20 on SHmedia32 and SHmedia64, respectively.
17672         (pt): New function unit.
17673         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17674         Add whitespace between operands of SHmedia instructions.
17675         (movdicc): Fix.
17676         (adddi3_media, addsi3_media): Adjust constraints.
17677         (subsi3) [SHmedia]: Force operand 1 into a register.
17678         (udivsi3_i1_media, udivsi3_i4_media): New.
17679         (udivsi3): Support SHmedia.
17680         (divsi3_i1_media, divsi3_i4_media): New.
17681         (divsi3): Support SHmedia.
17682         (anddi3, iordi3, xordi3): Adjust constraints.
17683         (zero_extendhidi2, zero_extendqidi2): New.
17684         (extendsidi2, extendhidi2, extendqidi2): New.
17685         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17686         (pop_e, pop_fpul, pop_4): Likewise.
17687         (movsi_media): Support FP and BT registers.
17688         (movsi_media_nofpu): New.  Adjust splits to DImode.
17689         (lduw, ldub): Renamed to zero_extend* above.
17690         (movqi_media): Fix typo.
17691         (movdi_media): Support FP and BT registers.
17692         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17693         (movdi_const_32bit): New.
17694         (shori_media): Require immediate operand.  Use `u' for output.
17695         (movdf_media, movsf_media): Simplified.
17696         (movdf_media_nofpu, movsf_media_nofpu): New.
17697         (movdf, movsf): Adjust
17698         (movv2sf, movv2sf, movv16sf): New.
17699         (beq_media, beq_media_i): Adjust constraints.  Don't use
17700         scratch BT register.
17701         (bne_media, bne_media_i): Likewise.
17702         (bgt_media, bgt_media_i): Likewise.
17703         (bge_media, bge_media_i): Likewise.
17704         (bgtu_media, bgtu_media_i): Likewise.
17705         (bgeu_media, bgeu_media_i): Likewise.
17706         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17707         bunordered): Emit jump insn.  Force operands to registers when
17708         needed.
17709         (jump_media, jump): Simplify.
17710         (call_compact, call_compact_rettramp): New.
17711         (call_value_compact, call_value_compact_rettramp): New.
17712         (call_media, call_value_media): Simplify.
17713         (sibcall_compact, sibcall_media): New.
17714         (call, call_value): Adjust for SHmedia and SHcompact.
17715         (sibcall, sibcall_value, untyped_call): Likewise.
17716         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17717         (indirect_jump): Adjust for SHmedia.
17718         (casesi_jump_media): New.
17719         (nop): Re-enable for SHmedia.
17720         (call_site): Restrict to SH1.
17721         (casesi): Adjust for SHmedia.
17722         (casesi_shift_media, casesi_load_media): New.
17723         (return): Explicitly use PR register.  Call return trampoline
17724         on SHcompact.
17725         (return_i): Explicitly use PR register.
17726         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17727         (return_media): Adjust.
17728         (shcompact_incoming_args): New.
17729         (epilogue): Adjust.
17730         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17731         (movstrsi): Disable on SH5.
17732         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17733         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17734         (subsf3, subsf3_media): Likewise.
17735         (mulsf3, mulsf3_media, mac_media): Likewise.
17736         (divsf3, divsf3_media): Likewise.
17737         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17738         (floatsisf2, fux_truncsfsi2): Likewise.
17739         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17740         constraints.
17741         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17742         (cmpunsf_media, cmpsf): Likewise.
17743         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17744         (abssf2, abssf2_media): Likewise.
17745         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17746         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17747         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17748         (floatsidf2, fix_truncdfsi2): Likewise.
17749         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17750         constraints.
17751         (cmpeqdf_media, cmpgtdf_media): Likewise.
17752         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17753         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17754         (absdf2, absdf2_media): Likewise.
17755         (extendsfdf2, extendsfdf2_media): Likewise.
17756         (truncsfdf2, truncsfdf2_media): Likewise.
17757         * config/sh/sh64.h: New file.
17758         * config/sh/t-sh64: New file.
17759         * config/sh/shmedia.h: New file.
17760         * config/sh/ushmedia.h: New file.
17761         * config/sh/sshmedia.h: New file.
17762         * configure.in: Added sh64-*-elf.
17763         * configure: Rebuilt.
17764         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17765         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17766         (reg_class_from_letter): Use `b' for TARGET_REGS.
17767         (print_operand): Support `%M', `%m', `AND' and
17768         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17769         (andcosts): Adjust for SHmedia.
17770         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17771         Likewise.
17772         (target_reg_operand): New function.
17773         * config/sh/sh-protos.h (target_reg_operand): Declare.
17774         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17775         FP registers on SH5.
17776         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17777         on SH4.
17778         (TARGET_REGISTER_P): New macro.
17779         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17780         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17781         (EXTRA_CONSTRAINT_S): New macro.
17782         (EXTRA_CONSTRAINT): Adjust.
17783         (FLOAT_TYPE_SIZE): Define to 32.
17784         (Pmode): DImode on SHmedia.
17785         (CONST_COSTS): Adjust for SHmedia literals.
17786         (PREDICATE_CODES): Added target_reg_operand.
17787         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17788         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17789         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17790         (cmpdi): Accept SHmedia.
17791         (movdicc_false, movdicc_true): New insns.
17792         (movdicc): New expand.
17793         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17794         no_new_pseudos.
17795         (addsi3_media): Match `S' constraint.
17796         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17797         (negdi2): Expand for SHmedia.
17798         (one_cmpldi2): New expand.
17799         (zero_extendsidi2): Change from expand to insn.
17800         (extendsidi2): Add constraints.
17801         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17802         LD/ST address.  Fix SI immediate loading split.
17803         (movhi_media, movqi_media, lduw, ldub): New insns.
17804         (movhi, movqi): Accept SHmedia.
17805         (shori_media, movdi_media): Relax input constraints.  Split
17806         symbolic constants.
17807         (movdf_media, movsf_media): New insn.  New split to movdi.
17808         (movdf, movsf): Match on SHmedia.
17809         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17810         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17811         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17812         (bunordered): New expand.
17813         (jump_compact): Renamed from `jump'.
17814         (jump_media): New insn.
17815         (jump): New expand.
17816         (call_media, call_value_media): New insns.
17817         (call, call_value): Adjust.
17818         (indirect_jump_compact): Renamed from `indirect_jump'.
17819         (indirect_jump_media): New insn.
17820         (indirect_jump): New expand.
17821         (untyped_call, return): Accept SHmedia.
17822         (return_media): New insn.
17823         (prologue, epilogue, blockage): Accept SHmedia.
17824         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17825         (sunordered): New expand.
17826         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17827         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17828         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17829         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17830         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17831         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17832         abssf2_media): New insns.
17833         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17834         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17835         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17836         floatdidf2, floatsidf2_media, fix_truncdfdi2,
17837         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17838         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17839         absdf2_media): New insns.
17840         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17841         (extendsfdf2_media, truncdfsf2_media): New insns.
17842         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
17843         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17844         * config/sh/sh.h (CONST_OK_FOR_J): Document.
17845         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17846         * config/sh/sh.md (adddi3): New expand.
17847         (adddi3_media, adddi3z_media): New insns.
17848         (adddi3_compact): Renamed from adddi3.
17849         (addsi3_media): Use add.l r63 to add constant zero.
17850         (subdi3): New expand.
17851         (subdi3_media): New insn.
17852         (subdi3_compact): Renamed from subdi3.
17853         (mulsidi3): New expand.
17854         (mulsidi3_media): New insn.
17855         (mulsidi3_compact): Renamed from mulsidi3.
17856         (umulsidi3): New expand.
17857         (umulsidi3_media): New insn.
17858         (umulsidi3_compact): Renamed from umulsidi3.
17859         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17860         (ashlsi3, ashrsi3, lshrsi3): Use them.
17861         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17862         (ashldi3, ashrdi3, lshrdi3): Use them.
17863         (zero_extendsidi2): New expand.
17864         (extendsidi2): New insn.
17865         (movsi_media): New insn.  Split to movdi to load constants.
17866         (movsi): Enable for shmedia.
17867         (movdi_media): New insn.  Use shori_media to load wide constants.
17868         (short_media): New insn.
17869         (movdi): Enable for shmedia.
17870         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
17871         * config/sh/sh.h (CPP_SPEC): Added `m5'.
17872         (SUBTARGET_CPP_SPEC): Added `!m5'.
17873         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17874         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
17875         to all other SH variants.
17876         (TARGET_DEFAULT): Set to SH1_BIT.
17877         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17878         (BITS_PER_WORD): Raise to 64 on shmedia.
17879         (MAX_BITS_PER_WORD): Change to 64.
17880         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17881         (INT_TYPE_SIZE): Keep as 32.
17882         (UNITS_PER_WORD): Raise to 8 on shmedia.
17883         (MIN_UNITS_PER_WORD): Keep as 4.
17884         (POINTER_SIZE): Raise to 64 on shmedia.
17885         (CONST_OK_FOR_J): New macro.
17886         (CONST_OK_FOR_LETTER_P): Use it.
17887         (processor_type): Add PROCESSOR_SH5.
17888         * config/sh/sh.md: Conditionalize all expands, insns and
17889         splits to TARGET_SH1.
17890         (cpu): Added sh5.
17891         (addsi3_compact): Renamed from...
17892         (addsi3): Now an expand.
17893         (addsi3_media, subsi3_media): New insns.
17894         (subsi3): Don't negate constants with SHmedia.
17895
17896         * hooks.c: New file.
17897         * hooks.h: New file.
17898         * Makefile.in (HOOKS_H): New.
17899         (TARGET_DEF_H): Added $(HOOKS_H).
17900         (OBJS): Added hooks.o.
17901         (cfgcleanup.o, bb-reorder.o): Added target.h.
17902         (hooks.o): Added dependencies.
17903         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17904         (TARGET_INITIALIZER): this.
17905         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17906         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17907         * bb-reorder.c: Include target.h.
17908         (reorder_basic_blocks): Skip if cannot modify jumps.
17909         * cfgcleanup.c: Include target.h.
17910         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17911
17912 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17913
17914         * config/mips/mips.md (casesi_internal, casesi_internal_di):
17915         Protect jump delay slot instructions with .set noreorder and
17916         .set nomacro.
17917
17918 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17919
17920         * config/mips/mips.md (casesi_internal_di): Calculate
17921         the index into the target offset table correctly.
17922
17923 2002-02-08  Richard Henderson  <rth@redhat.com>
17924
17925         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17926         * final.c (output_addr_const): Accept and discard SUBREG.
17927         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17928         mark them unknown instead.
17929         (simplify_subtraction): Handle RTX_UNKNOWN.
17930         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17931
17932 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
17933
17934         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17935
17936 2002-02-08  Richard Henderson  <rth@redhat.com>
17937
17938         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17939
17940 2002-02-08  Andreas Jaeger  <aj@suse.de>
17941
17942         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17943         * config/i386/t-linux64: New file.
17944
17945 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
17946
17947         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17948         * c-parse.in (compstmt): Clear last_expr_type.
17949
17950 2002-02-07  Richard Henderson  <rth@redhat.com>
17951
17952         * loop.c (strength_reduce): Sink final_value when not
17953         eliminating a biv.
17954
17955 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
17956
17957         * config/sparc/freebsd.h: Fix mismatched spec {.
17958
17959 2002-02-07  Richard Henderson  <rth@redhat.com>
17960
17961         * cfgrtl.c: Include recog.h and insn-config.h.
17962         (keep_with_call_p): Fix general_operand invocation.
17963         * Makefile.in (cfgrtl.o): Update dependencies.
17964
17965 2002-02-07  Kazu Hirata  <kazu@hxi.com>
17966
17967         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17968         comment.  Accept HImode only if TARGET_H8300.
17969
17970 2002-02-07  Eric Christopher  <echristo@redhat.com>
17971
17972         * config/mips/crtn.asm: Cleanup #ifdefs.
17973
17974 2002-02-07  Eric Christopher  <echristo@redhat.com>
17975
17976         * config/mips/crti.asm: Add changes for mips16. mips16 uses
17977         register 7 as RA instead of $31.
17978         * config/mips/crtn.asm: Ditto.
17979         * config/mips/mips.c (mips_move_2words): Add case for
17980         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17981         (compute_frame_size): Fix typo.
17982         (save_restore_insns): Ditto.  Make documentation about using
17983         register $7 as return register more precise.
17984         (mips_expand_epilogue): Fix comment. Add code to work around not
17985         being able to add to the stack pointer directly.
17986         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17987         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17988         epilogue.
17989
17990 2002-02-07  Tom Rix  <trix@redhat.com>
17991
17992         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17993         immediates in ldu and stdu DS opcode field.
17994         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17995         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17996         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17997
17998 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
17999
18000         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
18001         offset for stack bias.
18002
18003 2002-02-07  H.J. Lu <hjl@gnu.org>
18004
18005         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
18006
18007 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
18008
18009         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
18010
18011 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
18012
18013         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
18014         * i386.c (x86_order_regs_for_local_alloc): New global function.
18015         * i386.h (REG_ALLOC_ORDER): CLeanup.
18016         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
18017
18018 2002-02-07  Richard Henderson  <rth@redhat.com>
18019
18020         PR optimization/2463
18021         * alias.c (find_base_value): Recall base values for fixed hard regs.
18022         * loop.c (loop_regs_update): Don't use single_set on non-insns.
18023
18024 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
18025
18026         * config/mips/mips.md (define_delay) [mips16]: Adjust required
18027         length.
18028
18029 2002-02-06  Richard Henderson  <rth@redhat.com>
18030
18031         PR c/5609
18032         * stmt.c (resolve_operand_name_1): Take more care with mixed
18033         named and unnamed operands.
18034
18035 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
18036             Jan Hubicka  <jh@suse.cz>
18037
18038         * loop.c (remove_constant_addition): Avoid clobbering a shared
18039         CONST expression.
18040
18041 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
18042
18043         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
18044         * config/s390/t-linux64: New file.
18045         * config/s390/libgcc-glibc.ver: New file.
18046
18047 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
18048
18049         * config/s390/linux64.h: Delete file.
18050         * config/s390/s390x.h: New file.
18051         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
18052         as target header file.
18053         * config/s390/linux.h (TARGET_VERSION): Define depending on
18054         DEFAULT_TARGET_64BIT.
18055         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
18056         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
18057         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
18058         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
18059         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
18060         (EXTRA_SPEC): New define.
18061         * config/s390/s390.h (TARGET_VERSION): Define depending on
18062         DEFAULT_TARGET_64BIT.
18063         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
18064
18065 2002-02-06  Jason Merrill  <jason@redhat.com>
18066
18067         * c-decl.c (finish_function): Warn about a non-void function with
18068         no return statement and no abnormal exit.
18069         (current_function_returns_abnormally): New variable.
18070         (start_function): Clear it.
18071         (struct c_language_function): Add returns_abnormally.
18072         (push_c_function_context): Save it.
18073         (pop_c_function_context): Restore it.
18074         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
18075         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
18076         an explicit return type.
18077         * c-tree.h: Declare current_function_returns_abnormally.
18078         (C_FUNCTION_IMPLICIT_INT): New macro.
18079         * c-typeck.c (build_function_call): Set it.
18080         (c_expand_return): Set current_function_returns_value even if the
18081         value is erroneous.
18082
18083 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18084
18085         PR c/5420:
18086         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
18087         unsafe for reevaluation.
18088
18089 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18090
18091         PR c/5482:
18092         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
18093         EXPR_STMT, but COMPOUND_STMT, recurse into it.
18094
18095 2002-02-06  Richard Henderson  <rth@redhat.com>
18096
18097         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
18098         be a general_operand.  Dest for function value must be a pseudo.
18099
18100 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
18101
18102         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
18103         as SYMBOL_REFs from the constant pool.
18104
18105 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
18106
18107         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
18108         passed by invisible reference.
18109
18110 2002-02-05  Richard Henderson  <rth@redhat.com>
18111
18112         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
18113
18114 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
18115
18116         Implement using "base addresses" in insn operands as default.
18117         * config/mmix/mmix.c (mmix_conditional_register_usage): if
18118         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18119         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18120         used to read the rtx value.
18121         (mmix_target_asm_function_epilogue): Fix spacing.
18122         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18123         (mmix_legitimate_address): Ditto.
18124         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18125         should be loaded with a GETA insn.  Don't allocate needless extra
18126         char for nul termination and fix misleading comment.
18127         (mmix_print_operand_address): Handle constants if
18128         TARGET_BASE_ADDRESSES.
18129         (mmix_output_register_setting): Use base addressing if
18130         TARGET_BASE_ADDRESSES and the number of insns is 3.
18131         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18132         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18133         to use R as constraint, add LDA to match s.
18134         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18135         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18136         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18137         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18138         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18139         order with other fixed registers.
18140         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18141         other parameter/call-clobbered registers.
18142         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18143         -mbase-addresses, -mno-base-addresses.
18144         (MMIX Options): Ditto.
18145
18146 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18147
18148         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18149
18150 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
18151
18152         * config/rs6000/altivec.h: Change elem to _S_elem.
18153
18154 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18155
18156         * config/netbsd.h (WCHAR_TYPE): Define.
18157         (WCHAR_TYPE_SIZE): Ditto.
18158         (WINT_TYPE): Ditto.
18159         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18160         (WCHAR_UNSIGNED): Ditto.
18161         (WCHAR_TYPE_SIZE): Ditto.
18162         (WINT_TYPE): Ditto.
18163         * config/arm/netbsd.h: Likewise.
18164         * config/i386/netbsd-elf.h: Likewise.
18165         * config/i386/netbsd.h: Likewise.
18166         * config/m68k/netbsd-elf.h: Likewise.
18167         * config/m68k/netbsd.h: Likewise.
18168         * config/ns32k/netbsd.h: Likewise.
18169         * config/sparc/netbsd.h: Likewise.
18170         * config/vax/netbsd.: Likewise.
18171
18172 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18173
18174         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18175         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
18176         (TARGET_INITIALIZER): this.
18177         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18178         (BITFIELD_NBYTES_LIMITED): Markup fix.
18179         * tree.h (default_ms_bitfield_layout_p): Declare.
18180         (record_layout_info): Added prev_field.
18181         * tree.c (default_ms_bitfield_layout_p): New fn.
18182         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18183         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18184         * stor-layout.c: Include target.h.
18185         (start_record_layout): Initialize prev_field.
18186         (place_field): Handle MS bit-field layout, and disregard
18187         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18188         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
18189         * Makefile.in (stor-layout.o): Adjust dependencies.
18190
18191 2002-02-05  Jason Merrill  <jason@redhat.com>
18192
18193         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18194
18195 2002-02-05  Andreas Jaeger  <aj@suse.de>
18196
18197         * crtstuff.c: Fix comments.
18198
18199 2002-02-05  Richard Henderson  <rth@redhat.com>
18200
18201         PR fortran/3393
18202         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18203         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18204
18205         PR fortran/3392
18206         * config/mips/mips.c (function_arg): Handle TImode.
18207         (function_arg_advance): Likewise.
18208
18209 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18210
18211         * config/rs6000/altivec.h (vec_step_help): Rename to
18212         __vec_step_help.
18213
18214 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18215
18216         * config/rs6000/altivec.h: Fix typos.
18217
18218 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18219
18220         * config/arm/netbsd.h: Correct a comment.
18221
18222 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18223
18224         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18225         building void typed builtins.
18226
18227         * config/rs6000/altivec.h (vec_ld*): Fix typos.
18228         (vec_step): Implement for C++.
18229
18230 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18231
18232         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18233
18234 2002-02-04  Richard Henderson  <rth@redhat.com>
18235
18236         * combine.c (nonzero_bits): Re-introduce special case for
18237         sp/fp/ap wrt REGNO_POINTER_ALIGN.
18238
18239 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18240
18241         * doc/extend.texi: Warn about unsupported usage of altivec
18242         builtins.
18243
18244         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18245         (altivec_predicate_*): New.
18246
18247         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18248         Add C++ version of vec_*() functions.
18249
18250         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18251         (bdesc_2arg): Remove altivec predicates.
18252         (altivec_expand_builtin): Handle predicates.
18253         (altivec_init_builtins): Handle predicates.
18254         (altivec_expand_predicate_builtin): New.
18255
18256 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18257
18258         * pa.c (DO_FRAME_NOTES): Move forward.
18259         (store_reg): Revise handling of frame notes.
18260         (load_reg): Likewise.
18261         (set_reg_plus_d): Likewise.
18262         (hppa_expand_prologue): Likewise.
18263         (hppa_expand_epilogue): Likewise.
18264
18265 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18266
18267         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18268
18269 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18270
18271         PR c/4475, c++/3780:
18272         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18273         * c-common.h (SWITCH_TYPE): Define.
18274         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18275         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18276         Rename spareness variable to sparseness.
18277         (expand_end_case_type): Renamed from expand_end_case, use orig_type
18278         if non-NULL instead of TREE_TYPE (orig_index).
18279         * tree.h (expand_end_case_type): Renamed from expand_end_case.
18280         (expand_end_case): Define using expand_end_case_type.
18281         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18282         to expand_end_case_type.
18283         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18284
18285 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18286
18287         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18288         (BIGGEST_ALIGNMENT): Change to 128.
18289
18290 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18291
18292         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18293
18294 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18295
18296         * pa.md (call_internal_reg_64bit): Remove unused variable.
18297
18298 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18299
18300         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18301         field.
18302         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18303         * config/arm/arm.c (current_function_anonymous_args): Delete,
18304         replace uses with cfun->machine->uses_anonymous_args.
18305         (arm_reorg): Do not reset uses_anonymous_args.
18306
18307         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18308         any geenral register.
18309
18310 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18311
18312         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18313         the entry block.
18314
18315 2002-02-04  Richard Henderson  <rth@redhat.com>
18316
18317         * combine.c (force_to_mode): Remove STACK_BIAS code.
18318         (nonzero_bits): Likewise.  Replace sp/fp special case with
18319         REGNO_POINTER_ALIGN.
18320
18321         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18322         (HARD_FRAME_POINTER_REGNUM): New.
18323         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18324         (FIXED_REGS, CALL_USED_REGS): Update.
18325         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18326         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18327         (HARD_REGNO_NREGS): Update for SFP.
18328         (STACK_POINTER_OFFSET): Include bias here ...
18329         (FIRST_PARM_OFFSET): ... not here.
18330         (STACK_BIAS): Remove.
18331         (INIT_EXPANDERS): New.
18332         (STARTING_FRAME_OFFSET): Do not include bias.
18333         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18334         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18335         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18336         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18337         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18338         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18339         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18340         (MUST_SAVE_REGISTER): Likewise.
18341         (sparc_flat_function_prologue): Likewise.
18342         (sparc_flat_function_epilogue): Likewise.
18343         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18344         (sparc_init_modes): SFP is GENERAL_REGS.
18345         (sparc_builtin_saveregs): SFP does not have bias applied.
18346
18347 2002-02-04  Richard Henderson  <rth@redhat.com>
18348
18349         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18350         current_function_is_thunk.
18351         (alpha_sa_mask): Distinguish between current_function_is_thunk
18352         called from ASM_OUTPUT_MI_THUNK and not.
18353         (alpha_does_function_need_gp): Thunks always need gp.
18354         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18355         (alpha_output_mi_thunk_osf): New.
18356         * config/alpha/alpha-protos.h: Update.
18357         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18358
18359 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18360
18361         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18362         function types, not when they're taken away.
18363
18364 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18365
18366         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18367         CODE_LABEL and jump table when replacing a table jump with a
18368         simple jump.
18369
18370 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18371
18372         * config/s390/s390-protos.h (legitimize_la_operand,
18373         s390_secondary_input_reload_class, s390_plus_operand,
18374         s390_expand_plus_operand): Add prototypes.
18375
18376         config/s390/s390.c (s390_secondary_input_reload_class,
18377         s390_plus_operand, s390_expand_plus_operand): New functions.
18378
18379         (struct s390_address): New member 'pointer'.
18380         (s390_decompose_address): Compute it.
18381         (legitimate_la_operand_p): Use it.
18382         (legitimize_la_operand): New function.
18383         (movti, movdi, movdf splitters): Call it.
18384
18385         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18386         (PREDICATE_CODES): Add s390_plus_operand.
18387
18388         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18389         (la_ccclobber): Allow GENERAL_REGS as output operand.
18390
18391         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18392         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18393         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18394
18395 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18396
18397         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18398         register names for regular asm () construct.
18399
18400 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18401
18402         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18403         registers.
18404
18405 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18406
18407         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18408         pat for recog.
18409
18410 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18411
18412         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18413         constant pool to be identical by string address and index.
18414
18415 2002-02-04  Anthony Green  <green@redhat.com>
18416
18417         * output.h (SECTION_OVERRIDE): Define.
18418         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18419
18420 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18421
18422         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18423         by existing arm*-*-netbsd* (a.out) target.
18424         (ns32k-*-netbsdelf*): Likewise.
18425         (sparc-*-netbsdelf*): Likewise.
18426         (vax-*-netbsdelf*): Likewise.
18427
18428 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18429
18430         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18431         headers and libobjc headers.
18432
18433 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18434
18435         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18436         (_mingw.h): Remove duplicate include.
18437
18438 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18439
18440         * config.gcc: Set cpu_type to m68k for 68010, as well.
18441         (m68010-*-netbsdelf*): New...
18442         (m68k*-*-netbsdelf*): ...targets.
18443         * config/m68k/netbsd-elf.h: New file.
18444
18445 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18446
18447         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18448
18449 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18450
18451         * config/h8300/h8300.c (h8_push_ops): Move inside
18452         h8300_init_once.
18453         (h8_pop_ops): Likewise.
18454         (h8_move_ops): Likewise.
18455
18456 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18457
18458         * config/h8300/h8300.c (os_task): Make it static.
18459         (monitor): Likewise.
18460         (pragma_saveall): Likewise.
18461
18462 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18463
18464         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18465         constant is a valid sign-extension for Pmode.
18466
18467 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18468
18469         * config/h8300/h8300.c: Fix formatting.
18470
18471 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18472
18473         * config/h8300/h8300.md: Fix formatting.
18474
18475 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18476
18477         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18478         predicates of operands[1].  Split the patterns for each
18479         processor variant.
18480
18481 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18482
18483         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18484         of operands[1] to register_operand.
18485
18486 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18487
18488         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18489         * cpphash.c (_cpp_init_hashtable): Similarly.
18490         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18491         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18492         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18493         (cpp_handle_option): Handle the new options.
18494         * cpplex.c (cpp_interpret_charconst): Use new flag.
18495         * cpplib.h (struct cpp_options): New member signed_char.
18496         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18497         (cpp_options): Handle -fsigned-char and -funsigned-char.
18498         (static_specs): Remove signed_char_spec.
18499         (do_spec1): Don't handle %c.
18500         * system.h: Poison SIGNED_CHAR_SPEC.
18501         * tradcif.y (yylex): Use flag_signed_char.
18502         * tradcpp.h (flag_signed_char): New.
18503         * tradcpp.c (flag_signed_char): New.
18504         (main): Handle new command-line options.
18505         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18506 config:
18507         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18508         * avr/avr.h: Remove old comments.
18509         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18510         (CC1_SPEC): Pass -fsigned-char if -mic*.
18511         (SIGNED_CHAR_SPEC): Remove.
18512 doc:
18513         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18514
18515 2002-02-01  Eric Christopher  <echristo@redhat.com>
18516
18517         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18518         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18519         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18520         (ASM_OUTPUT_REG_POP): Ditto.
18521
18522 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18523
18524         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18525         patch.
18526
18527 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18528
18529         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18530
18531 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18532
18533         PR c/5304:
18534         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18535         unconditionally.
18536
18537 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18538
18539         * cfganal.c: Include tm_p.h.
18540         (keep_with_call_p): Fix the test that determines if a register holds
18541         the return value of a call.
18542
18543 2002-02-01  DJ Delorie  <dj@redhat.com>
18544
18545         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18546         we are given conflicting registers, switch to the other one we
18547         had allocated for us.
18548         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18549         as TImode so we know when the "other" register is available.
18550
18551 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18552
18553         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18554         sparc/sparc_bi.h.
18555
18556 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18557
18558         * cfganal.c (keep_with_call_p): New function.
18559         (flow_call_edges_add): Prevent splitting a block between a call and
18560         a single-set instruction that should be kept in the same block.
18561
18562 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18563
18564         * doc/install.texi (avr): Update outdated URL.
18565
18566 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18567
18568         * config/stormy16/stormy16.md (pushqi): New.
18569         (popqi): New.
18570         (pushhi): New.
18571         (pophi): New.
18572         (movhi): Remove stack operands.
18573         (movqi): Likewise.
18574         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18575         nonimmediate_nonstack_operand.
18576         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18577         New.
18578         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18579         New.
18580
18581 2002-01-31  Jason Merrill  <jason@redhat.com>
18582
18583         * Makefile.in (c-parse.c): Handle .output file.
18584         * objc/Make-lang.in (objc-parse.c): Likewise.
18585
18586 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18587
18588         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18589         the -me[lb] option is given.  Don't output the default flag
18590         twice.
18591
18592 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18593
18594         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18595         the primary source file; this has not been done yet.
18596         * c-decl.c (c_expand_body): Reset input_filename from
18597         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18598
18599 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18600
18601         * rtlanal.c (subreg_regno_offset): Do not use
18602         SUBREG_REGNO_OFFSET.
18603         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18604         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18605
18606 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18607
18608         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18609         version rather than GNATS version in --version output.
18610
18611 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18612
18613         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18614         when copying back from a temporary.
18615
18616 2002-01-30  Richard Henderson  <rth@redhat.com>
18617
18618         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18619         and new_dest are the same.
18620
18621 2002-01-30  Richard Henderson  <rth@redhat.com>
18622
18623         PR opt/5076
18624         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18625         * rtl.c (note_insn_name): Update.
18626         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18627         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18628         to perform loop rotation.
18629         (expand_exit_loop_top_cond): New.
18630         * tree.h (expand_exit_loop_top_cond): Declare it.
18631         * c-semantics.c (genrtl_while_stmt): Use it.
18632         (genrtl_for_stmt): Likewise.
18633
18634 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18635
18636         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18637         arguments to 64-bit boundaries on 64-bit ABIs.
18638
18639 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18640
18641         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18642
18643 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18644
18645         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18646         invalid type.
18647
18648 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18649
18650         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18651         * config/sparc/sparc_bi.h: Remove file.
18652         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18653
18654 2002-01-30  Richard Henderson  <rth@redhat.com>
18655
18656         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18657
18658 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18659
18660         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18661
18662 2002-01-30  Jason Merrill  <jason@redhat.com>
18663
18664         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18665         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18666         (reg_save): Use DW_CFA_offset_extended_sf instead.
18667
18668         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18669
18670 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18671
18672         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18673         in cselib_lookup.
18674
18675 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18676
18677         * rs6000.md ("*call_value_local32"): Remove constraints.
18678         ("*call_value_local64"): Same.
18679         ("*call_value_indirect_nonlocal_aix32"): Same.
18680         ("*call_value_nonlocal_aix32"): Same.
18681         ("*call_value_indirect_nonlocal_aix64"): Same.
18682         ("*call_value_nonlocal_aix64"): Same.
18683         ("*call_value_nonlocal_sysv"): Same.
18684
18685 2002-01-29  Richard Henderson  <rth@redhat.com>
18686
18687         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18688
18689 2002-01-29  Richard Henderson  <rth@redhat.com>
18690
18691         * expr.c (force_operand): Ignore flag_pic for detecting pic
18692         address loads.
18693         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18694         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18695         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18696         instead of open-coded loop.
18697         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18698         be fixed when in use.
18699
18700 2002-01-29  Richard Henderson  <rth@redhat.com>
18701
18702         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18703         * sched-rgn.c (propagate_deps): Update them.
18704         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18705         clobbers list when either gets too long.
18706
18707 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18708
18709         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18710         and INDEX_REGS the same as GENERAL_REGS.
18711         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18712
18713 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18714
18715         * tree.c (build_nonstandard_integer_type): Correct prototype.
18716
18717 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18718
18719         * config/s390/s390.md (movstrsico, movstrdix_64,
18720         movstrsix_31): Remove, replace by ...
18721         (movstrdi_short, movstrsi_short, movstrdi_long,
18722         movstrsi_long): ... these.  New.
18723         (movstrdi, movstrsi): Adapt.
18724
18725         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18726         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18727         Remove unnecessary CC clobber.
18728         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18729         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18730
18731         (divmoddi4): Don't partially initialize TImode register.
18732
18733 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18734
18735         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18736
18737 2002-01-29  Richard Henderson  <rth@redhat.com>
18738
18739         * flow.c (print_rtl_and_abort): Remove.
18740         (print_rtl_and_abort_fcn): Remove.
18741         (verify_local_live_at_start): Use dump_bb instead.
18742         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18743         (verify_wide_reg_1): Return 2 on mode test failure.
18744
18745 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18746
18747         PR c/3325, c/3326, c/2511, c/3347
18748         * c-decl.c (enum_decl_context): Remove BITFIELD.
18749         (grokdeclarator): Take bitfield width as an input.
18750         Ensure bitfields are given the correct type.  Perform
18751         bitfield width validation with build_bitfield_integer_type
18752         rather than waiting for finish_struct.
18753         (grok_typename, grok_typename_in_parm_context, start_decl,
18754         push_parmdecl, grokfield, start_function): Update calls to
18755         grokdeclarator.
18756         (build_bitfield_integer_type): New function.
18757         (finish_struct): Move bitfield validation to grokdeclarator
18758         and build_bitfield_integer_type.
18759         * tree.c (build_nonstandard_integer_type): New function.
18760         * tree.h (build_nonstandard_integer_type): New prototype.
18761 objc:
18762         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18763
18764 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18765
18766         PR other/1502:
18767         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18768         don't ignore unrecognized -W* options.
18769         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18770         * cpplib.h (cpp_handle_option): Adjust prototype.
18771         * c-decl.c (c_decode_options): Pass 0 as last argument to
18772         cpp_handle_option.
18773
18774         PR c/2896:
18775         * gcc.c (cpp_unique_options): Split from cpp_options.
18776         (cpp_options): Source cpp_unique_options.
18777         (default_compilers): Use cpp_unique_options instead of cpp_options
18778         when used together with cc1_options.
18779         (static_specs): Add cpp_unique_options.
18780         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18781         when used together with cc1_options.
18782
18783 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18784
18785         * config/h8300/h8300-protos.h: Update the prototype of
18786         output_a_shift.
18787         * config/h8300/h8300.c (output_a_shift): Remove an unused
18788         argument 'insn'.  Remove redundant code.
18789         * config/h8300/h8300.md: Adust to the new prototype of
18790         output_a_shift.
18791
18792 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18793
18794         * config/h8300/h8300-protos.h: Update the prototypes of
18795         emit_a_rotate and expand_a_rotate.
18796         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18797         first argument to 'enum rtx_code'.
18798         (expand_a_rotate): Likewise.
18799
18800 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18801
18802         * config/h8300/h8300-protos.h: Update the prototype of
18803         output_simode_bld.
18804         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18805         'log2'.
18806         * config/h8300/h8300.md: Adjust to the new prototype.
18807
18808 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18809
18810         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18811         redundant code.
18812
18813 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18814
18815         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18816         is a fixed register before returning pic_offset_table_rtx.
18817         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18818         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18819
18820 2002-01-28  Jason Merrill  <jason@redhat.com>
18821
18822         * dwarf2.h: Sync with src version.
18823
18824 2002-01-28  Paul Koning  <pkoning@equallogic.com>
18825
18826         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18827         BT_FN_VOID_PTR_VAR.
18828         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18829         * doc/extend.texi (__builtin_prefetch): Update documentation:
18830         first argument is now const void ptr.
18831
18832 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18833
18834         * config/h8300/h8300-protos.h: Remove an unused prototype.
18835
18836 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
18837
18838         * toplev.c (lang_independent_init): Round up identifier size.
18839
18840 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18841
18842         * config.gcc: Revert previous change.
18843
18844 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
18845
18846         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18847
18848 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18849
18850         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18851         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
18852         other non-elf netbsd config frags.
18853         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18854         collect2 will does that.
18855         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18856         shared-lib frobbing will work.
18857
18858 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18859
18860         * config/h8300/h8300.h: Fix formatting.
18861         * config/h8300/h8300.md: Likewise.
18862
18863 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
18864
18865         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18866         the old, removed AAA_standards fix.
18867         * fixinc/fixincl.x: Rebuilt.
18868
18869 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
18870
18871         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18872         atexit call in crtbegin, hooked in after call to frame_dummy;
18873         register EH before registering __fini__start.
18874
18875 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
18876
18877         * config/rs6000/altivec.h: Remove spurious semicolons.
18878
18879 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18880
18881         * config/h8300/h8300.md: Replace dead bit extraction patterns
18882         with ones that work.
18883
18884 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18885
18886         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18887         if not STRICT_ALIGNMENT.
18888         * rtl.h (MEM_ALIGN): Likewise.
18889
18890 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18891
18892         * doc/invoke.texi (-fdump-translation-unit): Revert this
18893         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18894
18895 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18896
18897         * config/h8300/h8300.md (define_constants): New.
18898         (anonymous patterns) Use defined constants appropriately.
18899
18900 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18901
18902         * config/h8300/h8300.c (function_arg): Remove redundant code.
18903
18904 2002-01-26  Richard Henderson  <rth@redhat.com>
18905
18906         * sched-deps.c (reg_pending_uses_head): New.
18907         (reg_pending_barrier): Rename from reg_pending_sets_all.
18908         (find_insn_list): Don't mark inline.
18909         (find_insn_mem_list): Remove.
18910         (add_dependence_list, add_dependence_list_and_free): New.
18911         (flush_pending_lists): Replace only_write param with separate
18912         for_read and for_write parameters.  Update all callers.  Use
18913         add_dependence_list_and_free.
18914         (sched_analyze_1): Do not add reg dependencies here; just set
18915         the pending bits.  Use add_dependence_list.
18916         (sched_analyze_2): Likewise.
18917         (sched_analyze_insn): Replace schedule_barrier_found with
18918         reg_pending_barrier.  Add all dependencies for pending reg
18919         uses, sets, and clobbers.
18920         (sched_analyze): Don't add reg dependencies for calls, just
18921         set pending bits.  Use regs_invalidated_by_call.  Treat
18922         sched_before_next_call as a normal list, not a fake insn.
18923         (init_deps): No funny init for sched_before_next_call.
18924         (free_deps): Free pending mems lists.  Don't zero reg_last.
18925         (init_deps_global): Init reg_pending_uses.
18926         (finish_deps_global): Free it.
18927         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
18928         (find_insn_mem_list): Remove.
18929         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18930         (propagate_deps): Use them.  Zero temp mem lists.
18931
18932 2002-01-26  Richard Henderson  <rth@redhat.com>
18933
18934         * Makefile.in (CRTSTUFF_CFLAGS): New.
18935         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18936         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18937         crtstuff.c instead of alpha assembly version.
18938         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18939         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
18940         not FORCE_{INIT,FINI}_SECTION_ALIGN.
18941         (__do_global_dtors_aux): Mark used.
18942         (frame_dummy, __do_global_ctors_aux): Mark used.
18943         (fini_dummy, init_dummy): Remove.
18944
18945         * config/alpha/crtbegin.asm: Remove file.
18946         * config/alpha/crtend.asm: Remove file.
18947         * config/alpha/t-crtbe: Remove file.
18948         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18949         (LINK_EH_SPEC): New.
18950
18951         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18952         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
18953         calling constructors.
18954         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18955
18956         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18957         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18958         CRT_END_INIT_DUMMY hack.
18959         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18960         FORCE_{INIT,FINI}_SECTION_ALIGN.
18961
18962         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18963         FORCE_{INIT,FINI}_SECTION_ALIGN.
18964
18965         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18966         invocation sequence.
18967         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18968
18969         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18970         (FORCE_CODE_SECTION_ALIGN): New.
18971
18972 2002-01-26  Richard Henderson  <rth@redhat.com>
18973
18974         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18975
18976 2002-01-26  Richard Henderson  <rth@redhat.com>
18977
18978         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18979         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18980
18981 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18982
18983         * config/h8300/h8300.md: Remove bit extraction patterns that
18984         cannot be triggered.
18985         Restrict each bit extraction pattern to a variant on which the
18986         pattern is tested.
18987
18988 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
18989
18990         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18991
18992 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18993
18994         * config/h8300/h8300.md: Remove bit test patterns that cannot
18995         be triggered.
18996         Restrict each bit test pattern to a variant on which the
18997         pattern is tested.
18998
18999 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19000
19001         * builtins.c (expand_builtin_strncat): Remove redundant check for
19002         INTEGER_CST.
19003
19004 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
19005
19006         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
19007         default setting.
19008         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
19009         existing setting.
19010
19011 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
19012
19013         * dbxout.c (dbxout_init): Use assemble_name rather than just
19014         stripping off the first character.
19015         (dbxout_source_file): Likewise.
19016
19017 2002-01-25  DJ Delorie  <dj@redhat.com>
19018
19019         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
19020         using rtx_equal_p, not by comparing pointers.
19021
19022 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
19023
19024         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
19025         for PIC_OFFSET_TABLE_REGNUM.
19026         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
19027
19028 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
19029
19030         * config.gcc (x86_64-*-freebsd*): New target.
19031         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
19032         value.
19033         (i[34567]86-*-freebsd*): Don't include svr4.h.
19034         * config/i386/freebsd64.h: New file.
19035
19036 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
19037
19038         * config/alpha/x-vms (version): Make static.
19039
19040         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
19041         in previous checkin.
19042
19043         * Makefile.in (install-headers-cp): New target.
19044         * config.gcc (alpha-dec-*vms*): Install headers with
19045         install-headers-cp
19046
19047 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
19048
19049         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
19050         avoid it's copies.
19051
19052 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19053
19054         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
19055         of compare_tree_int.
19056         (expand_builtin_strncat): Likewise.
19057         * c-decl.c (finish_struct): Use tree_low_cst.
19058         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
19059         * tree.c (compare_tree_int): Likewise.
19060
19061 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
19062
19063         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
19064         adjustments even if they are implemented by more than two insns.
19065
19066 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
19067
19068         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
19069         * df.h (struct ref): Kill B.
19070         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
19071
19072         * basic-block.h (PROP_EQUAL_NOTES): New flag.
19073         * flow.c (propagate_one_insn): Use it.
19074         (mark_used_regs): Handle NIL.
19075
19076 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
19077
19078         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
19079         to help folding.
19080
19081 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
19082
19083         * rs6000.md (prefetch): Make address V4SI mode so that the address
19084         is restricted to legitimate form for instruction.
19085
19086 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
19087
19088         * doc/install.texi (xtensa-*-elf): New target.
19089         (xtensa-*-linux*): New target.
19090         * doc/contrib.texi: Add myself.
19091
19092 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
19093
19094         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
19095         purpose register to hold an SImode (or smaller) value.
19096
19097 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
19098
19099         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
19100         registry only.
19101         * crtstuff.c: Likewise.
19102
19103 2002-01-25  Kazu Hirata  <kazu@hxi.com>
19104
19105         * config/h8300/h8300.md (negation patterns): Tighten
19106         predicates to register_operand.
19107
19108 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
19109
19110         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
19111         mode, not Pmode.
19112
19113         * builtins.c (expand_builtin_prefetch): Same.
19114
19115 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19116
19117         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19118         modes.
19119
19120 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19121
19122         * config/h8300/h8300.c (print_operand): Remove support for
19123         operand character 'A'.
19124         * config/h8300/h8300.md (three anonymous patterns): Replace
19125         operand character 'A' with either 'T' or 'S'.
19126
19127 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19128
19129         * config/h8300/h8300.c (print_operand): Remove support for
19130         operand character 'U'.
19131
19132 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
19133
19134         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19135
19136 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
19137
19138         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19139         values to be assigned to the stack pointer.
19140
19141 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19142
19143         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19144         to const_double needs to be done right for big-endian systems.
19145
19146 2002-01-24  Jason Merrill  <jason@redhat.com>
19147
19148         PR c++/2432
19149         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19150         to can_throw_internal.
19151
19152 2002-01-23  Richard Henderson  <rth@redhat.com>
19153
19154         * fold-const.c (fold): Change UINT_MAX test to check vs precision
19155         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
19156
19157 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19158
19159         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19160         (symGOT2reg): Use them, then set as GOT value as unchanging.
19161         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
19162         as a temporary, if possible.
19163         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
19164         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19165
19166 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19167
19168         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19169         accept to accept 0x80 as operands[2].
19170
19171 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19172
19173         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19174
19175 2002-01-23  Richard Henderson  <rth@redhat.com>
19176
19177         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19178
19179 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
19180
19181         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19182         (parmlist_or_identifiers_1): Verify that only a parmlist follows
19183         an attribute.
19184
19185 2002-01-23  Richard Henderson  <rth@redhat.com>
19186
19187         * expr.c (move_by_pieces_1): Extend size before negation.
19188
19189         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19190         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19191         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19192         * config/m68k/t-m68kelf: Likewise.
19193
19194 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
19195
19196         * config/xtensa/elf.h: New file.
19197         * config/xtensa/lib1funcs.asm: New file.
19198         * config/xtensa/lib2funcs.S: New file.
19199         * config/xtensa/linux.h: New file.
19200         * config/xtensa/t-xtensa: New file.
19201         * config/xtensa/xtensa-config.h: New file.
19202         * config/xtensa/xtensa-protos.h: New file.
19203         * config/xtensa/xtensa.c: New file.
19204         * config/xtensa/xtensa.h: New file.
19205         * config/xtensa/xtensa.md: New file.
19206         * config.gcc (xtensa-*-elf*): New target.
19207         (xtensa-*-linux*): New target.
19208         * cse.c (canon_hash): Compare rtx pointers instead of register
19209         numbers.  This is required for the Xtensa port.
19210         * integrate.c (copy_insn_list): Handle case where the static
19211         chain is in memory and the memory address has to be copied to
19212         a register.
19213         * doc/invoke.texi (Option Summary): Add Xtensa options.
19214         (Xtensa Options): New node.
19215         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19216
19217 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19218
19219         * diagnostic.c (internal_error): Do ICE suppression only
19220         when ENABLE_CHECKING is not defined.
19221
19222         * c-typeck.c (require_complete_type): Return error_mark_node
19223         if type is error_mark_node.
19224
19225 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
19226
19227         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19228         -Os and issue a warning.
19229
19230 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19231
19232         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19233         current (lack of) need for host configuration by hand.
19234
19235         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19236         references.  Documentation of some target macros moved from
19237         hostconfig.texi to tm.texi.
19238
19239 2002-01-23  Will Cohen  <wcohen@redhat.com>
19240
19241         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19242         defined.
19243
19244 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19245
19246         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19247         operand[3].
19248
19249 2002-01-23  Jason Merrill  <jason@redhat.com>
19250
19251         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19252
19253         * function.c (assign_parms): Don't put args of inline functions
19254         into registers when not optimizing.
19255
19256 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
19257
19258         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19259         (prologue_use): New pattern.
19260         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19261         preference to gen_rtx_USE.
19262         (thumb_expand_prologue): Use gen_prologue_use in preference to
19263         gen_rtx_USE.
19264         (thumb_expand_epilogue): Use gen_prologue_use in preference to
19265         gen_rtx_USE.
19266
19267 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
19268
19269         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19270
19271 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19272
19273         PR c/3504
19274         * doc/extend.texi: Correct documentation of __alignof__.
19275
19276 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
19277
19278         * params.h: Rename arguments of DEFPARAM so that it will be
19279         recognized as a translation keyword.
19280
19281 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19282
19283         * extend.texi: Document altivec functions.
19284         Fix N-bit adjectives in X86 builtin documentation.
19285
19286 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19287
19288         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19289         auto_inc_dec values.
19290
19291 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
19292
19293         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19294         after backslash.
19295         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19296
19297 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19298
19299         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19300
19301 2002-01-22  Richard Henderson  <rth@redhat.com>
19302
19303         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19304         copy_insn not copy_rtx.
19305
19306 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19307
19308         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19309         "nonzero" as that might add "1" bits.  Ensure "constop" is
19310         properly sign extened.
19311         (force_to_mode): Tweak for sign extended constop.
19312
19313 2002-01-22  Richard Henderson  <rth@redhat.com>
19314
19315         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19316         for_each_rtx instead of assuming we're already looking at the MEM.
19317         (split_small_symbolic_mem_operand): Likewise.
19318         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19319         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19320
19321 2002-01-22  Richard Henderson  <rth@redhat.com>
19322
19323         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19324         sequence number for the literal.
19325         (divmoddi_internal_er): Likewise.
19326
19327 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19328
19329         PR java/4972
19330         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19331         in LIBICONV variable.
19332         * configure: Regenerated.
19333
19334 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19335
19336         * dependence.c (build_def_use): Remove array_idx.
19337
19338         * dwarfout.c (last_filename): Remove.
19339         (output_compile_unit_die): Remove last_filename.
19340
19341 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19342             Richard Henderson  <rth@redhat.com>
19343
19344         PR opt/3640
19345         * fold-const.c (fold): Optimize unsigned comparisons against
19346         UINT_MAX (and similar unsigned constants).
19347
19348 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19349
19350         * Makefile.in (loop.o): Depend on OPTABS_H.
19351         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19352         against the predicate.
19353
19354         PR target/5379
19355         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19356         for the address operand.
19357
19358 2002-01-22  Richard Henderson  <rth@redhat.com>
19359
19360         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19361
19362 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19363
19364         PR other/5450
19365         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19366         preprocessor flags.
19367
19368 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19369
19370         * config.gcc (x86_64-*-netbsd*): New target.
19371         * config/i386/netbsd64.h: New file.
19372
19373 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19374
19375         * regrename.c (kill_value): Fix typo.
19376
19377 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19378
19379         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19380
19381         * config/rs6000/rs6000.h: Same.
19382
19383         * function.c (instantiate_virtual_regs): Remove
19384         STARTING_FRAME_PHASE.
19385         (assign_stack_local_1): Same.
19386         Calculate frame phase.
19387
19388 2002-01-22  Nick Clifton  <nickc@redhat.com>
19389
19390         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19391         variable declaration to outer scope in order to simplify
19392         future extensions.
19393         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19394         arm_hard_regno_mode_ok.
19395         * config/arm/arm-protos.h: Add a prototype for
19396         arm_hard_regno_mode_ok.
19397         * config/arm/arm.c (soft_df_operand): Remove now redundant
19398         check for DImode values using IP_REGNUM.
19399         (nonimmediate_soft_df_operand): Remove now redundant check for
19400         DImode values using IP_REGNUM.
19401         (arm_hard_regno_mode_ok): New function. New check: make sure
19402         that DImode values are not stored in IP_REGNUM.
19403
19404         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19405         note with a USE.
19406         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19407
19408 2002-01-22  Jason Merrill  <jason@redhat.com>
19409
19410         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19411         consistency if this COMPOUND_STMT is scoped.
19412
19413 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19414
19415         * predict.c: Fix formatting.
19416         * print-tree.c: Likewise.
19417         * protoize.c: Likewise.
19418         * real.h: Likewise.
19419         * rtl.h: Likewise.
19420         * sbitmap.h: Likewise.
19421         * scan.c: Likewise.
19422         * sched-deps.c: Likewise.
19423         * sched-vis.c: Likewise.
19424         * sdbout.c: Likewise.
19425         * sibcall.c: Likewise.
19426         * ssa.c: Likewise.
19427         * ssa-ccp.c: Likewise.
19428         * ssa-dce.c: Likewise.
19429         * stmt.c: Likewise.
19430         * stor-layout.c: Likewise.
19431         * system.h: Likewise.
19432
19433 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19434
19435         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19436         if fits in bounds of base type.
19437
19438         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19439         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19440         (add_bound_info, default): If can't find a context, make a
19441         SAVE_EXPR.
19442         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19443
19444 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19445
19446         * c-typeck.c (parser_build_binary_op): If result from
19447         build_binary_op is ERROR_MARK just return error_mark_node without
19448         further processing.
19449
19450 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19451
19452         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19453         Split a.out-specific bits into...
19454         * config/netbsd-aout.h: ...this.
19455         * config/netbsd-elf.h: New file.
19456         * config/alpha/netbsd-elf.h: Remove.
19457         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19458         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19459         (STARTFILE_SPEC): Remove redundant definition.
19460         (ENDFILE_SPEC): Likewise.
19461         (LINK_SPEC): Likewise.
19462         (CPP_SPEC): Likewise.
19463         (ASM_SPEC): Likewise.
19464         (LIB_SPEC): Likewise.
19465         (SWITCH_TAKES_ARG): Likewise.
19466         (TARGET_MEM_FUNCTIONS): Likewise.
19467         (CPP_PREDEFINES): Redefine.
19468         (ASM_FINAL_SPEC): Remove redefinition.
19469         (ASM_COMMENT_START): Redefine.
19470         (FUNCTION_PROFILER): Define.
19471         (TARGET_VERSION): Redefine.
19472         Comment and formatting cleanup.
19473         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19474         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19475         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19476         big- or little-endian.
19477         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19478         * config.gcc (*-*-netbsd*): Add definitions common to all
19479         NetBSD configs.
19480         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19481         gnu_ld definitions.  Add netbsd-elf.h to and remove
19482         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19483         tmake_file, and don't lose previous tmake_file contents.
19484         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19485         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19486         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19487         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19488         (mipsel-*-netbsd*): Rename this to...
19489         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19490         mips/little.h to tm_file for mips*el-*.
19491         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19492         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19493         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19494
19495 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19496
19497         * pa-protos.h (reg_before_reload_operand): New function prototype.
19498         * pa.c (reg_before_reload_operand): New function implementation.
19499         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19500         contraints to "*m".
19501
19502 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19503
19504         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19505
19506 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19507
19508         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19509         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19510         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19511         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19512         (ENDFILE_SPEC): Undefine.
19513         (STARTFILE_SPEC): Redefine for PA.
19514
19515 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19516
19517         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19518
19519 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19520
19521         * config.gcc: Add entries to supported PowerPC --with-cpu
19522         types.
19523
19524 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19525
19526         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19527         true for 64-bit mode only SSE registers in 32-bit mode.
19528
19529 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19530
19531         * unwind-dw2.c: Fix formatting.
19532         * unwind-dw2-fde.c: Likewise.
19533         * unwind-dw2-fde.h: Likewise.
19534         * unwind-pe.h: Likewise.
19535         * varasm.c: Likewise.
19536         * varray.h: Likewise.
19537
19538 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19539
19540         Remove workaround for register stack overwrite bug in mmix.
19541         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19542         support for TARGET_REG_STACK_FILL_BUG.
19543         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19544         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19545         Delete.
19546         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19547         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19548         -mno-reg-stack-fill-bug-workaround.
19549         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19550         machine member has_call_without_parameters.
19551         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19552         -mreg-stack-fill-bug-workaround and
19553         -mno-reg-stack-fill-bug-workaround.
19554         (MMIX Options): Ditto.
19555
19556 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19557
19558         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19559         as appropriate.
19560         Remove redundant code.
19561
19562 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19563
19564         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19565         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19566         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19567         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19568         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19569         out target macro definitions and non-target-specific comments
19570         mostly taken from old versions of the manual.
19571
19572 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19573
19574         * config/h8300/h8300.h: Fix comment formatting.
19575         * config/ia64/aix.h: Likewise.
19576         * config/ia64/ia64-protos.h: Likewise.
19577         * config/ia64/ia64.c: Likewise.
19578         * config/ia64/ia64.h: Likewise.
19579         * config/ia64/ia64intrin.h: Likewise.
19580         * config/ia64/linux.h: Likewise.
19581         * config/ia64/unwind-aix.c: Likewise.
19582         * config/ia64/unwind-ia64.c: Likewise.
19583
19584 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19585
19586         * config/h8300/h8300.c: Revise comments about shift code.
19587
19588 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19589
19590         * config/h8300/h8300.c (function_arg): Update a comment.
19591
19592 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19593
19594         * config/h8300/h8300.md: Update the comments at the beginning
19595         of the file.
19596
19597 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19598
19599         * config/i370/i370.c: Fix comment formatting.
19600         * config/i370/i370.h: Likewise.
19601         * config/i370/i370.md: Likewise.
19602         * config/i370/linux.h: Likewise.
19603
19604 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19605
19606         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19607
19608         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19609         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19610         in incomplete case.
19611
19612 2002-01-20  Graham Stott  <grahams@redhat.com>
19613
19614         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19615
19616 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19617
19618         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19619
19620 2002-01-19  Tom Rix  <trix@redhat.com>
19621
19622         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19623
19624 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19625
19626         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19627
19628         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19629         STARTING_FRAME_PHASE.
19630         (STARTING_FRAME_PHASE): New.
19631         (instantiate_virtual_regs): Check saneness of
19632         STARTING_FRAME_PHASE.
19633
19634         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19635
19636 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19637
19638         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19639
19640 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19641
19642         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19643         be used for bootstrapping GCC 3.0.
19644
19645 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19646
19647         * config/h8300/h8300.md: Fix an insn length.
19648
19649 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19650
19651         * bitmap.h: Fix comment formatting.
19652         * combine.c: Likewise.
19653         * cppfiles.c: Likewise.
19654         * c-pragma.h: Likewise.
19655         * c-typeck.c: Likewise.
19656         * df.c: Likewise.
19657         * dwarf2out.c: Likewise.
19658         * function.c: Likewise.
19659         * gcc.c: Likewise.
19660         * genattrtab.c: Likewise.
19661         * gthr-win32.h: Likewise.
19662         * haifa-sched.c: Likewise.
19663         * predict.c: Likewise.
19664         * rtlanal.c: Likewise.
19665         * rtl.h: Likewise.
19666         * unwind-dw2-fde.h: Likewise.
19667         * unwind-pe.h: Likewise.
19668         * vmsdbgout.c: Likewise.
19669
19670 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19671
19672         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19673         if type_required and passed decl.
19674
19675 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19676
19677         * config.gcc (cpu_type): Include altivec.h in powerpc
19678         extra_headers.
19679         Same for darwin.
19680
19681         * config/rs6000/altivec.h: New.
19682
19683 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19684
19685         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19686         handling information.
19687         * doc/trouble.texi (Interoperation): Add libstdc++ information
19688         for AIX.
19689         (Misunderstandings): Add template instantiation and static template
19690         member information for AIX.
19691
19692 2002-01-17  Jason Merrill  <jason@redhat.com>
19693
19694         * dbxout.c (dbxout_type): Support const and volatile.
19695
19696         * except.c (add_partial_entry): Remove backwards compatibility code.
19697         (end_protect_partials): Likewise.
19698
19699 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19700
19701         * config/ia64/ia64.md (prologue_use): New.
19702         * config/ia64/ia64.c (ia64_expand_prologue): Use
19703         gen_prologue_use instead of gen_rtx_USE.
19704         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19705         as CODE_FOR_pred_rel_mutex.
19706         (ia64_sched_reorder2): Likewise.
19707
19708 2002-01-16  Eric Christopher  <echristo@redhat.com>
19709
19710         * config/mips/r3900.h: Reformat.
19711         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19712         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19713         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19714         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19715         * config/mips/t-elf: Remove mips3 multilib.
19716
19717 2002-01-16  H.J. Lu <hjl@gnu.org>
19718
19719         * config/mips/linux.h: Include "mips/abi64.h".
19720
19721 2002-01-16  H.J. Lu <hjl@gnu.org>
19722
19723         * config/mips/t-linux: New.
19724
19725         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19726
19727         * config/mips/linux.h: Don't include "gofast.h".
19728         (INIT_SUBTARGET_OPTABS): Removed.
19729
19730 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19731
19732         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19733         output_a_shift.
19734         * config/h8300/h8300.c: Likewise.
19735         * config/h8300/h8300.md: Likewise.
19736
19737 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19738
19739         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19740         spaces after an opcode name.
19741         (pushqi1_h8300hs): Likewise.
19742         (pushhi1_h8300hs): Likewise.
19743
19744 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19745
19746         * doc/extend.texi: Replace "option" with "attribute"
19747         appropriately.
19748
19749 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19750
19751         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19752         (and:DI () (const_int -8)).
19753         (split_small_symbolic_mem_operand): Split
19754         (mem (and:DI () (const_int -8)).
19755
19756 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19757
19758         PR target/5309:
19759         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19760         same way as TYPE_IMUL.
19761         (ultrasparc_sched_reorder): Likewise.
19762         * config/sparc/sparc.md (type): Add comment to update
19763         ultrasparc_sched_reorder when making changes.
19764
19765 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19766
19767         * doc/invoke.texi: Change the dump file name of block
19768         reordering pass from 28.bbro to 29.bbro.
19769         Mention -dk option.
19770
19771 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19772
19773         * i386.md (minsf splitter): Fix pasto.
19774
19775 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19776
19777         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19778         to frame pointer initialisation instruction.
19779         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19780         initialisation instruction.
19781         (soft_df_operand): Do not accept the IP register.
19782         (nonimmediate_soft_df_operand): Do not accept the IP register.
19783
19784 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19785
19786         PR target/5357:
19787         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19788         MASK_V8 being both set.
19789
19790 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19791
19792         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19793         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19794         config/s390/s390.md (call, call_value): Add GOT register to
19795         CALL_INSN_FUNCTION_USAGE where needed.
19796         (call_exp, call_value_exp): New.
19797
19798 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19799
19800         * config/arm/arm.c: General formatting tidy up.
19801
19802 2002-01-16  Graham Stott  <grahams@redhat.com>
19803
19804         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19805         cast and when casting an integer literal to "rtx" pointer.
19806         (expand_call): Likewise.
19807         * flow.c (try_pre_increment): Likewise.
19808         (find_use_as_address): Likewise.
19809         * integrate.c (expand_iline_function): Likewise.
19810         * regmove.c (try_auto_increment): Likewise.
19811
19812 2002-01-16  Graham Stott  <grahams@redhat.com>
19813
19814         * sched-rgn.c (passed): Use sbitmap_free.
19815         (header): Likewise.
19816         (inner): Likewise.
19817         (in_queue): Likewise.
19818         (in_stack): Likewise.
19819
19820 2002-01-15  Eric Christopher  <echristo@redhat.com>
19821
19822         * flow.c (propagate_one_insn): Change to use fatal_insn.
19823
19824 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19825
19826         * expmed.c (extract_fixed_bit_field): Remove unused code.
19827         * system.h: Poison SLOW_ZERO_EXTEND.
19828         * doc/tm.texi: Remove.
19829         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19830         * config/arm/arm.h: Likewise.
19831         * config/avr/avr.h: Likewise.
19832         * config/clipper/clipper.h: Likewise.
19833         * config/convex/convex.h: Likewise.
19834         * config/d30v/d30v.h: Likewise.
19835         * config/dsp16xx/dsp16xx.h: Likewise.
19836         * config/elxsi/elxsi.h: Likewise.
19837         * config/fr30/fr30.h: Likewise.
19838         * config/h8300/h8300.h: Likewise.
19839         * config/i370/i370.h: Likewise.
19840         * config/i386/i386.h: Likewise.
19841         * config/m68k/m68k.h: Likewise.
19842         * config/mips/mips.h: Likewise.
19843         * config/ns32k/ns32k.h: Likewise.
19844         * config/pdp11/pdp11.h: Likewise.
19845         * config/pj/pj.h: Likewise.
19846         * config/s390/s390.h: Likewise.
19847         * config/sh/sh.h: Likewise.
19848         * config/stormy16/stormy16.h: Likewise.
19849         * config/v850/v850.h: Likewise.
19850         * config/vax/vax.h: Likewise.
19851         * config/we32k/we32k.h: Likewise.
19852
19853 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19854
19855         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19856         (altivec_lvsl): Change constraint to b.
19857         (altivec_lvsr): Same.
19858         (altivec_lvebx): Same.
19859         (altivec_lvehx): Same.
19860         (altivec_lvewx): Same.
19861         (altivec_lvxl): Same.
19862         (altivec_lvx): Same.
19863         (altivec_stvx): Add parallel.
19864         (altivec_stvxl): Same.
19865         (altivec_stvehx): Same.
19866         (altivec_stvebx): Same.
19867         (altivec_stvebx): Same.
19868
19869 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19870
19871         * config.gcc: Change altivec.h to altivec-defs.h.
19872
19873         * config/rs6000/altivec.h: Delete.
19874
19875         * config/rs6000/altivec-defs.h: Add.
19876
19877 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19878
19879         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19880         and UMOD modes.
19881
19882         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19883         less than or equal to eight bytes.
19884
19885         * vax.md (andsi3): Remove constraints and change SET destination
19886         operand type to nonimmediate_operand.
19887         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
19888         when it is a CONST_INT.
19889
19890 2002-01-15  Jason Merrill  <jason@redhat.com>
19891
19892         * c-common.def (FILE_STMT): New code.
19893         * c-common.c (statement_code_p): It's a statement.
19894         * c-common.h (stmt_tree_s): Add x_last_filename.
19895         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19896         (last_expr_filename): New macro.
19897         * c-semantics.c (begin_stmt_tree): Initialize it.
19898         (add_stmt): If the filename changed, also insert a
19899         FILE_STMT.
19900         (expand_stmt): Handle seeing one.
19901
19902 2002-01-15  Eric Christopher  <echristo@redhat.com>
19903
19904         * flow.c (propagate_one_insn): Add error message and print out
19905         insn for debugging.
19906
19907 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19908
19909         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19910         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19911         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19912         TRAMPOLINE_ALIGNMENT.
19913         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
19914         to be in bits.
19915         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19916         PCC_BITFIELD_TYPE_MATTERS.
19917         * config/interix.h (STDC_VALUE): Remove.  Use
19918         STDC_0_IN_SYSTEM_HEADERS.
19919         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19920         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19921         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19922
19923 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19924
19925         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19926         not work on this platform currently.
19927
19928 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19929
19930         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19931         readonly_warning in _().
19932
19933 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
19934
19935         * gcc.c (delete_if_ordinary): Backout previous change.
19936
19937 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19938
19939         * config/h8300/h8300.c (print_operand): Remove support for
19940         unused operand characters.
19941
19942         * read-rtl.c: Fix formatting.
19943         * real.c: Likewise.
19944         * recog.c: Likewise.
19945         * regclass.c: Likewise.
19946         * regmove.c: Likewise.
19947         * reg-stack.c: Likewise.
19948         * reload1.c: Likewise.
19949         * rtlanal.c: Likewise.
19950
19951 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19952
19953         * config/i386/i386.c: Fix formatting.
19954
19955 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
19956
19957         * c-typeck.c (process_init_element): Don't save_expr
19958         COMPOUND_LITERAL_EXPR if just its initializer will be used.
19959
19960 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
19961
19962         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19963         emit optional traceback table if optimize_size or TARGET_ELF.
19964         * config/rs6000/rs6000.md (prefetch): New.
19965
19966 2002-01-15  Andreas Jaeger  <aj@suse.de>
19967
19968         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19969
19970 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19971
19972         * mips-tfile.c: Fix formatting.
19973
19974 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19975
19976         * unroll.c (final_reg_note_copy): Fix previous commit.
19977
19978 2002-01-14  Kazu Hirata  <kazu@hxi.com>
19979
19980         * config/h8300/h8300-protos.h: Remove the prototype for
19981         eq_operator.
19982         * config/h8300/h8300.c (eq_operator): Remove.
19983
19984 2002-01-14  Richard Henderson  <rth@redhat.com>
19985
19986         * config/i386/i386.md (prefetch): Tidy.
19987         (prefetch_3dnow): Fix locality operand.
19988
19989 2002-01-14  Richard Henderson  <rth@redhat.com>
19990
19991         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19992         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19993
19994 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
19995
19996         * reload1.c (reload_combine): Pass reg_sum replacement through
19997         copy_rtx in loop performing multiple changes.
19998
19999 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
20000
20001         * except.c (remove_unreachable_regions): New.
20002         (free_eh_status): Clear exception_handler_labels.
20003         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
20004         (find_exception_handler_labels): Don't add the same label more than
20005         once.
20006         (remove_exception_handler_label): Don't die if
20007         find_exception_handler_labels hasn't been called for the current
20008         function yet.
20009
20010 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
20011
20012         * toplev.c (rest_of_compilation): Rebuild jump labels after
20013         gcse.
20014
20015 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
20016
20017         * doc/extend.texi: Move documentation of X86 built-in functions
20018         here.
20019         * doc/invoke.texi: From here.
20020         * doc/sourcebuild.texi: Document location of documentation for
20021         machine built-in functions.
20022
20023 2002-01-13  Christopher Faylor  <cgf@redhat.com>
20024
20025         * cppfiles.c (TEST_THRESHOLD): New macro.
20026         (SHOULD_MMAP): Ditto.
20027         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
20028         be used.
20029
20030 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20031
20032         * unroll.c (final_reg_note_copy): Properly handle
20033         REG_LABEL
20034         (unroll_loops): Fix LOOP_CONDITION heuristics.
20035
20036 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
20037
20038         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
20039         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
20040
20041 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
20042
20043         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
20044         threaded loop.
20045
20046 2002-01-14  Tom Rix  <trix@redhat.com>
20047
20048         * config/rs6000/rs6000.md: Fix typo with sradi.
20049
20050 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
20051
20052         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
20053         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
20054         (clrstrdi, clrstrsi): Adapt callers.
20055
20056         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
20057
20058         (movti splitter): Never use register 0 as base register.
20059
20060 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20061
20062         * combine.c (simplify_shift_const): Always generate new rtx
20063         for shift expression instead of reusing given expression.
20064
20065 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20066
20067         * config/alpha/alpha.c (alpha_expand_mov): Don't call
20068         alpha_legitimize_address unless mode is Pmode.
20069
20070 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
20071
20072         * doc/md.texi (Modifiers): Document the '*' constraint for the
20073         user.
20074
20075         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
20076         * doc/extend.texi (Function Attributes): 'interrupt' is valid
20077         for xstormy16 too.
20078
20079 2002-01-13  Richard Henderson  <rth@redhat.com>
20080
20081         * reload.c (find_reloads): Use a hard reg destination as reload reg
20082         for an input reload of the source.
20083
20084 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20085
20086         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
20087         more generic.
20088
20089 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
20090
20091         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20092         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20093
20094         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
20095
20096 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20097
20098         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
20099
20100 2002-01-12  Tom Rix  <trix@redhat.com>
20101
20102         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
20103         TARGET_POWERPC64.
20104
20105 2002-01-12  Richard Henderson  <rth@redhat.com>
20106
20107         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
20108
20109         * doc/invoke.texi: Update Alpha options.
20110
20111         * doc/invoke.texi: Update i386 built-in function lists.
20112
20113 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
20114
20115         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20116         referencing outside.
20117
20118 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20119
20120         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20121         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20122         offsets, and change line folding.
20123         * optabs.c (expand_binop): Remove warnings.
20124         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20125
20126 2002-01-12  Graham Stott <grahams@redhat.com>
20127
20128         * attribs.c (handle_deprecated_attribute): constify WHAT.
20129         * diagnostic.c (warn_deprecated_use): Add braces, fixes
20130         dangling else warning and constify WHAT.
20131         * except.h (struct function, struct inline_remap): Move
20132         struct tag forward defs before all prototypes.
20133         (duplicate_eh_regions): Whitespace.
20134
20135 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
20136
20137         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20138         MODE_BASE_REG_CLASS.
20139         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20140
20141 2002-01-12  Richard Henderson  <rth@redhat.com>
20142
20143         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20144         (ix86_expand_vector_move): New.
20145         (bdesc_2arg): Remove andps, andnps, orps, xorps.
20146         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
20147         Remove old prefetch builtins.  Special case the logicals removed above.
20148         (ix86_expand_builtin): Likewise.
20149         (safe_vector_operand): Use V4SFmode, not TImode.
20150         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
20151         (ix86_expand_timode_binop_builtin): New.
20152         * config/i386/i386-protos.h: Update.
20153         * config/i386/i386.h (enum ix86_builtins): Update.
20154         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20155         Use ix86_expand_vector_move in vector move expanders.
20156         (movti_internal, movti_rex64): Add xorps alternative.
20157         (sse_clrv4sf): Rename and adjust from sse_clrti.
20158         (prefetch): Don't work so hard.
20159         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20160         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20161         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20162
20163 2002-01-11  Richard Henderson  <rth@redhat.com>
20164
20165         * config/i386/mmintrin.h: New file.
20166         * config/i386/xmmintrin.h: New file.
20167         * config.gcc (i?86-*-*): Add extra_headers.
20168         * simplify-rtx.c (simplify_unary_operation): Handle saturating
20169         truncation codes.
20170         (simplify_binary_operation): Handle saturating arithmetic codes.
20171         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20172         not the lowpart subreg.
20173         (ix86_expand_builtin): Return a TImode dummy register instead of 0
20174         on error.
20175         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20176
20177 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20178
20179         * conflict.c (conflict_graph_compute): Free regsets when finished.
20180         * ssa.c (compute_coalesced_reg_partition): Likewise.
20181
20182 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20183
20184         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20185         every where we allocate a register.
20186
20187 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20188
20189         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20190         * lcm.c (compute_earliest, compute_farthest): Likewise.
20191
20192 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20193
20194         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20195
20196 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20197
20198         * doc/rtl.texi (Insns): Fix 2 typos.
20199
20200 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
20201
20202         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
20203         options.  Use @table @gcctabopt for MMIX options.  Add index
20204         entries for MMIX options.  Start new paragraph with first
20205         heading of the machine-dependent options.
20206
20207 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20208
20209         PR other/5299
20210         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20211         * combine.c (force_to_mode): Same.
20212         * reload1.c (clear_reload_reg_in_use): Same.
20213
20214 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
20215
20216         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20217         and 'subtargets'.
20218
20219 2002-01-11  Andreas Jaeger  <aj@suse.de>,
20220             Brad Lucier <lucier@math.purdue.edu>
20221
20222         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20223         mcpu.
20224
20225 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
20226
20227         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20228         Protect with IN_LIBGCC.
20229         (LINK_EH_SPEC): Add required trailing space.
20230
20231 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20232
20233         * c-tree.h: Move function declarations so that they are listed
20234         under the filename which contains them.
20235         (check_identifier, finish_decl_top_level,
20236         lookup_name_current_level_global, shadow_record_fields): Remove.
20237
20238 2002-01-11  Andreas Jaeger  <aj@suse.de>
20239
20240         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20241         march.
20242
20243 2002-01-10  Richard Henderson  <rth@redhat.com>
20244
20245         * config/alpha/alpha.c (print_operand): Add 'J'.
20246         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20247         new operand with the sequence number for the lituse.  When splitting
20248         the insns, use gen_movdi_er_high_g and generate a sequence number.
20249         (gen_movdi_er_high_g): Print the sequence number if non-zero.
20250
20251 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
20252
20253         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20254         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20255         stvxl.
20256         (altivec_expand_builtin): Same.
20257         (altivec_expand_stv_builtin): New.
20258
20259         * config/rs6000/rs6000.h (rs6000_builtins): Same.
20260
20261         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20262         ("altivec_lvehx"): New.
20263         ("altivec_lvewx"): New.
20264         ("altivec_lvxl"): New.
20265         ("altivec_lvx"): New.
20266         ("altivec_stvx"): New.
20267         ("altivec_stvebx"): New.
20268         ("altivec_stvehx"): New.
20269         ("altivec_stvewx"): New.
20270         ("altivec_stvxl"): New.
20271
20272 2002-01-10  Richard Henderson  <rth@redhat.com>
20273
20274         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20275         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
20276         care not to delete instructions twice.
20277
20278 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20279
20280         * toplev.c: Don't declare environ (it's not used anywhere).
20281         * configure.in: Don't check for declaration of environ.
20282         * config/i386/xm-mingw32.h: Don't #define environ.
20283         * config.in, configure: Regenerate.
20284
20285 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20286
20287         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20288         * configure: Regenerate.
20289
20290         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20291         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20292         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20293         alpha/xm-vms.h.
20294         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20295         LIMITS_H_TEST here, not in m68k/x-next.
20296         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20297         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20298
20299         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20300         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20301         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20302
20303         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20304         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20305         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20306         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20307         replacement of quadlib.asm with quadlib.c.
20308
20309         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20310         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20311         config/rs6000/xm-beos.h: Delete file.
20312
20313         * config.gcc: Update to match above changes.
20314
20315 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20316
20317         * config/h8300/h8300.h: Fix comment typos.
20318         * config/h8300/h8300.md: Likewise.
20319         * config/h8300/lib1funcs.asm: Likewise.
20320
20321 2002-01-10  Dale Johannesen  <dalej@apple.com>
20322
20323         PR optimization/5269
20324         * unroll.c (precondition_loop_p): Make *increment be the correct
20325         sign when n_iterations known, to avoid confusing caller.
20326
20327 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20328
20329         * doc/extend.texi (deprecated): Fix a typo.
20330
20331 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20332
20333         * basic-block.h (update_br_prob_note): Declare.
20334         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20335         (try_forward_edges): Care negative frequencies and update note.
20336         (outgoing_edges_match): Tweek conditional merging heuristics.
20337         (try_crossjump_to_edge): use update_br_prob_note.
20338         * cfglayout.c (fixup_reorder_chain): Likewise.
20339         * cfrtl.c (update_br_prob_note): New.
20340         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20341
20342         * i386.c (ix86_decompose_address): Return -1 if address contains
20343         shift.
20344         (legitimate_address_p): Require ix86_decompose_address to return 1.
20345
20346         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20347         (cprop_insn): Likewise.
20348
20349 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20350
20351         * toplev.c: Fix formatting.
20352         * tree.c: Likewise.
20353         * tree-dump.c: Likewise.
20354         * unroll.c: Likewise.
20355         * unwind-dw2.c: Likewise.
20356         * unwind-dw2-fde.c: Likewise.
20357         * unwind-dw2-fde-glibc.c: Likewise.
20358         * unwind-sjlj.c: Likewise.
20359
20360 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20361
20362         * doc/invoke.texi: Document PDP-11 options.
20363
20364 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20365
20366         * config/h8300/h8300.h: Fix formatting.
20367
20368 2002-01-10  Ira Ruben   <ira@apple.com>
20369
20370         Add __attribute__ ((deprecated)).
20371         * extend.texi: Document __attribute__ ((deprecated)).
20372         * invoke.texi: Document -Wno-deprecated-declarations.
20373         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20374         * testsuite/gcc.dg/deprecated.c: New C test.
20375         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20376         (c_common_attribute_table): Add "deprecated" entry.
20377         (handle_deprecated_attribute): New function.
20378         * c-decl.c (deprecated_states): New enum.
20379         deprecated_state: State of "deprecated" handling.
20380         (start_decl): Set deprecated_state based on attributes.
20381         (grokdeclarator): Test for deprecated uses, propagate attribute.
20382         * c-typeck.c (build_component_ref): Test for deprecated fields.
20383         (build_external_ref): Test for deprecated primaries.
20384         * diagnostic.c (warn_deprecated_use) New function to issue
20385         warnings about __attribute__ ((depricated)) references.
20386         * flags.h (warn_deprecated_decl): Extern declared for
20387         -W[no-]deprecated-declarations option.
20388         * print-tree.c (print_node): Show deprecated flag status.
20389         * toplev.c (warn_deprecated_decl): Defined.
20390         (W_options): Added "deprecated-declaration".
20391         * toplev.h (warn_deprecated_use): Extern declared.
20392         * tree.h (struct tree_common): Define deprecated_flag.
20393         (TREE_DEPRECATED): New macro to access flag.
20394         * cp/call.c (build_call): Test for deprecated calls.
20395         * cp/class.c (add_implicitly_declared_members): Set global
20396         flag to tell grokdeclarator to not issue deprecated warnings.
20397         * cp/cp-tree.h: Add extern for adding_implicit_members.
20398         * cp/decl.c (deprecated_states): New enum.
20399         (start_decl): Set deprecated_state based on attributes.
20400         (grokdeclarator): Test for deprecated uses, propagate attribute.
20401         * cp/lex.c (do_identifier): Test for deprecated primaries.
20402         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20403
20404 2002-01-10  Ira Ruben   <ira@apple.com>
20405
20406         Fix to assign attributes to inline member functions.
20407         * cp/decl.c (start_method): Handle attrlist.
20408
20409 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20410
20411         * combine.c (expand_field_assignment): Use subreg_lsb().
20412
20413 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20414
20415         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20416         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20417         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20418         Recurse for any operand of AND as long as constant is non-zero.
20419
20420 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20421
20422         * config/h8300/h8300.md: Remove constraints from expanders.
20423
20424 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20425
20426         * varasm.c: Fix formatting.
20427         * varray.c: Likewise.
20428         * vmsdbgout.c: Likewise.
20429         * xcoffout.c: Likewise.
20430
20431 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20432
20433         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20434         update edge probabilities to match.
20435
20436 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20437
20438         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20439         dependencies.
20440         * doc/languages.texi, doc/sourcebuild.texi: New files.
20441         * doc/configfiles.texi: Make a subsubsection.  Update.
20442         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20443         instructions for building GCC.
20444         * doc/makefile.texi: Make a subsection.
20445         * doc/gccint.texi: Update.
20446
20447 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20448
20449         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20450
20451 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20452
20453         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20454
20455 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20456
20457         * optabs.c (expand_fix): Look for wider integer modes first.
20458
20459         * i386.md (mov?f): Avoid the fake const double trick for medium
20460         memory model.
20461         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20462         (fop_df_4): Disable for SSE compilation.
20463
20464 2002-01-10  Graham Stott  <grahams@redhat.com>
20465
20466         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20467         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20468
20469 2002-01-10  Richard Henderson  <rth@redhat.com>
20470
20471         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20472
20473 2002-01-10  Richard Henderson  <rth@redhat.com>
20474
20475         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20476         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20477
20478 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20479
20480         * combine.c (can_combine_p): Fix a comment typo.
20481
20482 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20483
20484         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20485         empty list correctly.  Change loop index $t to $f for
20486         consistency with rest of Makefile.
20487
20488 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20489
20490         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20491         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20492
20493         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20494         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20495         (altivec_init_builtins): Same.
20496         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20497         (altivec_expand_binop_builtin): Same.
20498         (altivec_expand_ternop_builtin): Same.
20499         (bdesc_dst): New.
20500
20501         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20502         ("altivec_vctuxs"): Fix typo.
20503         ("altivec_vnmsubfp"): Same.
20504         ("altivec_dssall"): New.
20505         ("altivec_mfvscr"): New.
20506         ("altivec_dss"): New.
20507         ("altivec_lvsl"): New.
20508         ("altivec_lvsr"): New.
20509         ("altivec_dstt"): New.
20510         ("altivec_dstst"): New.
20511         ("altivec_dststt"): New.
20512         ("altivec_dst"): New.
20513
20514         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20515         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20516
20517 2002-01-09  Richard Henderson  <rth@redhat.com>
20518
20519         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20520
20521 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20522
20523         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20524         function.
20525         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20526         prototype.
20527         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20528
20529 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20530
20531         * read-rtl.c: Fix formatting.
20532         * real.c: Likewise.
20533         * regclass.c: Likewise.
20534         * regrename.c: Likewise.
20535         * reg-stack.c: Likewise.
20536         * reload1.c: Likewise.
20537         * reload.c: Likewise.
20538         * rtl.c: Likewise.
20539
20540 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20541
20542         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20543         to extract items in the expr_list chain.
20544
20545 2002-01-09  Richard Henderson  <rth@redhat.com>
20546
20547         * config/vax/vax.c (vax_rtx_cost): Never abort.
20548
20549         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20550
20551 2002-01-09  Jan Hubicka  <jh@suse.cz>
20552
20553         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20554
20555 2002-01-09  Richard Henderson  <rth@redhat.com>
20556
20557         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20558         Unify code from various alternatives.
20559
20560 2002-01-09  Richard Henderson  <rth@redhat.com>
20561
20562         * regrename.c (copy_value): Ignore the copy if the source register
20563         is present in the value chain with a narrower mode.
20564
20565 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20566
20567         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20568         for the c4x target. Also improve layout.
20569
20570 2002-01-09  Richard Henderson  <rth@redhat.com>
20571
20572         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20573         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20574         to match insn patterns.
20575
20576 2002-01-09  Richard Henderson  <rth@redhat.com>
20577
20578         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20579         (copyprop_hardreg_forward_1): Likewise.
20580
20581 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20582
20583         * pa.md (decrement_and_branch_until_zero): Change predicate for
20584         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20585
20586 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20587
20588         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20589         gets undefined. For Darwin.
20590
20591 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20592
20593         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20594
20595 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20596
20597         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20598
20599 2002-01-08  Richard Henderson  <rth@redhat.com>
20600
20601         * regrename.c (copy_value): Ignore overlapping copies.
20602
20603 2002-01-08  Richard Henderson  <rth@redhat.com>
20604
20605         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20606         as needed to avoid shared structure.
20607
20608 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20609
20610         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20611         H8/300H and H8/S.
20612
20613 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20614
20615         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20616         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20617         documentation of obsolete macros.
20618         * system.h: Poison these macros.
20619         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20620         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20621         config/c4x/c4x.h, config/clipper/clipper.h,
20622         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20623         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20624         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20625         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20626         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20627         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20628         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20629         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20630         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20631         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20632         config/sparc/sparc.h, config/stormy16/stormy16.h,
20633         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20634         definitions and commented out definitions of obsolete macros.
20635         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20636         of MAX_INT_TYPE_SIZE.
20637
20638 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20639
20640         * config/s390/s390.c (s390_preferred_reload_class): Never
20641         return ADDR_REGS if it isn't a subset of the given class.
20642         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20643         FP_REGS, but all superclasses as well.
20644
20645         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20646
20647         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20648         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20649         must not be a const_int.
20650
20651 2002-01-08  Richard Henderson  <rth@redhat.com>
20652
20653         * Makefile.in (toplev.o): Depend on options.h.
20654         (gcc.o): Depend on specs.h.
20655
20656 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20657
20658         * expr.c (store_expr): Convert VOIDmode constants back to target's
20659         mode.
20660
20661 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20662
20663         * doc/invoke.texi: Markup gcc as @command.  Refer to
20664         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20665         of http://gcc.gnu.org/thanks.html.
20666
20667 2002-01-08  Dale Johannesen  <dalej@apple.com>
20668
20669         * config/rs6000/rs6000.md: Add missing int register
20670         target case to movdf_low.
20671
20672 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20673
20674         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20675         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20676         (cppinit.o): Depend on except.h.
20677         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20678         s-specs): New rules.
20679
20680         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20681         Don't create specs.h/options.h/gencheck.h here.  Remove
20682         unnecessary variable settings from last argument of AC_OUTPUT.
20683         * config.in, configure: Regenerate.
20684         * intl.c: Hardcode package name as "gcc".
20685
20686         * cppinit.c: Include except.h.
20687         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20688         appropriate.
20689         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20690         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20691         (!)USING_SJLJ_EXCEPTIONS.
20692         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20693
20694 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20695
20696         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20697         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20698         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20699         documentation of obsolete macros.
20700         * system.h: Poison these macros.
20701         * config/d30v/d30v.h, config/ns32k/encore.h,
20702         config/stormy16/stormy16.h: Remove definitions and commented out
20703         definitions of obsolete macros.
20704
20705 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20706
20707         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20708         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20709         warnings.
20710
20711 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20712
20713         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20714         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20715         to insn adjusting stack/frame pointer.
20716         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20717         accept operands that cause the insn to be non-splittable.
20718
20719 2002-01-08  Graham Stott  <grahams@redhat.com>
20720
20721         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20722         (C_TYPE_FIELDS_VOLATILE): Likewise.
20723         (C_TYPE_BEING_DEFINED): Likewise.
20724         (C_IS_RESERVED_WORD): Likewise.
20725         (C_TYPE_VARIABLE_SIZE): Likewise.
20726         (C_DECL_VARIABLE_SIZE): Likewise.
20727         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20728         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20729         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20730         parenthesis.
20731         (C_DECL_ANTICIPATED): Likewise.
20732         (c_build_type_variant): Add parenthesis.
20733
20734 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20735
20736         * gcc.c (option_map): Remove --version.
20737         (process_command): Handle -fversion following the GNU Coding
20738         Standards.  Partially addresses PR other/704.
20739
20740 2002-01-08  Graham Stott  <grahams@redhat.com>
20741
20742         * combine.c (combine_instructions): Fix typo.
20743
20744 2002-01-08  Graham Stott  <grahams@redhat.com>
20745
20746         * debug.h: Use "tree" and "rtx" throughout.
20747
20748         * debug.c: Likewise.
20749
20750 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20751
20752         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20753         constant pool, use the pool's version of the symbol instead.
20754
20755 2002-01-07  Richard Henderson  <rth@redhat.com>
20756
20757         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20758         the original register was copied in a mode with a fewer number of
20759         hard registers than the desired mode.
20760         (copyprop_hardreg_forward_1): Likewise.
20761         (debug_value_data): Fix loop test.
20762         * toplev.c (parse_options_and_default_flags): Reenable
20763         -fcprop-registers at -O1.
20764
20765 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20766
20767         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20768         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20769
20770         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20771         predicates.
20772
20773         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20774
20775 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20776
20777         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20778         (pa_output_function_prologue): Output local label at the beginning of
20779         the prologue when profiling.
20780         (hppa_profile_hook): Use the local label rather than the function label.
20781         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20782
20783 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20784
20785         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20786         (altivec_expand_unop_builtin): Fix thinko.
20787         (altivec_expand_binop_builtin): Same.
20788         (altivec_expand_ternop_builtin): Same.
20789         (altivec_expand_builtin): Same.
20790
20791 2002-01-07  Richard Henderson  <rth@redhat.com>
20792
20793         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20794
20795 2002-01-07  Jason Merrill  <jason@redhat.com>
20796
20797         * unwind-dw2.c (execute_cfa_program): Use < again.
20798
20799 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20800
20801         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20802
20803 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20804
20805         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20806         Don't allow -1 - x -> ~x simplifications in the first pass.
20807
20808 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20809
20810         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20811         arguments.
20812         (altivec_expand_binop_builtin): Same.
20813         (altivec_expand_unop_builtin): Same.
20814         (print_operand): Fix typo.
20815         (bdesc_1arg): Add vupk* variants.
20816
20817         * rs6000.h (rs6000_builtins): Add vupk* enums.
20818
20819         * rs6000.md: Add altivec_vupk* variants.
20820
20821 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
20822
20823         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20824         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20825         and last update dates.
20826
20827 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
20828
20829         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20830
20831 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20832
20833         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20834         * config/avr/avr.h (CPP_SPEC): Likewise.
20835         (LINK_SPEC): Likewise.
20836         (CRT_BINUTILS_SPECS): Likewise.
20837         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20838         * doc/invoke.texi (AVR Options): Document them.
20839
20840 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20841
20842         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20843         LABEL_NUSES.
20844
20845 2002-01-07  Graham Stott  <grahams@redhat.com>
20846
20847         * config/i386/i386.h: Update copyright date.
20848         (HALF_PIC_PTR): Add parenthesis.
20849         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20850         (CONSTANT_ALIGNMENT): Add parenthesis.
20851         (DATA_ALIGNMENT): Likewise.
20852         (LOCAL_ALIGNMENT): Likewise.
20853         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20854         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20855         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20856         (HARD_REGNO_NREGS): Add paranethesis.
20857         (VALID_SSE_REG_MODE): Whitespace.
20858         (VALID_MMX_REG_MODE): Whitespace.
20859         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20860         (ix86_hard_regno_mode_ok): Add parenthesis.
20861         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20862         (RETURN_IN_MEMORY): Whitespace.
20863         (N_REG_CLASSES): Add parenthesis.
20864         (INTEGER_CLASS_P): Add parenthesis and wrap.
20865         (FLOAT_CLASS_P): Likewise.
20866         (SSE_CLASS_P): Likewise.
20867         (MMX_CLASS_P): Likewise.
20868         (MAYBE_INTEGER_CLASS_P): Likewise.
20869         (MAYBE_FLOAT_CLASS_P): Likewise.
20870         (MAYBE_SSE_CLASS_P): Likewise.
20871         (MAYBE_MMX_CLASS_P): Likewise.
20872         (Q_CLASS_P): Likewise.
20873         (GENERAL_REGNO_P): Uppercase macro parameter.
20874         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20875         (FP_REGNO_P): Likewise.
20876         (ANY_FP_REGNO_P): Uppercase macro parameter.
20877         (SSE_REGNO_P): Likewise.
20878         (SSE_REGNO): Likewise.
20879         (SSE_REG_P): Likewise.
20880         (SSE_FLOAT_MODE_P): Likewise.
20881         (MMX_REGNO_P): Likewise.
20882         (MMX_REG_P):Likewise.
20883         (STACK_REG_P): Likewise.
20884         (NON_STACK_REG_P): Likewise.
20885         (STACK_TOP_P): Likewise.
20886         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20887         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20888         (SECONDARY_MEMORY_NEEDED): Likewise.
20889         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20890         (MD_ASM_CLOBBERS): Whitespace and wrap.
20891         (MUST_PASS_IN_STACK): Whitespace and wrap.
20892         (RETURN_POPS_ARGS): Add parenthesis.
20893         (INIT_CUMULATIVE_ARGS): Likewise.
20894         (FUNCTION_ARG): Likewise.
20895         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20896         (SETUP_INCOMING_VARARGS): Likewise.
20897         (BUILD_VA_LIST_TYPE):  Add parenthesis.
20898         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20899         parenthsis.
20900         (EXPAND_BUILTIN_VA_ARG): Likewise.
20901         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20902         (INITIALIZE_TRAMPOLINE): Add parenthesis.
20903         (INITIAL_ELIMINATION_OFFSET): Likewise.
20904         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20905         (REGNO_OK_FOR_BASE_P): Likewise.
20906         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20907         (REGNO_OK_FOR_DIREG_P): Likewise.
20908         (REG_OK_FOR_INDEX_P): Whitespace.
20909         (REG_OK_FOR_BASE_P): Whitespace.
20910         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20911         parenthesis.
20912         (FIND_BASE_TERM): Fix typo.
20913         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
20914         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20915         (SYMBOLIC_CONST; Whitespace.
20916         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
20917         (ENCODE_SECTION_INFO): Whitespace.
20918         (FINALIZE_PIC): Remove do { ... } while (0).
20919         (PROMOTE_MODE): Wrap in do { ... } while (0).
20920         (CONST_COSTS): Whitespace.
20921         (RTX_COSTS): Add paramethesis, whitespace and wrap.
20922         (REGISTER_MOVE_COST): Add parenthesis.
20923         (MEMORY_MOVE_COST): Likewise.
20924         (EXTRA_CC_MODES): Whitespace.
20925         (SELECT_CC_MODE): Add parenthesis and whitespace.
20926         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20927         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20928         (ASM_OUTPUT_LABEL): Add paramethesis.
20929         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20930         (ASM_OUTPUT_REG_POP): Likewise.
20931         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20932         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20933
20934         * config/i386/i386.c: Update copyright.
20935         (CHECK_STACK_LIMIT): Add parenthesis.
20936         (AT_BP): Uppercase macro parameter.
20937         (x86_64_int_parameter_registers): Constify.
20938         (x86_64_int_return_registers): Likewise.
20939         (ix86_compare_op0): Use rtx.
20940         (construct_container): Constify INTREG parameter.
20941         (function_arg): Use rtx.
20942
20943         * diagnostic.h: Update copyright date.
20944         (output_buffer_state): Add parenthesis.
20945         (output_buffer_format_args): Likewise.
20946
20947         * combine.c (combine_instructions): Replace XEXP (links, 0)
20948         with link.
20949
20950 2002-01-06  H.J. Lu <hjl@gnu.org>
20951
20952         * cfgcleanup.c (thread_jump): Fix 2 typos.
20953
20954 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
20955
20956         * config.gcc: Add support for --enable-altivec.
20957
20958 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20959
20960         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20961
20962 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
20963
20964         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20965         __objc_class_name_*.
20966
20967 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20968
20969         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20970
20971 2002-01-06  Richard Henderson  <rth@redhat.com>
20972
20973         * reorg.c (emit_delay_sequence): Remove death notes, not merely
20974         nop them out.  Increment label reference count for REG_LABEL.
20975         (fill_slots_from_thread): Frob label reference count around
20976         delete_related_insns.
20977
20978 2002-01-05  Richard Henderson  <rth@redhat.com>
20979
20980         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20981         jump threading.
20982
20983 2002-01-05  Richard Henderson  <rth@redhat.com>
20984
20985         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20986         * integrate.c (output_inline_function): Likewise.
20987         * toplev.c (rest_of_compilation): Do it here instead.  Move call
20988         to remove_unnecessary_notes after emitting abstract instance.
20989         Force an emitted nested function to have its parent emited as well.
20990         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20991         for null.
20992         (rtl_for_decl_location): Do not look at reload data structures
20993         before reload has run.
20994
20995 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20996
20997         * cse.c: Fix formatting.
20998         * dwarf2asm.c: Likewise.
20999         * dwarf2out.c: Likewise.
21000         * explow.c: Likewise.
21001         * expmed.c: Likewise.
21002         * function.c: Likewise.
21003         * gcov.c: Likewise.
21004         * gencheck.c: Likewise.
21005         * genrecog.c: Likewise.
21006         * ggc-common.c: Likewise.
21007         * ggc-page.c: Likewise.
21008         * global.c: Likewise.
21009
21010 2002-01-05  Kazu Hirata  <kazu@hxi.com>
21011
21012         * combine.c: Fix formatting.
21013
21014 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
21015
21016         PR middle-end/1557
21017         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
21018
21019 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
21020
21021         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
21022         as 1 for __powerpc64__ as well.
21023
21024         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
21025
21026         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
21027         return it.
21028
21029 2002-01-05  Daniel Berlin  <dan@dberlin.org>
21030
21031         * lcm.c: Revert change, due to performance regression it causes on
21032         SPEC because it's slightly more conservative (sigh, I hate
21033         edge-based LCM).
21034
21035 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
21036
21037         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
21038
21039 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
21040
21041         * doc/cppinternals.texi: Update.
21042
21043 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
21044
21045         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
21046         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
21047         negatives.
21048         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
21049         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
21050         kludge for pre-october-14th mmix versions to handle new-found bug
21051         with PUSHJ/PUSHGO and the register stack.
21052         * config/mmix/mmix.h (struct machine_function): Rename member
21053         has_call_value_without_parameters to has_call_without_parameters.
21054         All referers changed.
21055         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
21056         TARGET_MASK_BRANCH_PREDICT): New macros.
21057         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
21058         -mno-reg-stack-fill-bug-workaround.
21059         * config/mmix/mmix.md ("call"): Set struct machine member
21060         has_call_without_parameters.
21061
21062 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21063
21064         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
21065
21066 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
21067
21068         * cfgcleanup.c: Include tm_p.h
21069         (mark_effect): Fix handling of hard register; fix handling of SET
21070
21071 2002-01-04  Kazu Hirata  <kazu@hxi.com>
21072
21073         * config/h8300/h8300.md (anonymous patterns): Check that
21074         operands are registers before using REGNO on them.
21075
21076 2002-01-03  Roland McGrath  <roland@frob.com>
21077
21078         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
21079
21080 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
21081
21082         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
21083         * c-common.h (genrtl_expr_stmt_value): Likewise.
21084         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
21085         (expand_expr_stmt_value): Add maybe_last argument.
21086         Don't warn about statement with no effect if it is the last statement
21087         in expression statement.
21088         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
21089         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
21090         expand_expr_stmt_value.
21091         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
21092         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
21093         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
21094         as maybe_last to expand_expr_stmt_value.
21095
21096 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
21097
21098         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
21099         be passed in, do not build it.
21100         (c_begin_if_stmt): New function.
21101         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21102         * c-common.h (c_expand_start_cond): Update prototype.
21103         (c_begin_if_stmt): Prototype new function.
21104         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21105         * c-parse.in (if_prefix): Use c_begin_if_stmt,
21106         c_begin_while_stmt and c_finish_while_stmt_cond.
21107
21108 2002-01-04  William Cohen  <wcohen@redhat.com>
21109
21110         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
21111         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21112         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21113         * config/pa/som.h (ASM_FILE_START): Likewise.
21114
21115 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
21116
21117         * lcm.c: Include df.h.
21118         Add available_transfer_function prototype.
21119         (compute_available): Rework to use iterative dataflow framework.
21120         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21121         with bb_info in df.h
21122         (available_transfer_function): New function.
21123
21124         * Makefile.in (lcm.o): add df.h to dependencies.
21125
21126 2002-01-04  Richard Henderson  <rth@redhat.com>
21127
21128         * config/alpha/alpha.c (some_operand): Accept HIGH.
21129         (input_operand): Likewise; accept simple references to globals.
21130         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21131         (alpha_const_double_ok_for_letter_p): Likewise.
21132         (alpha_extra_constraint): Likewise.
21133         (alpha_preferred_reload_class): Likewise.  Do not force
21134         symbolic constants to memory.
21135         (alpha_legitimate_address_p): Accept simple references
21136         to small_symbolic_operand.
21137         (alpha_legitimize_address): New arg scratch.  Be prepared to be
21138         called when no_new_pseudos.  Emit simple symbolic references.
21139         Split integers into low, high, and rest.
21140         (alpha_expand_mov): Use alpha_legitimize_address.
21141         (some_small_symbolic_mem_operand): New.
21142         (split_small_symbolic_mem_operand): New.
21143         * config/alpha/alpha-protos.h: Update.
21144         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21145         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21146         (EXTRA_CONSTRAINT): Likewise.
21147         (PREFERRED_RELOAD_CLASS): Likewise.
21148         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21149         (PREDICATE_CODES): Update.
21150         * config/alpha/alpha.md: New post-reload splitters to convert
21151         simplfied symbolic operands to the form that references $29.
21152         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21153         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21154
21155 2002-01-03  Richard Henderson  <rth@redhat.com>
21156
21157         * local-alloc.c (function_invariant_p): Update commentary.
21158
21159 2002-01-04  H.J. Lu <hjl@gnu.org>
21160
21161         * toplev.c (rest_of_compilation): Fix a typo when calling
21162         cleanup_cfg.
21163
21164 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21165
21166         * c-common.c: Fix formatting.
21167         * diagnostic.c: Likewise.
21168         * doloop.c: Likewise.
21169         * dwarf2out.c: Likewise.
21170
21171 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21172
21173         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21174         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21175
21176 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21177
21178         * cpperror.c: Update comments and copyright.
21179         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21180         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21181
21182 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21183
21184         * collect2.c (main): Use strcmp when testing for "-shared".
21185
21186 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21187
21188         * cppmacro.c: Don't include intl.h.  Update comments.
21189         (new_number_token): Allocate enough buffer for 64-bit unsigned
21190         integers; update prototype.
21191         * cppmain.c: Update comments.
21192
21193 2002-01-03  William Cohen  <wcohen@redhat.com>
21194
21195         * function.h (struct function): Add profile.
21196         (current_function_profile): New.
21197         doc/extend.texi: Update documentation.
21198         * final.c (final_start_function): Use current_function_profile
21199         instead of profile_flag.
21200         (profile_after_prologue): Likewise.
21201         * function.c (expand_function_start): Likewise.
21202         (expand_function_start): Likewise.
21203         * config/alpha/alpha.c (direct_call_operand):
21204         (alpha_does_function_need_gp): Likewise.
21205         (alpha_expand_prologue): Likewise.
21206         * config/arm/arm.c (arm_expand_prologue): Likewise.
21207         thumb_expand_prologue: Likewise.
21208         * config/d30v/d30v.c (d30v_stack_info): Likewise.
21209         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21210         (fr30_expand_prologue): Likewise.
21211         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21212         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21213         * config/i386/i386.h (FINALIZE_PIC): Likewise.
21214         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21215         * config/i960/i960.c (i960_output_function_prologue): Likewise.
21216         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21217         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21218         (m32r_expand_prologue): Likewise.
21219         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21220         (m88k_expand_prologue): Likewise.
21221         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21222         * config/mips/mips.c (compute_frame_size): Likewise.
21223         (mips_expand_prologue): Likewise.
21224         (mips_can_use_return_insn): Likewise.
21225         * config/pa/elf.h (ASM_FILE_START): Likewise.
21226         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21227         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21228         * config/pa/som.h (ASM_FILE_START): Likewise.
21229         * config/romp/romp.c (romp_using_r14): Likewise.
21230         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21231         (rs6000_stack_info): Likewise.
21232         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21233         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21234         * config/v850/v850.c (compute_register_save_size): Likewise.
21235
21236 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
21237
21238         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21239         gen_lowpart_common fails, use gen_lowpart_SUBREG.
21240
21241 2002-01-03  Turly O'Connor  <turly@apple.com>
21242
21243         * darwin.c (machopic_output_possible_stub_label): Don't generate
21244         stub routines for pseudo-stubs which we've just defined.
21245
21246 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21247
21248         * builtins.c: Fix formatting.
21249         * c-typeck.c: Likewise.
21250         * combine.c: Likewise.
21251         * expr.c: Likewise.
21252         * loop.c: Likewise.
21253
21254 2002-01-03  Andreas Schwab  <schwab@suse.de>
21255
21256         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21257         and return true if _cpp_push_next_buffer pushed a new include
21258         file.
21259         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21260         _cpp_pop_file_buffer did not push a new file.
21261         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21262
21263 2002-01-02  Eric Christopher  <echristo@redhat.com>
21264
21265         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21266         FIND_REG_INC_NOTE call. Update copyright.
21267         * loop.c (canonicalize_condition): Ditto.
21268         * reorg.c (delete_scheduled_jump): Ditto.
21269
21270 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21271
21272         * gcse.c: Fix formatting.
21273
21274 2002-01-03  Graham Stott  <grahams@redhat.com>
21275
21276         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21277         forward defs for struct tags rtx_def, union_tree, rtvec_def
21278         also output corresponding typedefs for rtx, tree, and rtvec.
21279
21280         * system.h: Move forward defs for struct tags rtx_def, union_tree,
21281         rtvec_def along with corresponding typedefs for rtx, tree, and
21282         rtvec to config.h, hconfig.h, tconfig.h.
21283
21284 2002-01-03  Graham Stott  <grahams@redhat.com>
21285
21286         * tree.h: Update copyright date.
21287         (IS_EXPR_CODE_CLASS): Add parenthesis.
21288         (TREE_SET_CODE): Add whitespace.
21289         (TREE_CHECK): Add parenthesis.
21290         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21291         (CST_OR_CONSTRUCTOR_CHECK):
21292         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21293         (TREE_SYMBOL_REFERENCED): Whitespace.
21294         (INT_CST_LT): Likewise.
21295         (INT_CST_LT_UNSIGNED): Likewise.
21296         (tree_real_cst): Unwrap comment.
21297         (tree_string): Likewise.
21298         (tree_complex): Likewise.
21299         (IDENTIFIER_POINTER): correct cast.
21300         (SAVE_EXPR_CONTEXT): Whitespace.
21301         (EXPR_WFL_FILENAME_NODE): Likewise.
21302         (EXPR_WFL_FILENAME): Remove parenthesis.
21303         (DECL_ORIGIN): Add parenthesis.
21304         (DECL_FROM_INLINE): Use NULL_TREE.
21305         (build_int_2): Whitespace.
21306         (build_type_variant): Add parenthesis.
21307
21308         * gcc/jcf-parse.c: Update copyright date.
21309         (yyparse): Constify resource_filename.
21310
21311 2002-01-03  Graham Stott  <grahams@redhat.com>
21312
21313         * rtl.h: Update copyright date.
21314         (RTL_CHECK1): Wrap long line.
21315         (RTL_CHECK2): Likewise.
21316         (RTL_CHECKC1): Wrap long line and whitespace.
21317         (RTL_CHECKC2): Likewise.
21318         (XWINT): Whitespace.
21319         (XINT): Likewise.
21320         (XSTR): Likewise.
21321         (XEXP): Likewise.
21322         (XVEC): Likewise.
21323         (XMODE): Likewise.
21324         (XBITMAP): Likewise.
21325         (XTREE): Likewise.
21326         (XBBDEF): Likewise.
21327         (XTMPL): Likewise.
21328         (X0WINT): Likewise.
21329         (X0INT):Likewise.
21330         (X0UINT): Likewise.
21331         (X0STR): Likewise.
21332         (X0EXP): Likewise.
21333         (X0VEC): Likewise.
21334         (X0MODE): Likewise.
21335         (X0BITMAP): Likewise.
21336         (X0TREE): Likewise.
21337         (X0BBDEF): Likewise.
21338         (X0ADVFLAGS): Likewise.
21339         (X0CSELIB): Likewise.
21340         (X0MEMATTR): Likewise.
21341         (XCWINT): Likewise.
21342         (XCINT): Likewise.
21343         (XCUINT): Likewise.
21344         (XCSTR): Likewise.
21345         (XCEXP): Likewise.
21346         (XCVEC): Likewise.
21347         (XCMODE): Likewise.
21348         (XCBITMAP): Likewise.
21349         (XCTREE): Likewise.
21350         (XCBBDEF): Likewise.
21351         (XCADVFLAGS): Likewise.
21352         (XCCSELIB): Likewise.
21353         (XC2EXP): Likewise.
21354         (INSN_UID): Likewise.
21355         (PREV_INSN): Likewise.
21356         (PATTERN): Likewise.
21357         (INSN_CODE): Likewise.
21358         (PUT_REG_NOTE_KIND): Likewise.
21359         (CODE_LABEL_NUMBER): Likewise.
21360         (NOTE_SOURCE_FILE): Likewise.
21361         (NOTE_BLOCK): Likewise.
21362         (NOTE_EH_HANDLER): Likewise.
21363         (NOTE_RANGE_INFO): Likewise.
21364         (NOTE_LIVE_INFO): Likewise.
21365         (NOTE_BASIC_BLOCK): Likewise.
21366         (NOTE_EXPECTED_VALUE): Likewise.
21367         (NOTE_LINE_NUMBER): Likewise.
21368         (LABEL_NAME): Likewise.
21369         (LABEL_NUSES): Likewise.
21370         (LABEL_ALTERNATE_NAME): Likewise.
21371         (ADDRESSOF_DECL): Likewise.
21372         (JUMP_LABEL): Likewise.
21373         (LABEL_NEXTREF): Likewise.
21374         (REGNO): Likewise.
21375         (ORIGINAL_REGNO: Likewise.
21376         (HARD_REGISTER_NUM_P): Add parenthesis.
21377         (SUBREG_REG): Whitespace.
21378         (SUBREG_BYTE): Likewise.
21379         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21380         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21381         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21382         (ASM_OPERANDS_INPUT_VEC): Likewise.
21383         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21384         (ASM_OPERANDS_INPUT): Likewise.
21385         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21386         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21387         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21388         (ASM_OPERANDS_INPUT_MODE): Likewise.
21389         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21390         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21391         (MEM_SET_IN_STRUCT_P): Minor reformat.
21392         (TRAP_CONDITION): Whitespace.
21393         (TRAP_CODE): Likewise.
21394         (COND_EXEC_TEST): Likewise.
21395         (COND_EXEC_CODE): Likewise.
21396         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21397         (PHI_NODE_P): Add parenthesis.
21398         (plus_constant): Whitespace and add parenthesis.
21399
21400 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21401
21402         * config/avr/avr.c: Fix comment typos.
21403         * config/c4x/c4x.md: Likewise.
21404         * config/dsp16xx/dsp16xx.h: Likewise.
21405         * config/dsp16xx/dsp16xx.md: Likewise.
21406         * config/i386/i386.md: Likewise.
21407         * config/ia64/ia64.c: Likewise.
21408         * config/m32r/m32r.h: Likewise.
21409         * config/m68hc11/m68hc11.md: Likewise.
21410         * config/mmix/mmix.c: Likewise.
21411         * config/mn10200/mn10200.c: Likewise.
21412         * config/romp/romp.c: Likewise.
21413         * config/sh/sh.c: Likewise.
21414         * config/stormy16/stormy16.c: Likewise.
21415         * config/stormy16/stormy16.h: Likewise.
21416         * config/stormy16/stormy16.md: Likewise.
21417
21418 2002-01-03  Graham Stott  <grahams@redhat.com>
21419
21420         * loop.h: Update copyright date.
21421         (LOOP_MOVABLES): Fix typo.
21422         (LOOP_REGS): Likewise.
21423         (LOOP_IVS): Likewise.
21424
21425 2002-01-03  Graham Stott  <grahams@redhat.com>
21426
21427         * cppinit.c: Update copyright date.
21428         Don't include output.h
21429         * Makefile.in: Update copyright date.
21430         Update dependency.
21431
21432 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21433
21434         PR c/5226
21435         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21436         (-pthread) Add to RS/6000 options.
21437
21438 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21439
21440         * except.c: Fix comment typos.
21441         * loop.c: Likewise.
21442         * varasm.c: Likewise.
21443         * doc/tm.texi: Fix a typo.
21444
21445 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21446
21447         * c-typeck.c (output_init_element): Allow initializing static storage
21448         duration objects with compound literals.
21449
21450 2002-01-02  Richard Henderson  <rth@redhat.com>
21451
21452         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21453         after abusing it.
21454
21455 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21456
21457         * gcc.c (default_compilers): Const-ify.
21458         * mips-tdump.c (stab_names): Likewise.
21459         * mips-tfile.c (map_coff_types, map_coff_storage,
21460         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21461         pseudo_ops_t, pseudo_ops): Likewise.
21462         * protoize.c (default_include): Likewise
21463
21464         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21465         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21466         Add array size in declaration.
21467         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21468         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21469         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21470         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21471         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21472         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21473         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21474         emtens, make_nan): Const-ify.
21475         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21476         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21477
21478 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21479
21480         * config.gcc (ia64-*-*): Set extra_headers.
21481         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21482         * config/alpha/t-osf: Remove.
21483         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21484
21485 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21486
21487         * config/rs6000/t-aix43: Revert previous change.
21488
21489 2002-01-02  Jason Merrill  <jason@redhat.com>
21490
21491         * c-decl.c (c_expand_body): Call outlining_inline_function when
21492         emitting an inline function out of line.
21493
21494 2002-01-02  Richard Henderson  <rth@redhat.com>
21495
21496         * dwarf2out.c (limbo_die_node): Add created_for member.
21497         (new_die): New argument created_for.  Update all callers.
21498         (mark_limbo_die_list): New.
21499         (dwarf2out_init): Register limbo_die_list as a root.
21500         (dwarf2out_finish): Force insert limbo dies into their function
21501         context.
21502
21503 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21504
21505         PR c++/5089
21506         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21507
21508 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21509
21510         * config/h8300/fixunssfsi.c: Update copyright.
21511         Fix comment typos.
21512         Fix formatting.
21513         * config/h8300/h8300.c: Update copyright.
21514         Eliminate warnings.
21515
21516 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21517
21518         * config/romp/romp.c: Fix comment formatting.
21519         * config/romp/romp.h: Likewise.
21520         * config/romp/romp.md: Likewise.
21521         * config/s390/s390.c: Likewise.
21522         * config/stormy16/stormy16.c: Likewise.
21523         * config/stormy16/stormy16.h: Likewise.
21524
21525 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21526
21527         * c-common.h (genrtl_expr_stmt_value): Declare.
21528         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21529         (genrtl_goto_stmt_value): ... this new function.  Pass new
21530         argument down to expand_expr_stmt_value, taking
21531         TREE_ADDRESSABLE into account.
21532         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21533         STMT_EXPR as addressable, i.e., one whose result we want.
21534         * expr.c (expand_expr): Don't save expression statement value
21535         of labeled_blocks or loop_exprs.
21536         * stmt.c (expand_expr_stmt): Redirect to...
21537         (expand_expr_stmt_value): ... this new function.  Use new
21538         argument to tell whether to save expression value.
21539         (expand_end_stmt_expr): Reset last_expr_type and
21540         last_expr_value if we don't have either.
21541         * tree-inline.c (declare_return_variable): Mark its use
21542         statement as addressable.
21543         * tree.h: Document new use of TREE_ADDRESSABLE.
21544         (expand_expr_stmt_value): Declare.
21545
21546 2002-01-01  Tom Rix  <trix@redhat.com>
21547
21548         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21549         rs6000_emit_allocate_stack.
21550
21551 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21552
21553         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21554         ${srcdir}/ginclude/ to every entry in extra_headers.
21555         * configure: Regenerate.
21556         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21557         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21558         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21559         * ginclude/proto.h: Rename to config/convex/proto.h.
21560
21561 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21562
21563         * attribs.c (handle_vector_size_attribute): Use host_integerp
21564         and tree_int_cst; remove warnings.
21565         * caller-save.c (insert_restore): Add cast to get rid of warning.
21566         (insert_save): Likewise.
21567         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21568         * regmove.c (find_matches): Add temporary var to kill a warning.
21569
21570 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21571
21572         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21573         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21574         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21575         (vms-dwarf2eh.o): Add Makefile rule.
21576         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21577         * config/alpha/vms-dwarf2eh.asm: New file.
21578
21579         * gcc.c (delete_if_ordinary): Delete all versions.
21580
21581 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21582
21583         * config/mmix/mmix.md: Update FIXME to not mention
21584         define_constants.
21585         (MMIX_rJ_REGNUM): New define_constants constant.
21586         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21587         "*movdicc_real"): Adjust contraints formatting.
21588         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21589         for branch prediction.
21590         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21591         output template.
21592         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21593         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21594         number.  Delete related FIXMEs.
21595         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21596         from number to MMIX_rJ_REGNUM.
21597         (TARGET_MASK_BRANCH_PREDICT): New.
21598         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21599         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21600         value.  Add -mbranch-predict and -mno-branch-predict.
21601         (TARGET_VERSION): Drop date.
21602         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21603         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21604         for finding out global symbols.
21605         (mmix_asm_output_labelref): Revert condition for global symbol.
21606         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21607         (mmix_print_operand_punct_valid_p): A '+' is valid.
21608
21609 See ChangeLog.6 for earlier changes.