OSDN Git Service

* c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-09-21  Richard Henderson  <rth@redhat.com>
2
3         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
4         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
5         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
6         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
7         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
8         * doc/cpp.texi: Don't document them.
9
10 2002-09-21  Richard Henderson  <rth@redhat.com>
11
12         * c-common.c (builtin_define_float_constants): Use real_format
13         to get the floating-point parameters.
14
15 2002-09-21  Richard Henderson  <rth@redhat.com>
16
17         * real.c (struct real_format): Move to real.h.
18         (real_format_for_mode): Rename from fmt_for_mode; update all users;
19         initialize with ieee defaults.
20         (real_to_target_fmt, real_from_target_fmt): New.
21         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
22         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
23         ieee_quad_format, i370_single_format, i370_double_format, 
24         c4x_single_format, c4x_extended_format): Rename from s/_format//.
25         (ieee_quad_format): Fix emin.
26         (format_for_size, init_real_once): Remove.
27         * real.h (struct real_format): Move from real.c.
28         (real_format_for_mode): Declare.
29         (real_to_target_fmt, real_from_target_fmt): Declare.
30         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
31         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
32         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
33         i370_single_format, i370_double_format, c4x_single_format,
34         c4x_extended_format): Declare.
35         * toplev.c (do_compile): Don't call init_real_once.
36
37         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
38         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
39
40         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
41         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
42         * config/alpha/alpha.c (override_options): Set real_format_for_mode
43         for VAX, if enabled.
44
45         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
46         for C4X.
47
48         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
49         * config/i370/i370.c (override_options): New.
50         * config/i370/i370-protos.h: Update.
51
52         * config/i386/i386.c (override_options): Set real_format_for_mode
53         for Intel 80-bit extended.
54         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
55
56         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
57         (OVERRIDE_OPTIONS): Move code...
58         * config/i960/i960.c (i960_initialize): ... here.  Set
59         real_format_for_mode for Intel 80-bit extended.
60
61         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
62         for Intel 80-bit extended, if enabled.
63
64         * config/m68k/m68k.c (override_options): Set real_format_for_mode
65         for Motorola 96-bit extended.
66
67         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
68         * config/vax/vax.c (override_options): New.
69         * config/vax/vax-protos.h: Update.
70
71 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
72
73         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
74         #if TARGET_MACHO.
75
76         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
77         insns.  Supply missing clobber of scratch reg.
78
79 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
80
81         * config/m32r/m32r.c: Follow spelling conventions.
82         * config/m32r/m32r.h: Likewise.
83         * config/m32r/m32r.md: Likewise.
84         * config/m68k/m68k.c: Likewise.
85         * config/m88k/m88k.c: Likewise.
86         * config/mcore/mcore.c: Likewise.
87         * config/mips/mips.c: Likewise.
88         * config/mips/mips.h: Likewise.
89         * config/mmix/mmix.c: Likewise.
90         * config/mn10200/mn10200.c: Likewise.
91         * config/ns32k/ns32k.h: Likewise.
92         * config/pa/pa.c: Likewise.
93         * config/pa/pa64-linux.h: Likewise.
94         * config/pdp11/pdp11.h: Likewise.
95         * config/romp/romp.c: Likewise.
96         * config/romp/romp.h: Likewise.
97         * config/rs6000/eabi.asm: Likewise.
98         * config/rs6000/linux64.h: Likewise.
99         * config/rs6000/rs6000.c: Likewise.
100         * config/rs6000/rs6000.h: Likewise.
101         * config/rs6000/rs6000.md: Likewise.
102         * config/rs6000/sysv4.h: Likewise.
103         * config/rs6000/xcoff.h: Likewise.
104
105 2002-09-20  Jim Wilson  <wilson@redhat.com>
106
107         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
108
109 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
110
111         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
112         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
113         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
114         (legitimate_address_p): Likewise.
115         (legitimize_address): Use @gotntpoff and @indntpoff.
116         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
117         (output_addr_const_extra): Likewise.
118
119 2002-09-20  Jim Wilson  <wilson@redhat.com>
120
121         * combine.c (try_combine): When split an instruction pair, where the
122         first has a sign_extend src, verify that the src and dest modes match.
123
124 2002-09-20  Richard Henderson  <rth@redhat.com>
125
126         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
127         (override_options): Do not initialize them.
128         (mips_const_double_ok): Allow no fp constants except zero,
129         and not even that for mips16.
130         (const_float_1_operand): Use dconst1.
131         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
132         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
133         Don't allow arbitrary constants; fix predicates and C constraint.
134
135 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
136
137         * cppmacro.c: Don't warn about function-like macros without
138         '(' during pre-expansion.
139
140 2002-09-20  Jim Wilson  <wilson@redhat.com>
141
142         * config/v850/v850.c (current_function_anonymous_args): Delete.
143         (expand_prologue): Use current_function_args_info.anonymous_args.
144         (expand_epilogue): Delete use of current_function_anonymous_args.
145         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
146         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
147         (current_function_anonymous_args): Delete extern declaration.
148         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
149
150 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
151
152         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
153         to load_macho_picbase.
154         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
155         (load_macho_picbase): Take the symbol to use as a parameter.
156         (macho_correct_pic): New insn.
157         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
158
159         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
160         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
161         (CAN_ELIMINATE): Likewise.
162         (INITIAL_ELIMINATION_OFFSET): Likewise.
163         (TOC_REGISTER): Likewise.
164
165 2002-09-20  Richard Henderson  <rth@redhat.com>
166
167         * real.c (real_hash): New.
168         * real.h: Declare it.
169         * cse.c (canon_hash): Use it.
170         * cselib.c (hash_rtx): Likewise.
171         * emit-rtl.c (const_double_htab_hash): Likewise.
172         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
173         * varasm.c (struct rtx_const): Reduce vector size; separate
174         integer and fp vectors.
175         (HASHBITS): Remove.
176         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
177         take modulus MAX_HASH_TABLE.
178         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
179         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
180         (SYMHASH): Don't use HASHBITS.
181         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
182         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
183         (simplify_subtraction): Fix kind comparison.
184         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
185         Use a union to pun integer array.
186         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
187         only hash two words of integral CONST_DOUBLE.
188
189 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
190
191         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
192         (STARTFILE_PREFIX_SPEC): New.
193         (LINK_SPEC): Modify.
194         (LIB_SPEC): Modify.
195         (LIBGCC_SPEC): New.
196
197 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
198
199         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
200         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
201
202 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
203
204         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
205         Add clobber of the condition code register.
206
207 2002-09-20  Richard Henderson  <rth@redhat.com>
208
209         * real.c (do_fix_trunc): Static.
210         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
211         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
212         encode_i370_single, encode_i370_double, encode_c4x_single,
213         encode_c4x_extended): Add default abort case.
214
215 2002-09-20  Richard Henderson  <rth@redhat.com>
216
217         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
218         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
219         (struct realvaluetype): Remove.
220         (REAL_VALUE_TYPE): Use struct real_value.
221         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
222         (test_real_width): New.
223         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
224         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
225         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
226         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
227         real_to_integer, real_to_integer2, real_to_decimal,
228         real_to_hexadecimal, real_from_string, real_from_integer,
229         real_inf, real_nan, real_2expN, real_convert, real_to_target,
230         real_from_target): Likewise.
231         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
232         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
233
234 2002-09-20  Richard Henderson  <rth@redhat.com>
235
236         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
237         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
238         * defaults.h: ... here.
239         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
240         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
241         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
242         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
243
244 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
245
246         * config/mmix/mmix.md ("negdf2"): Rewrite.
247         ("*expanded_negdf2"): New.
248
249 2002-09-19  Jim Wilson  <wilson@redhat.com>
250
251         * combine.c (simplify_set): When optimizing a subreg src with a
252         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
253
254 2002-09-19  Dale Johannesen <dalej@apple.com>
255         * combine.c (make_extraction): Don't create
256         invalid subreg.
257
258 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
259
260         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG 
261         and STRICT_LOW_PART within SET_DEST.
262         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
263         splitters, replacing pre-reload splitters.
264         ("*zero_extendhisi2_31", "*zero_extendqisi2_31", 
265         "*zero_extendqihi2_31"): New insns.
266         ("*zero_extendqihi2_64"): Do not clobber CC.
267
268 2002-09-18  Devang Patel  <dpatel@apple.com>
269
270         * cp/cp-tree.h: New prototype for walk_vtabls().        
271         * cp/decl.c (walk_vtables_r): New function.        
272         (struct cp_binding_level): Add new members, namespaces,        
273         names_size and vtables.        
274         (add_decl_to_level): Add decl in namespaces or vtables        
275         chain, if conditions match.        
276         (walk_vtables): New function.        
277         (walk_namespaces_r): Travers separate namespace chain        
278         for namespace decls.        
279         (wrapup_globals_for_namespace): Use names_size instead        
280         of list_length().        
281         * cp/decl2.c (finish_file): Use walk_vtables() instead of        
282         walk_globals() to walk vtable decls.        
283                 
284 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
285
286         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
287         (DTORS_SECTION_ASM_OP): Ditto.
288         (READONLY_DATA_SECTION_ASM_OP): Moved.
289         (DATA_SECTION_ASM_OP): New.
290         (SDATA_SECTION_ASM_OP): New.
291         (BSS_SECTION_ASM_OP): New.
292         (SBSS_SECTION_ASM_OP): New.
293         (TEXT_SECTION_ASM_OP): New.
294
295 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
296
297         * config/fp-bit.c: Follow spelling conventions.
298         * config/d30v/d30v.c: Likewise.
299         * config/d30v/d30v.h: Likewise.
300         * config/fr30/fr30.c: Likewise.
301         * config/fr30/fr30.h: Likewise.
302         * config/fr30/fr30.md: Likewise.
303         * config/frv/frv.c: Likewise.
304         * config/frv/frv.h: Likewise.
305         * config/h8300/h8300.c: Likewise.
306         * config/h8300/lib1funcs.asm: Likewise.
307         * config/i370/i370.c: Likewise.
308         * config/i386/i386.h: Likewise.
309         * config/i386/i386.md: Likewise.
310         * config/i386/pentium.md: Likewise.
311         * config/i386/winnt.c: Likewise.
312         * config/i960/i960.c: Likewise.
313         * config/ia64/ia64.h: Likewise.
314         * config/ip2k/ip2k.c: Likewise.
315         * config/ip2k/ip2k.h: Likewise.
316         * config/ip2k/ip2k.md: Likewise.
317         * config/ip2k/libgcc.S: Likewise.
318
319 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
320
321         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
322         (GOTOFF_P): Extend to allow gotoff plus constant.
323
324 2002-09-18  Richard Henderson  <rth@redhat.com>
325
326         * ifcvt.c (noce_process_if_block): Correctly detect X modified
327         with INSN_B before COND_EARLIEST.  Don't check A and B for 
328         modification in condition range.  Reorder INSN_B for A==B properly.
329         (if_convert): Iterate until no matches for a block.
330
331 2002-09-18  Richard Henderson  <rth@redhat.com>
332
333         * calls.c (store_one_arg): Rename default_align to parm_align;
334         always adjust parm_align for downward padding.
335
336 2002-09-18  Richard Henderson  <rth@redhat.com>
337
338         * toplev.c (backend_init): Move init_real_once invocation ...
339         (do_compile): ... here.
340
341 2002-09-18  Richard Henderson  <rth@redhat.com>
342
343         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
344         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
345
346 2002-09-18  Richard Henderson  <rth@redhat.com>
347
348         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
349
350 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
351
352         * config/rs6000/rs6000.md: (floatdisf2): Rename to
353         floatdisf2_internal1.
354         (floatdisf2): New define_expand.
355         (floatdisf2_internal2): Likewise.
356
357 2002-09-18  Richard Henderson  <rth@redhat.com>
358
359         * real.c (sticky_rshift_significand): Collect sticky as 
360         unsigned long, not bool.
361
362 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
363
364         * config/s390/s390.c (s390_address_cost): New function.
365         config/s390/s390-protos.h (s390_address_cost): Add prototype.
366         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
367         (RTX_COST): Use COSTS_N_INSNS.
368
369 2002-09-18  Douglas Rupp  <rupp@gnat.com>
370             Donn Terry  <donnte@microsoft.com>
371
372         * stor-layout.c (place_field): Handle alignment of whole
373         structures when MSVC compatible bitfields are involved.
374         Change method of computing location of MS bitfields to
375         be compatible with #pragma pack(n).
376
377         * tree.h (record_layout_info): Add new field
378         remaining_in_alignment.
379
380         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
381         (pragma pack): Add paragraph on MSVC bitfield packing.
382
383 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
384
385         PR optimization/7967
386         * arm.md (ne_zeroextractsi): Add clobber of the condition code
387         register.
388
389 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
390
391         * config/s390/s390.c: Follow spelling conventions.
392         * config/sh/lib1funcs.asm: Likewise.
393         * config/sh/sh.c: Likewise.
394         * config/sh/sh.h: Likewise.
395         * config/sparc/sparc.c: Likewise.
396         * config/sparc/sparc.h: Likewise.
397         * config/sparc/sparc.md: Likewise.
398         * config/stormy16/stormy16.c: Likewise.
399         * config/stormy16/stormy16.h: Likewise.
400         * config/v850/v850.c: Likewise.
401         * config/v850/v850.h: Likewise.
402         * config/vax/vax.c: Likewise.
403         * config/vax/vax.h: Likewise.
404
405 2002-09-18  Nick Clifton  <nickc@redhat.com>
406
407         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
408         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
409         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
410
411 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
412
413         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
414         statement that the only translation is to en_UK.
415
416 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
417
418         * config/alpha/alpha.c: Follow spelling conventions.
419         * config/alpha/alpha.h: Likewise.
420         * config/alpha/alpha.md: Likewise.
421         * config/arc/arc.h: Likewise.
422         * config/arm/arm.c: Likewise.
423         * config/arm/arm.h: Likewise.
424         * config/arm/arm.md: Likewise.
425         * config/arm/pe.c: Likewise.
426         * config/arm/unknown-elf.h: Likewise.
427         * config/avr/avr.c: Likewise.
428         * config/avr/avr.h: Likewise.
429         * config/c4x/c4x.c: Likewise.
430         * config/cris/cris.c: Likewise.
431         * config/cris/cris.h: Likewise.
432
433 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
434
435         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
436         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
437         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
438
439 2002-09-17  Dale Johannesen  <dalej@apple.com>
440
441         * cfgcleanup.c (try_forward_edges):  Do not forward a
442         branch to just after a loop exit before loop optimization;
443         this interfered with doloop detection.
444
445 2002-09-17  Nick Clifton  <nickc@redhat.com>
446
447         * config/arm/arm.c (output_return_instruction): Do not
448         writeback the stack pointer when it is being loaded.
449         (arm_output_epilogue): Likewise.
450
451 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
452
453         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
454         generate a pseudo reg that receives the result of a libcall.
455         (prepare_float_lib_cmp): Likewise.
456
457 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
458
459         * config/ia64/elf.h: Remove CPP_PREDEFINES.
460
461 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
462
463         Fix PR/7014 and related objc bugs:
464         * c-typeck.c (comp_target_types): Added a reflexive argument.
465         Pass it to ObjC when/if calling objc_comptypes().  Updated all
466         callers to provide the appropriate reflexive argument.
467         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
468         typechecking for all cases of comparisons and assignments,
469         particularly the obscure and less common ones involving protocols.
470
471 2002-09-17  Nick Clifton  <nickc@redhat.com>
472
473         * machmode.def (V1DImode): New mode.  A single element vector.
474         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
475         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
476         * tree.c (build_common_tree_nodes_2): Build
477         unsigned_V1DI_type_node and V1D1_type_node.
478         * c-common.c (c_common_type_for_mode): Return
479         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
480         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
481
482 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
483
484         * doc/objc.texi (Constant string objects): Extended documentation
485         to make clear that the constant string class ivar layout is
486         completely fixed.
487         
488 2002-09-17  Roger Sayle  <roger@eyesopen.com>
489
490         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
491         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
492
493 2002-09-16  Richard Henderson  <rth@redhat.com>
494
495         * expr.c (emit_block_move): Set memory block size as appropriate
496         for the copy.
497
498 2002-09-16  Richard Henderson  <rth@redhat.com>
499
500         PR fortran/3924
501         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
502
503 2002-09-16  Richard Henderson  <rth@redhat.com>
504
505         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
506         as well as OFFSET for BITPOS.
507
508 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
509
510         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
511         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
512         winchip2 and c3.
513         * doc/invoke.texi: Mention new aliases.
514
515 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
516
517         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
518         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
519         downward.
520         * function.c (pad_below):  Always compile.
521         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
522         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
523         Pad below when the argument is not in a register and the padding
524         direction is downward.
525
526         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
527         (PAD_VARARGS_DOWN): Define.
528         * pa.c (function_arg_padding): Revise padding directions to make them
529         compatible with the 32 and 64-bit runtime architecture documentation.
530         (hppa_va_arg):  Add code to handle variable and size zero arguments
531         passed by reference on TARGET_64BIT.  Reformat.
532         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
533         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
534         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
535         Add comments.
536         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
537         (RETURN_IN_MEMORY): Return size zero types in memory.
538         (FUNCTION_VALUE): Return TFmode in general registers.
539         (MUST_PASS_IN_STACK): Define.
540         (FUNCTION_ARG_BOUNDARY): Simplify.
541         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
542         by reference.
543         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
544
545 2002-09-16  Richard Henderson  <rth@redhat.com>
546
547         * real.c (do_fix_trunc): New.
548         (real_arithmetic): Call it.
549         * simplify-rtx.c (simplify_unary_operation): Handle FIX
550         with a floating-point result mode.
551
552 2002-09-16  Richard Henderson  <rth@redhat.com>
553
554         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
555         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
556         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
557         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
558         * builtins.c (fold_builtin_nan): New.
559         (fold_builtin): Call it.
560         * real.c (real_nan): Parse a non-empty string.
561         (round_for_format): Fix NaN significand truncation.
562         * real.h (real_nan): Return bool.
563         * doc/extend.texi: Document new builtins.
564
565 2002-09-16  Jason Merrill  <jason@redhat.com>
566             Danny Smith  <dannysmith@users.sourceforge.net>
567
568         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
569         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
570         (i386_pe_mark_dllimport): Not here.
571
572 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
573
574         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
575
576 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
577
578         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
579         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
580         < 64.
581         (rs6000_emit_cmove): Use real_isinf not target_isinf.
582
583 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
584
585         * calls.c (emit_library_call_value_1): Don't refer to
586         hard_libcall_value.
587         * optabs.c (prepare_float_lib_cmp): Likewise.
588
589 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
590
591         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
592         mangling.
593
594         The following changes are merged from pch-branch:
595
596         * doc/gty.texi (GTY Options): Document %a.
597         * gengtype.c (do_scalar_typedef): New function.
598         (process_gc_options): Handle `length' option.
599         (set_gc_used_type): A pointer to an array of structures doesn't
600         qualify as a pointer to a structure.
601         (output_escaped_param): Add `%a' escape.
602         (write_gc_structure_fields): Allow 'desc' on array of unions.
603         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
604         do_scalar_typedef.
605
606         * gengtype.c (enum rtx_code): Make global.
607         (rtx_format): Make global.
608         (rtx_next): New.
609         (gen_rtx_next): New.
610         (write_rtx_next): New.
611         (adjust_field_rtx_def): Skip fields marked by chain_next.
612         (open_base_files): Delete redundant prototype.
613         (write_enum_defn): New.
614         (output_mangled_typename): Correct abort call.
615         (write_gc_marker_routine_for_structure): Handle chain_next and
616         chain_prev options.
617         (finish_root_table): Don't output redundant \n.
618         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
619         * c-tree.h (union lang_tree_node): Add chain_next option.
620
621         * gengtype.h (NUM_PARAM): New definition.
622         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
623         * gengtype.c (find_param_structure): New.
624         (adjust_field_type): Handle param<n>_is option.
625         (process_gc_options): Detect use_params option.  Update callers.
626         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
627         'use_params' option.
628         (open_base_files): Add splay-tree.h to list of files included.
629         (output_mangled_typename): New.
630         (write_gc_structure_fields): Update 'param' parameter to support
631         multiple parameters.  Change name mangling.  Allow parameterized
632         fields to have an apparent scalar type.  Handle param<n>_is options,
633         use_param option.
634         (write_gc_marker_routine_for_structure): Update for change to name
635         mangling.  Better guess the output file for parameterized types.
636         (write_gc_types): Update for change to name mangling.
637         (write_gc_root): Update for change to name mangling.  Handle (ignore)
638         param<n>_is options.
639         * doc/gty.texi (GTY Options): Add description of param<n>_is
640         options, use_params option.
641         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
642         * gengtype-lex.l: Produce token for param<n>_is.
643         * gengtype-yacc.y: Parse param<n>_is.
644
645         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
646
647         * rtl.c: Update comment describing rtx_format.
648         * rtl.h (union rtunion): Separate definition and typedef.
649         (struct rtx_def): Use gengtype to mark.
650         * Makefile.in (gengtype.o): Also depend on rtl.def.
651         * ggc.h (ggc_mark_rtx_children): Delete prototype.
652         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
653         * ggc-common.c (ggc_mark_rtx_children): Delete.
654         (ggc_mark_rtx_children_1): Delete.
655         (gt_ggc_m_rtx_def): Delete.
656         * gengtype.c (adjust_field_rtx_def): New.
657         (adjust_field_type): Call adjust_field_rtx_def.
658         (write_gc_structure_fields): Add 'default' case to switch if none
659         is specified; remove unused code.
660
661         * tree.h (struct tree_exp): Update for change to meaning
662         of special.
663         * gengtype.c (adjust_field_tree_exp): New function.
664         (adjust_field_type): Handle `tree_exp' special here.
665         (write_gc_structure_fields): Don't handle `tree_exp' special here.
666         Handle new `dot' option.
667
668         * gengtype.h: Make `info' a pointer-to-const.
669         * gengtype-yacc.y (yacc_ids): Use xasprintf.
670
671         * gengtype.c (write_gc_structure_fields): Remove implementation
672         of `always' option, add `default' option.
673         * doc/gty.texi (GTY Options): Remove documentation of `always',
674         add `default'.
675
676 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
677
678         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
679
680 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
681
682         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
683
684         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
685         instead of the *-protos.h file directly.
686         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
687         * darwin.c (machopic_output_stub): Move prototype ...
688         * darwin-protos.h (machopic_output_stub): ... here.
689         * rs6000-protos.h (machopic_output_stub): Don't declare.
690
691 2002-09-16  Richard Henderson  <rth@redhat.com>
692
693         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
694
695 2002-09-16  Richard Henderson  <rth@redhat.com>
696
697         * real.c, real.h: Rewrite from scratch.
698
699         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
700         (paranoia): New target.
701         * builtins.c (fold_builtin_inf): Use new real.h interface.
702         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
703         * c-lex.c (interpret_float): Likewise.
704         * emit-rtl.c (gen_lowpart_common): Likewise.
705         * optabs.c (expand_float): Use real_2expN.
706         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
707         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
708         (FLOAT_WORDS_BIG_ENDIAN): New.
709         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
710         directly to REAL_VALUE_NEGATIVE.
711         * loop.c (canonicalize_condition): Likewise.
712         * simplify-rtx.c: Include tree.h.
713         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
714         with floating-point result modes.
715         * toplev.c (backend_init): Call init_real_once.
716
717         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
718         * tree.c (build_real): Likewise.
719         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
720         float_values, inited_float_values, check_float_value): Remove.
721         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
722         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
723         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
724         (VAX_HALFWORD_ORDER): Remove.
725
726 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
727
728         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
729         (s390_load_address): ... this new function.
730         (s390_decompose_address): Allow the argument pointer and all
731         virtual registers as 'pointer' registers.
732         (s390_expand_plus_operand): Use s390_load_address.
733         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
734         ("force_la_31"): New insn pattern.
735         config/s390/s390-protos.h (legitimize_la_operand): Remove.
736         (s390_load_address): Add prototype.
737
738         * config/s390/s390.c: Include "optabs.h".
739         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
740         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr, 
741         s390_expand_cmpstr): Add prototypes.
742         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
743         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
744         for operands 0 and 1 to "memory_operand".  Add type attribute.
745         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
746         for operands 0 and 1 to "memory_operand".  Add type attribute.
747         ("movstrdi_long", "movstrsi_long"): Remove.
748         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
749         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
750         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
751         ("clrstrsico"): Remove, replace by ...
752         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
753         ("clrstrsi_64"): Rename to "clrstr_long_64".
754         ("clrstrsi_31"): Rename to "clrstr_long_31".
755         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
756         ("cmpstr_const"): Remove, replace by ...
757         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
758         ("cmpstr_64"): Rename to "cmpstr_long_64".
759         ("cmpstr_31"): Rename to "cmpstr_long_31".
760
761 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
762
763         * ABOUT-NLS: Follow spelling conventions.
764         * ChangeLog: Likewise.
765         * ChangeLog.1: Likewise.
766         * ChangeLog.2: Likewise.
767         * ChangeLog.3: Likewise.
768         * ChangeLog.4: Likewise.
769         * ChangeLog.5: Likewise.
770         * ChangeLog.6: Likewise.
771         * FSFChangeLog.10: Likewise.
772         * FSFChangeLog.11: Likewise.
773         * c-common.c: Likewise.
774         * c-lex.c: Likewise.
775         * c-objc-common.c: Likewise.
776         * cppexp.c: Likewise.
777         * cppinit.c: Likewise.
778         * cpplex.c: Likewise.
779         * doloop.c: Likewise.
780         * flow.c: Likewise.
781         * function.c: Likewise.
782         * integrate.c: Likewise.
783         * loop.c: Likewise.
784         * reg-stack.c: Likewise.
785         * reload.h: Likewise.
786         * ssa.c: Likewise.
787
788 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
789
790         * ChangeLog: Follow spelling conventions.
791         * ChangeLog.0: Likewise.
792         * ChangeLog.1: Likewise.
793         * ChangeLog.2: Likewise.
794         * ChangeLog.4: Likewise.
795         * ChangeLog.6: Likewise.
796         * config.gcc: Likewise.
797         * dwarfout.c: Likewise.
798         * reload1.c: Likewise.
799         * simplify-rtx.c: Likewise.
800         * unwind-sjlj.c: Likewise.
801         * config/avr/avr.h: Likewise.
802         * config/d30v/d30v.h: Likewise.
803         * config/frv/frv.c: Likewise.
804         * config/frv/frv.h: Likewise.
805         * config/ip2k/ip2k.h: Likewise.
806         * config/m88k/m88k-move.sh: Likewise.
807         * config/stormy16/stormy16.c: Likewise.
808         * config/stormy16/stormy16.h: Likewise.
809         * doc/extend.texi: Likewise.
810         * doc/interface.texi: Likewise.
811         * doc/invoke.texi: Likewise.
812         * doc/md.texi: Likewise.
813         * doc/rtl.texi: Likewise.
814         * doc/tm.texi: Likewise.
815         * doc/trouble.texi: Likewise.
816         * ginclude/float.h: Likewise.
817         * treelang/treelang.texi: Likewise.
818
819 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
820
821         * i386-protos.h (i386_pe_dllexport_name_p,
822         i386_pe_dllimport_name_p, i386_pe_unique_section,
823         i386_pe_declare_function_type, i386_pe_record_external_function,
824         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
825         prototype.
826         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
827         * i386/t-interix (winnt.o): Likewise.
828
829         * v850-protos.h (v850_output_addr_const_extra): Prototype.
830
831 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
832
833         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
834         MIPS ABI CPP macros.
835         (TARGET_CPU_CPP_BUILTINS): Redefine.
836         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
837         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
838
839 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
840
841         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
842
843 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
844
845         * ChangeLog: Follow spelling conventions.
846         * ChangeLog.0: Likewise.
847         * ChangeLog.1: Likewise.
848         * ChangeLog.2: Likewise.
849         * ChangeLog.3: Likewise.
850         * ChangeLog.4: Likewise.
851         * ChangeLog.5: Likewise.
852         * ChangeLog.6: Likewise.
853         * FSFChangeLog.10: Likewise.
854         * FSFChangeLog.11: Likewise.
855         * c-common.c: Likewise.
856         * c-common.h: Likewise.
857         * c-format.c: Likewise.
858         * c-opts.c: Likewise.
859         * cpplib.c: Likewise.
860         * langhooks.h: Likewise.
861         * real.c: Likewise.
862         * reg-stack.c: Likewise.
863         * toplev.c: Likewise.
864         * config/arm/arm.c: Likewise.
865         * config/arm/arm.md: Likewise.
866         * config/arm/linux-gas.h: Likewise.
867         * config/arm/netbsd.h: Likewise.
868         * config/c4x/c4x.c: Likewise.
869         * config/c4x/c4x.h: Likewise.
870         * config/c4x/c4x.md: Likewise.
871         * config/c4x/libgcc.S: Likewise.
872         * config/fr30/fr30.md: Likewise.
873         * config/frv/frv.md: Likewise.
874         * config/ia64/ia64.md: Likewise.
875         * config/mips/mips.h: Likewise.
876         * config/mn10300/mn10300.c: Likewise.
877         * config/stormy16/stormy16.c: Likewise.
878         * config/v850/v850.md: Likewise.
879         * doc/extend.texi: Likewise.
880         * doc/invoke.texi: Likewise.
881         * doc/md.texi: Likewise.
882
883 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
884
885         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
886         library if -pthread is specified.
887
888 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
889
890         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
891         for --enable-threads=yes and --enable-threads=posix.
892
893 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
894
895         * config/sparc/cypress.md: Replace Sparc with SPARC.
896         * config/sparc/freebsd.h: Likewise.
897         * config/sparc/gmon-sol2.c: Likewise.
898         * config/sparc/hypersparc.md: Likewise.
899         * config/sparc/lb1spc.asm: Likewise.
900         * config/sparc/lb1spl.asm: Likewise.
901         * config/sparc/linux.h: Likewise.
902         * config/sparc/linux64.h: Likewise.
903         * config/sparc/lynx.h: Likewise.
904         * config/sparc/sol2.h: Likewise.
905         * config/sparc/sparc-modes.def: Likewise.
906         * config/sparc/sparc.c: Likewise.
907         * config/sparc/sparc.h: Likewise.
908         * config/sparc/sparc.md: Likewise.
909         * config/sparc/sparclet.md: Likewise.
910         * config/sparc/supersparc.md: Likewise.
911         * config/sparc/sysv4.h: Likewise.
912         * config/sparc/vxsim.h: Likewise.
913         * config/sparc/vxsparc64.h: Likewise.
914
915 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
916
917         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
918
919 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
920
921         * ChangeLog: Follow spelling conventions.
922         * ChangeLog.0: Likewise.
923         * ChangeLog.2: Likewise.
924         * ChangeLog.3: Likewise.
925         * ChangeLog.4: Likewise.
926         * ChangeLog.5: Likewise.
927         * ChangeLog.6: Likewise.
928         * cppfiles.c: Likewise.
929         * cppinit.c: Likewise.
930         * cpplib.h: Likewise.
931         * cse.c: Likewise.
932         * debug.h: Likewise.
933         * df.c: Likewise.
934         * dominance.c: Likewise.
935         * hashtable.c: Likewise.
936         * hashtable.h: Likewise.
937         * loop.c: Likewise.
938         * config/arm/README-interworking: Likewise.
939         * config/arm/arm.c: Likewise.
940         * config/arm/arm.h: Likewise.
941         * config/arm/arm.md: Likewise.
942         * config/dsp16xx/dsp16xx.h: Likewise.
943         * config/frv/frv.c: Likewise.
944         * config/frv/frv.h: Likewise.
945         * config/ip2k/ip2k.h: Likewise.
946         * config/rs6000/rs6000.c: Likewise.
947         * config/stormy16/stormy-abi: Likewise.
948         * config/stormy16/stormy16.h: Likewise.
949         * config/v850/v850.c: Likewise.
950
951 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
952
953         * loop.c: Fix a comment typo.
954
955 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
956
957         * config/fr30/fr30.h: Fix comment typos.
958         * config/frv/frv.c: Likewise.
959         * config/i386/xmmintrin.h: Likewise.
960         * config/mips/mips.c: Likewise.
961         * config/sh/sh.c: Likewise.
962
963 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
964
965         * haifa-sched.c: Follow spelling conventions.
966         * regclass.c: Likewise.
967         * regrename.c: Likewise.
968         * config/fp-bit.c: Likewise.
969         * config/frv/frv.h: Likewise.
970         * config/m88k/m88k.c: Likewise.
971         * config/mcore/mcore.c: Likewise.
972         * config/rs6000/darwin.h: Likewise.
973         * config/rs6000/gnu.h: Likewise.
974         * config/rs6000/linux.h: Likewise.
975         * config/rs6000/linux64.h: Likewise.
976         * config/rs6000/rs6000.c: Likewise.
977         * config/rs6000/rs6000.h: Likewise.
978         * config/sh/sh.c: Likewise.
979         * config/sparc/sparc.c: Likewise.
980         * config/sparc/ultra1_2.md: Likewise.
981
982 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
983
984         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
985         memory operand when source is 0 (K constraint).
986         ("movsi_internal"): Likewise.
987         ("movdf_internal"): Likewise.
988         ("movsf_internal"): Likewise.
989
990 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
991
992         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
993         targetm.binds_local_p to set SYMBOL_REF_FLAG.
994         (rs6000_xcoff_encode_section_info): Likewise.
995         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
996
997 2002-09-10  Theodore A. Roth  <troth@verinet.com>
998
999         * gcc/config/avr/avr.h: Set default options for C++ for avr.
1000
1001 2002-09-13  Richard Henderson  <rth@redhat.com>
1002
1003         * Makefile.in (toplev.o): Depend on real.h.
1004         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
1005
1006 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
1007
1008         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
1009         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
1010         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
1011
1012 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
1013
1014         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
1015
1016 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1017
1018         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
1019         ia64*-*-linux*): Set extra_parts.
1020         * config/ia64/t-aix (EXTRA_PARTS): Remove.
1021         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
1022
1023 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1024
1025         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
1026         * config/h8300/h8300.c: Likewise.
1027         * config/h8300/h8300.h: Likewise.
1028         * config/h8300/h8300.md: Likewise.
1029         * doc/invoke.texi: Likewise.
1030
1031 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1032
1033         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
1034
1035 2002-09-13  Matt Austern  <austern@apple.com>
1036
1037         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
1038         * cp/call.c: Change call-by-const-reference mechanism to use
1039         non_cast_lvalue_p when deciding whether the create a temporary.
1040         We need a temporary when passing, e.g. (long) x by const ref.
1041         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
1042         passing a cast expression to a function by const reference.
1043         
1044 2002-09-13  Richard Henderson  <rth@redhat.com>
1045
1046         * config/alpha/alpha.md (attr type): Add callpal.
1047         (imb, trap, load_tp, set_tp): Use it.
1048         * config/alpha/ev4.md (ev4_callpal): New.
1049         * config/alpha/ev5.md (ev5_callpal): New.
1050         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
1051         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
1052         (alphaev5_insn_pipe): Likewise.
1053
1054 2002-09-13  Andreas Jaeger  <aj@suse.de>
1055
1056         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
1057
1058 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1059
1060         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
1061         LIB2ADDEH): New, set to NULL.
1062         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
1063
1064 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1065
1066         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
1067         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
1068         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
1069         Add declarations.
1070         (_U_Qfneg): Remove.
1071
1072 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
1073
1074         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
1075         for H8/300, H8S aa:8 mode.
1076         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
1077         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
1078         for H8/300 aa:8 mode.
1079
1080 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
1081
1082         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
1083         insns.
1084
1085 2002-09-12  Richard Henderson  <rth@redhat.com>
1086
1087         * Makefile.in (HOST_PRINT): Use print-rtl1.o
1088         (print-rtl.o): Don't define GENERATOR_FILE.
1089         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
1090         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
1091         unless GENERATOR_FILE.
1092
1093 2002-09-12  Stan Shebs  <shebs@apple.com>
1094
1095         * config/darwin.h (USER_LABEL_PREFIX): Define here...
1096         * config/i386/darwin.h: ... instead of here.
1097
1098         * target.h (struct gcc_target): New field
1099         terminate_dw2_eh_frame_info.
1100         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1101         (TARGET_INITIALIZER): Add it.
1102         * dwarf2out.c (output_call_frame_info): Use target hook.
1103         * dwarf2asm.c (dw2_asm_output_delta): Use macro
1104         ASM_OUTPUT_DWARF_DELTA if defined.
1105         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
1106         (ASM_OUTPUT_DWARF_DELTA): Ditto.
1107         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
1108         (ASM_OUTPUT_DWARF_PCREL): Ditto.
1109         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
1110         (powerpc-*-darwin*): Ditto.
1111         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
1112         to work correctly for Darwin.
1113         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
1114         (STARTFILE_SPEC): Add crtbegin.o.
1115         (ENDFILE_SPEC): Define.
1116         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
1117         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
1118         (ASM_OUTPUT_DWARF_DELTA): Define.
1119         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1120         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
1121
1122 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
1123
1124         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
1125         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
1126         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
1127
1128 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
1129
1130         * toplev.c: Move default definition of USER_LABEL_PREFIX...
1131         * defaults.h: ... here.
1132
1133 2002-09-12  Richard Henderson  <rth@redhat.com>
1134
1135         * vax.c: Include tree.h earlier.
1136
1137 2002-09-12  Stan Shebs  <shebs@apple.com>
1138
1139         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
1140         (machopic_operand_p): Ditto.
1141
1142 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1143
1144         * config/arm/arm.c (arm_compute_initial_elimination_offset):
1145         Fix a comment typo.
1146
1147 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1148
1149         * toplev.c (do_abort): Fix a comment typo.
1150
1151 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1152
1153         * cselib.c: Fix comment formatting.
1154         * gengtype.c: Likewise.
1155
1156 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1157
1158         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
1159         (udivmodhi4): Likewise.
1160
1161 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
1162             Roger Sayle  <roger@eyesopen.com>
1163
1164         * i386.c (any_fp_register_operand, fp_register_operand,
1165         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
1166         New predicate functions.
1167         * i386-protos.h:  Add their prototypes.
1168         * i386.h: Add them to PREDICATE_CODES.
1169         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
1170         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
1171         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
1172         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
1173         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
1174         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
1175         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
1176         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
1177         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
1178         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
1179         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
1180         Use these new predicates to simplify and correct the use of
1181         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
1182
1183 2002-09-12  Jason Merrill  <jason@redhat.com>
1184
1185         * diagnostic.c (output_add_identifier): New fn.
1186         * diagnostic.h: Declare it.
1187
1188         * calls.c (store_one_arg): Use size_in_bytes to determine the
1189         amount of space to push.
1190
1191 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1192
1193         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
1194
1195 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
1196
1197         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
1198         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
1199         (s390_select_ccmode): Likewise.
1200         (s390_branch_condition_mask): Likewise.
1201         (optimization_options): Do not set flag_branch_on_count.
1202         (s390_split_branches): Handle doloop branches.
1203         (s390_chunkify_pool): Likewise.
1204         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1205         ("doloop_end"): New expander.
1206         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1207         associated splitters): New.
1208
1209 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
1210
1211         * fold-const.c (make_range): Only narrow to signed range if
1212         the signed range is smaller than the unsigned range.
1213
1214 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1215
1216         * emit-rtl.c (set_mem_size): New function.
1217         * expr.h (set_mem_size): Declare.
1218         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1219         (expand_block_move): Instead, use adjust_address and
1220         replace_equiv_address to generate proper aliasing info.
1221         Move common code out of conditionals.  Localize vars.
1222
1223 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
1224
1225         * optabs.c (expand_binop): Minor cleanup.
1226         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1227
1228 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
1229
1230         * print-tree.c (print_node): Print the restrict qualifier.
1231
1232 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
1233
1234         * doc/install.texi: Fix typos.
1235
1236 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
1237
1238         * Makefile.in: Remove all references to s-under and underscore.c.
1239         * collect2.c, tlink.c: Change all uses of prepends_underscore
1240         to look directly at USER_LABEL_PREFIX.
1241
1242 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
1243
1244         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
1245         alignment to csect.
1246         (rs6000_xcoff_unique_section): Only set section name for public
1247         data.
1248         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
1249         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
1250         duplicate definition.
1251
1252 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1253
1254         * pa.md (extzv): Check predicates before emitting extzv_32.
1255         (insv): Likewise.
1256
1257 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1258
1259         * config/s390/s390.h (MOVE_MAX): Define to correct value.
1260         (MAX_MOVE_MAX): Define.
1261         (MOVE_BY_PIECES_P): Define.
1262         (CLEAR_BY_PIECES_P): Define.
1263
1264 2002-09-10  Denis Chertykov  <denisc@overta.ru>
1265
1266         * config/avr/avr.md (movstrhi): Use right operands for conversion.
1267
1268 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
1269
1270         PR c/7873
1271         * arm.md (insv): Use reg_or_int_operand for operand[3].
1272
1273 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
1274
1275         * rs6000.c (rs6000_assemble_visibility): Protect declaration
1276         inside macro.  Correct function definition typo.
1277         (rs6000_xcoff_section_type_flags): New function.
1278         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
1279         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
1280         with appropriate PIC test.
1281         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
1282         determine readonly.
1283         (rs6000_binds_local_p): Combine PIC flags.
1284         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
1285         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
1286
1287 2002-09-09  Per Bothner  <per@bothner.com>
1288
1289         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
1290         characters, and only print TREE_STRING_LENGTH chars.
1291
1292 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
1293
1294         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
1295         (ASM_FILE_END) New.
1296         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
1297         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
1298         * config/ia64/ia64.c (ia64_asm_output_external): Create list
1299         of external functions if TARGET_HPUX_LD is true.
1300         (ia64_hpux_add_extern_decl): New, routine to put names on
1301         list of external functions.
1302         (ia64_hpux_asm_file_end): Put out declarations for external
1303         functions if and only if they are used.
1304
1305 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1306
1307         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
1308         on TARGET_64BIT before pic register restore.
1309
1310 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
1311
1312         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
1313         (TARGET_HAVE_TLS): New description.
1314
1315 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
1316
1317         * doc/extend.texi (Statement Exprs): Fix broken link.
1318
1319 2002-09-09  Denis Chertykov  <denisc@overta.ru>
1320
1321         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
1322         right conversion of operands[1].
1323
1324 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1325
1326         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
1327         commutative.  Use "nonimmediate_operand" instead of "register_operand"
1328         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
1329
1330         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
1331         as commutative.
1332
1333         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
1334         mark as commutative.  Use "nonimmediate_operand" instead of
1335         "register_operand" as predicate for operand 1.
1336
1337         ("movstrictsi"): Fix typo in insn name.
1338
1339 2002-09-09  Jan Hubicka  <jh@suse.cz>
1340
1341         * i386.c (index_register_operand): New.
1342         * i386.h (predicate_codes): Add new predicate.
1343         * i386.md (lea_general_*): Use index_regsiter_operand
1344         (ashift to lea splitter): Do not produce invalid leas
1345         (ashift to mov+ashift split): New.
1346
1347 2002-09-09  Nick Clifton  <nickc@redhat.com>
1348
1349         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
1350         Fix folding marks.
1351
1352 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1353             J"orn Rennecke <joern.rennecke@superh.com>
1354
1355         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
1356
1357 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
1358
1359         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
1360         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
1361         attributes.
1362
1363 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1364
1365         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
1366
1367 2002-09-08  Richard Henderson  <rth@redhat.com>
1368
1369         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
1370         (DW_OP_GNU_push_tls_address): New.
1371         (DW_OP_lo_user): Fix.
1372         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
1373         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
1374         (size_of_loc_descr): Likewise.
1375         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
1376         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
1377         (loc_descriptor_from_tree): Handle TLS variables.
1378         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
1379         (add_location_or_const_value_attribute): ... not here.  Defer
1380         to loc_descriptor_from_tree for TLS variables.
1381
1382         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
1383         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
1384         * config/i386/i386-protos.h: Update.
1385
1386 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1387
1388         PR optimization/6405
1389         * unroll.c (loop_iterations): last_loop_insn should be the previous
1390         non-note instruction before loop->end.
1391         * loop.c (strength_reduce): The conditional jump is the last
1392         non-note instruction before loop->end (as above).
1393
1394 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1395
1396         * combine.c (try_combine): Handle the case that undobuf.other_insn
1397         has been turned into a return or unconditional jump, by inserting
1398         a BARRIER if necessary.
1399         (simplify_set):  Test if a condition code setter has a constant
1400         comparison at compile time, if so convert this insn to a no-op move
1401         and update/simplify the condition code user (undobuf.other_insn).
1402
1403 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
1404
1405         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
1406         (CLEAR_INSN_CACHE): Define.
1407
1408 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1409
1410         * basic-block.h: Fix comment formatting.
1411         * c-common.c: Likewise.
1412         * c-common.h: Likewise.
1413         * c-lex.c: Likewise.
1414         * c-pretty-print.c: Likewise.
1415         * cfglayout.c: Likewise.
1416         * cfgloop.c: Likewise.
1417         * defaults.h: Likewise.
1418         * et-forest.c: Likewise.
1419         * explow.c: Likewise.
1420         * function.h: Likewise.
1421         * gcov.c: Likewise.
1422         * genattrtab.c: Likewise.
1423         * gengtype.c: Likewise.
1424         * ifcvt.c: Likewise.
1425         * libgcc2.c: Likewise.
1426         * loop.c: Likewise.
1427         * profile.c: Likewise.
1428         * ra-build.c: Likewise.
1429         * real.c: Likewise.
1430         * rtl.h: Likewise.
1431         * tracer.c: Likewise.
1432         * tree-inline.c: Likewise.
1433         * varasm.c: Likewise.
1434
1435 2002-09-08  Jan Hubicka  <jh@suse.cz>
1436
1437         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
1438         handling.
1439
1440         * loop.c (loop_gics_reduce):  Emit addition after.
1441
1442 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1443
1444         * varasm.c (default_assemble_visibility): Rename from
1445         assemble_visibility.
1446         * output.h: Here too.
1447         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
1448         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
1449
1450 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1451
1452         * reload.c (find_reloads <p constraint>): Pass operand_mode to
1453         find_reloads_address.
1454
1455 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1456
1457         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
1458         (anonymous pattern): Likewise.
1459
1460 2002-09-07  Scott Snyder  <snyder@fnal.gov>
1461
1462         PR target/7374
1463         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
1464
1465 2002-09-07  Roger Sayle  <roger@eyesopen.com>
1466
1467         * basic-block.h (struct loop): Remove unused cont_dominator field.
1468
1469 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1470
1471         * varasm.c (decode_rtx_const): Don't check undefined field for
1472         CONST_VECTOR.
1473
1474 2002-09-07  Glen Nakamura  <glen@imodulo.com>
1475
1476         PR opt/7814
1477         * sched-deps.c (sched_analyze_insn): Make sure to add insn
1478         to reg_last->sets after flushing the dependency lists to guarantee
1479         that subsequent clobbers will be dependent on it.
1480
1481 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1482
1483         * combine.c (simplify_shift_const): Calculate rotate count
1484         correctly for vector operands.
1485
1486 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
1487
1488         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
1489         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
1490         tree_expr_nonnegative_p.
1491         (build_conditional_expr): Likewise.
1492         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
1493
1494 2002-09-07  Richard Henderson  <rth@redhat.com>
1495
1496         * builtins.def (inf, inff, infl): Mark const.
1497         (huge_val, huge_valf, huge_vall): Likewise.
1498         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
1499
1500         * real.c (ereal_inf): Clear E before use.
1501
1502 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1503
1504         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
1505         an expander and an anonymous pattern.  Zero out the upper half
1506         of the dividend in the expander.
1507         (udivmodqi4): Likewise.
1508
1509 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1510
1511         * config/h8300/h8300.c: Fix formatting.
1512         * config/h8300/h8300.h: Likewise.
1513         * config/h8300/h8300.md: Likewise.
1514
1515 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1516
1517         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
1518         information.
1519
1520 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
1521
1522        * rtlanal.c (dead_or_set_regno_p): Fix typo.
1523
1524 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
1525
1526         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1527
1528         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
1529         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1530         (TARGET_ASM_OUT): Add the above here.
1531         * target.h (struct gcc_target): Add "visibility" field.
1532         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
1533         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
1534         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1535         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
1536
1537 2002-09-06  Ziemowit Laski <zlaski@apple.com>
1538
1539         * c-lang.c (objc_is_id): New stub.
1540         * c-tree.h (objc_is_id): New forward declaration.
1541         * c-typeck.c (build_c_cast): Do not strip protocol
1542         qualifiers from 'id' type.
1543         * objc/objc-act.c (objc_comptypes): Correct handling
1544         of protocol qualifiers.
1545         (objc_is_id): New.
1546
1547 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
1548
1549         * pentium.md (pentium-firstvboth): Fix typo.
1550
1551 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
1552
1553         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
1554         (enum shift_type, enum h8_cpu): Likewise.
1555         (INL, ROT, LOP, SPC macros): Likewise.
1556         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
1557         const designator.
1558         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
1559         space efficient algorithms when optimize for codesize.
1560
1561 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1562
1563         Fix PR/1727 and long-standing failing testcase
1564         objc/formal-protocol-6.m.
1565         * objc-act.c (build_protocol_expr): If compiling for the GNU
1566         runtime, create a list of Protocol statically allocated instances
1567         if it doesn't exist, then add the Protocol object to this same
1568         list.
1569         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
1570         instead of TREE_CHAIN.
1571
1572 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1573
1574         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
1575         10k.  Fixed category dumping - print out category names with the
1576         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
1577         interface.
1578         (finish_objc): Fixed the -gen-decls option.  It was printing out
1579         only the last class.  Dump an interface declaration of all classes
1580         being compiled instead.
1581
1582 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
1583
1584         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
1585         prototype.
1586         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
1587         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
1588         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
1589         rather than GEN_INT.
1590         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
1591         (return_addr_mask, *check_arch2): New.
1592
1593 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
1594
1595         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
1596         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
1597         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1598         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
1599         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
1600         "adddf3", "*adddf3", "*adddf3_ibm",
1601         "addsf3", "*addsf3", "*addsf3_ibm",
1602         "muldi3", "mulsi3", "mulsidi3",
1603         "muldf3", "*muldf3", "*muldf3_ibm",
1604         "mulsf3", "*mulsf3", "*mulsf3_ibm",
1605         "*anddi3_cc", "*anddi3_cconly", "anddi3",
1606         "*andsi3_cc", "*andsi3_cconly", "andsi3",
1607         "*iordi3_cc", "*iordi3_cconly", "iordi3",
1608         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1609         "*xordi3_cc", "*xordi3_cconly", "xordi3",
1610         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
1611         instead of "register_operand" as predicate for "%0" operand.
1612
1613 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
1614
1615         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
1616         unconditionally when gcc_cv_as_flags64 checks are gone.
1617         * configure: Rebuilt.
1618
1619 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
1620
1621         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
1622         2002-07-26 change.  Comment.
1623
1624 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1625
1626         * frv.c (frv_unique_section, frv_select_section,
1627         frv_select_rtx_section): Delete.
1628         (frv_in_small_data_p): New.
1629         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
1630         TARGET_ASM_SELECT_RTX_SECTION): Delete.
1631         (TARGET_IN_SMALL_DATA_P): Define.
1632
1633 2002-09-05  Dale Johannesen  <dalej@apple.com>
1634
1635         * reload1.c (reload):  Retain only those memory clobbers
1636         added for variable-array handling.
1637
1638 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1639
1640         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
1641         return-in-memory rules.
1642         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
1643
1644 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1645
1646         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
1647         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
1648
1649 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1650
1651         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
1652         not a compile-time constant for the non-IBM case.
1653         * config/arm/arm-protos.h (arm_float_words_big_endian): New
1654         prototype.
1655         * config/arm/arm.c (arm_float_words_big_endian): New function.
1656         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
1657         if TARGET_VFP  and not TARGET_HARD_FLOAT.
1658         (ARM_FLAG_VFP, TARGET_VFP): Define.
1659         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
1660
1661 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1662
1663         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
1664         URLs.  Fix AIX wording.
1665
1666 2002-09-05  Stan Shebs  <shebs@apple.com>
1667
1668         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
1669         -fPIC equivalent on Darwin.
1670
1671 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
1672
1673         * sh.c (sh_expand_builtin): Return early if encountering an
1674         error_mark for a type.
1675
1676 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1677
1678         * config/s390/s390.c (s390_expand_plus_operand): Do not require
1679         double-word scratch register.
1680         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
1681
1682         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
1683         "*cli"): Replace s_operand by memory_operand.
1684         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
1685
1686 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
1687
1688         * config/h8300/h8300.c (asm_file_start): Add a missing
1689         semicolon.
1690
1691 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
1692
1693         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
1694         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
1695         (ix86_output_addr_diff_elt) Likewise.
1696         (x86_output_mi_thunk) Likewise.
1697         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
1698
1699 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1700
1701         * frv.c (frv_encode_section_info): Fix error in last change.
1702
1703 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
1704
1705         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
1706         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
1707         (TARGET_BINDS_LOCAL_P): Define.
1708         (rs6000_override_options): Save original flag_pic value.
1709         (rs6000_elf_select_section): Call default_elf_select_section_1.
1710         (rs6000_elf_unique_section): Call default_unique_section_1.
1711         (rs6000_elf_in_small_data_p): New function.
1712         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
1713         (rs6000_xcoff_select_section): Update based on defaults.
1714         (rs6000_xcoff_unique_section): Set to basic name if not common.
1715         (rs6000_binds_local_p): New function.
1716         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1717         targetm.have_srodata_section if SDATA_EABI.
1718         (TARGET_IN_SMALL_DATA_P): Define.
1719
1720 2002-09-04  Dale Johannesen  <dalej@apple.com>
1721
1722         * varasm.c (struct rtx_const, decode_rtx_const):
1723         Make veclo and vechi fields not share storage.
1724
1725 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1726
1727         * loop.c (scan_loop): Don't mark separate insns out of a libcall
1728         for moving.
1729         (move_movables): Abort if we see the first insn of a libcall.
1730
1731 2002-09-04  Richard Henderson  <rth@redhat.com>
1732
1733         * builtin-types.def (BT_FN_FLOAT): New.
1734         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
1735         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
1736         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
1737         * builtins.c (fold_builtin_inf): New.
1738         (fold_builtin): Call it.
1739         * real.c (ereal_inf): New.
1740         * real.h: Declare it.
1741         * doc/extend.texi: Document new builtins.
1742
1743 2002-09-04  Richard Henderson  <rth@redhat.com>
1744
1745         * cse.c (cse_insn): Avoid subreg games if the equivalence
1746         is already in the proper mode.
1747
1748 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
1749
1750         PR c/7102
1751         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
1752
1753 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1754
1755         * pa.md (setccfp0, setccfp1): New patterns.
1756
1757 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1758
1759         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
1760         frv_select_section, frv_select_rtx_section,
1761         frv_encode_section_info, frv_unique_section): Delete.
1762         * frv.c: Update for target hooks.
1763         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
1764         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
1765         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
1766
1767 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1768
1769         * ip2k-protos.h (function_prologue, function_epilogue,
1770         encode_section_info): Update to match target hook specification.
1771         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
1772         (function_prologue, function_epilogue, encode_section_info):
1773         Update to match target hook specification.
1774         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
1775         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
1776         (NOTICE_UPDATE_CC): Cast to void.
1777         * ip2k.md: Add defaults in switch statements.
1778
1779 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1780
1781         * doc/trouble.texi (Interoperation): Update information about C++ ABI
1782         issues.
1783
1784 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1785
1786         * config/sparc/t-netbsd64: Disable multilib for now.
1787
1788 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
1789
1790         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
1791         * target.h (gcc_target): Add have_srodata_section member.
1792         * varasm.c (section_category): Add SECCAT_SRODATA.
1793         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
1794         READONLY_SDATA_SECTION defined.
1795         (decl_readonly_section_1): True for SECCAT_SRODATA also.
1796         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
1797         (default_unique_section_1): Likewise.
1798
1799 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1800
1801         * expr.c (emit_group_load): Revise to allow splitting TCmode source
1802         into DImode pieces.
1803
1804         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
1805         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
1806         for floating-point register class.
1807         * pa.c (function_arg): Fix handling of modes wider than one word for
1808         TARGET_64BIT.
1809
1810 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1811
1812         * combine.c (make_compound_operation): Don't generate zero / sign
1813         extensions in floating point modes.
1814
1815 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1816
1817         * doc/c-tree.texi: Fix overfull hboxes.
1818         * doc/cppopts.texi: Ditto.
1819         * doc/extend.texi: Ditto.
1820         * doc/gty.texi: Ditto.
1821         * doc/invoke.texi: Ditto.
1822         * doc/makefile.texi: Ditto.
1823         * doc/rtl.texi: Ditto.
1824         * doc/standards.texi: Ditto.
1825         * doc/tm.texi: Ditto.
1826
1827 2002-09-04  Richard Henderson  <rth@redhat.com>
1828
1829         * c-common.c (builtin_define_with_hex_fp_value): New.
1830         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
1831
1832 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1833
1834         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
1835         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
1836         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
1837         Warn that these options can break ABI compatibility.
1838
1839 2002-09-04  Richard Henderson  <rth@redhat.com>
1840
1841         * real.c (ereal_to_decimal): Add digits parameter.
1842         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
1843         * c-pretty-print.c (pp_c_real_literal): Update call.
1844         * print-rtl.c (print_rtx): Likewise.
1845         * print-tree.c (print_node_brief, print_node): Likewise.
1846         * sched-vis.c (print_value): Likewise.
1847         * config/arc/arc.c (arc_print_operand): Likewise.
1848         * config/c4x/c4x.c (c4x_print_operand): Likewise.
1849         * config/i370/i370.h (PRINT_OPERAND): Likewise.
1850         * config/i386/i386.c (print_operand): Likewise.
1851         * config/i960/i960.c (i960_print_operand): Likewise.
1852         * config/ip2k/ip2k.c (asm_output_float): Likewise.
1853         * config/m32r/m32r.c (m32r_print_operand): Likewise.
1854         * config/m68hc11/m68hc11.c (print_operand): Likewise.
1855         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
1856         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1857         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
1858         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1859         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
1860         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1861         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
1862         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1863         * config/mips/mips.c (print_operand): Likewise.
1864         * config/ns32k/ns32k.c (print_operand): Likewise.
1865         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
1866         * config/vax/vax.h (PRINT_OPERAND): Likewise.
1867         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
1868
1869 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
1870
1871         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
1872         xtensa_multibss_section_type_flags.
1873         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
1874
1875 2002-09-04  Richard Henderson  <rth@redhat.com>
1876
1877         * doc/install-old.texi: Don't mention enquire.
1878         * doc/sourcebuild.texi: Update float.h description.
1879
1880 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
1881
1882         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
1883
1884 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
1885
1886         * varasm.c (default_section_type_flags): Append _1 to name with
1887         shlib parameter.  Use original name to call new function with
1888         implicit flag_pic.
1889         (decl_readonly_section): Likewise.
1890         (default_elf_select_section): Likewise.
1891         (default_unique_section): Likewise.
1892         (default_bind_local_p): Likewise.
1893         (categorize_decl_for_section): Add shlib parameter to use in place
1894         of implicit flag_pic.
1895         * output.h: Declare new functions with _1 and shlib argument.
1896
1897 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
1898
1899         * doc/install.texi: Fix typos, formatting problems, and obvious
1900         overfull/underfull boxes.
1901
1902         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
1903         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
1904         include its file, compat.texi.
1905         * doc/compat.texi: New file with new chapter, Binary Compatibility.
1906
1907 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
1908
1909         Debian BTS Bug #157416
1910         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
1911         * cpplib.c (destringize_and_run): Kludge around getting
1912         tokens from in-progress macros.
1913         (_cpp_do__Pragma): Simplify.
1914
1915 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
1916
1917         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
1918         (CPP_CPU_SPEC): Remove.
1919         (TARGET_CPU_CPP_BUILTINS): New.
1920         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
1921         (CPP_SPEC): Remove.
1922         (TARGET_OS_CPP_BUILTINS): New.
1923         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
1924         (TARGET_OS_CPP_BUILTINS): New.
1925         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
1926         TARGET_OS_CPP_BUILTINS.
1927         (CPP_PREDEFINES): Remove.
1928         (CPLUSPLUS_CPP_SPEC): Remove.
1929         (TARGET_OS_CPP_BUILTINS): New.
1930
1931 2002-09-03  Richard Henderson  <rth@redhat.com>
1932
1933         * Makefile.in (USER_H): Add ginclude/float.h.
1934         (FLOAT_H): Remove.
1935         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
1936         (mostlyclean): Don't remove float.h intermediate files.
1937         (distclean): Don't remove float.h.
1938         * config.gcc: Remove all float_format references.
1939         * configure.in (float_format, float_h_file): Remove.
1940
1941         * c-common.c: Include tree-inline.h.
1942         (builtin_define_with_int_value): New.
1943         (builtin_define_type_precision): Use it.
1944         (builtin_define_float_constants): New.
1945         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
1946         __FLT_EVAL_METHOD__.
1947         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
1948         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
1949         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
1950         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
1951         (TARGET_FLT_EVAL_METHOD): New.
1952
1953         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
1954         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
1955         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
1956         * ginclude/float.h: New.
1957
1958 2002-09-03  Stan Shebs  <shebs@apple.com>
1959
1960         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
1961         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
1962         (PREFERRED_DEBUGGING_TYPE): Ditto.
1963         (ASM_OUTPUT_IDENT): Remove empty definition.
1964
1965 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
1966
1967         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
1968         cxx_target.
1969         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
1970         handling routine for builtin pragma.
1971         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
1972         Registered pragma handling routine.
1973         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
1974         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
1975         If builtin pragma seen for math routine and C89 conformance is
1976         requested use different math function in order to set errno.
1977         * t-ia64 (ia64-c.o): Add new rule for new file.
1978
1979 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1980
1981         * config/s390/s390.md ("movti"): Add Q->Q alternative.
1982         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1983         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
1984
1985         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
1986         "*movsf_ss"): Remove.
1987
1988 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1989
1990         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
1991         Delete macros.
1992
1993 2002-09-03   Arati Dikey  <aratid@kpit.com>
1994
1995         * h8300.c (asm_file_start): Corrected optimization comment.
1996
1997 2002-09-03  Stan Shebs  <shebs@apple.com>
1998
1999         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
2000         * c-tree.h (recognize_objc_keyword): Remove decl.
2001         * c-typeck.c (comp_target_types): Update a comment.
2002
2003 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2004
2005         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
2006         and register validity checks.
2007         (general_s_operand): Adapt to s390_decompose_address interface change.
2008         (q_constraint): Likewise.
2009         (s390_expand_plus_operand): Likewise.
2010         (legitimiate_address_p): Likewise.
2011         (legitimate_la_operand_p): Likewise.
2012         (legitimize_la_operand): Likewise.
2013         (print_operand_address): Likewise.
2014         (print_operand): Likewise.
2015
2016 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2017
2018         PR objc/5956:
2019         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2020         was causing the new selector never to match the existing ones
2021         (Patch by Alexander Malmberg <alexander@malmberg.org>).
2022
2023 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2024
2025         * config/i386/i386.md ("femms"): Add "memory" attr "none".
2026
2027 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2028
2029         * expr.c (expand_expr): Remove extraneous comment and code.
2030
2031 2002-08-31  Richard Henderson  <rth@redhat.com>
2032
2033         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
2034
2035 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2036
2037         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
2038
2039 2002-08-30  Richard Henderson  <rth@redhat.com>
2040
2041         PR opt/7515
2042         * c-objc-common.c: Include target.h.
2043         (c_cannot_inline_tree_fn): Don't auto-inline functions that
2044         don't bind locally.  Factor setting DECL_UNINLINABLE.
2045         * Makefile.in (c-objc-common.o): Update.
2046
2047 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
2048
2049         * doc/install.texi (Configuration, Building): Fix a typo and
2050         some formatting directives.
2051
2052 2002-08-30  Paul Koning <pkoning@equallogic.com>
2053
2054         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
2055         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
2056         implemented" note.
2057         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
2058         for alphabetic order.
2059         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
2060         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
2061         (VAX_HALFWORD_ORDER): Document.
2062         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
2063         IEEE float format.
2064         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
2065         (ASM_OUTPUT_LABEL_REF): Fix font.
2066         (CASE_VECTOR_SHORTEN_MODE): Ditto.
2067
2068 2002-08-30  Denis Chertykov  <denisc@overta.ru>
2069
2070         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
2071         stuff.
2072         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
2073         CONST_DOUBLE constants.
2074
2075 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
2076
2077         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
2078         related defines to...
2079         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
2080         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
2081         as a no-op.
2082
2083 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
2084
2085         * config/arm/arm.c (arm_asm_output_labelref): New function.
2086         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
2087         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
2088
2089 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
2090
2091         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
2092         memory exhausted" workarounds.
2093
2094 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2095
2096         * diagnostic.c (fancy_abort): Don't repeat "internal error".
2097         * toplev.c (crash_signal): Likewise.
2098
2099 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2100
2101         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
2102         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
2103         Extended, updated documentation.
2104         (-Wundeclared-selector): Documented.
2105
2106 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
2107
2108         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
2109         the value 1.  Do not undef before defining.
2110         * config/darwin.h: Likewise.
2111         * config/dbx.h: Likewise.
2112         * config/dbxcoff.h: Likewise.
2113         * config/dbxelf.h: Likewise.
2114         * config/elfos.h: Likewise.
2115         * config/interix.h: Likewise.
2116         * config/lynx-ng.h: Likewise.
2117         * config/lynx.h: Likewise.
2118         * config/netware.h: Likewise.
2119         * config/psos.h: Likewise.
2120         * config/svr3.h: Likewise.
2121         * config/alpha/alpha.h: Likewise.
2122         * config/alpha/elf.h: Likewise.
2123         * config/alpha/vms.h: Likewise.
2124         * config/arc/arc.h: Likewise.
2125         * config/arm/aout.h: Likewise.
2126         * config/arm/coff.h: Likewise.
2127         * config/c4x/c4x.h: Likewise.
2128         * config/h8300/h8300.h: Likewise.
2129         * config/i386/cygwin.h: Likewise.
2130         * config/i386/djgpp.h: Likewise.
2131         * config/i386/gas.h: Likewise.
2132         * config/i386/gstabs.h: Likewise.
2133         * config/i386/i386-coff.h: Likewise.
2134         * config/i386/i386-interix.h: Likewise.
2135         * config/i386/sco5.h: Likewise.
2136         * config/i386/svr3dbx.h: Likewise.
2137         * config/i386/sysv3.h: Likewise.
2138         * config/i386/win32.h: Likewise.
2139         * config/i386/x86-64.h: Likewise.
2140         * config/i960/i960.h: Likewise.
2141         * config/ia64/ia64.h: Likewise.
2142         * config/ip2k/ip2k.h: Likewise.
2143         * config/m32r/m32r.h: Likewise.
2144         * config/m68k/3b1.h: Likewise.
2145         * config/m68k/3b1g.h: Likewise.
2146         * config/m68k/ccur-GAS.h: Likewise.
2147         * config/m68k/coff.h: Likewise.
2148         * config/m68k/hp2bsd.h: Likewise.
2149         * config/m68k/hp310g.h: Likewise.
2150         * config/m68k/hp320g.h: Likewise.
2151         * config/m68k/hp3bsd.h: Likewise.
2152         * config/m68k/hp3bsd44.h: Likewise.
2153         * config/m68k/linux-aout.h: Likewise.
2154         * config/m68k/m68k-aout.h: Likewise.
2155         * config/m68k/mot3300.h: Likewise.
2156         * config/m68k/netbsd.h: Likewise.
2157         * config/m68k/openbsd.h: Likewise.
2158         * config/m68k/pbb.h: Likewise.
2159         * config/m68k/plexus.h: Likewise.
2160         * config/m68k/sun2.h: Likewise.
2161         * config/m68k/sun3.h: Likewise.
2162         * config/m68k/tower-as.h: Likewise.
2163         * config/m68k/vxm68k.h: Likewise.
2164         * config/m88k/aout-dbx.h: Likewise.
2165         * config/m88k/m88k-aout.h: Likewise.
2166         * config/mcore/mcore-elf.h: Likewise.
2167         * config/mcore/mcore-pe.h: Likewise.
2168         * config/mips/elf.h: Likewise.
2169         * config/mips/elf64.h: Likewise.
2170         * config/mips/iris5gas.h: Likewise.
2171         * config/mips/iris6.h: Likewise.
2172         * config/mips/mips.h: Likewise.
2173         * config/mips/sni-gas.h: Likewise.
2174         * config/mmix/mmix.h: Likewise.
2175         * config/ns32k/netbsd.h: Likewise.
2176         * config/pa/pa64-hpux.h: Likewise.
2177         * config/romp/romp.h: Likewise.
2178         * config/rs6000/sysv4.h: Likewise.
2179         * config/rs6000/xcoff.h: Likewise.
2180         * config/sh/coff.h: Likewise.
2181         * config/sh/elf.h: Likewise.
2182         * config/sparc/linux64.h: Likewise.
2183         * config/sparc/liteelf.h: Likewise.
2184         * config/sparc/netbsd.h: Likewise.
2185         * config/sparc/openbsd.h: Likewise.
2186         * config/sparc/pbd.h: Likewise.
2187         * config/sparc/sp64-elf.h: Likewise.
2188         * config/sparc/sp86x-elf.h: Likewise.
2189         * config/sparc/sparc.h: Likewise.
2190         * config/vax/vax.h: Likewise.
2191         * config/vax/vaxv.h: Likewise.
2192
2193 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
2194
2195         * h8300.c (shift_alg_hi): Various tweaks to improve performance
2196         of HImode shifts.
2197         (get_shift_alg): Corresponding changes.
2198
2199 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2200
2201         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2202
2203 2002-08-29  Richard Henderson  <rth@redhat.com>
2204
2205         * expr.h (enum block_op_methods): New.
2206         (emit_block_move): Update prototype.
2207         * expr.c (block_move_libcall_safe_for_call_parm): New.
2208         (emit_block_move_via_loop): New.
2209         (emit_block_move): Use them.  New argument METHOD.
2210         (emit_push_insn): Always respect the given alignment.
2211         (expand_assignment): Update call to emit_block_move.
2212         (store_expr, store_field, expand_expr): Likewise.
2213         * builtins.c (expand_builtin_apply): Likewise.
2214         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2215         * function.c (expand_function_end): Likewise.
2216         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2217         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2218         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2219         (save_fixed_argument_area): Use emit_block_move with
2220         BLOCK_OP_CALL_PARM instead of move_by_pieces.
2221         (restore_fixed_argument_area): Likewise.
2222         (store_one_arg): Fix alignment parameter to emit_push_insn.
2223
2224 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2225
2226         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2227
2228 2002-08-29  Catherine Moore  <clm@redhat.com>
2229
2230         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2231         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2232         (PREDICATE_CODES): Include new predicates.
2233         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
2234         (TARGET_SWITCHES):  Add strict-align.
2235         (TARGET_STRICT_ALIGN): New.
2236         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
2237         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2238         Define.
2239         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
2240         v850_muldi3.
2241         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
2242         L_callt_save_r2_r31, L_return_r2_r31,
2243         L_save_all_interrupt): Change addi to add.
2244         (L_save_interrupt, L_return_interrupt): Rework.
2245         (__return_r31):  Correct .size directive.
2246         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
2247         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
2248         New routines.
2249         * config/v850/v850.c (expand_prologue): Call
2250         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
2251         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
2252         (reg_or_int9_operand): New predicate.
2253         (reg_or_const_operand): New routine.
2254         * config/v850/v850.md (return_interrupt): Changed from
2255         restore_interrupt.
2256         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
2257         (callt_save_interrupt): Change save sequence.
2258         (callt_return_interrupt): New.
2259         (save_interrupt): Don't use runtime function for LONG_CALLS
2260         and TARGET_PROLOG_FUNCTION.
2261         (save_all_interrupt): Likewise.
2262         (mulsi3): Use new predicate.
2263         (moviscc): Disallow some combination of constants.
2264         Fix define_split for sasf insns, so that it will not generate bad
2265         code if operand0 and operand5 are the same.
2266         * config/v850/v850-protos.h: Prototype new predicates.
2267
2268 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2269
2270         * c-common.c (builtin_define_type_precision): New function.
2271         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
2272         wchar_t is unsigned in C++.
2273         * doc/cpp.texi (Common Predefined Macros): Document
2274         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
2275         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
2276         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
2277
2278 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
2279
2280         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
2281         section.  Mention that it is enabled by -Wall.
2282         (-Wall): Mention that there can be language-specific warnings as well.
2283         (-Wctor-dtor-privacy): Mention that it is enabled by default.
2284         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
2285
2286 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
2287
2288         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
2289         if it is ever live.
2290
2291         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
2292         attribute for SHCOMPACT.
2293
2294         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
2295         appropriately.
2296         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
2297         by the ABI.
2298
2299         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
2300
2301 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
2302
2303         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
2304         "MASK_GAS|MASK_ABICALLS".
2305         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
2306         (TARGET_DEFAULT): Remove.
2307         (MACHINE_TYPE): Undefine before defining.
2308         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
2309
2310 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
2311
2312         * c-common.c (warn_abi): New variable.
2313         * c-common.h (warn_abi): Likewise.
2314         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
2315         (c_common_decode_option): Handle it.
2316         * doc/invoke.texi: Document -Wabi.
2317
2318 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2319
2320         * c-common.c (warn_undeclared_selector): New variable.
2321         * c-common.h (warn_undeclared_selector): Idem.
2322         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
2323         to on when -Wundeclared-selector is found.
2324         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
2325         * objc/objc-act.c (build_selector_expr): If
2326         warn_undeclared_selector is set, check that the selector has
2327         already been defined, and emit a warning if not.
2328
2329 2002-08-27  Nick Clifton  <nickc@redhat.com>
2330             Catherine Moore  <clm@redhat.com>
2331             Jim Wilson  <wilson@cygnus.com>
2332
2333         * config.gcc: Add v850e-*-* target.
2334         Add --with-cpu= support for v850.
2335         * config/v850/lib1funcs.asm: Add v850e callt functions.
2336         * config/v850/v850.h: Add support for v850e target.
2337         * config/v850/v850.c: Add functions to support v850e target.
2338         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
2339         * config/v850/v850.md: Add patterns for v850e instructions.
2340         * doc/invoke.texi: Document new v850e command line switches.
2341
2342 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
2343                           Aldy Hernandez <aldyh at redhat dot com>
2344
2345         * doc/tm.texi: Applied numerous fixes to the automaton based
2346         scheduler descrition.
2347
2348 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
2349
2350         * i386.c (classify_argument): Handle variable sized objects.
2351
2352 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
2353
2354         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
2355
2356 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
2357
2358         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
2359
2360 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2361
2362         * i386.c (classify_argument): Properly compute word size of the analyzed object.
2363
2364 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
2365
2366         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
2367         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
2368         accordingly.
2369         (attribute insn_class): Provide default definitions based on type.
2370         Remove all insn-specific settings.
2371         (various function units): Remove old SH4 scheduling.
2372         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
2373         New attributes.  Set them where appropriate.
2374         (cpu unit FS): Don't define / use.
2375         (F3, load_store): New cpu units.
2376         (F01): New reservation.
2377         (all insn_reservations): Make dependent on sh4 pipeline model.
2378         Fix latencies.
2379         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
2380         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
2381         (mt insn_reservation): Use type mt_group.
2382         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
2383         sh4_fload and sh4_store.
2384         (insn_reservation branch_zero and branch): Replace with sh4_branch.
2385         (insn_reservation branch_far): Replace with sh4_return.
2386         (insn_reservation return_from_exp): Rename to:
2387         (sh4_return_from_exp).  Change to be just d_lock*5.
2388         (insn_reservation lds_to_pr): Rename to:
2389         (sh4_lds_to_pr).  Change to be just d_lock*2.
2390         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
2391         d_lock*2.
2392         (insn_reservation prload_mem): Rename to:
2393         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
2394         (insn_reservation fpscr_store): Rename to:
2395         (fpscr_load).  Change to d_lock,nothing,F1*3.
2396         (insn_reservation fpscr_store_mem): Rename to:
2397         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
2398         (insn_reservation multi): Change to
2399         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
2400         (insn_reservation fp_arith): Change to issue,F01,F2.
2401         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
2402         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
2403         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
2404         (insn_reservation fp_double_cmp): Change to
2405         d_lock,(d_lock+F01),F1+F2,F2.
2406         (insn_reservation dp_div): Change to
2407         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
2408         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2409         (sh_adjust_cost, SHcompact): Differentiate between different
2410         kinds of dependencies.  Drop factor of ten for superscalar.
2411         Use new instruction types.  Add new exception rules.
2412
2413         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2414
2415         * sh.md (mperm_w): Add DONE.
2416
2417 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
2418
2419         * longlong.h: Import current PowerPC defintion from GMP-4.1.
2420
2421         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2422
2423         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2424
2425 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2426
2427         * sh.h (MAX_FIXED_MODE_SIZE): Define.
2428
2429 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
2430
2431         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2432         delimiter.
2433
2434 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2435
2436         * c-common.c (cpp_define_data_format): New function.
2437         (cb_register_builtins): Call it.
2438
2439         * doc/cpp.texi (Common Predefined Macros): Document
2440         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
2441         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
2442         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
2443         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
2444         __TARGET_USES_VAX_H_FLOAT__.
2445
2446 2002-08-26  Ziemowit Laski <zlaski@apple.com>
2447
2448         * objc/objc-act.c (get_super_receiver): If inside a class method
2449         of a category, cast the receiver to 'id' before accessing the 'isa'
2450         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
2451
2452 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2453
2454         * config/s390/s390-protos.h (s390_function_prologue,
2455         s390_function_epilogue): Remove.
2456         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
2457         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2458
2459         config/s390/s390.c (s390_machine_dependent_recorg): New function.
2460         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
2461         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
2462         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
2463         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
2464
2465         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
2466         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
2467         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
2468         function is not a leaf function.  Use save_gprs and restore_gprs.
2469         (s390_emit_epilogue): Likewise.
2470         (save_gprs, restore_gprs): New functions.
2471         (struct s390_frame): Remove return_reg_saved_p member.
2472         (save_fprs_p): Remove.
2473         (s390_optimize_prolog): New function.
2474         (s390_legitimate_reload_constant): Remove now unnecessary check.
2475
2476         (s390_function_count): Remove.
2477         (s390_output_symbolic_const): Replace s390_function_count by
2478         current_function_funcdef_no.
2479         (s390_output_constant_pool): Likewise.
2480
2481         (legitimize_pic_address): Use regs_ever_live to track PIC register
2482         instead of current_function_uses_pic_offset_table.
2483         (s390_emit_prologue): Likewise.
2484         config/s390/s390.md ("call", "call_value"): Likewise.
2485
2486 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
2487
2488         * c-opts.c (find_opt): Don't complain about wrong languages
2489         here.  Return exact matches even for wrong language.
2490         (c_common_decode_option): Complain about wrong languages
2491         here.
2492
2493 2002-08-24  Stuart Hastings  <stuart@apple.com>
2494
2495         * function.h (struct function): Add flag
2496         all_throwers_are_sibcalls.
2497         * except.c (set_nothrow_function_flags): Replaces
2498         nothrow_function_p. Set new flag.
2499         * except.h (set_nothrow_function_flags): Replaces
2500         nothrow_function_p.
2501         * dwarf2out.c (struct dw_fde_struct): Add flag
2502         all_throwers_are_sibcalls.
2503         (output_call_frame_info): Test it.
2504         (dwarf2out_begin_prologue) Propagate it from cfun to
2505         dw_fde_struct.
2506         * toplev.c (rest_of_compilation): Update calls to
2507         nothrow_function_p.
2508
2509 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
2510
2511         * ggc-page.c (compute_inverse): Short circuit calculation for
2512         object sizes larger than half a page.
2513
2514 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
2515
2516         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
2517         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
2518         default.
2519         (rs6000_elf_unique_section): Likewise.
2520
2521 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2522
2523         * ns32k.c (ns32k_globalize_label): Delete.
2524         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
2525
2526 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
2527
2528         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
2529         for loading delta with num_insns_constant_wide.  Calculate
2530         delta_low, delta_high without using a conditional.
2531
2532 2002-08-22  Jason Merrill  <jason@redhat.com>
2533
2534         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
2535         * c-common.def: Adjust.
2536         * c-dump.c (c_dump_tree): Adjust.
2537         * c-semantics.c (genrtl_return_stmt): Adjust.
2538         * c-pretty-print.c (pp_c_statement): Adjust.
2539         * tree-inline.c (copy_body_r): Adjust.
2540
2541 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
2542
2543         * ggc-page.c: Avoid division in ggc_set_mark.
2544         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
2545         compute_inverse): New.
2546         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
2547         (init_ggc): Initialize inverse_table.
2548
2549 2002-08-22  Tom Tromey  <tromey@redhat.com>
2550
2551         * doc/install.texi (Configuration): Document --datadir.
2552
2553 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
2554
2555         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
2556
2557 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
2558
2559         * gengtype-lex.l (ID): Allow underscore as first character.
2560
2561 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
2562
2563         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
2564         function.
2565         (rs6000_xcoff_asm_named_section): Rename.
2566         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2567
2568 2002-08-21  Tom Tromey  <tromey@redhat.com>
2569
2570         For PR java/6005 and PR java/7611:
2571         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
2572         (fold): Likewise.
2573         * langhooks.c (lhd_can_use_bit_fields_p): New function.
2574         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
2575         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
2576         (LANG_HOOKS_INITIALIZER): Use it.
2577         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
2578         field.
2579
2580 2002-08-21  Stan Shebs  <shebs@apple.com>
2581
2582         * tree.c (finish_vector_type): Fix a typo in a comment.
2583         * Makefile.in: Fix "the the" stutters in comments.
2584         * genautomata.c: Ditto.
2585         * ifcvt.c: Ditto.
2586         * regrename.c: Ditto.
2587         * config/alpha/alpha.c: Ditto.
2588         * config/alpha/vms-crt0-64.c: Ditto.
2589         * config/alpha/vms-crt0.c: Ditto.
2590         * config/alpha/vms-psxcrt0-64.c: Ditto.
2591         * config/alpha/vms-psxcrt0.c: Ditto.
2592         * config/d30v/d30v.h: Ditto.
2593         * config/fr30/fr30.h: Ditto.
2594         * config/rs6000/rs6000.c: Ditto.
2595         * config/stormy16/stormy16.h: Ditto.
2596         * doc/md.texi: Ditto.
2597
2598 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2599
2600         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
2601
2602 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2603
2604         * c-decl.c (grokdeclarator): Make invalid combinations with long,
2605         short, signed or unsigned into hard errors.  Fixes PR c/4319.
2606         Also make duplicate modifiers such as "short short" into hard
2607         errors.
2608
2609 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
2610             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2611
2612         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
2613         to the actual end.  Add '@end table' and '@table @code'.
2614
2615 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
2616
2617         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
2618
2619         * unroll.c (biv_total_increment): Don't try to compute the total
2620         increment for FP BIVs.
2621
2622 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2623
2624         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
2625         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
2626         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2627         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
2628         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
2629         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
2630         (GLOBAL_ASM_OP): Define.
2631         * arm.c (aof_globalize_label): New function.
2632         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
2633         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2634         * c4x.c (c4x_globalize_label): New function.
2635         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
2636         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
2637         (GLOBAL_ASM_OP): Define.
2638         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2639         * darwin-protos.h (darwin_globalize_label): Declare.
2640         * darwin.c (darwin_globalize_label): New function.
2641         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
2642         (ASM_GLOBALIZE_LABEL): Delete.
2643         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
2644         * dsp16xx.c (asm_output_common): Use target hook.
2645         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2646         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
2647         (GLOBAL_ASM_OP): Define.
2648         * i370.c (i370_globalize_label): New function.
2649         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
2650         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
2651         * i386.c (ix86_asm_file_end): Use target hook.
2652         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
2653         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2654         * ia64.c (ia64_asm_output_external): Likewise.
2655         * ia64/sysv4.h: Update comment.
2656         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2657         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2658         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
2659         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2660         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
2661         * mmix-protos.h (mmix_asm_globalize_label): Delete.
2662         * mmix.c (mmix_asm_globalize_label): Likewise.
2663         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
2664         (GLOBAL_ASM_OP): Define.
2665         * ns32k.c (ns32k_globalize_label): New function.
2666         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
2667         (ASM_GLOBALIZE_LABEL): Delete.
2668         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
2669         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
2670         * pa.c (pa_globalize_label): New function.
2671         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
2672         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
2673         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
2674         (GLOBAL_ASM_OP): Define.
2675         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
2676         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2677         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
2678         (GLOBAL_ASM_OP): Define.
2679         * v850.c (v850_output_aligned_bss): Use target hook.
2680         * vax.c (vms_globalize_label): New function.
2681         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
2682         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
2683         (GLOBAL_ASM_OP): Define.
2684         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
2685         * doc/tm.texi: Update docs.
2686         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
2687         target hook.
2688         * final.c (output_alternate_entry_point): Likewise.
2689         * hooks.c (hook_FILEptr_constcharptr_void): New function.
2690         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
2691         * output.h (assemble_global): Delete.
2692         (default_globalize_label): Declare.
2693         * system.h (ASM_GLOBALIZE_LABEL): Poison.
2694         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2695         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
2696         * target.h (gcc_target): Add globalize_label member.
2697         * varasm.c (asm_output_bss, asm_output_aligned_bss,
2698         globalize_decl): Use target hook.
2699         (assemble_global): Delete.
2700         (default_globalize_label): New function.
2701
2702 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2703
2704         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
2705
2706 2002-08-20  Devang Patel  <dpatel@apple.com>
2707         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
2708
2709 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2710
2711         * arc.c (output_shift): Use stdio instead of asm_fprintf.
2712         * arm.c (thumb_output_function_prologue): Likewise.
2713         * avr.c (print_operand): Likewise.
2714         * c4x.c (c4x_print_operand): Likewise.
2715         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
2716         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
2717         * cris.c (cris_target_asm_function_prologue,
2718         cris_asm_output_mi_thunk): Likewise.
2719         * h8300.c (print_operand): Likewise.
2720         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2721         * ip2k.c (print_operand): Likewise.  Fix format specifier.
2722         * m68hc11.c (asm_print_register, print_operand,
2723         print_operand_address): Use stdio instead of asm_fprintf.
2724         (print_operand_address): Fix format specifier.
2725         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
2726         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
2727         asm_fprintf.
2728         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2729         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2730         * m68k.c (m68k_output_function_prologue,
2731         m68k_output_function_epilogue, print_operand): Likewise.
2732         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
2733         Likewise.  Fix format specifier.
2734         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2735         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2736         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2737
2738 2002-08-15  Eric Christopher  <echristo@redhat.com>
2739             Jeff Knaggs  <jknaggs@redhat.com>
2740
2741         * config.gcc (mipsisa64sr71k-elf): New target.
2742         * config/mips/sr71k.md: New file.
2743         * config/mips/mips.md: Use it.
2744         (rot*): Add sr71k specifics.
2745         * config/mips/t-sr71k: New file.
2746         * config/mips/mips.h (sr71k): New cpu.
2747         (TARGET_SR71K): Use it.
2748         (TUNE_SR71K): Ditto.
2749         (GENERATE_BRANCHLIKELY): Ditto.
2750         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
2751         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
2752         * config/mips/mips.c (sr71k): New cpu.
2753         (mips_use_dfa_pipeline_interface): Use.
2754
2755 2002-08-15  Eric Christopher  <echristo@redhat.com>
2756             Richard Sandiford <rsandifo@redhat.com>
2757             Aldy Hernandez  <aldyh@redhat.com>
2758             Graham Stott    <grahams@redhat.com>
2759             Michael Meissner  <meissner@redhat.com>
2760             Gavin Romig-Koch  <gavin@redhat.com>
2761             Ken Raeburn  <raeburn@cygnus.com>
2762             Alexandre Oliva <aoliva@redhat.com>
2763
2764         * config.gcc (mips64vr-elf): New target.
2765         * config/mips/5400.md: New file.
2766         * config/mips/5500.md: Ditto.
2767         * config/mips/mips.md: Use them.
2768         (frsqrt): New.
2769         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
2770         cpus.
2771         (mips_issue_rate): Use them.
2772         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
2773         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
2774         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
2775         cpus.
2776         (TARGET_MIPSx): Use them.
2777         (TUNE_MIPSx): Ditto.
2778         (GETNATE_MULT3_SI): Ditto.
2779         (ISA_HAS_BRANCHLIKELY): Ditto.
2780         (ISA_HAS_CONDMOVE): Ditto.
2781         (ISA_HAS_NMADD_NMSUB): Ditto.
2782         (ISA_HAS_MULHI): New. Ditto.
2783         (ISA_HAS_MULS): Ditto.
2784         (ISA_HAS_MSAC): Ditto.
2785         (ISA_HAS_MACC): Ditto.
2786         (ISA_HAS_ROTR_SI): Ditto.
2787         (ISA_HAS_ROTR_DI): Ditto.
2788         (RTX_COSTS): Use.
2789
2790 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2791
2792         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
2793         at head.
2794         (remove_dup_nonsys_dirs): New function.
2795         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
2796         (merge_include_chains): Remove non-system include directories from
2797         quote and bracket include chains when they duplicate equivalent system
2798         directories.
2799         * doc/cpp.texi (-I): Update.
2800         * doc/cppopts.texi (-I): Update.
2801         * doc/install.texi (--with-local-prefix): Further document usage of
2802         this option.
2803         * doc/invoke.texi (-I): Update.
2804
2805 2002-08-20  Richard Henderson  <rth@redhat.com>
2806
2807         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
2808         (emit_block_move): Split out subroutines.
2809         (emit_block_move_via_movstr): New.
2810         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
2811         (emit_block_move_libcall_fn): New.  Construct function prototype for
2812         bcopy as well.
2813         (clear_storage): Split out subroutines.
2814         (clear_storage_via_clrstr): New.
2815         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
2816         (clear_storage_libcall_fn): New.  Construct function prototype for
2817         bzero as well.
2818         (emit_push_insn): Use emit_block_move.
2819         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
2820         (store_constructor): Likewise.
2821
2822 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
2823
2824         * objc/objc-act.c (building_objc_message_expr): Rename to
2825         current_objc_message_selector.
2826
2827 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
2828
2829         * objc/objc-act.c (build_ivar_chain): Remove.
2830         (objc_copy_list): Likewise.
2831         (get_class_ivars): Inline call to removed build_ivar_chain
2832         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
2833         slot; use that slot (rather than CLASS_IVARS) when accessing
2834         ivars for base classes.  Call copy_list and chainon instead of
2835         objc_copy_list.
2836         (build_private_template): Call get_class_ivars instead of
2837         build_ivar_chain.
2838         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
2839         (continue_class): Call get_class_ivars instead of
2840         build_ivar_chain.
2841         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
2842         of DECL_BIT_FIELD (which may have been cleared).
2843         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
2844
2845 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2846
2847         * genautomata.c (output_translate_vect, output_state_ainsn_table,
2848         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
2849         in output file.
2850         (output_internal_min_issue_delay_func): Initialize variable in
2851         output file.
2852
2853 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
2854
2855         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
2856         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
2857
2858 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
2859             Steve Ellcey  <sje@cup.hp.com>
2860
2861         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
2862         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
2863         * explow.c (trunc_int_for_mode): Abort when the mode is not
2864         a scaler integer mode.
2865         * combine.c (expand_compound_operation): Don't expand Vector
2866         or Complex modes into shifts.
2867         (expand_field_assignment): Don't do bitwise arithmatic and
2868         shifts on Vector or Complex modes.
2869         (simplify_comparison): Don't call trunc_int_for_mode
2870         for VOIDmode.
2871         * recog.c (general_operand): Likewise.
2872         (immediate_operand): Likewise.
2873         (nonmemory_operand): Likewise.
2874
2875 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
2876
2877         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
2878         multi-instruction SImode constant.  Add REG_EQUAL note.
2879         * config/rs6000/rs6000.md (movsi splitter): Use
2880         rs6000_emit_set_const.
2881
2882 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2883
2884         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
2885         the macro test controlling its use.
2886
2887 2002-08-18  H.J. Lu  (hjl@gnu.org)
2888
2889         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
2890         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
2891         gnu_ld=yes.
2892         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
2893         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
2894         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
2895         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
2896         here.
2897         (cris-*-linux*): Remove setting thread_file here.
2898
2899 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
2900
2901         PR preprocessor/7602
2902         * cppinit.c (path_include): Treat the system environment
2903         variables as being cxx_aware.
2904
2905 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2906
2907         * c-decl.c (flexible_array_type_p): New function.
2908         (grokdeclarator, finish_struct): Use it.
2909         * doc/extend.texi: Document constraints on use of structures with
2910         flexible array members.
2911
2912 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
2913
2914         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
2915         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
2916         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
2917
2918 2002-08-16  Stan Shebs  <shebs@apple.com>
2919
2920         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
2921         for ObjC with -fnext-runtime.
2922         * doc/cpp.texi: Document it.
2923
2924 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
2925
2926         * doc/install.texi (Final installation): Replace links to individual
2927         build status pages with a link to a common page that lists them all.
2928
2929 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
2930
2931         * doc/invoke.texi: Fix typo.
2932
2933 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
2934
2935         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
2936
2937 2002-08-16  Andrew Haley  <aph@redhat.com>
2938
2939         * tree-inline.c: Add includes for Java inliner.
2940         (remap_decl): Don't handle anonymous types for Java.
2941         (remap_block): Add handling for Java trees.
2942         (copy_scope_stmt): Conditionalize for non-Java use only.
2943         (copy_body_r): Handle Java trees.  Add handling for
2944         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
2945         (initialize_inlined_parameters):  Handle Java trees.
2946         (declare_return_variable): Likewise.
2947         (expand_call_inline): Handle Java trees.
2948         (walk_tree): Likewise.
2949         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
2950         (add_stmt_to_compound): New function.
2951
2952 2002-08-15  Richard Henderson  <rth@redhat.com>
2953
2954         * Makefile.in (LOOSE_WARN): Remove -fno-common.
2955         (NOCOMMON_FLAG): New substitution point.
2956         (GCC_WARN_CFLAGS): Include it.
2957         * configure.in (ac_checking): Set nocommon_flag.
2958         (nocommon_flag): New substitution point.
2959
2960 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
2961
2962         * c-tree.h (skip_evaluation): Move declaration...
2963         * c-common.h: ... here.
2964         * c-typeck.c (build_external_ref): Don't assemble_external nor
2965         mark a tree as used if skip_evaluation is set.
2966         * c-parse.in (typeof): New non-terminal to set skip_evaluation
2967         around TYPEOF.
2968         (typespec_nonreserved_nonattr): Use it.
2969
2970 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
2971
2972         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
2973         (xcoff_debug_hooks): Update end_prologue.
2974         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
2975         * debug.h (end_prologue): Add file arg.
2976         (end_epilogue): Add line and file args.
2977         (dwarf2out_end_epilogue): Add line and file args.
2978         (vmsdbgout_after_prologue): Remove.
2979         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
2980         (dwarf2_debug_hooks): Update end_prologue.
2981         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
2982         (dwarfout_end_prologue): Add file arg.
2983         * final.c (vmsdbgout_after_prologue): Remove
2984         (final_end_function): Update end_epilogue call.
2985         (final_scan_insn): Update end_prologue call.
2986         * sdbout.c (sdbout_end_epilogue): Add line and file args.
2987         (sdbout_end_prologue): Add file arg.
2988         (sdb_debug_hooks): Update end_prologue.
2989         (sdb_begin_prologue): Update sdbout_end_prologue call.
2990         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
2991         vmsdbgout_end_function.
2992         (vmsdbgout_end_prologue): New function renamed from
2993         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
2994         (vmsdbgout_end_function): New function.
2995         (vmsdbgout_end_epilogue): Add line and file args. Call
2996         vmsdbgout_source_line.
2997         (write_pclines): Write only valid line numbers.
2998         (write_srccorr): Don't write source correlation records if 0 lines.
2999         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
3000
3001 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
3002
3003         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
3004         (_Unwind_Internal_Ptr): 32 bit version for use in
3005         read_encoded_value_with_base.
3006         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
3007         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
3008         right size.
3009
3010 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3011
3012         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
3013         signed/unsigned warnings.
3014
3015         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
3016         record_reg_classes): Likewise.
3017
3018         * reload.c (reload_inner_reg_of_subreg, push_reload,
3019         find_reloads_address_1): Likewise.
3020
3021 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
3022
3023         * rs6000.c (output_mi_thunk): Return to function section on
3024         TARGET_ELF.
3025
3026         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
3027
3028 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
3029
3030         * config/s390/s390.c (legitimize_address): Optimize loading
3031         of large displacements.
3032
3033 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
3034
3035         * config/alpha/alpha-protos.h: Update.
3036
3037         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
3038         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
3039         (alpha_linkage_symbol_p): New static function.
3040         (print_operand_address): Print linkage operand.
3041
3042         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
3043         variables.
3044         (reloc_kind): New enum.
3045         (struct alpha_funcs): New struct.
3046         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
3047
3048         (alpha_need_linkage): Rewrite.
3049         (alpha_use_linkage): New global function.
3050         (alpha_write_linkage): Rewrite and make static.
3051         (alpha_write_one_linkage): Rewrite
3052
3053         (alpha_start_function): Remove procedure descriptor output.
3054         (alpha_end_function): Write linkages at end of each function.
3055
3056         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
3057         (call_vms_1, call_value_vms_1): Rewrite.
3058
3059         * config/alpha/vms.h (ASM_FILE_END): Remove.
3060
3061 2002-08-14  Richard Henderson  <rth@redhat.com>
3062
3063         * ggc-page.c (RTL_SIZE): New.
3064         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
3065         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
3066
3067 2002-08-14  Richard Henderson  <rth@redhat.com>
3068
3069         * calls.c: Include target.h.
3070         * Makefile.in (calls.o): Update.
3071
3072         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
3073         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
3074
3075 2002-08-14  Richard Henderson  <rth@redhat.com>
3076
3077         * Makefile.in (LOOSE_WARN): Add -fno-common.
3078         * c-common.h (constant_string_class_name): Add missing extern.
3079
3080 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
3081
3082         PR preprocessor/7358
3083         * c-opts.c (check_deps_environment_vars): Ignore main file
3084         for SUNPRO_DEPENDENCIES.
3085         * cppfiles.c (stack_include_file): Ignore main file if
3086         appropriate.
3087         * cpplib.h (struct cpp_options): New member in deps.
3088         * doc/cppenv.texi: Update.
3089
3090 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3091
3092         PR preprocessor/7526
3093         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
3094
3095 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
3096
3097         * doc/invoke.texi (-a): Remove documentation.
3098         (-fprofile-arcs): Remove reference to -a, -ax options.
3099         * doc/gcov.texi (Gcov Data Files): Data might be merged.
3100
3101 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3102
3103         Fix PR/7566
3104         * c-semantics.c (genrtl_case_label): Don't (mis)use
3105         warning_with_decl.
3106
3107 2002-08-14  Dale Johannesen  <dalej@apple.com>
3108
3109         * explow.c (emit_stack_restore):  Emit memory clobbers
3110         preceding the stack pop, to prevent the scheduler from
3111         moving refs to variable arrays below this pop.
3112         * reload1.c (reload):  Preserve these clobbers for sched2.
3113         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
3114
3115 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3116
3117         * c-opts.c (c_common_post_options): Correct test.
3118
3119 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3120
3121         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
3122         order in call to fprintf.
3123
3124 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3125
3126         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
3127
3128 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3129
3130         * reload.c (find_reloads): Handle constraint letters marked by
3131         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
3132         (alternative_allows_memconst): Likewise.
3133         * reload1.c (maybe_fix_stack_asms): Likewise.
3134         * recog.c (asm_operand_ok, preprocess_constraints,
3135         constrain_operands): Likewise.
3136         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3137         * local-alloc.c (block_alloc, requires_inout): Likewise.
3138         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3139
3140         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
3141         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3142         * doc/tm.texi: Document these two new target macros.
3143
3144         * config/s390/s390.c (s390_expand_plus_operand): Accept already
3145         valid operands.
3146         (q_constraint): New function.
3147         config/s390/s390-protos.h (q_constraint): Declare it.
3148         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
3149         (EXTRA_MEMORY_CONSTRAINT): New macro.
3150
3151         * config/s390/s390.md: Throughout the machine description,
3152         replace all instances of the constraint combinations 'Qo'
3153         or 'oQ' with simply 'Q'.
3154
3155 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3156
3157         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
3158         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
3159         (LIBGCC2_CFLAGS): Compile with -mrelax.
3160
3161 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3162
3163         * doc/invoke.texi: Document -minmax for 68HC12.
3164
3165         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
3166         ("uminqi3"): Likewise.
3167         ("uminhi3", "umaxhi3"): Likewise.
3168
3169         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
3170         (TARGET_MIN_MAX): Define.
3171         (TARGET_SWITCHES): New option -minmax/-mnominmax.
3172
3173 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3174
3175         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
3176         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
3177
3178         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
3179         (ret, declare, farsym): New gas macros.
3180         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
3181         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
3182         and declare the symbol far when compiled with -mlong-calls.
3183         (__far_trampoline): New for 68HC12 trampoline code to invoke a
3184         far handler using jsr/bsr.
3185
3186         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
3187         (jsr): New macro to transform a 'jsr' into a 'call'.
3188
3189 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3190
3191         * doc/invoke.texi: Document -mlong-calls for 68HC12.
3192
3193         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
3194         -mlong-calls is specified.
3195         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
3196         assembler directives.
3197         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
3198         (TARGET_SWITCHES): Add -mlong-calls options.
3199         (current_function_far): Declare.
3200
3201         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3202         into account the page register saved on the stack.
3203         (m68hc11_override_options): Take into account -mlong-calls option.
3204         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3205
3206         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3207         if the function is going to be in 68HC12 banked memory (-mlong-calls).
3208         ("*return_16bit"): Likewise.
3209         ("*return_void"): Likewise.
3210         ("call", "call_value"): Use call for a far function call.
3211
3212 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3213
3214         * toplev.c (parse_options_and_default_flags): Don't call
3215         post_options here.
3216         (general_init): Initialize GC, pools and tree hash here,
3217         instead of lang_independent_init.
3218         (lang_independent_init): Rename backend_init.
3219         (do_compile): Call post_options hook; exit early if there
3220         have been errors after switch processing.
3221         (toplev_main): Update.
3222
3223 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3224
3225         * c-pretty-print.h: Guard against multiple inclusion.
3226         Robustify macros.
3227         (pp_c_attributes): Declare.
3228         * c-pretty-print.c (pp_c_attributes): New function.
3229
3230 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3231
3232         * m68k.c (m68k_output_function_prologue,
3233         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
3234         and NEWS/MOTOROLA.
3235         * genattrtab.c: Remove dpx2 comment.
3236         * libgcc2.c (__enable_execute_stack): Delete versions for
3237         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
3238         sony_news/SYSTYPE_BSD.
3239         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
3240         __gmicro__, __i860__, __NeXT__ and __pyr__.
3241         * rtl.h: Remove convex comment.
3242         * varasm.c: Likewise.
3243
3244 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3245
3246         * c-opts.c (lang_flags): Const-ify.
3247         * ra-build.c (undef_table): Likewise.
3248         * ra.c (eliminables): Likewise.
3249
3250 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3251
3252         * tree.h: Guard against multiple inclusion.
3253
3254 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
3255
3256         * reload1.c (reload_cse_simplify): Before checking
3257         REG_FUNCTION_VALUE_P, check REG_P.
3258
3259 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
3260
3261         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
3262
3263 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3264
3265         * c-opts.c (c_common_init_options): Extra braces needed.
3266
3267 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3268
3269         * sh.c (sh_init_builtins): Add PARAMS to declaration.
3270         (sh_media_init_builtins, sh_expand_builtin): Likewise.
3271         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
3272         (sh_expand_binop_v2sf): Likewise.
3273         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
3274         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
3275         (sh_initialize_trampoline): Likewise.
3276
3277 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
3278
3279         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
3280         new condition code modes.
3281         s390.c (s390_match_ccmode_set): Handle those new CC modes.
3282         (s390_select_ccmode): Likewise.
3283         (s390_branch_condition_mask): Likewise.
3284
3285         * s390-protos.h (s390_tm_ccmode): Declare.
3286         s390.c (s390_tm_ccmode): New function.
3287         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
3288
3289         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
3290         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
3291         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
3292
3293         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
3294         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
3295         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
3296         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
3297         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
3298
3299         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
3300         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
3301         "*cmpqi_ccs_0"): Remove, replace by ...
3302         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
3303         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
3304         "*tstqi", "*tstqi_cconly"): ... these new patterns.
3305
3306         ("*cmpsidi_ccs"): Remove, replace by ...
3307         ("*cmpsi_ccs_sign"): ... this new pattern.
3308         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
3309
3310         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
3311         ("*cli"): ... this new pattern.
3312
3313         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
3314         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
3315         New patterns.
3316         ("adddi3_64"): Rename to "*adddi3_64".
3317         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
3318         ("adddi3"): Adapt expander.
3319
3320         ("*addsi3_cc"): Allow "general_operand" for operand 2.
3321         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
3322         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
3323
3324         ("addhi3", "addqi3"): Remove, replace by ...
3325         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
3326
3327         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
3328         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
3329         ("subdi3"): Replace by insn and splitter "*subdi3_31".
3330         ("subdi3"): New expander.
3331
3332         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
3333
3334         ("subhi3", "subqi3"): Remove, replace by ...
3335         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
3336
3337         ("*muldi3_sign"): New pattern.
3338         ("muldi3"): Do not clobber CC.
3339         ("mulsi3"): Likewise.
3340         ("mulsi_6432"): Likewise.
3341
3342 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3343
3344         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
3345         which can change CC0.
3346
3347 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
3348
3349         * gcse.c (adjust_libcall_notes): New function.
3350         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
3351
3352 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
3353
3354         * libgcc2.c (L_bb): Remove unneeded #includes.
3355         (__global_counters, __gthreads_active): Remove unused globals.
3356         (__bb_exit_func): Merge counts into files rather than appending.
3357         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
3358         (ALL_CFLAGS): ... to here.
3359
3360 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3361
3362         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
3363         (function_epilogue): Don't calculate function size.
3364         (ip2k_set_compare): Don't use lookup_const_double.
3365         (asm_file_start): Initialization of commands_in_file removed.
3366         (asm_file_end): Output of commands_in_file removed.
3367
3368         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
3369         __INT_MAX__.
3370
3371 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3372
3373         * c-opts.c (c_common_init_options): Check option array is
3374         sorted if checking enabled.
3375
3376 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
3377
3378         * c-pretty-print.c: #include "c-tree.h".
3379         (pp_c_simple_type_specifier): Tweak.
3380         (pp_c_storage_class_specifier): New.
3381         (pp_c_function_specifier): Likewise.
3382         (pp_c_declaration_specifiers): Likewise.
3383         (pp_c_init_declarator): Likewise.
3384         (pp_c_declaration): Likewise.
3385         (pp_c_direct_declarator): Stub.
3386         (pp_c_declarator): Likewise.
3387         (pp_c_parameter_declaration): Likewise.
3388
3389 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3390
3391         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
3392         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
3393         struct deferred_opt): New.
3394         (COMMAND_LINE_OPTIONS): Add -M*.
3395         (missing_arg): Update.
3396         (c_common_decode_option): Handle -M*.
3397         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
3398         don't call cpp_post_options.
3399         (c_common_finish, check_deps_environment_vars): Update.
3400         * cppfiles.c (stack_include_file, handle_missing_header): Update.
3401         * cpphash.h (CPP_PRINT_DEPS): Remove.
3402         * cppinit.c: Don't include version.h.
3403         (cpp_create_reader): Don't call deps_init.  Initialize
3404         warn_long_long.
3405         (cpp_read_main_file): Init deps if necessary.
3406         (cpp_destroy): Conditionally free deps.
3407         (cpp_finish): Update.
3408         (no_tgt): Remove.
3409         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3410         (cpp_post_options): Rename post_options.
3411         * cpplib.h (struct cpp_options): Remove some dependency options;
3412         move others to a new structure.
3413         (cpp_post_options): Remove.
3414         (cpp_finish): Comment.
3415         * fix-header.c (read_scan_file): Don't call cpp_post_options.
3416
3417 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3418
3419         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3420         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3421         MMIX_rR_REGNUM as clobbered.
3422         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3423
3424 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
3425
3426         * diagnostic.h (output_formatted_scalar): Rename from
3427         output_formatted_integer.
3428         * diagnostic.def: Add DK_DEBUG.
3429         * diagnostic.c (output_decimal): Adjust.
3430         (output_long_decimal): Likewise.
3431         (output_unsigned_decimal): Likewise.
3432         (output_octal): Likewise.
3433         (output_long_octal): Likewise.
3434         (output_hexadecimal): Likewise.
3435         (output_long_hexadecimal): Likewise.
3436         * c-pretty-print.c (pp_c_type_specifier): New function.
3437         (pp_c_specifier_qualifier_list): Likewise.
3438         (pp_c_abstract_declarator): Likewise.
3439         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
3440
3441 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
3442
3443         * doc/trouble.texi (Disappointments): Add static constructor and
3444         destructor dependency information for AIX.
3445
3446 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3447
3448         * cpphash.h (struct printer): New from cppmain.c.
3449         (cpp_reader): New member.
3450         * cppmain.c (struct printer): Move to cpphash.h.
3451         (options, print): Remove.
3452         (account_for_newlines, print_line, maybe_print_line,
3453         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
3454         scan_translation_unit_trad, cb_line_change, cb_ident,
3455         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
3456         cb_def_pragma): Make reentrant.
3457
3458 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3459
3460         * real.c (ieee_64): Always define.
3461         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3462         (dec_h): Not used yet, hide it.
3463         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
3464         macro controlling use.
3465         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3466
3467 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3468
3469         * i386.md (tablejump): Sign extend the operand.
3470         * i386.c (classify_argument): Fix missed case from previous patch.
3471
3472 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3473
3474         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
3475         to c-copts.c.
3476         (warn_multichar): Die.
3477         (cb_register_builtins): Export.
3478         * c-common.h (warn_multichar, preprocess_file): Remove.
3479         (cb_register_builtins): New.
3480         * c-lang.c (c_init): Remove.
3481         (LANG_HOOKS_INIT): Use c_objc_common_init.
3482         * c-lex.c (init_c_lex): Don't canonicalize filename.
3483         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
3484         (preprocess_file): Make static.  Update for cpplib.
3485         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
3486         (c_common_post_options): Set some cpp options here.
3487         (c_common_init): Move from c-common.c.
3488         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
3489         * cpplib.h (struct cpp_options): Remove in_fname.
3490         (cpp_preprocess_file): Update.
3491         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
3492
3493 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3494
3495         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
3496
3497 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3498
3499         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
3500         backslash in comment preceeding macro definition.
3501         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
3502         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
3503         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
3504
3505 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3506
3507         * expr.c (store_expr): In condition for checking if value is
3508         generated in TARGET, move call to expr_size last.
3509
3510 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3511
3512         * c-common.c (c_common_init): Call preprocess_file instead.
3513         (c_common_finish): Move to c-opts.c.
3514         * c-common.h (preprocess_file): new.
3515         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
3516         check_deps_environment_vars, c_common_finish): New.
3517         (c_common_decode_option): Update for out_fname and dependencies.
3518         * cppinit.c (init_dependency_output, output_deps): Remove.
3519         (cpp_destroy): Update prototype.
3520         (cpp_add_dependency_target): New.
3521         (cpp_read_main_file): Don't overlay a buffer.
3522         (cpp_finish): Take a deps output stream and write deps to it.
3523         Return the error count.
3524         (cpp_post_options): Don't canonicalize out_fname, or do anything
3525         with dependencies.
3526         * cpplib.h (struct cpp_options): Remove out_fname and
3527         preprocess_only.
3528         (cpp_add_dependency_target): New.
3529         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
3530         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
3531         set preprocess_only.  Don't handle the output stream directly.
3532
3533 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3534
3535         * dsp16xx.c (print_operand): Fix format specifier.
3536         * dsp16xx.md: Avoid automatic aggregate initialization.
3537         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
3538         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
3539         integer constant modifier.
3540         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
3541         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
3542         guards.
3543         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
3544         * v850.c (v850_select_section): Mark parameter with
3545         ATTRIBUTE_UNUSED.
3546         * global.c (global_alloc): Const-ify.
3547         * ra-colorize.c (hardregset_to_string): Fix format specifier.
3548
3549 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3550
3551         * darwin-c.c (darwin_pragma_options): Const-ify.
3552         * darwin.c (machopic_non_lazy_ptr_name,
3553         machopic_validate_stub_or_non_lazy_ptr): Likewise.
3554         (machopic_indirect_data_reference): Wrap variables in macros
3555         controlling their use.
3556         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
3557         (machopic_select_section): Use parentheses around && within ||.
3558         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
3559
3560 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3561
3562         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
3563         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3564         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
3565         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
3566         mdr_try_remove_redundant_insns, track_w_reload,
3567         mdr_try_wreg_elim): Make function static to match prototype.
3568         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
3569         parameter with ATTRIBUTE_UNUSED.
3570
3571 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3572
3573         * arc.c (arc_init): Don't use ISO C style function definitions.
3574         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
3575         arm_get_strip_length, arm_strip_name_encoding): Likewise.
3576         * avr.h (progmem_section): Likewise.
3577         * h8300.c h8300_asm_insn_count): Likewise.
3578         * m32r.c (init_idents): Likewise.
3579         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
3580         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
3581         * xtensa.c (xtensa_build_va_list): Likewise.
3582
3583 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3584
3585         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
3586         * c-opts.c (parse_option): Rename find_opt.
3587         (set_std_c99): New function.
3588         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
3589         (missing_arg): Remove OPT_std_bad.  Handle -o.
3590         (c_common_decode_option): Handle input and output file names,
3591         -o and -remap.  Clean up -std= handling.
3592         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
3593         (cpp_handle_option): Similarly.  Don't handle filenames.
3594
3595 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3596
3597         * i386.c (classify_argument): Fix computing of field's offsets.
3598
3599 2002-08-11  Andreas Jaeger  <aj@suse.de>
3600
3601         PR target/7531:
3602         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
3603
3604 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
3605
3606         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
3607         reference to clk_objective_c with flag_objc.
3608         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
3609         Likewise.
3610         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3611
3612 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
3613
3614         * c-opts.c (set_std_cxx98, set_std_c89): New.
3615         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3616         (c_common_decode_option): Handle new switches from cppinit.c.
3617         Add -std=gnu++98.
3618         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
3619         (no_arg, no_num): Remove.
3620         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
3621         switches apart from -lang-objc and lang-asm.
3622         (cpp_handle_option): Similarly.
3623         * cpplib.h (cpp_set_lang): New.
3624         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
3625         -std=gnu++98.
3626         * objc/lang-specs.h: Remove -ansi.
3627
3628 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
3629                                Graham Stott
3630
3631         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
3632         errors.
3633
3634 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3635
3636         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
3637         emit_jump_insn): Fix uninitialized variable.
3638         * gcov.c (init_line_info): Likewise.
3639         * genautomata.c (transform_3): Add braces around ambiguous
3640         else.
3641         * ifcvt.c (cond_exec_process_insns): Mark parameter with
3642         ATTRIBUTE_UNUSED.
3643         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
3644         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
3645         variable.
3646
3647         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
3648         warnings in output files.
3649
3650 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
3651
3652         * c-common.c (flag_objc): New.
3653         * c-common.h (c_language_kind): Get rid of clk_objective_c
3654         enum value.
3655         (flag_objc): New extern declaration.
3656         * c-decl.c (implicitly_declare): Call objc_check_decl
3657         instead of maybe_objc_check_decl.
3658         (finish_decl): Likewise.
3659         (grokfield): Likewise.
3660         (finish_struct): Likewise.
3661         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
3662         (maybe_objc_comptypes): Rename to objc_comptypes.
3663         (maybe_building_objc_message_expr): Rename to
3664         objc_message_selector.
3665         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
3666         replace with flag_objc as needed.
3667         * c-opts.c (c_common_init_options): Likewise.
3668         (c_common_decode_option): Likewise.
3669         * c-parse.in (init_reswords): Likewise.
3670         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
3671         (maybe_objc_comptypes): Rename to objc_comptypes.
3672         (maybe_building_objc_message_expr): Rename to
3673         objc_message_selector.
3674         * c-typeck.c (comptypes): Call objc_comptypes instead of
3675         maybe_objc_comptypes, and/or objc_message_selector instead of
3676         maybe_building_objc_message_expr.
3677         (comp_target_types): Likewise.
3678         (convert_for_assignment): Likewise.
3679         (warn_for_assignment): Likewise.
3680         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
3681         independently of those for other languages.
3682         * objc/objc-act.c (maybe_objc_comptypes): Delete.
3683         (maybe_objc_check_decl): Delete.
3684         (maybe_building_objc_message_expr): Rename to
3685         objc_message_selector.
3686         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
3687         clk_objective_c; set flag_objc flag.
3688
3689 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3690
3691         * ifcvt.c (find_if_case_2): Test correct basic block for size.
3692
3693 2002-08-09  Dale Johannesen  <dalej@apple.com>
3694
3695         * config/rs6000/rs6000.md: Add sibcall patterns.
3696         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
3697         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
3698         Rewritten to handle sibcalls.
3699         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
3700         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
3701
3702 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
3703
3704         * profile.c (da_file_name): New static var.
3705         (init_branch_prob): Initialize it.
3706         (end_branch_prob): Remove da file.
3707
3708         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
3709         * configure.in (coverage_flags): Default to nothing.
3710         * configure: Rebuilt.
3711
3712 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
3713
3714         * Makefile.in (c-opts.o): Update
3715         * c-opts.c: Include intl.h.
3716         (print_help): Move from cppinit.c.  Remove unused options.
3717         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3718         (missing_arg): Complain for switches without an argument.
3719         (c_common_decode_option): Reject missing joined arguments.
3720         Handle new switches from cppinit.c.
3721         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3722         (cpp_handle_option): Similarly.
3723         (print_help): Moved to c-opts.c.
3724         * cpplib.h (struct cpp_options): Remove help_only.
3725         * gcc.c (cpp_unique_options): Remove -$.
3726         * doc/cppopts.texi: Undocument -h.
3727
3728 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3729
3730         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
3731         legitimate constant.
3732         (legitimate_pic_operand_p): Neither pic operand.
3733         (legitimate_address_p): But legitimate address.
3734         (get_thread_pointer): Generate MEM/u instead of CONST around
3735         UNSPEC_TP.
3736         (print_operand): Remove printing of UNSPEC_TP.
3737         (print_operand_address): And print it here.
3738
3739 2002-08-08  Devang Patel  <dpatel@apple.com>
3740
3741         * objc/objc-act.c (build_selector_translation_table): Issue warning,
3742         when  -Wselector is used,if method for which selector is being
3743         created does not exist.
3744
3745 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
3746
3747         * config/sh/sh.c (prepare_move_operands): Only call
3748         target_reg_operand if TARGET_SHMEDIA.
3749
3750 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3751
3752         * config/rs6000/rs6000.h, config/rs6000/aix.h,
3753         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
3754         two patches.
3755         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
3756
3757 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
3758             Richard Henderson  <rth@redhat.com>
3759
3760         * emit-rtl.c (gen_rtx_REG): After reload, only return
3761         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
3762
3763 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3764
3765         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
3766         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
3767         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
3768         macro.
3769
3770 2002-08-08  Adam Nemet  <anemet@lnxw.com>
3771
3772         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
3773         register.
3774         (thumb_expand_prologue): Likewise.
3775         (thumb_output_function_prologue): Likewise.
3776         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
3777         the additional push of the PIC register.
3778
3779 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
3780
3781         * configure.in (enable_coverage): New enable switch.
3782         * configure: Rebuilt.
3783         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
3784         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
3785         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
3786         (mostlyclean): Remove coverage files.
3787         * doc/install.texi: Document enable_coverage.
3788
3789         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
3790         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
3791         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
3792         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
3793         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
3794         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
3795         files.
3796
3797 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
3798
3799         * c-opts.c (cpp_opts): New.
3800         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
3801         (c_common_decode_options): Handle cpplib switches.
3802         (c_common_init_options): Set cpp_opts.
3803         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3804         (cpp_handle_option): Similarly.
3805
3806 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
3807
3808         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
3809         (TARGET_ALTIVEC_ABI): Same.
3810         (TARGET_ALTIVEC_VRSAVE): Same.
3811
3812         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
3813         icode not CODE_FOR_nothing.  Change switch to if.
3814
3815 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
3816
3817         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
3818
3819 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3820
3821         * stor-layout.c (place_union_field): For bitfields if
3822         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
3823         TYPE_USER_ALIGN.
3824
3825 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3826
3827         * pa.c (struct deferred_plabel): Constify name field.
3828
3829 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
3830
3831         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
3832
3833 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3834
3835         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
3836         local_prefix are the same.
3837         * configure: Rebuilt.
3838
3839 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3840             Richard Henderson  <rth@redhat.com>
3841
3842         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
3843         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
3844         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
3845         (place_field): Likewise.
3846         * config/i386/i386.c (x86_field_alignment): Don't check
3847         DECL_USER_ALIGN here.
3848         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
3849         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
3850         prototype.
3851         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
3852         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
3853         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
3854         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
3855         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
3856         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
3857
3858 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
3859
3860         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
3861         * c-common.c: Don't include tree-inline.h.
3862         (c_common_init_options, c_common_post_options): Move to c-opts.c.
3863         * c-common.h (c_common_decode_option): New.
3864         * c-decl.c (c_decode_option): Remove.
3865         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
3866         * c-opts.c: New file.
3867         * c-tree.h (c_decode_option): Remove.
3868         * doc/passes.texi: Update.
3869         * objc/objc-act.c (objc_decode_option): Remove.
3870         * objc/objc-act.h (objc_decode_option): Remove.
3871         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
3872         c_common_decode_option.
3873
3874 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
3875
3876         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
3877         dependency on TARGET_DOUBLE_FLOAT.
3878
3879 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
3880
3881         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
3882         overwrite callee-save registers.  Fix comment.
3883
3884 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
3885
3886         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
3887         in target_flags based on ISA, if it was not set on the command
3888         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
3889         support Branch Likely instructions.
3890         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
3891         (TARGET_BRANCHLIKELY): Likewise.
3892         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
3893         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
3894         ISA_HAS_BRANCHLIKELY.
3895         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
3896         * doc/invoke.texi: Document new MIPS -mbranch-likely and
3897         -mno-branch-likely options.
3898
3899 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3900
3901         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
3902
3903         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
3904         $(GCONFIG_H).
3905
3906 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
3907
3908         * c-decl.c (duplicate_decls): Error out for incompatible TLS
3909         declarations.
3910
3911         * testsuite/gcc.dg/tls/diag-3.c: New.
3912
3913 2002-08-06  Dale Johannesen  <dalej@apple.com>
3914
3915         * c-common.c (fname_decl): Use line number 0 for
3916         __func__, to avoid confusing debuggers.
3917
3918 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
3919
3920         * gcov.c: Tidy.
3921         (struct line_info, struct coverage): New structures.
3922         (gcov_file_name, gcov_file): Remove globals.
3923         (output_data): Take source file parameter. Fix memory leak. Break
3924         up into ...
3925         (init_line_info, output_line_info, make_gcov_file_name,
3926         accumulate_branch_counts): ... here.
3927         (calculate_branch_probs, function_summary): Adjust.
3928         (main): Adjust.
3929         (function_*): Remove global variables.
3930
3931 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3932
3933         * dwarf2out.c: Remove unused macros.
3934
3935 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3936
3937         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
3938
3939 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3940
3941         * cppinit.c (struct lang_flags): Rename trigraphs std.
3942         (set_lang): Update.
3943         * cpplib.h (struct cpp_options): New member std.
3944         * cppmacro.c (_cpp_builtin_macro_text): Use std.
3945         (collect_args): Flag whether to swallow a possible future
3946         comma pasted with varargs.
3947         (replace_args): Use this flag.
3948         * doc/cpp.texi: Update varargs extension documentation.
3949
3950 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3951
3952         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
3953
3954 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3955
3956         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
3957         and MODE_CLASS_INT modes.
3958
3959 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3960
3961         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
3962         --{enable,disable}-threads is given to configure.
3963         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
3964         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
3965         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
3966         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
3967         Remove thread_file setting here.
3968
3969 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
3970
3971         * doc/install.texi (Binaries): Update Bull Freeware URL.
3972
3973 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3974
3975         * doc/gcc.texi (Top): Rename Index to Keyword Index.
3976
3977 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
3978
3979         * gcov.c (output_data): Round to % to nearest, tweak formatting.
3980
3981 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3982
3983         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
3984         of the operands into MINUS_EXPR if code is PLUS_EXPR.
3985
3986 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
3987
3988         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
3989         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
3990         drectve_section): Define.
3991         * config/i386/t-interix: Replace interix.o rule with winnt.o.
3992         * config/i386/interix.c: Remove.
3993
3994 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
3995
3996         * attribs.c: Don't include obstack.h.
3997         * builtins.c: Likewise.
3998         * cfganal.c: Likewise.
3999         * cfgbuild.c: Likewise.
4000         * cfgcleanup.c: Likewise.
4001         * emit-rtl.c: Likewise.
4002         * loop.c: Likewise.
4003         * stmt.c: Likewise.
4004
4005         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
4006
4007 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
4008
4009         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
4010
4011 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
4012
4013         * doc/invoke.texi: Remove duplicated paragraph describing
4014         TARGET_SWITCHES.
4015
4016 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
4017
4018         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
4019         * collect2.h (permanent_obstack): Delete declaration.
4020         * collect2.c (permanent_obstack): Delete definition.
4021         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
4022         * expr.c: Don't include obstack.h.
4023         (permanent_obstack): Delete declaration.
4024         * function.c: Don't include obstack.h.
4025         (permanent_obstack): Delete declaration.
4026         * integrate.c: Don't include obstack.h.
4027         (function_maybepermanent_obstack): Delete declaration.
4028         * print-tree.c (debug_tree): Use x*alloc not permalloc.
4029         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
4030         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
4031         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
4032         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
4033         of permalloc, expralloc, perm_calloc.
4034         * tree.c (permanent_obstack): Delete definition.
4035         (init_ttree): Rename from init_obstacks.
4036         (permalloc): Delete.
4037         (perm_calloc): Delete.
4038         (dump_tree_statistics): Don't print information about
4039         permanent_obstack.
4040         * varasm.c (assemble_start_function): Use xstrdup instead of
4041         permalloc/strcpy.
4042         (assemble_variable): Likewise.
4043         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
4044         permalloc.
4045         (unicosmk_add_extern): Likewise.
4046         * config/c4x/c4x.c (c4x_external_ref): Likewise.
4047         (c4x_global_label): Likewise.
4048         * config/frv/frv.c (frv_encode_section_info): Likewise.
4049         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4050         (i386_pe_record_exported_symbol): Likewise.
4051         * config/mips/mips.c (mips_output_external): Likewise.
4052         (mips_output_external_libcall): Likewise.
4053         * config/pa/pa.c: (permanent_obstack): Delete declaration.
4054         (output_call): Use ggc_strdup instead of allocating on
4055         permanent_obstack.
4056         * config/romp/romp.c: Include ggc.h.
4057         (get_symref): Don't declare permanent_obstack, use ggc_strdup
4058         intead of permanent_obstack.
4059         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
4060         instead of permalloc.
4061         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
4062         instead of permalloc
4063         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
4064         instead of permalloc.
4065         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
4066         permalloc.
4067
4068 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
4069
4070         Contribute a port developed primarily by Michael Meissner,
4071         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
4072         * config.gcc: Add frv-elf target.
4073         * config/frv/cmovd.c: New file.
4074         * config/frv/cmovh.c: New file.
4075         * config/frv/cmovw.c: New file.
4076         * config/frv/frv-abi.h: New file.
4077         * config/frv/frv-asm.h: New file.
4078         * config/frv/frv-modes.def: New file.
4079         * config/frv/frv-protos.h: New file.
4080         * config/frv/frv.c: New file.
4081         * config/frv/frv.h: New file.
4082         * config/frv/frv.md: New file.
4083         * config/frv/frvbegin.c: New file.
4084         * config/frv/frvend.c: New file.
4085         * config/frv/lib1funcs.asm: New file.
4086         * config/frv/media.h: New file.
4087         * config/frv/modi.c: New file.
4088         * config/frv/t-frv: New file.
4089         * config/frv/uitod.c: New file.
4090         * config/frv/uitof.c: New file.
4091         * config/frv/ulltod.c: New file.
4092         * config/frv/ulltof.c: New file.
4093         * config/frv/umodi.c: New file.
4094         * config/frv/xm-frv.h: New file.
4095
4096         * config/frv/media.h: Removed again.
4097
4098 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4099
4100         * gcov.c (bb_file_time): New static variable.
4101         (object_directory): May also be object file.
4102         (preserve_paths): New static variable.
4103         (print_usage): Adjust.
4104         (options): Adjust.
4105         (process_args): Adjust.
4106         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
4107         file. Find modification date on bb file.
4108         (read_profile): Don't rewind a NULL file.
4109         (format_hwint): New static function.
4110         (function_summary): Use format_hwint.
4111         (output_data): SOURCE_FILE_NAME is never relative to
4112         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
4113         mangling. Adjust output format to make it more machine readable.
4114         * doc/gcov.texi: Document & clarify semantics.
4115
4116 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4117
4118         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
4119
4120 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4121
4122         * gcc.c (cc1_options): Pass output file as auxbase when
4123         appropriate.
4124         * profile.c (init_branch_prob): FILENAME has already had ending
4125         stripped.
4126         * final.c (end_final): Likewise.
4127         * toplev.c (aux_base_name): New global.
4128         (compile_file): Pass aux_base_name to init init_branch_prob and
4129         end_final.
4130         (independent_decode_option, case 'a'): New auxinfo options.
4131         (case 'd'): Protect against mising basename.
4132         (do_compile): Initialize aux_base_name.
4133         * toplev.h (aux_base_name): New global.
4134         * doc/invoke.texi: Adjust documentation.
4135
4136 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4137
4138         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
4139         of TARGET_ALIGN_DOUBLE.
4140
4141 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
4142
4143         * diagnostic.c (inform): New function.
4144         * diagnostic.h (inform): Declare.
4145
4146 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
4147
4148         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
4149         (movhi_internal): Same.
4150         (movqi_internal): Same.
4151         (movdi_internal64): Same.
4152
4153         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
4154
4155         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
4156         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
4157         (COMMON_ASM_OP): Define.
4158         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
4159         Use ALIGN parameter.
4160         (LOCAL_COMMON_ASM_OP): Define.
4161         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
4162
4163 2002-08-03  Roger Sayle  <roger@eyesopen.com>
4164
4165         * builtins.def: Define new builtin functions exp, expf, expl,
4166         log, logf and logl (and their __builtin_* variants).
4167         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
4168         Define exp_optab and log_optab.
4169         * optabs.c (init_optans): Initialize exp_optab and log_optab.
4170         * genopinit.c (optabs): Implement exp_optab and log_optab
4171         using exp?f2 and log?f2 patterns.
4172         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
4173         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
4174         (expand_builtin): Ignore the new builtins (and all cos and
4175         sin variants) when not optimizing.  Expand new builtins via
4176         expand_builtin_mathfn when flag_unsafe_math_optimizations.
4177
4178         * doc/extend.texi: Document new exp and log builtins.
4179         * doc/md.texi: Document new exp?f2 and log?f2 patterns
4180         (and previously undocumented cos?f2 and sin?f2 patterns).
4181
4182 2002-08-03  Jason Merrill  <jason@redhat.com>
4183
4184         * explow.c (int_expr_size): New fn.
4185         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
4186         * expr.h: Declare it.
4187
4188 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
4189
4190         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
4191         gengtype-* dependencies.
4192
4193 2002-08-02  Eric Christopher  <echristo@redhat.com>
4194
4195         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
4196         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
4197         #ifndef to #undef.
4198         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
4199
4200 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
4201
4202         PR optimize/7067
4203         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4204         small if optimizing for size.
4205
4206 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
4207
4208         * configure.in (FORBUILD): Use $build_alias.
4209         * configure: Regenerated.
4210
4211 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
4212
4213         * config.gcc: Don't include mips/abi64.h in $tm_file.
4214         * hard-reg-set.h (call_really_used_regs): Declare.
4215         * config/mips/abi64.h: Remove file.
4216         * config/mips/linux.h,
4217         * config/mips/iris6.h: Don't include it.
4218         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4219         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4220         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4221         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4222         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4223         Bring across definitions from abi64.h.
4224         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4225         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4226         (struct mips_args): Use it.
4227         * config/mips/mips.c (mips_conditional_register_usage): Define.
4228
4229 2002-08-02  Jason Merrill  <jason@redhat.com>
4230
4231         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4232         * langhooks.c (lhd_expr_size): Define default.
4233         * langhooks.h (struct lang_hooks): Add expr_size.
4234         * explow.c (expr_size): Call it.
4235         * expr.c (store_expr): Don't copy an expression of size zero.
4236         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
4237         to store.
4238         * Makefile.in (builtins.o): Depend on langhooks.h.
4239
4240 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4241
4242         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
4243         * ra-debug.c: Include "tm_p.h".
4244         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
4245
4246 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
4247
4248         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
4249         when not honoring signalling NaNs.
4250         (simplify_ternary_operation): a == b has a definite value
4251         when not honoring NaNs.
4252
4253 2002-08-02  Jason Merrill  <jason@redhat.com>
4254
4255         * gdbinit.in (pct): New macro.
4256
4257 2002-08-01  Stan Shebs  <shebs@apple.com>
4258             Andreas Tobler  <toa@pop.agri.ch>
4259
4260         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
4261         plays nice with Darwin headers.
4262         (_BSD_RUNE_T_DEFINED_): Likewise.
4263
4264 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4265
4266         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
4267         * cppinit.c (cpp_post_options): Likewise.
4268
4269         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
4270         warning about 'LL' suffix (but not 'ULL' etc) when
4271         -Wno-long-long is in effect.
4272
4273         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
4274         Check for failing time()/localtime(), issue a warning, and
4275         make __TIME__ and __DATE__ expand to fallback strings.
4276
4277         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
4278         and __TIME__ when the date and time cannot be determined.
4279
4280 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4281
4282         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
4283
4284 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
4285
4286         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
4287
4288 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4289
4290         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
4291         (mipsisa64sb1el-*-elf*): Likewise.
4292         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
4293         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
4294         (TARGET_SB1, TUNE_SB1): New macros.
4295         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
4296         -mtune flags.
4297
4298 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
4299
4300         * varasm.c (asm_emit_uninitialized): Return false if global BSS
4301         and ASM_EMIT_BSS not supported by target.
4302         (assemble_variable): Do not duplicate uninitialized logic.
4303         Fall through if asm_emit_uninitialized failed.
4304
4305 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4306
4307         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
4308
4309 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4310
4311         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
4312         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
4313
4314         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
4315         HOST_BITS_PER_WIDE_INT == 64.
4316
4317 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4318
4319         * df.c (df_insn_table_realloc): Change parameter to unsigned.
4320         * optabs.c (expand_binop): Make variable unsigned.
4321         * simplify-rtx.c (simplify_subreg): Likewise.
4322         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
4323
4324 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4325
4326         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
4327
4328 2002-08-01  Richard Henderson  <rth@redhat.com>
4329
4330         * toplev.c (parse_options_and_default_flags): Don't set
4331         flag_reorder_blocks for -Os.
4332
4333         * config/avr/avr.c (avr_optimization_options): Remove.
4334         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
4335         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
4336         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
4337
4338 2002-08-01  H.J. Lu <hjl@gnu.org>
4339             Richard Henderson  <rth@redhat.com>
4340
4341         * output.h (DECL_READONLY_SECTION): Remove.
4342         (decl_readonly_section): Declare.
4343         * varasm.c (decl_readonly_section): New.
4344         (default_section_type_flags, default_select_section): Use it.
4345         * config/arm/pe.c (arm_pe_unique_section): Likewise.
4346         * config/i386/interix.c (i386_pe_unique_section): Likewise.
4347         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
4348         * config/mcore/mcore.c (mcore_unique_section): Likewise.
4349         * config/mips/mips.c (mips_unique_section): Likewise.
4350
4351 2002-08-01  Richard Henderson  <rth@redhat.com>
4352
4353         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
4354         refers to a subroutine parameter.
4355
4356 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
4357
4358         * varasm.c (assemble_visibility): Strip name encoding.
4359
4360 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4361
4362         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
4363         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
4364         when there is no frame pointer.
4365         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
4366         registers properly.
4367         * config/ns32k/__unorddf2.c: New file.
4368         * config/ns32k/__unordsf2.c: New file.
4369         * config/ns32k/t-ns32k: New file.
4370         * config.gcc (ns32k-*-netbsd*): Use it.
4371
4372 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
4373
4374         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
4375
4376 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4377
4378         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
4379
4380 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
4381
4382         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
4383
4384 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
4385
4386         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
4387
4388 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4389
4390         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
4391         n_sets): Removed.
4392         (expr_hash_table, set_hash_table): Type changed to ...
4393         (struct hash_table): New type.
4394         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
4395         insert_expr_in_table, insert_set_in_table, compute_hash_table,
4396         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
4397         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
4398         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
4399         (alloc_hash_table): New.
4400         (free_set_hash_table, free_expr_hash_table): Merged to ...
4401         (free_hash_table): New.
4402         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
4403         (compute_hash_table_work): New.
4404         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
4405         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
4406         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
4407         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
4408         hoist_code, one_code_hoisting_pass,
4409         trim_ld_motion_mems): Altered due to changed type of hash tables.
4410
4411 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4412
4413         * final.c (output_alternate_entry_point):
4414         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4415
4416 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4417
4418         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4419         avoid ISO C style function definition.
4420
4421         * expr.c (expand_assignment): Delete unused variable.
4422
4423 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
4424
4425         * c-common.c (cb_register_builtins): Set
4426         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4427         is given, and to 0 otherwise.
4428         * combine.c (simplify_if_then_else): HONOR_NANS
4429         implies FLOAT_MODE_P.
4430
4431 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4432
4433         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4434         (cpp_handle_option): Don't handle it.
4435         (print_help): Update.
4436         * doc/cppopts.texi: Update.
4437
4438 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4439
4440         * c-common.c (cb_register_builtins): If C++, define
4441         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
4442         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
4443 cp:
4444         * lang-specs.h: Simplify in accordance with new code in
4445         c-common.c.
4446
4447 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4448
4449         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
4450         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
4451         * c-decl.c: Move all warning and flag variables to c-common.c.
4452         * c-format.c: Move all warning variables to c-common.c.
4453         * c-tree.h: Move all warning and flag declarations to c-common.h.
4454         * objc/objc-act.c: Move all warning variables to c-common.c.
4455         (flag_warn_protocol): Rename warn_protocol.
4456
4457 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4458
4459         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
4460
4461 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
4462
4463         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
4464         .section prefix.
4465
4466 2002-07-31  Stan Shebs  <shebs@apple.com>
4467
4468         * config.gcc (i[34567]86-*-darwin*): New configuration.
4469         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
4470         defining.
4471         (TARGET_ENCODE_SECTION_INFO): Ditto.
4472         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
4473         * config/darwin.c (machopic_indirect_data_reference): Remove
4474         setting of RTX_UNCHANGING_P.
4475         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
4476         not to be applied to sums.
4477         * config/i386/t-darwin: New file.
4478         * config/i386/darwin.h: New file.
4479         * config/i386/i386.h (TARGET_MACHO): Add default definition.
4480         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
4481         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
4482         label and not the GOT add.
4483         (constant_address_p): For Mach-O, seeing a CONST is enough.
4484         (legitimate_pic_address_disp_p): Add a Mach-O case.
4485         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
4486         (legitimize_pic_address): Use generic Mach-O code to legitimize.
4487         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
4488         if outputting a difference.
4489         (ix86_output_addr_diff_elt): Add Mach-O case.
4490         (ix86_expand_move): Similarly.
4491         (ix86_expand_call): Similarly.
4492         (current_machopic_label_num): New global.
4493         (machopic_output_stub): New function.
4494         (ix86_value_regno): New function.
4495         (ix86_function_value): Use it instead of VALUE_REGNO.
4496         (ix86_libcall_value): Ditto.
4497         * config/i386/unix.h (VALUE_REGNO): Remove.
4498
4499 2002-07-31  Graham Stott  <grahas@btinternet.com>
4500
4501         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
4502         hash for LABEL_REF's.
4503
4504 2002-07-31  Graham Stott  <grahams@btinternet.com>
4505
4506         * config/rs6000/rs6000.c (spe_init_builtins,
4507         altivec_init_builtins, rs6000_common_init_builtins):
4508         Replace ANSI with K&R function def.
4509
4510 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
4511
4512         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
4513         for CCFPmode.
4514
4515 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4516
4517         * config/mips/crtn.asm: Don't use __mips16 to determine the
4518         return-address offset.  Define RA to a suitable temporary
4519         register for the return address.
4520
4521 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4522
4523         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
4524         constraints to 'd'.
4525
4526 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
4527
4528         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
4529         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
4530         patch on 2002-07-29.)
4531         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4532
4533 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4534
4535         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
4536         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
4537         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
4538         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
4539         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
4540         (ASM_GLOBALIZE_LABEL): Delete.
4541         (GLOBAL_ASM_OP): Define.
4542
4543         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
4544
4545         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
4546         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
4547
4548 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
4549
4550         * doc/extend.texi (Hints implementation): Document that GCC
4551         mostly ignores `register'.
4552
4553 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
4554
4555         * flags.h: Declare flag_finite_math_only.
4556         Use it in definition of HONOR_NANS and
4557         HONOR_INFINITIES.
4558         * c-common.c (cb_register_builtins): Emit
4559         __FINITE_MATH_ONLY__ when flag_finite_math_only
4560         is set.
4561         * combine.c (simplify_if_then_else): If
4562         flag_finite_math_only is set, a == b has a
4563         definite value.
4564         * toplev.c: Initialize flag_finite_math_only.
4565         (set_flags_fast_math): Set it on -ffast-math.
4566         (flag_fast_math_set_p): Test it.
4567         * doc/invoke.texi: Document -ffinite-math-only.
4568
4569 2002-07-30  Richard Henderson  <rth@redhat.com>
4570
4571         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
4572         (noce_process_if_block): Likewise.
4573
4574 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
4575
4576         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4577         Bail out early if false_expr is NULL and we'd crash due to this.
4578         * genemit.c (gen_expand): Recognize return insns even if the return
4579         appears in a parallel.
4580         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
4581         * config/fp-bit.c: Likewise.
4582         * doc/tm.texi: Document it.
4583
4584 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
4585             Zack Weinberg  <zack@codesourcery.com>
4586
4587         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
4588         CODE_FOR_nothing.  Change switch to if.
4589         (rs6000_expand_binop_builtin): Same.
4590         (rs6000_expand_builtin): Expand builtin if target support enabled.
4591         (rs6000_init_builtins): Init builtin if target support enabled.
4592         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
4593
4594 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4595
4596         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
4597
4598 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
4599
4600         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
4601
4602 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
4603
4604         * sh.md (cond_delay_slot): New attribute.
4605         (cbranch delay): Use it for anulled-true case.
4606         (stuff_delay_slot): New pattern.
4607         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
4608         delay slot insn.
4609         (gen_far_branch): Emit stuff_delay_slot pattern.
4610
4611 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
4612
4613         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
4614
4615 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
4616
4617         * fold-const.c: Fix comment typos.
4618         * gcse.c: Likewise.
4619         * reload1.c: Likewise.
4620
4621 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4622
4623         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
4624         for TARGET_SPE.
4625
4626 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4627
4628         * c-pretty-print.h (pp_c_statement): Declare.
4629         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
4630         (pp_c_statement): Define.
4631
4632 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4633
4634         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
4635         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
4636         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
4637         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
4638         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
4639         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
4640
4641         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
4642         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
4643
4644 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4645
4646         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
4647         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
4648         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
4649         (pp_c_expression): Update.
4650
4651 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4652
4653         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
4654         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
4655         * alpha/vms-ld.c (main): Likewise.
4656         * dsp16xx.c (double_reg_to_memory): Likewise.
4657         * mcore.c (mcore_expand_prolog): Likewise.
4658         * cppfiles.c (read_name_map): Likewise.
4659         * gensupport.c (process_rtx, identify_predicable_attribute,
4660         alter_test_for_insn): Likewise.
4661         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
4662
4663 2002-07-29  Roger Sayle  <roger@eyesopen.com>
4664
4665         * builtins.c (expand_builtin):  Change the default behavior to
4666         only issue an error if the builtin function doesn't have a
4667         fallback library call.  Remove several cases handled by the
4668         new default.
4669
4670 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
4671
4672         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
4673         floating point format of the target is IEEE.
4674         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
4675         format of the target is DEC.
4676
4677 2002-07-29  Richard Henderson  <rth@redhat.com>
4678
4679         * unroll.c (verify_addresses): Remove.
4680         (find_splittable_givs): Never split DEST_ADDR givs.
4681
4682 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
4683
4684         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
4685         is exhaustive.
4686         (Files): Improve documentation on generated source files.
4687
4688         * doc/extend.texi (Translation implementation): Document what
4689         diagnostics look like.
4690         (Identifiers implementation): Document that there's normally no
4691         limit on identifier names.
4692         (Integers implementation): Document two's complement.
4693         (Hints implementation): Document that GCC honors 'inline', mostly.
4694         (Preprocessing directives implementation): Document that GCC
4695         requires the current time.
4696
4697 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4698
4699         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
4700         (pp_initializer): New macro.
4701         (pp_c_initializer): Declare.
4702         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
4703         (pp_c_initializer): Define.
4704         (pp_c_initializer_list): New function.
4705         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
4706         VECTOR_CST, CONSTRUCTOR.
4707         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
4708         IMAGPART_EXPR.
4709         (pp_c_cast_expression): Handle FLOAT_EXPR.
4710         (pp_c_assignment_expression): Handle INIT_EXPR.
4711         (pp_c_expression): Update.
4712
4713 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
4714
4715         * objc/objc-act.c (objc_init): Return immediately if filename
4716         is NULL.
4717
4718 2002-07-29  Eric Christopher  <echristo@redhat.com>
4719
4720         * config/mips/elf.h: Remove ecoff.h and gofast includes.
4721         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
4722         (SDB_DEBUGGING_INFO): Undefine.
4723         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4724         (PUT_SDB_SIZE): Remove.
4725         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
4726         (STARTFILE_SPEC): Add isa3264 define.
4727         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
4728         * config/mips/ecoff.h: Remove. and here...
4729         * config/mips/iris3.h: and here...
4730         * config/mips/sni-svr4.h: and here...
4731         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
4732         Add assembler -mmdebug options for non-dwarf debugging.
4733         * config/mips/r3900.h: Remove debug info defines.
4734         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
4735         * config/mips/isa3264.h: Ditto.
4736         * config/mips/t-isa3264: Fix up for file removal and gofast configure
4737         change.
4738         * config/mips/t-elf: Ditto.
4739         * config/mips/t-ecoff: Ditto.
4740         * config/mips/t-r3900: Ditto.
4741         * config/mips/t-iris5-6: Ditto.
4742         * config/mips/t-isa3264: Ditto.
4743         * config/mips/t-linux: Remove.
4744         * config/mips/t-netbsd: Remove.
4745         * config/mips/t-mips: New file.
4746         * config/mips/t-gofast: Ditto.
4747         * config/mips/netbsd.h: Remove unnecessary undefines.
4748         * config/mips/linux.h: Remove #include of mips.h.
4749         * config.gcc: Add mips.h include for elf targets. Remove tm_file
4750         for ecoff. Add gofast configure option for mips.
4751
4752 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
4753
4754         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
4755         linker scripts use STARTUP directives consistently.
4756         * configure: Regenerate.
4757         * config.in: Regenerate.
4758         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
4759         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
4760         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4761         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
4762         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
4763         will be the same.
4764
4765 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4766
4767         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
4768
4769 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4770
4771         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
4772
4773 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
4774
4775         * config/rs6000/rs6000.md: Move altivec patterns from here...
4776
4777         * config/rs6000/altivec.md: ...to here.
4778
4779 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4780
4781         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
4782
4783 2002-07-29  Richard Henderson  <rth@redhat.com>
4784
4785         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
4786         set_mem_attributes and add BITPOS argument.  Subtract it from
4787         OFFSET when same is adjusted.
4788         (set_mem_attributes): New wrapper function.
4789         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
4790         remove offset adjustment hack.
4791         * expr.h (set_mem_attributes_minus_bitpos): Declare.
4792
4793 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
4794
4795         * Makefile.in (C_OBJS): Include c-pretty-print.o
4796         (c-pretty-print.o): Add depency rule.
4797         * pretty-print.h: Add more macros.
4798         * c-pretty-print.c: New file.
4799         * c-pretty-print.h: Likewise.
4800
4801 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4802
4803         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
4804         constants to __ev64_s32__.
4805         (__internal_ev_mwhgsmian): Same.
4806         (__internal_ev_mwhgsmfan): Same.
4807         (__internal_ev_mwhgssfan): Same.
4808         (__internal_ev_mwhgumiaa): Same.
4809         (__internal_ev_mwhgsmiaa): Same.
4810         (__internal_ev_mwhgsmfaa): Same.
4811         (__internal_ev_mwhgssfaa): Same.
4812
4813 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
4814
4815         * varasm.c (assemble_variable): Narrow test for uninitialized
4816         without BSS target support.
4817
4818 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
4819
4820         * profile.c: Add file comment describing the overall algorithm and
4821         structures.
4822         (struct edge_info): Add comments.
4823         (struct bb_info): Add comments.
4824         * basic-block.h (EDGE_*): Add comments.
4825         * doc/gcov.texi (Gcov Data Files): Document bit flags.
4826
4827 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
4828
4829         * config/xtensa/elf.h, config/xtensa/linux.h
4830         (TARGET_OS_CPP_BUILTINS): Define.
4831         (CPP_PREDEFINES): Remove.
4832         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
4833         (CPP_SPEC): Remove.
4834
4835 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
4836
4837         * gensupport.c: Include hashtab.h.
4838         (insn_elision, condition_table, hash_c_test, cmp_c_test,
4839         maybe_eval_c_test): New routines and data structures to
4840         support insn elision.
4841         (init_md_reader): Read and initialize the condition_table.
4842         (read_md_rtx): Discard insn patterns whose C test is provably
4843         always false.
4844         * gensupport.h: Declare new functions and data structures.
4845
4846         * genconditions.c, dummy-conditions.c: New files.
4847         * Makefile.in: Build genconditions; run it to construct
4848         insn-conditions.c; build that and link it into most gen*
4849         programs.
4850         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
4851         (GEN): Delete, unused.
4852         (STAGESTUFF): Update.
4853
4854         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
4855         CODE_FOR_nothing for all elided patterns.
4856         (main): Tweaked to support this.
4857         * genflags.c (gen_proto): Emit a static inline generator
4858         function here for all elided patterns, which simply returns
4859         NULL_RTX.
4860         (gen_insn): Do not define HAVE_xxx for elided patterns.
4861         (main): Tweaked to support this.  No need to forward-declare
4862         struct rtx_def.
4863         * genrecog.c: Do not bother emitting the C test if it's known
4864         to be true at compile time.
4865
4866 2002-07-29  Mike Stump  <mrs@apple.com>
4867
4868         * config.gcc (target_gtfiles): Initialize, as otherwise cross
4869         compilers hosted on powerpc-apple-darwin6.0 won't even build.
4870
4871 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
4872
4873         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
4874         remove clobber of LR.
4875         (sibcall_insn, sibcall_value_insn): Update accordingly.
4876         (sibcall_epilogue): Remove debugging comment from assembler stream.
4877
4878 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
4879
4880         * pretty-print.h: Define more macros.
4881         * diagnostic.h (output_formatted_integer): Moved from...
4882         * diagnostic.c: ... here.
4883
4884 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4885
4886         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
4887
4888 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
4889
4890         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
4891         arguments.  Always use ".-symbol" as expression argument.
4892         * doc/tm.texi: Update to match.  Document requirement for
4893         ".size symbol, .-symbol" to be acceptable to assembler.
4894
4895         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4896         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
4897         config/i386/freebsd-aout.h, config/i386/sco5.h,
4898         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
4899         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
4900
4901 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4902
4903         * Makefile.in (gengtype-lex.c): Fix error in last change.
4904
4905         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
4906         backslash.
4907
4908         * Makefile.in (vmsdbgout.o): Depend on function.h.
4909
4910         * vmsdbgout.c: Include function.h.
4911
4912 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
4913
4914         * prefix.c (update_path): Don't strip single `.' path components
4915         unless stripping a later `..' component.  Exit loop as soon as
4916         a valid path is found.
4917
4918 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4919
4920         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
4921         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
4922         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
4923         floating point unordered comparisons (e.g. __builtin_isgreater)
4924         as const, and leave the remaining GCC_BUILTINs unchanged.
4925
4926         * c-decl.c (builtin_function): No need to explicitly mark
4927         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
4928
4929 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4930
4931         * Makefile.in: rtlanal.o now depends upon real.h.
4932
4933         * flags.h [flag_signaling_nans]: New flag.
4934         [HONOR_SNANS]: New macro.
4935
4936         * toplev.c [flag_signaling_nans]: Initialize to false.
4937         (f_options): Add processing for "-fsignaling-nans".
4938         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
4939         (process_options): flag_signaling_nans implies flag_trapping_math.
4940
4941         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
4942         when -fsignaling-nans.  First step to implementing WG14's N965.
4943
4944         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
4945         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
4946         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
4947
4948         * simplify-rtx.c (simplify_relational_operation): Conditionalize
4949         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
4950
4951         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
4952         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
4953         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
4954         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
4955         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
4956
4957         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
4958
4959 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4960
4961         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
4962         * gengtype-lex.l (YY_USE_PROTOS): Undef.
4963         (YY_DECL): Define.
4964
4965 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4966
4967         * doc/invoke.texi: Document that both -fno-builtin-foo and
4968         -fno-builtin are supported by the g++ front-end.
4969
4970 2002-07-27  Stan Shebs  <shebs@apple.com>
4971
4972         * configure.in: Rename config_gtfiles to target_gtfiles.
4973         * configure: Regenerate.
4974         * doc/gty.texi: Update reference.
4975         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
4976         instead of appending to it.
4977
4978 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
4979
4980         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
4981         vectors are split into two registers.
4982         (function_arg): Same.
4983
4984 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
4985
4986         * pa.md (extv): Check predicates before emitting extv_32.
4987
4988 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
4989
4990         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
4991         (rs6000_traceback): New var.
4992         (rs6000_override_options): Set rs6000_traceback.
4993         (rs6000_output_function_epilogue): Implement traceback options.
4994         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
4995         (rs6000_traceback_name): Declare.
4996
4997         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
4998         label reference when NO_PROFILE_COUNTERS.
4999
5000 2002-07-26  Jason Merrill  <jason@redhat.com>
5001
5002         * function.c (assign_parms): Handle frontend-directed pass by
5003         invisible reference.
5004
5005 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5006
5007         * doc/cppopts.texi: Update.
5008
5009 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5010
5011         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
5012         warnings on assertions.
5013
5014 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5015
5016         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
5017         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
5018         RID_COMPL): Remove.
5019         * c-parse.in (rid_to_yy): Similarly.
5020
5021 2002-07-26  Jason Merrill  <jason@redhat.com>
5022
5023         * c-dump.c: Resurrect.
5024         * tree-dump.c: Move C-specific stuff to c-dump.c.
5025         * c-common.h: Declare c_dump_tree.
5026         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
5027         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5028         (c-dump.o): New rule.
5029
5030 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
5031
5032         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
5033         PowerPC64.  Replace "T" and "S" constraints with "n" when the
5034         predicate will do.  Formatting fixes.
5035         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
5036         as for extzvsi_internal1.
5037
5038 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5039
5040         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
5041         DERIV_END_LABEL_FMT): Remove.
5042         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
5043
5044 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5045
5046         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
5047         Remove.
5048
5049 2002-07-25  Stan Shebs  <shebs@apple.com>
5050
5051         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
5052         local var dwarfp.
5053         (output_compiler_stub): Remove unused locals.
5054         (output_call): Always initialize line number.
5055
5056 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5057
5058         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
5059         * sh.md (truncdiqi2, movqi_media): Likewise.
5060
5061 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5062
5063         * gcse.c (obstack_chunk_alloc): Remove.
5064         (gcse_alloc): Fix to count allocated bytes.
5065         * collect2.c (SYMBOL__MAIN): Remove.
5066
5067 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5068
5069         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
5070         HAVE_TARGET_EXECUTABLE_SUFFIX.
5071
5072 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5073
5074         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
5075         SIZE, EXPR and OFFSET.
5076
5077 2002-07-25  Richard Henderson  <rth@redhat.com>
5078
5079         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
5080         in ARRAY_REF of DECL_P case.
5081
5082 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5083
5084         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
5085         description.  Document -mips32, -mips64, and the associated -march
5086         values.  Describe the "mipsN" arguments to -march.  Say that the
5087         -mipsN options are equivalent to -march.  Reword the description
5088         of default type sizes.
5089         * toplev.h (target_flags_explicit): Declare.
5090         * toplev.c (target_flags_explicit): New var.
5091         (set_target_switch): Update target_flags_explicit.
5092         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
5093         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
5094         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
5095         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
5096         * config/mips/mips.h (mips_cpu_info): New struct.
5097         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5098         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
5099         (MIPS_CPP_SET_PROCESSOR): New macro.
5100         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
5101         Define _MIPS_ARCH and _MIPS_TUNE.
5102         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
5103         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
5104         MIPS_ISA_DEFAULT were already defined.
5105         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
5106         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
5107         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
5108         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
5109         (ABI_GAS_ASM_SPEC): Remove.
5110         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
5111         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
5112         Invoke %(asm_abi_default_spec) if no ABI was specified.
5113         (CC1_SPEC): Remove ISA -> register-size rules.
5114         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
5115         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
5116         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5117         (mips_cpu_info_table): New array.
5118         (mips_set_architecture, mips_set_tune): New fns.
5119         (override_options): Rework to make -mipsN equivalent to -march.
5120         Detect more erroneous cases, including those removed from CC1_SPEC.
5121         Don't change the ABI based on architecture, or vice versa.
5122         Unify logic with GAS.
5123         (mips_asm_file_start): Get architecture name from mips_arch_info.
5124         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5125         (mips_parse_cpu): Take the name of the option as argument.  Handle
5126         'from-abi'.  Raise an error if the option is wrong.
5127         (mips_cpu_info_from_isa): New fn.
5128
5129 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5130
5131         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
5132         (tablejump_mips162): Likewise.
5133
5134 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
5135
5136         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
5137         int_mode_for_mode.
5138
5139 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
5140
5141         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
5142         complaining.
5143         * c-common.h (c_sizeof): Adjust definition.
5144         (c_alignof): Likewise.
5145         * c-tree.h (c_sizeof_nowarn): Now macro.
5146         * c-typeck.c (c_sizeof_nowarn): Remove definition.
5147
5148 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5149
5150         * c-decl.c (c_decode_option): No need to handle switches
5151         cpplib handles.
5152
5153 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
5154
5155         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
5156         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
5157         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
5158         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5159
5160         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5161         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
5162         config/cris/aout.h, config/i386/freebsd-aout.h,
5163         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
5164         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
5165         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
5166         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
5167         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
5168         config/xtensa/elf.h, config/xtensa/linux.h:
5169         Use the new macros.
5170         Where possible, remove redundant definitions of SIZE_ASM_OP,
5171         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5172
5173 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
5174
5175         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
5176         TARGET_ISEL, and TARGET_FPRS.
5177
5178         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5179         -mabi=spe, -mabi=no-spe, and -misel=.
5180
5181         * config/rs6000/rs6000-protos.h: Add output_isel.
5182         Move vrsave_operation prototype here.
5183
5184         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
5185         (smaxsi3): Same.
5186         (uminsi3): Same.
5187         (umaxsi3): Same.
5188         (abssi2_nopower): Disallow when TARGET_ISEL.
5189         (*ne0): Same.
5190         (negsf2): Change to expand and rename old pattern to *negsf2.
5191         (abssf2): Change to expand and rename old pattern to *abssf2.
5192
5193         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
5194         fixunssfsi2.
5195
5196         Change patterns that check for TARGET_HARD_FLOAT or
5197         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
5198
5199         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
5200         rs6000_isel, rs6000_fprs, rs6000_isel_string.
5201         (rs6000_override_options): Add 8540 case to
5202         processor_target_table.
5203         Set rs6000_isel for the 8540.
5204         Call rs6000_parse_isel_option.
5205         (enable_mask_for_builtins): New.
5206         (rs6000_parse_isel_option): New.
5207         (rs6000_parse_abi_options): Add spe and no-spe.
5208         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5209         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5210         for TARGET_HARD_FLOAT.
5211         Add case for SPE_VECTOR_MODE.
5212         (rs6000_legitimize_reload_address): Handle SPE vector modes.
5213         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5214         vector modes.
5215         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5216         (rs6000_emit_move): Check for TARGET_FPRS.
5217         Add cases for SPE vector modes.
5218         (function_arg_boundary): Return 64 for SPE vector modes.
5219         (function_arg_advance): Check for TARGET_FPRS and
5220         Handle SPE vectors.
5221         (function_arg): Same.
5222         (setup_incoming_varargs): Check for TARGET_FPRS.
5223         (rs6000_va_arg): Same.
5224         (struct builtin_description): Un-constify mask field.  Move up in
5225         file.
5226         (bdesc_2arg): Un-constify and add SPE builtins.
5227         (bdesc_1arg): Same.
5228         (bdesc_spe_predicates): New.
5229         (bdesc_spe_evsel): New.
5230         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5231         (rs6000_expand_binop_builtin): Same.
5232         (bdesc_2arg_spe): New.
5233         (spe_expand_builtin): New.
5234         (spe_expand_predicate_builtin): New.
5235         (spe_expand_evsel_builtin): New.
5236         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
5237         (rs6000_init_builtins): Initialize SPE builtins.  Call
5238         rs6000_common_init_builtins.
5239         (altivec_init_builtins): Move all non-altivec builtin code to...
5240         (rs6000_common_init_builtins): ...here.  New function.
5241         (branch_positive_comparison_operator): Allow NE code for SPE.
5242         (ccr_bit): Return correct ccr bit for SPE fp.
5243         (print_operand): Emit crnor in 'D' case for SPE.
5244         New case 't'.
5245         Add SPE code for 'y' case.
5246         (rs6000_generate_compare): Generate rtl for SPE fp.
5247         (output_cbranch): Handle SPE hard floats.
5248         (rs6000_emit_cmove): Handle isel.
5249         (rs6000_emit_int_cmove): New.
5250         (output_isel): New.
5251         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
5252         64-bits for SPE.
5253         (debug_stack_info): Add SPE info.
5254         (gen_frame_mem_offset): New.
5255         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
5256         Change mode of frame pointer, when saving it, to Pmode.
5257         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
5258         Misc cleanups and use gen_frame_mem_offset when appropriate.
5259
5260         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
5261         (TARGET_SPE_ABI): New.
5262         (TARGET_SPE): New.
5263         (TARGET_ISEL): New.
5264         (TARGET_FPRS): New.
5265         (FIXED_SCRATCH): New.
5266         (RTX_COSTS): Add PROCESSOR_PPC8540.
5267         (ASM_CPU_SPEC): Add case for 8540.
5268         (TARGET_OPTIONS): Add isel= case.
5269         (rs6000_spe_abi): New.
5270         (rs6000_isel): New.
5271         (rs6000_fprs): New.
5272         (rs6000_isel_string): New.
5273         (UNITS_PER_SPE_WORD): New.
5274         (LOCAL_ALIGNMENT): Adjust for SPE.
5275         (HARD_REGNO_MODE_OK): Same.
5276         (DATA_ALIGNMENT): Same.
5277         (MEMBER_TYPE_FORCES_BLK): New.
5278         (FIRST_PSEUDO_REGISTER): Set to 113.
5279         (FIXED_REGISTERS): Add SPE registers.
5280         (reg_class): Same.
5281         (REG_CLASS_NAMES): Same.
5282         (REG_CLASS_CONTENTS): Same.
5283         (REGNO_REG_CLASS): Same.
5284         (REGISTER_NAMES): Same.
5285         (DEBUG_REGISTER_NAMES): Same.
5286         (ADDITIONAL_REGISTER_NAMES): Same.
5287         (CALL_USED_REGISTERS): Same.
5288         (CALL_REALLY_USED_REGISTERS): Same.
5289         (SPE_ACC_REGNO): New.
5290         (SPEFSCR_REGNO): New.
5291         (SPE_SIMD_REGNO_P): New.
5292         (HARD_REGNO_NREGS): Adjust for SPE.
5293         (VECTOR_MODE_SUPPORTED_P): Same.
5294         (REGNO_REG_CLASS): Same.
5295         (FUNCTION_VALUE): Same.
5296         (LIBCALL_VALUE): Same.
5297         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
5298         (SPE_VECTOR_MODE): New.
5299         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
5300         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
5301         (rs6000_stack): Add spe_gp_size, spe_padding_size,
5302         spe_gp_save_offset.
5303         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
5304         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5305         (SPE_CONST_OFFSET_OK): New.
5306         (rs6000_builtins): Add SPE builtins.
5307
5308         * testsuite/gcc.dg/ppc-spe.c: New.
5309
5310         * config/rs6000/eabispe.h: New.
5311
5312         * config/rs6000/spe.h: New.
5313
5314         * config/rs600/spe.md: New.
5315
5316         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5317         __SIMD__ for TARGET_SPE.
5318
5319         * config.gcc: Add powerpc-*-eabispe* case.
5320         Add spe.h to user headers for powerpc.
5321
5322 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5323
5324         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
5325         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5326         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
5327
5328 2002-07-24  Richard Henderson  <rth@redhat.com>
5329
5330         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
5331         form when not optimizing.
5332
5333 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
5334
5335         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
5336         thread_pointer_rtx as unchanging.
5337
5338 2002-07-24  Michael Matz  <matz@suse.de>
5339
5340         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
5341         (free_reg): Use it.
5342
5343 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
5344
5345         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
5346         pattern.
5347         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
5348         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
5349
5350 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5351
5352         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
5353         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5354         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
5355
5356 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5357
5358         * toplev.c (rest_of_compilation): Dump loops before clobbering
5359         the structure.
5360
5361 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
5362
5363         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
5364
5365 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
5366
5367         PR optimization/7291
5368         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
5369         problem on x86_64.
5370
5371 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
5372
5373         * pretty-print.h: Add macros from cp/error.c
5374
5375 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5376
5377         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
5378         (mask64_2_operand): Declare.
5379         (build_mask64_2_operands): Declare.
5380         (and64_2_operand): Declare.
5381         (extract_MB): Declare.
5382         (extract_ME): Declare.
5383         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
5384         CONST_DOUBLE code.
5385         (mask_operand_wrap): New insn predicate.
5386         (mask64_2_operand): Likewise.
5387         (and64_2_operand): Likewise.
5388         (build_mask64_2_operands): New function.
5389         (extract_MB): New function.
5390         (extract_ME): New function.
5391         (print_operand <case m,M>): Use extract_MB and extract_ME.
5392         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
5393         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
5394         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
5395         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
5396         * config/rs6000/rs6000.md (andsi3_internal3): New
5397         (andsi3_internal3+1): Enable split for powerpc64.
5398         (andsi3_internal3+2): New split.
5399         (andsi3_internal4): Renamed old andsi3_internal3.
5400         (andsi3_internal5): New.
5401         (andsi3_internal5+1): Enable split for powerpc64.
5402         (andsi3_internal5+2): New split.
5403         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
5404         (anddi3): Handle 't' constraint.
5405         (anddi3+1): New split.
5406         (anddi3_internal2): Handle 't' constraint.
5407         (anddi3_internal2+1): New split.
5408         (anddi3_internal3): Handle 't' constraint.
5409         (anddi3_internal3+1): New split.
5410
5411 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5412
5413         * config/rs6000/rs6000.md: Remove scratch reg on insns using
5414         addze and similar (plus (comparison r1 r2) r3) insns.  Add
5415         missing scratch reg in one case.  Formatting fixes.
5416
5417 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
5418
5419         * cppexp.c (parse_defined): Mark macro used.
5420         * cpphash.h (struct cpp_macro): New member "used".
5421         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5422         (struct cpp_reader): New member.
5423         * cppinit.c (cpp_finish_options): Set first_unused_line.
5424         (cpp_finish): Warn of unused macros if requested.
5425         (OPT_TABLE): New switches.
5426         (cpp_handle_option): Handle them.
5427         * cpplib.c (do_undef): Warn if macro unused.
5428         (do_ifdef, do_ifndef): Mark macro used.
5429         * cpplib.h (struct cpp_options): New member.
5430         * cppmacro.c (_cpp_warn_if_unused_macro): New.
5431         (enter_macro_context): Mark macro used.
5432         (_cpp_create_definition): Mark macro unused; warn if unused
5433         when redefined.
5434         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5435         Mark macros used.
5436         * doc/cppopts.texi: Update.
5437
5438 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5439
5440         * dwarf2out.c (SECTION_ASM_OP,
5441         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5442         * system.h (SECTION_ASM_OP): Poison.
5443         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
5444         * config/alpha/alpha-interix.h, config/mips/linux.h
5445         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5446         * config/mmix/mmix-protos.h, config/mmix/mmix.c
5447         (mmix_asm_output_define_label_difference_symbol): Remove.
5448         * config/mmix/mmix.h
5449         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5450         * doc/tm.texi: Remove documentation.
5451
5452 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5453
5454         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
5455         (constrain_operands): Likewise.
5456         * regclass.c (record_reg_classes): Likewise.
5457         * reload.c (find_reloads): Likewise.
5458         * doc/md.texi: Likewise.
5459
5460         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
5461         * simplify-rtx.c (simplify_subreg): When converting to a non-int
5462         mode, try to convert to an integer mode of matching size first.
5463
5464         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
5465         from individual subregs, check that each subreg has been generated
5466         sucessfully.
5467
5468 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5469
5470         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
5471         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
5472         FOR_EACH_BB_IN_SBITMAP): Remove.
5473         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
5474         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
5475         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
5476         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
5477         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
5478         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
5479
5480 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5481
5482         * pretty-print.h: New file.
5483
5484 2002-07-23      Paul Koning     <pkoning@equallogic.com>
5485
5486         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
5487         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5488         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
5489         (TARGET_G_FLOAT): Default to 0 if not defined.
5490         (ieeetoe): New, common routine to convert target format floats
5491         to internal form.
5492         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
5493         vs. others.
5494         (e113toe): Change to use ieeetoe.
5495
5496 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5497
5498         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
5499         IBM.
5500         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
5501         (e64toe): Remove special cases for DEC and IBM. Remove support for
5502         ARM_EXTENDED_IEEE_FORMAT.
5503         (e24toe): Remove special cases for DEC.
5504         (significand_size): Simplify. Indent.
5505         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
5506         (etoieee, toieee): New.
5507         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
5508         etoieee and toieee for IEEE arithmetic.
5509
5510 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5511
5512         * doc/extend.texi: Say ISO C90, not ISO C89.
5513         * doc/invoke.texi: Likewise.
5514         * doc/standards.texi: Likewise.
5515
5516 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
5517
5518         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
5519         Fix permutation of conversion and plus/mult.
5520         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
5521         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
5522         (expand_builtin_strncpy) Ditto.
5523         (expand_builtin_memset) Ditto.
5524
5525 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5526
5527         Fix PR/7363:
5528         * c-common.c (c_sizeof_or_alignof_type): New function.
5529         (c_alignof): Remove definition.
5530         * c-common.h (c_sizeof, c_alignof): Define as macros.
5531         (c_sizeof_or_alignof_type): Declare.
5532         (my_friendly_assert): Moved from cp/cp-tree.h
5533         * c-typeck.c (c_sizeof): Remove definition.
5534
5535 2002-07-23  Jan Hubicka  <jh@suse.cz>
5536
5537         * gcse.c (try_replace_reg): Use num_changes_pending.
5538         * recog.c (num_changes_pending): New function.
5539         (validate_replace_src): Use validate_repalce_src_group.
5540         (validate_replace_src_group): New.
5541         * recog.h (validate_repalce_src_group): New.
5542         (num_changes_pending): Likewise.
5543
5544 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
5545
5546         * calls.c (emit_library_call_value_1): If
5547         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
5548         libcall, const call nor pure call.
5549
5550 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5551
5552         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
5553
5554 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5555
5556         * vmsdbgout.c (SECTION_ASM_OP): Remove.
5557
5558 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5559
5560         * config/i386/i386.c (AT_BP): Remove.
5561
5562 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5563
5564         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
5565         Default definition.
5566         * gcse.c: Don't define obstack_chunk_free.
5567         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
5568         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
5569         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
5570         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
5571         Don't define obstack macros.
5572
5573 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5574
5575         PR target/6744
5576         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
5577         ASM_OPERANDS instructions.
5578
5579 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5580
5581         PR target/7361
5582         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
5583         constant addresses only on 68HC12.
5584
5585 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5586
5587         * cppfiles.c (stack_include_file): Correct test of whether
5588         a dependency should be output.
5589
5590 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
5591
5592         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
5593
5594 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
5595
5596         * arm.md (movqi): If optimizing and we can create pseudos, use
5597         a ZERO_EXTEND to load from memory, then copy the result into the
5598         target.
5599         (movhi): Likewise, but only for ARMv4.
5600
5601 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5602
5603         * ssa-ccp.c (PHI_PARMS): Remove.
5604
5605 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
5606
5607         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
5608         on big-endian targets.
5609
5610 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5611
5612         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
5613         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
5614         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
5615         New formatting macros.
5616
5617         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
5618
5619 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
5620
5621         * rtlanal.c (subreg_regno_offset): Return correct offset for
5622         big endian paradoxical subregs.
5623
5624         * optabs.c (expand_vector_unop): Don't expand using sub_optab
5625         if we got the wrong mode.
5626
5627         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
5628         * genrecog.c (write_switch, write_cond): Use it.
5629         * genemit.c (gen_exp): Likewise.
5630
5631 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5632
5633         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
5634
5635 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5636
5637         * c-decl.c (build_compound_literal): Defer compound literal decls
5638         until until file end to emit them only if they are actually used.
5639
5640 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5641
5642         * ra-build.c (check_conflict_numbers): Hide unused function.
5643         (livethrough_conflicts_bb): Avoid automatic aggregate
5644         initialization.
5645         (parts_to_webs_1): Avoid `U' integer constant modifier.
5646         (conflicts_between_webs): Wrap a variable in the macro controlling
5647         its usage.
5648         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
5649         (dump_igraph, dump_graph_cost): Avoid string concatenation
5650         (dump_static_insn_cost): Avoid automatic aggregate
5651         initialization.
5652         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
5653         initialization.
5654         (dump_cost): Avoid string concatenation
5655
5656 2002-07-21  Richard Henderson  <rth@redhat.com>
5657
5658         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
5659         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
5660
5661 2002-07-21  Richard Henderson  <rth@redhat.com>
5662
5663         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
5664         that are not unrolled completely.
5665
5666 2002-07-21  Richard Henderson  <rth@redhat.com>
5667
5668         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
5669         * loop.c (strength_reduce): Update.
5670         * toplev.c (rest_of_compilation): Do unrolling in the first
5671         loop pass, not the second.
5672
5673 2002-07-21  Richard Henderson  <rth@redhat.com>
5674
5675         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
5676         when flag_argument_noalias == 2.
5677         * alias.c (nonoverlapping_memrefs_p): Handle that.
5678         * print-rtl.c (print_mem_expr): Likewise.
5679
5680 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
5681
5682         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
5683         instead of __negdi2 directly.
5684
5685 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5686
5687         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
5688         * function.c (SYMBOL__MAIN): Remove definition.
5689         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
5690         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
5691         * profile.c (GCOV_INDEX_TO_BB): Remove.
5692         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
5693         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
5694
5695 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5696
5697         * c-lex.c (GET_ENVIRONMENT): Remove.
5698         * collect2.c (GET_ENV_PATH_LIST): Remove.
5699         (prefix_from_env): Use GET_ENVIRONMENT.
5700         * cppinit.c (GET_ENV_PATH_LIST): Remove.
5701         (init_standard_includes): Use GET_ENVIRONMENT.
5702         * defaults.h (GET_ENVIRONMENT): Define here if not already.
5703         * gcc.c (GET_ENV_PATH_LIST): Remove.
5704         (make_relative_prefix, process_command): Update.
5705         * protoize.c (GET_ENV_PATH_LIST): Remove.
5706         (do_processing): Update.
5707
5708 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
5709
5710         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
5711         (grokdeclarator): Likewise.
5712         * c-format.c (C_STD_NAME): Likewise.
5713         * c-lex.c (interpret_integer): Likewise.
5714         * c-typeck.c (build_array_ref): Likewise.
5715         * cpplex.c (_cpp_lex_direct): Likewise.
5716         * toplev.c (documented_lang_options): Likewise.
5717
5718 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5719
5720         * c-format.c (T99_I, T99_UI): Remove.
5721
5722 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5723
5724         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
5725
5726 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5727
5728         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
5729         do_local_cprop.
5730
5731 2002-07-21  Andreas Jaeger  <aj@suse.de>
5732
5733         * reload1.c (fixup_abnormal_edges): Remove unused variable.
5734
5735 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
5736
5737         Improvements for the ifcvt pass from Michael Meissner, with patches
5738         by Richard Sandiford <rsandifo@redhat.com>
5739         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
5740         * ifcvt.c (cond_exec_changed_p): New static variable.
5741         (last_active_insn): New function, renamed from last_active_insn_p
5742         and changed to return the last active insn in a basic block. All
5743         callers updated.
5744         (block_fallthru): New function.
5745         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
5746         IFCVT_MODIFY_INSN.  All callers updated.
5747         Return false if START or END are NULL.
5748         Handle case where we're processing an insn that is already
5749         conditional.
5750
5751         (noce_process_if_block): CE_INFO argument rather than
5752         multiple args containing the involved basic blocks.  All callers
5753         changed.
5754         (process_if_block, merge_if_block, find_if_block,
5755         cond_exec_process_if_block): Likewise.
5756
5757         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
5758         changed.
5759         Use new function last_active_insn to simplify some code.
5760         New code to handle multiple tests.
5761         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
5762         cond_exec_changed_p to TRUE.
5763
5764         (process_if_block): New code to handle multiple tests.
5765         (merge_if_block): Likewise.
5766         (find_if_header): New arg PASS.  Changed to return the currently
5767         processed basic block or NULL instead of true/false. All callers
5768         changed.
5769         Call IFCVT_INIT_EXTRA_FIELDS.
5770         (block_jumps_and_fallthru_p): New function.
5771         (find_if_block): Discover opportunities to convert multiple tests.
5772         Add additional debugging output.
5773         Update the ce_info structure before returning.
5774
5775         (if_convert): Run multiple passes of if-conversion.
5776         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
5777         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
5778         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
5779         these macros.
5780
5781 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
5782
5783         * gcse.c: Include cselib.h
5784         (constptop_register): Break out from ...
5785         (cprop_insn): ... here; kill basic_block argument.
5786         (do_local_cprop, local_cprop_pass): New functions.
5787         (one_cprop_pass): Call local_cprop_pass.
5788
5789 2002-07-20  Roger Sayle  <roger@eyesopen.com>
5790
5791         * simplify-rtx.c (simplify_relational_operation): Optimize
5792         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
5793
5794 2002-07-20  Michae Matz  <matz@suse.de>
5795
5796         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
5797
5798 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
5799
5800         * cppexp.c (struct op): Add token pointer.
5801         (check_promotion, CHECK_PROMOTION): New.
5802         (optab): Update.
5803         (_cpp_parse_expr): Update, use token pointer of struct op.
5804         (reduce): Warn about change of sign owing to promotion.
5805         * cppinit.c (cpp_handle_option): New warning if -Wall.
5806         * cpplib.h (struct cpp_options): New member.
5807
5808 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
5809
5810         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
5811         fpu list.  Separate Power4 compare and delayed_compare.  Correct
5812         Power4 fpcompare.
5813         (fix_truncdfsi2_internal): Restore FPR preference.
5814         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
5815         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
5816
5817 2002-07-19  Momchil Velikov <velco@fadata.bg>
5818
5819         * reload1.c (reload_as_needed): Duplicate oldpat.
5820
5821 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
5822
5823         PR optimization/7130
5824         * loop.h (struct loop_info): Add "preconditioned".
5825         * unroll.c (unroll_loop): Set it.
5826         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
5827
5828 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
5829
5830         * rtl.def (CODE_LABEL): Remove slot 8.
5831         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
5832         (LABEL_ALTERNATE_NAME): Delete.
5833         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
5834         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5835
5836         * final.c (output_alternate_entry_point): New.
5837         (final_scan_insn): Use it instead of
5838         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
5839         of a case label being an alternate entry point.
5840
5841         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
5842         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
5843         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
5844         (field deleted).
5845         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
5846
5847         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
5848         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
5849         * doc/tm.texi: Delete documentation of
5850         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5851
5852 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5853
5854         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
5855         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
5856         (LINK_SPEC): Define.
5857         (STARTFILE_SPEC): Define.
5858         (ENDFILE_SPEC): Define.
5859
5860         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
5861         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
5862
5863         * config/mips/iris6-o32-gas.h: New file.
5864         * config.gcc (mips-sgi-irix6*o32): Use it.
5865
5866         * config/mips/t-iris5-gas: New file.
5867         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5868
5869 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
5870
5871         * cppexp.c (ALWAYS_EVAL): Remove.
5872         (optab, reduce): Always evaluate.
5873         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
5874         only if not skipping evaluation.
5875
5876 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5877
5878         * config/avr/avr.c (debug_hard_reg_set): Remove.
5879
5880 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
5881
5882         * gcc.c (cpp_options): Include "%1" (cc1_spec).
5883
5884 2002-07-19  Richard Henderson  <rth@redhat.com>
5885
5886         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
5887
5888 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
5889
5890         * prefix.c (update_path): Don't zap single `.' path components
5891         unless followed by another `.' and fix typo last patch.
5892
5893 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
5894
5895         * cppexp.c (cpp_num_mul): Remove unused parameter.
5896         (UNARY, BINARY, OTHER, binary_handler): Remove.
5897         (ALWAYS_EVAL): New.
5898         (optab): Update.
5899         (reduce): Refactor to a large switch, don't use a function
5900         pointer.
5901
5902 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
5903
5904         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
5905
5906 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5907
5908         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
5909         (sh_expand_binop_v2sf): Likewise.
5910         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
5911         (int_gpr_dest, trunc_hi_operand): New functions.
5912         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
5913         trunc_hi_operand.
5914         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
5915         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
5916         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
5917         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
5918         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
5919         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
5920         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
5921         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
5922         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
5923         (movsf_ie+1): Likewise.
5924         (loaddi_trunc): Use int_gpr_dest predicate.
5925         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
5926         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
5927         (casesi_worker_0+[12], casesi_worker): Likewise.
5928         (shcompact_preserve_incoming_args): Likewise.
5929         (mov_nop): Use any_register_operand predicate.
5930         (mperm_w0): Use trunc_hi_operand predicate.
5931
5932 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5933
5934         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
5935         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
5936         numbering.
5937
5938 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5939
5940         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
5941
5942 2002-07-18  Richard Henderson  <rth@redhat.com>
5943
5944         PR optimization/7147
5945         * ifcvt.c (noce_get_condition): Make certain that the condition
5946         is valid at JUMP.
5947
5948 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
5949
5950         * sh.c (barrier_align, push): Shut up compiler warnings.
5951         (initial_elimination_offset,sh_media_init_builtins): Likewise.
5952         (reg_no_subreg_operand): Delete.
5953
5954 2002-07-17  Bo Thorsen  <bo@suse.de>
5955
5956         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
5957         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
5958         (STARTFILE_SPEC): Remove hardcoded library paths.
5959         (ENDFILE_SPEC): Likewise.
5960
5961 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
5962
5963         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
5964
5965         * gcse.c (try_replace_reg): Do not return false positives.
5966
5967 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5968
5969         * prefix.c: (update_path): Strip ".." components when prior dir
5970         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
5971
5972         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
5973         (ASM_OUTPUT_REG_POP): Likewise.
5974
5975 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5976
5977         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
5978         adjustments to first_reg for profiling case.
5979         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
5980         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
5981         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
5982         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
5983         (ASM_OUTPUT_REG_POP): Define.
5984         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
5985         (ASM_OUTPUT_REG_POP): Undef.
5986
5987 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5988
5989         * cpplib.c (do_sccs): Handle #sccs on all systems.
5990         * system.h (SCCS_DIRECTIVE): Poison.
5991         * config/darwin.h, config/freebsd.h, config/netbsd.h,
5992         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
5993         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
5994         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
5995         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
5996         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
5997         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
5998         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
5999         Remove all references to SCCS_DIRECTIVE.
6000         * doc/cpp.texi, doc/tm.texi: Update.
6001
6002 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
6003
6004         * regrename.c (maybe_mode_change): New function.
6005         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
6006
6007 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
6008
6009         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
6010         suppress addition when either ct or cf are zero.
6011
6012 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
6013             Glen Nakamura <glen@imodulo.com>
6014
6015         PR optimization/6713
6016         * loop.c (loop_givs_rescan): Explicitly delete the insn that
6017         sets a non-replaceable giv after issuing the new one.
6018
6019 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
6020
6021         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
6022         eval_token): Clarify and correct use of "bool" variables.
6023         * cpplib.h (struct cpp_options): Similarly.
6024         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
6025         * cpptrad.c (recursive_macro): Similarly.
6026
6027 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
6028
6029         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
6030         SHmedia code.
6031
6032         * sh.md (cmpgtudi_media): Remove spurious @.
6033
6034         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
6035         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
6036
6037         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
6038         * sh-protos.h (sh_initialize_trampoline): Declare.
6039         * sh.c (sh_initialize_trampoline): New function.
6040         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
6041         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
6042         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
6043         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
6044         * sh.md (initialize_trampoline, double_shori): New patterns.
6045         (initialize_trampoline_compact): Likewise.
6046         (shmedia32_initialize_trampoline_big): Remove.
6047         (shmedia32_initialize_trampoline_little): Likewise.
6048
6049         * sh-protos.h (binary_float_operator): Remove declaration.
6050         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
6051         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
6052         (unary_float_operator, sh_expand_unop_v2sf): New functions.
6053         (sh_expand_binop_v2sf): Likewise.
6054         (zero_vec_operand): Delete.
6055         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
6056         all non-shared ones.
6057         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
6058         Enable nsb and byterev.
6059         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
6060         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
6061         in general regs.
6062         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
6063         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
6064         immediate operands.
6065         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
6066         Add DF_HI_REGS.
6067         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
6068         lowpart fp regs - only for big endian for now.
6069         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
6070         when FPU is in use.
6071         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
6072         (LOAD_EXTEND_OP): NIL for SImode.
6073         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
6074         general and fp registers is 4.
6075         PREDICATE_CODES: Amend binary_float_operator entry.
6076         Remove zero_vec_operand.  Add unary_float_operator.
6077         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
6078         subreg SET_DEST.
6079         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
6080         (truncdiqi2): Do sign extension.
6081         (movsi_media, movdi_media): Allow to use r63 to an fp register.
6082         (movdf_media, movsf_media): Likewise.
6083         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
6084         Collapse to one define_insn_and_split.  Allow immediate sources.
6085         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
6086         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
6087         (movv4sf): Allow immediate sources.
6088         (movsf_media_nofpu+1): Don't split moves to FP registers.
6089         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
6090         (movv8qi_i+3): Check against CONST0_RTX.
6091         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
6092         for input and output operands.  Fix argument 3 to gen_mextr_rl.
6093         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
6094         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
6095         (mshf0_w, fipr, ftrv): Likewise.
6096         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
6097
6098 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6099
6100         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
6101         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
6102         * arm.c: Similarly.
6103
6104 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
6105
6106         * config/mips/mips-protos.h (mips_sign_extend): Declare.
6107         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
6108         (TARGET_SWITCHES): Remove debugh.
6109         (ISA_HAS_TRUNC_W): New macro.
6110         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
6111         (PREDICATE_CODES): Remove se_nonimmediate_operand.
6112         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
6113         any SImode move_operand.
6114         (se_nonimmediate_operand): Remove.
6115         (mips_sign_extend): New.
6116         (mips_move_2words): Use it for sign-extended source operands.
6117         (override_options): Allow integers to be put into single FPRs.
6118         (mips_secondary_reload_class): Handle integers in float registers.
6119         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
6120         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
6121         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
6122         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
6123         (fix_truncdfdi2): Provide only a single alternative, in which the
6124         integer is in a float register.  Depend on TARGET_FLOAT64 rather
6125         than TARGET_64BIT.
6126         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
6127         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
6128         (movdi_internal2): Don't allow the source operand to be sign-extended.
6129         Add alternatives for float registers.
6130         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
6131         allows sign-extension.
6132         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
6133         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
6134         float registers.  Remove TARGET_DEBUG_H_MODE test.
6135         (movhi_internal1): Rename to movhi_internal.  Don't check
6136         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
6137         (movqi_internal1): Rename to movqi_internal and remove
6138         TARGET_DEBUG_H_MODE dependency.
6139         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
6140
6141 2002-07-16  Jim Wilson  <wilson@redhat.com>
6142
6143         * toplev.c (lang_dependent_init): Create function context for
6144         init_expr_once.
6145
6146 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
6147
6148         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
6149         --gc-sections if -r.
6150         * config/cris/cris.h: Ditto.
6151
6152 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
6153
6154         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
6155         the comparison directly gives a mask suppress addition when cf is
6156         zero by complementing the mask.
6157
6158 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6159
6160         * Makefile.in: Delete references to enquire.
6161         * enquire.c: Move to contrib.
6162
6163 2002-07-16  Stan Shebs  <shebs@apple.com>
6164
6165         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
6166         config/rs6000/darwin.h.
6167         (ASM_OUTPUT_SKIP): Ditto.
6168         (TEXT_SECTION_ASM_OP): Ditto.
6169         (DATA_SECTION_ASM_OP): Ditto.
6170         (ASM_APP_ON): Define.
6171         (ASM_APP_OFF): Define.
6172         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
6173         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
6174
6175         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
6176         (machopic_function_base_name): Declare result to be const.
6177         (machopic_non_lazy_ptr_name): Ditto.
6178         (machopic_stub_name): Ditto.
6179         * config/darwin-protos.h: Ditto for the prototypes.
6180
6181 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6182
6183         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
6184
6185 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
6186
6187         * i386.md (prefetch): Fix for 64bit mode.
6188         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6189
6190 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
6191
6192         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
6193         * i386.c (x86_machine_dependent_reorg): New function.
6194         * i386-protos.h (x86_machine_dependent_reorg): Declare.
6195
6196 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
6197
6198         * builtins.c (std_expand_builtin_va_start): Remove unused
6199         first argument.
6200         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6201         std_expand_builtin_va_start with just two arguments.
6202         * expr.h: Update prototypes.
6203
6204         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6205         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6206         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6207         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6208         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6209         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6210         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6211         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6212         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
6213         argument from all implementations of EXPAND_BUILTIN_VA_START
6214         and all uses of std_expand_builtin_va_start.
6215
6216 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6217
6218         * regrename.c (copy_value): Don't record high part copies.
6219
6220 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6221
6222         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6223         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6224         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6225
6226 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6227
6228         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6229
6230         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6231         into addsi3 using register class "x" and "y".
6232
6233         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
6234         "earlyclobber" constraint modifier for some alternative.
6235
6236         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
6237         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
6238         unordered.
6239         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
6240
6241         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
6242         (TARGET_SWITCHES): Add -mieee-compare option.
6243         (OVERRIDE_OPTIONS): 32332 is a subset of
6244         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
6245         (TARGET_SWITCHES): Fix description of bitfield option.
6246         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
6247         -mieee-compare option. Remove 32332 flag.
6248
6249 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6250
6251         * explow.c (convert_memory_address): Remove special handling
6252         when POINTERS_EXTEND_UNSIGNED < 0.
6253         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
6254         (movedi_symbolic): Fix typo.
6255         (load_fptr): Remove mode restriction so it works for SI and DI.
6256         (load_fptr_internal1): Ditto.
6257         (load_gprel): Ditto.
6258         (load_symptr_internal1): Ditto.
6259         (call_pic): Ditto.
6260         * config/ia64.c (call_operand): Modify mode check.
6261         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
6262         (ia64_expand_move): Ditto.
6263         (ia64_assemble_integer): Handle SImode function pointers.
6264         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
6265         (ia64_expand_op_and_fetch): Ditto.
6266         (ia64_expand_compare_and_swap): Ditto.
6267         (ia64_expand_lock_test_and_set): Ditto.
6268         (ia64_expand_lock_release): Ditto.
6269
6270 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6271
6272         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
6273
6274 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6275             Richard Earnshaw  <rearnsha@arm.com>
6276
6277         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
6278         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
6279
6280 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
6281
6282         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
6283         understands to be a memory clobber.
6284         * arm.c (arm_expand_prologue): Use it.
6285
6286 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
6287
6288         * ra-rewrite.c: #include reload.h, insn-config.h
6289         * ra-build.c: #include reload.h
6290         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
6291         depend on reload.h, insn-config.h.
6292
6293 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
6294
6295         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
6296         the same size as a word.
6297
6298         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
6299         BYTES_BIG_ENDIAN into account.
6300
6301 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
6302
6303         * i386.md (prefetch): Fix for 64bit mode.
6304         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6305
6306         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
6307
6308 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6309
6310         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
6311
6312 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
6313
6314         * ginclude/varargs.h: Replace with stub which issues #error.
6315         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
6316         __builtin_va_start.
6317
6318         * builtins.def (BUILT_IN_VARARGS_START): Delete.
6319         (BUILT_IN_VA_START): New.
6320         * builtins.c (expand_builtin_va_start): Eliminate first
6321         argument and code to implement pre-ISO varargs.
6322         (std_expand_builtin_va_start): Ignore first argument; it is
6323         always 1.
6324         (expand_builtin): Handle BUILT_IN_VA_START and
6325         BUILT_IN_STDARG_START identically.  Delete
6326         BUILT_IN_VARARGS_START case.
6327
6328         * function.c (assign_parms): Delete hide_last_arg and all
6329         its uses.
6330         (mark_varargs): Delete function.
6331         * function.h (struct function): Delete 'varargs' bit.
6332         (current_function_varargs): Delete macro.
6333         * tree.h: Don't declare mark_varargs.
6334
6335         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
6336         (c_expand_body): Don't call mark_varargs.
6337         * c-objc-common.c: Handle BUILT_IN_VA_START and
6338         BUILT_IN_STDARG_START identically.  Delete
6339         BUILT_IN_VARARGS_START case.
6340         * c-tree.h: Don't declare c_mark_varargs.
6341         * c-parse.in: Remove grammar rules for '&...' (which has been
6342         commented out since before 2.7.2) and for '...' in K+R
6343         argument declarations.
6344
6345         * builtins.c, function.c, integrate.c, sibcall.c,
6346         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
6347         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
6348         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
6349         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
6350         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6351         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
6352         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
6353         config/stormy16/stormy16.c: Delete all references to
6354         current_function_varargs, and code predicated on that flag.
6355
6356         * config/alpha/alpha.c (alpha_va_start),
6357         config/arc/arc.c (arc_va_start),
6358         config/i386/i386.c (ix86_va_start),
6359         config/mips/mips.c (mips_va_start),
6360         config/mn10300/mn10300.c (mn10300_va_start),
6361         config/rs6000/rs6000.c (rs6000_va_start),
6362         config/s390/s390.c (s390_va_start),
6363         config/sh/sh.c (sh_va_start),
6364         Ignore first argument; it is always 1.
6365
6366         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
6367         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
6368         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
6369         Delete m68hc11_va_start.
6370         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
6371         No need to define EXPAND_BUILTIN_VA_START.
6372
6373         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
6374         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
6375
6376 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
6377
6378         PR optimization/7153
6379         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
6380         dies in more than one insn.
6381
6382 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
6383
6384         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6385
6386 2002-07-15  Michael Matz  <matz@suse.de>,
6387             Daniel Berlin  <dberlin@dberlin.org>,
6388             Denis Chertykov  <denisc@overta.ru>
6389
6390         Add a new register allocator.
6391
6392         * ra.c: New file.
6393         * ra.h: New file.
6394         * ra-build.c: New file.
6395         * ra-colorize.c: New file.
6396         * ra-debug.c: New file.
6397         * ra-rewrite.c: New file.
6398
6399         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
6400         (ra-rewrite.o): New .o files for libbackend.a.
6401         (GTFILES): Add basic-block.h.
6402
6403         * toplev.c (flag_new_regalloc): New.
6404         (f_options): New option "new-ra".
6405         (rest_of_compilation): Call initialize_uninitialized_subregs()
6406         only for the old allocator.  If flag_new_regalloc is set, call
6407         new allocator, instead of local_alloc(), global_alloc() and
6408         friends.
6409
6410         * doc/invoke.texi: Document -fnew-ra.
6411         * basic-block.h (FOR_ALL_BB): New.
6412         * config/rs6000/rs6000.c (print_operand): Write small constants
6413         as @l+80.
6414
6415         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6416         (df_reg_table_realloc): Make size at least as large as max_reg_num().
6417         (df_insn_table_realloc): Size argument now is absolute, not relative.
6418         Changed all callers.
6419
6420         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6421         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6422
6423         2002-06-20  Michael Matz  <matz@suse.de>
6424
6425         * df.h (struct ref.id): Make unsigned.
6426         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6427
6428         2002-06-13  Michael Matz  <matz@suse.de>
6429
6430         * df.h (DF_REF_MODE_CHANGE): New flag.
6431         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6432         involving subregs with invalid mode changes, when
6433         CLASS_CANNOT_CHANGE_MODE is defined.
6434
6435         2002-05-07  Michael Matz  <matz@suse.de>
6436
6437         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
6438
6439         2002-05-03  Michael Matz  <matz@suse.de>
6440
6441         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
6442
6443         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
6444
6445         * regclass.c (regclass): Work with all regs which have sets or
6446         refs.
6447         (reg_scan_mark_refs): Count regs inside (clobber ...).
6448
6449         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
6450
6451         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
6452         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
6453         add new refs.
6454         (df_bb_refs_update): Don't clear insns_modified here, ...
6455         (df_analyse): ... but here.
6456
6457         * sbitmap.c (dump_sbitmap_file): New.
6458         (debug_sbitmap): Use it.
6459
6460         * sbitmap.h (dump_sbitmap_file): Add prototype.
6461
6462         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
6463
6464         * df.c (df_insn_modify): Grow the UID table if necessary, rather
6465         than assume all emits go through df_insns_modify.
6466
6467         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
6468
6469         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
6470         increase REG_N_REFS (like flow does), so that regclass doesn't
6471         think a reg is useless, and thus, not calculate a class, when it
6472         really should have.
6473
6474         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
6475
6476         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
6477         dataflow analysis.
6478
6479 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
6480
6481         PR middle-end/7245
6482         * config/i386/i386.c (const_int_1_31_operand): New.
6483         * config/i386/i386.h (PREDICATE_CODES): Add it.
6484         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
6485         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
6486         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
6487
6488 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
6489
6490         PR target/7282
6491         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
6492         (floatunssidf2): Likewise.
6493         (floatsidf_ppc64): New insn_and_split.
6494         (floatunssidf_ppc64): Likewise.
6495
6496 2002-07-14  Andreas Jaeger  <aj@suse.de>
6497
6498         * config.gcc (sh64): Remove unused
6499         target_requires_64bit_host_wide_int.
6500
6501 2002-07-12  Roger Sayle  <roger@eyesopen.com>
6502
6503         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
6504         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
6505         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
6506         whether clear_by_pieces should be used to clear storage.
6507         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
6508
6509         * doc/tm.texi: Document these two new target macros.
6510
6511 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
6512
6513         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
6514         the scratch register.
6515         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
6516         of it, forbid reload to use it.
6517
6518 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6519
6520         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
6521         usage on 64-bit hosts, return value was truncated to 32 bits.
6522
6523 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
6524
6525         * simplify-rtx.c (simplify_subreg): Handle floating point
6526         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
6527         the element mode is requested, compute a subreg with an
6528         integer mode of the same size as the element mode first.
6529
6530 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6531
6532         * combine.c (try_combine): When converting a paradoxical subreg
6533         to an extension, take LOAD_EXTEND_OP into account.
6534
6535 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6536
6537         * config.gcc (mips-sgi-irix6*o32): New configuration.
6538
6539         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
6540         configurations.
6541         * configure: Regenerate.
6542
6543         * config/mips/iris6-o32-as.h: New file.
6544         * config/mips/iris6-o32.h: New file.
6545
6546         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
6547         (NM_FLAGS): Define.
6548         (HAVE_AS_SHF_MERGE): Undefine.
6549
6550         * config/mips/t-iris5-as: New file.
6551         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6552
6553         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
6554         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
6555         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
6556         dp-bit.c, fp-bit.c): Move ...
6557         * config/mips/t-iris5-6: ... here.
6558         New file, shared by IRIX 5 and IRIX 6.
6559         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
6560         mips-sgi-irix5*): Use it.
6561
6562         * config/mips/iris6.h: Remove duplicate comment.
6563
6564         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
6565         !TARGET_IRIX6]: Define.
6566         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
6567
6568         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
6569
6570 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6571
6572         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
6573         and delete code to force constant to register.
6574         * pa-protos.h (adddi3_operand): Add prototype.
6575         * pa.c (adddi3_operand): New function.
6576
6577 2002-07-11  Roger Sayle  <roger@eyesopen.com>
6578
6579         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
6580         non-ANSI builtin functions.
6581
6582 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
6583
6584         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
6585         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
6586         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
6587         (gen_const_vector_0): Use it.
6588
6589 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6590
6591         * pa.md (adddi3): For 32-bit targets, force constants to a register
6592         if they don't fit in an 11-bit immediate.  Change insn predicate to
6593         arith11_operand.  Remove comment.
6594         * pa.c (cint_ok_for_move): Fix comment.
6595         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
6596         targets.
6597
6598 2002-07-11  Tim Josling  <tej@melbpc.org.au>
6599
6600         Remove front end hard coding from gengtype.c.
6601
6602         * Makefile.in
6603         (STAGESTUFF): add gtyp-gen.h
6604         (GTFILES): Remove front end specific files.
6605         (GTFILES_FILES_LANGS): New, from configure..
6606         (GTFILES_FILES_FILES): Likewise.
6607         (GTFILES_LANG_DIR_NAMES): Likewise.
6608         (GTFILES_SRCDIR): Likewise.
6609         (gtyp-gen.h): Build from configure information.
6610         (s-gtype): Remove command line parameters from gengtype.
6611         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
6612         (mostlyclean): Delete files generated by and for gengtype.
6613
6614         * c-config-lang.in: New file.
6615
6616         * configure.in (all_gtfiles_files_langs): New. Accumulate files
6617         for each language.
6618         (all_gtfiles_files_files): New. Accumulate language for each file
6619         accumulated.
6620         (gtfiles): Pick up value for C.
6621         (srcdir): AC-SUBST this variable.
6622         (all_gtfiles_files_langs): AC-SUBST this variable.
6623         (all_gtfiles_files_files): AC-SUBST this variable.
6624
6625         * configure: Regenerate.
6626
6627         * gengtype-lex.l (parse_file): Make parameter const.
6628
6629         * gengtype.c (toplevel): include gtyp-gen.h.
6630         (BASE_FILE_<language> unnamed enum): Delete.
6631         (lang_names): Delete (replaced by gtyp-gen.h)
6632         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
6633         all references.
6634         (NUM_GT_FILES): New.
6635         (NUM_LANG_FILES): New.
6636         (srcdir_len): New.
6637         (NUM_BASE_FILES): Change calculation.
6638         (open_base_files): Change prototype to avoid warning.
6639         (startswith): Delete.
6640         (get_file_basename): Iterate through generated language list not
6641         hard coded list.
6642         (get_base_file_bitmap): Use generated list of files and languages.
6643         (close_output_files): Add prototype to rmove warning.
6644         (main): Iterate through list of generated files from gtyp-gen.h
6645         rather than command line paramaters.  Ignore duplicated file
6646         names.
6647
6648         * gengtype.h (parse_file): Amend prototype for const parameter.
6649
6650         * doc/sourcebuild.texi: Document gtfiles variable.
6651
6652         * doc/gty.texi: Document changes to gtfiles variable for front
6653         ends.
6654
6655         * objc/config-lang.in (gtfiles): Add files needed for objc front
6656         end.
6657
6658 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6659
6660         PR c/2454
6661         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
6662         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
6663
6664 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6665             Zack Weinberg <zack@codesourcery.com>
6666
6667         * builtins.def: Make the argument types of abort and exit
6668         independent of the front-end.
6669
6670 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
6671
6672         * config/rs6000/linux64.h (ASM_SPEC): Define.
6673
6674 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
6675
6676         * config/rs6000/rs6000.c (emit_frame_save): New.
6677         (rs6000_frame_related): Replace reg2 before reg.
6678         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
6679         and eh_return registers.
6680
6681 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6682
6683         Revert all patches for optimization of Complex .op. Real.
6684         * complex_part_zero_p: Remove
6685         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
6686         with x.
6687         * expand_cmplxdiv_wide: Ditto.
6688         * expand_binop: Ditto.
6689
6690 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6691
6692         * config/avr/avr.md: Fix two 0x80000000 constants to make them
6693         negative also on 64-bit hosts.
6694
6695         Default to -fno-reorder-blocks when optimizing for size.
6696         * config/avr/avr-protos.h (avr_optimization_options): Declare.
6697         * config/avr/avr.c (avr_optimization_options): New function.
6698         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
6699
6700         Optimize returning from simple functions.
6701         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
6702         * config/avr/avr.c (avr_simple_epilogue): New function.
6703         * config/avr/avr.md (return): New insn.
6704
6705 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
6706
6707         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
6708         HAS_INIT_SECTION to protection.
6709
6710 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
6711
6712         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
6713         deprecated.
6714
6715 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
6716
6717         * combine.c (gen_lowpart_for_combine): Handle vector modes.
6718         Supply non-VOID mode to simplify_gen_subreg.
6719
6720 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
6721
6722         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
6723
6724 2002-07-10  Jeffrey A Law  <law@redhat.com>
6725
6726         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
6727         as appropriate.
6728
6729         * mn10200.c (expand_epilogue): Fix test to determine which scratch
6730         register to use.
6731
6732 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
6733
6734         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
6735         Get mode from dest.
6736         If simplify_gen_subreg fails, try next equivalent.
6737
6738 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
6739
6740         * diagnostic.h: #include location.h
6741         (location_t): Move definition to..
6742         * location.h: ... here.  New file.
6743         * tree.h: #include location.h
6744         (DECL_SOURCE_LOCATION): New macro.
6745         (DECL_SOURCE_FILE): Use.
6746         (DECL_SOURCE_LINE): Likewise.
6747         (struct tree_decl): REplace filename and linenum with locus.
6748         * Makefile.in (TREE_H): add location.h
6749         (diagnostic.o): Depends on gt-location.h
6750         (gt-location.h): Depends on s-gtype
6751
6752 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
6753
6754         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
6755         TARGET_OS_CPP_BUILTINS.
6756         * config/rs6000/aix31.h: Likewise.
6757         * config/rs6000/aix41.h: Likewise.
6758         * config/rs6000/aix43.h: Likewise.
6759         * config/rs6000/aix51.h: Likewise.
6760         * config/rs6000/beos.h: Likewise.
6761         * config/rs6000/darwin.h: Likewise.
6762         * config/rs6000/eabi.h: Likewise.
6763         * config/rs6000/eabisim.h: Likewise.
6764         * config/rs6000/linux.h: Likewise.
6765         * config/rs6000/linux64.h: Likewise.
6766         * config/rs6000/lynx.h: Likewise.
6767         * config/rs6000/mach.h: Likewise.
6768         * config/rs6000/rtems.h: Likewise.
6769         * config/rs6000/sysv4.h: Likewise.
6770         * config/rs6000/vxppc.h: Likewise.
6771
6772 2002-07-09 Devang Patel <dpatel@apple.com>
6773         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
6774         Do not allow ObjC objects as a parameter type for Objective-C methods.
6775         My previous patch restricted  'struct' also.
6776
6777 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
6778
6779         * cpperror.c (cpp_error): Default to directive_line within
6780         directives here.
6781         * cppexp.c (cpp_interpret_integer): Only use traditional
6782         number semantics in directives.
6783         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
6784         (do_include_common): Similarly.
6785         * cpptrad.c (scan_out_logical_line): Implement accurate
6786         quoting of <> in #include.
6787         * doc/cpp.texi: Update.
6788
6789 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
6790                           J"orn Rennecke <joern.rennecke@superh.com>
6791
6792         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
6793         * sh.md (attribute issues): Replace with:
6794         (attribute pipe_model).  All users changed.
6795         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
6796         All users changed.
6797         (function units sh5issue, sh5fds): New.
6798         (attribute is_mac_media): New.
6799         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
6800         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
6801         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
6802         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
6803         (call_media, call_value_media, sibcall_media): Likewise.
6804         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
6805         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
6806         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
6807         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
6808         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
6809         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
6810         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
6811         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
6812         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
6813         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
6814         (truncdfsf2_media): Likewise.
6815         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
6816         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
6817
6818 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
6819
6820         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
6821         * sh.c (general_extend_operand, inqhi_operand): New functions.
6822         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
6823         alternatives using 'N' modifier.  Add type.
6824         (adddi3z_media): Likewise.  Enable generator function generation.
6825         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
6826         exact predicates / constraints.  Add type.
6827         (subsi3): Allow 0 for SHMEDIA.
6828         (udivsi3_i4_media): Use match_operand for input values
6829         rather than hard registers.
6830         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6831         unnecessarily through hard registers.  Keep copies of pseudo
6832         registers outside of the libcall sequence.
6833         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
6834         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
6835         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
6836         (extendhidi2, extendqidi2): Likewise.
6837         (andsi3_compact): Name.
6838         (andcdi3): Enable generator function generation.
6839         (zero_extendhisi2, zero_extendqisi2): Rename to
6840         (zero_extendhisi2_compact, zero_extendqisi2_compact).
6841         (extendhisi2, extendqisi2): Rename to
6842         (extendhisi2_compact, extendqisi2_compact).
6843         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
6844         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
6845         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
6846         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
6847         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
6848         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
6849         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
6850         (shmedia32_initialize_trampoline_big): Likewise.
6851         (shmedia32_initialize_trampoline_little): Likewise.
6852         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
6853         (negdi2): Remove spurious T clobber.
6854         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
6855         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
6856         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
6857         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
6858         (ic_invalidate_line_media): Write back data cache before invalidating
6859         instruction cache.  Add type.
6860         (movsf_media): Sign-extend when the destination is a general
6861         purpose register.  Add type.
6862         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
6863         (casesi_worker_0+1): Only increment ref count for proper label.
6864         (casesi_worker_0+2): Likewise.
6865
6866 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
6867
6868         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
6869
6870 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
6871
6872         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
6873         from Pmode to ptr_mode.
6874         (get_exception_pointer): Ditto.
6875         (connect_post_landing_pads): Ditto.
6876         (dw2_build_landing_pads): Ditto.
6877
6878 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
6879         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
6880         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
6881         (handle_pragma_redefine_extname): Change to use new function.
6882
6883 2002-07-08  Roger Sayle  <roger@eyesopen.com>
6884
6885         * combine.c (combine_simplify_rtx): Add an explicit cast
6886         to avoid signed/unsigned comparison warning.
6887         (simplify_if_then_else): Likewise.
6888         (extended_count): Likewise.
6889         (simplify_shift_const): Likewise.
6890         (simplify_comparison): Likewise.
6891
6892 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
6893
6894         * config/mips/mips.md: Add imadd type.  Update scheduler description
6895         to use imadd as well as imul.
6896         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
6897         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
6898         (*mul_sub_si): Likewise for first alternative.  Change second
6899         alternative from imul to multi.
6900
6901 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
6902
6903         * c-common.c (c_common_post_options): Update prototype;
6904         don't init backends if preprocessing only.
6905         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
6906         * langhooks.h (struct lang_hooks): Update post_options to
6907         return a boolean.
6908         * toplev.c (parse_options_and_default_flags, do_compile,
6909         lang_independent_init): Update prototypes.  Allow the
6910         front end to specify that there is no need to initialize
6911         the back end.
6912         (general_init): Move call to hex_init here...
6913         (toplev_main): ...from here.  Pass flag for back end init
6914         suppression.
6915
6916 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6917
6918         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
6919         (PREDICATE_CODES): Add entries for equality_comparison_operator,
6920         greater_comparison_operator and less_comparison_operator.
6921         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
6922         more operators.
6923         (equality_comparison_operator): New function.
6924         (greater_comparison_operator, less_comparison_operator): Likewise.
6925         * sh.md (beq_media_i): Disable generator function generation.
6926         Use match_operator to handle a whole class of comparisons.  Add
6927         modifier in output template to provide branch prediction.  Add type.
6928         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
6929         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
6930         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
6931         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
6932
6933 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
6934
6935         Emit MMIX function prologue and epilogue as rtl.
6936         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
6937         not unprototyped get_hard_reg_initial_val.
6938         ("call_value", "nonlocal_goto_receiver"): Ditto.
6939         ("return"): Make define_expand.  Move real insn to...
6940         ("*expanded_return"): New pattern.
6941         ("prologue", "epilogue"): New define_expands.
6942         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
6943         (struct machine_function): New member in_prologue.
6944         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
6945         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
6946         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
6947         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
6948         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
6949         (LOCAL_REGNO): Define.  Adjust comment.
6950         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
6951         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
6952         leaf_function_p.
6953         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
6954         the prologue.
6955         (mmix_target_asm_function_prologue): Make static.  Just mark that
6956         the prologue is being emitted.  Move guts to...
6957         (mmix_expand_prologue): New function.  Adjust for emitting
6958         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
6959         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
6960         \n.  Move guts to...
6961         (mmix_expand_epilogue): New function.  Adjust for emitting
6962         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
6963         (mmix_target_asm_function_end_prologue): Mark that the prologue
6964         has ended.
6965         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
6966         (mmix_conditional_register_usage): Improve comments.
6967         (mmix_local_regno): New function.
6968         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
6969         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
6970         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
6971         (mmix_get_hard_reg_initial_val): Ditto.
6972
6973 2002-07-06  Andreas Jaeger  <aj@suse.de>
6974
6975         * toplev.c (set_fast_math_flags): Don't use ISO C style function
6976         definitions.
6977         * gengtype.c (open_base_files): Likewise.
6978         (close_output_files): Likewise.
6979         * tracer.c (find_best_predecessor): Likewise.
6980         (find_best_successor): Likewise.
6981         (ignore_bb_p): Likewise.
6982
6983 2002-07-05  Roger Sayle  <roger@eyesopen.com>
6984
6985         PR c++/7099
6986         * builtin-attrs.def: Define new attribute lists for use in
6987         builtins.def.
6988         * builtins.def [DEF_BUILTIN]: Modify to take an additional
6989         ATTRS argument, an enumerated value defined in builtin-attrs.def
6990         that represents the attribute list for the builtins.  Modify
6991         all builtin functions to pass an appropriate attribute list.
6992         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
6993         their required noreturn attributes.
6994         * tree.h (enum_builtin_function): Ignore the additional parameter
6995         to DEF_BUILTIN.
6996         * builtins.c (built_in_names): Likewise.
6997         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
6998         argument with a tree representing the functions attribute list.
6999         Pass this "attrs" argument to builtin_function.  No longer handle
7000         the noreturn_p processing manually.
7001         (built_in_attributes): Move the definitions from builtin-attrs.def
7002         before c_common_nodes_and_builtins.
7003         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
7004         DEF_BUILTIN, passing it to both builtin_function and the changed
7005         builtin_function_2.
7006
7007         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
7008         __builtin__exit and __builtin__Exit.
7009
7010 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7011
7012         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
7013         QI mode registers in soft registers.
7014         ("zero_extendqihi2"): Do not take into account soft registers
7015         for register allocation (use '*' constraint).
7016
7017 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7018
7019         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
7020         it is dead.
7021         ("*ashrsi3"): Likewise.
7022         ("*lshrsi3"): Likewise.
7023
7024 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
7025
7026         * genautomata.c (output_max_insn_queue_index_def): Take latencies
7027         into account.
7028
7029 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7030
7031         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
7032         address computation and memory moves.
7033
7034 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
7035
7036         PR c++/6706
7037         * dwarfout.c (output_reg_number): Fix warning message.
7038         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
7039         before using it.
7040
7041 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7042
7043         * gcc/gcc.c (asm_debug): Move initialization ...
7044         (init_spec): ... here.
7045
7046 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7047
7048         * c-parse.in (extdef): Append ';'.
7049         (old_style_parm_decls): Append ';'.
7050
7051 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7052
7053         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
7054         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
7055         to gcc_cv_as_gstabs_flag.
7056         * configure: Rebuilt.
7057
7058 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
7059
7060         * ggc.h (ggc_add_root): Document as obsolete.
7061
7062 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
7063
7064         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
7065         (mshflo_w): Likewise.
7066
7067 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7068
7069         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
7070         vector mode subregs of constants to finding integer mode
7071         subregs of constants.
7072         * cse.c (cse_insn): Use simplify_gen_subreg.
7073         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
7074         From a vector mode expression of different size than the
7075         target mode.
7076
7077 2002-07-03  Eric Christopher  <echristo@redhat.com>
7078
7079         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
7080         * config/mips/mips.h: Remove deprecated -m<processor> options
7081         and cc1_cpu_spec associated.
7082         (CONSTANT_ADDRESS_P): Fix last patch.
7083         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
7084         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
7085         sunge_sf): Remove.
7086
7087 2002-07-03  Stan Shebs  <shebs@apple.com>
7088
7089         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
7090         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
7091         (CPP_SPEC): Remove insertion of APPLE_CC definition.
7092
7093 2002-07-03  Roger Sayle  <roger@eyesopen.com>
7094
7095         * combine.c (struct_undo): Change types of recorded substitutions
7096         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
7097         (do_SUBST_INT): Change types of the substitution from unsigned int
7098         to int, to avoid compilation warning from SUBST_INT's only caller.
7099
7100         (make_extraction): Add cast to avoid compilation warning.
7101         (force_to_mode): Remove cast to avoid compilation warning.
7102
7103 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
7104             Jeff Law  <law@redhat.com>
7105
7106         * i386.md (length_immediate attribute): Fix typo.
7107         (length_address attribute): Likewise.
7108         (modrm attribute): Set it to 0 for immediate call instructions.
7109         (jcc_1 pattern): Set modrm attribute to 0.
7110         (jcc_2 pattern ): Likewise.
7111         (jump pattern): Likewise.
7112         (doloop_end_internal pattern): Explicitly set length.
7113         (leave pattern): Fix typo.
7114         (leave_rex64 pattern): Likewise.
7115
7116 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
7117
7118         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
7119         in FPR as preference.
7120         (fctiwz): Same.
7121         (floatdidf2, fix_truncdfdi2): Same.
7122         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
7123         (floatditf2): Same.
7124         (floatsitf2, fix_trunctfsi2): SImode in GPR.
7125         (ctrdi): Remove FPR alternative and splitter.
7126
7127 2002-07-03  Will Cohen  <wcohen@redhat.com>
7128
7129         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
7130
7131 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
7132
7133         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
7134         than UNITS_PER_WORD, unless this is little endian and the first unit
7135         in this word.  Let extract_bit_field decide how to load an element.
7136         Force arguments to matching mode.
7137         (expand_vector_unop): Likewise.
7138
7139         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
7140         consist of word_mode elements.
7141         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
7142         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
7143         (build_unary_op): Allow vector types for BIT_NOT_EPR.
7144         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
7145         CONST_VECTOR.
7146         * optabs.c (expand_vector_binop): Try to perform operation in
7147         smaller vector modes with same inner size.  Add handling of AND, IOR
7148         and XOR.  Reject expansion to inner-mode sized scalars when using
7149         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
7150         (expand_vector_unop): Try to perform operation in smaller vector
7151         modes with same inner size.  Add handling of one's complement.
7152         When there is no vector negate operation, try a vector subtract
7153         operation.  Use simplify_gen_subreg on constants.
7154         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
7155         constants into smaller vectors with same inner mode, and to
7156         integer CONST_DOUBLEs.
7157
7158 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7159
7160         * c-parse.in (parsing_iso_function_signature): New variable.
7161         (extdef_1): New, copied from...
7162         (extdef): ... here.  Reset parsing_iso_function_signature.
7163         (old_style_parm_decls):  Reset parsing_iso_function_signature.
7164         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
7165         Warn about ISO C style function definitions.
7166         (nested_function, notype_nested_function): Reset
7167         parsing_iso_function_signature.
7168         (parmlist_2): Set parsing_iso_function_signature.
7169
7170         * doc/invoke.texi (-Wtraditional): Document new behavior.
7171
7172 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
7173
7174         * config.gcc (mips*el-*-*): Use tm_defines to set
7175         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
7176         * config/mips/little.h: Remove.
7177
7178 2002-07-02 Devang Patel <dpatel@apple.com>
7179
7180         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
7181         object as parameter. Prevent something like 'NSObject' to be
7182         used as the type for a method argument.
7183
7184 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
7185
7186         * cpptrad.c: Update comment.
7187
7188 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7189
7190         * doc/cpp.texi: Update for traditional preprocessing changes.
7191         * goc/cppopts.texi: Similarly.
7192
7193 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
7194
7195         * c-parse.in (designator): Enable designated initializers if ObjC.
7196         (objcmessageexpr): Remove references to objc_receiver_context.
7197         * objc/objc-act.h (objc_receiver_context): Remove decl.
7198         * objc/objc-act.c (objc_receiver_context): Remove.
7199         (lookup_objc_ivar): Test objc_method_context instead of
7200         objc_receiver_context.
7201
7202 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7203
7204         * sh.c (print_operand, case 'N'): Allow zero vector.
7205         (arith_reg_or_0_operand): Likewise.
7206         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7207         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
7208         IOR, XOR, PLUS and SET and take their respective constant
7209         ranges into account.
7210         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7211         * sh.md (subdi3, subdi3_media): Allow zero operand.
7212         (movv8qi_i+3): Only vector that is not split is the zero vector.
7213         Fix operand 3 to simplify_subreg.
7214         (movv2si_i): Split alternative 1.
7215         (mshfhi_l_di_rev+1): New splitter.
7216
7217 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7218
7219         PR preprocessor/7029
7220         * cppinit.c (cpp_handle_option):  Suppress warnings with an
7221         implicit "-w" for "-M" and "-MM".
7222         * doc/cppopts.texi: Update.
7223
7224 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7225
7226         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7227         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
7228         builtin_function.
7229
7230 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
7231
7232         * README.Portability: Fix typos.
7233
7234 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
7235
7236         PR target/7177
7237         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
7238         of indirections for register inside sign-extended mem part.
7239
7240 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7241
7242         * tree.h:  Modify builtin_function interface to take an extra
7243         argument ATTRS, which is a tree representing an attribute list.
7244
7245         * c-decl.c (builtin_function): Accept additional parameter.
7246         * objc/objc-act.c (builtin_function): Likewise.
7247         * f/com.c (builtin_function): Likewise.
7248         * java/decl.c (builtin_function): Likewise.
7249         * ada/utils.c (builtin_function): Likewise.
7250         * cp/decl.c (builtin_function): Likewise.
7251         (builtin_function_1): Likewise.
7252
7253         * c-common.c (c_common_nodes_and_builtins): Pass an additional
7254         NULL_TREE argument to builtin_function.  (builtin_function_2):
7255         Likewise.
7256         * cp/call.c (build_java_interface_fn_ref): Likewise.
7257         * objc/objc-act.c (synth_module_prologue): Likewise.
7258         * java/decl.c (java_init_decl_processing): Likewise.
7259         * f/com.c (ffe_com_init_0): Likewise.
7260
7261         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
7262         NULL_TREE argument to builtin_function.
7263         * config/arm/arm.c (def_builtin): Likewise.
7264         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
7265         * config/i386/i386.c (def_builtin): Likewise.
7266         * config/ia64/ia64.c (def_builtin): Likewise.
7267         * config/rs6000/rs6000.c (def_builtin): Likewise.
7268
7269 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
7270
7271         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
7272         * config/mips/t-isa3264: Likewise.
7273         * config/mmix/t-mmix: Likewise.
7274
7275 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7276
7277         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
7278
7279 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7280
7281         PR opt/4046
7282         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
7283         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
7284         B are truth values.
7285
7286 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7287
7288         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
7289
7290 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
7291
7292         * README.Portability (Function prototypes): Give an example of
7293         declaring and defining a function with no arguments.
7294
7295         * README.Portability (Function prototypes): Document new
7296         variable-argument function macros.
7297
7298 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
7299
7300         * sh.c (langhooks.h): Include.
7301         (sh_init_builtins, sh_media_init_builtins): New functions.
7302         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
7303         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7304         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
7305         (builtin_description): New struct tag.
7306         (signature_args, bdesc): New arrays.
7307         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
7308         (print_operand): Add 'N' modifier.
7309         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
7310         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
7311         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
7312         (CONST_COSTS): Add special case for SHmedia AND.
7313         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
7314         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
7315         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
7316         target_operand can also be const or unspec.
7317         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
7318         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
7319         (attribute type): Add new types.
7320         (anddi3): Add splitter.
7321         (movdi_const_16bit+1): Add code to handle vector constants and
7322         bitmasks efficiently.
7323         (shori_media): Have generator function made.
7324         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
7325         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
7326         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
7327         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
7328         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
7329         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
7330         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
7331         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
7332         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
7333         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
7334         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
7335         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
7336         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
7337         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
7338         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
7339         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
7340         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
7341         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
7342         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
7343         (ftrv): Likewise.
7344
7345         (fpu_switch+1, fpu_switch+2): Remove constraint.
7346
7347 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
7348
7349         * tree.c (build_function_type_list): Update function comment.
7350         Rename first argument to return_type.
7351
7352 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7353
7354         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
7355         tradcif.y and related files.
7356
7357 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7358
7359         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
7360
7361 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7362
7363         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
7364
7365 2002-06-30  Devang Patel  <dpatel@apple.com>
7366
7367         * objc/objc-act.c (finish_file): Avoid finish_objc() if
7368         -fsyntax-only.
7369
7370 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
7371                           Frank Ch. Eigler  <fche@redhat.com>
7372                           Matthew Green  <mrg@redhat.com>
7373                           Richard Henderson <rtl@redhat.com>
7374                           Dave Hudson  <dave.hudson@ubicom.com>
7375                           Jeff Johnston  <jjohnstn@redhat.com>
7376                           Alan Lehotsky <apl@alum.mit.edu>
7377                           Bernd Schmidt  <bernds@redhat.com>
7378                           Graham Stott  <grahams@redhat.com>
7379
7380         * doc/extend.texi: Add ip2k port to description of attribute
7381         naked.
7382         * doc/install.texi (Specific): Add ip2k description.
7383         * doc/install-old.texi (Configurations): Add ip2k to possible
7384         cpu types.
7385         * doc/md.texi: Document ip2k constraints.
7386         * config/ip2k/crt0.S: New file.
7387         * config/ip2k/ip2k-protos.h: New file.
7388         * config/ip2k/ip2k.c: New file.
7389         * config/ip2k/ip2k.h: New file.
7390         * config/ip2k/ip2k.md: New file.
7391         * config/ip2k/libgcc.S: New file.
7392         * config/ip2k/t-ip2k: New file.
7393
7394 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
7395
7396         * config/mmix/mmix.md ("return"): New pattern.
7397         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
7398         (TARGET_USE_RETURN_INSN): New macros.
7399         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
7400         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
7401         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
7402         (MMIX_POP_ARGUMENT): New macro.
7403         (mmix_target_asm_function_prologue): When no epilogue is executed,
7404         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
7405         (mmix_print_operand) <case '.'>: New case.
7406         (mmix_print_operand_punct_valid_p): Match '.'.
7407         (mmix_use_simple_return): New function.
7408         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
7409         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
7410         -msingle-exit, -mno-single-exit.
7411         (MMIX Options): Ditto.
7412
7413 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
7414
7415         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
7416
7417 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7418
7419         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
7420
7421 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
7422
7423         * unroll.c (loop_iterations): Handle EQ loops.
7424
7425 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
7426
7427         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
7428         constraint in define_expand, not splitter.
7429         Formatting.
7430
7431 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
7432
7433         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7434         build_function_type_list instead of build_function_type.
7435
7436         * config/ia64/ia64.c (ia64_init_builtins): Same.
7437
7438         * config/alpha/alpha.c (alpha_init_builtins): Same.
7439
7440         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
7441
7442         * config/arm/arm.c (arm_init_builtins): Same.
7443
7444         * tree.h: Add build_function_type_list prototype.
7445
7446         * tree.c (build_function_type_list): New.
7447
7448 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7449
7450         * collect2.c (scan_prog_file): Fix typo in message.
7451
7452 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
7453
7454         * fold-cont.c: Remove unused CHARMASK.
7455
7456 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
7457
7458         PR preprocessor/7150
7459         * cppmain.c (scan_translation_unit_trad): Simplify.
7460         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
7461
7462 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7463
7464         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
7465         Don't use CPP_PREDEFINES.
7466         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
7467         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
7468         * config/i386/djgpp.h, config/i386/i386-coff.h,
7469         config/i386/i386-interix.h, config/i386/i386-interix3.h,
7470         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7471         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
7472         config/i386/uwin.h: Similarly.
7473
7474 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7475
7476         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
7477         flag_inline_trees to enable inlining.
7478
7479 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
7480
7481         * configure.in (gcc_gxx_include_dir):  Change to match versioned
7482         C++ headers if --enable-version-specific-runtime-libs is used.
7483         * configure:  Regenerate.
7484
7485 2002-06-28  Jan Hubicka  <jh@suse.cz>
7486
7487         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
7488
7489 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
7490
7491         * combine.c (combine_simplify_rtx): Pass the mode of the
7492         shift count, not the shift operation when trying to simplify
7493         a shift on a SHIFT_COUNT_TRUNCATED target.
7494
7495 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7496
7497         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
7498         avoid the auto increment addressing modes.
7499         ("*subsi3"): Likewise.
7500         (split for add/sub on address): For 68HC12 push the value on
7501         the stack and do the operation with a pop.
7502
7503 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
7504
7505         * cpplib.c (_cpp_handle_directive): Move #define-specific
7506         code to the #define handler...
7507         (do_define): ...here.
7508         (lex_macro_node): No longer a need to check for comments here.
7509
7510 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7511
7512         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
7513         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7514         Declare.
7515         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
7516         do not reorder basic blocks at the end when optimizing for size.
7517
7518 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7519
7520         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
7521         (m68hc11_make_autoinc_notes): New function.
7522         (m68hc11_split_move): Be very cautious when spliting a move with
7523         auto increment/decrement modes because this may result in incompatible
7524         directions; add REG_INC notes to the resulting insn for CSE reg.
7525
7526 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
7527
7528         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
7529         can be a valid address.
7530
7531 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
7532
7533         * config/rs6000/rs6000.c: Remove unusued variables from last
7534         patch.
7535
7536 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7537
7538         Revert:
7539         * config/rs6000/rs6000.c (rs6000_override_options): Move
7540         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7541
7542 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7543
7544         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
7545         lvx/stv/dst builtins...
7546         (altivec_expand_ld_builtin): ...to here.
7547         (altivec_expand_st_builtin): ...here.
7548         (altivec_expand_dst_builtin): ...and here (respectively).
7549
7550 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
7551
7552         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
7553
7554 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
7555
7556         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
7557         subregs.
7558         * recog.c (general_operand, register_operand): Disallow them.
7559
7560 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
7561
7562         PR preprocessor/7138
7563         * cpplib.c (_cpp_handle_directive): Do traditional
7564         preparation after setting state.angled_headers.
7565         * cpptrad.c (scan_out_logical_line): Fix potential
7566         quote bug.
7567
7568 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7569
7570         * config/rs6000/rs6000.c (rs6000_override_options): Move
7571         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7572
7573 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
7574
7575         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
7576         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
7577         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
7578
7579 2002-06-27  Roger Sayle  <roger@eyesopen.com>
7580
7581         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
7582         * config/stormy16/stormy16.h: Likewise.
7583
7584         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
7585         with #define.
7586
7587 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7588
7589         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
7590         Hitachi entry.  Make punctuation more consistent.
7591
7592 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
7593
7594         * doc/install.texi: Change ` bit' to `-bit'.
7595         * doc/md.texi: Change `-bits' to `-bit'.
7596         * doc/tm.texi: Change `-bits' to ` bits'.
7597
7598 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
7599
7600         * gcse.c (hoist_code): Rewrite to only get list of dominated
7601         blocks once per BB. Also fix reversed test (by removing need for
7602         the test at all).
7603
7604 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
7605
7606         * cpphash.h (_cpp_set_trad_context): Remove.
7607         * cpplib.c (prepare_directive_trad): Do nothing for #define.
7608         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
7609         * cpptrad.c: Update comments.
7610         (_cpp_read_logical_line_trad): Let scan_logical_line handle
7611         updating the current context.
7612         (scan_logical_line): Update the current context.
7613         (_cpp_create_trad_definition): Similarly.
7614         (_cpp_set_trad_context): Remove.
7615
7616 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
7617
7618         PR preprocessor/7070
7619         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
7620
7621 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
7622
7623         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
7624         config/xtensa/xtensa.c (xtensa_return_addr): New function.
7625         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
7626         config/xtensa/xtensa.md (fix_return_addr): New pattern.
7627
7628 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7629
7630         * mips.c (coprocessor_operand, coprocessor2_operand,
7631         symbolic_operand): Move prototypes from here...
7632         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
7633         symbolic_operand): ...to here.
7634
7635 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7636
7637         * config/sh/crt1.asm: remove _stack label definition
7638         and sentinel value.
7639
7640 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7641
7642         * varasm.c: Include real.h before output.h.
7643
7644 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
7645
7646         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
7647         check for TARGET_ALTIVEC.
7648
7649 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
7650
7651         * config.gcc (vax-*-vms*): Make obselete.
7652
7653 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7654
7655         * gcc.c (warn_std): Delete.
7656
7657 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
7658
7659         * doc/extend.texi: Fix formatting of last checkin.
7660
7661 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7662
7663         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
7664         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
7665
7666 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
7667
7668         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7669         discrepancies from motorola's documentation.
7670
7671 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
7672
7673         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
7674         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
7675
7676         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
7677         produce a 32 bit result before normalization, then normalize with a
7678         left shift.  Compute approximative error of 2nd reciprocal
7679         approximation in 2's complement.  Fix mask generation from upper
7680         longword of second divide stage result.
7681         For large divisor, fix shift count used to truncate first stage
7682         divide result; make decision if to adjust upwards based on comparison
7683         of higher parts of normalized values.
7684         (udivdi): Likewise.  Undo normalization of result for large divisor
7685         case.
7686
7687 2002-06-25  David S. Miller  <davem@redhat.com>
7688
7689         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
7690
7691 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
7692
7693         * cpplib.c (do_include_common): Revert to correct line number
7694         if -traditional.
7695         * cpptrad.c (scan_out_logical_line): Treat null directive as
7696         white space.  Invlidate MI optimization for non-whitespace
7697         text outside a directive.
7698
7699 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7700
7701         * Makefile.in (SHELL): Set to @SHELL@.
7702         * fixinc/Makefile.in (SHELL): Likewise.
7703
7704         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
7705         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
7706         initialization.
7707
7708 2002-06-24  Jeff Law <law@redhat.com>
7709
7710         * flow.c (propagate_one_insn): When removing an insn
7711         with a REG_LIBCALL note but not the entire libcall sequence,
7712         delete the associated REG_RETVAL note.
7713
7714 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
7715
7716         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
7717         (udivsi3): Likewise.  Rewrite SH1 implementation.
7718         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
7719         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
7720         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
7721         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
7722         (_moddi3): Likewise.
7723
7724         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
7725
7726         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
7727         arguments into account for stack_regs.
7728
7729 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
7730
7731         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
7732         in examples.
7733
7734 2002-06-24  Art Haas  <ahaas@neosoft.com>
7735
7736         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
7737         * doc/tm.texi (Frame Layout): Likewise.
7738
7739 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
7740
7741         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
7742         Set float_format to i128.
7743
7744 2002-06-24  David S. Miller  <davem@redhat.com>
7745
7746         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
7747         32-bit ABI libfuncs to NULL.
7748
7749         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
7750         strings instead of quoted strings for code blocks.
7751
7752         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
7753         optabs if op1 is const0_rtx.
7754
7755         * Makefile.in (GTFILES): Add basic-block.h
7756         * basic-block.h (label_value_list, tail_recursion_label_list):
7757         Mark with GTY.
7758
7759 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
7760
7761         * cpptrad.c (scan_out_logical_line): Check recursing only when
7762         we know we have a macro invocation in the function-like case.
7763         Only call _cpp_handle_directive if we know we have a good
7764         directive, or we want to reject a bad directive.
7765
7766 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
7767
7768         * doloop.c (doloop_valid_p): Correct comment.
7769         (doloop_modify_runtime <abs_inc != 1>): Simplify.
7770         (doloop_modify_runtime <do-while>): Don't emit code when NE.
7771
7772 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
7773
7774         * config.gcc: Add support for ip2k.
7775
7776 2002-06-23  Jan Hubicka  <jh@suse.cz>
7777             Jeff Law <law@redhat.com>
7778
7779         * function.h (struct emit_status): Clarify potential contents
7780         of regno_reg_rtx array.
7781         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
7782         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
7783
7784         * reg-stack.c (convert_regs_exit): Push the registers to stack in
7785         proper order.
7786
7787 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
7788
7789         PR middle-end/6963
7790         * function.c (assign_stack_temp_for_type): Do not return
7791         the same MEM rtx for multiple uses of a stack slot.
7792
7793 2002-06-22  David S. Miller  <davem@redhat.com>
7794
7795         PR target/6841 target/6770 target/6719
7796         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
7797         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
7798         GENERAL_OR_EXTRA_FP_REGS.
7799
7800 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
7801
7802         * cpptrad.c (struct fun_macro): Add line number.
7803         (scan_out_logical_line): Set it, and use it to report unterminated
7804         macro invocations.
7805
7806 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7807
7808         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
7809         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
7810         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
7811         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
7812         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
7813         REGEXP_ONEOF, check_name): Const-ify.
7814
7815 2002-06-21  Matt Thomas  <matt@3am-software.com>
7816
7817         * config/vax/vax.c (vax_output_function_prologue): Use
7818         REGISTER_PREFIX.  Fix some indentation.
7819         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
7820         (VAX_ISTREAM_SYNC): Define.
7821         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
7822         i-stream sync to the end.
7823         (REGISTER_PREFIX): Define as "".
7824         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
7825
7826 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
7827
7828         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
7829         configurations.
7830
7831 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7832
7833         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
7834         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
7835
7836 2002-06-21  Matt Thomas  <matt@3am-software.com>
7837
7838         * config/vax/netbsd.h: Adjust a comment.
7839         (TARGET_DEFAULT): Redefine as 0.
7840
7841 2002-06-21  Richard Henderson  <rth@redhat.com>
7842
7843         * bb-reorder.c (make_reorder_chain_1): Search harder for the
7844         vax casesi fallthru edge.
7845         * cfglayout.c (cleanup_unconditional_jumps): Use
7846         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
7847         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
7848         block after ADDR_VEC.
7849
7850 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7851
7852         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7853
7854 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
7855
7856         * cpperror.c (cpp_error): For traditional CPP, default to
7857         diagnostics on pfile->line.
7858         * cpplib.c (prepare_directive_trad): Set line number for
7859         diagnostics for #define too.
7860         * cpptrad.c (skip_whitespace): Skip comments properly.
7861         (_cpp_expansions_different_trad): Initialize quote2.
7862
7863 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
7864
7865         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
7866         * config/mmix/mmix.h: Ditto.
7867         * config/mmix/mmix-protos.h: Ditto.
7868         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
7869         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
7870         comment.  Comment extra CC modes.
7871
7872 2002-06-20 Jan Hubicka  <jh@suse.cz>
7873
7874         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
7875         (scope_to_insns_finalize): Do not call set_block_levels; handle
7876         sequences.
7877         (choose_inner_scope): New.
7878         * rtl.h (choose_inner_scope): Declare.
7879
7880 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7881
7882         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
7883         HOST_WIDE_INT.
7884         * pa.c (pa_asm_output_mi_thunk): Likewise.
7885         (n_deferred_plabels): Change type to size_t.
7886         (output_deferred_plabels, output_call): Use size_t instead of int.
7887
7888 2002-06-20  Richard Henderson  <rth@redhat.com>
7889
7890         PR target/4041
7891         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
7892         pattern and adjust constraints for coldfire.
7893
7894 2002-06-20  Richard Henderson  <rth@redhat.com>
7895
7896         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
7897
7898 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
7899
7900         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
7901
7902 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
7903
7904         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
7905
7906 2002-06-20  Stan Shebs  <shebs@apple.com>
7907
7908         * dominance.c: Include errors.h instead of error.h.
7909
7910 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
7911
7912         * cppexp.c (cpp_interpret_integer): Don't force traditional
7913         numbers to be unsigned.
7914         * cpplib.c (prepare_directive_trad): Set line number for
7915         diagnostics.
7916         * cpptrad.c (scan_out_logical_line): Continue scanning out
7917         at start of buffer.
7918         * gcc.c (trad_capable_cpp): Use cc1 always.
7919
7920 2002-06-20  Jeffrey Law  <law@redhat.com>
7921
7922         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
7923         elimination in leaf functions by default yet.
7924
7925 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
7926
7927         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
7928
7929 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7930
7931         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
7932         multilibs.
7933         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7934         Fixes PR other/6836.
7935
7936 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
7937                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
7938
7939         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
7940
7941         * basic-block.h: Do not include et-forest.h
7942         (dominance_info): Declare as struct dominance-info.
7943         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
7944         deleting block.
7945         * dominance.c (struct dominance_info): Define.
7946         (BB_NODE, SET_BB_NODE): New macros.
7947         (bb_hash_func, bb_eq_func): Kill.
7948         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
7949         nearest_common_dominator, dominated_by_p, recount_dominator,
7950         add_to_dominance_info, delete_from_dominance_info): update for new
7951         representation.
7952         (get_dominated_by, redirect_immediate_dominators): Rewrite using
7953         enumerate_sons.
7954         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
7955         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
7956         structure.
7957
7958         * et-forest.h: Update copyright; revamp all function to operate on
7959         nodes
7960         (et_forest_value): Kill.
7961         (et_forest_enumerate_sons, et_forest_node_value): New.
7962         * et-forest.c: Update copyright.
7963         * et-forest.h: Update copyright; revamp all function to operate on
7964         nodes
7965         (et_forest_value): Kill.
7966         (et_forest_enumerate_sons, et_forest_node_value): New.
7967
7968         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7969
7970         * basic-block.h: Inlude et-forest.h
7971         (basic_block_def): Kill dominator.
7972         (dominance_info): New type.
7973         (loops): Use dominace_info.
7974         (dominace handling functions): Take dominace_info as argument
7975         instead of bitmaps.
7976         (create_preheader): Likewise.
7977         * cfg.c (entry_exit_blocks): Kill dominator.
7978         (dump_flow_info): Do not dump dominators.
7979         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
7980         dominators.
7981         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
7982         (flow_loops_pre_header_scan, make_forwarder_block,
7983         canonicale_loop_headers, flow_loops_find): Likewise.
7984         * dominance.c: Include error.h
7985         (idoms_to_doms): Kill.
7986         (bb_hash_func, bb_eq_func): New static functions.
7987         (debug_dominace_info): New global function.
7988         (calculate_dominance_info): Use new et forest structure.
7989         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
7990         get_dominated_by, redirect_immediate_dominators,
7991         nearest_common_dominator, dominated_by_p, verify_dominators,
7992         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
7993         delete_from_dominance_info): New global functions.
7994         * gcse.c (domnators): CHange to dominance_info.
7995         (alloc_hoist_mem): Do not alloc dominators
7996         (free_code_hoist_mem): Use free_dominance_info.
7997         (compute_code_hoist_data): Use dominance_info.
7998         (hoist_code): Likewise.
7999         * ifcvt.c (post_dominators): Likewise.
8000         (find_if_case_2, if_convert): Likewise.
8001         * predict.c (process_note_predictions, process_note_prediction,
8002         estimate-probability): Likewise.
8003         * sched-rgn.c (find_rgns, init_regions): Likewise.
8004         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
8005         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
8006         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
8007         find_evaluations, convert_to_ssa): Likewise.
8008         * ssa.h (compute_dominance_frontiers): Likewise.
8009
8010         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
8011
8012         * Makefile.in (et-forest.c): Add.
8013         * et-forest.c: New file.
8014         * at-forest.h: New file.
8015
8016 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8017
8018         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
8019         array size calculation.
8020         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
8021         Likewise.
8022
8023         * diagnostic.c (diagnostic_kind_text): Const-ify.
8024         * gengtype.c (lang_names): Likewise.
8025
8026 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
8027
8028         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
8029
8030 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8031
8032         * config/sol2.h: New file.
8033         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
8034         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
8035         (sparc-*-chorusos*): Likewise.
8036         (sparc-*-elf*): Likewise.
8037         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
8038         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
8039         (sparc-hal-solaris2*): Likewise.
8040         (sparc-*-solaris2*): Likewise.
8041         (sparclite-*-elf*): Likewise.
8042         (sparc86x-*-elf*): Likewise.
8043         (sparc64-*-elf*): Likewise.
8044
8045         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
8046         config/sol2.h.
8047         (ASM_SPEC): Override config/sol2.h version for now.
8048         Removed obsolete GAS_REJECTS_MINUS_S variant.
8049         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
8050         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
8051         (TARGET_OS_CPP_BUILTINS): Likewise.
8052         Assert system=unix.
8053         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
8054         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
8055         config/sol2.h.
8056         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
8057         (ASM_CPU_SPEC): Define.
8058         (SUBTARGET_EXTRA_SPECS): Define.
8059
8060         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
8061         in config/sparc/sol2.h.
8062         (ASM_SPEC): Moved to config/sol2.h.
8063         (CPP_CPU_SPEC): Simplified.
8064         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
8065         consistency.
8066         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
8067         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
8068         STARTFILE_ARCH64_SPEC.
8069         (STARTFILE_SPEC): Moved to config/sol2.h
8070         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
8071         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
8072         (LINK_ARCH64_SPEC): Simplified.
8073         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
8074         (LINK_SPEC): Moved to config/sol2.h
8075
8076         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
8077         config/sol2.h.
8078         Use BITS_PER_WORD for size.
8079         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
8080         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
8081         (CPP_PREDEFINES): Removed OS-specific part handled by
8082         TARGET_OS_CPP_BUILTINS.
8083         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
8084         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
8085         (ASM_SPEC): Moved to config/sol2.h.
8086         (PREFERRED_DEBUGGING_TYPE): Likewise.
8087         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
8088         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
8089         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
8090         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
8091
8092         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
8093         * config/i386/sol2gas.h: Removed.
8094
8095 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
8096
8097         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
8098
8099 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
8100
8101         * gcc.c-torture/execute/simd-1.c: New.
8102
8103         * gcc.dg/simd-1.c: New.
8104
8105         * doc/extend.texi (Vector Extensions): Document that we can
8106         specify simd types not specifically supported by the hardware.
8107         Document that simd types can be used as function arguments.
8108         Document that signness does make a difference in SIMD types.
8109         Misc cleanups and revisions to the vector extensions section.
8110
8111         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
8112         constants.
8113
8114         * expr.c (vector_mode_valid_p): New.
8115
8116         * expr.h: Add vector_mode_valid_p.
8117
8118         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
8119
8120         * c-common.c (type_for_mode): Always build vector nodes regardless
8121         of VECTOR_MODE_SUPPORTED_P.
8122         (handle_mode_attribute): Error if we can't emulate a nonexisting
8123         vector mode.
8124         (handle_vector_size_attribute): Same.
8125
8126         * optabs.c (expand_binop): Open-code vector operations.
8127         (expand_unop): Open-code vector unops.
8128         (expand_vector_binop): New.
8129         (expand_vector_unop): New.
8130
8131         * c-typeck.c (build_binary_op): Allow vectors in binops.
8132         Allow vectors in conditional operatiors.
8133         (build_unary_op): Allow vectors in unary minus.
8134
8135         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
8136         TARGET_ALTIVEC.
8137
8138 2002-05-20  Richard Henderson  <rth@redhat.com>
8139
8140         * c-common.c (c_common_get_alias_set): Correctly handle characters.
8141         Rearrange order of expressions; don't handle vectors here.
8142         * alias.c (get_alias_set): Let vectors match their components.
8143
8144 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
8145
8146         * config/mips/mips.c (mips_emit_prefetch): Use hints which
8147         match desired locality.
8148
8149 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
8150
8151         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
8152         (h8300_insert_attributes): New.
8153
8154 2002-06-19  Akim Demaille  <akim@epita.fr>
8155
8156         * c-parse.in (initelt: identifier ':' initval): Add an empty
8157         action to fix a type clash.
8158         (aliasdecl, classdef): Add the missing closing `;'.
8159         Whitespace changes.
8160         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
8161         $$ = $1 type clashes.
8162
8163 2002-06-19  Eric Christopher  <echristo@redhat.com>
8164
8165         * config/mips/mips.c (symbol_operand): New function.
8166         (mips_emit_prefetch): Ditto.
8167         * config/mips/mips-protos.h: Define.
8168         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
8169         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
8170         (LEGITIMIZE_ADDRESS): Ditto.
8171         * config/mips/mips.md (prefetch, prefetch_si_address,
8172         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
8173
8174 2002-06-19  Eric Christopher  <echristo@redhat.com>
8175
8176         * config/fp-bit.h: Add unordered defines for gofast.
8177
8178 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
8179
8180         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
8181         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
8182         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
8183         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
8184         checking and without it.
8185         (decl_name, decl_mode_check_failed, regexp_name,
8186         regexp_mode_check_failed): New functions.
8187         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8188         gen_presence_set, gen_absence_set, gen_automaton,
8189         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
8190         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
8191         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
8192         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
8193         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
8194         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
8195         (decl_hash, decl_eq_p): Use the macros.
8196         (find_decl): Ditto.  Set up mode of work_decl.
8197         (process_excls, process_presence_absence, process_decls,
8198         check_automaton_usage, process_regexp, process_regexp_decls,
8199         check_usage, loop_in_regexp, check_loops_in_regexps,
8200         process_regexp_cycles, add_advance_cycle_insn_decl,
8201         initiate_states, initiate_excl_sets,
8202         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
8203         transform_2): Use the macros.
8204         (transform_3): Ditto.  Check mode before making transformations of
8205         ALLOF.
8206         (regexp_transform_func, transform_insn_regexps,
8207         process_unit_to_form_the_same_automaton_unit_lists,
8208         form_the_same_automaton_unit_lists_from_regexp,
8209         form_the_same_automaton_unit_lists,
8210         process_seq_for_forming_states, process_alts_for_forming_states,
8211         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
8212         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
8213         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
8214         units_to_automata_heuristic_distr, create_ainsns,
8215         units_to_automata_distr, create_automata): Use the macros.
8216         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
8217         (longest_path_length, min_issue_delay_pass_states,
8218         output_dead_lock_vect, output_tables, output_insn_code_cases,
8219         output_internal_insn_latency_func, output_print_reservation_func,
8220         output_description, output_automaton_units, generate): Use the
8221         macros.
8222         (make_insn_alts_attr): Ditto.  Check case when there are not
8223         alternatives in the reservation.
8224         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
8225         make_bypass_attr, form_important_insn_automata_lists,
8226         expand_automata): Use the macros.
8227
8228 2002-06-20  Tim Josling  <tej@melbpc.org.au>
8229
8230         * Makefile.in: Clean up code to check for misspecified languages
8231         in enable-languages.
8232
8233 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
8234
8235         * cpptrad.c (_cpp_replacement_text_len): initialize len.
8236
8237 2002-06-19  Jason Merrill  <jason@redhat.com>
8238
8239         * Makefile.in (unstrap, restrap): New targets.
8240         (bootstrap): Mention restrap.
8241
8242 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
8243
8244         * except.c (ehl_free): Remove.
8245
8246         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
8247         builtin_define and builtin_define_std.
8248
8249 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
8250
8251         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
8252         (sCOND): Restrict operand class so that gcc knows how to reload them.
8253         (bitfield_set): Merge two unnamed insn's using alternatives.
8254         (call_value): Remove constraint on unused uperand.
8255         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
8256         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
8257
8258         * longlong.h (count_trailing_zeros): Escape newline and beautify.
8259
8260 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
8261
8262         * Makefile.in (QMTEST_DIR): Simplify definition.
8263
8264 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
8265
8266         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
8267         #define.
8268
8269 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
8270
8271         * cpphash.h (struct cpp_reader): Make date and time strings.
8272         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
8273         _cpp_replacement_text_len): New.
8274         * cppinit.c (cpp_create_reader): Update.
8275         (init_builtins): Register appropriate builtins for -traditional-cpp.
8276         * cppmacro.c (new_number_token): Remove.
8277         (_cpp_builtin_macro_text): New.
8278         (builtin_macro): Use it.
8279         (cpp_macro_definition): Update to handle traditional macros.
8280         * cppmain.c (cb_line_change): Don't do column positioning for
8281         traditional output.
8282         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
8283         state ls_fun_close.
8284         (skip_whitespace): Fix.
8285         (maybe_start_funlike): Don't set state.parsing_args.
8286         (scan_out_logical_line): Remove duplicate error.  Use lex_state
8287         rather than state.parsing_args.
8288         (push_replacement_text): Handle builtins.
8289         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
8290
8291 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
8292             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8293
8294         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
8295         attribute __always_inline__.
8296
8297 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
8298
8299         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
8300         when generating the call to _mcount.
8301         (NO_PROFILE_COUNTERS): Define.
8302
8303 2002-06-18  Richard Henderson  <rth@redhat.com>
8304
8305         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
8306         2002-06-02 change.
8307
8308 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
8309
8310         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
8311         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
8312         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
8313         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
8314
8315         * sh-protos.h (sh_pr_interrupt): Declare.
8316         * sh.c (sh_pr_interrupt): New function.
8317         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
8318         (sh_hard_regno_rename_ok): Likewise.
8319         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
8320
8321 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
8322
8323         * rtl.def (DEFINE_AUTOMATON): Add description of new options
8324         `time' and `v'.  Fix incorrect description of option `w'.
8325
8326         * doc/md.texi: Ditto.
8327
8328         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
8329         (gen_automata_option): Process the new options.
8330         (transform_2, transform_3): Initialize some variables.
8331         (initiate_automaton_gen): Use the new macros.
8332
8333 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
8334
8335         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
8336         (mips_set_return_address, mips_restore_gp): Declare.
8337         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
8338         (current_frame_info): Remove.
8339         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
8340         * config/mips/mips.c: Remove uses of current_frame_info.
8341         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
8342         (struct machine_function): Add 'frame' and 'insns_len'.
8343         (current_frame_info, zero_frame_info): Remove.
8344         (mips_restore_gp, mips_set_return_address): New.
8345         (mips_initial_elimination_offset): New.
8346         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
8347         (eh_return define_split): Use mips_set_return_address.
8348
8349 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8350
8351         * cpplib.c (dtable): Update.
8352         (end_directive): Decrement expansion prevention count.
8353         Clear state.in_expression.
8354         (prepare_directive_trad): Set state.in_expression.
8355         Increment expansion prevention count.
8356         * cpptrad.c (enum ls): New.
8357         (_cpp_overlay_buffer): Set overlaid_buffer.
8358         (_cpp_remove_overlay): Use overlaid_buffer.
8359         (_cpp_read_logcial_line_trad): Update buffer when it might
8360         have changed.
8361         (scan_out_logical_line): Handle state transitions for assertions
8362         and defined() in #if, and for funlike invocations including the
8363         directive case.  Handle '<' and '>' as a quote mechanism in
8364         #include.  Warn about unterminated macro invocations.
8365         * cpphash.h (struct lexer_state): New member in_expression.
8366         (struct cpp_reader): New member overlaid buffer.
8367
8368 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
8369
8370         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
8371         __always_inline__.
8372
8373 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
8374
8375         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
8376
8377         * doloop.c (doloop_optimize): Extract pattern from insn.
8378
8379 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
8380
8381         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
8382
8383 2002-06-17  Jeff Law <law@redhat.com>
8384
8385         * libgcc2.c: Do not include symcat.h or machmode.h.
8386
8387 2002-06-17  Richard Henderson  <rth@redhat.com>
8388
8389         PR target/6922
8390         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
8391
8392 2002-06-17  Tom Tromey  <tromey@redhat.com>
8393
8394         * dwarfout.c: Include function.h.
8395
8396 2002-06-17  Andreas Schwab  <schwab@suse.de>
8397
8398         * print-rtl.c (print_rtx): Print space before vector, not after.
8399         (debug_rtx): Clear sawclose before printing.
8400         (debug_rtx_list): Print newline after each list element.
8401         (debug_rtx_range): Likewise.
8402
8403 2002-06-17  Richard Henderson  <rth@redhat.com>
8404
8405         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
8406         (current_function_funcdef_no): Similarly.
8407         * function.c (funcdef_no): Similarly.
8408         (prepare_function_start): Set current_function_funcdef_no.
8409         (expand_function_start): Don't set current_function_profile_label_no.
8410         * dwarf2out.h (current_funcdef_number): Remove.
8411         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
8412         current_function_funcdef_no throughout.
8413         * dwarfout.c, vmsdbgout.c: Similarly.
8414         * except.c (sjlj_funcdef_number): Remove.
8415         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
8416         (output_function_exception_table): Likewise.
8417         * final.c (profile_function): Use current_function_funcdef_no
8418         instead of current_function_profile_label_no.
8419
8420 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
8421
8422         * sched-ebb.c (init_ready_list): Check INSN_P first.
8423
8424 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
8425
8426         * sh.md (divsi3): Update way how to find insns in a sequence.
8427
8428         * reload1.c (merge_assigned_reloads): Don't change reloads
8429         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
8430         to RELOAD_OTHER when there are conflicting input reloads.
8431
8432 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
8433
8434         * function.c (epilogue_done): Correctly build a sequence of insns for
8435         a sibcall epilogue.
8436
8437 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
8438
8439         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
8440         #define.
8441
8442         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
8443
8444 2002-06-16  Richard Henderson  <rth@redhat.com>
8445
8446         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
8447         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
8448
8449 2002-06-16  Richard Henderson  <rth@redhat.com>
8450
8451         PR opt/6722
8452         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
8453
8454 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8455
8456         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
8457         * config/i386/i386-aout.h, config/i386/i386elf.h,
8458         config/i386/sysv4.h: Remove CPP_PREDEFINES.
8459         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
8460         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
8461         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
8462         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
8463         CPP_PREDEFINES and part of CPP_SPEC.
8464         * config/i386/sysv4-cpp.h: New.
8465
8466 2002-06-16  Richard Henderson  <rth@redhat.com>
8467
8468         PR c/7030
8469         * dwarf2out.c (modified_type_die): Don't assign the qualified die
8470         to the unqualified type.
8471
8472 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
8473
8474         * i386-protos.h (x86_field_alignment): Declare.
8475         * i386.c (x86_field_alignment): Define.
8476         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
8477         (BIGGEST_FIELD_ALIGNMENT): Kill.
8478
8479 2002-06-16  Richard Henderson  <rth@redhat.com>
8480
8481         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
8482
8483 2002-06-16  Richard Henderson  <rth@redhat.com>
8484
8485         * c-common.c (flag_ms_extensions): Move from c++ front end.
8486         * c-common.h (flag_ms_extensions): Declare.
8487         * c-decl.c (c_decode_option): Add -fms-extensions.
8488         (grokfield): Don't accept anonymous structures in ISO C mode;
8489         accept only unnamed anonymous structures in GNU C mode; accept
8490         Plan 9 extensions in MS mode.
8491         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
8492         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
8493         (extension): Clear flag_iso.
8494         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
8495
8496 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
8497
8498         PR target/7042
8499         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
8500         early if current_function_epilogue_delay_list is non-empty.
8501         * config/cris/cris.md ("return"): Add sanity check asserting that
8502         current_function_epilogue_delay_list is empty.
8503
8504 2002-06-16  Jeff Law <law@redhat.com>
8505
8506         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
8507         sharing of hard registers.
8508
8509         * toplev.c (rest_of_compilation): Remove redundant conditional.
8510
8511         * toplev.c (rest_of_compilation): Perform a simpler, less costly
8512         cleanup of the CFG when not optimizing.
8513
8514 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
8515
8516         * gcc.c (main): Correct startfile_prefix_spec check.
8517
8518 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
8519
8520         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
8521         include both darwin.o and rs6000-c.o.
8522
8523 2002-06-15  Roger Sayle  <roger@eyesopen.com>
8524
8525         * expr.c (compare_from_rtx): Call simplify_relational_operation
8526         on all comparisons, not just those between integer constants,
8527         with the correct (possibly unsigned) comparison code.
8528         (do_compare_rtx_and_jump): Likewise.
8529
8530 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8531
8532         * Makefile.in (tm_defines): New configuration variable.
8533         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
8534         Pass tm_defines in TM_DEFINES.
8535         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
8536         * config.gcc (tm_defines): New configuration variable.
8537         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
8538         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
8539         * configure.in: Substitute tm_defines.
8540         * configure: Rebuilt.
8541         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
8542         * doc/install.texi: Update.
8543         * pa/pa-700.h: Delete file.
8544         * pa/pa-7100.h: Delete file.
8545
8546 2002-06-15  Roger Sayle  <roger@eyesopen.com>
8547
8548         * fold-const.c (comparison_to_compcode): New function to convert
8549         an comparison TREE CODE into a bit-based representation.
8550         (compcode_to_comparison): New function to convert from this bit
8551         based representation back to a comparison TREE CODE.
8552         (fold_truthop): Simplify (x<y) && (x==y) and related composite
8553         comparisons.
8554
8555 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
8556
8557         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
8558
8559         * stor-layout.c (compute_record_mode): Remove check for
8560         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
8561         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
8562         MEMBER_TYPE_FORCES_BLK.
8563
8564         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
8565
8566         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
8567
8568 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
8569
8570         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
8571
8572 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
8573
8574         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
8575         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
8576         * configure, config.in: Regenerate.
8577
8578 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8579
8580         * loop.c (check_final_value): Use v->always_executed
8581         instead of v->always_computable.
8582         * unroll.c (final_giv_value): Don't calculate the final
8583         value as a function of the biv if the giv is not computed
8584         for every loop iteration.
8585
8586 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8587
8588         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
8589
8590 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8591
8592         PR c/6677
8593         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
8594         the truncation down when the target type is signed.
8595         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
8596         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
8597         the conversion if the target type is a smaller type.
8598
8599 2002-06-14  Richard Henderson  <rth@redhat.com>
8600
8601         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
8602         earlier.  Re-factor comparisons vs extrema.
8603
8604 2002-06-14  Richard Henderson  <rth@redhat.com>
8605
8606         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
8607
8608 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8609
8610         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
8611         * sched-deps.c (add_dependence): Likewise.
8612         (group_leader): Likewise.
8613         * sched-rgn.c (init_ready_list): Likewise.
8614         * doc/rtl.texi: Adjust accordingly.
8615
8616 2002-06-13  Jeffrey Law  <law@redhat.com>
8617
8618         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
8619         null pointer checks were eliminated.  Update prototype.
8620         (delete_null_pointer_checks): Similarly.
8621         * rtl.h (delete_null_pointer_checks): Update prototype.
8622         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
8623         delete_null_pointer_checks deletes one or more null
8624         pointer checks.  Do not run cleanup_cfg before gcse, the
8625         CFG is accurate and optimized at that point..
8626
8627         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
8628         of hard registers.
8629
8630 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
8631
8632         * Makefile.in (libgcc.mk): Depend on specs.
8633
8634 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
8635
8636         * sh.md (mulsi3): Update way how to find insns in a sequence.
8637
8638 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
8639
8640         * sh.h: Define HARD_REGNO_RENAME_OK
8641         * sh.c: sh_hard_regno_rename_ok: New. If current function has
8642         interrupt_handler attribute, only registers saved on stack are OK.
8643         * sh-protos.h: Declare sh_hard_regno_rename_ok.
8644
8645 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
8646
8647         * config/sh/sh.md (jump): Emit jump insn.
8648         (call_pcrel): Get pattern of the result of gen_call_site.
8649         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
8650
8651 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8652
8653         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
8654         * cpptrad.c: Update comments.
8655         (skip_whitespace, copy_comment): Take a new parameter.
8656         (skip_escaped_newlines): Don't duplicate escaped newline test.
8657         (copy_comment): Different location for CUR, decide here how
8658         to copy / replace the comment.
8659         (skip_whitespace): Copy whitespace.
8660         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
8661         (scan_out_logical_line): Let copy comment handle keeping or
8662         replacing comments.
8663         (scan_parameters, _cpp_create_trad_definition): Update.
8664
8665 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
8666
8667         * reload.c (get_secondary_mem,find_reloads_address,
8668         find_reloads_address_1): Pass reference to MEM to find_reloads_address
8669         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
8670
8671 2002-06-13  Jessica Han  <jessica@cup.hp.com>
8672
8673         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8674         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8675         * doc/tm.texi: Document them.
8676         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8677         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8678         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
8679         (ASM_OUTPUT_FDESC): Likewise.
8680
8681 2002-06-13  Eric Christopher  <echristo@redhat.com>
8682
8683         * diagnostic.c (output_format): Fix thinko.
8684
8685 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
8686
8687         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
8688         (DWARF2_UNWIND_INFO): Define to 0.
8689
8690         * config/sh/sh.c (calc_live_regs): Don't use initial_value
8691         optimization for PR_MEDIA_REG.
8692
8693 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8694
8695         * cpphash.h (_cpp_lex_identifier_trad): Remove.
8696         * cpplib.c (end_directive): Don't skip, always remove overlay
8697         apart from #define.
8698         (prepare_directive_trad): Handle NULL pfile->directive.
8699         (_cpp_handle_directive): Always call prepare_directive_trad
8700         if traditional.
8701         * cppmain.c (check_multiline_token): Rename account_for_newlines,
8702         generalize inputs.
8703         (scan_translation_unit_trad): Use it.
8704         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
8705         output, get escaped newline in comment close correct.
8706         (check_output_buffer, skip_whitespace): Update.
8707         (_cpp_lex_identifier_trad): Remove.
8708         (scan_out_logical_line): Handle -C and comments in directives
8709         properly.
8710
8711 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
8712
8713         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
8714         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
8715         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
8716         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
8717         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
8718         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
8719         (SELECT_SH5_COMPACT_NOFPU): Likewise.
8720         (TARGET_SWITCHES): Use them.
8721         (TARGET_CPU_DEFAULT): Define if not already defined.
8722         (TARGET_DEFAULT): Use it.
8723         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
8724         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
8725         * config/sh/t-monolib: New file.
8726
8727 2002-06-13  Roger Sayle  <roger@eyesopen.com>
8728
8729         * toplev.c (rest_of_compilation): Simplify (and correct) the
8730         logic of the first delete-null-pointer-checks pass.
8731
8732 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
8733
8734         * i386.c (ix86_expand_movstr):  Fix pasto.
8735
8736 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
8737
8738         * reload.c (find_valid_class):  Fix thinko in my previous patch.
8739
8740 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
8741
8742         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
8743         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
8744         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
8745         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
8746
8747 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
8748
8749         * tree-inline.c (expand_call_inline): Don' mess with _DECL
8750         fields.
8751
8752 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
8753
8754         * diagnostic.c (output_format): Recognize "%H" as a format
8755         specifier for a location_t.
8756         (text_specifies_location): New function.
8757         (diagnostic_set_info): Use it.
8758
8759 2002-06-13  Jeffrey Law  <law@redhat.com>
8760
8761         * emit-rtl.c (static_regno_reg_rtx): Define.
8762         (init_emit_once): Initialize static_regno_reg_rtx.
8763         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
8764         of building new hard reg objects once per function.
8765         (gen_rtx_REG): Try to share hard regs.
8766         * regclass.c (init_fake_stack_mems): New function broken out from
8767         init_regs.
8768         * rtl.h (init_fake_stack_mems): Declare.
8769         * toplev.c (lang_independent_init): Call init_regs before
8770         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
8771
8772         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
8773
8774         * alias.c (argument_registers): Remove.
8775         (init_alias_once): Initialize static_reg_base_value here.  Remove
8776         initialization of argument_registers.
8777         (init_alias_once_per_function): Remove.
8778         (init_alias_analysis): Copy all the entries from static_reg_base_value
8779         into new_reg_base_value all at once.
8780         * rtl.h (init_alias_once_per_function): Remove declaration.
8781         * function.c (prepare_function_start): Do not call
8782         init_alias_once_per_function.
8783
8784         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
8785         starting a sequence and emitting an INSN.
8786
8787 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
8788
8789         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
8790
8791 2002-06-13  David S. Miller  <davem@redhat.com>
8792
8793         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
8794
8795 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8796
8797         * cpplib.c (end_directive): Handle line skipping.  Only remove
8798         the rest of the line if the directive was valid.
8799         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
8800         expanding a traditional macro.
8801         * cpptrad.c (recursive_macro): New.
8802         (read_logical_line_trad): Handle skipping.
8803         (scan_out_logical_line): Continue after a successful directive.
8804         Don't expand macros whilst skipping, or if recursing.
8805         (_cpp_create_trad_definition): scan_out_logical_line now sets
8806         the output current position.
8807
8808 2002-06-12  Eric Christopher  <echristo@redhat.com>
8809
8810         From Chris Demetriou  <cgd@broadcom.com>
8811         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
8812         comment.
8813         (ISA_HAS_MADD_MSUB): Ditto.
8814         (ISA_HAS_NMADD_NMSUB): Ditto.
8815
8816 2002-06-12  Eric Christopher  <echristo@redhat.com>
8817
8818         * config.gcc: Consolidate little endian handling and
8819         little/big endian targets.
8820         * config/mips/elfl.h: Remove file.
8821         * config/mips/elfl64.h: Ditto.
8822         * config/mips/ecoffl.h: Ditto.
8823         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
8824
8825 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
8826
8827         * gengtype.h (xvasprintf): New prototype.
8828         (xasprintf): New prototype.
8829         (struct outf): New.
8830         (get_output_file): Return an outf_p.
8831         (header_file): Is now an outf_p.
8832         (base_files): Now are outf_p.
8833         (oprintf): New.
8834         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
8835         rather than stdio operations.  Use xasprintf in a few places,
8836         when appropriate.
8837         (xvasprintf): New.
8838         (xasprintf): New.
8839         (struct filemap): Delete.
8840         (files): Delete.
8841         (output_files): New.
8842         (oprintf): New.
8843         (create_file): Create an outf_p.  Add parameter to indicate output
8844         file name, change all callers.
8845         (open_base_files): Create gtype-desc.c here.
8846         (get_output_file_with_visibility): Rewrite.
8847         (get_output_file_name): Just look at 'name' field in struct outf.
8848         (close_output_files): Rewrite.
8849
8850 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
8851
8852         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
8853         (MASK_G_FLOAT): Define.
8854         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
8855         (TARGET_SWITCHES): Likewise.
8856         (TARGET_DEFAULT): Likewise.
8857
8858 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
8859
8860         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
8861         * config/mips/mips.c (mips_output_filename): Don't print a
8862         ".file" directive if we are using DWARF-2.
8863         (mips_output_function_prologue): Do not emit source file
8864         name for TARGET_GAS.
8865
8866 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
8867
8868         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
8869         decide whether emit the short opcode.
8870         * i386.h (x86_shift1): Declare.
8871         (TARGET_SHIFT1): New macro.
8872         * i386.c (x86_shift1): New global variable.
8873
8874         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
8875         unconditionally; make loop to rebuild CFG; kill unnecesary
8876         find_basic_block calls; kill compute_bb_for_insn call.
8877         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
8878         * haifa-sched.c (sched_init): Likewise.
8879         * ssa-ccp.c (ssa_const_prop): Likewise.
8880         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8881
8882 2002-06-11  David S. Miller  <davem@redhat.com>
8883
8884         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
8885         active_insn_p.
8886
8887 2002-06-11  Richard Henderson  <rth@redhat.com>
8888
8889         * c-common.c (builtin_define_type_max): New.
8890         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
8891         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
8892
8893         From Joseph S. Myers:
8894         * glimits.h: Rewrite to expect the double underscore definitions
8895         from the compiler.
8896
8897         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
8898         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
8899         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
8900         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8901         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
8902         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
8903         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
8904         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
8905
8906 2002-06-11  Richard Henderson  <rth@redhat.com>
8907
8908         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
8909         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
8910         (code_for_builtns): Update.
8911         (alpha_init_builtins): Add __builtin_thread_pointer and
8912         __builtin_set_thread_pointer.
8913         (alpha_expand_builtin): Handle void builtins.
8914         * doc/extend.texi (Alpha Built-in Functions): Update.
8915
8916 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
8917
8918         PR target/6997
8919         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
8920
8921 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8922
8923         * config.gcc: Make the name of the extra-modes file adjustable
8924         by target stanzas.
8925         (s390x, strongarm, xscale stanzas): Use this facility.
8926         * configure.in: Update to match.
8927         * configure: Regenerate.
8928
8929 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
8930
8931         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
8932         max/mins as unsigned GE compares.
8933
8934 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
8935
8936         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
8937         * config/vax/bsd.h: New file.
8938         * config/vax/netbsd.h: Add missing notice.
8939         (CPP_PREDEFINES): Remove.
8940         (TARGET_OS_CPP_BUILTINS): Define.
8941         (CPP_SPEC): Use NETBSD_CPP_SPEC.
8942         * config/vax/openbsd.h: Update copyright years.
8943         (CPP_PREDEFINES): Remove.
8944         (TARGET_OS_CPP_BUILTINS): Define.
8945         * config/vax/ultrix.h: Likewise.
8946         * config/vax/vaxv.h: Likewise.
8947         * config/vax/vms.h: Likewise.
8948         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
8949         (CPP_PREDEFINES, CPP_SPEC): Remove.
8950
8951 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
8952
8953         * i386.md (addqi_1_slp, subqi_1_slp
8954         (andqi_ext0, testqi_ext0): Remove unnecesary check.
8955         (addhi*, addqi*): Simplify "dec" condition.
8956         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
8957         (and, or, xor to QImode splitters): New.
8958         (iorqi_ext*): New.
8959         (xorqi_ext_0): New.
8960         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
8961         (andqi_ext_1_rex64): New.
8962         (ashrqi*_slp): New.
8963         (ashlqi*_slp): New.
8964         (lshlqi*_slp): New.
8965         (rotrqi3*_slp): New.
8966         (rotlqi3*_slp): New.
8967
8968 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8969
8970         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
8971         softfloat.h.
8972         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
8973         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8974         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
8975         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
8976         __LONG_DOUBLE_128__ setting, _CALL_* setting.
8977         (CPP_DEFAULT_SPEC): Delete.
8978         (CPP_FLOAT_DEFAULT_SPEC): Delete.
8979         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
8980         (CPP_SYSV_DEFAULT_SPEC): Delete.
8981         (CPP_ENDIAN_BIG_SPEC): Delete.
8982         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8983         (CPP_ENDIAN_SPEC): Delete.
8984         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
8985         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
8986         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
8987         cpp_longdouble_default.
8988         * config/rs6000/softfloat.h: Delete.
8989         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
8990         (EXTRA_SPECS): Delete cpp_cpu.
8991         (TARGET_CPU_CPP_BUILTINS): New.
8992         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
8993         prototype.
8994         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
8995         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
8996         (CPP_DEFAULT_SPEC): Delete.
8997         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
8998         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
8999         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
9000         (CPP_DEFAULT_SPEC): Delete.
9001         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
9002         (CPLUSPLUS_CPP_SPEC): Likewise.
9003         (CPP_CPU_SPEC): Delete.
9004         (CPP_DEFAULT_SPEC): Delete.
9005         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
9006         (CPLUSPLUS_CPP_SPEC): Likewise.
9007         (CPP_CPU_SPEC): Delete.
9008         (CPP_DEFAULT_SPEC): Delete.
9009         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
9010         (CPP_DEFAULT_SPEC): Delete.
9011         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
9012         (CPP_DEFAULT_SPEC): Delete.
9013
9014         * doc/gty.texi: Small updates.
9015
9016 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
9017
9018         * objc/objc-act.c (warn_with_ivar): Adjust calls to
9019         diagnostic_count_error.
9020         (warn_with_method): Likewise.
9021
9022         * diagnostic.h (warnings_are_errors_message): New field of
9023         diagnostic_context.
9024         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
9025         match semantics.
9026         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
9027         (diagnostic_count_diagnostic): Make aware of other kinds of
9028         diagnostics.
9029         (diagnostic_initialize): Initialize warnings_are_errors_message field.
9030
9031 2002-06-11  Tom Tromey  <tromey@redhat.com>
9032
9033         For PR java/6520:
9034         * fold-const.c (fold_convert): Don't modify existing tree's type.
9035
9036 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
9037
9038         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
9039
9040 2002-06-11  Richard Henderson  <rth@redhat.com>
9041
9042         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
9043
9044 2002-06-11  Richard Henderson  <rth@redhat.com>
9045
9046         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
9047         DWARF2_UNWIND_INFO is false.
9048
9049 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
9050
9051         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
9052
9053         * config/s390/s390.c (emit_prologue): gen_store_multiple
9054         returns an insn now, not a pattern.
9055
9056 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9057
9058         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
9059         $(TEXI2DVI) -o.
9060
9061 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
9062
9063         * i386.c (x86_promote_QImode): Set for Athlon
9064         (x86_fast_prefix): New global variable.
9065         (x86_arch_always_fancy_math_387): Fix formating.
9066         * i386.h (x86_fast_prefix): Declare
9067         (TARGET_FAST_PREFIX): define.
9068         * i386.md (and to strict_low_part, HI to SI
9069         promoting splitter): Use new macro.
9070
9071         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
9072
9073 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
9074
9075         * Makefile.in (distclean): Delete junk left in testsuite
9076         directory, too.
9077
9078 2002-06-11  Jeffrey Law <law@redhat.com>
9079
9080         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
9081         last insn created by the splitter.
9082
9083         * caller-save.c (init_caller_save): Move creation of SAVEINSN
9084         and RESTINSN into into the scope of the sequence.
9085
9086         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
9087         RETURN insns.
9088
9089         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
9090
9091         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
9092         not the pattern.  So extract the pattern from the insn.
9093
9094         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
9095
9096 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
9097
9098         * config/s390/s390.md (movsi): Only use floating point
9099         register alternatives when operands are already fprs.
9100         (movdi_31, movdi_64): Likewise.
9101
9102 2002-06-11  David S. Miller  <davem@redhat.com>
9103
9104         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
9105         Only run RTX equality checks on INSN_P rtl.
9106
9107 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
9108
9109         * config/s390/s390.md (reload_base, ltorg): Remove.
9110         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
9111         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
9112         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
9113         s390_asm_output_pool_prologue): Likewise.
9114         * s390.h (s390_pool_start_insn): Likewise.
9115
9116         * s390.c (s390_output_symbolic_const): Remove support for
9117         old-style pool chunks.
9118         (s390_function_epilogue): Likewise.
9119         (s390_output_constant_pool): Likewise.  Also, fix incorrect
9120         alignment for 64-bit literal pools.
9121         (print_operand_address): Remove 'y' and 'Y' format flags.
9122         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
9123         old-style pool chunks.
9124         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
9125         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
9126         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
9127
9128         * s390.c (consttable_operand): New function.
9129         * s390-protos.h (consttable_operand): Declare it.
9130         * s390.h (PREDICATE_CODES): Add consttable_operand.
9131         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
9132         consttable_sf, consttable_df, pool_start_31, pool_end_31,
9133         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
9134         * s390.c (struct constant, struct constant_pool): New data types.
9135         (constant_modes, gen_consttable): New variables.
9136         (s390_start_pool, s390_end_pool, s390_add_pool,
9137         s390_dump_pool, s390_free_pool): New functions.
9138         (s390_chunkify_pool): Completely reimplement literal pool
9139         overflow handling.
9140
9141         * s390.c (s390_pool_overflow): New variable.
9142         * s390.h (s390_pool_overflow): Declare it.
9143         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
9144         jumps in literal pool overflow situations.
9145
9146         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
9147         (s390_frame_info): Account for possible use of RETURN_REGNUM
9148         by new literal pool overflow code.
9149         (s390_emit_prologue): Likewise.
9150
9151 2002-06-05  David S. Miller  <davem@redhat.com>
9152
9153         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
9154         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
9155         emit_insns_before_scope, emit_insns_after,
9156         emit_insns_after_scope): Delete declaration.
9157         * ada/misc.c (insert_code_for): Use emit_insn* instead of
9158         emit_insns_foo.
9159         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
9160         (alpha_set_memflags): Fix comment.
9161         (set_frame_related_p): Use get_insns instead of gen_sequence.
9162         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
9163         emitting no insns.
9164         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
9165         gen_sequence.
9166         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
9167         * config/fr30/fr30.c (fr30_move_double): Likewise.
9168         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
9169         Likewise.
9170         * config/ia64/ia64.c (spill_restore_mem): Likewise.
9171         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
9172         no insns.
9173         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
9174         instead of gen_sequence.
9175         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
9176         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
9177         * config/sh/sh.c (sh_need_epilogue): Likewise.
9178         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
9179         attributes.
9180         (setjmp pattern and split): Use them to avoid splitter which emits
9181         no RTL.
9182         * genattrtab.c (main): Emit include of function.h
9183         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
9184         get_insns instead of gen_sequence.
9185         * config/cris/cris.c (cris_split_movdx): Likewise.
9186         * emit-rtl.c (emit_insns*): Kill.
9187         (try_split): Expect insn list instead of SEQUENCE.
9188         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
9189         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
9190         Make them abort if a SEQUENCE is given and RTL checking is
9191         enabled.
9192         (emit_*_scope): Don't forget to set scope on final insn.
9193         (gen_sequence): Move from here...
9194         * ssa.c (gen_sequence): To here as private function.
9195         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
9196         comments.
9197         (expand_builtin_return, expand_builtin_mathfn): Likewise.
9198         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
9199         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
9200         (expand_builtin_expect_jump): Use get_insns and fix comments.
9201         * calls.c (try_to_integrate): Use emit_insn_foo.
9202         (expand_call, emit_library_call_value_1): Likewise.
9203         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
9204         (emit_move_insn_1): Use get_insns instead of gen_sequence.
9205         (expand_expr): Use emit_insn_foo.
9206         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
9207         * except.c (build_post_landing_pads): Likewise.
9208         * flow.c (attempt_auto_inc): Likewise.
9209         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
9210         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
9211         * function.c (fixup_var_refs_insn): Use get_insns instead of
9212         gen_sequence.
9213         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
9214         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
9215         (fixup_stack_1, purge_addressof_1, expand_main_function,
9216         get_arg_pointer_save_area): Likewise.
9217         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
9218         expand_function_end): Use emit_insn_foo.
9219         (record_insns, keep_stack_depressed): Work with insn list instead
9220         of SEQUENCE, fix comments.
9221         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
9222         noce_try_store_flag_constants, noce_try_store_flag_inc,
9223         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
9224         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
9225         (noce_process_if_block): Use get_insns instead of gen_sequence.
9226         * optabs.c (add_equal_note): Work with insn list, fix comments.
9227         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
9228         (expand_unop, expand_complex_abs, expand_unop_insn,
9229         expand_no_conflict_block): Likewise.
9230         (gen_move_insn): Use get_insns instead of gen_sequence.
9231         (gen_cond_trap): Likewise.
9232         * integrate.c (copy_rtx_and_substitute): Likewise.
9233         (emit_initial_value_sets): Use emit_insn_foo.
9234         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
9235         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
9236         now that RTL generators give insn lists.
9237         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
9238         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
9239         instead of gen_sequence.
9240         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
9241         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
9242         instead of gen_sequence.
9243         * loop.c (move_movables, emit_prefetch_instructions,
9244         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
9245         Likewise.
9246         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
9247         (product_cheap_p): Likewise, and add commentary about RTL wastage
9248         here.
9249         * lcm.c (optimize_mode_switching): Use get_insns instead of
9250         gen_sequence.
9251         * profile.c (gen_edge_profiler): Likewise.
9252         * regmove.c (copy_src_to_dest): Likewise.
9253         * reg-stack.c (compensate_edge): Likewise and fix comment.
9254         * gcse.c (process_insert_insn): Likewise.
9255         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
9256         * jump.c (delete_prior_computation): Update comment.
9257         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
9258         of gen_sequence, update comments to match.
9259         * recog.c (peephole2_optimize): Work with insn lists instead of
9260         SEQUENCE rtl.
9261         * sched-vis.c (print_pattern): Abort on SEQUENCE.
9262         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
9263         Use get_insns instead of gen_sequence.
9264         (copy_loop_body): Likewise and don't emit dummy NOTE.
9265         * genrecog.c: Don't mention SEQUENCE rtl in comments.
9266         * combine.c (try_combine): Expect insn lists from split generator.
9267         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
9268         hand.
9269
9270 2002-06-11  Roger Sayle  <roger@eyesopen.com>
9271             Andreas Jaeger <aj@suse.de>
9272
9273         * cfgbuild.c: Update copyright years.
9274
9275 2002-06-11  Andreas Schwab  <schwab@suse.de>
9276
9277         * config/m68k/m68k.h (PREDICATE_CODES): Define.
9278
9279 2002-06-11  Eric Christopher  <echristo@redhat.com>
9280
9281         * doc/tm.texi (Run-time Target): Add comment about flag_iso
9282         and strict ANSI.
9283         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
9284         * config/mips/ecoffl.h: Ditto.
9285         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
9286         (CPP_PREDEFINES): Ditto.
9287         * config/mips/elfl64.h: Ditto.
9288         * config/mips/elfl.h: Ditto.
9289         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
9290         out until irix header consolidation.
9291         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
9292         with SUBTARGET_OS_CPP_BUILTINS.
9293         * config/mips/iris6.h: Ditto.
9294         (CPLUSPLUS_CPP_SPEC): Remove.
9295         * config/mips/linux.h: Ditto.
9296         * config/mips/netbsd.h: Ditto.
9297         * config/mips/openbsd.h: Ditto.
9298         * config/mips/rtems.h: Ditto.
9299         * config/mips/rtems64.h: Ditto.
9300         * config/mips/sni-svr4.h: Ditto.
9301         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
9302         ISA_MIPS32, ISA_MIPS64): New defines.
9303         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
9304         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
9305         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9306         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
9307         (TARGET_CPU_CPP_BUILTINS): Define.
9308         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
9309         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
9310         (movdicc): Remove check for ISA_MIPS32.
9311          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
9312         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
9313         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
9314         sunge_sf, sunle_df, sunle_sf): New patterns.
9315
9316 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9317
9318         * Makefile.in: Update cppmain.o.
9319         * cpphash.h (struct cpp_reader): Move some members to a
9320         nested structure.
9321         (trad_line): Rename saved_line.
9322         (_cpp_read_logical_line_trad): Update.
9323         (_cpp_remove_overlay): New.
9324         * cppinit.c (cpp_create_reader): No need to set saved_line.
9325         (cpp_destroy): Update.
9326         (cpp_read_main_file): Only overlay if compiling.
9327         * cpplex.c (continue_after_nul): Return false if in directive.
9328         * cpplib.c (EXPAND): New.
9329         (directive_table, SEEN_EOL): Update.
9330         (end_directive): Remove overlay if traditional; don't skip
9331         line in traditional #define.
9332         (prepare_directive_trad): New.
9333         (_cpp_handle_directive, run_directive): Update for traditional
9334         directives.
9335         (lex_macro_node): Simplify, don't use lex_identifier_trad.
9336         * cpplib.h (struct options): Add preprocess_only.
9337         * cppmain.c: Don't include intl.h.
9338         (cpp_preprocess_file): Set options->preprocess_only.
9339         (scan_translation_unit_trad): Fix, and print line numbers.
9340         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
9341         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
9342         save_replacement_text, _cpp_create_trad_definition): Update for
9343         variable renaming.
9344         (_cpp_overlay_buffer): Save line number.
9345         (_cpp_remove_overlay): Rename from restore_buff, restore line.
9346         (_cpp_read_logical_line_trad): Don't handle overlays here.
9347         (scan_out_logical_line): Process directives.
9348
9349 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
9350
9351         * gthr-win32.h: Wrap functions in extern "C".
9352         (__gthread_key_t): Typedef as unsigned long,
9353         not win32 DWORD.
9354         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
9355         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
9356         (__gthr_win32_once, __gthr_win32_key_create,
9357         __gthr_win32_key_delete, __gthr_win32_getspecific,
9358         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9359         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9360         __gthr_win32_mutex_unlock): Declare.
9361         (__gthread_once,__gthread_key_create,
9362         __gthread_key_delete, __gthread_getspecific,
9363         __gthread_setspecific, __gthread_mutex_init_function,
9364         __gthread_mutex_lock,__gthread_mutex_trylock,
9365         __gthread_mutex_unlock): Call corresponding
9366         __gthr_win32_* extern implementations if #defined
9367         __GTHREAD_HIDE_WIN32API.
9368         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
9369         $(srcdir)/config/i386/gthr-win32.c
9370         * config/i386/gthr-win32.c: New implementation file.
9371         (__gthr_win32_once, __gthr_win32_key_create,
9372         __gthr_win32_key_delete, __gthr_win32_getspecific,
9373         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9374         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9375         __gthr_win32_mutex_unlock): New functions, based on
9376         static inlines in gthr-win32.h.
9377
9378 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
9379
9380         * config/xtensa/xtensa.c (override_options): Don't warn about
9381         using -fpic or -fPIC when PIC is enabled by default.
9382
9383 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9384
9385         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
9386
9387 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9388
9389         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
9390         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
9391         exists, substitute its pathname as @extra_modes_file@, define
9392         EXTRA_MODES_FILE to be an appropriate string to #include it
9393         with, and define EXTRA_CC_MODES to 1.
9394
9395         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
9396         it's defined.  Get rid of redundancy in calling sequence for
9397         CC; don't use it to define CCmode, to avoid a warning.
9398         * libgcc2.c: Include symcat.h for the sake of machmode.def.
9399
9400         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
9401         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
9402         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
9403         New files.
9404         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
9405         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
9406
9407         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
9408         defining extra CC modes.
9409
9410 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9411             Andreas Jaeger <aj@suse.de>
9412
9413         * cfgrtl.c (create_basic_block_structure):  Remove index argument
9414         and use last_basic_block++ instead.  (create_basic_block): Update.
9415         * cfgbuild.c (find_basic_blocks_1): Likewise.
9416
9417         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
9418         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
9419         * sched-ebb.c (schedule_ebbs): Likewise.
9420         * sched-rgn.c (schedule_insns): Likewise.
9421         * ssa-ccp.c (ssa_const_prop): Likewise.
9422         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
9423         * toplev.c (rest_of_compilation): Likewise.
9424         * config/ia64/ia64.c (ia64_reorg): Likewise.
9425
9426 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9427
9428         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
9429         of matching registers.
9430
9431 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9432
9433         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
9434         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
9435
9436 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
9437
9438         * config/mmix/mmix.h: Improve comments.
9439         (CPP_SPEC, CPP_PREDEFINES): Don't define.
9440         (TARGET_CPU_CPP_BUILTINS): Define.
9441         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
9442         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
9443         unused predicate.
9444         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
9445         compiler warning.
9446         (mmix_constant_address_p): Remove another
9447         redundant test before case.
9448         (mmix_canonicalize_comparison): Remove unused function.
9449         (mmix_print_operand_address): Don't test and adjust for operand in
9450         non-canonical format.
9451         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
9452         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
9453
9454 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9455
9456         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
9457         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
9458         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
9459         (gen_compare): Use CCmode unconditionally.
9460
9461 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9462
9463         PR optimization/6759
9464         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
9465         the REQ_EQUAL note.
9466
9467 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9468
9469         PR c/6660
9470         * c-decl.c (grokfield): Allow user defined types if they declare
9471         structs or unions for unnamed fields.
9472
9473 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9474
9475         PR c/6809
9476         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
9477
9478 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9479
9480         PR optimization/6842
9481         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
9482         operand subreg cannot be simplified.
9483
9484 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9485
9486         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
9487         (compare_constant): Likewise.
9488         (output_addressed_constants): Likewise.
9489
9490 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9491
9492         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
9493         merge bb with itself.
9494
9495 2002-06-10  Richard Henderson  <rth@redhat.com>
9496
9497         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
9498         (builtin_zapnot): Likewise.
9499
9500         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
9501         reservation.
9502
9503 2002-06-10  Eric Christopher  <echristo@redhat.com>
9504
9505         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
9506         prototype and function.
9507         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
9508         (call_insn_operand): Remove half pic references.
9509         (legitimate_address_p): Ditto.
9510         * config/i386/i386.h: Remove half pic defines.
9511
9512 2002-06-10  Eric Christopher  <echristo@redhat.com>
9513
9514         * doc/extend.texi (Return Address): Add note explaining the side-
9515         effects of inlining on __builtin_return_address.
9516
9517 2002-06-10  Tom Tromey  <tromey@redhat.com>
9518
9519         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
9520         (c-common.o): Depend on langhooks.h.
9521
9522 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9523
9524         * cpphash.h (_cpp_read_logical_line_trad,
9525         _cpp_expansions_different_trad): Update prototypes.
9526         * cpplex.c (continue_after_nul): New.
9527         * cppmain.c: Include cpphash.h.
9528         (scan_translation_unit_trad): New.
9529         (cpp_preprocess_file): Call it.
9530         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
9531         overlay.
9532         (_cpp_expansions_different_trad): Update prototype.
9533
9534 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9535
9536         Fix cfi generation for SH[1-4]:
9537
9538         * sh.c (frame_insn): New function.
9539         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
9540         (push): Now returns rtx.  Use frame_insn.
9541         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
9542         of a DF register.
9543         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
9544
9545 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9546
9547         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
9548         and gtype-desc.c.
9549         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
9550         (distclean): ... not here.  But do delete all testsuite/*.log,
9551         testsuite/*.sum files here.  Delete mkheaders.  Delete
9552         po/*.gmo and the testsuite directory in a split tree build.
9553
9554 2002-06-10  Jeffrey Law  <law@redhat.com>
9555
9556         * alias.c (static_reg_base_value): New to hold RTL for
9557         items allocated once per function for the aliasing code.
9558         (init_alias_once_per_function): Initialize static_reg_base_value.
9559         (init_alias_analysis): Avoid throw-away allocations of RTL by
9560         using pre-computed values in static_reg_base_value.
9561         * function.c (prepare_function_start): Call
9562         init_alias_once_per_function appropriately.
9563         * rtl.h (init_alias_once_per_function): Declare.
9564         * caller-save (init_caller_save): Restructure slightly to
9565         avoid lots of silly RTL generation.
9566         * expr.c (init_expr_once): Likewise.
9567         * reload1.c (reload_cse_regs_1): Allocate throw-away register
9568         RTL object here.  Pass it into children.
9569         (reload_cse_simplify_operands): Use passed-in register RTL
9570         object.
9571         (reload_cse_simplify): Pass through throw-away register
9572         RTL object.
9573
9574 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
9575
9576         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
9577
9578 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
9579
9580         * gcc.c (process_command): Avoid assignment to read-only location.
9581         Fix sizeof calculation.
9582
9583 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9584
9585         * cpphash.h (struct cpp_macro): Put comments on their own lines.
9586         (_cpp_expansions_different_trad): New.
9587         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
9588         * cpptrad.c (canonicalize_text): New.
9589         (scan_out_logical_line): Handle no arguments correctly.
9590         (save_replacement_text): Commit memory when finished.
9591         (_cpp_expansions_different_trad): New.
9592
9593 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9594
9595         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
9596         TREELANG and COBOL.
9597         (lang_names): Add treelang and cobol.
9598         (get_file_basename): Add code to support treelang and cobol as
9599         4th and 5th users of c-common.c.
9600
9601 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
9602
9603         * Makefile.in (install-driver): Install driver as
9604         $(target_alias)-gcc-$(version).
9605         * gcc.c (spec_version): Make const.
9606         (process_command): Handle -V and -b by using exec.
9607         * doc/invoke.texi (Target Options): Restore -V option,
9608         update docs for -b option.
9609
9610 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9611
9612         * configure.in (remaining_languages_check):
9613         Added check that all languages specified were found.
9614         Exit if not found. Previous behavior was silent failure.
9615         * configure: Regenerated.
9616
9617 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9618
9619          First steps to making treelang documentation compliant, based on
9620          instructions in sourcebuild.texi. Also add to gcc.c list of
9621          default languages.
9622
9623         * doc/contrib.texi: Add self as contributor of treelang.
9624
9625         * doc/frontends.texi: Add mention of treelang.
9626
9627         * doc/invoke.texi (Overall Options): Add mention of treelang.
9628
9629         * doc/standards.texi:  Add mention of treelang.
9630
9631 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
9632
9633         * config/cris/cris.c: Include ggc.h
9634
9635 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9636
9637         * cpphash.h (_cpp_push_text_context): Update.
9638         (_cpp_arguments_ok): New.
9639         * cppmacro.c (_cpp_arguments_ok): New, split out from...
9640         (collect_args): ...here.
9641         (_cpp_push_text_context): Change inputs.
9642         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
9643         replace_args_and_push): New.
9644         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
9645         Don't use IS macros directly.
9646         (scan_out_logical_line): Handle function-like macro argument
9647         collection.
9648         (push_replacement_text): Update.
9649         (replacement_length): Remove.
9650         (_cpp_create_trad_definition): Don't skip whitespace before
9651         checking for '('.
9652
9653 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9654
9655         * config/avr/avr.c (avr_mcu_types): Update for new devices.
9656         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
9657         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
9658         * config/avr/avr.md ("type" and "length" attributes): New type
9659         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
9660         output a single "call" or "rcall" insn depending on device size.
9661         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
9662
9663 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
9664
9665         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
9666         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
9667         assembler option.
9668         (CPP_CPU_SPEC): Add power3 and power4.
9669         (PROCESSOR_DEFAULT): Change to 604e.
9670         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
9671         (CPP_CPU_SPEC): Similar additions.
9672         (enum process_type): Add POWER4.
9673         (RTX_COSTS): Add POWER4.
9674         (CPP_CPU_SPEC): Similar additions.
9675         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9676         (PROCESSOR_DEFAULT64): Define.
9677         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
9678         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
9679         branch adjustment.
9680         (rs6000_issue_rate): Add Power4.
9681         * config/rs6000/rs6000.md (cpu attr): Add power4.
9682         (iu compare): Remove 604, 604e, 620, 630.
9683         Add basic Power4 scheduling information.
9684         (mfcr/mtcrf): Change type attribute to cr_logical.
9685
9686 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9687
9688         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
9689         ATTRIBUTE_PRINTF_2.
9690         * gengtype-lex.l: Fix format specifier warning.
9691
9692         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
9693         not isspace.
9694         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
9695         lieu of isspace/IDchar.
9696         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
9697         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
9698         ISSPACE.
9699
9700 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
9701
9702         * Makefile.in (LIBCPP_OBJS): Take out version.o.
9703         * cpphash.h (cpp_reader): Take out print_version member.
9704         * cppinit.c: (cpp_handle_option): Don't do anything with
9705         -version.  Just set help_only for --version, --target-help.
9706         Just set verbose option for -v.
9707         (cpp_post_options): Don't print a version string.
9708
9709 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9710
9711         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
9712         (avr_section_type_flags): New, handle .noinit* sections.
9713
9714 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9715
9716         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
9717         and include netbsd_entry_point.
9718         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9719         (NETBSD_ENTRY_POINT): Define.
9720
9721 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9722
9723         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
9724         if not already defined.
9725         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
9726
9727 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9728
9729         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
9730         in a noreturn function.
9731         (avr_output_function_prologue, avr_output_function_epilogue):
9732         Correct function size calculation.  Do not crash on empty function.
9733         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
9734
9735 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9736
9737         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9738         netbsd_link_spec and netbsd_entry_point.
9739         (LINK_SPEC): Use %(netbsd_link_spec).
9740         (NETBSD_ENTRY_POINT): Define.
9741
9742 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9743
9744         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
9745         linker emulation.
9746         (LINK_ARCH64_SPEC): Likewise.
9747         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
9748         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
9749
9750 2002-06-08  Marc Espie  <espie@openbsd.org>
9751
9752         * lists.c (free_list):  Fix typo in comment.
9753
9754 2002-06-08  Andreas Jaeger  <aj@suse.de>
9755
9756         * lcm.c (optimize_mode_switching): Add unused attribute for
9757         variable.
9758
9759         * sched-deps.c (sched_analyze): Remove unused variable.
9760
9761 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
9762
9763         * diagnostic.def: Don't capitalize diagnostict descriptors.
9764
9765 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9766
9767         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
9768         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9769         (NETBSD_ENTRY_POINT): Define.
9770
9771 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9772
9773         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
9774         NETBSD_LINK_SPEC_ELF.
9775         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
9776         (NETBSD_ENTRY_POINT): Define.
9777         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
9778         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
9779         netbsd_entry_point.
9780         (NETBSD_ENTRY_POINT): Define.
9781
9782 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9783
9784         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9785         netbsd_link_spec and netbsd_entry_point.
9786         (LINK_SPEC): Use %(netbsd_link_spec).
9787         (NETBSD_ENTRY_POINT): Define.
9788
9789 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9790
9791         * config/netbsd-elf.h (LINK_SPEC): Rename to...
9792         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
9793         to specify program entry point.
9794
9795 2002-06-07  Jeff Law <law@redhat.com
9796
9797         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
9798         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
9799         than creating a new register.
9800         (distribute_notes): Likewise.
9801         * df.c (df_reg_use_gen): Likewise.
9802         (df_reg_clobber_gen): Likewise.
9803         (df_ref_record): Likewise.
9804         * expr.c (use_regs): Likewise.
9805         * flow.c (propagate_one_insn): Likewise.
9806         (mark_set_1): Likewise.
9807         (mark_used_reg): Likewise.
9808         * reload.c (emit_reload_insns): Likewise.
9809
9810 2002-06-07  Roger Sayle  <roger@eyesopen.com>
9811
9812         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
9813         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
9814         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
9815         comparison code comp can be reversed.
9816
9817 2002-06-07  Roger Sayle  <roger@eyesopen.com>
9818
9819         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
9820         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
9821         equivalent x > -1.0 when -ffast-math.
9822
9823 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9824
9825         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
9826         * config/mips/t-netbsd: New file.
9827
9828 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
9829
9830         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
9831         options their own entries.
9832         (parse_option): Clarify comment.
9833         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
9834         special case.  Replace if/strcmp chain for -W options with
9835         use of new OPT_* entries for them.
9836         (cpp_handle_options): Update to match.
9837         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
9838         * c-decl.c: Update call to cpp_handle_option.
9839
9840 2002-06-07  Akim Demaille  <akim@epita.fr>
9841
9842         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
9843         Whitespace changes.
9844
9845 2002-06-07  Jeffrey Law  <law@redhat.com>
9846
9847         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
9848         on empty lists.
9849
9850 2002-06-07  H.J. Lu  (hjl@gnu.org)
9851
9852         * configure.in: Add --enable-__cxa_atexit.
9853         * configure: Regenerated.
9854         * config.in: Likewise.
9855
9856         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
9857         not defined.
9858
9859 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
9860
9861         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
9862
9863 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9864
9865         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
9866
9867 2002-06-07  Jason Merrill  <jason@redhat.com>
9868
9869         * cppexp.c (num_equality_op): Use a temporary variable to work
9870         around gcc 3.0.4 bug.
9871
9872 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
9873
9874         * diagnostic.c (diagnostic_build_prefix): Tidy.
9875
9876 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9877
9878         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
9879         scan_parameters, save_replacement_text, replacement_length): New.
9880         (scan_out_logical_line): Take a macro and save parameters if
9881         non-NULL.
9882         (_cpp_logical_line_trad): Update.
9883         (_cpp_create_trad_definition): Update to handle function-like
9884         macros.
9885         * cpplex.c (new_buff): Update.
9886         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
9887         * cpphash.h: ...here.
9888         (CPP_ALIGN2, _cpp_save_parameter): New.
9889         * cppmacro.c (save_parameter): Rename, export.
9890         (parse_params): Update.
9891
9892 2002-06-07  Andreas Jaeger  <aj@suse.de>
9893
9894         * config/mmix/mmix.c: Remove extra broken prototype for
9895         mmix_init_machine_status.
9896
9897 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
9898
9899         * gengtype.c: Add comments before all the routines.
9900
9901 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9902
9903         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
9904         from and add t-sh64 to ${tmake_file}.
9905         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
9906         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
9907         * config/sh/t-netbsd-sh5-32: Remove.
9908         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
9909         MULTILIB_ENDIAN.
9910         (MULTILIB_DIRNAMES): Define.
9911
9912 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
9913
9914         * i386.md (and promoting splitters): Disable QI to SImode promoting
9915         when doing so changes immediate to be 32bit.
9916
9917         * rtl.h (emit_*_scope): Declare.
9918         * emit-rtl.c (emit_*_scope): New global functions.
9919         (try_split): Copy scope.
9920         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9921         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9922         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
9923         noce_process_if_block, find_cond_trap): Copy scopes.
9924         * recog.c (peephole2_optimize): likewise.
9925
9926 2002-06-06  Jeffrey Law  <law@redhat.com>
9927
9928         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
9929
9930 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
9931
9932         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
9933
9934 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9935
9936         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
9937         ($(docdir)/gccinstall.info): New target.
9938         (info): Depend on it.
9939         (gccinstall.dvi): New target.
9940         (dvi): Depend on it.
9941         * doc/.cvsignore: Ignore new info files.
9942         * doc/install.texi (@setfilename): Reflect new info filename.
9943
9944 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
9945
9946         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
9947         on an UNSPEC.
9948
9949 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9950
9951         PR objc/6834
9952         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
9953         c_common_get_alias_set.
9954         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
9955
9956 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9957
9958         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
9959         functions.
9960         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
9961         * avr/avr.c (avr_output_function_epilogue): Use above to determine
9962         function size.
9963         * pa/pa.c (pa_output_function_prologue): Likewise.
9964
9965 2002-06-05  David S. Miller  <davem@redhat.com>
9966
9967         * integrate.c (subst_constants): Handle 'B' RTL format.
9968
9969 2002-06-05  Eric Christopher  <echristo@redhat.com>
9970
9971         * varasm.c (make_decl_rtl): Fix comment for removed
9972         halfpic.c.
9973
9974 2002-06-05  Eric Christopher  <echristo@redhat.com>
9975
9976         * Makefile.in: Remove missed halfpic bits.
9977
9978 2002-06-05  Eric Christopher  <echristo@redhat.com>
9979
9980         * toplev.c: Remove half-pic.
9981         * config/mips/mips.c: Ditto.
9982         * config/mips/mips.h: Ditto. Remove unused defines.
9983         * config/mips/openbsd.h: Update comment to reflect above.
9984         * config/mips/mips.md: Remove half-pic constraints.
9985         * halfpic.h: Delete.
9986         * halfpic.c: Ditto.
9987
9988 2002-06-05  Jeffrey Law  <law@redhat.com>
9989
9990         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
9991         rejects (mem (lo_sum (reg) (unspec))), but will allow
9992         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
9993
9994 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9995
9996         * cpphash.h (_cpp_create_definition): Update prototype.
9997         (_cpp_push_text_context, _cpp_create_trad_definition): New.
9998         ( cpp_lex_identifier_trad): New.
9999         (_cpp_set_trad_context): New.
10000         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
10001         * cpplib.c (SEEN_EOL): Update.
10002         (lex_macro_node): Update for -traditional.
10003         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
10004         * cppmacro.c (_cpp_create_definition): Split into
10005         create_iso_definition() and _cpp_create_trad_definition().
10006         (warn_of_redefinition): Update prototype; handle traditional
10007         macros.
10008         (_cpp_push_text_context): New.
10009         * cpptrad.c (skip_whitespace, push_replacement_text): New.
10010         (lex_identifier): Call ht_lookup with correct start.
10011         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
10012         _cpp_set_trad_context): New.
10013         (scan_out_logical_line): Update to handle changing contexts.
10014
10015 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
10016
10017         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
10018         (shl*-*-elf*): Add.
10019         * config/sh/t-be (MULTILIB_ENDIAN): Set.
10020         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
10021         * t-sh (MULTILIB_ENDIAN): Set.
10022         (MULTILIB_OPTIONS): Use it.
10023         * t-sh64 (MULTILIB_OPTIONS): Likewise.
10024         (MULTILIB_DIRNAMES): Likewise.
10025
10026 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
10027
10028         * toplev.h (report_error_function): Remove.
10029
10030         * diagnostic.h (location_t): New datatype.
10031         (text_info): Likewise.
10032         (diagnostic_info): Likewise.
10033         (output_prefix): New macro.
10034         (diagnostic_last_function_changed): Likewise.
10035         (diagnostic_set_last_function): Likewise.
10036         (diagnostic_last_module_changed): Likewise.
10037         (diagnostic_set_last_module): Likewise.
10038         (report_diagnostic): Now macro.
10039         (diagnostic_set_info): Declare.
10040
10041         * diagnostic.c (report_problematic_module): Rename to
10042         diagnostic_repor_current_module.
10043         (set_diagnostic_context): Remove.
10044         (count_error): Rename to diagnostic_error_count.
10045         (error_function_changed): Remove.
10046         (record_last_error_function): Likewise.
10047         (error_module_changed): Likewise.
10048         (record_last_error_module): Likewise.
10049         (context_as_prefix): Rename to diagnostic_build_prefix.
10050         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
10051         (diagnostic_set_info): New function.
10052
10053         * objc/objc-act.c: #include diagnostic.h
10054         (error_with_ivar): Adjust call to count_error.
10055         (warn_with_method): Likewise.
10056         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
10057
10058 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
10059
10060         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
10061         lang_hooks.types.make_type instead of make_node; set up
10062         __va_list_tag type decl.
10063         (xtensa_builtin_saveregs): Remove broken use of
10064         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
10065         for saved registers; add varargs alias set.
10066
10067 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10068
10069 config:
10070         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
10071         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
10072         CPP_PREDEFINES and part of CPP_SPEC.
10073         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
10074         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
10075
10076 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
10077
10078         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
10079
10080 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
10081
10082         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
10083
10084 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
10085
10086         * gengtype-yacc.y: Make sure all rules end with a semicolon.
10087
10088 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
10089
10090         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
10091         typo in function prototype and include "ggc.h" header.
10092
10093 2002-06-04  Richard Henderson  <rth@redhat.com>
10094
10095         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
10096         (print_operand) ['U']: Likewise.
10097         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
10098         (alpha_expand_unaligned_store_words): Likewise.
10099         (alpha_expand_builtin_vector_binop): Fix typo.
10100         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
10101         umulh, and cix insns.
10102         (one_arg_builtins): Add cix builtins.
10103         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
10104         (alpha_expand_builtin): Fix typo in arity.
10105         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
10106         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
10107         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
10108         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
10109         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
10110         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
10111         builtin_ctlz, builtin_ctpop): New.
10112         * doc/extend.texi (Alpha Built-in Functions): Update.
10113
10114 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
10115
10116         * gengtype.c (write_gc_root): Don't unnecessarily prevent
10117         global variable-length arrays being roots.
10118
10119         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
10120         * configure.in (config_gtfiles): New variable.
10121         (all_gtfiles): Initialize from config_gtfiles.
10122         * configure: Regenerate.
10123
10124 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10125
10126 config/i386:
10127         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
10128         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
10129         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
10130         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
10131         win32.h (CPP_SPEC): Remove cpp_cpu.
10132         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
10133         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
10134
10135 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
10136
10137         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
10138
10139 2002-06-04  Jeff Law <law@redhat.com.
10140             David Edelsohn <edelsohn@gnu.org>
10141             Michael Matz <matz@kde.org>
10142
10143         * sched-int.h (struct deps): New field libcall_block_tail_insn.
10144         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
10145         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
10146         is set, then mark the current insn as being part of a libcall
10147         scheduling group.
10148         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
10149
10150         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
10151         insns against the issue rate.
10152
10153 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
10154
10155         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
10156         * final.c (final_scan_insn): Likewise.
10157         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
10158         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
10159         * haifa-sched.c (unlink_other_notes): Likeewise.
10160         (reemit_notes): Likewise.
10161         * print-rtl.c (print_rtx): Likewise.
10162         * sched-deps (sched-analyze): Likewise.
10163         * rtl.c (note_insn_name): Likewise.
10164         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
10165         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
10166         (RANGE_*): Kill.
10167
10168 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
10169
10170         * varasm.c (mark_constants): Handle RTX format 'B'.
10171
10172 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10173
10174         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
10175         (struct cpp_context): Add traditional fields.
10176         * cppmacro.c (paste_all_tokens, push_ptoken_context,
10177         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
10178         * cpptrad.c (skip_comment, lex_identifier,
10179         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
10180
10181 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
10182
10183         * gbl-ctors.h: Fix formatting.
10184         * gcc.c: Likewise.
10185         * gccspec.c: Likewise.
10186         * gcov.c: Likewise.
10187         * gcov-io.h: Likewise.
10188         * gcse.c: Likewise.
10189         * ggc-common.c: Likewise.
10190         * ggc.h: Likewise.
10191         * ggc-page.c: Likewise.
10192         * ggc-simple.c: Likewise.
10193         * global.c: Likewise.
10194         * graph.h: Likewise.
10195         * gthr-dce.h: Likewise.
10196         * gthr.h: Likewise.
10197         * gthr-posix.h: Likewise.
10198         * gthr-rtems.h: Likewise.
10199         * gthr-solaris.h: Likewise.
10200         * gthr-win32.h: Likewise.
10201
10202 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10203
10204         Merge from pch-branch:
10205
10206         * gengtype.h (UNION_OR_STRUCT_P): New macro.
10207         * gengtype.c (write_gc_structure_fields): Use it.
10208         (write_gc_root): Use it here too.
10209
10210         * gengtype.c (write_gc_structure_fields): Assume that lengths
10211         of typenames fit into an 'int'; don't pass a size_t to "%d" in
10212         printf.
10213         (write_gc_marker_routine_for_structure): Likewise.
10214         (write_gc_types): Likewise.
10215         (write_gc_root): Likewise.
10216
10217         * varray.h (VARRAY_CLEAR): New.
10218         (varray_clear): Prototype.
10219         * varray.c (varray_clear): New.
10220         * cselib.c (reg_values_old): New.
10221         (used_regs_old): New.
10222         (cselib_init): Use cached varrays if available to avoid
10223         generating large amounts of garbage.
10224         (cselib_finish): Don't throw away old varrays.
10225
10226         * final.c (insn_addresses_): Move out of ifdef.
10227
10228         * varray.c (uses_ggc): Make more varray kinds GCable.
10229         * varray.h (union varray_data_tag): Let gengtype see
10230         fields 'generic' and 'te'.
10231         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
10232         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
10233         (reg_to_stack): Don't call VARRAY_FREE.
10234         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
10235         (insn_addresses_): Use gengtype to mark.
10236         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
10237         pointers; handle generic pointers in unused union fields.
10238         (get_output_file_with_visibility): Include cselib.h,
10239         insn-addr.h in gtype-desc.c.
10240         * function.c (prologue): Use gengtype to mark.
10241         (epilogue): Likewise.
10242         (sibcall_epilogue): Likewise.
10243         * dependence.c: Include gt-dependence.h, ggc.h.
10244         (struct def_use): Use gengtype to mark.
10245         (struct loop): Likewise.
10246         (struct induction): Likewise.
10247         (struct dependence): Likewise.
10248         (def_use_chain): Likewise.
10249         (dep_chain): Likewise.
10250         (loop_chain): Likewise.
10251         (induction_chain): Likewise.
10252         (init_dependence_analysis): Don't free anything, just clear pointers.
10253         (build_def_use): Use GGC to allocate def_use.
10254         (add_loop): Use GGC to allocate loop.
10255         (find_induction_variable): Use GGC to allocate induction.
10256         (check_node_dependence): Use GGC to allocate induction, dependence.
10257         (dump_node_dependence): Don't free varrays.
10258         (end_dependence_analysis): Likewise.
10259         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
10260         (struct elt_loc_list): Likewise.
10261         (struct elt_list): Likewise.
10262         * cselib.c: Don't include obstack.h.
10263         (hash_table): Use gengtype to mark.
10264         (reg_values): Use gengtype to mark.
10265         (used_regs): Use gengtype to mark.
10266         (cselib_obstack): Delete.
10267         (cselib_startobj): Delete.
10268         (empty_vals): Mark as deletable.
10269         (empty_elt_lists): Mark as deletable.
10270         (empty_elt_loc_lists): Mark as deletable.
10271         (new_elt_list): Use GGC to allocate struct elt_list.
10272         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
10273         (clear_table): Don't delete obstack; don't unnecessarily clear
10274         deletable variables.
10275         (new_cselib_val): Use GGC to allocate struct cselib_val.
10276         (cselib_init): Don't set up obstacks.  Use GGC to allocate
10277         hash table.
10278         (cselib_finish): Just clear variables, don't free anything.
10279         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
10280         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
10281         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
10282         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
10283         (gt-reg-stack.h): New rule.
10284         (gt-dependence.h): New rule.
10285         (gtype-desc.o): Add cselib.h, insn-addr.h.
10286
10287         * varray.c: Use only necessary headers.
10288         (element_size): New.
10289         (uses_ggc): New.
10290         (varray_init): Take type, not size.  Use GGC if appropriate.
10291         (varray_grow): Update for change to struct varray_head_tag.
10292         Use GGC if appropriate.
10293         * varray.h (struct const_equiv_data): Use gengtype.
10294         (enum varray_data_enum): New.
10295         (union varray_data_tag): Use gengtype.
10296         (struct varray_head_tag): Use gengtype.  Replace size field with
10297         enum varray_data_enum.
10298         (varray_init): Update prototype.
10299         (VARRAY_SCHED_INIT): Delete.
10300         (VARRAY_*_INIT): Update for change to varray_init.
10301         (VARRAY_SCHED): Delete.
10302         (VARRAY_PUSH_SCHED): Delete.
10303         (VARRAY_TOP_SCHED): Delete.
10304         * tree.h: Update for change to length specifier.
10305         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
10306         (clone_body): Likewise.
10307         * ssa.h (ssa_definition): Use gengtype to mark.
10308         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
10309         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
10310         * rtl.h (struct rtvec_def): Update for change to length specifier.
10311         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
10312         (struct initial_value_struct): Update for change to length specifier.
10313         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
10314         (ggc_add_tree_varray_root): Delete prototype.
10315         (ggc_mark_rtx_varray): Delete prototype.
10316         (ggc_mark_tree_varray): Delete prototype.
10317         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
10318         (ggc_add_tree_varray_root): Delete.
10319         (ggc_mark_rtx_varray): Delete.
10320         (ggc_mark_tree_varray): Delete.
10321         (ggc_mark_rtx_varray_ptr): Delete.
10322         (ggc_mark_tree_varray_ptr): Delete.
10323         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
10324         (create_varray): Delete prototype.
10325         * gengtype.c (varrays): Delete.
10326         (create_varray): Delete.
10327         (adjust_field_type): Detect array of string pointers.
10328         (process_gc_options): Remove code to handle varray_type option.
10329         (set_gc_used_type): Remove TYPE_VARRAY case.
10330         (output_escaped_param): New.
10331         (write_gc_structure_fields): Use output_escaped_param on all
10332         parameters.  Handle 'skip' with 'use_param' option.  Handle
10333         arrays of strings.  Remove TYPE_VARRAY handling.
10334         (write_gc_roots): Use boolean to detect 'length' option.
10335         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
10336         (struct_fields): Call adjust_field_type on array fields.
10337         (type): Remove VARRAY_TYPE case.
10338         (type_option): Likewise.
10339         * gengtype-lex.l: Don't consider varray_type a keyword.
10340         * function.h: Update for change to length specifier.
10341         (free_eh_status): Delete prototype.
10342         * function.c (free_after_compilation): Don't call free_eh_status.
10343         (reorder_blocks): Don't use VARRAY_FREE.
10344         * except.c (struct eh_status): Update for change to length specifier.
10345         remove varray_type specifier.
10346         (free_eh_status): Delete.
10347         * dwarf2out.c: Include gt-dwarf2out.h.
10348         (used_rtx_varray): Use gengtype to mark, move
10349         outside ifdefs.
10350         (incomplete_types): Likewise.
10351         (decl_scope_table): Likewise.
10352         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
10353         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
10354         * c-tree.h (struct lang_type): Update for change to length specifier.
10355         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
10356         * c-objc-common.c: Include gt-c-objc-common.h.
10357         (deferred_fns): Mark for gengtype.
10358         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
10359         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
10360         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
10361         (gtype-desc.o): Update dependencies.
10362         (dwarf2out.o): Add gt-dwarf2out.h.
10363         (varray.o): Update dependencies.
10364         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
10365         (gt-c-objc-common.h): New rule.
10366         (gt-dwarf2out.h): New rule.
10367         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
10368
10369         * doc/gty.texi (GTY Options): Correct spelling.
10370         (GGC Roots): Likewise.
10371         * Makefile.in (TEXI_CPP_FILES): New.
10372         (TEXI_GCC_FILES): New.
10373         (TEXI_GCCINT_FILES): New.
10374         (TEXI_CPPINT_FILES): New.
10375         ($(docdir)/cpp.info): Use new macros.
10376         ($(docdir)/gcc.info): Likewise.
10377         ($(docdir)/gccint.info): Likewise.
10378         ($(docdir)/cppinternals.info): Likewise.
10379         (cpp.dvi): Likewise.
10380         (gcc.dvi): Likewise.
10381         (gccint.dvi): Likewise.
10382         (cppinternals.dvi): Likewise.
10383
10384         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
10385         * doc/gccint.texi (Top): Include gty.texi.
10386         * doc/gty.texi: New file.
10387
10388         * bitmap.c: Include ggc.h, gt-bitmap.h.
10389         (bitmap_ggc_free): New.
10390         (bitmap_elem_to_freelist): New.
10391         (bitmap_element_free): Use bitmap_elem_to_freelist.
10392         (bitmap_element_allocate): Allow use of GGC.
10393         (bitmap_clear): Use bitmap_elem_to_freelist.
10394         (bitmap_copy): Update for change to bitmap_element_allocate.
10395         (bitmap_set_bit): Likewise.
10396         (bitmap_operation): Update for changes elsewhere.
10397         (bitmap_initialize): Allow to create bitmaps that will use GGC.
10398         * bitmap.h (struct bitmap_element_def): Use gengtype.
10399         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
10400         (bitmap_initialize): Add extra parameter.
10401         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
10402         (BITMAP_ALLOCA): Delete.
10403         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
10404         (BITMAP_GGC_ALLOC): New.
10405         * Makefile.in (gtype-desc.o): Add bitmap.h.
10406         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
10407         (GTFILES): Add bitmap.c.
10408         (gt-bitmap.h): New rule.
10409         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
10410         * basic-block.h: Update for changes to bitmap_initialize.
10411         * except.c (exception_handler_label_map): Move into...
10412         (struct eh_status): Here.
10413         (struct eh_region): Make 'aka' GCable.
10414         (free_eh_status): Don't need to specially handle
10415         exception_handler_label_map.
10416         (add_ehl_entry): Update for changes to exception_handler_label_map.
10417         (find_exception_handler_labels): Likewise.
10418         (remove_exception_handler_label): Likewise.
10419         (maybe_remove_eh_handler): Likewise.
10420         (for_each_eh_label): Likewise.
10421         (remove_eh_handler): Allocate 'aka' using GGC.
10422         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
10423         to list of includes.
10424
10425         * gengtype.c (write_gc_marker_routine_for_structure): Name
10426         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
10427         (write_gc_types): Arrange for the tests with NULL to be inlined.
10428         (write_gc_roots): Update uses of procedure pointers.
10429         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
10430
10431         * Makefile.in (explow.o): Add dependency on gt-explow.h.
10432         (sdbout.o): Add dependency on gt-sdbout.h.
10433
10434         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
10435         (mem_attrs_htab): Likewise.
10436         (init_emit_once): Don't call ggc_add_deletable_htab.
10437         * fold-const.c (size_htab): Use gengtype to clear unused entries.
10438         (size_int_type_wide): Don't call ggc_add_deletable_htab.
10439         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
10440         parameters, use them, change callers.
10441         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
10442         (write_gc_roots): Handle 'if_marked' option.
10443         (main): Don't need to call set_gc_used_type any more.
10444         * ggc.h (ggc_htab_marked_p): Delete.
10445         (ggc_htab_mark): Delete.
10446         (struct ggc_cache_tab): New.
10447         (gt_ggc_cache_rtab): New declaration.
10448         * ggc-common.c (struct d_htab_root): Delete.
10449         (d_htab_roots): Delete.
10450         (ggc_add_deletable_htab): Delete.
10451         (ggc_htab_delete): Handle new htab-deleting mechanism.
10452         (ggc_mark_roots): Use new htab-deleting mechanism.
10453         * tree.c (type_hash_table): Use gengtype to clear unused entries.
10454         Make static.
10455         (init_obstacks): Don't call ggc_add_deletable_htab.
10456
10457         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
10458         (struct hashed_entry): Likewise.
10459         (nst_method_hash_list): Likewise.
10460         (cls_method_hash_list): Likewise.
10461         (HASH_ALLOC_LIST_SIZE): Delete.
10462         (ATTR_ALLOC_LIST_SIZE): Delete.
10463         * objc/objc-act.c (hash_init): Use ggc to allocate
10464         nst_method_hash_list, cls_method_hash_list.
10465         (hash_enter): Use ggc to allocate; allocate one entry at a time.
10466         (hash_add_attr): Likewise.
10467         (ggc_mark_hash_table): Delete.
10468         (objc_act_parse_init): Delete.
10469         (objc_init): Delete reference to objc_act_parse_init.
10470         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
10471         obstack.h.  Replace references to 'struct hash_table' with htab_t.
10472         (struct symbol_hash_entry): Replace hash header with key field.
10473         (struct file_hash_entry): Replace hash header with key field.
10474         (struct demangled_hash_entry): Replace hash header with key field.
10475         (hash_string_eq): New.
10476         (hash_string_hash): New.
10477         (symbol_hash_newfunc): Delete.
10478         (symbol_hash_lookup): Modify to use htab_t.
10479         (file_hash_newfunc): Delete.
10480         (file_hash_lookup): Modify to use htab_t.
10481         (demangled_hash_newfunc): Delete.
10482         (demangled_hash_lookup): Modify to use htab_t.
10483         (tlink_init): Modify to use htab_t.
10484         * hash.h: Delete.
10485         * hash.c: Delete.
10486         * ggc.h: Delete forward structure declarations.
10487         Delete prototypes for deleted functions.
10488         * ggc-common.c: Don't include hash.h.
10489         (ggc_add_tree_hash_table_root): Delete.
10490         (ggc_mark_tree_hash_table_entry): Delete.
10491         (ggc_mark_tree_hash_table): Delete.
10492         (ggc_mark_tree_hash_table_ptr): Delete.
10493         * gengtype.c (write_gc_structure_fields): Allow param_is option.
10494         (write_gc_marker_routine_for_structure): Use visibility of
10495         the parameter if there is one.
10496         * function.c: Replace hash.h with hashtab.h.  Replace references
10497         to 'struct hash_table *' with htab_t.
10498         (struct insns_for_mem_entry): Include a plain key.
10499         (fixup_var_refs_insns_with_hash): Update to use htab_t.
10500         (insns_for_mem_newfunc): Delete.
10501         (insns_for_mem_hash): Update to use htab_t.
10502         (insns_for_mem_comp): Likewise.
10503         (insns_for_mem_walk): Likewise.
10504         * c-lang.c: Include ggc.h.
10505         * Makefile.in (OBJS): Remove hash.o.
10506         (c-lang.o): Add GGC_H.
10507         (COLLECT2_OBJS): Remove hash.o.
10508         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
10509         (ggc-common.o): Remove hash.h.
10510         (function.o): Remove hash.h, add HASHTAB_H.
10511         (genautomata.o): Remove hash.h, add HASHTAB_H.
10512
10513         * varasm.c (mark_const_str_htab_1): Delete.
10514         (mark_const_str_htab): Delete.
10515         (const_str_htab_del): Delete.
10516         (const_str_htab): Use gengtype to mark.
10517         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
10518         allocate them.
10519         * tree.c (mark_tree_hashtable_entry): Delete.
10520         (mark_tree_hashtable): Delete.
10521         * tree.h (mark_tree_hashtable): Delete prototype.
10522         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
10523         (ggc_mark): Likewise.
10524         (ggc_calloc): New.
10525         (htab_create_ggc): New.
10526         * ggc-common.c (ggc_calloc): New.
10527         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
10528         (struct type): Add param_struct structure.
10529         * gengtype.c (param_structs): New.
10530         (adjust_field_type): Handle param_is option.
10531         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
10532         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
10533         (write_gc_structure_fields): Add new PARAM parameter.  Update
10534         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
10535         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
10536         Use it to generate function name.  Update callers.
10537         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
10538         Process them.
10539         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
10540         option.
10541         (main): Define PTR as pointer-to-scalar.  Don't specially
10542         mark deferred_string or ehl_map_entry.
10543         * gengtype-yacc.y (PARAM_IS): Add new token.
10544         (externstatic): Use adjust_field_type.
10545         (type_option): Add PARAM_IS.
10546         * gengtype-lex.l: Add rule for typedef of function pointers.
10547         Add rule for PARAM_IS.
10548         (IWORD): Add size_t.
10549         * except.c (exception_handler_label_map): Use gengtype to mark.
10550         (type_to_runtime_map): Likewise.
10551         (mark_ehl_map_entry): Delete.
10552         (mark_ehl_map): Delete.
10553         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
10554         (t2r_mark_1): Delete.
10555         (t2r_mark): Delete.
10556         * Makefile.in (gtype-desc.o): Correct dependencies.
10557         (GTFILES): Add hashtab.h.
10558         (genautomata.o): Actually uses hashtab.h.
10559
10560         * Makefile.in (stringpool.o): Add $(GGC_H).
10561         (dwarf2asm.o): Likewise.
10562         (GTFILES): Add hashtable.h.
10563         * c-common.h (struct c_common_identifier): Use gengtype.
10564         * c-decl.h (c_mark_tree): Delete.
10565         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10566         * c-tree.h (struct lang_identifier): Use gengtype.
10567         (union lang_tree_node): New.
10568         (c_mark_tree): Delete prototype.
10569         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
10570         dwarf2_debug_hooks.
10571         * gengtype-lex.l (IWORD): Allow 'bool'.
10572         (ptr_alias): Match.
10573         * gengtype-yacc.y (ALIAS): New token.
10574         (type_option): New rule.
10575         (option): Use type_option.
10576         * gengtype.c (process_gc_options): New.
10577         (set_gc_used_type): Use it.
10578         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
10579         Add new variable 't' to hold the type of the field being processed.
10580         Add more error checking.  Use UNION_P when looking at 'desc' option.
10581         Handle language-specific structures containing other
10582         language-specific structures.
10583         (write_gc_types): Handle 'ptr_alias' option.
10584         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
10585         * ggc-common.c (ggc_pending_trees): Delete.
10586         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
10587         (ggc_mark_trees): Delete.
10588         (gt_ggc_m_tree_node): Delete.
10589         * ggc.h (ggc_pending_trees): Delete.
10590         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
10591         * hashtable.h (ht_identifier): Use gengtype.
10592         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
10593         * langhooks.h (struct lang_hooks): Delete mark_tree.
10594         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
10595         anyway.
10596         * system.h: Poison LANG_HOOKS_MARK_TREE.
10597         * tree.c (tree_node_structure): New.
10598         * tree.h (struct tree_common): Use gengtype.
10599         (struct tree_int_cst): Likewise.
10600         (struct tree_real_cst): Likewise.
10601         (struct tree_string): Likewise.
10602         (struct tree_complex): Likewise.
10603         (struct tree_vector): Likewise.
10604         (struct tree_identifier): Likewise.
10605         (struct tree_list): Likewise.
10606         (struct tree_vec): Likewise.
10607         (struct tree_exp): Likewise.
10608         (struct tree_block): Likewise.
10609         (struct tree_type): Likewise.
10610         (struct tree_decl): Likewise.
10611         (enum tree_structure_enum): New.
10612         (union tree_node): Use gengtype, with an alias.
10613         (tree_node_structure): Prototype.
10614         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10615
10616         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
10617         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
10618         to LANG_HOOKS_FUNCTION_FINAL.
10619         * Makefile.in (GTFILES): Add bitmap.h.
10620         * except.c (struct eh_region): Mark field 'aka' to be skipped.
10621
10622         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
10623         (alpha_init_machine_status): Give proper type.
10624         * Makefile.in (c-lang.o): Depend on gtype-c.h.
10625         (optabs.o): Depend on gt-optabs.h.
10626         (GTFILES): Add optabs.o.
10627         (gt-optabs.h): Add rule.
10628         * optabs.c: Include gt-optabs.h.
10629
10630         * gengtype.c (set_gc_used_type): Correct some errors in last change.
10631         (write_gc_structure_fields): If a field which should be NULL is
10632         not, abort.
10633         * c-pragma.c: Move struct align_stack and variable alignment_stack
10634         out from the ifdef.
10635
10636         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
10637         * config/xtensa/xtensa.c: Include gt-cris.h.
10638         (struct machine_function): Use gengtype to mark.
10639         * config/mmix/mmix.h (struct machine_function): Use gengtype
10640         to mark.
10641         * config/cris/t-cris: Add dependencies for gt-cris.h.
10642         * config/cris/cris.c: Include gt-cris.h.
10643         (struct machine_function): Use gengtype to mark.
10644         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
10645         to mark.
10646         * doc/tm.texi (Per-Function Data): Delete references to
10647         mark_machine_status.
10648         * config/ia64/ia64.c (ia64_override_options): Don't set
10649         mark_machine_status.
10650         * config/i386/i386.c (override_options): Likewise.
10651         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
10652         * config/arm/arm.c (arm_init_expanders): Likewise.
10653         * config/alpha/alpha.c (override_options): Likewise.
10654         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
10655         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
10656         (write_gc_structure_fields): Don't handle 'really' option.
10657         Handle 'maybe_null' option.
10658         (write_gc_types): Handle 'maybe_null' option.
10659         * function.h (struct function): Don't use "really".
10660         (mark_machine_status): Delete declaration.
10661         (mark_lang_status): Delete declaration.
10662         (gt_ggc_mr_machine_function): Delete prototype.
10663         (gt_ggc_mr_language_function): Delete prototype.
10664         * function.c (mark_machine_status): Delete.
10665         (mark_lang_status): Delete.
10666         (gt_ggc_mr_machine_function): Delete.
10667         (gt_ggc_mr_language_function): Delete.
10668         * c-tree.h (mark_c_function_context): Delete prototype.
10669         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
10670         * c-decl.c (struct language_function): Rename from struct
10671         c_language_function.  Update uses.  Use gengtype to mark.
10672         (mark_c_function_context): Delete.
10673         * c-common.h (struct c_language_function): Rename from struct
10674         language_function.
10675         (mark_stmt_tree): Delete prototype.
10676         (c_mark_lang_decl): Delete prototype.
10677         (mark_c_language_function): Delete prototype.
10678         * c-common.c (mark_stmt_tree): Delete.
10679         (c_mark_lang_decl): Delete.
10680         (mark_c_language_function): Delete.
10681
10682         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
10683         (lang_bitmap): New typedef.  Use where appropriate.
10684         (struct type): Add gc_used field, lang_struct field.
10685         (UNION_P): New macro.
10686         (new_structure): New prototype.
10687         (find_structure): Remove 'pos' parameter.  Change all callers.
10688         * gengtype-lex.l: Update for changes to find_structure.
10689         * gengtype-yacc.y (typedef_struct): Use new_structure.
10690         (yacc_ids): Suppress warning.
10691         (type): Use new_structure.
10692         * gengtype.c (string_type): Update for changes to struct type.
10693         (find_structure): Just find a structure, don't worry about
10694         creating one.
10695         (new_structure): New.
10696         (note_yacc_type): Use new_structure.
10697         (set_gc_used_type): New.
10698         (set_gc_used): New.
10699         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
10700         (write_gc_types): Handle TYPE_LANG_STRUCT.
10701         (write_gc_marker_routine_for_structure): New.
10702         (main): Call set_gc_used.  Add some calls to set_gc_used_type
10703         for places where GCC doesn't use gengtype properly yet.
10704         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
10705         (gt_ggc_m_tree_node): Likewise.
10706
10707         * varasm.c (copy_constant): Call expand_constant if we hit
10708         something we can't recognize.
10709
10710         * ggc-common.c (ggc_mark_rtvec_children): Delete.
10711         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
10712         (lang_mark_false_label_stack): Delete.
10713         * rtl.h (struct rtvec_def): Use gengtype to mark.
10714         * ggc.h (ggc_mark_rtvec): Delete.
10715         (gt_ggc_m_rtvec_def): Delete.
10716         (ggc_mark_nonnull_tree): Delete.
10717         (ggc_mark_rtvec_children): Delete prototype.
10718         (lang_mark_false_label_stack): Delete declaration.
10719
10720         * gengtype.h (note_yacc_type): Add prototype.
10721         * gengtype.c (note_yacc_type): New function.
10722         * gengtype-lex.l: Add lexer support for yacc files.
10723         * gengtype-yacc.y (start): Extract union from yacc files.
10724         (yacc_union): New rule.
10725         (yacc_typematch): New rule.
10726         (yacc_ids): New rule.
10727         (enum_items): Tweak for efficiency.
10728         (optionseq): Likewise.
10729
10730         * c-common.h (struct language_function): Use gengtype.
10731         (struct c_lang_decl): Likewise.
10732         * c-tree.h (struct lang_decl): Likewise.
10733         (struct lang_type): Likewise.
10734         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
10735         tree language substructures.
10736
10737         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
10738         ggc_mark_tree.
10739         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
10740
10741         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
10742
10743         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
10744         mark. Remove 'data.block.cleanup_ptr' field.
10745         (struct stmt_status): Use usual technique to mark struct nesting.
10746         (gt_ggc_mr_nesting_cond): Delete.
10747         (gt_ggc_mr_nesting_loop): Delete.
10748         (gt_ggc_mr_nesting_block): Delete.
10749         (gt_ggc_mr_nesting_case_stmt): Delete.
10750         (expand_start_cond): Set discriminator.
10751         (expand_start_loop): Likewise.
10752         (expand_start_null_loop): Likewise.
10753         (expand_start_bindings_and_block): Set discriminator.  Don't set
10754         deleted fields.
10755         (expand_decl_cleanup): Replace 'cleanup_ptr' with
10756         &thisblock->data.block.cleanups.
10757         (expand_start_case): Set discriminator.
10758         (expand_start_case_dummy): Set discriminator.
10759
10760         * ggc-callbacks.c: Remove.
10761
10762         * gengtype.h (struct type): Add 'u.s.bitmap' field.
10763         (find_structure): Add 'pos' parameter.
10764         * gengtype-lex.l: Update callers to find_structure.
10765         * gengtype-yacc.y: Likewise.
10766         * gengtype.c (find_structure): Allow for structures to be defined
10767         in multiple language backends.
10768         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
10769         (counter): Rename to gc_counter.
10770         (write_gc_structure_fields): Fail when writing out fields for
10771         an incomplete structure.  Ignore arrays of scalars.  Handle
10772         'tree_vec' special.
10773         (write_gc_types): Reset counter for each procedure written.
10774
10775         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
10776         (free_case_nodes): Delete.
10777         (expand_end_case_type): Delete call to free_case_nodes.
10778
10779         * Makefile.in (cselib.o): Include gt-<filename>.h.
10780         (gcse.o): Likewise.
10781         (profile.o): Likewise.
10782         (alias.o): Likewise.
10783         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
10784         alphabetize backend files.
10785         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
10786         * alias.c: Use gengtype for roots.
10787         * c-common.h (struct stmt_tree_s): Use gengtype.
10788         * c-decl.c: Use gengtype for roots.
10789         * cselib.c: Use gengtype for roots.
10790         * expr.c: Use gengtype for roots.
10791         * fold-const.c: Use gengtype for roots.
10792         * gcse.c: Use gengtype for roots.
10793         * gengtype-lex.l: Handle typedefs of function types.
10794         Allow for empty array bounds.
10795         Allow processing to stop on initializers.
10796         * gengtype-yacc.y (externstatic): Stop processing on initializers.
10797         (semiequal): New rule.
10798         * gengtype.c (create_file): Tidy output files.
10799         (get_output_file_with_visibility): Fix paren warning.  Fix bug
10800         involving multiple input files mapping to one output file.
10801         (write_gc_structure_fields): Skip arrays of scalars.
10802         (write_gc_types): Tidy output files.
10803         (write_gc_root): New function.
10804         (write_gc_roots): Fix bugs, add support for roots that are
10805         structures.
10806         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
10807         (ggc_mark_tree_ptr): Delete.
10808         (ggc_add_rtx_root): Delete.
10809         (ggc_add_tree_root): Delete.
10810         (ggc_del_root): Delete.
10811         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
10812         allocate struct initial_value_struct.
10813         * profile.c: Use gengtype for roots.
10814         * sdbout.c: Use gengtype for roots.
10815         * varasm.c (mark_weak_decls): Delete unused prototype.
10816         (mark_const_hash_entry): Delete unused function.
10817         * config/darwin-protos.h: Use gengtype for roots.
10818         (machopic_add_gc_roots): Delete.
10819         * config/arm/arm.c: Use gengtype for roots.
10820         * config/arm/arm.h: Use gengtype for roots.
10821         * config/c4x/c4x-protos.h: Use gengtype for roots.
10822         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
10823         * config/d30v/d30v-protos.h: Use gengtype for roots.
10824         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
10825         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
10826         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
10827         * config/ia64/ia64-protos.h: Use gengtype for roots.
10828         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
10829         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
10830         * config/m68hc11/m68hc11.c (z_reg): Make global.
10831         (z_reg_qi): Make global.
10832         (m68hc11_add_gc_roots): Delete.
10833         * config/mcore/mcore-protos.h: Use gengtype for roots.
10834         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
10835         * config/mips/mips.c (mips_add_gc_roots): Delete.
10836         * config/mips/mips.h: Use gengtype for roots.
10837         * config/mmix/mmix.c (override_options): Use gengtype for roots.
10838         * config/mmix/mmix.h: Use gengtype for roots.
10839         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
10840         * config/mn10200/mn10200.h: Use gengtype for roots.
10841         * config/pa/pa.c: Use gengtype for roots, marking.
10842         (struct deferred_plabel): Use GGC, gengtype.
10843         (pa_add_gc_roots): Delete.
10844         (mark_deferred_plabels): Delete.
10845         * config/pj/pj-protos.h: Use gengtype for roots.
10846         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
10847         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
10848         machopic_add_gc_roots.
10849         * config/rs6000/rs6000.h: Use gengtype for roots.
10850         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
10851         (gt-darwin.h): Add rule.
10852         * config/sh/sh.c: Use gengtype for roots.
10853         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
10854         (gt-sh.h): Add rule.
10855         * config/sparc/sparc.c: Use gengtype for roots.
10856         (sparc_add_gc_roots): Delete.
10857         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
10858         (mark_ultrasparc_pipeline_state): Delete.
10859         * config/sparc/sparc.h: Use gengtype for roots.
10860
10861         * Makefile.in (c-parse.o): Update dependencies.
10862         (c-common.o): Likewise.
10863         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
10864         Add dependencies for the files they generate.
10865         * c-common.c: Replace ggc_add_* uses with GTY annotations.
10866         * c-common.h: Likewise.
10867         * c-decl.c: Likewise.
10868         (gt_ggc_mp_binding_level): Delete.
10869         * c-lang.c: Include gtype-c.h.
10870         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
10871         gt-c-parse.h.
10872         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
10873         (gt_ggc_mp_align_stack): Delete.
10874         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
10875         * function.c: Replace ggc_add_* uses with GTY annotations.
10876         (gt_ggc_mp_function): Delete.
10877         * function.h: Replace ggc_add_* uses with GTY annotations.
10878         * gengtype.c (lang_names): New.
10879         (NUM_BASE_FILES): New.
10880         (open_base_files): Create language base files.
10881         (startswith): New.
10882         (get_file_basename): New.
10883         (get_base_file_bitmap): New.
10884         (get_output_file_with_visibility): Rename from get_output_file.
10885         Add more mappings for various C/Objc filenames.
10886         (finish_root_table): New.
10887         (write_gc_roots): Handle dependencies and scoping properly.
10888         * gengtype.h: Add prototypes for new functions.
10889         * ggc-common.c (struct deletable_root): Delete.
10890         (deletables): Delete.
10891         (ggc_add_deletable_root): Delete.
10892         (ggc_mark_roots): No need to deal with deleted functionality.
10893         * ggc.h (ggc_add_deletable_root): Delete prototype.
10894         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
10895         (gtype-objc.h): Add rule to create.
10896         * objc/config-lang.in (gtfiles): New.
10897         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
10898         ggc_add_* with GTY markers.  Include gtype-objc.h.
10899         (ggc_mark_imp_list): Delete.
10900         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
10901         * objc/objc-lang.c: Random Whitespace Change.
10902
10903         * except.h (exception_handler_labels): Delete.
10904         (get_exception_handler_labels): New.
10905         * except.c (exception_handler_labels): Delete.
10906         (struct eh_status): Add exception_handler_labels field.
10907         (doing_eh): Don't add exception_handler_labels as root.
10908         (free_eh_status): Don't need to free exception_handler_labels.
10909         (get_exception_handler_labels): New.
10910         (find_exception_handler_labels): Update for move of
10911         exception_handler_labels.
10912         (remove_exception_handler_label): Likewise.
10913         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
10914         * jump.c (rebuild_jump_labels): Likewise.
10915         * loop.c (find_and_verify_loops): Likewise.
10916         * sched-rgn.c (is_cfg_nonregular): Likewise.
10917
10918         * gengtype.c (write_gc_structure_fields): Handle variable-length
10919         TYPE_ARRAYs.
10920
10921         * varasm.c (struct weak_syms): Use GGC, gengtype.
10922         (mark_weak_decls): Delete.
10923         (weak_decls): Likewise.
10924         (add_weak): Likewise.
10925         (remove_from_pending_weak_list): Likewise.
10926         (init_varasm_once): Likewise.
10927
10928         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
10929         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
10930         stor-layout.c, regclass.c, and lists.c.
10931         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
10932         gt-regclass.h and gt-lists.h on s-gtype.
10933         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
10934         * except.c: Use gengtype for roots.
10935         * explow.c: Use gengtype for roots.  Include gt-explow.h.
10936         * expr.h (init_stor_layout_once): Delete prototype.
10937         * function.c: Use gengtype for roots.
10938         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
10939         * gengtype-yacc.y (start): Can also be an externstatic.
10940         (externstatic): New production.
10941         (struct_fields): Correct array bounds inversion for 2-d arrays.
10942         * gengtype.c (variables): New variable.
10943         (note_variable): New function.
10944         (get_output_file): Include libfuncs.h into gtype-desc.c.
10945         (get_output_file_name): New function.
10946         (write_gc_structure_fields): Suppress warnings.
10947         (write_gc_types): Make static.
10948         (put_mangled_filename): New function.
10949         (write_gc_roots): New function.
10950         (main): Call write_gc_roots.
10951         * gengtype.h (note_variable): Prototype.
10952         (get_output_file_name): Prototype.
10953         (write_gc_types): Delete prototype.
10954         * ggc.h: Clean up unnecessary structure predefinitions.
10955         (struct ggc_root_tab): Define.
10956         (gt_ggc_m_rtx_def): Make function, not macro.
10957         (gt_ggc_m_tree_node): Likewise.
10958         * libfuncs.h: Use gengtype for roots.
10959         * lists.c: Use gengtype for roots.  Include gt-lists.h.
10960         (init_EXPR_INSN_LIST_cache): Delete.
10961         * optabs.c: Use gengtype for roots.
10962         (gt_ggc_mp_optab): Delete.
10963         * optabs.h: Use gengtype for roots.
10964         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
10965         * rtl.h: Use gengtype for roots.
10966         (init_EXPR_INSN_LIST_cache): Delete prototype.
10967         * stor-layout.c: Use gengtype for roots.
10968         Include gt-stor-layout.h.
10969         (init_stor_layout_once): Delete.
10970         * toplev.c: Use gengtype for roots.  Delete calls to deleted
10971         routines.
10972         * tree.c: Use gengtype for roots.
10973         * tree.h: Use gengtype for roots.
10974         * varasm.c: Use gengtype for roots.
10975
10976         * Makefile.in (GTFILES): Add @all_gtfiles@.
10977         * configure: Regenerate.
10978         * configure.in: Construct all_gtfiles from the gtfiles definitions
10979         in config-lang.in.
10980         * gengtype-yacc.y (type): Warn about duplicate structure names.
10981         * gengtype.c (get_output_file): Handle .c files in language
10982         subdirectories.
10983
10984         * Makefile.in (GTFILES): Run gengtype on all the config files
10985         and on the target .c file.
10986         * except.c (mark_eh_region): Delete.
10987         (init_eh_for_function): Use GGC on struct eh_status.
10988         (mark_eh_status): Delete.
10989         (free_eh_status): Use GGC.
10990         (expand_eh_region_start): Use GGC to
10991         (collect_eh_region_array): Allocate last_region_number using GGC.
10992         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
10993         (remove_eh_handler): Let GGC free struct eh_region.
10994         (add_call_site): Use GGC to reallocate call_site_record array.
10995         * function.c (init_machine_status): Update calling sequence.
10996         (mark_machine_status): Likewise.
10997         (mark_lang_status): Likewise.
10998         (prepare_function_start): Update init_machine_status call.
10999         (mark_function_status): Delete.
11000         (maybe_mark_struct_function): Delete.
11001         (ggc_mark_struct_function): Delete.
11002         (gt_ggc_mp_function): New.
11003         (gt_ggc_mr_machine_function): New.
11004         (gt_ggc_mr_language_function): New.
11005         (init_function_once): Use canonical names.
11006         * function.h (struct function): Use gengtype.
11007         (init_machine_status): Return the structure.
11008         (mark_machine_status): Take a 'void *'.
11009         (mark_lang_status): Likewise.
11010         * ggc-common.c (ggc_mark_trees): Use canonical name for
11011         ggc_mark_struct_function.
11012         * tree.h (ggc_mark_struct_function): Delete prototype.
11013         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
11014         (alpha_init_machine_status): Likewise.
11015         (override_options): Use canonical name for alpha_mark_machine_status.
11016         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
11017         * config/arm/arm.h (struct machine_function): Use gengtype.
11018         * config/arm/arm.c (arm_mark_machine_status): Delete.
11019         (arm_init_machine_status): Update calling sequence.
11020         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
11021         * config/cris/cris.c (cris_init_machine_status): Update
11022         calling sequence.
11023         * config/d30v/d30v.h (struct machine_function): Use gengtype.
11024         * config/d30v/d30v.c (d30v_init_machine_status): Update
11025         calling sequence.
11026         (d30v_mark_machine_status): Delete.
11027         * config/i386/i386.c: Include gt-i386.h.
11028         (struct machine_function): Use gengtype.
11029         (ix86_init_machine_status): Update calling sequence.
11030         (ix86_mark_machine_status): Delete.
11031         (override_options): Use canonical namke for ix86_mark_machine_status.
11032         * config/ia64/ia64.h (struct machine_function): Use gengtype.
11033         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
11034         sequence.
11035         (ia64_mark_machine_status): Delete.
11036         (ia64_override_options): Use canonical name for
11037         ia64_mark_machine_status.
11038         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
11039         sequence.
11040         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
11041         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11042         * gengtype.c (get_output_file): Fix warning.
11043         (main): Add prototype to suppress warning.
11044         * tree.c: Remove tree_hash_mark prototype.
11045
11046         * tree.h (init_stmt): Delete prototype.
11047         * toplev.c (lang_independent_init): Don't call init_stmt.
11048         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
11049         (stmt_obstack): Delete.
11050         (POPSTACK): No need to free 'struct nesting'.
11051         (gt_ggc_mr_nesting_cond): Use canonical names.
11052         (gt_ggc_mr_nesting_loop): Use canonical names.
11053         (gt_ggc_mr_nesting_block): Use canonical names.
11054         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
11055         (mark_stmt_status): Delete.
11056         (init_stmt): Delete.
11057         (clear_last_expr): Clear both last_expr_type and last_expr_value.
11058         Use it everywhere that last_expr_type was cleared.
11059         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
11060         (zap_lists): Delete.
11061         * ggc.h (ggc_add_deletable_root): Prototype.
11062         (mark_stmt_status): Remove prototype.
11063         * ggc-common.c (ggc_add_deletable_root): New.
11064         (ggc_mark_roots): Handle deletable roots.
11065         * function.c (ggc_mark_struct_function): Use canonical name
11066         for mark_stmt_status.
11067         * emit-rtl.c (free_sequence_stack): New.
11068         (start_sequence): Use a freelist for sequences.
11069         (end_sequence): Likewise.
11070         (init_emit_once): Add free_sequence_stack as a deleteable root.
11071         * c-pragma.c Include gt-c-pragma.h.
11072         (struct align_stack): Use gengtype.
11073         (push_alignment): Use GGC for struct align_stack.
11074         (mark_align_stack): Delete.
11075         (gt_ggc_mp_align_stack): New.
11076         (init_pragma): Use canonical name for mark_align_stack.
11077         * c-decl.c: Include gt-c-decl.h.
11078         (struct binding_level): Use gengtype.
11079         (make_binding_level): Use GGC; handle the freelist here.
11080         (pop_binding_level): New.
11081         (pushlevel): Move code into make_binding_level.
11082         (push_label_level): Likewise.
11083         (poplevel): Move code into pop_binding_level.
11084         (pop_label_level): Likewise.
11085         (mark_binding_level): Delete.
11086         (gt_ggc_mp_binding_level): New.
11087         (c_init_decl_processing): Use canonical name for mark_binding_level.
11088         Add free_binding_level as deletable root.
11089         (mark_c_function_context): Use canonical name for mark_binding_level.
11090         * Makefile.in (c-decl.o): Add gt-c-decl.h.
11091         (c-pragma.o): Add gt-c-pragma.h.
11092         (GTFILES): Add c-decl.c and c-pragma.c.
11093         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
11094
11095         * tree.c (struct type_hash): Use gengtype.
11096         (init_obstacks): Use canonical name for type_hash_mark.
11097         (type_hash_mark): Delete.
11098         Include gt-tree.h.
11099         * rtl.h (struct mem_attrs): Use gengtype.
11100         * optabs.h (struct optab): Use gengtype.
11101         * optabs.c (expand_binop): Squish signed/unsigned warning.
11102         (mark_optab): Make local, use canonical name, use autogenerated
11103         marker procedure.
11104         (init_optabs): Use canonical name for mark_optab.
11105         (new_optab): Use GGC to allocate optabs.
11106         * ggc.h: Delete mark_optab prototype.
11107         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
11108         mem_attrs marker procedure.
11109         * gengtype.c (get_output_file): Include headers in gtype-desc.c
11110         explicitly rather than deducing them from file names.
11111         (write_gc_structure_fields): Handle arrays of structures.
11112         (main): Return non-zero exit code if errors occur during output.
11113         * emit-rtl.c (mem_attrs_mark): Delete.
11114         (init_emit_once): Use canonical name for mem_attrs marker procedure.
11115         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
11116         (tree.o): Depend on gt-tree.h.
11117         (GTFILES): Add rtl.h, optabs.h, tree.c.
11118         (gt-tree.h): Add it to s-gtype rule.
11119
11120         * .cvsignore: Ignore gengtype flex/bison generated files.
11121         * Makefile.in (GGC_H): Add gtype-desc.h.
11122         (OBJS): Add gtype-desc.o.
11123         (GEN): Add gengtype.
11124         (STAGESTUFF): Add gengtype.
11125         (varasm.o): Add gt-varasm.h.
11126         (stmt.o): Add gt-stmt.h.
11127         (except.o): Add gt-except.h.
11128         (integrate.o): Add gt-integrate.h.
11129         (GTFILES): New.
11130         Add new rules for new files.
11131         * configure: Regenerate.
11132         * configure.in: Correct defaults.h paths.
11133         * emit-rtl.c (mark_sequence_stack): Delete.
11134         (mark_emit_status): Delete.
11135         (start_sequence): Allocate sequence structures using GGC.
11136         (end_sequence): Allocate sequence structures using GGC.
11137         * except.c: Use gengtype for various structures.  Include
11138         gt-except.h.
11139         * expr.c (mark_expr_status): Delete.
11140         * function.c: Use gengtype for various structures.  Include
11141         gt-function.h.
11142         (mark_function_status): Use standard gt_ggc names for marker functions.
11143         (ggc_mark_struct_function): Likewise.
11144         * function.h: Use gengtype for various structures.
11145         * gengtype-lex.l: New file.
11146         * gengtype-yacc.y: New file.
11147         * gengtype.c: New file.
11148         * gengtype.h: New file.
11149         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
11150         the standard names.  Remove some now-unnecessary prototypes.
11151         * integrate.c: Use gengtype for various structures.  Include
11152         gt-integrate.h.
11153         (mark_hard_reg_initial_vals): Delete.
11154         * integrate.h (mark_hard_reg_initial_vals): Delete.
11155         * stmt.c: Use gengtype for various structures.  Include
11156         gt-stmt.h.
11157         (mark_case_node): Delete.
11158         (mark_goto_fixup): Delete.
11159         (mark_stmt_status): Use standard gt_ggc names for marker functions.
11160         * system.h: Define GTY to empty.   In flex/bison files,
11161         don't poison malloc or realloc, instead just define them to
11162         xmalloc and xrealloc.
11163         * varasm.c: Use gengtype for various structures.  Include
11164         gt-varasm.h.  Use standard gt_ggc names for marker functions.
11165         (mark_pool_constant): Delete.
11166         (mark_varasm_status): Delete.
11167         (decode_rtx_const): #if 0 out non-typesafe hack.
11168
11169         * function.h (free_lang_status): Mark as obsolete.
11170         * function.c (free_lang_status): Mark as obsolete.
11171         * c-decl.c (push_c_function_context): Use GC to allocate and free
11172         struct language_function.
11173         (pop_c_function_context): Likewise.
11174         * c-common.c (mark_c_language_function): Mark struct
11175         language_function.
11176
11177         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
11178         Document that the machine_function structures must be allocated
11179         using GC.  Update mark_machine_status documentation.
11180         * function.h: Don't declare free_machine_status.
11181         * function.c (free_machine_status): Don't define.
11182         (free_after_compilation): Don't call free_machine_status.
11183         (ggc_mark_struct_function): Mark f->machine.  Call
11184         mark_machine_status only on non-NULL pointers.
11185         * system.h: Poison free_machine_status.
11186         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
11187         struct machine_function.
11188         (xtensa_free_machine_status): Delete.
11189         (override_options): Don't set free_machine_status.
11190         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
11191         free_machine_status.
11192         (rs6000_init_machine_status): Use GC on struct machine_function.
11193         (rs6000_free_machine_status): Delete.
11194         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
11195         machine_function.
11196         (ia64_mark_machine_status): Likewise.
11197         (ia64_free_machine_status): Delete.
11198         (ia64_override_options): Don't set free_machine_status.
11199         * config/i386/i386.c (override_options): Don't set
11200         free_machine_status.
11201         (ix86_init_machine_status): Use GC on struct machine_function.
11202         (ix86_mark_machine_status): Likewise.
11203         (ix86_free_machine_status): Delete.
11204         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
11205         machine_function.
11206         (d30v_mark_machine_status): Likewise.
11207         (d30v_free_machine_status): Delete.
11208         (d30v_init_expanders): Don't set free_machine_status.
11209         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
11210         machine_function.
11211         (arm_init_machine_status): Likewise.
11212         (arm_free_machine_status): Delete.
11213         (arm_init_expanders): Don't set free_machine_status.
11214         * config/alpha/alpha.c (override_options): Don't set
11215         free_machine_status.
11216         (alpha_init_machine_status): Use GC on struct machine_function.
11217         (alpha_mark_machine_status): Likewise.
11218         (alpha_free_machine_status): Delete.
11219
11220         * varasm.c (compare_constant): Fix typo.
11221
11222         * varasm.c: Don't include obstack.h.
11223         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
11224         (struct rtx_const): Give substructures names, improve formatting.
11225         (struct constant_descriptor): Delete.
11226         (struct constant_descriptor_tree): New, based on constant_descriptor.
11227         (const_hash_table): Is a hash table of trees.
11228         (mark_const_hash_entry): Is used for hashes of trees.  Mark
11229         constant_descriptor_tree structure.
11230         (mark_const_str_htab_1): Mark deferred_string structure.
11231         (compare_constant): Rewrite to compare trees.
11232         (compare_constant_1): Delete.
11233         (record_constant): Delete.
11234         (record_constant_1): Delete.
11235         (output_constant_def): Use struct constant_descriptor_tree.
11236         Don't duplicate trees twice.
11237         (struct constant_descriptor_rtx): New.
11238         (struct pool_constant): Used for rtx constants.
11239         (init_varasm_status): Update for change to struct varasm_status.
11240         (mark_varasm_status): Likewise.
11241         (free_varasm_status): Delete.
11242         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
11243         (record_constant_rtx): Likewise.
11244         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
11245         (force_const_mem): Likewise.
11246         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
11247         * function.c (free_after_compilation): Don't use free_varasm_status.
11248         * function.h: Don't prototype free_varasm_status.
11249
11250         * ggc-common.c (ggc_realloc): Handle X being NULL.
11251
11252         * ggc-common.c (ggc_realloc): New function.
11253         * ggc.h: Prototype it.
11254         * emit-rtl.c (free_emit_status): Delete.
11255         (init_emit): Allocate emit subarrays using GC.
11256         (gen_reg_rtx): Reallocate subarrays using GC.
11257         (init_emit): Use GC to allocate 'struct emit_status' and its
11258         subarrays.
11259         (mark_emit_status): Mark structure and its subarrays.
11260         * stmt.c (free_stmt_status): Delete.
11261         * expr.c (free_expr_status): Delete.
11262         * function.h: Remove prototypes for deleted functions.
11263         * function.c (free_after_compilation): Don't use deleted functions.
11264         Don't call free() on x_parm_reg_stack_loc.
11265         (free_after_parsing): Don't use free_stmt_status.
11266         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
11267         (mark_function_status): Mark x_parm_reg_stack_loc.
11268
11269         * varasm.c (init_varasm_status): Use GC to allocate
11270         'struct varasm_status' and its fields x_const_rtx_hash_table
11271         and x_const_rtx_sym_hash_table.
11272         (mark_varasm_status): Mark them.
11273         (free_varasm_status): Use GC to free them.
11274         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
11275         (mark_expr_status): Mark the structure itself.
11276         (free_expr_status): Use GC to free the structure.
11277         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
11278         (mark_stmt_status): Mark the 'struct stmt_status' itself.
11279         (init_stmt_for_function): Allocate the structure for GC.
11280
11281         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
11282         (equate_type_number_to_die): Likewise.
11283         * tree.h (TYPE_SYMTAB_DIE): New macro.
11284         (struct die_struct): Predeclare.
11285         (struct tree_type): Add field symtab.die.   Add a tag
11286         to the union type of field symtab.
11287
11288         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
11289         'struct rtvec_def *', not 'struct rtvec_def'.
11290
11291         * function.h (original_arg_vector): Make a real rtvec.
11292         * function.c (ggc_mark_struct_function): Adjust.
11293         * integrate.c (expand_inline_function): Adjust.
11294
11295 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
11296
11297         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
11298         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
11299         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
11300         (TARGET_VERSION_CPU): Define according to the
11301         default target.
11302         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
11303         TARGET_VERSION_CPU.
11304         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
11305         if TARGET_SHMEDIA64.
11306         (LINK_DEFAULT_CPU_EMUL): Define according to the
11307         default target.
11308         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
11309         (SUBTARGET_LINK_SPEC): Define.
11310         (LINK_SPEC): Use SH_LINK_SPEC.
11311         (ASM_SPEC): Remove.
11312         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
11313         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
11314         and TARGET_SHMEDIA64 which abort, for now.
11315         * config/sh/t-netbsd-sh5: New file.
11316         * config/sh/t-netbsd-sh5-32: New file.
11317         * config/sh/t-netbsd-sh5-64: New file.
11318
11319 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11320             Richard Henderson  <rth@redhat.com>
11321
11322         * config/alpha/alpha.c (reg_or_const_int_operand): New.
11323         (some_operand, input_operand): Accept CONST_VECTOR.
11324         (alpha_extra_constraint): Add 'W'.
11325         (alpha_expand_zap_mask): New.
11326         (alpha_expand_builtin_vector_binop): New.
11327         (enum alpha_builtin): New.
11328         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
11329         (alpha_init_builtins, alpha_expand_builtin): New.
11330         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
11331         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
11332         (PREDICATE_CODES): Update.
11333         * config/alpha/alpha-protos.h: Update.
11334         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
11335         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
11336         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
11337         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
11338         (movv2si, movv2si_fix, movv2si_nofix): New.
11339         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
11340         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
11341         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
11342         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
11343         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
11344         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
11345         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
11346         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
11347         builtin_unpkbw, unpkbw): New.
11348         * doc/extend.texi (Alpha Built-in Functions): New.
11349
11350 2002-06-03  Richard Henderson  <rth@redhat.com>
11351
11352         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
11353         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
11354
11355 2002-06-03  Richard Henderson  <rth@redhat.com>
11356
11357         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
11358
11359         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
11360         (const0_operand): New.
11361         (reg_or_fp0_operand, fp0_operand): Remove.
11362         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11363         * config/alpha/alpha-protos.h: Update.
11364         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
11365         and fp0_operand with reg_or_0_operand and const0_operand.
11366
11367 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
11368
11369         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
11370
11371 2002-06-03  Roger Sayle  <roger@eyesopen.com>
11372
11373         * gcse.c (cprop_jump): Use single_set to get the pattern
11374         from the setcc argument.
11375
11376 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
11377
11378         * diagnostic.h (diagnostic_count): Move from output_buffer to
11379         diagnostic_context.
11380         (diagnostic_kind_count): Adjust definition.
11381
11382 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
11383
11384         * except.c (except.c): Do not rebuild CFG.
11385         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
11386         optimization.
11387
11388 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
11389
11390         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
11391         * toplev.c: Include cfglahout.h
11392         * Makefile.in (toplev.c): Add dependnecy.
11393
11394 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11395
11396         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
11397         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
11398         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
11399
11400 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
11401
11402         * config/ns32k/netbsd.h: Update copyright years.
11403         (TARGET_OS_CPP_BUILTINS): Define.
11404         (CPP_PREDEFINES): Remove.
11405         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
11406         (TARGET_CPU_CPP_BUILTINS): Define.
11407
11408 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
11409
11410         * emit-rtl.c: Fix formatting.
11411         * errors.h: Likewise.
11412         * except.c: Likewise.
11413         * explow.c: Likewise.
11414         * expmed.c: Likewise.
11415         * expr.c: Likewise.
11416         * expr.h: Likewise.
11417
11418 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
11419
11420         * config/h8300/elf.h: Fix formatting.
11421         * config/h8300/rtems.h: Likewise.
11422
11423 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
11424
11425         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
11426
11427 2002-06-02  Tom Tromey  <tromey@redhat.com>
11428
11429         * fixinc/fixincl.x: Rebuilt.
11430         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
11431
11432 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11433
11434 config/i370:
11435         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
11436         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
11437         * mvs.h: Similarly.
11438         * oe.h: Similarly.
11439
11440 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
11441
11442         * final.c (final):  Allow notes to not have computed addresses;
11443         kill no longer needed STACK_REGS ifdef.
11444
11445 2002-06-02  Richard Henderson  <rth@redhat.com>
11446
11447         * gcse.c (bypass_conditional_jumps): Fix typo last change.
11448
11449 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
11450
11451         * loop.c (emit_prefetch_instructions): Properly place the address
11452         computation.
11453
11454 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
11455
11456         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
11457         (set_block_for_insn): Turn into macro.
11458         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
11459         * cfglayout.c (insn_scopes): Kill.
11460         (scope_to_insns_initialize): Do not use insn_scopes.
11461         (scope_to_insns_finalize): Likewise.
11462         (duplicate_insn_chain): Likewise.
11463         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
11464         * cfgrtl.c (basic_block_for_insn): Kill.
11465         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
11466         (create_basic_block_structure): Use reorder_insns.
11467         (compute_bb_for_insn): Do not use basic_block_for_insn.
11468         (merge_blocks_nomove): Likewise.
11469         (update_bb_for_insn): Likewise.
11470         (verify_flow_info): Likewise.
11471         (set_block_for_insn): Kill.
11472         * combine.c (try_combine): Update gen_rtx_INSN call.
11473         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
11474         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
11475         scopes and BBs.
11476         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
11477         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
11478         Clear BB.
11479         (emit_insns_after): Simplify.
11480         (emit_copy_of_insn_after): Copy scope.
11481         * final.c (final_start_function): Lower scopes.
11482         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
11483         * integrate.c (copy_insn_list): Cope scopes.
11484         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
11485         * loop.c (loop_optimize): Do not care block notes.
11486         * print-rtl.c (print_rtx): Print BB.
11487         * recog.c (apply_change_group): Simplify.
11488         * rtl.c (copy_rtx): Handle 'B'.
11489         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
11490         * rtl.h (Field accessors): Update indexes.
11491         * sched-ebb.c (schedule_ebbs): Do not lower notes.
11492         * sched-rgn.c (schedule_insns): Likewise.
11493         * toplev.c (rest_of_compilation): Lower notes.
11494         * unroll.c (unroll_loop): Do not care scoping notes.
11495         (copy_loop_body): Copy scopes.
11496
11497 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11498
11499 config/h8300:
11500         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
11501         SUBTARGET_SPEC.
11502         * rtems.h: Similarly.
11503         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
11504         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
11505         (TARGET_CPU_CPP_BUILTINS): Use.
11506
11507 2002-06-02  Richard Henderson  <rth@redhat.com>
11508
11509         * alias.c: Include target.h.
11510         (mark_constant_function): Use targetm.binds_local_p instead
11511         of checking TREE_PUBLIC ourselves.
11512         * Makefile.in (alias.o): Add TARGET_H.
11513
11514 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11515
11516         * c-lex.c: Update copyright and file description.
11517
11518 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11519
11520         * config/fr30/fr30.h: Update to new CPP macros.
11521
11522 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11523
11524         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
11525
11526 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11527             Zack Weinberg <zack@codesourcery.com>
11528
11529         * c-common.c (c_common_init): Override cpplib's default
11530         warn_long_long setting.
11531         * c-lex.c (lex_number): Replace with interpret_integer,
11532         interpret_float, narrowest_unsigned_type and
11533         narrowest_signed_type, taking advantage of the new
11534         cpplib functionality.
11535         * cpperror.c (_cpp_begin_message): If a warning is turned
11536         into an error, avoid printing "warning:".
11537         * cppexp.c (cpp_num_sign_extend): New.
11538         * cppinit.c: Update comment.
11539         * cpplib.h (cpp_num_sign_extend): New.
11540         * tree.h: Update comment.
11541
11542 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
11543
11544         * diagnostic.h (struct diagnostic_context):  Add new member
11545         internal_error.
11546         (internal_error_function): Remove declaration.
11547         * diagnostic.c (internal_error_function): Remove definition..
11548         (internal_error): Adjust use.
11549
11550 2002-06-02  Richard Henderson  <rth@redhat.com>
11551
11552         * rtl.h (CC0_P): New.
11553         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
11554         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
11555         (bypass_block): Save old dest block for dump text.
11556         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
11557         Allow only true SET insns, not single_set.
11558
11559 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
11560
11561         * diagnostic.c (diagnostic_finish): Rename to output_flush.
11562         (clear_disgnostic_info): Rename to output_clear_data.  Use false
11563         instead of 0 for boolean value.
11564         Adjust function call throughout.
11565
11566 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
11567
11568         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
11569         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
11570
11571 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11572
11573         * d30v.h (CPP_PREDEFINES): Replace with
11574         (TARGET_CPU_CPP_BUILTINS): New.
11575
11576 2002-06-02  Roger Sayle  <roger@eyesopen.com>
11577
11578         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
11579
11580 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
11581
11582         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
11583
11584 2002-06-02  Richard Henderson  <rth@redhat.com>
11585
11586         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
11587
11588 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11589
11590         Support for C++ constructors/destructors.
11591         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
11592         instead of looping if main() returns.
11593         (asm_file_start): Output global symbols that cause .data and .bss
11594         initialization code to be linked in, unconditionally for now.
11595         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
11596         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
11597         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11598         (LIBSTDCXX): New.
11599         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
11600         (__tablejump__): New.
11601         (__do_copy_data, __do_clear_bss): New.
11602         (__do_global_ctors, __do_global_dtors): New.
11603         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
11604         _ctors, _dtors.
11605
11606 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11607
11608         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
11609         (CPP_SPEC, CPP_PREDEFINES): Kill.
11610         * c4x/rtems.h (CPP_PREDEFINES): Kill.
11611         (TARGET_OS_CPP_BUILTINS): New.
11612
11613 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
11614
11615         * Makefile.in (tracer.o): New.
11616         * params.def (TRACER_*): New options.
11617         * rtl.h (tracer): Declare.
11618         * timevar.def (TV_TRACER): New.
11619         * toplev.c (dump_file_index): Add DFI_tracer.
11620         (dump_file_info): Add tracer.
11621         (flag_tracer): New.
11622         (lang_indepdenent_options): Add tracer.
11623         (rest_of_compilation): Call tracer.
11624         * tracer.c: New file.
11625         * invoke.texi (-ftracer): Document.
11626         (--param tracer-*): Document.
11627
11628 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
11629
11630         * tree-inline.c (expand_call_inline): Make the statement
11631         expression we generate have a COMPOUND_STMT.
11632
11633 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11634
11635         * gcse.c (cprop_cc0_jump): Function deleted.
11636         (cprop_jump): Take an additional argument which is the possibly
11637         NULL cc setting insn immediately before the conditional jump.
11638         When a MODE_CC set is present, substitute it into the JUMP_INSN
11639         before attempting the constant propagation.
11640         (cprop_insn):  Recognize cc setters followed by conditional jumps
11641         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
11642         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
11643         (find_bypass_set): New function based upon find_avail_set used by
11644         cprop, but finds constant expressions available at the end of
11645         basic blocks.
11646         (bypass_block): New function.  Given a basic block that begins
11647         with a conditional jump and multiple incoming edges, perform
11648         the jump bypass optimization.
11649         (bypass_conditional_jumps): New function.  Call bypass_block with
11650         each suitable basic block in the CFG using a simple single pass.
11651
11652 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11653
11654         * tree.c (real_minus_onep): New function to test for -1.0.
11655         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
11656
11657 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11658
11659         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
11660         and "!p && !q" into "(p|q) == 0" under suitable conditions.
11661
11662 2002-06-01  Andreas Jaeger  <aj@suse.de>
11663
11664         * cppexp.c (cpp_classify_number): Cast precission to int for
11665         correct printf format.
11666
11667 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11668
11669         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
11670         expected, but don't really exist: atmega83, atmega85, attiny10.
11671         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
11672         emulations for all devices.
11673         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
11674         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
11675
11676 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
11677
11678         * config/h8300/h8300-protos.h: Add a prototype for
11679         h8300_shift_needs_scratch_p.
11680         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
11681         * config/h8300/h8300.h (OK_FOR_R): New.
11682         (OK_FOR_S): Likewise.
11683         (OK_FOR_T): Likewise.
11684         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
11685         * config/h8300/h8300.md (anonymous shift patterns): Use
11686         constraints R, S, and T.
11687
11688 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11689
11690         * basic-block.h (struct basic_block_def): New field loop_father.
11691         (BB_VISITED): New flag.
11692         (struct loop): New field pred, removed field shared.
11693         (struct loops): New field parray.
11694         (LOOP_EXITS_DOMS): Removed.
11695         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
11696         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
11697         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
11698         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
11699         verify_loop_structure): Declare.
11700         * cfg.c (entry_exit_blocks): Initialize loop_father field.
11701         * cfganal.c (dfs_enumerate_from): New function.
11702         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
11703         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
11704         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
11705         flow_loop_dump, flow_loops_dump, flow_loops_free,
11706         flow_loop_tree_node_add, flow_loop_level_compute,
11707         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
11708         flow_loop_outside_edge_p): Modified for new infrastructure.
11709         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
11710         redirect_edge_with_latch_update, flow_loop_free): New static functions.
11711         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
11712         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
11713         find_common_loop, verify_loop_structure, loop_latch_edge,
11714         loop_preheader_edge): New functions.
11715         (flow_loops_cfg_dump): Do not show dominators, as this information
11716         does not remain up to date long.
11717         (flow_loops_find): Store results in new format.
11718         * predict.c (propagate_freq, estimate_probability,
11719         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
11720         infrastructure.
11721
11722 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
11723
11724         * except.c (nothrow_function_p): Walk epilogue delay list
11725         checking the insn, not the chain for potential throws.
11726
11727 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
11728
11729         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
11730         (install): Refer to install-cpp directly.
11731         (uninstall-cpp): Folded into uninstall rule.
11732         * configure.in: Delete all code relating to --disable-cpp.
11733         * configure: Regenerate.
11734         * config/t-install-cpp: Delete.
11735
11736 2002-05-31  Richard Henderson  <rth@redhat.com>
11737
11738         * configure.in (HAVE_AS_TLS): Add alpha tests.
11739         * configure: Rebuild.
11740         * config/alpha/alpha.c (TARGET_AS_TLS): New.
11741         (alpha_tls_size, alpha_tls_size_string): New.
11742         (overide_options): Set it.  Always install machine_status hooks.
11743         (input_operand): Accept got tls predicates.
11744         (local_symbol_p): Merge into ...
11745         (local_symbolic_operand): ... here.  Reject tls symbols.
11746         (global_symbolic_operand): Likewise.
11747         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
11748         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
11749         (tp16_symbolic_operand, tp32_symbolic_operand): New.
11750         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
11751         (alpha_encode_section_info): Handle TLS symbols.
11752         (alpha_strip_name_encoding): Likewise.
11753         (alpha_legitimate_address_p): Likewise.
11754         (alpha_legitimize_address): Likewise.
11755         (alpha_expand_mov): Early exit to avoid nop moves.
11756         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
11757         (alpha_init_machine_status, alpha_mark_machine_status,
11758         alpha_free_machine_status): Always define.
11759         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11760         (print_operand, print_operand_address): Add TLS relocs.
11761         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
11762         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
11763         (TARGET_SWITCHES): Add -mtls-kernel.
11764         (alpha_tls_size, alpha_tls_size_string): New.
11765         (TARGET_OPTIONS): Add -mtls-size=.
11766         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
11767         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
11768         (ASM_OUTPUT_LABELREF): Skip %.
11769         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
11770         (PREDICATE_CODES): Update.
11771         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
11772         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
11773         UNSPEC_TP, UNSPECV_SET_TP): New.
11774         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
11775         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
11776         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
11777         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
11778         (call_value_osf_2_er): Accept anything as op4.
11779         * config/alpha/alpha-protos.h: Update.
11780         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
11781
11782 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
11783
11784         * cppinit.c (append_include_chain): Always pay attention to
11785         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
11786         marker on argument.
11787
11788 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
11789
11790         * target.h: Fix formatting.
11791         * timevar.h: Likewise.
11792         * tlink.c: Likewise.
11793         * toplev.c: Likewise.
11794         * toplev.h: Likewise.
11795         * tree.c: Likewise.
11796         * tree-dump.h: Likewise.
11797         * tree.h: Likewise.
11798         * tree-inline.h: Likewise.
11799         * unroll.c: Likewise.
11800         * unwind-dw2.c: Likewise.
11801         * unwind-dw2-fde.c: Likewise.
11802         * unwind-dw2-fde-glibc.c: Likewise.
11803         * unwind-dw2-fde.h: Likewise.
11804         * unwind.h: Likewise.
11805         * unwind-sjlj.c: Likewise.
11806         * varasm.c: Likewise.
11807         * varray.h: Likewise.
11808         * vmsdbg.h: Likewise.
11809         * vmsdbgout.c: Likewise.
11810         * xcoffout.h: Likewise.
11811
11812 2002-05-31  Igor Shevlyakov <igor@microunity.com>
11813
11814         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
11815         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
11816
11817 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
11818
11819         * gcc.c (cpp_unique_options): Remove "-d" options.
11820         (cpp_debug_options): New spec string.
11821         (default_compilers): Use it.
11822         * objc/lang-specs.h: Likewise.
11823
11824 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
11825
11826         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
11827         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
11828         * gcc/mklibgcc.in: Likewise.
11829         * gcc/config/arc/t-arc: Likewise.
11830         * gcc/configure.in: Likewise.
11831         * gcc/configure: Regenerate.
11832
11833 2002-05-31  Stan Shebs  <shebs@apple.com>
11834             Turly O'Connor  <turly@apple.com>
11835
11836         * c-decl.c (struct binding_level): Change int field n_incomplete
11837         to tree list incomplete_list.
11838         (clear_binding_level): Init field with NULL.
11839         (pushdecl): Add incomplete type to list.
11840         (mark_binding_level): Mark the incomplete list.
11841         (finish_struct): Scan the incomplete list for types instead
11842         of all decls in the current binding level.
11843
11844 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11845
11846         * pa.c (output_millicode_call): Add missing '%' characters.
11847         (output_call): Likewise.
11848
11849 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
11850
11851         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
11852         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11853
11854 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
11855
11856         * varasm.c (mark_constant_pool): Walk epilogue delay list
11857         checking the insn, not the chain for potential constants.
11858
11859 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
11860
11861         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
11862
11863 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
11864
11865         * i386.c (classify_argument): Properly handle base types.
11866
11867         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
11868         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
11869         registers.
11870
11871 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
11872
11873         * gcse.c (gcse_emit_move_after): New.
11874         (pre_delete, hoist_store): Use it.
11875
11876         * reload1.c (emit_input_reload_insns): Use constrain_operands
11877         instead of constraint_accepts_reg_p to verify optimization.
11878         (constraint_accepts_reg_p): Kill
11879
11880         * reload1.c (reload_cse_delete_noop_set): Kill.
11881         (reload_cse_simplify): use delte_insn_and_edges.
11882
11883 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11884
11885         * cfgloop.c (flow_loops_find): Initialize first and last fields
11886         correctly.
11887
11888 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
11889
11890         * c-common.c (builtin_define_std): Correct logic.
11891
11892 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11893
11894         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
11895         (output_call): Likewise.
11896
11897 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11898
11899         * pa.c: Move output.h include after tree.h include.
11900         (pa_asm_output_mi_thunk): Constify identifier lab.
11901
11902 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11903
11904         * config/ns32k/ns32k.h: Define named constants for the
11905         bits in target_flags and use them.
11906         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
11907
11908 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11909
11910         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
11911         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
11912         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
11913         default scheduling model.
11914         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
11915         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
11916         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
11917         * doc/install.texi (hppa*-*-*): Document default scheduling.
11918
11919 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11920
11921         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
11922
11923 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11924
11925         * config.gcc (ns32k-*-netbsd*): Set tm_file to
11926         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
11927         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
11928         netbsd.h, or netbsd-aout.h.
11929
11930 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11931
11932         * longlong.h (count_trailing_zeros): Add missing \, and clean up
11933         whitespace in __ns32000__ case.
11934
11935 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
11936
11937         * expr.c (expand_expr): Output partially zeroed out vectors with
11938         output_constant_def.
11939
11940 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11941
11942         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
11943         (sh-*-netbsdelf*)
11944         (shl*-*-netbsdelf*): New targets.
11945         * config/sh/netbsd-elf.h: New file.
11946         * config/sh/t-netbsd: New file.
11947
11948 2002-05-30  Richard Henderson  <rth@redhat.com>
11949             Eric Botcazou  <ebotcazou@multimania.com>
11950
11951         PR optimization/6822
11952         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
11953         to unsigned int for op1 comparisons.  Use gen_int_mode.
11954
11955 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
11956
11957         * expmed.c (const_mult_add_overflow_p): New.
11958         * expr.h: Declare it.
11959         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
11960         Don't eliminate the biv if the giv has a constant multiplier and
11961         the rhs argument of the comparison does satisfy the predicate.
11962         Use expand_mult_add to compute the replacement constant.
11963
11964 2002-05-30  Osku Salerma  <osku@iki.fi>
11965
11966         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
11967         (c_common_get_alias_set): Handle it.
11968         * doc/extend.texi: Document it.
11969
11970 2002-05-30  Richard Henderson  <rth@redhat.com>
11971
11972         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11973         * toplev.c (process_options): Don't check it.
11974         * doc/tm.texi: Don't document it.
11975         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
11976         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11977         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
11978         frame pointer optimization if current_function_profile.
11979
11980 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
11981
11982         * langhooks.c: Fix formatting.
11983         * langhooks.h: Likewise.
11984         * lcm.c: Likewise.
11985         * libgcc2.c: Likewise.
11986         * lists.c: Likewise.
11987         * local-alloc.c: Likewise.
11988         * loop.c: Likewise.
11989         * loop.h: Likewise.
11990
11991 2002-05-30  Marc Espie <espie@openbsd.org>
11992
11993         * config.gcc (sparc64-*-openbsd*): New.
11994         * config/sparc/openbsd1-64.h: New.
11995         * config/sparc/openbsd64.h: New.
11996
11997 2002-05-30  Jeff Law <law@redhat.com>
11998
11999         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
12000         a dead insn with a REG_RETVAL note when the entire libcall is not
12001         dead and remove the associated REG_LIBCALL note at the same time.
12002
12003 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
12004
12005         * lcm.c (output.h): #include.
12006         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
12007         as an ordinary block.
12008         (optimize_mode_switching): Don't pretend that the exit block is
12009         an ordinary block, or handle sucessors of entry block specially.
12010         Instead, split edges from entry block and to exit block, and
12011         put a computing definition on the thus gained post-entry-block,
12012         and a need on the pre-exit-block.
12013
12014 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
12015
12016         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
12017         * rtl.texi: Document 'B'
12018
12019 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
12020
12021         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
12022         at run-time.
12023         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
12024
12025 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
12026
12027         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
12028         const0_rtx instead of NULL_RTX when in error.
12029         (altivec_expand_abs_builtin): Same.
12030         (rs6000_expand_binop_builtin): Same.
12031         (altivec_expand_predicate_builtin): Same.
12032         (altivec_expand_stv_builtin): Same.
12033         (rs6000_expand_ternop_builtin): Same.
12034         (altivec_expand_builtin): Same.
12035
12036 2002-05-29  David S. Miller  <davem@redhat.com>
12037
12038         * rtl.h (clear_emit_caches): Delete.
12039         * integrate.c (output_inline_function): Don't call it.
12040         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
12041         (clear_emit_caches): Delete definition.
12042         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
12043
12044 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
12045
12046         * config/mmix/mmix.c: Include real.h.
12047         (mmix_constant_address_p): Remove redundant test before switch.
12048
12049 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12050
12051         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
12052         only if not already defined.
12053
12054 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
12055
12056         * config/h8300/h8300-protos.h: Remove prototypes for
12057         ok_for_bclr and small_power_of_two.
12058         * config/h8300/h8300.c (small_power_of_two): Remove.
12059         (ok_for_blcr): Likewise.
12060         (fix_bit_operand): Make WHAT deal with an integer instead of a
12061         constraint character.
12062         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
12063         (CONST_OK_FOR_P): Likewise.
12064         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
12065         CONST_OK_FOR_P any more.
12066         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
12067         of fix_bit_operand.
12068         (iorqi3): Likewise.
12069         (xorqi3): Likewise.
12070
12071 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12072
12073         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12074         (CPP_PREDEFINES): Make sure this is undefined.
12075         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
12076         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
12077         or -U__MIPSEB__ before defining one or the other.  Instead,
12078         use %(subtarget_endian_default) if neither -EB nor -EL are
12079         specified.
12080         (SUBTARGET_EXTRA_SPECS): Define.
12081         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
12082         %(netbsd_cpp_spec).
12083
12084 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
12085
12086         * doc/md.texi (Patterns): Note pattern condition pitfall
12087         for unnamed insn.
12088
12089 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
12090
12091         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
12092         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
12093         ternary operations from here...
12094         (rs6000_expand_builtin): ...to here.
12095         New argument expandedp.
12096         Change all instances of altivec_expand_binop_builtin to
12097         rs6000_expand_binop_builtin.
12098         (altivec_expand_unop_builtin): Rename to
12099         rs6000_expand_unop_builtin.
12100         (altivec_expand_binop_builtin): Rename to
12101         rs6000_expand_binop_builtin.
12102         (altivec_expand_ternop_builtin): Rename to
12103         rs6000_expand_ternop_builtin.
12104
12105 2002-05-29  Richard Henderson  <rth@redhat.com>
12106
12107         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
12108         (TARGET_BI_ARCH): Likewise.
12109         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
12110         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
12111         (TARGET_64BIT_DEFAULT): Default to 0.
12112         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
12113
12114 2002-05-29  Richard Henderson  <rth@redhat.com>
12115
12116         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
12117         (get_pc_thunk_name): New.
12118         (output_set_got): Use it.
12119         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
12120         into linkonce sections.
12121
12122 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12123
12124         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12125         (CPP_PREDEFINES): Make sure this is undefined.
12126         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
12127         (CPP_SUBTARGET_SPEC): Don't provide different versions for
12128         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
12129         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
12130         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
12131         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12132         (CPP_PREDEFINES): Make sure this is undefined.
12133         (SUBTARGET_EXTRA_SPECS): Define.
12134         (CPP_SPEC): Use %(netbsd_cpp_spec).
12135
12136 2002-05-29  Jeff Law <law@redhat.com>
12137
12138         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
12139
12140         * flow.c (propagate_one_insn): Do not remove a dead insn if it
12141         contains a REG_RETVAL note.
12142
12143         * haifa-sched (sched_analyze): Remove another useless clearing
12144         of SCHED_GROUP_P I missed yesterday.
12145
12146         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
12147         * pa.c (pa_asm_output_mi_thunk): New function.
12148         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
12149
12150 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12151             Marek Michalkiewicz  <marekm@amelek.gda.pl>
12152
12153         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
12154         (avr_asm_only_p): Make non-static.
12155         (enum avr_arch): Remove.
12156         (avr_arch_types): New.
12157         (avr_mcu_types): Update.
12158         (avr_override_options): Use avr_arch_types table instead of switch.
12159         * avr.h (CPP_PREDEFINES): Die.
12160         (avr_base_arch_macro, avr_extra_arch_macro): New.
12161         (TARGET_CPU_CPP_BUILTINS): New.
12162         (CPP_SPEC, EXTRA_SPECS): Simplify.
12163         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
12164         CPP_AVR5_SPEC): Die.
12165
12166 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12167
12168         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
12169         NETBSD_OS_CPP_BUILTINS_AOUT.
12170         (SUBTARGET_EXTRA_SPECS): Define.
12171         (CPP_SPEC): Use %(netbsd_cpp_spec).
12172
12173 2002-05-29  Richard Henderson  <rth@redhat.com>
12174
12175         * config/i386/i386.c (ix86_output_function_epilogue): New.
12176         (TARGET_ASM_FUNCTION_EPILOGUE): New.
12177         (pic_label_name): Remove.
12178         (pic_labels_used): New.
12179         (ix86_asm_file_end): Emit one pc load stub for each register used.
12180         (output_set_got): Generate deep pc load to any register.
12181         (ix86_select_alt_pic_regnum): New.
12182         (ix86_save_reg): Don't save pic register if we can find a valid
12183         call-clobbered replacement.
12184         (ix86_expand_prologue): If we found a valid replacement, renumber
12185         pic_offset_table_rtx.
12186         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
12187         pic_offset_table_rtx after reload.
12188         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
12189         * config/i386/i386.md (set_got): Make insn, not expander.
12190         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
12191
12192 2002-05-29  Richard Henderson  <rth@redhat.com>
12193
12194         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
12195         alignment for alloca.
12196
12197 2002-05-29  Richard Henderson  <rth@redhat.com>
12198
12199         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
12200         (print_operand_address): Only add rip for symbolic addresses
12201         for which we do not have another relocation type.
12202
12203 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12204
12205         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12206         (EXTRA_SPECS): Add netbsd_cpp_spec.
12207         (CPP_SPEC): Use %(netbsd_cpp_spec).
12208         (CPP_PREDEFINES): Remove.
12209         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12210         (EXTRA_SPECS): Define.
12211         (CPP_SPEC): Use %(netbsd_cpp_spec).
12212         (CPP_PREDEFINES): Remove.
12213
12214 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12215
12216         PR preprocessor/6844
12217         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
12218         NUL.
12219
12220 2002-05-29  Eric Christopher  <echristo@redhat.com>
12221
12222         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
12223         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
12224
12225 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
12226
12227         * config/fr30/fr30.md: Remove previous restriction on splits.
12228         Enforce conformance through gen_lowpart and cont_int_operand.
12229         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
12230         as the assembler does not support ".bss".
12231
12232 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12233
12234         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12235         (CPP_PREDEFINES): Remove.
12236         (SUBTARGET_EXTRA_SPECS): Define.
12237         (CPP_SPEC): Use %(netbsd_cpp_spec).
12238         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12239         (CPP_PREDEFINES): Remove.
12240         (SUBTARGET_EXTRA_SPECS): Define.
12241         (CPP_SPEC): Use %(netbsd_cpp_spec).
12242         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
12243         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
12244         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
12245         Add netbsd_cpp_spec.
12246         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
12247
12248 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12249             Zack Weinberg <zack@codesourcery.com>
12250
12251         * cppexp.c (cpp_num): Move to cpplib.h.
12252         (CPP_ERROR): Remove.
12253         (interpret_float_suffix, interpret_int_suffix): New.
12254         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
12255         (cpp_classify_number, cpp_interpret_integer): New.
12256         (interpret_number): Remove.
12257         (eval_token): Update to use new routines.
12258         * cpphash.h (cpp_num_part): Move to cpplib.h.
12259         * cppinit.c (cpp_post_options): Set warn_long_long.
12260         * cpplib.h (struct cpp_options): Add warn_long_long.
12261         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
12262         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
12263         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
12264         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
12265         cpp_interpret_integer): New.
12266
12267 2002-05-29  Joel Sherrill <joel@OARcorp.com>
12268
12269         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
12270
12271 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12272
12273         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
12274         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
12275         (CPP_SUBTARGET_SPEC): Define.
12276         (SUBTARGET_EXTRA_SPECS): Define.
12277         (CPP_SPEC): Remove.
12278
12279 2002-05-29  Chris Lattner  <sabre@nondot.org>
12280
12281         * ssa.c (rename_insn_1): Rename uses of undefined registers to
12282         prevent confusion if/when the register is defined.
12283
12284 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
12285
12286         PR target/6838
12287         * config/cris/cris.md: Fix typos and thinkos in comments.
12288         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
12289         second alternative.
12290         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
12291         ("*mov_sideqi_mem"): Similar, but for operand 3.
12292         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
12293         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
12294         Remove spurious mode specifier on operand 2.
12295
12296 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
12297
12298         * config/h8300/h8300-protos.h: Remove the prototype for
12299         o_operand.
12300         Add prototypes for single_one_operand and single_zero_operand.
12301         * config/h8300/h8300.c (o_operand): Remove.
12302         (single_one_operand): New.
12303         (single_zero_operand): Likewise.
12304         (print_operand): For 'V' operand, and the operand with 0xff.
12305         For 'V' and 'W' operands, do not and the bit position with 7.
12306         * config/h8300/h8300.md (various anonymous patterns): Replace
12307         use of exact_log2 with single_one_operand/single_zero_operand.
12308
12309 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
12310
12311         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
12312
12313 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
12314
12315         * config/s390/s390.c (legitimate_pic_operand_p): Do not
12316         accept symbolic LARL operands.
12317         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
12318         epilogue insns.
12319
12320 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
12321
12322         * config/s390/s390.md (cmpstr_64/31): Mark whole
12323         input registers as used.
12324
12325 2002-05-28  Richard Henderson  <rth@redhat.com>
12326
12327         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
12328         not current_function_uses_pic_offset_table and
12329         current_function_uses_const_pool; examine current_function_profile.
12330         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
12331         input to blockage if needed.
12332         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
12333         (legitimize_pic_address): Likewise.  Set regs_ever_live for
12334         pic_offset_table_rtx when invoked during reload.
12335         * config/i386/i386.h (FINALIZE_PIC): Remove.
12336         * config/i386/i386.md (tablejump): Reformat.  Do not set
12337         current_function_uses_pic_offset_table.
12338         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
12339         (blockage): Accept anything as operand 0.
12340
12341 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
12342
12343         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
12344         common CPP built-ins for all NetBSD a.out targets.
12345         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
12346         common CPP built-ins for all NetBSD ELF targets.
12347         * config/netbsd.h: Add missing notice.
12348         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
12349         for all NetBSD targets.
12350         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
12351         for all NetBSD targets using an LP64 code model.
12352         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
12353         NetBSD targets.
12354
12355 2002-05-28  Richard Henderson  <rth@redhat.com>
12356
12357         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
12358         update if UPDATE_LIFE_LOCAL.
12359
12360 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12361
12362         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
12363
12364 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
12365                           Jason R. Thorpe <thorpej@wasabisystems.com>
12366
12367         config/sh reorganization to factor out endianness and coff:
12368
12369         * config/sh/little.h: New file.
12370         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
12371         defined, define to 0 to select big-endian.
12372         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
12373         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12374         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12375         * config/sh/t-be: New file.
12376         * config/sh/t-le: New file.
12377
12378         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
12379         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
12380         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
12381         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
12382         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
12383         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12384         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
12385         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
12386         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
12387         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
12388         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
12389         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
12390         (LINK_SPEC): Define to SH_LINK_SPEC.
12391         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
12392         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
12393         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12394         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
12395         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
12396         * config/sh/coff.h: New file.
12397         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
12398         (TARGET_OBJFMT_CPP_BUILTINS): Define.
12399         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
12400         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
12401         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
12402         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
12403         (PTRDIFF_TYPE): Likewise.
12404         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
12405         (CPP_PREDEFINES): Don't define.
12406         (TARGET_OBJFMT_CPP_BUILTINS): Define.
12407         (LINK_SPEC): Define to SH_LINK_SPEC.
12408         (LINK_EMUL_PREFIX): Redefine.
12409         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
12410         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
12411         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
12412         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
12413         (TARGET_OS_CPP_BUILTINS): Define.
12414         (TARGET_DEFAULT): Redefine.
12415         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12416         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
12417         (LINK_SPEC): Don't redefine.
12418         (LINK_DEFAULT_CPU_EMUL): Redefine.
12419         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12420         * sh.c (sh_asm_named_section): Don't declare / define.
12421         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
12422         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
12423         (sh64-*-elf* tm_file): Likewise.
12424         (sh-*-rtemself* tm_file): Likewise.
12425         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
12426         (sh-*-linux* tmake_file): Add sh/t-le.
12427         (sh-*-rtems* tm_file): Add sh/coff.h
12428         (sh-*-* tm_file): Likewise.
12429
12430 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
12431
12432         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
12433         CONSTANT_POOL_ADDRESS_P.
12434
12435         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
12436
12437 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
12438             Jeff Law <law@redhat.com>
12439
12440         * optabs.c (expand_binop): Fix nwords sign warnings.
12441         generate pseudo for add_optab.
12442
12443         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
12444         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
12445
12446 2002-05-28      Marc Espie <espie@openbsd.org>
12447
12448         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
12449         inherited from gas.h.
12450         (ASM_QUAD):  Undef.  OpenBSD does not support it.
12451
12452 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
12453
12454         * doc/install.texi (binaries): Change mingw binaries
12455         link to www.mingw.org.
12456
12457 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12458
12459         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
12460
12461 2002-05-28  Richard Henderson  <rth@redhat.com>
12462
12463         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
12464         bottom alignment for leaf functions.
12465
12466 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
12467
12468         * config/pa/milli32.S, config/pa/lib1funcs.asm,
12469         config/sparc/sol2-g1.asm: Delete unused files.
12470
12471 2002-05-28  Richard Henderson  <rth@redhat.com>
12472
12473         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
12474
12475         * flow.c (calculate_global_regs_live): Rename call_used to
12476         invalidated_by_call.  Initialize from regs_invalidated_by_call
12477         instead of call_used_regs.
12478
12479         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
12480         DECL_EXTERNAL.
12481
12482 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
12483
12484         * tree.h: Don't include real.h.
12485         Forward-declare struct realvaluetype.
12486         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
12487         contain it.
12488         (TREE_REAL_CST_PTR): New accessor.
12489         (TREE_REAL_CST): Update.
12490         * real.h: Include machmode.h.
12491         (realvaluetype): Make it struct realvaluetype, not a typedef.
12492         (build_real): Prototype here.
12493
12494         * tree.c: Include real.h.
12495         (build_real): Allocate the REAL_VALUE_TYPE as a separate
12496         object in GC memory, set TREE_REAL_CST_PTR to point to it.
12497         (build_real_from_int_cst): Use build_real.
12498         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
12499         REAL_CST.
12500
12501         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
12502         fold-const.c, print-tree.c, real.c: Include real.h.
12503         * Makefile.in: Update dependency lists.
12504
12505 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12506
12507         * basic-block.h (last_basic_block): Declare.
12508         (expunge_block_nocompact): Declaration removed.
12509         (compact_blocks): Declare.
12510         * cfg.c (last_basic_block): New variable.
12511         (expunge_block_nocompact): Removed.
12512         (expunge_block): Do not compact basic blocks.
12513         (compact_blocks): New.
12514         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
12515         longer change.
12516         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
12517         last_basic_block.
12518         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
12519         real positions of blocks.
12520         (delete_unreachable_blocks): Simplified -- quadratic behavior now
12521         cannot occur.
12522         (cleanup_cfg): Compact blocks.
12523         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
12524         basic_block_info varray.
12525         (flow_delete_block): Comment update.
12526         (back_edge_of_syntactic_loop_p): Modify position check code.
12527         (verify_flow_info): Update checking.
12528         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
12529         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12530         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
12531         indices no longer change.
12532         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
12533         last_basic_block.
12534         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
12535         * profile.c (branch_prob): Compact blocks.
12536         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
12537         last_basic_block.
12538
12539 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
12540
12541         * config/h8300/h8300.md (two anonymous patterns): New.
12542
12543 2002-05-28  David S. Miller  <davem@redhat.com>
12544
12545         * config/sparc/sparc.md (cpu): Tidy.
12546         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
12547         'trap'.
12548         (in_call_delay): Delete reference to 'return' type.
12549         (eligible_for_return_delay, in_return_delay, define_delay
12550         referencing those): Delete.
12551         (rest of file): Use new type attributes as appropriate.
12552         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
12553         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
12554         * config/sparc/ultra1_2.md (us1_single): New reservation.
12555         (us1_ialuX): Likewise.
12556         * config/sparc/ultra3.md (us3_single): Likewise.
12557         (us3_ialuX): Likewise.
12558         (us3_imul, us3_idiv): Tweak.
12559
12560 2002-05-28  Richard Henderson  <rth@redhat.com>
12561
12562         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
12563         STRING_CST.
12564
12565 2002-05-28  Richard Henderson  <rth@redhat.com>
12566
12567         * config.gcc: Obsolete mn10200.
12568
12569 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12570
12571         * cppexp.c (interpret_number): Optimize for single-digit
12572         and less-than-half-precision cases.
12573         (num_trim, num_positive, num_div_op): Cast constants.
12574
12575 2002-05-27  Bo Thorsen  <bo@suse.de>
12576
12577         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
12578         3.1 branch. The file was made by Jakub Jelinek.
12579         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
12580         support so multilib doesn't break. And don't define this at all
12581         when -Dinhibit_libc is used.
12582         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
12583         * config/i386/t-linux64: Implement full multilib support. Patch
12584         originally done by Andreas Jaeger and Jakub Jelinek.
12585
12586 2002-05-27  Roger Sayle  <roger@eyesopen.com>
12587
12588         * c-common.c: Add support for __attribute__((nothrow)) to specify
12589         that a function cannot throw an exception (using TREE_NOTHROW).
12590         (handle_nothrow_attribute): New function to process this attribute.
12591
12592         * doc/extend.texi: Document the new nothrow function attribute.
12593
12594 2002-05-27  H.J. Lu  (hjl@gnu.org)
12595
12596         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
12597         (num_positive): Likewise.
12598         (num_div_op): Likewise.
12599
12600 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12601
12602         * c-common.c (c_common_init): Always use intmax_t.
12603
12604 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12605
12606         * c-common.c (c_common_init): Use intmax_t for now.
12607
12608 2002-05-24  Andrew Haley  <aph@redhat.com>
12609
12610         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
12611         if T is a boolean type.
12612
12613 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12614
12615         * basic-block.h (last_basic_block): Defined as synonym for
12616         n_basic_blocks.
12617         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
12618         flow_depth_first_order_compute, flow_preorder_transversal_compute,
12619         flow_dfs_compute_reverse_init): Replaced relevant occurences of
12620         n_basic_blocks with last_basic_block.
12621         * cfgbuild.c (make_edges): Likewise.
12622         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
12623         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
12624         * combine.c (combine_instructions): Likewise.
12625         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
12626         iterative_dataflow_bitmap): Likewise.
12627         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12628         calc_idoms, idoms_to_doms): Likewise.
12629         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
12630         Likewise.
12631         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
12632         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
12633         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
12634         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
12635         delete_null_pointer_checks, compute_code_hoist_vbeinout,
12636         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12637         compute_store_table, build_store_vectors): Likewise.
12638         * haifa-sched.c (sched_init): Likewise.
12639         * ifcvt.c (if_convert): Likewise.
12640         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12641         pre_edge_lcm, compute_available, compute_nearerout,
12642         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
12643         Likewise.
12644         * predict.c (estimate_probability, process_note_prediction,
12645         note_prediction_to_br_prob): Likewise.
12646         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
12647         * recog.c (split_all_insns, peephole2_optimize): Likewise.
12648         * regrename.c (copyprop_hardreg_forward): Likewise.
12649         * resource.c (init_resource_info): Likewise.
12650         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
12651         init_regions, schedule_insns): Likewise.
12652         * ssa-ccp.c (ssa_const_prop): Likewise.
12653         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12654         * ssa.c (compute_dominance_frontiers,
12655         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
12656
12657         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
12658         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
12659         sizes consistently.
12660
12661 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12662
12663         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
12664         new.
12665         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
12666         hoist_insn_after, hoist_insn_to_edge): New.
12667
12668 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
12669
12670         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
12671         (PROP_FINAL): Include.
12672         * flow.c (life_analysis, update_life_info,
12673         init_propagate_block_info, mark_set_1, mark_used_rgs):
12674         Support SCAN_DEAD_STORE.
12675
12676 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12677
12678         * c-common.c (c_common_init): Set CPP arithmetic precision.
12679         * cppexp.c (cpp_num_part): Move typedef ...
12680         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
12681         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
12682         (sanity_checks): Update.
12683
12684 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
12685
12686         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
12687         (mkheaders): New rule.
12688         (install-mkheaders): New rule.
12689         * configure.in (all_outputs): Add mkheaders.
12690         * configure: Regenerate.
12691         * mkheaders.in: New file.
12692
12693 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
12694
12695         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
12696
12697 2002-05-26  Andreas Jaeger  <aj@suse.de>
12698
12699         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
12700
12701 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12702
12703         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
12704         right_shift): Remove.
12705         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
12706         HIGH_PART): New.
12707         (struct op): Use cpp_num.
12708         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
12709         num_part_mul, num_unary_op, num_binary_op, num_negate,
12710         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
12711         num_div_op, num_lshift, num_rshift, append_digit): New.
12712         (interpret_number, parse_defined, eval_token, reduce): Update
12713         for two-integer arithmetic.
12714         (binary_handler): New typedef.
12715         (optab): Update.
12716         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
12717         (_cpp_parse_expr, reduce): Update to handle two-integers.
12718         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
12719
12720 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12721
12722         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
12723         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
12724         branch insn into account, do not assume 1.
12725         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
12726         over single word insn.  Handle upper half of I/O space too.
12727         * config/avr/avr.md (*sbrx_branch): Use it.
12728         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
12729         (*sbix_branch, *sbix_branch_bit7): Likewise.
12730         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
12731         Use RTL peepholes to optimize register operand sign tests.
12732
12733 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12734
12735         * config/avr/avr.c (avr_asm_only_p): New variable.
12736         (avr_override_options): Set it here if AVR1.
12737         (asm_file_start): Test it here, report an error if set.
12738
12739 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
12740
12741         * alias.c: Fix formatting.
12742         * attribs.c: Likewise.
12743         * bb-reorder.c: Likewise.
12744         * bitmap.c: Likewise.
12745         * bitmap.h: Likewise.
12746         * builtins.c: Likewise.
12747
12748 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
12749
12750         * reload.c (find_valid_class): Accept new argument DEST,
12751         choose class accordingly.
12752         (push_reload): Update callers.
12753
12754 2002-05-26  Andreas Jaeger  <aj@suse.de>
12755
12756         * combine.c (combine_instructions): Do not indent #if for
12757         traditional C.
12758
12759 2002-05-25  Richard Henderson  <rth@redhat.com>
12760
12761         * c-pragma.c (apply_pragma_weak): Convert value identifier to
12762         string for decl_attributes.
12763         (handle_pragma_weak): Call assemble_alias if we're modifying
12764         an existing decl.
12765
12766 2002-05-25  Richard Henderson  <rth@redhat.com>
12767
12768         PR target/6788
12769         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
12770         using rtl instead of fprintf.
12771         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
12772         * config/sparc/sparc-protos.h: Update.
12773
12774 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12775
12776         * Makefile.in (C_COMMON_H): Fix.
12777         Update other targets.
12778         * c-common.c: Don't include c-lex.h.
12779         (builtin_define_with_value): Make static and prototype.
12780         (builtin_define_std): Move from c-lex.h.
12781         * c-common.h (init_c_lex): Move from c-lex.h.
12782         * c-decl.c: Don't include c-lex.h.
12783         (make_pointer_declarator): Move from c-parse.in.
12784         * c-lex.c: Don't include c-lex.h.
12785         * c-lex.h: Remove.
12786         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
12787         (make_pointer_declarator): Move to c-decl.c.
12788         * c-pragma.c: Don't include c-lex.h.
12789         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
12790         * c-tree.h (make_pointer_declarator): New.
12791 doc:
12792         * passes.texi, tm.texi: Update.
12793 objc:
12794         * Make-lang.in: Update and correct.
12795         * objc-act.c: Don't include c-lex.h or cpplib.h.
12796 treelang:
12797         * treetree.c: Don't include c-lex.h.
12798 config:
12799         * darwin-c.c: Don't include c-lex.h.
12800         * c4x/c4x-c.c: Don't include c-lex.h.
12801         * c4x/t-c4x: Update.
12802         * i370/i370-c.c: Don't include c-lex.h.
12803         * i370/t-i370: Update.
12804         * i960/i960-c.c: Don't include c-lex.h.
12805         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
12806         * i960/t-960bare: Update.
12807         * i960/t-vxworks: Update.
12808         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
12809         * rs6000/t-darwin: Update.
12810         * rs6000/t-rs6000-c-rule: Update.
12811         * v850/v850-c.c: Don't include c-lex.h.
12812         * v850/v850.c: Don't include c-lex.h or cpplib.h.
12813
12814
12815 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
12816
12817         * tree.def: Fix typos.
12818         * doc/install.texi: Likewise.
12819
12820 2002-05-25  Richard Henderson  <rth@redhat.com>
12821
12822         * configure.in (HAVE_AS_TLS): Add ia64 test.
12823         * configure: Rebuild.
12824         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
12825         (override_options): Set it.
12826         (TARGET_HAVE_TLS): New.
12827         (sdata_symbolic_operand): Look for 's'.
12828         (tls_symbolic_operand): New.
12829         (ia64_expand_load_address): Abort for tls symbols.
12830         (gen_tls_get_addr): New.
12831         (gen_thread_pointer): New.
12832         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
12833         (rtx_needs_barrier): Add new unspecs.
12834         (ia64_encode_section_info): Handle tls symbols.
12835         (ia64_strip_name_encoding): Strip two encoding chars.
12836         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
12837         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
12838         (TARGET_OPTIONS): Add tls-size.
12839         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
12840         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
12841         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
12842         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
12843         (movsf, movdf): Likewise.
12844         (movdi_symbolic): Use match_scratch.  Don't split if we won't
12845         have a scratch availiable.
12846         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
12847         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
12848         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
12849         * config/ia64/ia64-protos.h: Update.
12850         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12851         sdata_symbolic_operand.
12852         (ASM_OUTPUT_LABELREF): Strip two characters.
12853
12854 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
12855
12856         * combine.c (simplify_set): Remove an unnecessary subreg.
12857
12858 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12859
12860         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
12861
12862         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
12863
12864 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
12865
12866         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
12867
12868 2002-05-25  Roger Sayle  <roger@eyesopen.com>
12869
12870         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
12871         (cond (compare x y) 0) into the equivalent (cond x y).
12872
12873 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
12874
12875         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
12876
12877 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
12878
12879         * config.gcc: Remove all stanzas for previously obsoleted
12880         systems.  Where necessary, add explicit error stanzas to
12881         prevent removed systems from being misidentified as something
12882         else.  Begin a fresh obsoletions list, with the systems that
12883         were reprieved last round.
12884         * doc/install.texi: Remove all mention of dead targets.
12885         * fixinc/mkfixinc.sh: Likewise.
12886
12887         * config/arm/arm.h: Bit 31 of target_flags is no longer
12888         reserved.
12889
12890         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
12891         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
12892         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
12893         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
12894         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
12895         config/alpha/osf12.h, config/alpha/osf2or3.h,
12896         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
12897         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
12898         config/clipper/clipper-protos.h, config/clipper/clipper.c,
12899         config/clipper/clipper.h, config/clipper/clipper.md,
12900         config/clipper/clix.h, config/convex/convex-protos.h,
12901         config/convex/convex.c, config/convex/convex.h,
12902         config/convex/convex.md, config/convex/fixinc.convex,
12903         config/convex/proto.h, config/elxsi/elxsi-protos.h,
12904         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
12905         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
12906         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
12907         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
12908         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
12909         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
12910         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
12911         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
12912         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
12913         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
12914         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
12915         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
12916         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
12917         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
12918         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
12919         config/m68k/altos3068.h, config/m68k/apollo68.h,
12920         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
12921         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
12922         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
12923         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
12924         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
12925         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
12926         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
12927         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
12928         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
12929         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
12930         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
12931         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
12932         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
12933         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
12934         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
12935         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
12936         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
12937         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
12938         config/mips/dec-osf1.h, config/mips/elflorion.h,
12939         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
12940         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
12941         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
12942         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
12943         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
12944         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
12945         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
12946         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
12947         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
12948         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
12949         config/ns32k/sequent.h, config/ns32k/tek6000.h,
12950         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
12951         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
12952         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
12953         config/sparc/rtems.h, config/we32k/we32k-protos.h,
12954         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
12955         Delete file.
12956
12957 2002-05-24  Richard Henderson  <rth@redhat.com>
12958
12959         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
12960         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
12961         * config/i386/i386.c (tls_model_chars): Add leading space.
12962         (tls_symbolic_operand): Don't bias by 1.
12963         (legitimize_address): Don't unbias by 1.
12964
12965 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12966
12967         * lcm.c (optimize_mode_switching): Change bb used as indices
12968         to bb->index.
12969
12970 2002-05-24  Richard Henderson  <rth@redhat.com>
12971
12972         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
12973         of update_life_info_in_dirty_blocks.
12974
12975 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
12976
12977         PR other/6782
12978         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
12979
12980 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12981
12982         PR preprocessor/6780
12983         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
12984
12985 2002-05-24  Jim Blandy  <jimb@redhat.com>
12986
12987         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
12988         entry with a type code of zero, marking the end of the compilation
12989         unit's macro info.
12990
12991 2002-05-24  Richard Henderson  <rth@redhat.com>
12992
12993         * varasm.c (asm_output_bss): Always output one byte.
12994         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
12995
12996 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12997
12998         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
12999         namespace.
13000
13001 2002-05-24  Andreas Jaeger  <aj@suse.de>
13002
13003         * ggc-page.c (alloc_page): Cast variables of type size_t to
13004         unsigned long, adjust printf format string.
13005         (ggc_alloc): Likewise.
13006         (ggc_print_statistics): Likewise.
13007         (ggc_print_statistics): Correct printf format string for SCALE to
13008         use unsigned long.
13009
13010 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
13011
13012         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
13013
13014 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
13015             Zack Weinberg     <zack@codesourcery.com>
13016
13017         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
13018         quoted strings.
13019         * dwarf2out.c (lookup_filename): Properly quote filename in .file
13020         directive in assembly file.
13021         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
13022         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
13023         * config/pj/pj.h (ASM_FILE_START): Likewise.
13024         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13025         * config/avr/avr.c (asm_file_end): Likewise.
13026         * toplev.c (output_quoted_string): Handle possibly signed plain
13027         char.
13028         * toplev.h (output_clean_symbol_name): Declare
13029         * toplev.c (output_clean_symbol_name): Define.
13030         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
13031         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
13032
13033 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
13034
13035         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
13036
13037 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
13038
13039         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
13040         of size of unsigned.
13041
13042 2002-05-23  Richard Henderson  <rth@redhat.com>
13043
13044         * configure.in (HAVE_AS_TLS): New test.
13045         * config.in, configure: Rebuild.
13046         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
13047         (ix86_tls_dialect_string, ix86_tls_dialect): New.
13048         (override_options): Set it.
13049         (tls_model_chars, tls_symbolic_operand): New.
13050         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
13051         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
13052         (local_exec_symbolic_operand): New.
13053         (get_pic_label_name): Merge into output_set_got.
13054         (ix86_asm_file_end): Emit pic_label_name if defined.
13055         (legitimate_constant_p, constant_address_p): New.
13056         (legitimate_pic_operand_p): New.
13057         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
13058         (legitimate_address_p): Likewise.
13059         (ix86_encode_section_info): Rename from i386_; handle tls decls.
13060         (ix86_strip_name_encoding): New.
13061         (get_thread_pointer): New.
13062         (legitimize_address): Handle tls symbols.
13063         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
13064         Remove UNSPEC_PLT.
13065         (struct machine_function): Add some_ld_name.
13066         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
13067         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
13068         (output_addr_const_extra): New.
13069         (maybe_get_pool_constant): New.
13070         (ix86_split_to_parts): Use it.
13071         (ix86_expand_move): Handle tls symbols.
13072         (ix86_tls_get_addr): New.
13073         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
13074         (TARGET_OPTIONS): Add tls-dialect.
13075         (CONSTANT_ADDRESS_P): Use new out-of-line function.
13076         (LEGITIMATE_CONSTANT_P): Likewise.
13077         (LEGITIMATE_PIC_OPERAND_P): Likewise.
13078         (TARGET_STRIP_NAME_ENCODING): New.
13079         (ASM_OUTPUT_LABELREF): New.
13080         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
13081         (OUTPUT_ADDR_CONST_EXTRA): New.
13082         (PREDICATE_CODES): Update.
13083         (ix86_tls_dialect, ix86_tls_dialect_string): New.
13084         * config/i386/i386.md: Regroup and renumber unspec constants.
13085         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
13086         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
13087         (tls_global_dynamic, tls_local_dynamic_base): New.
13088         (tls_local_dynamic_once): New.
13089         * config/i386/i386-protos.h: Update.
13090
13091 2002-05-23  Richard Henderson  <rth@redhat.com>
13092
13093         * genemit.c (gen_insn): Print file:lineno comment before function.
13094         (main): likewise.
13095         * gensupport.c (struct queue_elem): Add filename member.
13096         (queue_pattern): Initialize it; update all callers.
13097         (process_include): Don't free filename.
13098         (read_md_rtx): Set read_rtx_filename.
13099
13100 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
13101
13102         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
13103
13104 2002-05-23  Richard Henderson  <rth@redhat.com>
13105
13106         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
13107
13108 2002-05-23  Richard Henderson  <rth@redhat.com>
13109
13110         * doc/extend.texi (C++98 Thread-Local Edits): Update with
13111         commentary from Mark.
13112
13113 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13114
13115         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
13116         Use FOR_EACH_BB macros to iterate over basic block chain.
13117         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
13118         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
13119         Likewise.
13120         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
13121         find_unreachable_blocks, create_edge_list, verify_edge_list,
13122         remove_fake_edges, add_noreturn_fake_exit_edges,
13123         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
13124         Likewise.
13125         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13126         find_sub_basic_blocks): Likewise.
13127         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
13128         Likewise.
13129         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
13130         Likewise.
13131         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
13132         Likewise.
13133         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
13134         commit_edge_insertions, commit_edge_insertions_watch_calls,
13135         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
13136         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
13137         * conflict.c (conflict_graph_compute): Likewise.
13138         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
13139         df_modified_p, df_refs_unlink, df_dump): Likewise.
13140         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
13141         * final.c (compute_alignments): Likewise.
13142         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
13143         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
13144         count_or_remove_death_notes): Likewise.
13145         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
13146         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
13147         classic_gcse, compute_transp, cprop, compute_pre_data,
13148         compute_transpout, invalidate_nonnull_info,
13149         delete_null_pointer_checks_1, delete_null_pointer_checks,
13150         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
13151         compute_store_table, build_store_vectors, store_motion): Likewise.
13152         * global.c (global_conflicts, mark_elimination): Likewise.
13153         * graph.c (print_rtl_graph_with_bb): Likewise.
13154         * haifa-sched.c (sched_init): Likewise.
13155         * ifcvt.c (if_convert): Likewise.
13156         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
13157         compute_available, compute_nearerout, compute_rev_insert_delete,
13158         optimize_mode_switching): Likewise.
13159         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
13160         * predict.c (estimate_probability, note_prediction_to_br_prob,
13161         propagate_freq, counts_to_freqs, expensive_function_p,
13162         estimate_bb_frequencies): Likewise.
13163         * profile.c (instrument_edges, get_exec_counts,
13164         compute_branch_probabilities, compute_checksum, branch_prob,
13165         find_spanning_tree): Likewise.
13166         * recog.c (split_all_insns, peephole2_optimize): Likewise.
13167         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
13168         Likewise.
13169         * regclass.c (scan_one_insn, regclass): Likewise.
13170         * regmove.c (mark_flags_life_zones, regmove_optimize,
13171         record_stack_memrefs): Likewise.
13172         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
13173         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
13174         * resource.c (find_basic_block): Likewise.
13175         * sched-ebb.c (schedule_ebbs): Likewise.
13176         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
13177         find_single_block_region, find_rgns, schedule_insns)
13178         * sibcall.c (optimize_sibling_and_tail_recursive_call)
13179         * ssa-ccp.c (optimize_unexecutable_edges,
13180         ssa_ccp_df_delete_unreachable_insns): Likewise.
13181         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
13182         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
13183         rename_block, convert_to_ssa, compute_conservative_reg_partition,
13184         compute_coalesced_reg_partition, rename_equivalent_regs,
13185         convert_from_ssa): Likewise.
13186         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
13187         process_for_unwind_directive): Likewise.
13188
13189         * df.c (FOR_ALL_BBS): Removed.
13190         * gcse.c (struct null_pointer_info): Type of current_block field
13191         changed.
13192         (struct reg_avail_info): Type of last_bb field changed.
13193         * config/ia64/ia64.c (block_num): Removed.
13194         (need_copy_state): Type changed.
13195         (last_block): New.
13196
13197 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13198
13199         * cppinit.c (mark_named_operators): Split out from init_builtins.
13200         (cpp_finish_options): Call it from here instead.
13201
13202 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
13203
13204         * builtin-attrs.def: Update copyright years.
13205         (ATTR_NONNULL): New attribute identifier.
13206         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
13207         attribute tree lists.
13208         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
13209         format operand.
13210         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
13211         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
13212         attribute lists.  Chain the appropriate nonnull attribute.
13213         * c-format.c (check_format_arg): Remove null format string
13214         warning.
13215         * testsuite/gcc.dg/format/null-1.c: New test.
13216
13217 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13218
13219         * Makefile.in (ADAC): Define.
13220         (SYSLIBS): Define.
13221         (.SUFFIXES): Move before language makefile fragments.
13222         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
13223
13224 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
13225
13226         * varasm.c (make_decl_rtl): Don't allow weak variables to be
13227         placed in common.
13228
13229 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
13230
13231         * cfg.c (dump_flow_info): Print results of
13232         maybe_hot/probably_never_executed predicates.
13233         * toplev.c (open_dump_file): Print function frequency.
13234
13235 2002-05-23  David S. Miller  <davem@redhat.com>
13236
13237         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
13238         regsets.
13239
13240 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
13241
13242         * c-common.c (warn_nonnull): Declare.
13243         (c_common_attribute_table): Add "nonnull" attribute.
13244         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
13245         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
13246         check_function_arguments_recurse): New functions.
13247         * c-common.h (warn_nonnull): Declare extern.
13248         (check_function_arguments, check_function_arguments_recurse): New
13249         prototypes.
13250         * c-decl.c (c_decode_option): Add -Wnonnull option.
13251         * c-format.c (set_Wformat): Set warn_nonnull if enabling
13252         format checking.
13253         (format_check_context): New structure.
13254         (check_format_info_recurse): Remove recursion and rename to...
13255         (check_format_arg): ...this.  Update comment.
13256         (check_format_info): Use check_function_arguments_recurse.
13257         * c-typeck.c (build_function_call): Call check_function_arguments
13258         instead of check_function_format.
13259         * doc/extend.texi: Document "nonnull" attribute.
13260         * doc/invoke.texi: Docuemnt -Wnonnull option.
13261         * testsuite/gcc.dg/nonnull-1.c: New test.
13262         * testsuite/gcc.dg/nonnull-2.c: New test.
13263
13264 2002-05-23  David S. Miller  <davem@redhat.com>
13265
13266         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
13267         * cfgcleanup.c (cleanup_cfg): If it is set do not
13268         attempt to delete trivially dead insns.
13269         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
13270         * toplev.c (rest_of_compilation): Document non-trivial aspect
13271         the RTL before optimize_save_area_alloca is run.
13272
13273 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13274
13275         * c-lex.c (indent_level): Remove.
13276         (cb_file_change, c_lex): Remove indent level handling.
13277         * c-lex.h (indent_level): Remove.
13278         * input.h (struct file_stack): Remove indent_level.
13279         * toplev.c (push_srcloc): Remove indent_level handling.
13280
13281 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
13282
13283         PR target/6753
13284         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
13285         of x in constraints for clarity.
13286         (sse_mov?fcc split): abort if op2 == op3.
13287         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
13288         sse_movsfcc_const0_4): Add earlyclobber.
13289         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
13290         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
13291         Use Y instead of x in constraints.
13292
13293 2002-05-23  Richard Henderson  <rth@redhat.com>
13294
13295         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
13296         (C++98 Thread-Local Edits): New subsection.
13297
13298         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
13299         (ix86_arch): Set type to enum processor_type.
13300
13301         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
13302         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
13303
13304 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
13305
13306         * configure.in: Fix as version test for binutils 2.12.1 releases
13307         (without dates).
13308         * configure: Rebuilt.
13309
13310 2002-05-23  Richard Henderson  <rth@redhat.com>
13311
13312         * config/i386/i386.c (get_pic_label_name): New.
13313         (load_pic_register): Remove.
13314         (output_set_got): New.
13315         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
13316         * config/i386/i386.md (UNSPEC_SET_GOT): New.
13317         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
13318         (prologue_set_got, prologue_get_pc): Remove.
13319         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
13320         (builtin_setjmp_receiver): Use gen_set_got.
13321         * config/i386/i386-protos.h: Update.
13322
13323 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13324
13325         * gcse.c (hash_expr): Do not use alias set for hashing.
13326
13327 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
13328
13329         * dbxout.c (dbxout_class_name_qualifiers): New function.
13330         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
13331
13332 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13333
13334         * cpperror.c (_cpp_begin_message): No special casing
13335         of CPP_FATAL_LIMIT.
13336         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
13337         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
13338         * cpplib.c (do_include_common): Use DL_ERROR.
13339         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
13340         (DL_ICE): Renumber.
13341         * fix-header.c (read_scan_file): Update.
13342
13343 2002-05-22  Richard Henderson  <rth@redhat.com>
13344
13345         * config/i386/i386.c (ix86_expand_call): New function, extracted
13346         from md call patterns.  Add pic_offset_table_rtx to
13347         CALL_INSN_FUNCTION_USAGE when needed.
13348         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
13349         (call_value_pop, call_value, untyped_call): Likewise.
13350         (call_exp, call_value_exp): Remove.
13351         * config/i386/i386-protos.h: Update.
13352
13353 2002-05-22  Richard Henderson  <rth@redhat.com>
13354
13355         * varasm.c (default_section_type_flags): Check for VAR_DECL
13356         before using DECL_THREAD_LOCAL.
13357
13358 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
13359
13360         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
13361         (STARTFILE_SPEC): Delete PE crt0.o.
13362         * config/rs6000/aix51.h: Same.
13363         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
13364         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
13365         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
13366         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
13367         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
13368
13369 2002-05-22  Richard Henderson  <rth@redhat.com>
13370
13371         * varasm.c (default_section_type_flags): Handle tls data and
13372         default sections.
13373         (default_unique_section): Handle tls sections.
13374
13375 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
13376
13377         * configure.in (CROSS): Define NATIVE_CROSS.
13378         * configure: Regenerate.
13379         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
13380         (startfile_prefix_spec): New var.
13381         (static_specs): Add startfile_prefix_spec.
13382         (do_spec_2): Split out from..
13383         (do_spec): ..here.
13384         (main): Process startfile_prefix_spec.
13385         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
13386         dynamic linker.
13387         (STARTFILE_PREFIX_SPEC): Define.
13388         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
13389         absolute paths.
13390
13391 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
13392
13393         * cpperror.c: Fix formatting.
13394         * cppexp.c: Likewise.
13395         * cppfiles.c: Likewise.
13396         * cpphash.c: Likewise.
13397         * cpphash.h: Likewise.
13398         * cppinit.c: Likewise.
13399         * cpplex.c: Likewise.
13400         * cpplib.c: Likewise.
13401         * cppmacro.c: Likewise.
13402         * cppmain.c: Likewise.
13403         * cppspec.c: Likewise.
13404
13405 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
13406
13407         * combine.c (force_to_mode): Use gen_int_mode.
13408         Don't clear CONST_INT bits outside of mode.
13409
13410 2002-05-22  Richard Henderson  <rth@redhat.com>
13411
13412         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
13413         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13414
13415 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
13416
13417         PR c/6643
13418         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
13419         if DECL_SIZE_UNIT is INTEGER_CST.
13420
13421 2002-05-22  Richard Henderson  <rth@redhat.com>
13422
13423         * flow.c (life_analysis): Delete broken reg_label check.
13424
13425 2002-05-22  Richard Henderson  <rth@redhat.com>
13426
13427         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
13428         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13429
13430 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13431
13432         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
13433         (embed-bb.c): New rule.
13434         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
13435         * config/sh/embed_bb.c: Delete.
13436
13437 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
13438
13439         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
13440
13441 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
13442
13443         * config/h8300/h8300.md (*andorqi3): New.
13444
13445 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13446
13447         PR preprocessor/6517
13448         * Makefile.in: Update.
13449         * c-common.c (c_common_post_options): Add preprocessor
13450         errors to the error count.
13451         * c-lang.c (c_post_options): Kill.
13452         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13453         * hooks.h: Add header guards.
13454         * langhooks-def.h: Include hooks.h.
13455         (LANG_HOOKS_POST_OPTIONS): Update.
13456         * langhooks.h (struct lang_hooks): Update post_options.
13457         * toplev.c (parse_options_and_default_flags): Update.
13458 objc:
13459         * objc-lang.c (objc_post_options): Kill.
13460         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13461
13462 2002-05-21  Bruce Korb  <bkorb@gnu.org>
13463
13464         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
13465         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
13466         * fixinc/fixincl.x: regen.
13467
13468 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
13469
13470         * cfgbuild.c: Fix formatting.
13471         * cfg.c: Likewise.
13472         * cfgcleanup.c: Likewise.
13473         * cfglayout.c: Likewise.
13474         * cfgloop.c: Likewise.
13475         * cfgrtl.c: Likewise.
13476
13477 2002-05-21  Richard Henderson  <rth@redhat.com>
13478
13479         * c-common.h (enum rid): Add RID_THREAD.
13480         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
13481         (grokdeclarator): Grok __thread.
13482         * c-parse.in (reswords): Add __thread.
13483         (rid_to_yy): Add RID_THREAD.
13484
13485         * tree.h (DECL_THREAD_LOCAL): New.
13486         (struct tree_decl): Add thread_local_flag.
13487         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
13488         * tree.c (staticp): TLS variables are not static.
13489
13490         * target-def.h (TARGET_HAVE_TLS): New.
13491         * target.h (have_tls): New.
13492         * output.h (SECTION_TLS): New.
13493         * varasm.c (assemble_variable): TLS variables can't be common for now.
13494         (default_section_type_flags): Handle .tdata and .tbss.
13495         (default_elf_asm_named_section): Handle SECTION_TLS.
13496         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
13497
13498         * flags.h (flag_tls_default): Declare.
13499         * toplev.c (flag_tls_default): Define.
13500         (display_help): Display help for it.
13501         (decode_f_option): Set it.
13502
13503         * doc/extend.texi (Thread-Local): New node describing language-level
13504         thread-local storage.
13505         * doc/invoke.texi (-ftls-model): Document.
13506
13507         * fixinc/inclhack.def (thread_keyword): New.
13508         * fixinc/fixincl.x: Rebuild.
13509
13510 2002-05-21  Jeffrey A Law  <law@redhat.com>
13511
13512         * optabs.c (expand_binop): For double-word integer multiplies,
13513         do not compute intermediate results into something that is
13514         not a register (such as a SUBREG or MEM).
13515
13516         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
13517         (ix86_sched_reorder): Make sure to initialize scheduling
13518         data even when there's only one insn in the ready queue.
13519
13520 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
13521
13522         * genautomata.c (reserv_sets_hash_value): Fix a typo.
13523
13524 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
13525
13526         * genautomata.c (reserv_sets_hash_value): Define hash_value as
13527         set_el_t.  Transform the hash value into unsigned.
13528         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
13529         (transform_3): Add code to process `(A,B)+(D,E)'.
13530
13531 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
13532
13533         * reload1.c (do_output_reload): Run delete_output_reload
13534         only if optimizing.
13535
13536 2002-05-21  Roger Sayle  <roger@eyesopen.com>
13537
13538         PR middle-end/6600
13539         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
13540         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
13541         (can_store_by_pieces): ... and here to limit the largest mode used.
13542         Add a comment to document this function.
13543
13544 2002-05-21  Richard Henderson  <rth@redhat.com>
13545
13546         * flow.c (life_analysis): Fix test for deleted label.
13547
13548 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13549
13550         * doc/tm.texi: Fix typo.
13551
13552 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
13553
13554         * c-common.c (c_common_init): Set options->unsigned_char from
13555         flag_signed_char.
13556         (cb_register_builtins): Define __STRICT_ANSI__ and
13557         __CHAR_UNSIGNED__ here...
13558         * cppinit.c (init_builtins): Not here.
13559         (cpp_create_reader): unsigned_char option defaults to 0, not
13560         !DEFAULT_SIGNED_CHAR.
13561         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
13562         and -funsigned-char.
13563
13564         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
13565         * cpphash.c (_cpp_init_hashtable): Don't set it.
13566         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
13567         directly.  Clarify comment.
13568
13569 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13570
13571         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
13572         neighboring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
13573         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
13574         BASIC_BLOCK (n_basic_blocks - 1).
13575         * cfganal.c (can_fallthru, flow_call_edges_add,
13576         flow_preorder_transversal_compute): Too.
13577         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13578         find_sub_basic_blocks): Too.
13579         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
13580         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
13581         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
13582         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
13583         * combine.c (this_basic_block): Type changed to basic_block.
13584         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
13585         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13586         get_last_value, distribute_notes, distribute_links): Too.
13587         * final.c (compute_alignments): Too.
13588         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
13589         * function.c (thread_prologue_and_epilogue_insns): Too.
13590         * gcse.c (compute_code_hoist_vbeinout): Too.
13591         * global.c (build_insn_chain): Too.
13592         * ifcvt.c (find_if_block, find_cond_trap): Too.
13593         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
13594         * regmove.c (regmove_optimize): Too.
13595         * resource.c (find_basic_block): Too.
13596         * sched-ebb.c (schedule_ebbs): Too.
13597         * ssa-dce.c (find_control_dependence, find_pdom): Too.
13598
13599 2002-05-21  Andreas Jaeger  <aj@suse.de>
13600
13601         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
13602
13603 2002-05-21  Richard Henderson  <rth@redhat.com>
13604
13605         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
13606         unspec names, not numbers.
13607
13608 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13609
13610         * doc/sourcebuild.texi: Mention snapshot-README and
13611         snapshot-index.html as needing updating for new front ends.
13612
13613 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13614
13615         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
13616         disabling checking, and avoid multiple evaluation of RTX.
13617
13618 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
13619
13620         * bitmap.c (bitmap_find_bit): Return early if we have the correct
13621         element cached.
13622
13623 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
13624
13625         * profile.c (gen_edge_profiler):  Set alias set before the memory is
13626         used.
13627
13628 2002-05-20  David S. Miller  <davem@redhat.com>
13629
13630         * cselib.c (max_value_regs): New.
13631         (cselib_lookup, cselib_invalidate_regno): Initialize it when
13632         adding new entries to the REG_VALUES table and we are dealing with
13633         a hard register.
13634         (clear_table): Initialize it.
13635         (cselib_invalidate_regno): Use it to determine which hard
13636         registers to scan when mode is not VOIDmode.
13637
13638 2002-05-20  Duraid Madina   <duraid@fl.net.au>
13639
13640         * tradcpp.c (fixup_newlines): Use old-style function header.
13641
13642 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
13643
13644         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
13645
13646 2002-05-20  H.J. Lu  (hjl@gnu.org)
13647
13648         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
13649
13650         * config/mips/mips.h (DFMODE_NAN): Defined.
13651         (SFMODE_NAN): Likewise.
13652
13653 2002-05-20  Dale Johannesen  <dalej@apple.com>
13654
13655         * combine.c (cant_combine_insn_p):  Back out my
13656         previous patch.
13657
13658 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
13659
13660         * params.c: Fix formatting.
13661         * params.h: Likewise.
13662         * predict.c: Likewise.
13663         * prefix.c: Likewise.
13664         * print-rtl.c: Likewise.
13665         * print-tree.c: Likewise.
13666         * profile.c: Likewise.
13667
13668 2002-05-20  H.J. Lu  (hjl@gnu.org)
13669
13670         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
13671
13672 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
13673
13674         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
13675         switches straight on to the assembler, do not abbreviate them.
13676         * config/arm/elf.h (ASM_SPEC): As above.
13677         * config/arm/semi.h (ASM_SPEC): As above.
13678         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
13679         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
13680         -mcpu=xscale on to the assembler by default.
13681         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
13682
13683 2002-05-20  Richard Henderson  <rth@redhat.com>
13684
13685         * cse.c (canon_hash): Reorder do_not_record test.  Always
13686         allow pic_offset_table_rtx.
13687
13688 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13689
13690         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
13691         (expand_binop): Ditto (3 times).
13692
13693 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
13694
13695         * Makefile.in (distclean): Remove QMTest stuff.
13696         (QMTEST_PATH): New variable.
13697         (QMTESTFLAGS): Likewise.
13698         (QMTESTRUNFLAGS): Likewise.
13699         (QMTEST): Likewise.
13700         (QMTEST_GPP_TESTS): Likewise.
13701         (QMTEST_DIR): Likewise.
13702         (QMTEST_DIR/context): New target.
13703         (qmtest-g++): Likeise.
13704         (qmtest-gui): Likewise.
13705         (QMTEST_DIR/gpp-expected.qmr): Likewise.
13706
13707 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
13708
13709         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
13710         an altivec register if TARGET_ALTIVEC.
13711
13712         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
13713         to ALTIVEC_VECTOR_MODE.
13714         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
13715         (rs6000_va_arg): Vectors may go in registers if they are not
13716         altivec vectors.
13717
13718 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
13719
13720         * protoize.c: Fix formatting.
13721
13722 2002-05-19  Richard Henderson  <rth@redhat.com>
13723
13724         * gensupport.c (init_include_reader): Merge into ...
13725         (process_include): ... here.  Simplify composite path creation.
13726         Plug memory leaks.  Fix file/line number tracking.  Do not
13727         process_define_cond_exec.  Return void.
13728         (process_rtx): Don't check process_include return value.
13729
13730 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13731
13732         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
13733         fields.
13734         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13735         traversing basic block chain.
13736         (create_basic_block_structure, create_basic_block): Declaration changed.
13737         (link_block, unlink_block): Declare.
13738         * cfg.c (entry_exit_blocks): Initialize new fields.
13739         (link_block, unlink_block): New.
13740         (expunge_block_nocompact): Unlink basic block.
13741         (dump_flow_info): Print prev_bb/next_bb fields.
13742         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
13743         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
13744         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
13745         * cfgrtl.c (create_basic_block_structure, create_basic_block,
13746         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
13747         (verify_flow_info): Check that list agrees with numbering.
13748
13749 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13750
13751         * c-common.c (preprocessing_asm): New macro.
13752         * c-lex.h (builtin_define, builtin_assert): Use pfile.
13753 doc:
13754         * tm.texi: Update.
13755 config/alpha:
13756         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
13757         (CPP_SPEC): Simplify.
13758         (TARGET_CPU_CPP_BUILTINS): Update.
13759         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
13760         (CPP_SPEC): Simplify.
13761         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
13762         (TARGET_OS_CPP_BUILTINS): Update.
13763         * osf.h (CPP_XFLOAT_SPEC): Kill.
13764         (TARGET_OS_CPP_BUILTINS): Update.
13765         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
13766         * osf5.h (CPP_XFLOAT_SPEC): Kill.
13767         * vms.h (CPP_SUBTARGET_SPEC): Kill.
13768         (TARGET_OS_CPP_BUILTINS): Update.
13769
13770 2002-05-19  Richard Henderson  <rth@redhat.com>
13771
13772         * varasm.c (default_binds_local_p): Fix typo.
13773
13774 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13775
13776         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
13777         CONST_INT operand to the correct mode after adding 1 to it.
13778
13779 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
13780
13781         * config.gcc (powerpc-wrs-windiss*): New target.
13782
13783 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13784
13785         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
13786         (ashrdi3): Use it.
13787
13788 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
13789
13790         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
13791         alphasort.
13792         * config.in: Regenerated.
13793         * configure: Regenerated.
13794
13795 2002-05-19  Richard Henderson  <rth@redhat.com>
13796
13797         * target-def.h (TARGET_BINDS_LOCAL_P): New.
13798         * target.h (struct gcc_target): Move boolean fields to the end.
13799         Add binds_local_p.
13800         * varasm.c (default_binds_local_p): New.
13801         * output.h: Declare it.
13802
13803         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
13804         * config/cris/cris.c (cris_encode_section_info): Likewise.
13805         * config/i386/i386.c (i386_encode_section_info): Likewise.
13806         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13807         * config/sh/sh.c (sh_encode_section_info): Likewise.
13808
13809         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
13810         (TARGET_BINDS_LOCAL_P): New.
13811
13812 2002-05-19  Richard Henderson  <rth@redhat.com>
13813
13814         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
13815         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
13816         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
13817
13818         * toplev.c (display_help): Kill -a -ax help.
13819
13820         * config/1750a/1750a.h, config/alpha/alpha.h,
13821         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
13822         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
13823         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
13824         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
13825
13826         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
13827         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
13828
13829         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
13830         (ix86_output_function_block_profiler): Kill.
13831         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
13832         (m68hc11_function_block_profiler): Kill.
13833         * config/m68hc11/m68hc11-protos.h: Update.
13834         * config/m88k/m88k.c (output_block_profiler): Kill.
13835         (output_function_block_profiler): Kill.
13836         * config/m88k/m88k-protos.h: Update.
13837
13838 2002-05-19  Richard Henderson  <rth@redhat.com>
13839
13840         * system.h (STRIP_NAME_ENCODING): Poison it.
13841         * output.h (STRIP_NAME_ENCODING): Remove.
13842         (default_strip_name_encoding): Declare.
13843         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
13844         * target.h (strip_name_encoding): New.
13845         * varasm.c (default_strip_name_encoding): New.
13846
13847         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
13848         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
13849         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
13850         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
13851         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
13852         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
13853         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
13854         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
13855         config/v850/v850.h: Use the hook, not the macro.
13856
13857         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13858         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
13859         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
13860         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
13861         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
13862         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
13863         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13864         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
13865         config/v850/v850.c, config/v850/v850.h:
13866         Move STRIP_NAME_ENCODING to out-of-line function and add
13867         TARGET_STRIP_NAME_ENCODING.
13868
13869         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
13870         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
13871         with TARGET_STRIP_NAME_ENCODING referencing existing function;
13872         make function static.
13873
13874         * xcoffout.c: Include target.h
13875         * Makefile.in (xcoffout.o): Update.
13876
13877         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
13878         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
13879         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
13880         reloc argument unused.
13881         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
13882
13883         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
13884         STRIP_NAME_ENCODING docs.
13885
13886 2002-05-19  Andreas Jaeger  <aj@suse.de>
13887
13888         * gengenrtl.c: Add prototype for excluded_rtx.
13889
13890         * real.h: Add prototype for exact_real_truncate.
13891
13892 2002-05-18  Richard Henderson  <rth@redhat.com>
13893
13894         * system.h (ENCODE_SECTION_INFO): Poison it.
13895         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
13896         * target.h (encode_section_info): New.
13897         * varasm.c (make_decl_rtl, output_constant_def): Use it.
13898         * hooks.c (hook_tree_int_void): New.
13899         * hooks.h: Declare it.
13900
13901         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13902         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
13903         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
13904         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
13905         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
13906         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
13907         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
13908         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
13909         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
13910         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13911         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
13912         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
13913         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
13914         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
13915         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
13916         referencing existing function.  Make function static.
13917
13918         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
13919         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
13920         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
13921         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
13922         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
13923         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
13924         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
13925         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
13926         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
13927         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
13928         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
13929         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
13930         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
13931         Move ENCODE_SECTION_INFO to out-of-line function and add
13932         TARGET_ENCODE_SECTION_INFO.
13933
13934         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
13935         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13936
13937         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
13938         from SUBTARGET_*
13939         (switch_to_section): Replace in_rdata case with in_readonly_data.
13940
13941         * config/h8300/h8300.c (h8300_encode_label): Make static.
13942         * config/h8300/h8300-protos.h: Update.
13943
13944         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
13945         from rs6000_encode_section_info; make static.
13946         (rs6000_xcoff_encode_section_info): New.
13947
13948         * config/v850/v850.c (v850_encode_data_area): Make static.
13949         * config/v850/v850-protos.h: Update.
13950
13951         * config/vax/vax.c: Include flags.h.
13952         (vms_select_section): Fix typo.
13953
13954         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
13955         ENCODE_SECTION_INFO docs.
13956
13957 2002-05-18  Richard Henderson  <rth@redhat.com>
13958
13959         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
13960         REGISTER_TARGET_PRAGMAS.
13961         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
13962
13963         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
13964
13965 2002-05-18  Richard Henderson  <rth@redhat.com>
13966
13967         * system.h (SELECT_RTX_SECTION): Poison.
13968         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
13969         * target.h (select_rtx_section): New.
13970         * varasm.c (output_constant_pool): Use it.
13971         (default_select_rtx_section, default_elf_select_rtx_section): New.
13972         * output.h: Declare them.
13973
13974         * config/darwin.h (SELECT_RTX_SECTION): Move ...
13975         * config/darwin.c (machopic_select_rtx_section): ... here.
13976         * config/darwin-protos.h: Update.
13977
13978         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
13979         * config/nextstep.c (machopic_select_rtx_section): ... here.
13980         (nextstep_select_section): Rename variable to avoid macro clash.
13981         * config/nextstep-protos.h: Update.
13982
13983         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
13984         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
13985         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
13986         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
13987         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
13988         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
13989         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
13990         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
13991         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
13992         (SELECT_RTX_SECTION): Remove.
13993
13994         * config/darwin.h, config/elfos.h, config/nextstep.h,
13995         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
13996         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
13997         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
13998         config/sparc/lynx.h, config/xtensa/xtensa.c
13999         (TARGET_ASM_SELECT_RTX_SECTION): New.
14000
14001         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
14002         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
14003         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
14004         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
14005         (ia64_aix_select_rtx_section): New.
14006         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
14007         redefining.
14008         * config/mips/mips.c (mips_select_rtx_section): Make static.
14009         Support ELF SHF_MERGE features.
14010         * config/mips/mips-protos.h: Update.
14011         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
14012         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
14013         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
14014         make static, fall back to default_elf_select_rtx_section.
14015         * config/rs6000/rs6000-protos.h: Update.
14016         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
14017         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
14018         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
14019         * config/romp/romp.c (romp_select_rtx_section): New.
14020         * config/s390/s390.c (s390_select_rtx_section): New.
14021         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
14022         declarations before target macro definition.
14023         (xtensa_emit_call): Use static buffer.
14024         (xtensa_select_rtx_section): New.
14025         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
14026         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
14027         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
14028
14029         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
14030         SELECT_RTX_SECTION docs.
14031
14032 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
14033
14034         * i386.md (movsi/movdi): Fix template.
14035         (sse2 patterns): Set attributes consistently.
14036
14037         * i386.md (pushqi2, ashrqi_*): Fix constraint.
14038
14039 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
14040
14041         * optabs.c (complex_part_zero_p): New.
14042         * (expand_cmplxdiv_straight): Use it.
14043         * (expand_cmplxdiv_wide): Ditto.
14044         * (expand_binop): Ditto.
14045
14046 2002-05-18  Richard Henderson  <rth@redhat.com>
14047
14048         * final.c (HAVE_READONLY_DATA_SECTION): New.
14049         (shorten_branches): Use it instead of ifdefs.
14050         * varasm.c (enum in_section): Add in_readonly_data.
14051         (text_section, data_section): Tidy.
14052         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
14053
14054         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
14055         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
14056         (READONLY_DATA_SECTION): Don't undef.
14057
14058         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
14059         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
14060         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
14061
14062         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
14063         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
14064         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
14065         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
14066
14067         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
14068         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
14069         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
14070         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
14071         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
14072         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
14073         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
14074         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
14075         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
14076
14077         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
14078         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
14079         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
14080         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
14081         config/pa/pa64-hpux.h, config/sparc/litecoff.h
14082         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14083
14084         * config/elfos.h, config/netware.h, config/svr3.h,
14085         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
14086         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
14087         config/h8300/h8300.h, config/i386/i386-interix.h,
14088         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
14089         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
14090
14091         * config/elfos.h, config/netware.h, config/svr3.h,
14092         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
14093         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
14094         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
14095         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
14096
14097         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
14098         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
14099         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
14100         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
14101         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
14102         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
14103         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
14104         config/rs6000/sysv4.h, config/v850/v850.h
14105         (EXTRA_SECTIONS): Remove in_const/in_rdata.
14106         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
14107
14108         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
14109         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
14110         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
14111         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
14112         * config/alpha/alpha.c (alpha_start_function): Likewise.
14113         (alpha_write_linkage): Likewise.
14114         * config/m32r/m32r.c (m32r_select_section): Likewise.
14115         * config/m88k/m88k.c (m88k_select_section): Likewise.
14116         * config/mips/mips.c (mips_select_rtx_section): Likewise.
14117         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
14118         (rs6000_elf_select_section): Likewise.
14119         * config/v850/v850.c (v850_select_section): Likewise.
14120
14121         * config/1750a/1750a.h, config/i860/sysv3.h
14122         (READONLY_DATA_SECTION_ASM_OP): New.
14123         READONLY_DATA_SECTION_ASM_OP.
14124         * config/i386/interix.c, config/i386/winnt.c
14125         (i386_pe_unique_section): Always use .rdata prefix.
14126         * config/pa/som.h (readonly_data): Always switch to read-only section.
14127         (READONLY_DATA_SECTION): Predicate on flag_pic.
14128         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
14129         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
14130         (READONLY_DATA_SECTION): Update.
14131
14132 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
14133
14134         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
14135         is used without -Wformat.
14136         * c-common.h (warn_format_zero_length): Declare extern.
14137         * c-decl.c (warn_options): Add "format-zero-length".
14138         * c-format.c (warn_format_zero_length): Declare.
14139         (set_Wformat): Set warn_format_zero_length for -Wformat.
14140         (check_format_info): Only warn about zero-length formats if
14141         warn_format_zero_length is true.  Include the format type
14142         name in the warning message.
14143         * doc/invoke.texi: Document -Wformat-zero-length.
14144         * testsuite/gcc.dg/format/zero-length-1.c: New test.
14145
14146 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
14147
14148         * timevar.c: Fix formatting.
14149         * tlink.c: Likewise.
14150         * toplev.c: Likewise.
14151         * tree-dump.c: Likewise.
14152         * tree-inline.c: Likewise.
14153
14154 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14155
14156         * cppinit.c (cpp_post_options): If preprocessed, turn off
14157         traditional.  If traditional, turn off column numbers.
14158         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
14159         * cpptrad.c (handle_newline): Update line_base.
14160         (skip_comment): Handle -Wcomment.
14161
14162 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
14163
14164         * cppinit.c (struct builtin): Remove unused fields.
14165         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
14166         (operator_array): New - was second half of builtin_array.
14167         (init_builtins): Simplify loop over builtin_array/operator_array.
14168
14169 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14170
14171         * defaults.h (UNIQUE_SECTION): Remove.
14172         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
14173
14174 2002-05-17  Richard Henderson  <rth@redhat.com>
14175
14176         * expr.c (init_expr_once): Don't use start/end_sequence.
14177         Use rtx_alloc instead of emit_insn.
14178         * toplev.c (lang_dependent_init): Run init_expr_once here ...
14179         (lang_independent_init): ... not here.
14180
14181 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
14182
14183         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
14184
14185 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14186
14187         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
14188         for fixed registers, possibly used for global register variables.
14189         (initial_elimination_offset, avr_output_function_prologue,
14190         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
14191
14192 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14193
14194         * Makefile.in: Update for cpptrad.c.
14195         * cpphash.h (struct cpp_buffer): New members for buffer
14196         overlays.
14197         (struct cpp_reader): New members for traditional output.
14198         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
14199         * cppinit.c (cpp_create_reader): Set trad_line.
14200         (cpp_destroy): Free trad_out_base if used.
14201         (cpp_read_main_file): Overlay an empty buffer if traditional.
14202         (cpp_finish_options): Don't do builtins.
14203         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
14204         (cpp_handle_option): Handle it.
14205         * cpplex.c (continue_after_nul): New.
14206         (_cpp_lex_direct): Use handle_nul.
14207         * cpplib.h (struct cpp_options): New traditional option.
14208         * cpptrad.c: New file.
14209
14210 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14211
14212         * c-common.c (c_common_init_options): Use C89 for Objective-C,
14213         and set the options flag.
14214         * cppinit.c (lang_flags): Remove objc.
14215         (lang_defaults): Remove OBJC and OBJCXX.
14216         (set_lang): Update.
14217         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
14218         (cpp_handle_option): Remove -+ and -lang-objc++.
14219         For ObjC, just set a flag.
14220         (print_help): Update.
14221         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
14222
14223 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14224
14225         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
14226         bootstrap with -mips3.
14227
14228 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
14229
14230         * final.c: Fix formatting.
14231         * fix-header.c: Likewise.
14232         * flow.c: Likewise.
14233         * fold-const.c: Likewise.
14234         * function.c: Likewise.
14235
14236 2002-05-17  David S. Miller  <davem@redhat.com>
14237
14238         PR c/6689, PR optimization/6615
14239         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
14240         and make it a pointer to rtx.  Update comments.
14241         (update_equiv_regs): When scanning for equivalences, record
14242         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
14243         it while making the equiv replacements.
14244
14245 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14246
14247         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
14248
14249 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
14250
14251         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
14252         when encoding visibility into SYMBOL_REF_FLAG.
14253
14254 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
14255
14256         * expr.c (force_operand): Fix reversed move.
14257
14258 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
14259
14260         * doc/install.texi (Testing): Mention two common DejaGnu warnings
14261         that can be ignored.
14262
14263 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14264
14265         * doc/install.texi (Final install): Recommend to install into a
14266         "clean" target directory.
14267
14268 2002-05-17  Richard Henderson  <rth@redhat.com>
14269
14270         * config/ia64/ia64.md: Use braced strings instead of quoted strings
14271         for code blocks.  Tidy whitespace.
14272
14273 2002-05-17  Richard Henderson  <rth@redhat.com>
14274
14275         * hooks.c (hook_tree_bool_false): New.
14276         * hooks.h: Declare it.
14277         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
14278         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
14279         * target.h (select_section, unique_section): New.
14280         (in_small_data_p): New.
14281         * varasm.c (resolve_unique_section): Use hooks instead of macros.
14282         (variable_section, output_constant_def_contents): Likewise.
14283         (default_select_section, default_unique_section): New.
14284         (categorize_decl_for_section, default_elf_select_section): New.
14285         * output.h: Declare them.
14286
14287         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
14288         (TARGET_ASM_SELECT_SECTION): New.
14289         (SELECT_SECTION): Move ...
14290         * config/darwin.c (machopic_select_section): ... here.
14291         * config/darwin-protos.h: Update.
14292
14293         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
14294         (SELECT_SECTION): Move ...
14295         * config/nextstep.c (nextstep_select_section): ... here.
14296         * config/nextstep-protos.h: Update.
14297
14298         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
14299         (TARGET_ASM_SELECT_SECTION): New.
14300         * config/svr3.h (SELECT_SECTION): Remove.
14301
14302         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
14303         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
14304         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
14305         (alpha_encode_section_info): Use it.
14306         * config/alpha/alpha-protos.h: Update.
14307         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
14308         (SELECT_SECTION, UNIQUE_SECTION): Remove.
14309         (TARGET_ASM_SELECT_SECTION): New.
14310         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
14311
14312         * config/arm/pe.h (UNIQUE_SECTION): Remove.
14313         (TARGET_ASM_UNIQUE_SECTION): New.
14314
14315         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
14316         (avr_unique_section): Rename from unique_section; make static.
14317         * config/avr/avr-protos.h: Update.
14318         * config/avr/avr.h (UNIQUE_SECTION): Remove.
14319
14320         * config/c4x/c4x.h (SELECT_SECTION): Remove.
14321
14322         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
14323         (TARGET_ASM_UNIQUE_SECTION): New.
14324         * config/i386/i386-interix.h: Likewise.
14325         * config/i386/win32.h: Likewise.
14326         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
14327         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
14328         * config/i386/sco5.h (SELECT_SECTION): Remove.
14329         (TARGET_ASM_SELECT_SECTION): New.
14330         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
14331
14332         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
14333         instead of SELECT_SECTION.
14334         * config/m68k/dpx2.h: Likewise.
14335         * config/rs6000/lynx.h: Likewise.
14336
14337         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14338         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14339         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
14340         (ia64_in_small_data_p): New.
14341         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
14342         (ia64_aix_select_section, ia64_aix_unique_section): New.
14343         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
14344         (SELECT_SECTION, UNIQUE_SECTION): Remove.
14345
14346         * config/m32r/m32r.h (SELECT_SECTION): Remove.
14347         (TARGET_ASM_SELECT_SECTION): New.
14348         * config/m32r/m32r.c (m32r_select_section): Take align argument.
14349         * config/m32r/m32r-protos.h: Update.
14350
14351         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
14352         (SELECT_SECTION): Move ...
14353         * config/m88k/m88k.c (m88k_select_section): ... here.
14354
14355         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
14356         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
14357         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
14358         (mcore_unique_section): Make static.
14359         * config/mcore/mcore-protos.h: Update.
14360
14361         * config/mips/elf.h (UNIQUE_SECTION): Remove.
14362         (TARGET_ASM_UNIQUE_SECTION): New.
14363         * config/mips/elf64.h: Likewise.
14364         * config/mips/iris6gld.h: Likewise.
14365         * config/mips/linux.h: Likewise.
14366         * config/mips/mips-protos.h: Update.
14367         * config/mips/mips.c (mips_select_section): Add align argument.
14368         * config/mips/mips.h (SELECT_SECTION): Remove.
14369         (TARGET_ASM_SELECT_SECTION): New.
14370
14371         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14372         * config/mmix/mmix.c (mmix_select_section): Remove.
14373         (mmix_unique_section): Remove.
14374         * config/mmix/mmix-protos.h: Update.
14375
14376         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
14377         (SELECT_SECTION): Move ...
14378         * config/pa/pa.c (pa_select_section): ... here.
14379         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
14380
14381         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
14382         from rs6000_select_section and make static.
14383         (rs6000_elf_unique_section): Similarly.
14384         (rs6000_xcoff_select_section): From xcoff.h.
14385         (rs6000_xcoff_unique_section): Likewise.
14386         * config/rs6000/rs6000-protos.h: Update.
14387         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14388         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14389         * config/rs6000/xcoff.h: Likewise.
14390
14391         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
14392         (SELECT_SECTION): Move ...
14393         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
14394
14395         * config/v850/v850.h (SELECT_SECTION): Move ...
14396         * config/v850/v850.c (v850_select_section): ... here.
14397         (TARGET_ASM_SELECT_SECTION): New.
14398
14399         * config/vax/vms.h (SELECT_SECTION): Move ...
14400         * config/vax/vax.c (vms_select_section): ... here.
14401         (TARGET_ASM_SELECT_SECTION): New.
14402
14403         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
14404         for the target hooks.
14405
14406 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
14407
14408         * config/arm/arm.c (emit_multi_reg_push): Do not set
14409         RTX_FRAME_RELATED_P on the SEQUENCE.
14410
14411 2002-05-16  Richard Henderson  <rth@redhat.com>
14412
14413         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
14414         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
14415
14416 2002-05-16  Richard Henderson  <rth@redhat.com>
14417
14418         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
14419
14420         * config/ia64/ia64.c (saveable_obstack): Do not declare.
14421
14422 2002-05-16  Richard Henderson  <rth@redhat.com>
14423
14424         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
14425         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
14426         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
14427         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
14428         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
14429         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
14430         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
14431         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
14432         Revert "Basic block renumbering removal", and two followup patches.
14433
14434 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
14435
14436         * lcm.c (optimize_mode_switching): Revert previous change.
14437
14438 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14439
14440         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
14441         with only extant block numbers.
14442
14443 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
14444
14445         * lcm.c (optimize_mode_switching): Fix typo.
14446
14447 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14448
14449         * flow.c (calculate_global_regs_live): Queue blocks in program order.
14450
14451 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14452
14453         * doc/install.texi (Configuration): Document PWDCMD.
14454
14455 2002-05-16  Dale Johannesen  <dalej@apple.com>
14456
14457         * combine.c (cant_combine_insn_p):  Reenable combinations
14458         involving hard regs unless CLASS_LIKELY_SPILLED_P.
14459
14460 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14461
14462         * c-common.c (cb_register_builtins): Handle more built-ins
14463         here rather than in gcc.c specs.
14464         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
14465         (cpp_options): Pass -O flags even when only preprocessing.
14466         * toplev.c (set_fast_math_flags): New prototype.
14467         (fast_math_flags_set_p): New.
14468         (set_no_fast_math_flags): Remove.
14469         (decode_f_option): Update.
14470         * toplev.h (set_fast_math_flags): Update.
14471         (fast_math_flags_set_p): New.
14472         (set_no_fast_math_flags): Remove.
14473 config:
14474         * c4x/c4x.c (c4x_override_options): Update.
14475
14476 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
14477
14478         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
14479         Default-define here.
14480         (builtin_define_with_value): Can now wrap the expansion in
14481         quotation marks if such is wanted.
14482         (cb_register_builtins): Update calls to builtin_define_with_value.
14483         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
14484         here.
14485         (c_common_init): Set options->stdc_0_in_system_headers.
14486         * c-lex.h: Update prototype of builtin_define_with_value.
14487         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
14488         and REGISTER_PREFIX.
14489
14490         * cppinit.c (VERS, ULP, C, X): Kill.
14491         (builtin_array): Remove entries for __VERSION__,
14492         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
14493         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
14494         a constant.
14495         (init_builtins): Kill off a bunch of now-dead code.
14496         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
14497         -fno-leading-underscore.
14498         (cpp_handle_option): Remove code to set user_label_prefix.
14499         (cpp_post_options): Likewise.
14500
14501         * cpplib.h (struct cpp_options): Remove user_label_prefix.
14502         (stdc_0_in_system_headers): New.
14503         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
14504         stdc_0_in_system_headers) too to decide the value of __STDC__.
14505
14506         * tradcpp.c (user_label_prefix): Kill.
14507         (main): Remove code handling -f(no-)leading-underscore.
14508         (initialize_builtins): Don't define __REGISTER_PREFIX__
14509         or __USER_LABEL_PREFIX__.
14510         (install_value): Wrap compound statement in dummy loop so the
14511         macro works properly in an if statement.
14512
14513
14514 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
14515
14516         * loop.h (struct loop_info): Add member has_prefetch.
14517         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
14518         (prescan_loop): Initialize has_prefetch.
14519         (struct prefetch_info): Change prefetch_in_loop and
14520         prefetch_before_loop from bit fields to ints.
14521         (emit_prefetch_instructions): Several small fixes.
14522         (check_dbra_loop): Don't reverse loop that uses prefetch.
14523
14524 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14525
14526         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
14527         * configure.in: Likewise.
14528         * fixinc/check.tpl: Likewise.
14529         * fixinc/fixinc.dgux: Likewise.
14530         * fixinc/fixinc.svr4: Likewise.
14531         * fixinc/fixinc.winnt: Likewise.
14532         * fixinc/fixincl.sh: Likewise.
14533         * fixproto: Likewise.
14534         * configure: Regenerate.
14535
14536 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14537
14538         Basic block renumbering removal:
14539         * basic_block.h (struct basic_block_def): Renamed index to sindex,
14540         added prev_bb and next_bb fields.
14541         (n_basic_blocks): Renamed to num_basic_blocks.
14542         (last_basic_block): New, index of last basic block.
14543         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
14544         traversing basic block chain.
14545         (BLOCK_NUM): index -> sindex.
14546         (create_basic_block_structure, create_basic_block): Declaration changed.
14547         (debug_num2bb): Declare.
14548         (expunge_block_nocompact): Declaration removed.
14549         (link_block, unlink_block, compact_blocks): Declare.
14550         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
14551         * cfg.c (entry_exit_blocks): Initialize new fields.
14552         (clear_edges, alloc_block, expunge_block, cached_make_edge,
14553         redirect_edge_pred, dump_flow_info, dump_edge_info,
14554         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
14555         free_aux_for_edges): Modified.
14556         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
14557         (expunge_block_nocompact): Removed.
14558         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
14559         find_unreachable_blocks, create_edge_list, print_edge_list,
14560         verify_edge_list, flow_edge_list_print, remove_fake_successors,
14561         remove_fake_edges, flow_reverse_top_sort_order_compute,
14562         flow_depth_first_order_compute, flow_preorder_transversal_compute,
14563         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
14564         flow_dfs_compute_reverse_execute): Modified.
14565         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
14566         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
14567         Modified.
14568         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14569         merge_blocks_move_predecessor_nojumps,
14570         merge_blocks_move_successor_nojumps, merge_blocks,
14571         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
14572         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
14573         * cfglayout.c (skip_insns_after_block, label_for_bb,
14574         record_effective_endpoints, scope_to_insns_finalize,
14575         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
14576         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
14577         cfg_layout_duplicate_bb): Modified.
14578         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
14579         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
14580         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
14581         flow_loops_find, flow_loop_outside_edge_p): Modified.
14582         * cfgrtl.c (create_basic_block_structure, create_basic_block,
14583         flow_delete_block, compute_bb_for_insn, split_block,
14584         try_redirect_by_replacing_jump, redirect_edge_and_branch,
14585         force_nonfallthru_and_redirect, tidy_fallthru_edge,
14586         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
14587         commit_edge_insertions, commit_edge_insertions_watch_calls,
14588         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
14589         purge_all_dead_edges): Modified.
14590         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
14591         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
14592         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
14593         Modified.
14594         * conflict.c (conflict_graph_compute): Modified.
14595         * df.c (FOR_ALL_BBS): Removed.
14596         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
14597         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
14598         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
14599         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
14600         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
14601         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
14602         * final.c (compute_alignments, final_scan_insn): Modified.
14603         * flow.c (verify_local_live_at_start, update_life_info,
14604         update_life_info_in_dirty_blocks, free_basic_block_vars,
14605         delete_noop_moves, calculate_global_regs_live,
14606         initialize_uninitialized_subregs, allocate_bb_life_data,
14607         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
14608         mark_used_reg, count_or_remove_death_notes): Modified.
14609         * function.c (thread_prologue_and_epilogue_insns): Modified.
14610         * gcse.c (struct null_pointer_info): Change typo of current_block
14611         to basic_block.
14612         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
14613         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
14614         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
14615         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
14616         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
14617         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
14618         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
14619         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
14620         pre_delete, one_pre_gcse_pass, compute_transpout,
14621         invalidate_nonnull_info, delete_null_pointer_checks_1,
14622         free_code_hoist_mem, compute_code_hoist_vbeinout,
14623         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
14624         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
14625         compute_store_table, build_store_vectors, insert_insn_start_bb,
14626         insert_store, replace_store_insn, free_store_memory, store_motion):
14627         Modified.
14628         * global.c (global_alloc, global_conflicts, mark_elimination,
14629         build_insn_chain): Modified.
14630         * graph.c (print_rtl_graph_with_bb): Modified.
14631         * haifa-sched.c (sched_init): Modified.
14632         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
14633         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
14634         if_convert): Modified.
14635         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
14636         compute_insert_delete, pre_edge_lcm, compute_available,
14637         compute_farthest, compute_nearerout, compute_rev_insert_delete,
14638         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
14639         Modified.
14640         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
14641         * loop.c (loop_dump_aux): Modified.
14642         * predict.c (combine_predictions_for_insn, estimate_probability,
14643         last_basic_block_p, process_note_prediction, process_note_predictions,
14644         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
14645         expensive_function_p, estimate_bb_frequencies,
14646         compute_function_frequency): Modified.
14647         * print-rtl.c (print_rtx): Modified.
14648         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
14649         get_exec_counts, compute_branch_probabilities, compute_checksum,
14650         branch_prob, find_spanning_tree): Modified.
14651         * recog.c (split_all_insns, peephole2_optimize): Modified.
14652         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
14653         convert_regs_1, convert_regs_2, convert_regs): Modified.
14654         * regclass.c (scan_one_insn, regclass): Modified.
14655         * regmove.c (mark_flags_life_zones, regmove_optimize,
14656         combine_stack_adjustments): Modified.
14657         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
14658         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
14659         * reorg.c (dbr_schedule): Modified.
14660         * resource.c (find_basic_block, init_resource_info): Modified.
14661         * sbitmap.c (sbitmap_intersection_of_succs,
14662         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
14663         sbitmap_union_of_preds): Modified.
14664         * sched-deps.c (init_dependency_caches): Modified.
14665         * sched-ebb.c (schedule_ebbs): Modified.
14666         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
14667         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
14668         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
14669         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
14670         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
14671         ssa_const_prop): Modified.
14672         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
14673         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
14674         * ssa.c (remove_phi_alternative, find_evaluations,
14675         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
14676         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
14677         make_regs_equivalent_over_bad_edges,
14678         make_equivalent_phi_alternatives_equival,
14679         compute_conservative_reg_partition,
14680         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
14681         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
14682         Modified.
14683
14684 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
14685
14686         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
14687
14688 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
14689
14690         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
14691         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14692         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
14693         calling CONSTANT_POOL_ADDRESS_P.
14694         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
14695         to decide whether to define __arm__ or __thumb.
14696         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
14697         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14698
14699 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14700
14701         * config/arc/arc.h (CPP_PREDEFINES): Remove.
14702         (CPP_SPEC): Update.
14703         (TARGET_CPU_CPP_BUILTINS): New.
14704
14705 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14706
14707         * cpphash.h (cpp_macro): Move here, and make expansion a union.
14708         * cppmacro.c (cpp_macro): Remove.
14709         (enter_macro_context, replace_args, warn_of_redefinition,
14710         _cpp_create_definition, cpp_macro_definition): Update.
14711
14712 2002-05-16  Jason Merrill  <jason@redhat.com>
14713
14714         * config/mips/mips.c (mips_output_external): Don't do sdata
14715         optimization for a variable with DECL_COMDAT set.
14716
14717 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14718
14719         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
14720         Cleanups for accepting modifiers on pointers.
14721         Fix predicate typos.
14722         Allow long pointers as well as int pointers.
14723
14724 2002-05-15  Richard Henderson  <rth@redhat.com>
14725
14726         * varasm.c (merge_weak): Remove special case for extern and common.
14727
14728 2002-05-15  Matt Hiller  <hiller@redhat.com>
14729
14730         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
14731         XFAILing.
14732         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
14733         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
14734         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
14735         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
14736         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
14737         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
14738
14739 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14740
14741         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
14742
14743 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14744
14745         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
14746         ("altivec_mfvscr"): Read from VSCR.
14747
14748         Add vscr sets for the following insns: altivec_vctuxs,
14749         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
14750         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
14751         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
14752         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
14753         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
14754         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
14755         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
14756         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
14757         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
14758         altivec_vsum2sws, altivec_vsumsws.
14759
14760         * config/rs6000/rs6000.h: Add VSCR fixed register.
14761         (CALL_REALLY_USED_REGISTERS): Add vscr.
14762         (CALL_USED_REGISTERS): Same.
14763         (FIXED_REGISTERS): Same.
14764         (REG_ALLOC_ORDER): Same.
14765         (reg_class): Add VSCR_REGS.
14766         (REG_CLASS_NAMES): Same.
14767         (REG_CLASS_CONTENTS): Same.
14768         (VSCR_REGNO): New.
14769         (REGISTER_NAMES): Add vscr.
14770         (DEBUG_REGISTER_NAMES): Same.
14771         (ADDITIONAL_REGISTER_NAMES): Same.
14772         (FIRST_PSEUDO_REGISTER): Increment.
14773         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
14774
14775 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
14776
14777         * fold-const.c (fold): Fix a typo.
14778
14779 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
14780
14781         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
14782         comparison against the highest or lowest integer value before
14783         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
14784         transformation and that of an unsigned comparison against 0
14785         right after.
14786
14787 2002-05-15  Richard Henderson  <rth@redhat.com>
14788
14789         * varasm.c (merge_weak): Error for any weakening after definition.
14790         Adjust weakening after use warning to catch more cases.
14791         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
14792         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
14793
14794 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
14795
14796         * invoke.texi (-malign-double): Re-add lost warning.
14797
14798         * i386-protos.h (x86_output_mi_thunk): Declare.
14799         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
14800         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
14801
14802         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
14803         when flag_asynchronous_unwind_tables is set.
14804
14805         * flags.h (flag_reorder_functions): Declare.
14806         * function.c (prepare_function_start): Initialize frequnecy.
14807         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
14808         * Makefile.in (predict.o): Add dependency on target.h and params.h
14809         * defaults.h (HOT_TEXT_SECTION_NAME,
14810         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
14811         * predict.c (choose_function_section): New function.
14812         (estimate_bb_frequencies): Use it.
14813         * toplev.c (flag_reorder_functions): New global variable.
14814         (lang_independent_options): New.
14815         (parse_options_and_default_flags): Set.
14816         * varasm.c (assemble_start_function): Bypass functdion alignment
14817         for never executed functions.
14818         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
14819         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
14820         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14821         Document.
14822
14823         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14824
14825         * predict.c: Inlude profile.h
14826         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
14827         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
14828         Use the information about maximal counter in the program.
14829
14830         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
14831
14832         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
14833         probably_never_executed_bb_p): New functions.
14834         * cfgcleanup.c (outgoing_edges_match): Use them.
14835         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
14836         (maybe_hot_bb_p, probably_cold_bb_p,
14837         probably_never_executed_bb_p): New functions.
14838
14839         * function.h (function): Add new field function_frequency.
14840         * predict.c (compute_function_frequency): New function.
14841         (estimate_probability): Call it.
14842
14843 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14844
14845         PR optimization/5172, optimization/5200
14846         * gcse.c (gcse_main): Disable store_motion.
14847
14848 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
14849
14850         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
14851         (c_common_nodes_and_builtins): Use it.
14852         (builtin_define_with_value): New function.
14853         (cb_register_builtins): Define __SIZE_TYPE__,
14854         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
14855         using builtin_define_with_value.  Use consistent notation when
14856         defining __GXX_WEAK__.
14857         (WCHAR_TYPE_SIZE): Don't redefine.
14858         (combine_strings): Don't use WCHAR_TYPE_SIZE.
14859
14860         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
14861         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
14862         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
14863         * tradcpp.c (initialize_builtins): Likewise.
14864         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
14865
14866         * c-lex.h (builtin_define_with_value): Prototype.
14867         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
14868         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
14869         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
14870
14871         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14872         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
14873         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
14874         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
14875         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
14876         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
14877         config/sparc/sol2-bi.h, config/sparc/sparc.h:
14878         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
14879         to __SIZE_TYPE__ etc from all spec strings. When this makes
14880         extra specs empty, delete them.
14881
14882 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14883
14884         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
14885         for PA8000 or generating dwarf2 call frame information.
14886         (output_call): Remove DO_FRAME_NOTES check from return pointer
14887         optimization.
14888         (following_call): Return 0 when scheduling for PA8000 or generating
14889         dwarf2 call frame information.  Revise comment.
14890
14891 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14892
14893 config/alpha:
14894         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
14895         and __IEEE_FP_INEXACT as appropriate.
14896         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
14897         (CPP_SPEC): Remove ieee defines.
14898         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
14899
14900 2002-05-14  Richard Henderson  <rth@redhat.com>
14901
14902         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
14903         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
14904
14905 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14906
14907         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
14908         (CPP_SPEC): Update.
14909         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
14910         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
14911         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
14912         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
14913         (EXTRA_SPECS): Update.
14914         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
14915         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
14916         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
14917         define TARGET_OS_CPP_BUILTINS if necessary.
14918
14919 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14920
14921         * gcc.c (cpp_options): Must pass -m* and -f* options
14922         to the front end even when only preprocessing.
14923         (cc1_options): Remove redundant -lang-c.
14924         * tradcpp.c (main): Ignore -m options.
14925 objc:
14926         * lang-specs.h: Similarly.
14927
14928 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
14929
14930         * genautomata.c (transform_3): Add code for transformation
14931         `(A,B,...)+C -> A+C,B,...'.
14932
14933 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
14934
14935         * final.c (end_final): Do not output profile_arcs constructor, when
14936         no functions are instrumented.
14937
14938 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
14939
14940         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
14941
14942 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14943
14944         * doc/install.texi: Remove special markup originally required for
14945         HTML generation with texi2html.
14946
14947 2002-05-14  Andreas Schwab  <schwab@suse.de>
14948
14949         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
14950         SELECT_SECTION.
14951         (UNIQUE_SECTION): Define to get small data correctly.
14952
14953         * varasm.c (resolve_unique_section): Add third parameter
14954         flag_function_or_data_sections and use it instead of
14955         flag_function_sections.
14956         (assemble_start_function): Pass flag_function_sections.
14957         (asm_emit_uninitialised): Pass flag_data_sections.
14958         (assemble_variable): Likewise.
14959
14960 2002-05-14  Richard Henderson  <rth@redhat.com>
14961
14962         * config/i386/i386.md: Use define_constants for unspec numbers.
14963         * config/i386/i386.c: Likewise.
14964
14965 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14966
14967         * doc/contrib.texi: Update my entry.
14968
14969 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
14970
14971         * fixinc/inclhack.def (winidss_valist): Limit applicability.
14972         * fixinc/fixincl.x: Regenerated.
14973         * fixinc/tests/base/math.h: Update.
14974         * fixinc/tests/base/testing.h: Likewise.
14975
14976 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
14977
14978         * genattr.c (gen_attr): Don't emit a comma after the last
14979         enumerator.
14980
14981 2002-05-13  Richard Henderson  <rth@redhat.com>
14982
14983         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
14984         by non-local gotos.
14985         * recog.c (peephole2_optimize): Likewise.
14986
14987 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
14988
14989         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
14990         input to O_BINARY.
14991
14992 2002-05-13  Jeffrey A Law  (law@redhat.com)
14993
14994         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
14995         Update prototype and callers.
14996         (propagate_one_insn): Stack pointer adjustments kill MEMs on
14997         the mem_set_list which reference the stack pointer, as do
14998         calls to constant functions as they may clobber outgoing
14999         argument space.
15000
15001         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
15002
15003         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15004         (ia32_multipass_dfa_lookahead): New function.
15005
15006 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
15007
15008         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
15009         (translate_options): Remove 'V'.
15010         (process_command): Similarly.
15011 doc:
15012         * invoke.texi: Remove documentation of 'V'.
15013
15014 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
15015
15016         * config/s390/linux.h: Revert 2002-04-22 changes.
15017
15018 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
15019
15020         * config/fr30/fr30.md: Only allow splits of immediate loads
15021         if the destination is a register.
15022
15023 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
15024
15025         * Makefile.in (c-common.o, cppinit.o): Update.
15026         * c-common.c: Include except.h.
15027         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
15028         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
15029         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
15030         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
15031         CPP_PREDEFINES): Handle here.
15032 config:
15033         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
15034         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
15035         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
15036         TARGET_OS_CPP_BUILTINS.
15037         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
15038         (CPP_SPEC, EXTRA_SPECS): Update.
15039         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
15040         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
15041         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
15042         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
15043         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
15044 doc:
15045         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
15046         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
15047
15048 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
15049
15050         * emit-rtl.c (global_rtl): Update comment.
15051         (const_double_htab, const_double_htab_hash,
15052         const_double_htab_hash, lookup_const_double): New.
15053         (const_int_htab_hash, const_int_htab_eq): Remove const
15054         qualifiers, which cause tons of warnings with RTL checking on.
15055         (gen_rtx_CONST_DOUBLE): Deleted.
15056         (const_double_from_real_value): New function - bears some
15057         resemblance to the former immed_real_const_1.
15058         (immed_double_const): Moved here from varasm.c and
15059         simplified.
15060         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
15061         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
15062         (gen_rtx): Use immed_double_const.
15063         (init_emit_once): Initialize the const_double_htab.  Use
15064         REAL_VALUE_FROM_INT where possible.  Can now use
15065         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
15066         * varasm.c (struct varasm_status): Remove x_const_double_chain.
15067         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
15068         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
15069         (init_varasm_status, mark_varasm_status): Don't touch
15070         x_const_double_chain.
15071
15072         * output.h: Delete prototype for clear_const_double_mem.
15073         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
15074         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
15075         const_double_from_real_value, not immed_real_const_1, and use
15076         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
15077         CONST_DOUBLE_ATOF.
15078         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
15079         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
15080         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
15081         (gen_rtx_REG): Second arg is unsigned.
15082
15083         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
15084         (excluded_rtx): New, return true for CONST_DOUBLE.
15085         (genmacro): Write nothing for excluded codes.
15086         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
15087         * expr.c (expand_expr): Likewise.
15088         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
15089         CONST_DOUBLE_CHAIN.
15090         * toplev.c (rest_of_compilation): Don't call
15091         clear_const_double_mem.
15092
15093         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
15094         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
15095         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
15096         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
15097         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
15098         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
15099         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
15100         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
15101
15102 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15103
15104         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
15105
15106 2002-05-12  Tom Tromey  <tromey@redhat.com>
15107
15108         * tree.h (copy_node): Don't mention TREE_PERMANENT.
15109
15110 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
15111
15112         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
15113         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
15114         * gensupport.h: Prototype new routines.
15115         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
15116         use of printf.
15117         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
15118         (next_comma_elt): Use scan_comma_elt.
15119
15120         * config/i386/i386.md: Use new attribute notation to break up
15121         long lines in define_attr forms.
15122
15123 2002-05-12  Richard Henderson  <rth@redhat.com>
15124
15125         * expr.c (compress_float_constant): New.
15126         (emit_move_insn): Use it.
15127         (float_extend_from_mem): New.
15128         (init_expr_once): Initialize it.
15129         * real.c (exact_real_truncate): New.
15130
15131         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
15132         dropped into memory; penalize for size.
15133         (RTX_COSTS): FLOAT_EXTEND is free.
15134         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
15135         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
15136
15137 2002-05-12  Richard Henderson  <rth@redhat.com>
15138
15139         * profile.h (profile_info): Add missing extern to declaration.
15140         * profile.c (profile_info): Define it.
15141
15142 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15143
15144         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
15145         used for DImode and TImode.
15146
15147 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15148
15149         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
15150         fake a newline.
15151
15152 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
15153
15154         * config/rs6000/rs6000.c (rs6000_default_long_calls,
15155         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
15156         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
15157         (rs6000_override_options): Handle -m(no-)longcall.
15158         (init_cumulative_args, output_mi_thunk): Check for both
15159         longcall and shortcall attributes on the function.
15160         (rs6000_attribute_table): Add "shortcall".
15161         (rs6000_handle_longcall_attribute): Update comment.
15162         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
15163         altivec_expand_ternop_builtin): Add default clauses to switches
15164         to silence warnings.
15165
15166         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
15167         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
15168         (TARGET_OPTIONS): Add longcall and no-longcall.
15169
15170         * config/rs6000/rs6000.md (call_nonlocal_sysv,
15171         call_value_nonlocal_sysv): Split by alternatives.  One pair
15172         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
15173         the call cookie.  The other pair accepts only LR/CTR and has
15174         no restriction.
15175
15176         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
15177         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
15178         tmake_file.
15179         * config/rs6000/rs6000-c.c: New file.
15180         * config/rs6000/t-rs6000-c-rule: New file.
15181         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
15182         Prototype rs6000_pragma_longcall.
15183
15184         * doc/extend.texi: Document shortcall attribute.
15185         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
15186
15187 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15188
15189         * reorg.c (dbr_schedule): Remove unnecessary test.
15190
15191 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
15192
15193         * i386.md (testsi to testqi spliters): New.
15194
15195         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
15196
15197         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
15198
15199         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
15200
15201         * basic-block.h: New flag EDGE_CAN_FALLTHRU
15202         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
15203         that can be made fallthru.
15204
15205         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
15206
15207         * cfglayout.c (cleanup_unconditional_jumps): New static function.
15208         (cfg_layout_initialize): Use it.
15209
15210 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15211
15212         * config/avr/avr.c (avr_mcu_types): Update supported devices.
15213         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15214         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15215
15216 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
15217
15218         * dbxout.c: Fix formatting.
15219         * dependence.c: Likewise.
15220         * df.c: Likewise.
15221         * diagnostic.c: Likewise.
15222         * doloop.c: Likewise.
15223         * dominance.c: Likewise.
15224         * doschk.c: Likewise.
15225         * dwarf2asm.c: Likewise.
15226         * dwarf2out.c: Likewise.
15227         * dwarfout.c: Likewise.
15228
15229 2002-05-10  Richard Henderson  <rth@redhat.com>
15230
15231         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
15232         Convert integers constants as needed.  Replace "nwords" field with
15233         "sizeof_bb".
15234         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
15235         * function.h: Fix typo in comment.
15236         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
15237
15238 2002-05-10  Roger Sayle  <roger@eyesopen.com>
15239
15240         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
15241         into the equivalent (signed char)c > 0.
15242
15243 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
15244
15245         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
15246         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
15247         (struct prefetch_info): Fix spelling of member bytes_accessed.
15248         (emit_prefetch_instructions): Make dump messages more regular;
15249         restructure code to add more dump messages; use new macros for
15250         heuristics. (There are no code generation changes in any of this).
15251
15252 2002-05-10  David S. Miller  <davem@redhat.com>
15253
15254         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
15255         (struct rtx_def): Update unchanging flag comment.
15256         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
15257         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
15258         to be handled to INSN too.
15259         (dbr_schedule): Likewise.
15260         * resource.c (next_insn_no_annul): Likewise.
15261
15262         * cse.c (rtx_cost): Remove multiplication by power of 2 special
15263         casing.
15264
15265 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15266
15267         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
15268         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
15269         (possibly) work around broken /bin/sh.
15270
15271 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15272
15273         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
15274         . as N64/N32 libgcc_s.so subdirs.
15275
15276 2002-05-10  David S. Miller  <davem@redhat.com>
15277
15278         * config/sparc/sparc.md: Use define_constants for unspec numbers.
15279
15280         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
15281         more accurately.
15282         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
15283         comment.
15284         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
15285         * doc/rtl.texi: Document these macros more accurately.
15286         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
15287         JUMP_INSNs and CALL_INSNs.
15288         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
15289         or INSN_FROM_TARGET_P if the code is appropriate.
15290
15291 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15292
15293         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
15294         before using SYMBOL_REF_FLAG (addr).
15295
15296         * config/avr/avr-protos.h (avr_io_address_p): Declare.
15297         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
15298         Make non-static.  Update all callers.
15299         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
15300         New insns to clear/set/test a single bit in I/O address space.
15301
15302 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15303
15304         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
15305
15306 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15307
15308         * Makefile.in: Update.
15309         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
15310         builtin_define_std): New.
15311         (c_common_init): Register CPP builtins callback.
15312         * c-common.h (flag_iso, flag_undef): New.
15313         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
15314         * c-lex.c: Don't include target.h.
15315         (cb_register_builtins): Move to c-common.c.
15316         (init_c_lex): Don't register hook here.
15317         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
15318         (cpp_define, cpp_assert): Remove.
15319         * gcc.c (cc1_options): Pass -undef to front end.
15320         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
15321         (TARGET_INITIALIZER): Update.
15322         * target.h (struct cpp_reader): Don't predeclare.
15323         (struct gcc_target): Remove cpp builtin hook.
15324         * tree.c (default_register_cpp_builtins): Remove.
15325 doc:
15326         * tm.texi: Update.
15327
15328 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15329
15330         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
15331
15332 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15333
15334         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
15335         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
15336
15337 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
15338
15339         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
15340         * config/sparc/libgcc-sparc-glibc.ver: New file.
15341         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
15342         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
15343
15344 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
15345
15346         PR target/6429
15347         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
15348         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
15349         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
15350         base multilibs.
15351         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
15352         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
15353         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15354         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15355
15356 2002-05-09  Richard Henderson  <rth@redhat.com>
15357
15358         * config/ia64/ia64.md: Use define_constants for unspec numbers.
15359         * config/ia64/ia64.c: Likewise.
15360
15361 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
15362
15363         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
15364         (save_restore_insns): Likewise.
15365         (mips_expand_prologue, mips_expand_epilogue): Update callers.
15366         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
15367
15368 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
15369
15370         * athlon.md, k6.md, pentium.md, ppro.md): New files.
15371         * i386.md: Move scheduling information into new files.
15372
15373         * i386.md (type attribute): Add "rotate" for rotate insns.
15374         (rotate insns): Set type to "rotate".
15375         (various attributes and function units): Treat rotate like shift.
15376         (pent_pair attribute): Only rotates by one bit position are
15377         pairable.
15378         (sbb insns): Explicitly set pent_pair attribute on a couple
15379         that were missing it.
15380
15381 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
15382
15383         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
15384         make sure that buffer starts on odd word address.
15385         (sh_va_arg): Skip odd fp registers when reading a double precision
15386         value.
15387
15388 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15389
15390         * tree.h (preserve_data, object_permanent_p, type_precision):
15391         Remove.
15392
15393 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15394
15395         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
15396         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
15397 doc:
15398         * cpp.texi: Update for removal of obsolete features.
15399
15400 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
15401                           Jeffrey A Law  (law@redhat.com)
15402
15403         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
15404         the DFA interface for Pentium processors.
15405         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
15406         (attr_pent_pair, ix86_pent_find_pair): Remove.
15407         (ix86_sched_reorder_pentium): Remove.
15408         (ix86_sched_reorder): Remove reordering for Pentium.
15409         * i386.md (Pentium scheduling): Rewrite using DFA description.
15410
15411 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
15412
15413         * cfganal.c (can_fallthru): Fix fast path.
15414         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
15415         with edges to the next block.
15416
15417 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
15418                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
15419
15420         * final.c (end_final): Use C trees to output data structures for profiling.
15421
15422         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
15423         (profile.o): New dependency profile.h
15424         (final.o): New dependency profile.h
15425         * profile.h: New file. New global structure profile_info.
15426         * final.h (count_edges_instrumented_now): Declare.
15427         (current_function_cfg_checksum): Declare.
15428         (function_list): New structure.
15429         (functions_head, functions_tail): New static variables.
15430         (end_final): Emits more data, removed some -ax stuff.
15431         (final): Stores function names and chcksums.
15432         * gcov-io.h (__write_gcov_string): New function.
15433         (__read_gcov_string): New function.
15434         * gcov.c (read_profile): New function.
15435         (create_program_flow_graph): Uses read_profile instead of reading
15436         da_file.
15437         (read_files): Removed da_file checking, it's done by read_profile now.
15438         * libgcc2.c (bb_function_info): New structure.
15439         (bb): New field in structure, removed some -ax stuff.
15440         (__bb_exit_func): Changed structure of da_file.
15441         * profile.c (count_edges_instrumented_now): New global variable.
15442         (current_function_cfg_checksum): New global variable.
15443         (max_counter_in_program): New global variable.
15444         (get_exec_counts): New function.
15445         (compute_checksum): New function.
15446         (instrument_edges): Sets count_edges_instrumented_now.
15447         (compute_branch_probabilities): Uses get_exec_counts instead of
15448         reading da_file.
15449         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
15450         (init_branch_prob): Removed da_file checking, done in get_exec_counts
15451         now.
15452         (end_branch_prob): Removed da_file checking, done in get_exec_counts
15453         now.
15454         * gcov.texi: Updated information about gcov file format.
15455
15456 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
15457
15458         * sbitmap.c: Fix formatting.
15459         * scan.c: Likewise.
15460         * scan-decls.c: Likewise.
15461         * sched-deps.c: Likewise.
15462         * sched-ebb.c: Likewise.
15463         * sched-rgn.c: Likewise.
15464         * sched-vis.c: Likewise.
15465         * sdbout.c: Likewise.
15466         * sibcall.c: Likewise.
15467         * simplify-rtx.c: Likewise.
15468         * ssa.c: Likewise.
15469         * ssa-ccp.c: Likewise.
15470         * ssa-dce.c: Likewise.
15471         * stmt.c: Likewise.
15472         * stor-layout.c: Likewise.
15473         * stringpool.c: Likewise.
15474
15475 2002-05-09  David S. Miller  <davem@redhat.com>
15476
15477         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
15478
15479 2002-05-07  David S. Miller  <davem@redhat.com>
15480
15481         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
15482         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
15483         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
15484         library implementation clobbers the output before the inputs
15485         are fully consumed, use stack temporary for the output.
15486
15487 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
15488
15489         * config/netbsd.h (CPP_SPEC): Remove.
15490         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
15491         * config/i386/netbsd.h (CPP_SPEC): Define.
15492         * config/ns32k/netbsd.h (CPP_SPEC): Define.
15493         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
15494         * config/sparc/netbsd.h (CPP_SPEC): Define.
15495         * config/vax/netbsd.h (CPP_SPEC): Define.
15496
15497 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
15498
15499         * read-rtl.c: Fix formatting.
15500         * real.c: Likewise.
15501         * recog.c: Likewise.
15502         * regclass.c: Likewise.
15503         * regmove.c: Likewise.
15504         * reg-stack.c: Likewise.
15505         * reload1.c: Likewise.
15506         * reload.c: Likewise.
15507         * resource.c: Likewise.
15508         * rtlanal.c: Likewise.
15509         * rtl.c: Likewise.
15510         * rtl-error.c: Likewise.
15511
15512 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15513
15514         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
15515         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
15516
15517 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
15518
15519         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
15520         use __SSE2__ macro instead.
15521         * config/i386/xmmintrin.h: Likewise.
15522
15523 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
15524
15525         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
15526         and use it in all invocations of these macros.  Clean up comments.
15527         * rtl.c (rtl_check_failed_flag): Add an argument for the name
15528         of the flag access macro whose check failed.
15529         * doc/rtl.texi (Flags): Document additional flag uses.
15530
15531 2002-05-08  Robert Spier <rspier@pobox.com>
15532             Neil Booth  <neil@daikokuya.demon.co.uk>
15533
15534         PR preprocessor/6521
15535         * cppfiles.c (handle_missing_header): Don't do anything
15536         different for <> includes.
15537 doc:
15538         * cppopts.texi: Update documentation for -MG.
15539
15540 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
15541
15542         * cpplex.c (cpp_interpret_charconst): Truncate as well as
15543         sign-extend.
15544 doc:
15545         * cpp.texi: Clarify multichar charconst valuation.
15546
15547 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
15548
15549         * doc/invoke.texi: Document -mwindiss option.
15550
15551 2002-05-08  Jason Merrill  <jason@redhat.com>
15552
15553         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
15554
15555         * dwarf2out.c (gen_type_die): Abort on broken recursion.
15556
15557         PR c++/6381
15558         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
15559         REAL_CST.
15560
15561 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
15562
15563         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
15564         little-endian multilibs to override arm/thumb multilibs.
15565         Do not build hardware floating point multilibs, nor apcs-26
15566         multilibs for the Thumb.
15567
15568 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
15569
15570         PR c/6569.
15571         * varasm.c (mark_weak): New function.
15572         (merge_weak): Use it.  Do not call declare_weak.
15573         (declare_weak): Use merge_weak.
15574
15575 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
15576
15577         * cse.c (dead_libcall_p): Update counts.
15578         (delete_trivially_dead_insns): Update call of dead_libcall_p.
15579
15580 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
15581
15582         * cfglayout.c (function_tail_eff_head): Rename to ...
15583         (function_footer): ... this one.
15584         (unlink_insn_chain): New functions.
15585         (label_for_bb): Only call block_label and emit debug message.
15586         (record_effective_endpoints): Actually unlink the headers and footers.
15587         (fixup_reorder_cahin): Re-insert the unlinked sequences.
15588         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
15589         * cfglayout.h (struct reorder_block_def): New fields footer/header;
15590         remove eff_head/eff_end.
15591         * rtl.h (set_first_insn): Declare.
15592         * emit-rtl.c (set_first_insn): New function.
15593
15594         * cfglayout.c (fixup_reorder_chain): Dump duplicated
15595         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15596         cfg_layout_duplicate_bb): New global function.
15597         (duplicate_insn_chain): New static function.
15598         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15599         cfg_layout_duplicate_bb): Declare.
15600         (struct reorder_block_def): Add "original" field.
15601         * emit-rtl.c (emit_copy_of_insn_after): New function.
15602         * rtl.h (emit_copy_of_insn_after): Declare.
15603
15604         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
15605         (fixup_reorder_chain): properly handle edges to exit block.
15606
15607 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15608                                Jan Hubicka  <jh@suse.cz>
15609
15610         * basic-block.h (note_prediction_to_br_prob): declare.
15611         * c-semantics.c: Inlucde predit.h
15612         (expand_stmt): predict GOTO_STMT as not taken.
15613         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
15614         (cleanup_cfg): Do not free tail_recursion_list.
15615         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
15616         (flow_delete_block): Kill predictions past end of basic block.
15617         * output.h (delete_unreachable_blocks): Declare.
15618         * predict.c (predicted_by_p, process_note_predictions,
15619         process_note_prediction, last_block_p): New function.
15620         (estimate_probability): Bypass loop on PRED_CONTINUE;
15621         do not handle noreturn heuristics; kill PRED_RETURN; add
15622         PRED_EARLY_RETURN.
15623         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
15624         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
15625         * predict.h (IS_TAKEN): New constant.
15626         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
15627         * rtl.c (NOTE_INSN_PREDICTION): New.
15628         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
15629         New macro.
15630         (insn_note): add NOTE_INSN_PREDICTION.
15631         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
15632         CFG; free tail_recursion_label_list.
15633         * stmt.c: Include predict.h;
15634         (return_prediction): New.
15635         (expand_value_return): Use it.
15636         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
15637
15638 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
15639
15640         * config/mips/mips.md: Name the unspecs with define_constant.
15641         (*HILO_delay): Rename to 'hilo_delay' (no star).
15642         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
15643         (reload_outdi, reload_outsi): Likewise.
15644
15645 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
15646
15647         * toplev.c: Fix formatting.
15648
15649 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
15650
15651         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
15652         * configure.in (ac_rtlflag_checking): New.
15653         * doc/install.texi (--enable-checking): Document RTL flag checking.
15654
15655 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15656
15657         * c-common.c (c_common_init): Set options->unsigned_wchar.
15658         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
15659         group target dependencies.
15660         (init_builtins, cpp_handle_option): Update.
15661         * cpplex.c (cpp_interpret_charconst): Update.
15662         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
15663         signed_char to unsigned_char, group target dependencies.
15664         * defaults.h (WCHAR_UNSIGNED): Remove.
15665         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
15666 config:
15667         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
15668         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
15669         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
15670         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
15671         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
15672 doc:
15673         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
15674
15675 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
15676
15677         * fixinc/inclhack.def (windiss_math1): New fix.
15678         (windiss_math2): Likewise.
15679         (windiss_valist): Likewise.
15680         * fixinc/fixincl.x: Regenerated.
15681
15682 2002-05-07  Andreas Jaeger  <aj@suse.de>
15683
15684         * genautomata.c (output_internal_min_issue_delay_func): Add
15685         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
15686         (output_internal_trans_func): Likewise.
15687
15688 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
15689
15690         * pa.c (hppa_profile_hook): Use force_reg to get the address
15691         of the profile hook into an appropriate pseudo register.
15692
15693 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
15694
15695         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
15696         (LINK_START_SPEC): Handle it.
15697         (LINK_OS_SPEC): Likewise.
15698         (CPP_SPEC): Likewise.
15699         (STARTFILE_SPEC): Likewise.
15700         (LIB_SPEC): Likewise.
15701         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
15702         all platforms.
15703         (CRTSAVRES_DEFAULT_SPEC): New macro.
15704         (LIB_WINDISS_SPEC): New macro.
15705         (CPP_OS_WINDISS_SPEC): Likewise.
15706         (STARTFILE_WINDISS_SPEC): Likewise.
15707         (ENDFILE_WINDISS_SPEC): Likewise.
15708         (LINK_START_WINDISS_SPEC): Likewise.
15709         (LINK_OS_WINDISS_SPEC): Likewise.
15710         * config/rs6000/windiss.h: New file.
15711
15712 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
15713
15714         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
15715
15716 2002-05-06  David S. Miller  <davem@redhat.com>
15717
15718         * config/sparc/sparc.md (shift insns): Do not mask off
15719         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
15720         take care of it.
15721
15722 2002-05-06  Richard Henderson  <rth@redhat.com>
15723
15724         PR c++/6212
15725         * expr.c (highest_pow2_factor_for_type): New.
15726         (expand_assignment): Use it.
15727
15728 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
15729
15730         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
15731         unspec_volatile.
15732         ("altivec_mfvscr"): Same.
15733
15734 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
15735
15736         * rtl.h (struct rtx_def): Update comments.
15737         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
15738         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
15739         RTL_FLAG_CHECK macros with list of expected RTL codes.
15740         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
15741         (rtl_check_failed_flag): New.
15742         * reload1.c (reload): Use REG macro before changing rtx to MEM.
15743         (reload_cse_noop_set_p): Check rtx code before using access macro.
15744         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
15745         before using access macro.
15746
15747 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
15748
15749         * doc/rtl.texi (Flags): Update to reflect current usage.
15750
15751 2002-05-06  Roger Sayle  <roger@eyesopen.com>
15752
15753         PR opt/3995
15754         * fold-const.c (sign_bit_p): New function.
15755         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
15756         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
15757         Reapply fold when converting (A & C) == C into (A & C) != 0.
15758         (fold_binary_op_with_conditional_arg): Fix typo in comment.
15759
15760 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15761
15762         * c-common.c (warn_multichar): New.
15763         (c_common_init): Set CPP's warn_multichar.
15764         * c-common.h (warn_multichar): New.
15765         * c-decl.c (warn_multichar): Remove.
15766         * c-lex.c (lex_charconst): Update.
15767         * c-tree.h (warn_multichar): Remove.
15768         * cppexp.c (eval_token): Sign-extend charconst value.
15769         * cppinit.c (cpp_create_reader): Set warn_multichar.
15770         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
15771         each character.  Update prototype.  Sign-extend the result.
15772         * cpplib.h: Fix conditions.
15773         (struct cpp_options): Add new warning flag.
15774         (cpp_interpret_charconst): Update prototype.
15775 doc:
15776         * cpp.texi: Update documentation.
15777
15778 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
15779
15780         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15781         Fix typo in usage of allof instead of unit.
15782
15783 2002-05-06  Richard Henderson  <rth@redhat.com>
15784
15785         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
15786         and any jump or call for IN.
15787
15788 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
15789
15790         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
15791         -msse2.
15792         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
15793
15794 2002-05-06  Roger Sayle  <roger@eyesopen.com>
15795
15796         * fold-const.c (lshift-double): Cast the high word to an unsigned
15797         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
15798         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
15799         avoid compiler warning.  (fold): Remove redundant code from
15800         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
15801
15802 2002-05-06  Jeff Law  <law@redhat.com>
15803
15804         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
15805         * pa.c (pa_adjust_cost): Remove all true dependency cost
15806         adjustments.  Also remove support for non-DFA scheduling.
15807         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
15808         to adjust true dependency costs.  Update various comments.
15809         (7100lc, 7200, 7300 scheduling): Simplify by combining the
15810         FP ALU & MPY units into a single unit.
15811
15812 2002-05-06  Catherine Moore  <clm@redhat.com>
15813
15814         * config/v850/v850.c (compute_register_save_size): Make sure
15815         to count all of the registers that will be saved.
15816
15817 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
15818
15819         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
15820
15821 2002-05-06  David S. Miller  <davem@redhat.com>
15822
15823         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
15824         allow result to overlap input operands in memory.
15825
15826 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15827
15828 doc:
15829         * cpp.texi: Update multichar charconst docs.
15830
15831 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15832
15833         * cpplex.c (cpp_interpret_charconst): Sign-extend each
15834         character.  Don't ignore excess characters.  Treat
15835         multicharacter character constants as signed.
15836         (cpp_parse_escape): Clarify diagnostic.
15837
15838 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
15839
15840         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
15841         use add instead of shift.
15842         (ashldi3_sp64): Likewise.
15843         (ashlsi3_const1, ashldi3_const1): Remove.
15844         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
15845         * config/sparc/sparc.c (const1_operand): New.
15846
15847 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
15848
15849         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
15850
15851 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
15852
15853         PR target/6561
15854         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
15855
15856 2002-05-05  Richard Henderson  <rth@redhat.com>
15857
15858         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
15859         memory latency adjustments.
15860         (alpha_variable_issue): Remove.
15861         (alpha_use_dfa_pipeline_interface): New.
15862         (alpha_multipass_dfa_lookahead): New.
15863         * config/alpha/alpha.md: Remove define_function_unit scheduling;
15864         include new dfa scheduling.
15865         (attr type): Add none.
15866         (blockage): Use it.
15867         * config/alpha/ev4.md: New.
15868         * config/alpha/ev5.md: New.
15869         * config/alpha/ev6.md: New.
15870
15871 2002-05-05  David S. Miller  <davem@redhat.com>
15872
15873         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
15874
15875 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
15876
15877         * cse.c: Fix formatting.
15878         * emit-rtl.c: Likewise.
15879
15880 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
15881
15882         * genautomata.c (initiate_states): Add additional guard to
15883         initialize `units_array'.
15884
15885 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
15886
15887         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
15888         process_unit_to_form_the_same_automaton_unit_lists,
15889         form_the_same_automaton_unit_lists
15890         check_unit_distributions_to_automata): New prototypes and
15891         functions.
15892         (check_automata): Rename it into `check_automata_insn_issues'.
15893         (unit_decl): New fields `the_same_automaton_unit' and
15894         `the_same_automaton_message_reported_p'.
15895         (unit_decl_t): New typedef.
15896         (the_same_automaton_lists): New gloval variable.
15897         (unit_regexp, unit_set_el, units_array, units_cmp,
15898         output_get_cpu_unit_code_func): Use the typedef.
15899         (evaluate_max_reserv_cycles): Increment
15900         `description->max_insn_reserv_cycles'.
15901         (initiate_states): Don't increment `max_cycles_num'.
15902         (transform_insn_regexps): Move code around transformation of
15903         regexps from `generate'.
15904         (generate): Remove call of `transform_insn_regexps'.
15905         (expand_automata): Call `transform_insn_regexps' and
15906         `check_unit_distributions_to_automata'.  Check errors before
15907         `generate'.
15908
15909         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
15910         automaton `ultrasparc3_1'.
15911
15912 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
15913
15914         * c-common.c (c_common_init): Set up CPP arithmetic.
15915         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
15916         something reasonable for the host.
15917         (sanity_checks): Add checks.
15918         (cpp_read_main_file): Call sanity_checks() from here...
15919         (cpp_post_options): ... not here.
15920         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
15921         * cpplib.h (struct cpp_options): New member int_precision.
15922
15923 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15924
15925         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
15926
15927 2002-05-04  David S. Miller  <davem@redhat.com>
15928
15929         * config/sparc/linux.h, config/sparc/linux64.h
15930         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
15931
15932         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
15933         more RTX codes.
15934         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
15935
15936         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
15937         of SETs.
15938
15939 2002-05-05  Tim Josling  <tej@melbpc.org.au>
15940
15941         * treelang; New directory for new sample language treelang.
15942
15943 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15944
15945         * Makefile.in (c-lex.o): Update.
15946         * c-lex.c: Include target.h.
15947         (cb_register_builtins): New.
15948         (init_c_lex): Set builtins callback.
15949         * c-lex.h (cpp_define, cpp_assert): New prototypes.
15950         * cppinit.c (init_builtins): Use callback, including for
15951         GXX_WEAK.
15952         * cpplib.h (struct cpp_callbacks): New member.
15953         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
15954         (TARGET_INITIALIZER): Update.
15955         * target.h (struct gcc_target): New hook.
15956         * tree.c (default_register_cpp_builtins): New.
15957         * tree.h (default_register_cpp_builtins): New.
15958 doc:
15959         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
15960
15961 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15962
15963         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
15964         (cpp_post_options): Move sanity checks to...
15965         (sanity_checks): New.
15966         * cpplex.c (maybe_read_ucs): Fix prototype.
15967         (parse_string, cpp_parse_escape): Cast for %c format specifier.
15968         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
15969         if necessary.
15970
15971 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
15972
15973         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
15974         builtins.  Use V2DI patterns instead of TI for logical operations.
15975         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
15976         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
15977         (ix86_expand_builtins): Change the pattern used for movntdq.
15978         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
15979         sse2_nandv2di3): New patterns.
15980         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
15981         on operands.
15982         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
15983         (cvtdq2pd): Correct mode on operand 1.
15984         (sse2_umulsidi3): Describe without unspec.
15985         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
15986         machine modes.
15987         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
15988         (ashlv2di3): Likewise, from sse2_ashlv2di3.
15989         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
15990         ashlv4si3, ashlv2di3): Use SImode for shift count.
15991         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
15992         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
15993         New patterns.
15994         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
15995         New typedefs.
15996         (__m128i, __m128d): New macros.
15997         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
15998         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
15999         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
16000         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
16001         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
16002         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
16003         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
16004         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
16005         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
16006         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
16007         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
16008         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
16009         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
16010         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
16011         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
16012         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
16013         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
16014         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
16015         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
16016         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
16017         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
16018         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
16019         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
16020         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
16021         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
16022         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
16023         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
16024         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
16025         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
16026         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
16027         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
16028         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
16029         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
16030         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
16031         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
16032         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
16033         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
16034         functions.
16035         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
16036         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
16037
16038 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
16039
16040         * dwarf2out.c: Fix formatting.
16041         * varasm.c: Likewise.
16042
16043 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
16044
16045         PR c/6543
16046         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
16047         clobber and use result as temporary value.
16048
16049 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
16050
16051         * expr.c (force_operand): Use expand_simple_* to handle more
16052         cases.
16053
16054 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
16055
16056         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
16057         and sign-extension.
16058         (lex_charconst): Update for change in prototype of
16059         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
16060         appropriately.
16061         * cpphash.h (BITS_PER_CPPCHAR_T): New.
16062         * cppinit.c (cpp_create_reader): Initialize them for no
16063         change in semantics.
16064         (cpp_post_options): Add sanity checks.
16065         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
16066         and truncation issues.  Calculate in type cppchar_t.
16067         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
16068         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
16069         run-time dependent precision correctly.  Return whether the
16070         result is signed or not.
16071         * cpplib.c (dequote_string): Use cppchar_t; update.
16072         * cpplib.h (cppchar_signed_t): New.
16073         struct cpp_options): New precision members.
16074         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
16075         * cppexp.c (eval_token): Update.
16076
16077 2002-05-03  David S. Miller  <davem@redhat.com>
16078
16079         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
16080         * config/sparc/sparc.c (sparc_rtx_costs): New function
16081         implementing RTX_COSTS and CONST_COSTS.
16082         * config/sparc/sparc.h (CONST_COSTS): Delete.
16083         (RTX_COSTS_CASES): Define.
16084         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
16085         the work.
16086
16087         * config/sparc/sparc.md (DFA schedulers): Split out...
16088         * config/sparc/cypress.md, config/sparc/hypersparc.md,
16089         config/sparc/sparclet.md, config/sparc/supersparc.md,
16090         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
16091
16092         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
16093         checks on it, always defined for SPARC.
16094
16095         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
16096         Tweak, and add more detailed comments.
16097
16098 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
16099
16100         * Re-apply patch accidentally reverted with
16101         DFA scheduler merge: remove all rules and variables to slurp
16102         source files out of libiberty and rebuild them with HOST_CC.
16103         ($(HOST_PREFIX_1)varray.o): New rule.
16104         (genattrtab rule): Word wrap.
16105
16106 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
16107
16108         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
16109         (CPP_SUBTARGET_SPEC): Define.
16110         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
16111         cpp_subtarget specs.
16112         (CPP_SPEC): Redefine to include %(cpp_subtarget).
16113
16114 2002-05-03  David S. Miller  <davem@redhat.com>
16115
16116         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
16117         * target.h (struct gcc_target): Delete cycle_display member.
16118
16119         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
16120         (rtx_needs_barrier): Delete reference to cycle_display unspec.
16121         (ia64_sched_reorder2): Mention need for cycle display handling
16122         once such notes exist.
16123
16124 2002-05-03  Richard Henderson  <rth@redhat.com>
16125
16126         * real.c (etoasc): Strip most trailing zeros for clarity.
16127         * sched-vis.c: Include real.h.
16128         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
16129         * Makefile.in (sched-vis.o): Add real.h.
16130
16131 2002-05-03  David S. Miller  <davem@redhat.com>
16132
16133         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
16134         no longer needed.
16135
16136 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
16137
16138         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
16139         when we get an out of range literal.
16140         (altivec_expand_ternop_builtin): Same.
16141         (altivec_expand_unop_builtin): Same.
16142         (altivec_expand_builtin): Same, for dss.
16143         (altivec_expand_builtin): Use trees instead of rtl when
16144         determining literal argument validity.
16145
16146 2002-05-03  David S. Miller  <davem@redhat.com>
16147
16148         Delete cycle display scheduling hook.
16149         * config/ia64/ia64.c (ia64_cycle_display,
16150         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
16151         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
16152         and use emit_insn_before instead of ia64_emit_insn_before.
16153         * config/ia64/ia64.md (unspec usage): Delete cycle display.
16154         (cycle_display): Delete insn pattern.
16155         * config/sparc/sparc.md (unspec usage): Delete cycle display.
16156         (cycle_display): Delete insn pattern.
16157         * config/sparc/sparc.c (sparc_cycle_display,
16158         TARGET_SCHED_CYCLE_DISPLAY): Delete.
16159         * doc/md.texi (cycle_display): Don't mention.
16160         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
16161
16162 2002-05-03  Richard Henderson  <rth@redhat.com>
16163
16164         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
16165         * recog.h: Declare them.
16166
16167         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
16168         * config/sparc/sparc.md: Use store_data_bypass_p instead.
16169         * config/sparc/sparc-protos.h: Update.
16170
16171 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
16172
16173         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
16174         -D__arch64__.  Add -D_LP64.
16175         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
16176         from sparc.h.
16177         (CPP_ARCH64_SPEC): Likewise.
16178         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
16179         (NO_BUILTIN_SIZE_TYPE): Undef.
16180
16181 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
16182
16183         * genautomata.c (min_issue_delay_pass_states): Change return type
16184         in the prototype.
16185         (min_issue_delay_pass_states): Change the algorithm.
16186         (min_issue_delay): Set up min_insn_issue_delay for the state.
16187         (output_min_issue_delay_table): Interchange the nested loops and
16188         and initiate min_insn_issue_delay for states.
16189
16190 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
16191
16192         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
16193         jump is simplejump.
16194
16195 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
16196
16197         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
16198         sequence.
16199
16200 2002-05-03  Richard Henderson  <rth@redhat.com>
16201
16202         PR opt/6534
16203         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
16204         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
16205         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
16206         code before JUMP, not EARLIEST.
16207
16208 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16209
16210         * c-format.c (check_format_info_main): Don't check for presence of
16211         parameter for * width until after operand number has been read,
16212         and only check for it if format parameters are available.
16213         Fixes PR c/6547.
16214
16215 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
16216
16217         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
16218         (LINK_SPEC): Undef before defining.
16219
16220 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16221
16222         PR preprocessor/6489
16223         * tradcpp.c (fixup_newlines): New.
16224         (main, finclude): Use it.
16225
16226 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
16227
16228         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
16229         * config/mips/mips.c (mips_unique_section): Strip encoding from
16230         decl name.
16231
16232 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16233
16234         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
16235         mode.
16236
16237 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16238
16239         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
16240         (Specific): Removed buildstats references.
16241         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
16242         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
16243         Accomodate Solaris versions beyond 8.
16244         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
16245         (Specific, *-*-solaris2.8): Removed, obsolete.
16246
16247 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16248
16249         PR target/6542
16250         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
16251         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
16252         fill leaf_reg_remap with identity.
16253         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
16254
16255 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
16256
16257         * config/h8300/crti.asm: Remove trailing spaces.
16258         * config/h8300/h8300.c: Likewise.
16259         * config/h8300/lib1funcs.asm: Likewise.
16260
16261 2002-05-02  Jason Merrill  <jason@redhat.com>
16262
16263         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
16264         * c-decl.c (c_init_decl_processing): Use it.
16265         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
16266         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
16267         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
16268
16269 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
16270
16271         * regrename.c: Fix formatting.
16272         * tree.c: Likewise.
16273
16274 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
16275
16276         * i386.md (attribute memory): Handle compares properly.
16277
16278 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
16279
16280         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
16281         to none.
16282
16283 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
16284
16285         * function.c: Fix formatting.
16286
16287 2002-05-02  Jan Hubicka  <jh@suse.cz>
16288
16289         * haifa-sched.c (schedule_insn): Print table of instructions and
16290         reservations.
16291         (sched_block): Do not print ready list at verbosity level 1.
16292         * sched-vis.c (print_insn): Make global.
16293         * sched-ebb.c (ebb_print_insn): Rename from...
16294         (print_insn): ... this one.
16295         * sched-int.h (print_insn): Declare
16296
16297 2002-05-02  Richard Henderson  <rth@redhat.com>
16298
16299         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
16300         emitted by cycle_display.
16301
16302 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
16303
16304         * doc/install.texi (*-*-freebsd*): Update to latest status.
16305
16306 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
16307
16308         PR target/6540
16309         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
16310         * config/float-sparc.h: Assume 128-bit long double if
16311         __LONG_DOUBLE_128__ is defined.
16312
16313 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
16314
16315         * genattrtab.c (write_function_unit_info): Add a dummy element
16316         when num_units == 0.
16317
16318 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16319
16320         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
16321         TYPE_MODE (double_type_node) instead of DFmode.
16322
16323 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
16324
16325         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
16326         jumps post reload.
16327         * toplev.c (rest_of_compilation): Revert Richard's patch.
16328
16329 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16330
16331         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
16332
16333 2002-05-02  Catherine Moore  <clm@redhat.com>
16334
16335         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
16336
16337 2002-05-02  Kazu Hirata  <kazu@hxi.com>
16338
16339         * combine.c: Fix comment typos.
16340         * expr.c: Likewise.
16341         * genautomata.c: Likewise.
16342         * stmt.c: Likewise.
16343         * tree.h: Likewise.
16344
16345 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16346
16347         * doc/install.texi: State GNAT version requirements.
16348
16349 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
16350
16351         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
16352         of the frame pointer or arg pointer register which strict register
16353         checking is not enabled.
16354
16355 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
16356
16357         * gcc.dg/altivec-8.c: New.
16358
16359         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
16360         PRE_INC and PRE_DEC for altivec modes.
16361
16362 2002-05-01  Bruce Korb  <bkorb@gnu.org>
16363
16364         * fixinc/check.tpl(set-writable): make sure the function exists first
16365         * fixinc/inclhack.def(alpha_assert): fix test_text
16366         * fixinc/tests/base/assert.h: add in missing result
16367
16368 2002-05-01  Jeff Law  <law@redhat.com>
16369
16370         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
16371         'T' constraint.
16372
16373 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
16374
16375         * dbxout.c (dbxout_type): Emit size information for range types,
16376         as well, but only when using GDB extensions.
16377
16378 2002-05-01  Richard Henderson  <rth@redhat.com>
16379
16380         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
16381         target-independent gnu binutils date test.
16382
16383 2002-05-01  Richard Henderson  <rth@redhat.com>
16384
16385         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
16386         info before expunging the block.
16387
16388 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
16389
16390         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
16391         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
16392         -M -or -MM is in effect.
16393
16394 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
16395
16396         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
16397         A29k configurations.
16398         * doc/install.texi: Update to match.
16399
16400 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16401
16402         PR bootstrap/6514
16403         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
16404         for duplicates. Always loop over whole list.
16405
16406 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16407
16408         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
16409
16410 2002-05-01      Joel Sherrill <joel@OARcorp.com>
16411
16412         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
16413         support routines.
16414
16415 2002-05-01      Joel Sherrill <joel@OARcorp.com>
16416
16417         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
16418
16419 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
16420
16421         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
16422         (nabs_nopower): Same.
16423         (floatdisf2): New pattern.
16424         (absdi2): Convert to define_insn_and_split.
16425         (nabsdi2): Same.
16426         (trunctfsf2): Same.
16427         (floatditf2): Same.
16428         (floatsitf2): Same.
16429         (fix_trunctfdi2): Same.
16430         (fix_trunctfsi2): Same.
16431
16432 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16433
16434         * doc/install.texi: Update Texinfo version requirement
16435         documentation.
16436
16437 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
16438
16439         PR target/6512, PR target/5628
16440         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
16441         when memory is not aligned.
16442         (movdf_insn_v9only_vis): Likewise.
16443         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
16444         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
16445         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
16446
16447 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
16448
16449         * gcc.dg/altivec-7.c: New.
16450
16451         * config/rs6000/altivec.h: Cleanup.
16452
16453 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
16454
16455         * doc/invoke.texi (Option Summary): Add -mvrsave=.
16456         (RS/6000 and PowerPC Options): Document -mvrsave=.
16457
16458         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
16459         (rs6000_altivec_vrsave_string): Same.
16460         (rs6000_override_options): Call rs6000_parse_vrsave_option.
16461         (rs6000_parse_vrsave_option): New.
16462         (rs6000_stack_info): Only generate vrsave instructions when
16463         TARGET_ALTIVEC_VRSAVE.
16464
16465         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
16466         (rs6000_altivec_vrsave_string): Define extern.
16467         (rs6000_altivec_vrsave): Same.
16468         (TARGET_ALTIVEC_VRSAVE): New.
16469
16470 2002-04-30  Richard Henderson  <rth@redhat.com>
16471
16472         PR opt/6516
16473         * toplev.c (rest_of_compilation): Don't run cross-jump before
16474         bb-reorder.
16475
16476 2002-04-30  Tom Rix  <trix@redhat.com>
16477
16478         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
16479         check which_alternative.
16480
16481 2002-04-30  Kazu Hirata  <kazu@hxi.com>
16482
16483         * cpplex.c: Fix comment formatting.
16484         * function.c: Likewise.
16485         * integrate.c: Likewise.
16486         * regrename.c: Likewise.
16487         * sibcall.c: Likewise.
16488         * simplify-rtx.c: Likewise.
16489         * tree-inline.c: Likewise.
16490
16491 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16492
16493         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
16494         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
16495         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
16496         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
16497         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
16498         * pa/x-ada: New file.  Define ADA_CFLAGS.
16499
16500 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
16501
16502         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
16503         from MMIX_LAST_REGISTER_FILE_REGNUM.
16504         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
16505         (struct machine_function): New member highest_saved_stack_register
16506         previously static variable in mmix.c.
16507         (MACHINE_DEPENDENT_REORG): Define.
16508         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
16509         (MMIX_OUTPUT_REGNO): New.
16510         (mmix_target_asm_function_prologue): Move calculation of last used
16511         saved-stack-register into...
16512         (mmix_machine_dependent_reorg): New function.  Update to also handle
16513         !TARGET_ABI_GNU.
16514         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
16515         register names, simplify somewhat by new variable regno.
16516         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
16517         register.
16518         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
16519         emitting register names.
16520         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
16521         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
16522         Remove fixed FIXME.
16523         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
16524         Declare.
16525
16526         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
16527
16528 2002-04-30  Richard Henderson  <rth@redhat.com>
16529
16530         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
16531         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
16532         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
16533         emit_tfmode_cvt): New.
16534         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
16535         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
16536         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
16537         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
16538         * config/sparc/sparc-protos.h: Update.
16539
16540 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
16541
16542         * install.texi (Final install): Add to the list of info to include
16543         in a report of a successful bootstrap, and add link to 3.1 list.
16544
16545 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
16546
16547         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
16548         (mode): Add vector modes
16549         (i387): Kill attribute.
16550         (unit): New attribute.
16551         (length_immediate): Grok new types.
16552         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
16553         (modrm): Use "unit".
16554         (memory): Handle MMX/SSE properly.
16555         (scheduling descriptions): Kill uses of fop1.
16556         (sse, mmx, fp patterns): Set type and mode properly.
16557
16558 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
16559
16560         * pa.c (override_options): Default to PA8000 scheduling.
16561         * doc/invoke.texi (HP-PA options): Mention newly added 7300
16562         scheduling parameter.
16563
16564         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
16565         handling of double precision multiplies.
16566
16567         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
16568         fpdiv and fpsqrt instructions.
16569         (7200 & 7300 scheduling): Fix typo in handling of
16570         store-load and store-store penalties.
16571
16572 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16573
16574         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
16575         mips.  Add two missing commas.
16576
16577 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
16578
16579         * doc/contrib.texi (Contributors): Update Paolo Carlini's
16580         and Benjamin Kosnik's entries.
16581
16582 2002-04-29  David S. Miller  <davem@redhat.com>
16583
16584         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
16585         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
16586         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
16587         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16588
16589 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16590
16591         * combine.c (find_split_point): Use gen_int_mode.
16592
16593 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
16594
16595         Merging code from dfa-branch:
16596
16597         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
16598
16599         * genautomata.c (output_reserv_sets): Fix typo.
16600
16601         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
16602
16603         * genautomata.c (output_reserv_sets): Remove
16604         next_cycle_output_flag.
16605
16606         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
16607
16608         * sched-rgn.c (init_ready_list): Make the DFA code handle
16609         USE/CLOBBER insns in the same way as the traditional
16610         scheduler.
16611         (new_ready): Similarly..
16612
16613         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
16614
16615         * haifa-sched.c (schedule_block): Change the DFA state only after
16616         issuing insn.
16617
16618         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
16619
16620         * pa.c (hppa_use_dfa_pipeline_interface): New function.
16621         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
16622         (override_options): Add PA7300 scheduling support.
16623         (pa_adjust_cost): Update various comments.  Properly
16624         handle anti and output dependencies when using the
16625         DFA scheduler.
16626         (pa_issue_rate): Add PA7300 scheduling support.
16627         (pa_can_combine_p): Call extract_insn before calling
16628         constrain_operands (taken from mainline tree).
16629         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
16630         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
16631         descriptions using DFA descriptions.  Add PA7300
16632         scheduling support.
16633
16634         2002-03-30  David S. Miller  <davem@redhat.com>
16635
16636         Add UltraSPARC-III DFA scheduling support.
16637         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
16638         Update FP conditional move on register insn patterns to use it, as
16639         appropriate.
16640         (define_attr cpu): Add ultrasparc3.
16641         (define_attr us3load_type): New, update integer load patterns to
16642         set it, as appropriate.
16643         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
16644         (rest): Add UltraSPARC3 scheduling description.
16645         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
16646         (PROCESSOR_ULTRASPARC3): New.
16647         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
16648         ({ASM,CPP}_CPU_SPEC): Likewise.
16649         (REGISTER_MOVE_COST): Likewise.
16650         (RTX_COSTS): Likewise.
16651         * config/sparc/sparc.c (sparc_override_options,
16652         sparc_initialize_trampoline, sparc64_initialize_trampoline,
16653         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16654         sparc_issue_rate): Likewise.
16655         * config/sparc/sol2.h: Likewise.
16656         * config/sparc/sol2-sld-64.h: Likewise.
16657         * config/sparc/linux64.h: Likewise.
16658
16659         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
16660
16661         * doc/md.texi: Add comments about usage the latency time for the
16662         different dependencies and about case when two or more conditions
16663         in different define_insn_reservations returns TRUE for an insn.
16664
16665         * doc/md.texi: Add reference for automaton based pipeline
16666         description.
16667
16668         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
16669
16670         * doc/passes.texi: Add missed information about genattrtab.
16671
16672         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
16673
16674         * genautomata.c (output_automata_list_transition_code): Check
16675         automata_list on NULL.
16676
16677         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
16678
16679         * genautomata.c (output_insn_code_cases,
16680         output_automata_list_min_issue_delay_code,
16681         output_automata_list_transition_code,
16682         output_automata_list_state_alts_code): Comment the functions.
16683
16684         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
16685
16686         * genautomata.c (automata_list_el_t): New typedef.
16687         (get_free_automata_list_el,free_automata_list_el,
16688         free_automata_list, automata_list_hash, automata_list_eq_p,
16689         initiate_automata_lists, automata_list_start, automata_list_add,
16690         automata_list_finish, finish_automata_lists,
16691         output_insn_code_cases, output_automata_list_min_issue_delay_code,
16692         output_automata_list_transition_code,
16693         output_automata_list_state_alts_code, add_automaton_state,
16694         form_important_insn_automata_lists): New functions and prototypes.
16695         (insn_reserv_decl): Add members important_automata_list and
16696         processed_p.
16697         (ainsn): Add members important_p.
16698         (automata_list_el): New structure.
16699         (first_free_automata_list_el, current_automata_list,
16700         automata_list_table): New global variables.
16701         (create_ainsns): Initiate member important_p.
16702         (output_internal_min_issue_delay_func): Generate the switch and
16703         call output_insn_code_cases.
16704         (output_internal_trans_func, output_internal_state_alts_func):
16705         Ditto.
16706         (generate): Call initiate_automata_lists.
16707         (automaton_states): New global variable.
16708         (expand_automata): Call form_important_insn_automata_lists.
16709         (write_automata): Call finish_automata_lists.
16710
16711         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
16712
16713         * genautomata.c (add_excls, add_presence_absence): Check that
16714         cpu units in the sets belong the same automaton.
16715
16716         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
16717         about that cpu units in the sets belong the same automaton.
16718
16719         * doc/md.texi: Ditto.
16720
16721         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
16722                     Nitin Gupta  <niting@noida.hcltech.com>
16723
16724         * config/sh/sh.c (sh_use_dfa_interface): New function.
16725
16726         (sh_issue_rate): New Function.
16727         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
16728         TARGET_SCHED_ISSUE_RATE: define.
16729
16730         * config/sh/sh.md: Add DFA based pipeline description for SH4.
16731
16732         (define_attr insn_class): New attribute used for DFA
16733          scheduling.
16734         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
16735         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
16736          cmpeqdi_t): Likewise.
16737
16738         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
16739          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
16740          ex_group.
16741         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
16742
16743         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
16744
16745         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
16746         break.
16747
16748         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
16749
16750         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
16751         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
16752         necessary.
16753         (output_dfa_start_func): Initiate new variable insn_codes_length,
16754         (write_automata): Output definition of the new variable.
16755
16756         2001-10-02  David S. Miller  <davem@redhat.com>
16757
16758         * haifa-sched.c (advance_one_cycle): New function.
16759         (schedule_block): Use it.
16760         (queue_to_ready): Use it, and also make sure to advance the DFA
16761         state on all stall cycles, not just those where insn_queue links
16762         are found.
16763
16764         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
16765
16766         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
16767         non-zero if the highest-priority instruction could be scheduled.
16768         (choose_ready): Remove last argument from max_issue call.
16769
16770         2001-09-28  David S. Miller  <davem@redhat.com>
16771
16772         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
16773         ultrasparc and 3 for other multi-issue sparcs.
16774
16775         2001-09-27  David S. Miller  <davem@redhat.com>
16776
16777         * config/sparc/sparc.md (cycle_display): New pattern.
16778         * config/sparc/sparc.c (sparc_cycle_display): New.
16779         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
16780
16781         2001-09-25  David S. Miller  <davem@redhat.com>
16782
16783         Convert all of SPARC scheduling to DFA
16784         * config/sparc/sparc.md: Kill all define_function_unit
16785         directives and replace with DFA equivalent.
16786         * config/sparc/sparc.c (ultrasparc_adjust_cost,
16787         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
16788         ultra_fpmode_conflict_exists, ultra_find_type,
16789         ultra_build_types_avail, ultra_flush_pipeline,
16790         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
16791         ultrasparc_variable_issue, ultrasparc_sched_init,
16792         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
16793         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
16794         ultra_cur_hist, ultra_cycles_elapsed): Kill.
16795         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16796         ultrasparc_store_bypass_p): New.
16797         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
16798         Declare.
16799
16800         2001-09-24  David S. Miller  <davem@redhat.com>
16801
16802         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
16803         ready->vec[foo] not ready[foo].
16804
16805         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
16806
16807         * doc/md.texi: Correct examples for define_insn_reservations
16808         `mult' and `div'.
16809
16810         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
16811
16812         * genautomata.c (create_automata): Print message about creation of
16813         each automaton.
16814         (generate): Remove printing meease about creation of
16815         automata.
16816
16817         2001-09-05  David S. Miller  <davem@redhat.com>
16818
16819         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
16820         * config/sparc/linux64.h: Likewise.
16821
16822         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
16823
16824         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
16825         schedule_block, sched_init, sched_finish): Add missed calls of
16826         use_dfa_pipeline_interface.
16827
16828         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
16829         Ditto.
16830
16831         * sched-vis.c (get_visual_tbl_length): Ditto.
16832
16833         2001-08-27  Richard Henderson  <rth@redhat.com>
16834
16835         * genattr.c (main): Emit state_t even when not doing scheduling.
16836
16837         2001-08-27  Richard Henderson  <rth@redhat.com>
16838
16839         * genautomata.c (expand_automata): Always create a description.
16840
16841         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
16842
16843         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
16844         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
16845         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
16846         RTL constructions.
16847
16848         * genattr.c (main): New variable num_insn_reservations.  Increase
16849         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
16850         pipeline hazard recognizer interface.
16851
16852         * genattrtab.h: New file.
16853
16854         * genattrtab.c: Include genattrtab.h.
16855         (attr_printf, check_attr_test, make_internal_attr,
16856         make_numeric_value): Move protypes into genattrtab.h.  Define them
16857         as external.
16858         (num_dfa_decls): New global variable.
16859         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
16860         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
16861         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
16862         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
16863
16864         * genautomata.c: New file.
16865
16866         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
16867
16868         * sched-int.h: (curr_state): Add the external definition for
16869         automaton pipeline interface.
16870         (haifa_insn_data): Add comments for members blockage and units.
16871
16872         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16873         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16874         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16875         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16876         TARGET_SCHED_DFA_POST_CYCLE_INSN,
16877         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16878         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
16879         macros.
16880         (TARGET_SCHED): Use the new macros.
16881
16882         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
16883         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
16884         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
16885         dfa_bubble): New members in gcc_target.sched.
16886
16887         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
16888         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
16889         (insn_queue): Redefine it as pointer to array.
16890         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
16891         INSN_QUEUE_SIZE.
16892         (max_insn_queue_index_macro_value): New variable.
16893         (curr_state, dfa_state_size, ready_try): New varaibles for
16894         automaton interface.
16895         (ready_element, ready_remove, max_issue): New function prototypes
16896         for automaton interface.
16897         (choose_ready): New function prototype.
16898         (insn_unit, blockage_range): Add comments.
16899         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
16900         FUNCTION_UNITS_SIZE == 0.
16901         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
16902         actual_hazard, potential_hazard): Add comments.
16903         (insn_cost): Use cost -1 as undefined value.  Remove
16904         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
16905         pipeline interface.
16906         (ready_element, ready_remove): New functions for automaton
16907         interface.
16908         (schedule_insn): Add new code for automaton pipeline interface.
16909         (queue_to_ready): Add new code for automaton pipeline interface.
16910         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
16911         (debug_ready_list): Print newline when the queue is empty.
16912         (max_issue): New function for automaton pipeline interface.
16913         (choose_ready): New function.
16914         (schedule_block): Add new code for automaton pipeline interface.
16915         Print ready list before scheduling each insn.
16916         (sched_init): Add new code for automaton pipeline interface.
16917         Initiate insn cost by -1.
16918         (sched_finish): Free the current automaton state and finalize
16919         automaton pipeline interface.
16920
16921         * sched-rgn.c: Include target.h.
16922         (init_ready_list, new_ready, debug_dependencies): Add new code for
16923         automaton pipeline interface.
16924
16925         * sched-vis.c: Include target.h.
16926         (get_visual_tbl_length): Add code for automaton interface.
16927         (target_units, print_block_visualization):  Add comments.
16928
16929         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
16930         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
16931         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
16932         (getruntime.o, genautomata.o): New entries.
16933         (genattrtab.o): Add new dependency file genattrtab.h.
16934         (genattrtab): Add new dependencies.  Link it with `libm.a'.
16935         (getruntime.o, hashtab.o): New entries for canadian cross.
16936
16937         * doc/md.texi: Description of automaton based model.
16938
16939         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
16940         Add comments.
16941         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16942         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16943         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16944         TARGET_SCHED_DFA_POST_CYCLE_INSN,
16945         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16946         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16947         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
16948         hook descriptions.
16949         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
16950         MAX_DFA_ISSUE_RATE): New macro descriptions.
16951
16952         * doc/contrib.texi: Add dfa based scheduler contribution.
16953
16954         * doc/gcc.texi: Add more information about genattrtab.
16955
16956 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16957
16958         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
16959         adjust_address_nv call.
16960
16961 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
16962
16963         * doc/install.texi (Testing): Provide additional information, and
16964         a stronger encouragement, for running the testsuites.
16965
16966 2002-04-29  DJ Delorie  <dj@redhat.com>
16967
16968         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16969         given in upper case.
16970
16971 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16972
16973         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
16974         Solaris 2 <widec.h> if missing.
16975         * fixinc/fixincl.x: Regenerate.
16976         * fixinc/tests/base/widec.h: New file.
16977
16978 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
16979
16980         * toplev.c (f_options): Add "profile" switch so that
16981         -fno-profile can be used to disable -p.
16982
16983 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
16984
16985         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
16986         UV2DImode.
16987         * tree.c (build_common_tree_nodes_2): Likewise.
16988         * tree.h (enum tree_index): Likewise.
16989         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
16990
16991         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
16992         entries.
16993         (init_mmx_sse_builtins): Initialize SSE2 builtins.
16994         (ix86_expand_builtin): Add support for SSE2 builtins.
16995         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
16996         (VALID_SSE_REG_MODE): Use it.
16997         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
16998         (enum ix86_builtins): Add SSE2 builtins.
16999         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
17000         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
17001         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
17002         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
17003         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
17004         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
17005         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
17006         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
17007         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
17008         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
17009         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
17010         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
17011         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
17012         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
17013         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
17014         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
17015         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
17016         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
17017         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
17018         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
17019         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
17020         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
17021         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
17022         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
17023         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
17024         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
17025         lfence_insn): New patterns.
17026         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
17027         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
17028
17029 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
17030
17031         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
17032
17033 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17034
17035         * doc/contrib.texi (Contributors): Add Paolo Carlini and
17036         Janis Johnson.
17037         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
17038         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
17039         and CPU instead of cpu.
17040
17041 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
17042
17043         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
17044         variables.
17045         (lang_independent_options): Add -fif-conversion, -fif-conversion2
17046         (rest_of_compilation): Do if conversion only when asked for.
17047         (parse_options_and_default_flags): Set new variables to 1 for -O1
17048         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
17049
17050 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
17051
17052         * i386.c (dbx64_register_map): Fix typo.
17053
17054 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
17055
17056         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
17057         real_one_half, real_bb_freq_max): New static variables.
17058         (debug_profile_bbauxs): Kill.
17059         (process_note_predictions): Kill unused variable.
17060         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
17061         volatile double.
17062         (propagate_freq): Use REAL_ARITHMETICS.
17063         (estimate_bb_frequencies): Likevise; init new static variables.
17064         * Makefile.in (predict.o): Add dependency on real.h
17065
17066 2002-04-28  David S. Miller  <davem@redhat.com>
17067
17068         PR target/6500
17069         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
17070         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
17071         several {reads,writes} instead.
17072         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
17073         Define.
17074
17075 2002-04-27  David S. Miller  <davem@redhat.com>
17076
17077         PR target/6494
17078         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
17079         of the stack bias.
17080
17081         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
17082         including signal.h and sys/ucontext.h, not needed.
17083
17084 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
17085
17086         * varasm.c (output_constant_def): Correct test for not calling
17087         ENCODE_SECTION_INFO for INTEGER_CST.
17088
17089 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17090
17091         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
17092         keep most cases as function eval_token.
17093         (eval_token): New function.
17094         (_cpp_parse_expr): Read token here for improved diagnostics.
17095         Don't use op_as_text.  Detect bad ':' here.
17096         (reduce): Don't detect bad ':' here.
17097         (op_as_text): Remove.
17098         * cpphash.h (_cpp_test_assertion): Change prototype.
17099         * cpplib.c (_cpp_test_assertion): Change prototype.
17100
17101 2002-04-28  Richard Henderson  <rth@redhat.com>
17102
17103         PR c/5154
17104         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
17105         (ggc_mark_rtx_children): New.
17106
17107 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
17108
17109         PR target/6496
17110         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
17111         after call peepholes for UltraSPARC.
17112         (call + jump 64-bit peepholes): Remove.
17113
17114 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17115
17116         PR c/6497
17117         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
17118         result as temporary value.
17119
17120 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
17121
17122         PR c++/6396
17123         * toplev.c (rest_of_compilation): Only run regrename and copy
17124         propagation if optimizing.
17125
17126 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
17127
17128         PR optimization/6475
17129         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
17130         register of REGNO_DECL (i).
17131         * Makefile.in (reload1.o): Add $(TREE_H).
17132
17133 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
17134
17135         * cppexp.c (lex): Update to use state.skip_eval.
17136         (struct op): Remove prio and flags members.
17137         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
17138         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
17139         (LEFT_ASSOC): New macro.
17140         (optab): New table of operator priorities and flags.
17141         (SHIFT): Update.
17142         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
17143         malloc-ed parser stack.
17144         (reduce): New; reduce the operator stack.
17145         (_cpp_expand_op_stack): Expand the operator stack as necessary.
17146         * cpphash.h (struct op): Predeclare.
17147         (struct cpp_reader): New members op_stack, op_limit.
17148         (struct lexer_state): New member skip_eval.
17149         (_cpp_parse_expr): Update.
17150         (_cpp_expand_op_stack): New.
17151         * cpplib.c (do_if): Update.
17152         * cppinit.c (cpp_create_reader): Create op stack.
17153         (cpp_destroy): And destroy it.
17154         * cpplib.h (CPP_LAST_CPP_OP): Correct.
17155         (TTYPE_TABLE): Correct.
17156
17157 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17158
17159         PR c/6343
17160         * c-decl.c (duplicate_decls): Call merge_weak.
17161         * c-pragma.c (apply_pragma_weak): Warn about misuse.
17162         * output.h (merge_weak): Prototype merge_weak.
17163         * varasm.c (merge_weak): New function.
17164         (declare_weak): Make sure we don't give an error on VAR_DECLs.
17165         Mark RTL with SYMBOL_REF_WEAK.
17166
17167 2002-04-27  Kurt Garloff <garloff@suse.de>
17168
17169         * tree-inline.c (inlinable_function_p): Improve heuristics
17170         by using a smoother function to cut down allowable inlinable size.
17171         * param.def: Add parameters max-inline-insns-single,
17172         max-inline-slope, min-inline-insns that determine the exact
17173         shape of the above function.
17174         * param.h: Likewise.
17175
17176 2002-04-26  Richard Henderson  <rth@redhat.com>
17177
17178         * c-parse.in (malloced_yyss, malloced_yyvs): New.
17179         (yyoverflow): Re-add.  Set them.
17180         (free_parser_stacks): New.
17181         * c-common.h: Declare it.
17182         * c-lex.c (c_common_parse_file): Call it.
17183
17184 2002-04-26  Richard Henderson  <rth@redhat.com>
17185
17186         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
17187         for fallthru search.
17188
17189 2002-04-26  Eric Christopher  <echristo@redhat.com>
17190
17191         PR optimization/3700
17192         * config/mips/mips.c (mips_issue_rate): Define.  New function.
17193         (TARGET_SCHED_ISSUE_RATE): Use.
17194
17195 2002-04-25  David S. Miller  <davem@redhat.com>
17196
17197         PR target/6422
17198         * reorg.c (optimize_skip): Do not allow exception causing
17199         instructions to be considered for delay slots.
17200         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
17201         (relax_delay_slots): Do not try to consider exception causing
17202         instructions as redundant.
17203
17204 2002-04-26  Richard Henderson  <rth@redhat.com>
17205
17206         PR c/5225
17207         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
17208
17209 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
17210
17211         PR bootstrap/6445
17212         * config/i386/i386.md (untyped_call): Return the value in a float
17213         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
17214         TARGET_80387.
17215
17216 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
17217
17218         * tree.c (tree_int_cst_lt): Compare constants whose types differ
17219         in unsigned-ness correctly.
17220
17221 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17222
17223         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
17224         portable runtime model.
17225
17226 2002-04-26  Richard Henderson  <rth@redhat.com>
17227
17228         * c-parse.in (yyoverflow): Revert.
17229
17230 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
17231             Richard Henderson  <rth@redhat.com>
17232
17233         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
17234         result as temporary value.
17235
17236 2002-04-26  Richard Henderson  <rth@redhat.com>
17237
17238         PR c/3581
17239         * c-common.c (fix_string_type): Split out of ...
17240         (combine_strings): ... here.  Take a varray, not a tree list.
17241         (c_expand_builtin_printf): Use fix_string_type.
17242         * c-common.h: Update decls.
17243         * c-parse.in (string): Remove.  Update all uses to use STRING
17244         instead, and not call combine_strings.
17245         (yylexstring): New.
17246         (_yylex): Use it.
17247         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
17248         (build_asm_stmt): Likewise.
17249         * objc/objc-act.c (my_build_string): Use fix_string_type.
17250         (build_objc_string_object): Build varray for combine_strings.
17251
17252 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
17253
17254         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
17255         x86-64.
17256
17257 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
17258
17259         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
17260         (HAVE_NO_R_OPERAND): Remove.
17261         (HAVE_VALUE): Remove.
17262         (op_to_prio): Update.
17263         (UNARY): Don't alter flags.
17264         (_cpp_parse_expr): want_value used to indicate whether
17265         a number or unary operator is expected next.  Distinguish
17266         unary and binary +/-.
17267         (op_as_text): Update for unary operators.
17268
17269 2002-04-25  Richard Henderson  <rth@redhat.com>
17270
17271         PR c/2161
17272         * c-parse.in (yyoverflow): New.
17273
17274 2002-04-25  Richard Henderson  <rth@redhat.com>
17275
17276         PR c/2098
17277         * c-common.c (shorten_compare): Simplfy conditions leading to
17278         the generation of a warning.
17279
17280 2002-04-25  Richard Henderson  <rth@redhat.com>
17281
17282         PR c/2035
17283         * expmed.c (extract_bit_field): Fall through to generic code rather
17284         than aborting on subreg special case.
17285
17286 2002-04-25  David S. Miller  <davem@redhat.com>
17287
17288         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
17289         for DECL being NULL.
17290
17291 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
17292
17293         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
17294
17295 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
17296
17297         * c-decl.c (grokdeclarator): Remove outdated ??? note
17298         on invalid declaration of flexible array members.
17299
17300 2002-04-25  Richard Henderson  <rth@redhat.com>
17301
17302         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
17303
17304 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
17305
17306         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
17307         needed by the compiler, even if they are used as global regs.
17308
17309 2002-04-25  Matt Hiller  <hiller@redhat.com>
17310
17311         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
17312         functions.
17313         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
17314         of the corresponding functions.
17315         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
17316         New prototypes.
17317
17318 2002-04-25  Matt Hiller  <hiller@redhat.com>
17319
17320         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
17321
17322         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
17323         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
17324         registers, adjust comment accordingly.
17325         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17326         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
17327         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
17328         for coprocessor registers.
17329         (ADDITIONAL_REGISTER_NAMES): Include
17330         ALL_COP_ADDITIONAL_REGISTER_NAMES.
17331
17332         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
17333         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
17334         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
17335         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
17336         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
17337
17338         (mips_char_to_class): Adjust comment to include coprocessor
17339         constraint letters.
17340
17341         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
17342         New functions.
17343         (mips_reg_names, mips_regno_to_class): Include coprocessor
17344         information.
17345         (mips_sw_reg_names): Ditto, make non-static.
17346         (mips_move_1word): Handle moves to and from coprocessor registers.
17347         (mips_move_2words): Handle moves to and from coprocessor
17348         registers.
17349         (mips_class_max_nregs, mips_register_move_cost): Handle
17350         coprocessor register classes.
17351         (override_options): Initialize mips_char_to_class and
17352         mips_hard_regno_mode_ok properly for coprocessor registers.
17353
17354         * config/mips/mips.md (movdi_internal, movdi_internal2,
17355         movsi_internal1, movsi_internal2): Add constraint-sets for
17356         coprocessor registers.
17357         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
17358         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
17359         isn't mips.
17360         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
17361         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
17362         isn't mips.
17363         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
17364         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
17365         isn't mips.
17366         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
17367         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
17368         isn't mips.
17369
17370         * doc/tm.texi: Document feature.
17371
17372 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
17373
17374         * integrate.c (function_attribute_inlinable_p): Simplify.
17375         Check the table pointer is not NULL.
17376
17377 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
17378
17379         * doc/c-tree.texi: Fix typo in introduction.
17380
17381 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
17382
17383         * c-common.h (c_common_parse_file): Update.
17384         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17385         * c-lex.c (YYDEBUG): Get from c-lex.h.
17386         (c_common_parse_file): Update.
17387         * c-lex.h (YYDEBUG, yydebug): New.
17388         * c-parse.in (YYDEBUG): Get from c-lex.h.
17389         (c_set_yydebug): Remove.
17390         * c-tree.h (c_set_yydebug): Remove.
17391         * langhooks-def.h (lhd_do_nothing_i): New.
17392         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
17393         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
17394         * langhooks.c  (lhd_do_nothing_i): New.
17395         (lhd_set_yydebug): Remove.
17396         * langhooks.h (struct lang_hooks): Update.
17397         * toplev.c (set_yydebug): New.
17398         (compile_file): Update call to parse_file hook.
17399         (decode_d_option): Update.
17400 objc:
17401         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17402
17403 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
17404
17405         * loop.c (load_mems): Don't change the interface of called functions.
17406
17407         * calls.c (expand_call): Take current_function_pretend_args_size
17408         into account when setting argblock for sibcalls.
17409
17410 2002-04-24  Matt Hiller  <hiller@redhat.com>
17411
17412         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
17413         * c-lex.c: Ditto.
17414
17415         * cpplex.c (skip_line_comment): Process comment one multibyte
17416         character at a time rather than one char at a time, if
17417         appropriate.
17418         (parse_string): Process string one multibyte character at a time
17419         rather than one char at a time, if appropriate.
17420         * c-lex.c (lex_string): Lex and copy multibyte strings
17421         appropriately.
17422         * cpplib.h (cppchar_t): Change to unsigned.
17423
17424 2002-04-24  Richard Henderson  <rth@redhat.com>
17425
17426         PR c/3467
17427         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
17428         for c99.
17429
17430 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
17431
17432         * sh.c (sh_va_arg): If argument was passed by reference,
17433         dereference the pointer.
17434
17435         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17436
17437         * sh.md (divsi3_i4_media): Use match_operand for input values
17438         rather than hard registers.
17439         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
17440         unnecessarily through hard registers.  Keep copies of pseudo
17441         registers outside of the libcall sequence.
17442
17443         * sh.md (casesi_shift_media): Add modes.
17444
17445         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
17446         values in memory.
17447
17448 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17449
17450         * attribs.c (c_common_attribute_table): Move table and handlers
17451         to c-common.c.
17452         (format_attribute_table, lang_attribute_table,
17453         lang_attribute_common): Remove.
17454         (init_attributes): Replace NULL pointers with pointers to the
17455         empty table.
17456         (handle_packed_attribute, handle_nocommon_attribute,
17457         handle_common_attribute, handle_noreturn_attribute,
17458         handle_noinline_attribute, handle_always_inline_attribute,
17459         handle_used_attribute, handle_unused_attribute,
17460         handle_const_attribute, handle_transparent_union_attribute,
17461         handle_constructor_attribute, handle_destructor_attribute,
17462         handle_mode_attribute, handle_section_attribute,
17463         handle_aligned_attribute, handle_weak_attribute,
17464         handle_alias_attribute, handle_visibility_attribute,
17465         handle_no_instrument_function_attribute, handle_malloc_attribute,
17466         handle_no_limit_stack_attribute, handle_pure_attribute,
17467         handle_deprecated_attribute, handle_vector_size_attribute,
17468         vector_size_helper): Move to c-common.c.
17469         * c-common.c (c_common_attribute_table,
17470         handle_packed_attribute, handle_nocommon_attribute,
17471         handle_common_attribute, handle_noreturn_attribute,
17472         handle_noinline_attribute, handle_always_inline_attribute,
17473         handle_used_attribute, handle_unused_attribute,
17474         handle_const_attribute, handle_transparent_union_attribute,
17475         handle_constructor_attribute, handle_destructor_attribute,
17476         handle_mode_attribute, handle_section_attribute,
17477         handle_aligned_attribute, handle_weak_attribute,
17478         handle_alias_attribute, handle_visibility_attribute,
17479         handle_no_instrument_function_attribute, handle_malloc_attribute,
17480         handle_no_limit_stack_attribute, handle_pure_attribute,
17481         handle_deprecated_attribute, handle_vector_size_attribute,
17482         vector_size_helper): Move from attribs.c.
17483         * c-common.h (c_common_attribute_table,
17484         c_common_format_attribute_table): New.
17485         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17486         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17487         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17488         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
17489         (LANG_HOOKS_INITIALIZER): Update.
17490         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
17491         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
17492         * target.h: Update comment.
17493         * tree.c (default_target_attribute_table): Remove.
17494         * tree.h (default_target_attribute_table, format_attribute_table,
17495         lang_attribute_table, lang_attribute_common): Remove.
17496 objc:
17497         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17498         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17499
17500 2002-04-24  Jason Merrill  <jason@redhat.com>
17501
17502         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
17503         * dwarf2out.c (dwarf_attr_name): Support it.
17504         (gen_array_type_die): Emit it.
17505         (lookup_type_die): No special handling for VECTOR_TYPE.
17506         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
17507
17508 2002-04-24  Richard Henderson  <rth@redhat.com>
17509
17510         * config/mips/mips.md (movdi_usd): Renumber.
17511
17512 2002-04-24  David S. Miller  <davem@redhat.com>
17513
17514         PR target/6420
17515         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
17516         32-bit SPARC and current_function_returns_struct is true.
17517
17518 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
17519
17520         * loop.c (canonicalize_condition): Use gen_int_mode.
17521
17522 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
17523
17524         * config/rs6000/altivec.h: Cleanup file.  Add non individual
17525         variants.
17526         (vec_vaddubm): New.
17527         (vec_vadduhm): New.
17528         (vec_vadduwm): New.
17529         (vec_vaddfp): New.
17530         (vec_vaddcuw): New.
17531         (vec_vaddubs): New.
17532         (vec_vaddsbs): New.
17533         (vec_vadduhs): New.
17534         (vec_vadduws): New.
17535         (vec_vaddsws): New.
17536         (vec_vand): New.
17537         (vec_vandc): New.
17538         (vec_vavgub): New.
17539         (vec_vavgsb): New.
17540         (vec_vavguh): New.
17541         (vec_vavgsh): New.
17542         (vec_vavguw): New.
17543         (vec_vavgsw): New.
17544         (vec_vrfip): New.
17545         (vec_vcmpbfp): New.
17546         (vec_vcmpequb): New.
17547         (vec_vcmpequh): New.
17548         (vec_vcmpequw): New.
17549         (vec_vcmpeqfp): New.
17550         (vec_vcmpgefp): New.
17551         (vec_vcmpgtub): New.
17552         (vec_vcmpgtsb): New.
17553         (vec_vcmpgtuh): New.
17554         (vec_vcmpgtsh): New.
17555         (vec_vcmpgtuw): New.
17556         (vec_vcmpgtsw): New.
17557         (vec_vcmpgtfp): New.
17558         (vec_vcmpgefp): New.
17559         (vec_vcfux): New.
17560         (vec_vcfsx): New.
17561         (vec_vctsxs): New.
17562         (vec_vctuxs): New.
17563         (vec_vexptefp): New.
17564         (vec_vrfim): New.
17565         (vec_lvx): New.
17566         (vec_lvebx): New.
17567         (vec_lvehx): New.
17568         (vec_lde): Add vector float variant.
17569         (vec_lvewx): New.
17570         (vec_lvxl): New.
17571         (vec_vlogefp): New.
17572         (vec_vmaddfp): New.
17573         (vec_vmhaddshs): New.
17574         (vec_vmaxub): New.
17575         (vec_vmaxsb): New.
17576         (vec_vmaxuh): New.
17577         (vec_vmaxsh): New.
17578         (vec_vmaxuw): New.
17579         (vec_vmaxsw): New.
17580         (vec_vmaxsw): New.
17581         (vec_vmaxfp): New.
17582         (vec_vmrghb): New.
17583         (vec_vmrghh): New.
17584         (vec_vmrghw): New.
17585         (vec_vmrglb): New.
17586         (vec_vmrglh): New.
17587         (vec_vmrglw): New.
17588         (vec_vminub): New.
17589         (vec_vminsb): New.
17590         (vec_vminuh): New.
17591         (vec_vminsh): New.
17592         (vec_vminuw): New.
17593         (vec_vminsw): New.
17594         (vec_vminfp): New.
17595         (vec_vmladduhm): New.
17596         (vec_vmhraddshs): New.
17597         (vec_msumubm): New.
17598         (vec_vmsummbm): New.
17599         (vec_vmsumuhm): New.
17600         (vec_vmsumshm): New.
17601         (vec_vmsumuhs): New.
17602         (vec_vmsumshs): New.
17603         (vec_vmuleub): New.
17604         (vec_vmulesb): New.
17605         (vec_vmuleuh): New.
17606         (vec_vmulesh): New.
17607         (vec_vmuloub): New.
17608         (vec_mulosb): New.
17609         (vec_vmulouh): New.
17610         (vec_vmulosh): New.
17611         (vec_vnmsubfp): New.
17612         (vec_vnor): New.
17613         (vec_vor): New.
17614         (vec_vpkuhum): New.
17615         (vec_vpkuwum): New.
17616         (vec_vpkpx): New.
17617         (vec_vpkuhus): New.
17618         (vec_vpkshss): New.
17619         (vec_vpkuwus): New.
17620         (vec_vpkswss): New.
17621         (vec_vpkshus): New.
17622         (vec_vpkswus): New.
17623         (vec_vperm): New.
17624         (vec_vrefp): New.
17625         (vec_vrlb): New.
17626         (vec_vrlh): New.
17627         (vec_vrlw): New.
17628         (vec_vrfin): New.
17629         (vec_vrsqrtefp): New.
17630         (vec_vsel): New.
17631         (vec_vslb): New.
17632         (vec_vslh): New.
17633         (vec_vslw): New.
17634         (vec_vsldoi): New.
17635         (vec_vsl): New.
17636         (vec_vslo): New.
17637         (vec_vspltb): New.
17638         (vec_vsplth): New.
17639         (vec_vspltw): New.
17640         (vec_vspltisb): New.
17641         (vec_vspltish): New.
17642         (vec_vspltisw): New.
17643         (vec_vsrb): New.
17644         (vec_vsrh): New.
17645         (vec_vsrw): New.
17646         (vec_vsrab): New.
17647         (vec_vsrah): New.
17648         (vec_vsraw): New.
17649         (vec_vsr): New.
17650         (vec_vsro): New.
17651         (vec_stvx): New.
17652         (vec_stvebx): New.
17653         (vec_stvehx): New.
17654         (vec_stvewx): New.
17655         (vec_stvxl): New.
17656         (vec_vsububm): New.
17657         (vec_vsubuhm): New.
17658         (vec_vsubuwm): New.
17659         (vec_vsubfp): New.
17660         (vec_vsubcuw): New.
17661         (vec_vsububs): New.
17662         (vec_vsubsbs): New.
17663         (vec_vsubuhs): New.
17664         (vec_vsubshs): New.
17665         (vec_vsubuws): New.
17666         (vec_vsubsws): New.
17667         (vec_vsum4ubs): New.
17668         (vec_vsum4sbs): New.
17669         (vec_vsum4shs): New.
17670         (vec_vsum2sws): New.
17671         (vec_vsumsws): New.
17672         (vec_vrfiz): New.
17673         (vec_vupkhsb): New.
17674         (vec_vupkhpx): New.
17675         (vec_vupkhsh): New.
17676         (vec_vupklsb): New.
17677         (vec_vupklpx): New.
17678         (vec_vupklsh): New.
17679         (vec_vxor): New.
17680
17681 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
17682
17683         PR c/5430
17684         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
17685         added literals from substracted literals.
17686         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
17687         (fold) [associate]: Preserve MINUS_EXPR if needed.
17688
17689 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
17690
17691         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
17692         are obsoleted.
17693
17694 2002-04-23  Tom Tromey  <tromey@redhat.com>
17695
17696         * gcc.c: Added --resource.  For PR java/6314.
17697
17698 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
17699
17700         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
17701         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
17702         these libraries.
17703
17704 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
17705
17706         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
17707
17708 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
17709
17710         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
17711         workaround.
17712         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
17713         (ix86_expand_clrstr): Fix typo.
17714         * loop.c (gen_load_of_final_value): New.
17715         (loop_givs_rescan, strength_reduce, check_dbra_loop):
17716         Use it.
17717
17718 2002-04-23  Roger Sayle  <roger@eyesopen.com>
17719
17720         * builtins.c (builtin_memset_gen_str): New function.
17721         (expand_builtin_memset): Optimize the case of constant length, but
17722         unknown value.
17723
17724 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
17725
17726         * config/rs6000/altivec.h (vec_step): Remove extraneous
17727         parentheses.
17728         (vec_ctu): Cast return.
17729
17730 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
17731
17732         PR target/6413
17733         * function.h: (struct function): Add profile_label_no field.
17734         (current_function_profile_label_no): Define.
17735         * function.c: (profile_label_no): New static var.
17736         (expand_function_start): Increment it, and copy to
17737         current_function_profile_label_no.
17738         * output.h (profile_label_no): Delete.
17739         * final.c (profile_label_no): Delete.
17740         (profile_function): Use current_function_profile_label_no.
17741         (final_end_function): Don't increment profile_label_no here.
17742         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
17743         profile_label_no with current_function_profile_label_no.
17744         * config/pa/pa.c (current_function_number): Delete.
17745         (pa_output_function_prologue): Don't output profile label here.
17746         (hppa_profile_hook): Use label_no param rather than
17747         current_function_number.
17748         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
17749         * config/pa/pa.h: .. here.
17750         (FUNCTION_PROFILER): Output profile label here.
17751
17752 2002-04-22  Eric Christopher  <echristo@redhat.com>
17753
17754         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
17755         patch of 2002-04-09 due to binutils issues.
17756         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
17757
17758 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
17759
17760         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
17761         constraint to 'o' for m=r and r=m alternatives.
17762         ("*movv8hi_internal1"): Same.
17763         ("*movv16qi_internal1"): Same.
17764         ("*movv4sf_internal1"): Same.
17765
17766 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
17767
17768         * rtl.h (RTX_FLAG): New macro.
17769         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
17770         * final.c (alter_subreg): Use macro to access rtx flag.
17771         * integrate.c (copy_rtx_and_substitute): Use new access macro.
17772         * print-rtl.c (print_rtx): Use new access macro.
17773
17774         * cse.c (insert): Check rtx code before accessing flag.
17775
17776         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
17777         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
17778         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
17779         convert_const_symbol_ref, make_canonical, make_alternative_compare,
17780         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
17781         simplify_test_exp, optimize_attrs, simplify_by_exploding,
17782         find_and_mark_used_attributes, unmark_used_attributes,
17783         add_values_to_cover, simplify_with_current_value,
17784         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
17785         copy_rtx_unchanging, main): Use new access macros.
17786
17787 2002-04-22  Tom Rix  <trix@redhat.com>
17788
17789         * expmed.c (init_expmed): Generate shifted constant once.
17790
17791 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
17792
17793         * c-lex.c (lex_charconst): Call convert to get constant in
17794         proper type; don't just smash the type field.
17795         Fixes PR c/6300.
17796
17797         * config.gcc: Add list of obsolete configurations.  Disallow
17798         building these without --enable-obsolete.
17799         * doc/install.texi: Document --enable-obsolete and obsoletion
17800         policy.  Mention obsoletion of individual targets in
17801         appropriate places.
17802
17803 2002-04-22  Richard Henderson  <rth@redhat.com>
17804
17805         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
17806
17807 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
17808
17809         PR f/6138.
17810         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
17811         (walk_fixup_memory_subreg): Likewise.
17812         (fixup_var_refs_insn): Adjust accordingly.
17813         (fixup_var_refs_1): Likewise.
17814
17815 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
17816
17817         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
17818         LIBPATH_ARCH64_SPEC): Define.
17819         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
17820         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
17821         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
17822         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
17823
17824 2002-04-22      Joel Sherrill <joel@OARcorp.com>
17825
17826         * gthr-rtems.h: Correct prototypes to remove warnings.
17827
17828 2002-04-22  Richard Henderson  <rth@redhat.com>
17829
17830         PR c/6344
17831         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
17832
17833         * gcse.c (free_insn_expr_list_list): New.
17834         (clear_modify_mem_tables): Use it.  Fix bit set usage.
17835         (canon_list_insert): Use EXPR_LISTs for expressions.
17836         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
17837
17838 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
17839
17840         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
17841         file change and include code to _cpp_pop_buffer.
17842         * cpphash.h (struct pending_option): Predeclare.
17843         (struct cpp_reader): New member next_include_file.
17844         (_cpp_pop_file_buffer): Update.
17845         (_cpp_push_next_buffer): Update, rename.
17846         * cppinit.c (cpp_destroy): Free include chain and pending here.
17847         (cpp_finish_options): Simplify.
17848         (_cpp_push_next_buffer): Rename and clean up.
17849         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
17850         Clarify.
17851         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
17852
17853 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
17854
17855         * config/rs6000/altivec.h (vec_xor): Add variant for both args
17856         being vector signed int.
17857         (vec_andc): Same.
17858         (vec_xor): Add variant for both args being vector signed char.
17859         Remove redundant variant.
17860         (vec_andc): Same.
17861
17862 2002-04-21  David S. Miller  <davem@redhat.com>
17863
17864         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
17865         compare mode in output RTL.
17866
17867 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
17868
17869         * config/rs6000/rs6000.c (rs6000_override_options): Correct
17870         style and formatting of previous patch.
17871
17872 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
17873
17874         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
17875         flag_pic for ABI_AIX.
17876
17877 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
17878
17879         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
17880         * cppfiles.c (read_include_file): Similarly.
17881         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
17882         uxstrdup ustrchr, ufputs): Similarly.
17883         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
17884         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
17885         cpp_ideq, parse_identifier, parse_number): Similarly.
17886         * cpplib.c (struct directive, dequote_string, D, run_directive,
17887         cpp_push_buffer): Similarly.
17888         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
17889         _cpp_create_definition, check_trad_stringification,
17890         cpp_macro_definition): Similarly.
17891
17892 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
17893
17894         * cppmacro.c (funlike_invocation_p): Don't step back
17895         over CPP_EOF.
17896
17897 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
17898
17899         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
17900         labelno.
17901
17902 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
17903
17904         * doc/invoke.texi: Remove Chill references.
17905         * doc/gcc.texi: Update last modified date.
17906
17907 2002-04-20  Kazu Hirata  <kazu@hxi.com>
17908
17909         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
17910         push and pop.  Replace add.l with add.w.
17911
17912 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17913
17914         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
17915         multiply instructions for H8/300H case.
17916
17917 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17918
17919         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
17920         Bum three instructions from each routine.
17921
17922 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17923
17924         * Makefile.in: Update.
17925         * decl.c (push_c_function_context, pop_c_function_context,
17926         mark_c_function_context): Rename for consistency.
17927         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
17928         * c-tree.h (push_c_function_context, pop_c_function_context,
17929         mark_c_function_context): Rename for consistency.
17930         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17931         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17932         * function.c (init_lang_status, save_lang_status,
17933         restore_lang_status, mark_lang_status, free_lang_status):
17934         Move to langhooks.h.
17935         (push_function_context_to, pop_function_context_from,
17936         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17937         Update.
17938         * function.h (init_lang_status, save_lang_status,
17939         restore_lang_status, mark_lang_status, free_lang_status):
17940         Move to langhooks.h.
17941         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
17942         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17943         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
17944         LANG_HOOKS_FUNCTION_INITIALIZER): New.
17945         (LANG_HOOKS_INITIALIZER): Update.
17946         (lhd_do_nothing_f): New.
17947         * langhooks.h (struct lang_hooks_for_functions): New.
17948         (struct lang_hooks): New hooks.
17949         * langhooks.c (lhd_do_nothing_f): New.
17950 objc:
17951         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17952         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17953
17954 2002-04-19  David S. Miller  <davem@redhat.com>
17955
17956         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
17957         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
17958
17959 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17960
17961         PR optimization/3756
17962         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
17963         x = ((int) y < 0) ? cst1 : cst2.
17964
17965 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17966
17967         PR c/6358
17968         * function.c: Reapply patch for c/6358.
17969         (expand_function_end): Copy decl_rtl's mode, not
17970         current_function_return_rtx mode.
17971
17972 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
17973
17974         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
17975         targets.
17976
17977 2002-04-19  Tom Tromey  <tromey@redhat.com>
17978
17979         * doc/install.texi (Specific): Update status of Solaris 2.8.
17980         For PR libgcj/6158.
17981
17982 2002-04-19  Andreas Schwab  <schwab@suse.de>
17983
17984         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
17985         (PUT_REAL): Restore old definition.
17986
17987 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
17988             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17989
17990         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
17991         binutils 2.11.2 and higher generate smaller binaries than Sun's
17992         native tools.
17993
17994 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
17995
17996         PR c++/6352
17997         * toplev.c (rest_of_compilation): Do not defer functions for which
17998         TREE_SYMBOL_REFERENCED has already been set.
17999
18000 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
18001
18002         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
18003         alternative.
18004
18005 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
18006
18007         * builtins.c: Include langhooks.h.
18008         (lang_type_promotes_to): Remove.
18009         (expand_builtin_va_arg): Use new hook.
18010         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
18011         (simple_type_promotes_to): Move to c-typeck.c.
18012         * c-common.h (simple_type_promotes_to): Remove.
18013         * c-decl.c (duplicate_decls, grokdeclarator): Update.
18014         * c-format.c: Include langhooks.h.
18015         (check_format_types): Update.
18016         * c-tree.h (c_type_promotes_to): New.
18017         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
18018         (type_lists_compatible_p): Update.
18019         * langhooks-def.h (lhd_type_promotes_to): New.
18020         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
18021         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
18022         * langhooks.c (lhd_type_promotes_to): New.
18023         * langhooks.h (struct lang_hooks_for_types): New hook.
18024         * tree.h (lang_type_promotes_to): Remove.
18025 objc:
18026         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
18027
18028 2002-04-18  Richard Henderson  <rth@redhat.com>
18029
18030         * function.c: Revert patch for c/6358.
18031
18032 2002-04-18  Richard Henderson  <rth@redhat.com>
18033
18034         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
18035         blocks.  Handle multiple references to the TRAP block.  Handle
18036         non-adjacent THEN and OTHER blocks.
18037
18038 2002-04-18  Richard Henderson  <rth@redhat.com>
18039
18040         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
18041         crash with no type for by-mode libcalls.
18042
18043         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
18044
18045 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
18046
18047         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
18048         __xtensa_nonlocal_goto): Use a syscall instructions to flush
18049         the register windows.
18050
18051 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
18052
18053         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
18054         appropriate.  Document need for extended precision even when
18055         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
18056         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
18057         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
18058         instead of relying on later syntax error when REAL_WIDTH > 5.
18059         * real.c: Define NE based only on whether or not we have a
18060         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
18061         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
18062         define GET_REAL and PUT_REAL as simple memcpy operations; no
18063         need to byteswap or round.
18064         Use #error instead of #ifdef-ing out the entire file, for
18065         prompt error detection.
18066
18067         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
18068
18069 2002-04-18  David S. Miller  <davem@redhat.com>
18070
18071         * config/sparc/sparc.h (BRANCH_COST): Define.
18072
18073         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
18074         does it.
18075
18076 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
18077
18078         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
18079         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
18080         propagate_block calls after relaxation loop using new variable
18081         stabilized_prop_flags.
18082
18083 2002-04-18  Richard Henderson  <rth@redhat.com>
18084
18085         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
18086         (ia64_va_arg): Expect variable sized types by reference.
18087         * config/ia64/ia64-protos.h: Update.
18088         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
18089         ia64_function_arg_pass_by_reference.
18090
18091 2002-04-18  Richard Henderson  <rth@redhat.com>
18092
18093         * ifcvt.c: Include except.h.
18094         (block_has_only_trap): Break out from find_cond_trap.
18095         (find_cond_trap): Use it.  Always delete the trap block.
18096         (merge_if_block): Allow then block null.  Be less simplistic about
18097         what insns can end a block.
18098         * Makefile.in (ifcvt.o): Depend on except.h.
18099
18100         * config/ia64/ia64.md (trap, conditional_trap): New.
18101
18102 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
18103
18104         PR c/6358
18105         * function.c (assign_parms): Assign hard current_function_return_rtx
18106         register here...
18107         (expand_function_end): ...not here.
18108
18109 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
18110
18111         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
18112         * c-tree.h (c_incomplete_type_error): New.
18113         * c-typeck.c (require_complete_type, build_component_ref): Update.
18114         (incomplete_type_error): Rename.
18115         * langhooks-def.h (lhd_incomplete_type_error): New.
18116         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
18117         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
18118         * langhooks.c (lhd_incomplete_type_error): New.
18119         * langhooks.h (struct lang_hooks_for_types): New hook.
18120         * tree.c (size_in_bytes): Use new hook.
18121         * tree.h (incomplete_type_error): Remove.
18122 objc:
18123         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
18124
18125 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
18126
18127         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
18128         TARGET_FLOAT_FORMAT blocks.
18129
18130 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18131
18132         * doc/install.texi (Downloading the source): Do not mention Chill
18133         any longer, but mention Ada.
18134         (Configuration): Do not mention Chill any longer.
18135
18136 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
18137
18138         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
18139
18140 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
18141
18142         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
18143         in last patch.
18144
18145 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
18146
18147         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
18148         instead of unsigned_type.
18149
18150 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
18151
18152         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
18153         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
18154         later.
18155
18156 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
18157
18158         * attribs.c (vector_type_node_list): New static variable.
18159         (handle_vector_size_attribute): Use it to avoid generating a
18160         new type node each time we are called.
18161
18162         * combine.c (subst): Avoid trying to make a vector mode subreg of
18163         an integer constant.
18164         (gen_lowpart_for_combine): Likewise.
18165
18166 2002-04-18  Roger Sayle  <roger@eyesopen.com>
18167             Jakub Jelinek  <jakub@redhat.com>
18168
18169         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
18170         for integer constant c (if x has unsigned type or sign bit is not
18171         set in c).  This folds the zero/sign extension into the bit-wise and
18172         operation.
18173
18174 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
18175
18176         PR middle-end/6205
18177         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
18178         otherwise xorps.
18179
18180 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
18181
18182         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
18183
18184 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
18185
18186         * gcc.c (read_specs): Detect and fail if an attempt is made to
18187         rename a spec string to an already existing string.
18188
18189 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
18190
18191         * config/s390/s390.c (legitimize_pic_address): Do not generate
18192         illegal address constant without CONST.
18193
18194 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18195
18196         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
18197         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18198
18199 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
18200
18201         PR optimization/6305
18202         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
18203         to make sure previous reloads are taken into account.  Generate
18204         better code if one operand is an in-range immediate constant.
18205
18206 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
18207
18208         * doc/install.texi (Building): libgcj requires GNU make.
18209
18210 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
18211
18212         PR bootstrap/6315
18213         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
18214         even if hard quad and register is not floating.
18215         (movtf reg<-mem split): Disallow splitting if hard quad and
18216         register is floating.
18217         (movtf mem<-reg split): Likewise.
18218         * config/sparc/sparc.c (fp_register_operand): New predicate.
18219         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
18220
18221 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
18222
18223         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
18224         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
18225         (unprotoize.o): Ditto.  Build from protoize.c.  Define
18226         UNPROTOIZE on command line.
18227         * protoize.c: Include cppdefault.h.  Delete include_defaults.
18228         (in_system_include_dir): Use cpp_include_defaults (defined in
18229         cppdefault.o).
18230         * unprotoize.c: Delete file.
18231
18232 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
18233
18234         * config/rs6000/altivec.h (vec_ld): Add array variants.
18235         (vec_lde): Same.
18236         (vec_ldl): Same.
18237
18238 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
18239             Aldy Hernandez <aldyh@redhat.com>
18240
18241         * config/rs6000/altivec.h: Define __ALTIVEC__.
18242         (bool): New.
18243         (__pixel): New.
18244         (pixel): New.
18245         (vec_cfux): New.
18246         (vec_vmaddfp): New.
18247         (vec_vsldoi): New.
18248         Add parentheses to all macro arguments.
18249
18250 2002-04-16  Richard Henderson  <rth@redhat.com>
18251
18252         PR c++/6320
18253         * except.c (remove_eh_handler): Insert inner regions at beginning
18254         of sibling chain.  Refactor expressions.
18255
18256 2002-04-16  Richard Henderson  <rth@redhat.com>
18257
18258         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
18259         * config/sparc/sol2-gas-bi.h: New file.
18260         * config.gcc (sparc*-solaris): Add it as needed.
18261         * configure.in (AS_SPARC64_FLAG): Remove check.
18262         * config.in, configure: Regenerate.
18263
18264         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
18265
18266 2002-04-16  Richard Henderson  <rth@redhat.com>
18267
18268         * config/mips/mips.c (override_options): Don't override N32 for
18269         a 64-bit ISA.
18270
18271         PR 6202
18272         * config/mips/mips.md (can_delay): Split out of existing define_delays.
18273         (HILO_delay): Set can_delay false.
18274
18275 2002-04-16  Dale Johannesen <dalej@apple.com>
18276
18277         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
18278         instruction addresses.
18279         (rs6000_output_function_epilogue): Likewise.
18280
18281 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
18282
18283         * c-parse.in (poplevel, compstmt_start,
18284         compstmt_primary_start): Add ending ';', in accordance
18285         with POSIX.
18286
18287 2002-04-16  Richard Henderson  <rth@redhat.com>
18288
18289         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
18290         Adjust tm_file order to get TARGET_DEFAULT set properly.
18291         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
18292         * doc/install.texi (sparc-solaris): Update.
18293
18294 2002-04-16  Dale Johannesen <dalej@apple.com>
18295
18296         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
18297         comparison operands do not match each other or if modes of
18298         conditions do not match result.
18299
18300 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
18301
18302         PR target/6305
18303         * config/s390/s390.md (mulsidi3): Set both subregs of the
18304         multiword register.
18305
18306 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
18307
18308         * config/rs6000/altivec.h (vec_addc): Type check.
18309
18310 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
18311
18312         PR middle-end/6279
18313         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
18314
18315         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
18316
18317 2002-04-15  Richard Henderson  <rth@redhat.com>
18318
18319         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
18320         call_really_used_regs too.
18321
18322 2002-04-15  Richard Henderson  <rth@redhat.com>
18323
18324         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
18325
18326 2002-04-15  David S. Miller  <davem@redhat.com>
18327
18328         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
18329         as being CLOBBERed.
18330
18331 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
18332
18333         PR c/6290
18334         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
18335         CONST_VECTOR is { 0, ... 0 }.
18336
18337 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
18338
18339         * doc/install.texi (Installing GCC: Configuration): Clarify
18340         the only supported ways to configure gcc.
18341
18342 2002-04-15  Roland McGrath  <roland@frob.com>
18343
18344         * config.gcc (alpha*-*-gnu*): New target configuration.
18345         * config/alpha/gnu.h: New file for it.
18346         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
18347
18348 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
18349
18350         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
18351         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
18352         * tree.h (expand_start_stmt_expr): Update prototype.
18353         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
18354         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
18355         on the STMT_EXPR created for the inline function.
18356
18357 2002-04-15  Richard Henderson  <rth@redhat.com>
18358
18359         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
18360         config/i386/linux-aout.h, config/i386/linux-oldld.h,
18361         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
18362         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
18363         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
18364         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
18365         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
18366         Define __gnu_linux__, not gnu_linux.
18367         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
18368
18369 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
18370
18371         Remove Chill front end.
18372         * gcc.c (default_compilers): Remove Chill entries.
18373         * ch: Remove directory.
18374         * doc/frontends.texi: Remove information about Chill.
18375         * doc/sourcebuild.texi: Likewise.
18376         * doc/standards.texi: Likewise.
18377
18378 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
18379
18380         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
18381         (LONGLONG_STANDALONE): Define.
18382
18383 2002-04-15  David S. Miller  <davem@redhat.com>
18384
18385         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
18386         Call emit_library_call with LCT_NORMAL.
18387         (sparc_initialize_trampoline): Use LCT_foo instead of
18388         magic constant in emit_library_call invocations.
18389         (sparc64_initialize_trampoline): Likewise.
18390         (sparc_profile_hook): Likewise.
18391         * config/sparc/sparc.md: Likewise.
18392
18393         * config/sparc/sparc.c (sparc_extra_constraint_check):
18394         Fix type of argument 'c'.
18395         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
18396         Likewise.
18397
18398 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
18399
18400         * diagnostic.h (output_buffer_state): Redefine.
18401         (output_format_decoder): New macro.
18402         (output_prefixing_rule): Likewise.
18403         (output_line_cutoff): Likewise.
18404         (diagnostic_format_decoder): Adjust.
18405         (diagnostic_prefixing_rule): Likewise.
18406         (diagnostic_line_cutoff): Likewise.
18407         (diagnostic_state): Likewise.
18408         (diagnostic_kind_count): Likewise.
18409         (diagnostic_buffer): Now a macro.
18410
18411         * diagnostic.c (diagnostic_buffer): Remove definition.
18412         (output_is_line_wrapping): Adjust.
18413         (set_real_maximum_length): Likewise.
18414         (output_set_maximum_length): Likewise.
18415         (init_output_buffer): Likewise.
18416         (lhd_print_error_function): Likewise.
18417         (output_do_verbatim): Likewise.
18418
18419 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
18420
18421         * cpperror.c (print_location): Don't print include chain
18422         if line == 0.
18423         (cpp_begin_message): Update to use DL_ macros.
18424         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18425         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18426         cpp_notice, cpp_notice_from_errno): Remove.
18427         (cpp_error, cpp_error_with_line): Update to take a diagnostic
18428         level.
18429         (cpp_errno): New.
18430         * cppexp.c (CPP_ICE): Remove.
18431         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
18432         lex, integer_overflow, _cpp_parse_expr): Update.
18433         * cppfiles.c (read_include_file, find_include_file,
18434         handle_missing_header, _cpp_read_file, remap_filename): Update.
18435         * cpphash.h (enum error_type): Remove.
18436         (_cpp_begin_message): Update.
18437         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
18438         cpp_handle_option, cpp_post_options): Update.
18439         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
18440         skip_whitespace, parse_identifier, parse_slow, parse_string,
18441         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
18442         cpp_interpret_charconst): Update.
18443         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
18444         lex_macro_node, do_undef, glue_header_name, parse_include,
18445         do_include_common, read_flag, do_line, do_linemarker, do_ident,
18446         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
18447         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
18448         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
18449         _cpp_pop_buffer, do_diagnostic): Update.
18450         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
18451         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
18452         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18453         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18454         cpp_notice, cpp_notice_from_errno): Remove.
18455         (cpp_error, cpp_error_with_line): Update to take a diagnostic
18456         level.
18457         (cpp_errno): New.
18458         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
18459         collect_args, enter_macro_context, save_parameter, parse_params,
18460         _cpp_create_definition, check_trad_stringification,
18461         cpp_macro_definition): Update.
18462         * cppmain.c (cpp_preprocess_file): Update.
18463         * fix-header.c (read_scan_file): Update.
18464
18465 2002-04-14  Andreas Schwab  <schwab@suse.de>
18466
18467         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
18468
18469 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
18470
18471         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
18472
18473 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
18474
18475         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
18476         not gnu_hurd.
18477
18478 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
18479
18480         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
18481
18482 2002-04-13      Joel Sherrill <joel@OARcorp.com>
18483
18484         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
18485         sparc-elf and sparc-rtems targets.
18486
18487 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
18488
18489         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
18490         defined, and __gnu_hurd__ wherever __GNU__ is defined.
18491         * arm/linux-elf.h: Likewise.
18492         * cris/aout.h: Likewise.
18493         * cris/linux.h: Likewise.
18494         * i370/linux.h: Likewise.
18495         * i386/gnu.h: Likewise.
18496         * i386/linux-aout.h: Likewise.
18497         * i386/linux-oldld.h: Likewise.
18498         * i386/linux.h: Likewise.
18499         * i386/linux64.h: Likewise.
18500         * ia64/linux.h: Likewise.
18501         * m68k/linux-aout.h: Likewise.
18502         * m68k/linux.h: Likewise.
18503         * mips/linux.h: Likewise.
18504         * pa/pa-linux.h: Likewise.
18505         * pj/linux.h: Likewise.
18506         * rs6000/sysv4.h: Likewise.
18507         * s390/linux.h: Likewise.
18508         * sh/linux.h: Likewise.
18509         * sparc/linux-aout.h: Likewise.
18510         * sparc/linux.h: Likewise.
18511         * sparc/linux64.h: Likewise.
18512         * xtensa/linux.h: Likewise.
18513
18514 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
18515
18516         * stmt.c (check_unique_operand_names): Expect operand names to
18517         be strings rather than identifiers.  Use simple_cst_equal to
18518         compare them.
18519         (resolve_operand_name_1): Make same identifier to string change here.
18520         * c-parse.in (asm_operand): Convert a named operand into a string.
18521         * cp/parse.y (asm_operand): Likewise.
18522
18523 2002-04-13  Andreas Schwab  <schwab@suse.de>
18524
18525         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
18526
18527 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
18528
18529         Revert these changes:
18530
18531         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
18532
18533         PR c++/5571
18534         * stor-layout.c (layout_decl): Reset the RTL for the decl.
18535
18536 2002-04-12  Richard Henderson  <rth@redhat.com>
18537
18538         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
18539         (sparc*-*-solaris): Clean up header files.
18540         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
18541         and plan on generating 64-bit code.
18542         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
18543         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
18544         * config/sparc/sol2-sld-64.h: Rename ...
18545         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
18546         for AS_SPARC64_FLAG not defined.
18547         * config/sparc/sol2-gld-bi.h: New.
18548         * config/sparc/sol2-sld.h: Remove.
18549         * config/sparc/sol26-sld.h: New.
18550         * config/sparc/sol2.h: Tidy comments.
18551         * doc/install.texi: Document sparc-solaris configury changes.
18552
18553 2002-04-12  Richard Henderson  <rth@redhat.com>
18554
18555         * recog.c (offsettable_address_p): Match the logic in adjust_address.
18556
18557         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
18558         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
18559
18560 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18561
18562         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
18563
18564 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
18565
18566         * pa.c (pa_can_combine_p): Call extract_insn before calling
18567         constrain_operands.
18568
18569 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
18570
18571         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
18572         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
18573         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
18574         (CPP_PREDEFINES): Handle __declspec.
18575         * config/i386/t-interix (USER_H): Remove.
18576
18577 2002-04-12  DJ Delorie  <dj@redhat.com>
18578
18579         * integrate.c (compare_blocks): Make comparisons safe for when
18580         sizeof(int) < sizeof(char *).
18581         (find_block): Likewise.
18582
18583 2002-04-12  Jan Hubicka  <jh@suse.cz>
18584             David Edelsohn  <edelsohn@gnu.org>
18585
18586         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
18587         registers.
18588         (symbol_ref_operand): New.
18589         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
18590         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
18591
18592 2002-04-12  Andreas Schwab  <schwab@suse.de>
18593
18594         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
18595         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
18596         overrides the definition in config/svr4.h.
18597
18598 2002-04-12      Eric Norum <eric.norum@usask.ca>
18599
18600         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
18601         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
18602         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
18603         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
18604         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
18605         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
18606         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
18607         definitions to config/rtems.h and make the targets more similar.
18608
18609 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18610
18611         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
18612         POINTERS_EXTEND_UNSIGNED.
18613         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
18614         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
18615
18616         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
18617         not specified.
18618
18619 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
18620
18621         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
18622         depends on TARGET_SHMEDIA, not TARGET_SH5.
18623
18624 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
18625
18626         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
18627         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
18628
18629 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
18630
18631         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
18632         no r0 clobber.
18633
18634 2002-04-12  Andreas Schwab  <schwab@suse.de>
18635
18636         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
18637
18638 2002-04-12  Richard Henderson  <rth@redhat.com>
18639
18640         PR bootstrap/4191
18641         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
18642
18643         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
18644         modes spanning multiple hard regs.
18645
18646         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
18647
18648 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18649
18650         * pa.c (pa_output_function_prologue): Don't accumulate the total
18651         number of code bytes when using TARGET_64BIT, or gas, SOM and not
18652         the portable runtime.
18653         (output_deferred_plabels): Handle 64bit plabels.
18654         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
18655         generating pic code using the GAS assembler for object formats that
18656         are not SOM (ie., ELF32 and ELF64).
18657         (output_millicode_call): Check attribute type if attribute length is 28.
18658         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
18659         dbr_sequence_length once.
18660         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
18661         dbr_sequence_length once.
18662         * pa.h (TARGET_SOM): Define if not defined.
18663         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
18664         with GAS and not SOM.
18665         (jump, call_internal_reg, call_value_internal_reg): Likewise.
18666         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
18667
18668 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18669
18670         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
18671         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
18672         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
18673         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
18674         elfos.h and dbxelf.h values are fine now.
18675         * config/i386/freebsd.h, config/alpha/freebsd.h
18676         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
18677
18678 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18679
18680         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
18681         or set Acpu or Amachine.  Reformat.
18682         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18683         define.
18684         (LINK_SPEC): Do not need to undef.
18685         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
18686         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
18687         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18688         define.
18689         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
18690         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
18691         (LINK_SPEC): Do not need to undef.
18692         (DONT_USE_BUILTIN_SETJMP): Do not define.
18693         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
18694         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
18695         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
18696         Remove trailing spaces.
18697         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
18698         __ELF__, or set Acpu or Amachine.  Reformat.
18699         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18700         define.
18701
18702 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18703
18704         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
18705         all other *-*-freebsd* targets.
18706
18707 2002-04-11  Richard Henderson  <rth@redhat.com>
18708
18709         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
18710
18711 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18712
18713         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
18714         Include {cpu}/{cpu}.h thru tm_file.
18715         (alpha*-*-linux*ecoff): Remove target.
18716         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
18717         (LINK_SPEC): Remove, is not OS independent.
18718         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
18719         (LINK_SPEC): Do not need to #undef any longer.
18720         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
18721         any longer.
18722         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
18723         __ELF__.
18724         (LINK_SPEC): Moved here from alpha/elf.h.
18725         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
18726         SUB_CPP_PREDEFINES.
18727         * config/alpha/linux-ecoff.h: Remove.
18728         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
18729         (CPP_SPEC): Define _POSIX_SOURCE as needed.
18730         (CPP_SUBTARGET_SPEC): Do not define.
18731         (LINK_SPEC): Do not need to #undef any longer.
18732         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
18733         * config/alpha/vms.h: Likewise.
18734
18735 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
18736
18737         * doc/extend.texi: Remove old claim that typedefs cannot have
18738         an alignment attribute.
18739
18740 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
18741
18742         PR optimization/6177
18743         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
18744         bitpos is 0 and bitsize CONCAT size.
18745
18746 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
18747
18748         PR c/6223
18749         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
18750
18751 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
18752
18753         * config/alpha/freebsd.h: Minor reformatting.
18754         (CPP_SPEC): Define ELF and add cpp_subtarget.
18755         (ASM_SPEC): No longer needed.
18756
18757 2002-04-11  Richard Henderson  <rth@redhat.com>
18758
18759         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
18760         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
18761         (dimode mem/zero splitter): New.
18762
18763 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
18764
18765         * config/cris/cris.c (cris_override_options): Tweak error message
18766         for PIC not implemented.
18767
18768         * config/cris/cris.h: Tweak comments related to parameter-passing.
18769
18770         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
18771
18772 2002-04-10  Richard Henderson  <rth@redhat.com>
18773
18774         * except.c (add_ehl_entry): Allow duplicates after landing pad
18775         creation.
18776
18777 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
18778
18779         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
18780
18781 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
18782
18783         * c-decl.c (c_init_decl_processing): Move generation of
18784         decls for g77_integer_type_node and friends from here ...
18785         * c-common.c (c_common_nodes_and_builtins): ... to here.
18786
18787 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
18788
18789         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
18790         is only used as frame pointer when frame_pointer_needed is true.
18791
18792 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
18793
18794         PR target/817
18795         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
18796         for the fact that the pool entry uses two words.
18797         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
18798         1k bytes.
18799         (movdf_soft_insn): Similarly.
18800         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
18801         for the fact that the pool entry uses three words.
18802
18803 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
18804
18805         * config/mips/mips.c (mips_va_arg): When using the struct version
18806         of the EABI va_list, allow arguments in the register save area to
18807         take up less room than a stack argument.
18808
18809 2002-04-10  Richard Henderson  <rth@redhat.com>
18810
18811         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
18812         if EXPAND_INITIALIZER.
18813
18814 2002-04-09  Richard Henderson  <rth@redhat.com>
18815
18816         * config/alpha/alpha.md (movdi_er_maybe_g): New.
18817         * config/alpha/alpha.c (alpha_expand_mov): Use it.
18818
18819 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
18820
18821         PR optimization/6233
18822         * rtlanal.c (pure_call_p): New function.
18823         * rtl.h (pure_call_p): Declare.
18824         * loop.c (prescan_loop): Use it to set has_nonconst_call.
18825         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
18826
18827 2002-04-09  Eric Christopher  <echristo@redhat.com>
18828
18829         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
18830         information to .comm directive.
18831
18832 2002-04-09  Richard Henderson  <rth@redhat.com>
18833
18834         PR c/5078
18835         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
18836
18837 2002-04-09  Richard Henderson  <rth@redhat.com>
18838
18839         * basic-block.h (flow_delete_block_noexpunge): Declare.
18840         (expunge_block_nocompact): Declare.
18841         * cfg.c (expunge_block_nocompact): Split out from ...
18842         (expunge_block): ... here.
18843         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
18844         (flow_delete_block_noexpunge): Split out from ...
18845         (flow_delete_block): ... here.
18846         * cfgcleanup.c (delete_unreachable_blocks): Compact while
18847         removing dead blocks.
18848         * except.c (exception_handler_labels): Remove.
18849         (exception_handler_label_map): New.
18850         (struct eh_region): Add aka member.
18851         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
18852         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
18853         (for_each_eh_label, for_each_eh_label_1): New.
18854         (init_eh): Register exception_handler_label_map.
18855         (free_eh_status): Use free_region.
18856         (find_exception_handler_labels): Use the map, not the list.
18857         (remove_exception_handler_label): Likewise.
18858         (maybe_remove_eh_handler): Likewise.
18859         (remove_eh_handler): Use the region aka bitmap.
18860         * except.h (exception_handler_labels): Remove.
18861         (for_each_eh_label): Declare.
18862         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
18863         * loop.c (invalidate_loops_containing_label): New.
18864         (find_and_verify_loops): Use it.  Use for_each_eh_label.
18865         * sched-rgn.c (is_cfg_nonregular): Use
18866         current_function_has_exception_handlers.
18867
18868 2002-04-09  Richard Henderson  <rth@redhat.com>
18869
18870         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
18871         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
18872         Do not return changed status.
18873         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
18874         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
18875         New functions that do return changed status.
18876         * sbitmap.h: Update decls.
18877         * gcse.c, lcm.c: Use _cg functions as needed.
18878
18879 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
18880
18881         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
18882         (sh64-*-elf*, sh-*-rtemself*): Likewise.
18883         * config/sh/embed_bb.c: New file.
18884         * config/sh/embed-elf.h: New file.
18885         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
18886         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
18887         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18888         __PTRDIFF_TYPE__ .
18889         (SUBTARGET_CPP_PTR_SPEC): Don't define.
18890         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
18891         Add subtarget_asm_endian_spec.
18892         (ASM_SPEC): Use subtarget_asm_endian_spec.
18893         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
18894         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
18895         (WCHAR_UNSIGNED): Define.
18896         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
18897         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18898         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
18899         Fix value.
18900         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
18901         (sh_adjust_cost): Likewise.
18902         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18903         __PTRDIFF_TYPE__ .
18904         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
18905         (WCHAR_TYPE_SIZE): Likewise.
18906         (ASM_SPEC): Use subtarget_asm_endian_spec.
18907         (SH_ELF_WCHAR_TYPE): #undef/ #define.
18908         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
18909         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
18910         (MAX_WCHAR_TYPE_SIZE): Don't #define .
18911         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
18912         (USER_LABEL_PREFIX): Don't #undef /#define .
18913         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18914         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
18915         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
18916         (ASM_SPEC): Likewise.
18917         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
18918         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
18919         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
18920         (LIB2FUNCS_EXTRA): Define.
18921         * t-sh64 (LIB2FUNCS_EXTRA): Define.
18922         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
18923         (LIB1ASMFUNCS_CACHE): Define.
18924         (LIB2FUNCS_EXTRA): Redefine empty.
18925
18926 2002-04-08  Richard Henderson  <rth@redhat.com>
18927
18928         * reorg.c (get_branch_condition): Use reversed_comparison_code.
18929
18930 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18931
18932         * config/m68hc11/larith.asm (__map_data_section): Fix condition
18933         and optimize for size.
18934         (__do_global_ctors): Fix pointer comparison.
18935         (__do_global_dtors): Likewise.
18936
18937 2002-04-09  David S. Miller  <davem@redhat.com>
18938
18939         * config/sparc/sparc.c (sparc_extra_constraint_check): New
18940         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
18941         allow reloading pseudos.
18942         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
18943         * config/sparc/sparc-protos.h: Declare it.
18944
18945         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
18946         unsigned comparison warning.
18947         (output_restore_regs): Mark leaf_function as unused.
18948
18949 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18950
18951         * expr.c (is_aligning_offset): New function.
18952         (expand_expr, case COMPONENT_EXPR): Call it.
18953
18954 2002-04-08  David S. Miller  <davem@redhat.com>
18955
18956         PR target/6082
18957         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
18958
18959         Make init_priority work on SPARC when using GNU ld.
18960         * config/sparc/linux.h, config/sparc/linux64.h,
18961         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
18962         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
18963         * config/sparc/sol2-gld.h: New file to do the same.
18964         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
18965         sparc/sol2-gld.h to tm_file.
18966
18967         PR optimization/4328
18968         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
18969         * doc/md.texi: Document it.
18970         * config/sparc/sparc.md (movdi_insn_sp64_novis,
18971         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
18972         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
18973         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
18974         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
18975
18976 2002-04-08  Andreas Jaeger  <aj@suse.de>
18977
18978         * stmt.c (expand_asm_operands): Revert last patch from Richard
18979         Henderson.
18980
18981 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18982
18983         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
18984         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
18985
18986 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18987
18988         * doc/contrib.texi (Contributors): Add David O'Brien.
18989
18990 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
18991
18992         * configure.in (auto-build.h): Use target_alias and build_alias
18993         when running configure.
18994         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
18995         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
18996         * configure: Regenerate.
18997
18998 2002-04-07  David S. Miller  <davem@redhat.com>
18999
19000         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
19001
19002 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19003
19004         PR 5933
19005         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
19006         generating 32-bit pic code.
19007
19008 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
19009
19010         * cppinit.c (cpp_create_reader): Initialize
19011         discard_comments_in_macro_exp.
19012         (COMMAND_LINE_OPTIONS): Add "-CC" option.
19013         (cpp_handle_option): Handle "-CC" option.
19014         * cpplex.c (save_comment): If saving a C++ comment in
19015         a directive, convert it to a C comment.
19016         (_cpp_lex_direct): Pass second comment start character to
19017         save_comment to indicate comment type.
19018         * cpplib.c (_cpp_handle_directive): If processing
19019         a "#define" directive and discard_comments_in_macro_exp
19020         is false,  re-enable saving of comments.
19021         (lex_macro_node): If discard_comments_in_macro_exp is false,
19022         discard any comments before the macro identifier.
19023         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
19024         member.
19025         * cppmacro.c (cpp_get_token): If expanding a macro while
19026         processing a directive, discard any comments we might encounter.
19027         (parse_params): If discard_comments_in_macro_exp is false,
19028         ignore comments in the macro parameter list.
19029         * gcc.c (cpp_unique_options): Add "-CC" option.
19030         (option_map): Map "--comments-in-macros" to "-CC".
19031         * doc/cppopts.texi: Document "-CC" option.
19032         * f/lang-specs.h: Add "-CC" option.
19033         * testsuite/gcc.dg/cpp/maccom1.c: New test.
19034         * testsuite/gcc.dg/cpp/maccom2.c: New test.
19035         * testsuite/gcc.dg/cpp/maccom3.c: New test.
19036         * testsuite/gcc.dg/cpp/maccom4.c: New test.
19037         * testsuite/gcc.dg/cpp/maccom5.c: New test.
19038         * testsuite/gcc.dg/cpp/maccom6.c: New test.
19039
19040 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19041
19042         PR middle-end/6180
19043         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
19044
19045 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
19046
19047         PR c++/5571
19048         * stor-layout.c (layout_decl): Reset the RTL for the decl.
19049
19050         PR opt/5120
19051         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
19052         RTX_UNCHANGING_P for the functions arguments when a tail call
19053         is made.
19054
19055 2002-04-06  Jason Merrill  <jason@redhat.com>
19056
19057         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
19058         (parse_options_and_default_flags): Set them appropriately.
19059         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
19060
19061 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
19062
19063         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
19064         here.
19065
19066         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
19067         semicolon.
19068
19069         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
19070         types come in by-reference.  Fix typo in comment.
19071
19072 2002-04-05  David S. Miller  <davem@redhat.com>
19073
19074         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
19075         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
19076         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
19077         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
19078
19079 2002-04-05  David S. Miller  <davem@redhat.com>
19080
19081         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
19082         are not going to emit return instructions, emit at least a nop
19083         for the sake of sane backtraces.
19084
19085 2002-04-05  Richard Henderson  <rth@redhat.com>
19086
19087         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
19088
19089 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
19090
19091         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
19092
19093 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
19094
19095         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
19096         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
19097         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
19098
19099 2002-04-05  Andreas Schwab  <schwab@suse.de>
19100
19101         * c-convert.c: Include c-common.h.
19102         * Makefile.in (c-convert.o): Updated.
19103
19104 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
19105
19106         * mklibgcc.in: Use separate libgcc.map for each multilib.
19107         * Makefile.in (distclean): Don't remove libgcc.map here.
19108
19109 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
19110
19111         * Makefile.in (s-mlib): Handle --disable-multilib by separate
19112         genmultilib invocation.
19113
19114 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
19115
19116         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
19117         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
19118         to num_gprs for symmetry.
19119         * config/mips/mips.c: Adjust accordingly.
19120
19121 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
19122
19123         * c-common.c (truthvalue_conversion): Rename, update.
19124         * c-common.h (c_common_truthvalue_conversion): New.
19125         * c-convert.c (convert): Update.
19126         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19127         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
19128         * c-typeck.c (build_binary_op, build_unary_op,
19129         build_conditional_expr): Update.
19130         * fold-const.c (constant_boolean_node, fold): Use langhook.
19131         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
19132         * langhooks.h (struct lang_hooks): New hook.
19133         * stmt.c (expand_decl_cleanup): Use langhook.
19134         * tree.h (truthvalue_conversion): Remove.
19135 objc:
19136         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19137
19138 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
19139
19140         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
19141         Add rules to make null object file.
19142
19143 2002-04-04  Jim Blandy  <jimb@redhat.com>
19144
19145         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
19146         macro formal parameter names.
19147
19148 2002-04-04  David S. Miller  <davem@redhat.com>
19149
19150         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
19151
19152 2002-04-04  Richard Henderson  <rth@redhat.com>
19153
19154         PR middle-end/5099
19155         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
19156         Support copies into and out of memory.  Don't accept allows_reg
19157         and allows_mem as gospel.
19158
19159 2002-04-04  Richard Henderson  <rth@redhat.com>
19160
19161         PR opt/6165
19162         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
19163         (write_dependence_p): Likewise.
19164
19165 2002-04-04  Richard Henderson  <rth@redhat.com>
19166
19167         * predict.c (estimate_bb_frequencies): Do frequency calculation
19168         with a volatile temporary.
19169
19170 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
19171
19172         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
19173
19174 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19175
19176         PR c++/6119
19177         * final.c (final_start_function): Don't bump profile_label_no here...
19178         (final_end_function): ...but here.
19179
19180 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19181
19182         * config/sparc/sparc.md (pic): New attribute.
19183         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
19184         into stack slots.
19185         (split after do_builtin_setjmp_setup): New.
19186
19187 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19188
19189         PR fortran/6106
19190         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
19191         change.
19192
19193 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19194
19195         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
19196         UNITS_PER_WORD for zero sized aggregates.
19197
19198 2002-04-03  David S. Miller  <davem@redhat.com>
19199
19200         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
19201         one-character spec for this, just use %(link_gcc_c_sequence).
19202
19203 2002-04-03  David S. Miller  <davem@redhat.com>
19204
19205         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
19206         handling.
19207
19208 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19209
19210         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
19211         (DWARF_FRAME_RETURN_COLUMN): Move.
19212         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
19213         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
19214         * pa.c (except.h, predict.h): Include.
19215         (FRP): Delete.
19216         (store_reg_modify, set_reg_plus_d): Revise prototypes.
19217         (output_ascii): Add cast.
19218         (store_reg_modify): Revise to add frame notes.
19219         (set_reg_plus_d): Likewise.
19220         (compute_frame_size): Include space for eh data registers in frame if
19221         the current function calls eh_return.
19222         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
19223         function calls eh_return.  Save eh data registers if the current
19224         function calls eh_return.  Fix code to add frame notes.  Emit
19225         blockage to prevent insns with frame notes being scheduled in the
19226         delay slot of calls.
19227         (hppa_expand_epilogue): Restore eh data registers and do final stack
19228         adjustment if the current function calls eh_return.  Don't add frame
19229         notes.
19230         (output_call): Revise for change in length of call insn.  Don't do
19231         return pointer adjustment for an unconditional jump in the delay slot
19232         of a call when using frame notes.
19233         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
19234         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
19235         (ARG_POINTER_CFA_OFFSET): Define.
19236         * pa.md (return_external_pic): New pattern.
19237         (prologue): Correct formatting.  Use return_external_pic if current
19238         function calls eh_return.
19239         (call_internal_symref, call_value_internal_symref,
19240         sibcall_internal_symref, sibcall_value_internal_symref): Change default
19241         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
19242         respectively.
19243         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
19244
19245         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
19246         list of targets to check using "nop" insn.
19247         * configure: Rebuilt.
19248
19249 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
19250
19251         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
19252
19253 2002-04-03  David S. Miller  <davem@redhat.com>
19254
19255         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
19256         library sequence passed to the linker.
19257         (LINK_COMMAND_SPEC): Use it.
19258         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
19259         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
19260         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19261
19262 2002-04-03  Jason Merrill  <jason@redhat.com>
19263
19264         * except.c (struct eh_status): Remove protect_list.
19265         (begin_protect_partials, end_protect_partials): Remove.
19266         (add_partial_entry): Remove.
19267         * except.h: Remove prototypes.
19268
19269         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
19270         expand_decl_cleanup_eh.
19271
19272         PR c++/5636
19273         * tree.h (CLEANUP_EH_ONLY): New macro.
19274         * stmt.c (expand_decl_cleanup_eh): New fn.
19275         (expand_cleanups): Check CLEANUP_EH_ONLY.
19276         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
19277         Use expand_decl_cleanup_eh.
19278         (expand_stmt): Adjust.
19279         * c-common.h: Adjust prototype.
19280
19281 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
19282
19283         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
19284         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
19285         (cris_target_asm_function_epilogue): Ditto.
19286         (cris_initial_frame_pointer_offset): Ditto.
19287         (cris_simple_epilogue): Ditto.
19288         (cris_expand_builtin_va_arg): Variable-size types come in
19289         by-reference.
19290
19291 2002-04-03  David S. Miller  <davem@redhat.com>
19292
19293         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
19294         little-endian.
19295         (set_fast_math): Correct 'fsr' type.
19296
19297 2002-04-03  Richard Henderson  <rth@redhat.com>
19298
19299         PR opt/3569
19300         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
19301         * toplev.c (check_global_declarations): Use it.
19302         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
19303         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19304         (LANG_HOOKS_DECLS): Add it.
19305         * langhooks.c (lhd_warn_unused_global_decl): New.
19306         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19307         * c-objc-common.c (c_warn_unused_global_decl): New.
19308         * c-tree.h (c_warn_unused_global_decl): Declare.
19309         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19310
19311 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19312
19313         * langhooks-def.h (lhd_set_decl_assembler_name,
19314         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
19315         (LANG_HOOKS_INITIALIZER): Update.
19316         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
19317         * langhooks.h (struct lang_hooks): New hook.
19318         * tree.c (set_decl_assembler_name): Move to langhooks.c.
19319         (lang_set_decl_assembler_name): Remove.
19320         (init_obstacks): Don't set hook.
19321         (decl_assembler_name): New function.
19322         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
19323         (decl_assembler_name): New.
19324         (lang_set_decl_assembler_name): Remove.
19325
19326 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
19327
19328         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
19329         works properly with .hidden symbols.
19330         * configure: Rebuilt.
19331         * config.in: Rebuilt.
19332         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
19333         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
19334         properly with .hidden symbols.
19335
19336 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
19337
19338         PR middle-end/6102
19339         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
19340         USE argument.
19341
19342 2002-04-03  Richard Henderson  <rth@redhat.com>
19343
19344         PR opt/4120
19345         * sched-rgn.c (sets_likely_spilled): New.
19346         (sets_likely_spilled_1): New.
19347         (add_branch_dependences): Use it.
19348
19349 2002-04-02  Richard Henderson  <rth@redhat.com>
19350
19351         PR opt/4311
19352         * loop.h (LOOP_FIRST_PASS): New.
19353         * loop.c (strength_reduce): Mind it when deciding to unroll.
19354         * toplev.c (rest_of_compilation): Set it.
19355
19356 2002-04-02  David S. Miller  <davem@redhat.com>
19357
19358         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
19359         mems_ok_for_ldd_peep when the order of the loads being examined
19360         is reversed.
19361         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
19362         existing comment to increase comprehension of this situation.
19363
19364 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
19365
19366         * config/sh/sh.md: Don't use union real_extract.
19367
19368 2002-04-02  Richard Henderson  <rth@redhat.com>
19369
19370         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
19371
19372 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
19373
19374         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
19375         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
19376         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
19377         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
19378         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
19379         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
19380         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
19381         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
19382         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
19383         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
19384         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
19385         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
19386         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
19387         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
19388         Include as many configury headers via tm_file as possible.  This
19389         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
19390         * config/openbsd-oldgas.h: New file.
19391         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
19392         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
19393         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
19394         config/i386/i386-coff.h, config/i386/i386-interix.h,
19395         config/i386/iscdbx.h, config/i386/linux-aout.h,
19396         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
19397         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
19398         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
19399         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
19400         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
19401         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
19402         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
19403         config/i386/vxi386.h: Do not directly include configury headers.
19404         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
19405         Directly include configury headers that are no longer automatically
19406         included by the above headers.
19407         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
19408         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
19409         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
19410         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
19411         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
19412         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
19413         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
19414         (TARGET_VERSION): Define.
19415         * config/i386/beos-elf.h, config/i386/freebsd.h,
19416         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
19417         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
19418         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
19419         config/i386/sco5.h, config/i386/sysv4.h
19420         (TARGET_VERSION): Do not need to protect.
19421         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
19422         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
19423         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
19424         config/i386/i386-interix.h, config/i386/linux-aout.h,
19425         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
19426         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
19427         (YES_UNDERSCORES): Do not define - not needed.
19428         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
19429         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19430         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
19431         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
19432         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19433         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
19434         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
19435         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
19436
19437 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
19438             Richard Henderson  <rth@redhat.com>
19439
19440         PR c/5484
19441         * function.c (assign_temp): Accept either type or decl argument.
19442         Detect variables whose size is too large to fit into an integer.
19443         * stmt.c (expand_decl): Pass the decl, not the type.
19444
19445 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
19446
19447         * protoize.c: Match include directory usage with cppdefault.c.
19448
19449 2002-04-03  Jeffrey A Law  (law@redhat.com)
19450             Hans-Peter Nilsson  <hp@bitrange.com>
19451
19452         * combine.c (simplify_comparison): Avoid narrowing a comparison
19453         with a paradoxical subreg when doing so would drop signficant bits.
19454
19455 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
19456
19457         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
19458         if POINTERS_EXTEND_UNSIGNED is defined.
19459
19460 2002-04-02  Richard Henderson  <rth@redhat.com>
19461
19462         PR opt/3967
19463         * local-alloc.c (contains_replace_regs): LO_SUM may contain
19464         replace regs.
19465
19466 2002-04-02  Richard Henderson  <rth@redhat.com>
19467
19468         * doc/standards.texi: Document required freestanding libc entry points.
19469
19470 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
19471
19472         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
19473         associated splitter.  Remove MQ constraint.
19474         (ctrdi_internal4): Correct CCmode clobber.
19475
19476 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19477
19478         * milli64.S ($$dyncall): New function.
19479         * t-linux (LIB1ASMFUNCS): Revise module list.
19480         (LIB1ASMSRC): Use pa/milli64.S.
19481
19482 2002-04-02  Richard Henderson  <rth@redhat.com>
19483
19484         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
19485         rename solaris_sys_varargs_h.
19486
19487 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19488
19489         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
19490         the same mode as its component.
19491
19492 2002-04-02  Richard Henderson  <rth@redhat.com>
19493
19494         PR opt/190
19495         * final.c (this_is_asm_operands): Export.
19496         * output.h (this_is_asm_operands): Declare.
19497         * config/i386/i386.c (print_operand): Error odd asm operands.
19498
19499 2002-04-02  Richard Henderson  <rth@redhat.com>
19500
19501         PR opt/420
19502         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
19503
19504 2002-04-01  Richard Henderson  <rth@redhat.com>
19505
19506         PR target/1538
19507         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
19508         * fixinc/fixincl.x: Rebuild.
19509
19510 2002-04-01  Richard Henderson  <rth@redhat.com>
19511
19512         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
19513         (atomic_alloc, atomic_free): New.
19514         (SIZE, MASK_FOR, PTR_IN): New.
19515         (emergency_reg_state, emergency_reg_state_free): New.
19516         (emergency_labeled_state, emergency_labeled_state_free): New.
19517         (reg_state_alloced, labeled_state_alloced): New.
19518         (alloc_reg_state, free_reg_state): New.
19519         (alloc_label_state, free_label_state, free_label_states): New.
19520         (push, pop, dup_state_stack, free_state_stack): Use them.
19521         (desc_label_state): Likewise.
19522         (uw_frame_state_for): Free label states and state stack.
19523         (uw_update_reg_address): Eliminate warnings.
19524
19525 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
19526
19527         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
19528         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
19529
19530 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19531
19532         * c-decl.c (grokdeclarator): Update.
19533         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19534         * c-tree.h (c_mark_addressable): New.
19535         * c-typeck.c (default_function_array_conversion, build_unary_op,
19536         build_array_ref, convert_for_assignment): Update.
19537         (mark_addressable): Rename.
19538         * calls.c (try_to_integrate, expand_call): Use langhook.
19539         * expr.c (expand_expr): Use langhook.
19540         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
19541         * langhooks.h (struct lang_hooks): New hook.
19542         * stmt.c (expand_asm_operands): Use langhook.
19543         * tree.h (mark_addressable): Remove.
19544 objc:
19545         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19546
19547 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
19548
19549         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
19550         in previous change.
19551
19552 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
19553
19554         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
19555         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
19556
19557 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19558
19559         * c-common.c (unsigned_conversion_warning, convert_and_check,
19560         unsigned_type, signed_type, shorten_compare,
19561         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
19562         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
19563         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
19564         New.
19565         * c-decl.c (grokdeclarator): Update.
19566         * c-format.c (check_format_types): Update.
19567         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19568         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19569         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
19570         * convert.c (convert_to_integer): Use new hooks.
19571         * expmed.c (make_tree): Use new hooks.
19572         * expr.c (store_expr): Use new hooks.
19573         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
19574         all_ones_mask_p, unextend, fold): Use new hooks.
19575         * langhooks.h (struct lang_hooks_for_types): New hooks.
19576         * tree.h (signed_or_unsigned_type, signed_type,
19577         unsigned_type): Remove.
19578 objc:
19579         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19580         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19581
19582 2002-03-31  Richard Henderson  <rth@redhat.com>
19583
19584         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
19585         (desc_frgr_mem): Fix reference to f16-f31.
19586
19587 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19588
19589         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
19590         RTVEC_ELT): Const-ify.
19591         * varray.h (VARRAY_CHECK): Const-ify.
19592         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
19593         ggc_mark_rtvec, ggc_mark): Const-ify.
19594
19595 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19596
19597         * diagnostic.c: Include langhooks-def.h.
19598         * Makefile.in (diagnostic.o): Update.
19599
19600 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
19601
19602         * c-common.c (c_unsafe_for_reeval): Rename.
19603         * c-common.h (c_unsafe_for_reeval): Rename.
19604         * c-decl.c (finish_incomplete_decl): Rename.
19605         (c_init_decl_processing): Don't set langhook.
19606         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19607         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19608         * c-objc-common.c (c_objc_common_init): Don't set langhook.
19609         * c-tree.h (finish_incomplete_decl): Rename.
19610         * langhooks-def.h (lhd_unsafe_for_reeval): New.
19611         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
19612         (LANG_HOOKS_INITIALIZER): Update.
19613         * langhooks.c (lhd_unsafe_For_reeval): New.
19614         * langhooks.h (struct langhooks): New hooks.
19615         * toplev.c (incomplete_decl_finalize_hook): Remove.
19616         (wrapup_global_declarations): Update.
19617         * tree.c (lang_unsafe_for_reeval): Remove.
19618         (unsafe_for_reeval): Update.
19619         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
19620         Remove.
19621 objc:
19622         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19623         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19624
19625 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
19626
19627         * diagnostic.c (print_error_function): Remove.
19628         (default_print_error_function): Rename.
19629         (report_error_function): Update.
19630         * diagnostic.h (print_error_function): Remove.
19631         (default_print_error_function): Remove.
19632         * langhooks-def.h (struct diagnostic_context): Predeclare.
19633         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
19634         (LANG_HOOKS_INITIALIZER): Update.
19635         * langhooks.h (struct diagnostic context): Predeclare.
19636         (struct lang_hooks): New hook.
19637
19638 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19639
19640         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
19641         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
19642         !flag_pic.
19643         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
19644         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
19645         of PIC_OFFSET_TABLE_REGNUM thruout.
19646         * config/rs6000/rs6000.md: Likewise.
19647         * config/rs6000/darwin.h: Likewise.
19648
19649 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19650
19651         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
19652         unsigned HOST_WIDE_INT, not unsigned int.
19653
19654 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19655
19656         PR middle-end/6096, middle-end/6098, middle-end/6099
19657         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
19658         CODE_LABELs.
19659         (fill_slots_from_thread): Likewise.
19660
19661 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19662
19663         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
19664         floating fields in float regs.
19665         (function_arg_record_value_2): Likewise.
19666
19667 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
19668
19669         * config/mmix/mmix.md (define_constants): Remove misleading
19670         FIXME.  Add MMIX_fp_rO_OFFSET.
19671         ("nonlocal_goto_receiver"): Don't have stack-frame address of
19672         saved rO as part of the pattern.  Remove FIXME.
19673         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
19674         here, at output-time.
19675
19676 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19677
19678         PR middle-end/6100
19679         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
19680         REG_BR_PRED.
19681         (output_v9branch): Likewise.
19682
19683 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
19684
19685         * gcc.c: Revert previous patch for now.
19686         * config/i386/djgpp.h: Likewise.
19687
19688 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
19689
19690         * config/mmix/crti.asm (_init): Register _fini with atexit.
19691         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
19692
19693 2002-03-31  Richard Henderson  <rth@redhat.com>
19694
19695         PR target/3997
19696         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
19697         (ASM_OUTPUT_DEF_FROM_DECLS): New.
19698
19699 2002-03-31  Richard Henderson  <rth@redhat.com>
19700
19701         * libgcc2.c (__bb_exit_func): Make static.
19702
19703         * config/alpha/alpha.md (trap): New.
19704
19705 2002-03-31  Richard Henderson  <rth@redhat.com>
19706
19707         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
19708         promoted argument types; build trap.
19709         (expand_builtin_trap): New.
19710         (expand_builtin): Use it.
19711         * stmt.c (expand_nl_goto_receivers): Likewise.
19712         * expr.h (expand_builtin_trap): Declare.
19713         * libfuncs.h (LTI_abort, abort_libfunc): New.
19714         * optabs.c (init_optabs): Init abort_libfunc.
19715
19716 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
19717
19718         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
19719         (LINK_COMMAND_SPEC): ... from here.
19720         (init_gcc_specs): Duplicate it here too, omitting
19721         shared_name in the second copy.
19722         (init_spec): Test for duplicate
19723         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
19724
19725 2002-03-30  David S. Miller  <davem@redhat.com>
19726
19727         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19728         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
19729
19730 2002-03-30  Roger Sayle <roger@eyesopen.com>
19731             Richard Henderson  <rth@redhat.com>
19732
19733         * regmove.c (combine_stack_adjustments_for_block): Avoid
19734         emitting a stack adjustment of zero bytes.  Let delete_insn
19735         update bb->head.
19736
19737 2002-03-30  Richard Henderson  <rth@redhat.com>
19738
19739         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
19740         (sparc_emitting_epilogue): New.
19741         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
19742         * config/sparc/sparc-protos.h: Update.
19743         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
19744         (TARGET_SWITCHES): Update.
19745         * config/sparc/sparc.md (return): Remove.
19746         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
19747         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
19748         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
19749         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
19750         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
19751         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
19752         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
19753         Remove MASK_EPILOGUE.
19754         * doc/invoke.texi: Update.
19755
19756 2002-03-30  Daniel Berlin  <dan@dberlin.org>
19757
19758         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
19759         CPP will start the file for us.
19760
19761 2002-03-30  Richard Henderson  <rth@redhat.com>
19762
19763         PR target/5446
19764         * config/ia64/ia64.c (group_barrier_needed_p): Special case
19765         prologue_allocate_stack.
19766         (ia64_single_set): Use insn codes for recognition of special
19767         cases, not rtl matching.
19768         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
19769
19770 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
19771
19772         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
19773
19774 2002-03-30  Richard Henderson  <rth@redhat.com>
19775
19776         PR target/6032
19777         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
19778         or -fomit-frame-pointer with profiling.
19779         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19780         (FUNCTION_PROFILER): Do nothing.
19781         (PROFILE_HOOK): New.
19782         * config/sparc/sparc.c (sparc_override_options): Don't check
19783         code models for profiling.
19784         (sparc_function_profiler): Remove.
19785         (sparc_profile_hook): New.
19786         * config/sparc/sparc-protos.h: Update.
19787
19788 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
19789
19790         PR optimization/6086
19791         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
19792         of SUBREG of volatile MEM or because the MEM was mode dependent,
19793         return CLOBBER instead of unmodified SUBREG.
19794
19795 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
19796
19797         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
19798         when not optimizing.
19799
19800         * toplev.c (rest_of_compilation): Cann mark_constant_function
19801         only when optimizing.
19802
19803         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
19804         are NULL.
19805
19806         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
19807         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
19808         (try_optimize_cfg): clear all AUX fields.
19809
19810         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19811         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19812         (ix86_address_cost): Be prepared for SUBREGed registers.
19813         (legitimate_address_p): Accept SUBREGed registers.
19814
19815 2002-03-29  Richard Henderson  <rth@redhat.com>
19816
19817         PR target/5672
19818         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
19819
19820 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19821
19822         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
19823         for aggregate and TFmode types.
19824
19825 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
19826
19827         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
19828
19829 2002-03-29  Richard Henderson  <rth@redhat.com>
19830
19831         PR target/5886
19832         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
19833         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
19834
19835 2002-03-29  Richard Henderson  <rth@redhat.com>
19836
19837         PR target/6041
19838         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
19839         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
19840         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
19841         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
19842         conditional.
19843         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
19844
19845 2002-03-29  Dale Johannesen <dalej@apple.com>
19846
19847         * loop.c (combine_movables): Do allow combination of pseudos.
19848
19849 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
19850
19851         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
19852         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
19853         No functional change except ...
19854         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
19855         * doc/install.texi (*-*-freebsd*): Document port configuration.
19856
19857 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
19858
19859         * Makefile.in (convert.o, calls.o, expmed.o): Update.
19860         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
19861         Use new hooks.
19862         * builtin-types.def (BT_PTRMODE): Update.
19863         * c-common.c (type_for_size): Rename c_common_type_for_size.
19864         (type_for_mode): Similarly.
19865         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
19866         Use new hook.
19867         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
19868         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
19869         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
19870         Redefine.
19871         * c-typeck.c (common_type, comptypes, default_conversion):
19872         Use new hooks.
19873         * calls.c: Include langhooks.h.
19874         (emit_library_call_value_1): Use new hooks.  Avoid redundant
19875         calls.
19876         * convert.c: Include langhooks.h
19877         (convert_to_pointer, convert_to_integer): Use new hooks.
19878         * except.c (init_eh): Similarly.
19879         * expmed.c: Include langhooks.h.
19880         (expand_mult_add): Use new hooks.
19881         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
19882         try_casesi): Similarly.
19883         * fold-const.c (optimize_bit_field_compare, make_range,
19884         decode_field_reference, fold_truthop, fold): Similarly.
19885         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
19886         put_var_into_stack): Similarly.
19887         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
19888         LANG_HOOKS_TYPE_FOR_SIZE): New.
19889         (LANG_HOOKS_TYPES_INITIALIZER): Update.
19890         * langhooks.h (lang_hooks_for_types): New hooks.
19891         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
19892         * tree.c (get_unwidened, get_narrower): Similarly.
19893         * tree.h (type_for_mode, type_for_size): Remove.
19894         * varasm.c (force_const_mem): Use new hooks.
19895         * utils2.c (nonbinary_modular_operation): Update.
19896 objc:
19897         * objc-act.c (handle_impent): Update.
19898         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
19899         Redefine.
19900
19901 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
19902
19903         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
19904         * config/ia64/ia64.c (basereg_operand): New.
19905         * config/ia64/ia64-protos.h (basereg_operand): Declare.
19906         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
19907
19908 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
19909
19910         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
19911         unwind information when frame_pointer_needed.
19912         (mmix_assemble_integer): Tweak wording in comment.
19913
19914 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
19915
19916         * Makefile.in (except.o): Update.
19917         * except.c: Include langhooks.h.
19918         (init_eh): Use langhook.
19919         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
19920         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
19921         (LANG_HOOKS_INITIALIZER): Update.
19922         * langhooks.h (lang_hooks_for_types): New.
19923         (struct lang_hooks): Add it.
19924         * tree.c (make_lang_type_fn, make_lang_type): Remove.
19925         * tree.h (make_lang_type_fn, make_lang_type): Remove.
19926 config:
19927         * alpha/alpha.c: Include langhooks.h.
19928         (alpha_build_va_list): Use langhook.
19929         * d30v/d30v.c: Include langhooks.h.
19930         (d30v_build_va_list): Use langhook.
19931         * i386/i386.c: Include langhooks.h.
19932         (ix86_build_va_list): Use langhook.
19933         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
19934         * s390/s390.c: Include langhooks.h.
19935         (s390_build_va_list): Use langhook.
19936         * stormy16/stormy16.c: Include langhooks.h.
19937         (stormy16_build_va_list): Use langhook.
19938
19939 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19940
19941         PR c++/5964
19942         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
19943         attributes.
19944         (length): Compute variable length for branches/calls/jumps here.
19945         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
19946         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
19947         define branch_type attribute.
19948         (divsi3_sp32): Maximum length is 6 not 7.
19949         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
19950         call_address_untyped_struct_value_sp32,
19951         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
19952         * config/sparc/sparc.c (empty_delay_slot): New function.
19953         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
19954         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
19955
19956 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19957
19958         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
19959         nonzero_bits if not needed.
19960         (nonzero_bits) [XOR]: Likewise.
19961         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
19962         reg_last_set_mode and mode are both MODE_INT, but not equal.
19963         (record_value_for_reg): Compute reg_last_set_nonzero_bits
19964         in nonzero_bits_mode for MODE_INT modes.
19965
19966 2002-03-28  Richard Henderson  <rth@redhat.com>
19967
19968         PR target/5715
19969         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
19970         to GAS.  Correct drift between alternatives.
19971
19972 2002-03-28  Richard Henderson  <rth@redhat.com>
19973
19974         PR target/6087
19975         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
19976
19977 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
19978
19979         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
19980         emulation to the linker.
19981
19982 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
19983
19984         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
19985         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19986
19987 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
19988
19989         * combine.c (simplify_and_const_int): Make sure to apply mask
19990         when force_to_mode returns a constant integer.  PR3311.
19991
19992 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19993
19994         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
19995
19996 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19997
19998         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
19999         and Objective-C Dialect Options.
20000
20001 2002-03-28  Richard Henderson  <rth@redhat.com>
20002
20003         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
20004         comparison should be done vs !=0 not >0 return code.  Tidy cases.
20005
20006 2002-03-28  Richard Henderson  <rth@redhat.com>
20007
20008         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
20009         on to c_expand_body.
20010         * c-tree.h (finish_function): Update decl.
20011         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
20012
20013 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
20014
20015         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
20016
20017 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
20018
20019         * rtlanal.c: Include flags.h
20020         (may_trap_p): Do not mark FP operations if trapping
20021         if !flag_trapping_math
20022         * Makefile.in (rtlanal.o): Add dependency on flag.h
20023         * ifcvt.c (noce_operand_ok): Avoid the lameness.
20024
20025 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
20026
20027         * mips.md: Use dconst1, not 1.0, as first argument of
20028         REAL_VALUE_LDEXP.  Don't use union real_extract.
20029
20030 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
20031
20032         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
20033         rather than $target.  Heed program_prefix and
20034         program_transform_name.  Search for gas in cross-compiler case too.
20035         "test -x" rather than "test -f".
20036         (gcc_cv_ld): Likewise.
20037         (gcc_cv_nm): Heed program_prefix and program_transform_name.
20038         (gcc_cv_objdump): Likewise.
20039         * configure: Regenerate.
20040
20041 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20042
20043         * Makefile.in (attribs.o): Update.
20044         * attribs.c: Include langhooks.h.
20045         (decl_attributes): Use langhook.
20046         * c-decl.c (insert_default_attributes): Rename.
20047         * c-tree.h (c_insert_default_attributes): New.
20048         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
20049         (LANG_HOOKS_INITIALIZER): Update.
20050         * langhooks.h (struct lang_hooks): New hook.
20051         * tree.h (insert_default_attributes): Remove.
20052 objc:
20053         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
20054
20055 2002-03-27  Andreas Schwab  <schwab@suse.de>
20056
20057         * config/i386/i386.c (classify_argument): Also check for
20058         QUAL_UNION_TYPE.
20059
20060 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20061
20062         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
20063         any more.
20064
20065 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
20066
20067         * i960.md (ret): Set PC.
20068         (nonlocal_goto): Fix expander.
20069         * builtins.c (epxand_builin_longjmp): Check that we've emitted
20070         some jump or call.
20071
20072 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
20073
20074         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
20075         of libcall regions.
20076
20077 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20078
20079         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
20080         assigning to BLOCK_FOR_INSN directly.
20081
20082 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
20083
20084         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
20085
20086 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20087
20088         * c-common.c (c_expand_expr): Fix prototype.
20089         * c-common.h (c_expand_expr): Always declare, update.
20090         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
20091         * c-objc-common.c (c_objc_common_init): No global hook.
20092         * expr.c (expand_expr): Use langhook.
20093         * expr.h (enum expand_modifier): Conditionally declare.
20094         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
20095         (LANG_HOOKS_INITIALIZER): Update.
20096         * langhooks.c (lhd_expand_expr): New.
20097         * langhooks.h (struct lang_hooks): New hook.
20098         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
20099         (lang_independent_init): Don't default hook.
20100 objc:
20101         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
20102
20103 2002-03-27  Richard Henderson  <rth@redhat.com>
20104
20105         PR target/6054
20106         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
20107         TARGET_CONST_GP.  Simplify conditions.
20108
20109 2002-03-27  Richard Henderson  <rth@redhat.com>
20110
20111         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
20112         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
20113         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
20114
20115 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
20116
20117         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
20118         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
20119         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
20120         Remove unnecessary masks.
20121         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
20122         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
20123         -mwindows, -mdll switches and their negations.
20124
20125 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20126
20127         * gcc-common.c (lang_mark_false_label_stack): Remove.
20128         * ggc.h (lang_mark_false_label_stack): Similarly.
20129
20130 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
20131
20132         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
20133
20134         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
20135         or __rtems_ is defined.
20136
20137 2002-03-26  Richard Henderson  <rth@redhat.com>
20138
20139         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
20140         if a non-trivial load was emitted.
20141         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
20142         in high+extra+low case.
20143
20144 2002-03-26  Richard Henderson  <rth@redhat.com>
20145
20146         * config.gcc (sparc*-solaris): Use float_format=sparc.
20147
20148 2002-03-26  Richard Henderson  <rth@redhat.com>
20149
20150         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20151         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
20152         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
20153         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
20154         (WINT_TYPE_SIZE): Fix at 32.
20155
20156 2002-03-26  Richard Henderson  <rth@redhat.com>
20157
20158         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
20159         until after eh landing pad generation.
20160         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
20161         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
20162
20163 2002-03-26  Richard Henderson  <rth@redhat.com>
20164
20165         * expr.h (ADD_PARM_SIZE): One more convert for INC.
20166
20167 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
20168
20169         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
20170         and warning switches.
20171         (cc1_options):  Likewise.
20172
20173 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
20174
20175         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
20176         Restore more of the signal context.  Set no_reg_stack_frame.
20177         * config/ia64/unwind-ia64.c (unw_state_record):
20178         Add no_reg_stack_frame, comments.
20179         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
20180         (uw_update_context): Adjust bsp when unwinding from leaf,
20181         but not signal frame.
20182
20183 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
20184
20185         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
20186
20187 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
20188
20189         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
20190
20191 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
20192
20193         PR target/5621
20194         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
20195         "Add a pool_range attribute", which was lost during the ARM/Thumb
20196         merge.
20197
20198 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
20199
20200         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
20201         a register into the MAC16 accumulator.
20202
20203 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
20204
20205         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
20206         (Warning Options): Document -Wswitch-enum.
20207         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
20208         -Wswitch.
20209         (warn_switch_enum): Define variables.
20210         * flags.h (warn_switch_enum): Declare variables.
20211         * stmt.c (expand_end_case_type): When warn_switch_enum /
20212         -Wswitch-enum, perform switch checks.
20213         Fix PR c/5044.
20214
20215 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
20216
20217         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
20218         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
20219         (reload_muladdsi_compare0_scratch): Delete.
20220
20221 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
20222
20223         * doc/install.texi (*-*-freebsd*): Update.
20224
20225 2002-03-26  Richard Henderson  <rth@redhat.com>
20226
20227         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
20228         (SUB_PARM_SIZE): Cast DEC to ssizetype.
20229
20230         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
20231         types from the normal argument frame.
20232
20233         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
20234         variable sized objects by reference.
20235         (sparc_va_arg): Receive them by reference too.
20236
20237 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
20238
20239         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
20240         code to not restoring global registers.
20241
20242 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
20243
20244         * Makefile.in (ggc-common.o): Update.
20245         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
20246         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20247         * c-tree.h (c_mark_tree): New.
20248         * ggc-common.c: Include langhooks.h.
20249         (gcc_mark_trees): Use new langhook.
20250         * ggc-callbacks.c: Delete file.
20251         * ggc.h (lang_mark_tree): Remove.
20252         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
20253         (LANG_HOOKS_INITIALIZER): Update.
20254         * langhooks.h (struct lang_hooks): New hook.
20255 objc:
20256         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20257
20258 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
20259
20260         * doc/cpp.texi: Exclude entire Top node from printed manual.
20261         Move option index after directive index.  Insert page breaks
20262         before GFDL and concept index.  Index environment variables
20263         with command line options.
20264         * doc/cppenv.texi: Use @vtable for environment variable list.
20265         Add paragraph explaining semantics of empty elements in path
20266         variables.  Exclude a cross-reference to Fishkill from the
20267         manpage.  Remove an unnecessary cross-reference of the entry
20268         right above the referer.  Don't use @anchor in text that goes
20269         into manpage.
20270         * doc/cppopts.texi: Cross-reference the environment variables
20271         section, not the specific environment variable, for consistency.
20272
20273 2002-03-25  Richard Henderson  <rth@redhat.com>
20274
20275         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
20276         anywhere in the block.  Don't refer to insns that have been
20277         removed from the chain.  Iterate backward through the new insns.
20278         Don't refer to edges that have been removed.
20279
20280 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
20281
20282         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
20283         test for overflow of constant.
20284
20285 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
20286
20287         PR target/2623
20288         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
20289         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
20290         these patterns on arm_archv4.
20291
20292 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
20293
20294         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
20295         int".
20296
20297 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
20298
20299         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
20300         float_handled, float_handler, float_signal, set_float_handler,
20301         and do_float_handler.  Set handler for SIGFPE to crash_signal.
20302         * toplev.h: Don't prototype do_float_handler.
20303
20304         * c-lex.c: Fold parse_float into lex_number.  Make warning
20305         about portability of hex float constants more informative, and
20306         don't issue it on top of a syntax error.
20307         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
20308         their callers.
20309         * real.h: Define REAL_VALUE_ABS here...
20310         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
20311         simplify_unary_real, simplify_binary_real, and
20312         simplify_binary_is2orm1 into their callers.
20313         * tree.c: Fold build_real_from_int_cst_1 into caller.
20314
20315         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
20316
20317         * tsystem.h: Include float.h here...
20318         * libgcc2.c: ... not here.
20319
20320 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
20321
20322         Fixes for: PR bootstrap/3591, target/5676
20323         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
20324         defined.  Do not disable exceptions or rtti.
20325         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
20326         mcore.h.  Disable exceptions and rtti, since they are not
20327         supported by EPOC.
20328
20329 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
20330
20331         * c-decl.c (maybe_build_cleanup): Remove.
20332         * expr.c (expand_expr): Use langhook.
20333         * langhooks-def.h (lhd_return_null_tree,
20334         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
20335         (LANGHOOKS_INITIALIZER): Update.
20336         * langhooks.c (lhd_return_null_tree): New.
20337         * langhooks.h (struct lang_hooks): New hook.
20338         * tree-inline.c (initialize_inlined_parameters): Use langhook.
20339         * tree.h (maybe_build_cleanup): Remove.
20340
20341 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20342
20343         * regrename.c (build_def_use): Move recog_memoized
20344         before extract_insn.
20345
20346 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20347
20348         PR target/6043
20349         * expr.c (emit_group_store): Handle storing into CONCAT.
20350
20351 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20352
20353         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
20354         corresponding MATCH_DUP.
20355
20356 2002-03-24  Richard Henderson  <rth@redhat.com>
20357
20358         * unroll.c (unroll_loop): Zero label_map.
20359
20360         * gcse.c: Include except.h.
20361         * Makefile.in (gcse.o): Update.
20362
20363 2002-03-24  Richard Henderson  <rth@redhat.com>
20364
20365         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
20366         Do resolve_unique_section before shared data clause.
20367
20368 2002-03-24  Richard Henderson  <rth@redhat.com>
20369
20370         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
20371
20372 2002-03-24  Richard Henderson  <rth@redhat.com>
20373
20374         * recog.c (peephole2_optimize): Split blocks when EH insns are
20375         generated in the middle of a block.  Do global life update if
20376         zapped EH edges.
20377
20378 2002-03-24  Richard Henderson  <rth@redhat.com>
20379
20380         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
20381
20382 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20383
20384         preprocessor/3951
20385         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
20386         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
20387         (init_dependency_output): Don't make no_output decision here.
20388
20389 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
20390
20391         * stmt.c (check_for_full_enumeration_handling): Remove tests of
20392         warn_switch.  Update description.
20393         (expand_end_case_type): Call check_for_full_enumeration_handling
20394         when warn_switch.
20395
20396 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20397
20398         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
20399         (m68hc11_split_move): Call it to see if the source and destination
20400         operands use the same direction auto inc/dec mode, otherwise make the
20401         source an offsetable memory operand and generate an add.
20402
20403 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20404
20405         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
20406         register for operand 2.
20407         ("*subsi3_zero_extendqi"): Likewise.
20408         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
20409         bits so that it is compatible with a pop.
20410         ("*andhi3_gen"): Likewise.
20411         ("xorhi3"): Likewise.
20412
20413 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20414
20415         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
20416         -pedantic here...
20417         (cpp_post_options): ... not here.
20418
20419 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20420             Aldy Hernandez  <aldyh@redhat.com>
20421
20422         Removal of separate preprocessor cpp0.
20423
20424         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
20425         cpp0, install-common): Update.
20426         * c-common.c (flag_preprocess_only): New.
20427         (c_common_init): Preprocess for -E.
20428         * c-common.h (flag_preprocess_only): New.
20429         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
20430         * c-objc-common.c (c_init_decl_processing): Exit quickly
20431         for NULL return from c_common_init.
20432         * cpplib.h (cpp_preprocess_file): New.
20433         * cppmain.c (main, general_init, pfile, progname): Remove.
20434         (do_preprocessing): Rename cpp_preprocess_file, don't call
20435         cpp_finish.  Don't close stdout here.
20436         (setup_callbacks): Update prototype.
20437         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
20438         Update.
20439         * tradcpp.c (main): Ignore -quiet.
20440 objc:
20441         * lang-specs.h (default_compilers): Preprocess with cc1obj.
20442
20443 2002-03-24  Richard Henderson  <rth@redhat.com>
20444
20445         PR optimization/5742
20446         * machmode.def: Add inner mode field to complex modes.
20447         * config/mips/mips.c (mips_function_value): Always define.  Add
20448         new argument to handle libcalls.
20449         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
20450         (FUNCTION_VALUE): Likewise.
20451         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
20452         * config/mips/mips-protos.h: Update.
20453
20454 2002-03-23  Richard Henderson  <rth@redhat.com>
20455
20456         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
20457         * config/sparc/sparc-protos.h: Update.
20458         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
20459
20460 2002-03-23  Richard Henderson  <rth@redhat.com>
20461
20462         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
20463         _start or _init begins the text segment.
20464
20465 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
20466
20467         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
20468         not HOST_WIDEST_INT.
20469         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
20470
20471 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
20472
20473         PR java/5489
20474         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
20475         operand argument to output_return_instruction.
20476         * arm.c (arm_print_operand, case 'd'): If the operand is
20477         const_true_rtx then just return.
20478         (arm_print_operand, case 'D'): If the operand is const_true_rtx
20479         then abort.
20480
20481 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
20482
20483         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
20484         (Warning Options): Document -Wswitch-default.
20485         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
20486         -Wswitch.
20487         (warn_switch_default): Define variable.
20488         (warn_switch): Update comment.
20489         * flags.h (warn_switch_default): Declare variable.
20490         (warn_switch): Update comment.
20491         * stmt.c (expand_end_case): Check for and, when
20492         warn_switch_no_default, warn of a missing default case.
20493
20494 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
20495
20496         * real.h (N): Special case 128 bit doubles.
20497
20498         * combine.c (simplify_comparison): When widening modes, ignore
20499         sign extension on CONST_INTs.
20500
20501 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
20502
20503         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
20504         passed to adjust_address.  Fix comment formatting.
20505
20506
20507 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
20508
20509         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
20510         Always make REAL_VALUE_TYPE a struct containing an array of
20511         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
20512         big it is.  Don't declare or use union real_extract.
20513
20514         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
20515         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
20516         (print_operand), config/arm/arm.c (output_move_double),
20517         config/arm/arm.md (consttable_4, consttable_8),
20518         config/romp/romp.c (output_fpops), config/s390/s390.h
20519         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
20520         (xtensa_output_literal): Don't use union real_extract.
20521
20522         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
20523         (sfmode_constant_to_ulong), config/ns32k/merlin.h
20524         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
20525         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
20526         (PRINT_OPERAND): Don't use local version of union
20527         real_extract.
20528
20529         * config/convex/convex.c (check_float_value), config/vax/vax.c
20530         (vax_float_literal), config/m88k/m88k.md (divdf3),
20531         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
20532         config/pdp11/pdp11.c (output_move_quad): Don't do host
20533         arithmetic on target floating point quantities.
20534
20535         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
20536         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
20537
20538         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
20539         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
20540
20541         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
20542         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
20543         INFINITY.
20544         * print-rtl.c (print_rtx): Disable code which needs
20545         floating-point emulator.
20546         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
20547         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
20548         depending on HOST_FLOAT_FORMAT to be defined properly.
20549
20550         * config/1750a/1750a.c (get_double, float_label): Delete.
20551         (print_operand): Delete huge commented-out chunk.  Use
20552         REAL_VALUE_TO_DECIMAL.
20553         * config/1750a/1750a-protos.h: Delete prototypes of deleted
20554         functions.
20555         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
20556         IEEE_FLOAT_FORMAT.
20557         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
20558         Use REAL_VALUE_TO_DECIMAL as ELF version does.
20559         * config/m88k/m88k.c (real_power_of_2_operand,
20560         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
20561         real_extract out of the union; run the input through
20562         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
20563         from that into the union.
20564         * config/pdp11/pdp11.c (output_move_double): Rearrange
20565         parentheses to make automatic indenter happy.
20566
20567         * doc/tm.texi (Cross-compilation): Rename node to "Floating
20568         Point" and rewrite to describe current situation.  Also adjust
20569         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
20570         match code.
20571         * doc/rtl.texi: Adjust cross reference.
20572
20573 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
20574
20575         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
20576         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
20577         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
20578         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
20579         prevent use of sp as a reload register.
20580         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
20581         non_acc_reg_operand.
20582         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
20583         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
20584         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
20585         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
20586
20587 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
20588
20589         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
20590         * cpplex.c (unterminated): Delete.
20591         (parse_string): No string literal may extend over multiple
20592         lines.  Suppress the error when preprocessing assembly.
20593         * cppmain.c (scan_translation_unit): Strings are single-line.
20594
20595         * doc/cpp.texi: Update to match.
20596
20597 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
20598
20599         PR optimization/5854
20600         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
20601         Shut up warnings.
20602         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
20603         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
20604         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
20605         const0 if scratch register was not allocated.
20606         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
20607         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
20608         with GEN_INT (...).
20609         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
20610         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
20611         with GEN_INT (...) everywhere.  Remove constraints in define_split
20612         patterns.
20613         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
20614         require scratch register for setting 0 into regs/non-pushable memory.
20615
20616 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
20617
20618         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
20619         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
20620
20621 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
20622
20623         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
20624         * cppinit.c (cpp_create_reader):  On by default.
20625         (cpp_handle_option):  Handle -W[no-]endif-labels.
20626         (cpp_post_options):  Also enable if -pedantic.
20627         * cpplib.c (do_else):  Use it.
20628         (do_endif):  Likewise.
20629         * doc/cppopts.texi:  Document new option.
20630         * doc/invoke.texi:  Document new option.
20631
20632 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
20633
20634         * config/i386/i386.c, config/i386/i386.md: Change all occurences
20635         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
20636
20637 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
20638
20639         * flow.c (calculate_global_regs_live): Clear aux fields of
20640         ENTRY and EXIT.
20641
20642 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
20643
20644         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
20645         REG or MEM subregs, pass rtx * instead of rtx to it.
20646         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
20647         rtx * instead of rtx to alter_subreg.
20648         * config/m32r/m32r.c (gen_split_move_double): Likewise.
20649         * config/pj/pj.c (pj_output_rval): Likewise.
20650
20651 2002-03-22  Richard Henderson  <rth@redhat.com>
20652
20653         PR target/3177
20654         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
20655         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
20656         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
20657         (ia64_expand_prologue): Look at int_regs, not words, for number
20658         of incomming int regs.
20659
20660 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
20661
20662         * expr.c (expand_expr): A RESULT_DECL is part of a call.
20663
20664 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
20665
20666         * toplev.c (flag_loop_optimize, flag_crossjumping):
20667         New static variables.
20668         (rest_of_compilation): Conditionalize crossjumping and
20669         loop optimizer.
20670         (parse_options_and_default_flags): Default loop_optimize and
20671         crossjumping.
20672         (lang_independent_options): Add -fcrossjumping and -floop-optimize
20673         * invoke.texi (crossjumping, loop-optimize): Document.
20674
20675 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20676
20677         * real.c (eiisneg): Move outside #ifdef NANS.
20678
20679 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
20680
20681         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
20682         frequencies match; avoid match on different loop depths.
20683         (try_crossjump_to_bb): Kill tests that no longer brings time
20684         savings.
20685         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
20686         updating code.
20687         (split_edge): Likewise.
20688
20689         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
20690         variable.
20691
20692         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
20693         * cfgrtl.c: Include insn-config.h
20694         (split_block) Dirtify block in presence of conditional execution
20695
20696 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20697
20698         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
20699         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
20700         (function_arg): Constify CUMULATIVE_ARGS.
20701         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
20702         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
20703         (UNITS_PER_DOUBLE): New macro.
20704         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
20705         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
20706         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
20707         fp_regs and stack_words.
20708         (EABI_FLOAT_VARARGS_P): New macro.
20709         * config/mips/mips.c (struct mips_arg_info): New.
20710         (mips_arg_info): New function.
20711         (function_arg_advance): Use it.  Add adjustment instructions here
20712         rather than in function_arg.
20713         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
20714         for VOIDmode at the beginning of the function.
20715         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
20716         (function_arg_pass_by_reference): Likewise.
20717         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
20718         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
20719         (mips_va_start): Likewise.  Use the new stack_words field of
20720         CUMULATIVE_ARGS to set up overflow area.  Reformat.
20721         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
20722         doubles and other types, aligning the overflow pointer for non-doubles
20723         too.  Remove some code duplication.  Replace hard-coded constants.
20724
20725 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20726
20727         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
20728         (CLASS_UNITS): Undefine.
20729         (CLASS_MAX_NREGS): Use FP_INC.
20730         * config/mips/mips.c (compute_frame_size): Likewise.
20731         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
20732
20733 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
20734
20735         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
20736         prototype, and handle lexing numbers and identifiers.
20737         (parse_identifier): Update to new form of parse_slow.
20738         (parse_number): Fast path only, use parse_slow otherwise.
20739         (_cpp_lex_direct): Update calls to parse_number.
20740
20741 2002-03-21  DJ Delorie  <dj@redhat.com>
20742
20743         * bb-reorder.c (make_reorder_chain_1): Protect against
20744         when redundant edges are omitted.
20745         * predict.c (dump_prediction): Likewise.
20746
20747 2002-03-21  Richard Henderson  <rth@redhat.com>
20748
20749         PR target/5996
20750         * fixinc/inclhack.def (solaris_stdio_tag): New.
20751         * fixinc/fixincl.x: Regenerate.
20752
20753 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
20754
20755         PR c/5597
20756         * c-typeck.c (process_init_element): Flag non-static
20757         initialization of a flexible array member as illegal.
20758
20759 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
20760
20761         * config/rs6000/t-linux64: New.
20762         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
20763         t-ppccomm.  Use t-rs6000 and t-linux64.
20764         (powerpc64-*-gnu* <tmake_file>): Likewise.
20765         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
20766         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
20767         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
20768
20769 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
20770
20771         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
20772         flag_really_no_inline instead of optimize == 0.
20773
20774         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
20775
20776         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
20777
20778         * flags.h (flag_really_no_inline): New.
20779
20780         * c-common.c (c_common_post_options): Initialize
20781         flag_really_no_inline.
20782
20783         * toplev.c (flag_really_no_inline): New.
20784
20785 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
20786
20787         * config/avr/avr.md (length): Fix length computation for
20788         conditional branches.
20789
20790 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
20791
20792         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
20793         sdbout.o, profile.o): Update.
20794         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
20795         langhook.
20796         * c-common.h (gettags): Move here from tree.h.
20797         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
20798         insert_block, getdecls, kept_level_p, global_bindings_p): New.
20799         * dbxout.c (dbxout_init): Use getdecls langhook.
20800         * expr.c (expand_expr): Use insert_block langhook.
20801         * fold-const.c: Include langhooks.h.
20802         (fold_range_test, fold_binary_op_with_conditional_arg,
20803         fold): Use global_bindings_p langhook.
20804         * integrate.c (expand_inline_function): Use insert_block langhook.
20805         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
20806         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
20807         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
20808         LANG_HOOKS_GETDECLS): New.
20809         (LANG_HOOKS_INITIALIZER): Update.
20810         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
20811         langhook.
20812         * langhooks.h (struct lang_hooks_for_decls): New.
20813         (struct lang_hooks): Update.
20814         * profile.c: Include langhooks.h.
20815         (output_func_start_profiler): Use new langhooks.
20816         * sdbout.c: Include langhooks.h.
20817         (sdbout_init, sdbout_finish): Use getdecls langhook.
20818         * stmt.c: Include langhooks.h.
20819         (expand_fixup, fixup_gotos): Use new langhooks.
20820         * stor-layout.c: Include langhooks.h.
20821         (variable_size): Use global_bindings_p langhook.
20822         * toplev.c (compile_file): Use getdecls langhook.
20823         * tree-inline.c (remap_block): Use insert_block langhook.
20824         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
20825         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
20826
20827 2002-03-21  Richard Henderson  <rth@redhat.com>
20828
20829         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
20830         constants in .data when -fpic.
20831
20832 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20833
20834         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
20835         where appropriate.
20836
20837 2002-03-21  Tom Tromey  <tromey@redhat.com>
20838
20839         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
20840
20841 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20842
20843         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
20844
20845         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
20846
20847 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
20848             Richard Henderson  <rth@redhat.com>
20849
20850         PR c/5354
20851         * c-common.c (c_expand_expr): Preserve result of a statement
20852         expression if needed.
20853
20854 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
20855
20856         PR bootstrap/4195
20857         * genrecog.c (maybe_both_true_mode): Remove.
20858         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
20859         * machmode.def (Pmode): Likewise.
20860
20861 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
20862
20863         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
20864         (nonlocal_mentioned_p_1): New function.
20865         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
20866         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
20867         (mark_constant_function): Recognize pure functions.
20868         * rtl.h (global_reg_mentioned_p): New prototype.
20869         * rtlanal.c (global_reg_mentioned_p,
20870         global_reg_mentioned_p_1): New function.
20871
20872 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20873
20874         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
20875         UNIX assert.h.
20876         * fixinc/fixincl.x: Regenerate.
20877
20878 2002-03-20  Jason Merrill  <jason@redhat.com>
20879
20880         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
20881
20882 2002-03-20  Michael Meissner  <meissner@redhat.com>
20883
20884         * doc/invoke.texi (Optimize Options): Document that -O2 sets
20885         -fstrict-aliasing.
20886
20887 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
20888
20889         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
20890         ".literal_position" directive before the constant pool.
20891
20892 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20893
20894         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
20895         Add Craig Rodrigues.
20896         Add Brad Lucier to testers.
20897
20898 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20899
20900         PR target/4792
20901         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
20902         to if_then_else.
20903         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
20904         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
20905         instead of insn_extract.
20906
20907 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20908
20909         PR bootstrap/4192
20910         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
20911
20912         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
20913         stmt if some case has been output.
20914
20915 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20916
20917         PR c/5972
20918         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
20919         movsfcc_1, movdfcc_1): Add %O2.
20920         * config/i386/i386.c (print_operand): Handle %ON.
20921         Print . before float condition codes in Sun as cmov syntax.
20922         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
20923         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
20924         no longer true.
20925
20926 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
20927
20928         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
20929         return instruction if PC was popped.
20930
20931 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
20932
20933         * config/xtensa/xtensa.md: Remove unused type attributes.
20934         (adddi_carry, subddi_carry): Change type attribute to "multi".
20935
20936 2002-03-19  Dale Johannesen  <dalej@apple.com>
20937
20938         PR optimization/5999, middle-end/5731
20939         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
20940         multiplications by reciprocals.
20941
20942 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20943
20944         * Makefile.in: Update.
20945         * c-common.c: Include langhooks.h.
20946         (inline_forbidden_p): Use new hook.
20947         * diagnostic.c: Include langhooks.h.
20948         (format_with_decl, announce_function,
20949         default_print_error_function): Use new hook.
20950         * dwarf2out.c (dwarf2_name): Use new hook.
20951         * function.c: Include langhooks.h.
20952         (init_function_start): Use new hook.
20953         * langhooks-def.h (lhd_decl_printable_name): New.
20954         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
20955         (LANGHOOKS_INITIALIZER): Update.
20956         * langhooks.c (lhd_decl_printable_name): New.
20957         * langhooks.h (struct lang_hooks): New hook.
20958         * toplev.c (decl_name, decl_printable_name): Remove.
20959         (open_dump_file): Use new hook.
20960         (process_options): Remove old hook.
20961         * tree.h (decl_printable_name): Remove.
20962 objc:
20963         * objc-act.c (objc_init): Remove old hook.
20964         (objc_printable_name): Export.
20965         * objc-act.h (objc_printable_name): New.
20966         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20967
20968 2002-03-19  Jim Blandy  <jimb@redhat.com>
20969
20970         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
20971         the start_source_file debug hook, not the current line number.
20972
20973 2002-03-19  Richard Henderson  <rth@redhat.com>
20974
20975         * flow.c (EH_USES): Provide default.
20976         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
20977         * doc/tm.texi (EH_USES): New.
20978
20979         * config/ia64/ia64.c (ia64_eh_uses): New.
20980         * config/ia64/ia64-protos.h: Update.
20981         * config/ia64/ia64.h (EH_USES): New.
20982
20983 2002-03-19  Richard Henderson  <rth@redhat.com>
20984
20985         * varasm.c (output_constant_def): Fix stupid typo.
20986
20987 2002-03-19  Richard Henderson  <rth@redhat.com>
20988
20989         PR 5879
20990         * except.c (current_function_has_exception_handlers): New.
20991         * except.h: Declare it.
20992         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
20993         Combine tests that disable all sibcalls for the function.
20994
20995 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
20996
20997         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
20998         for INTEGER_CST.
20999
21000 2002-03-19  Richard Henderson  <rth@redhat.com>
21001
21002         PR 5977, 5991
21003         * config/ia64/ia64.c: Revert 2002-03-01 patch.
21004         * config/ia64/ia64.h (INIT_EXPANDERS): New.
21005
21006 2002-03-19  Jim Blandy  <jimb@redhat.com>
21007
21008         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
21009         name, even if the replacement list contains no tokens, as required
21010         by Dwarf.
21011
21012 2002-03-19  Jason Merrill  <jason@redhat.com>
21013
21014         * varasm.c (globalize_decl): Get the name from the RTL, not
21015         DECL_ASSEMBLER_NAME.
21016
21017         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
21018
21019 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
21020
21021         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
21022         subdi_carry): Define.
21023
21024 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
21025
21026         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
21027         about -fpic/-fPIC if extra_warnings set.
21028
21029 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
21030
21031         * expr.c (expand_expr): Sign-extend CONST_INT generated from
21032         TREE_STRING_POINTER.
21033         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21034
21035 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21036
21037         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
21038         in favor of SP if FRAME_POINTER_REQUIRED is false.
21039
21040 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
21041
21042         * emit-rtl.c (gen_int_mode): New function.
21043         * rtl.h: Prototype for it.
21044         * combine.c (make_extraction, simplify_comparison), expmed.c
21045         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
21046         (convert_modes, store_field), optabs.c (expand_fix),
21047         simplify-rtx.c (neg_const_int, simplify_unary_real),
21048
21049         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
21050         Use it instead of GEN_INT (trunc_int_for_mode (...)).
21051
21052 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
21053
21054         PR c/5656
21055         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
21056         convert_parm_for_inlining.
21057         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
21058         Define.
21059         * langhooks-def.h: Likewise.
21060         * objc/objc-lang.c: Likewise.
21061         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
21062         function.
21063         * tree-inline.c (initialize_inlined_parameters):
21064         Call convert_parm_for_inlining lang hook if needed.
21065         * c-typeck.c (c_convert_parm_for_inlining): New function.
21066         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
21067
21068 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
21069
21070         * calls.c (precompute_arguments): Do not assume that temporaries
21071         can be destroyed after expanding the argument.
21072         (expand_call): Likewise.
21073
21074 2002-03-15  Eric Christopher  <echristo@redhat.com>
21075
21076         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
21077         Fix register preference on last change.
21078         * config/mips/mips.c (mips_return_in_memory): New function.
21079         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
21080         * config/mips/mips-protos.h: Declare.
21081         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
21082         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
21083
21084 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
21085
21086         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
21087         a register too.
21088         (anddi3, iorsi3): Likewise.
21089
21090         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
21091         use %gprel for symbols that are going to be placed in linkonce
21092         sections.
21093
21094         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
21095         RETURN_ADDRESS_POINTER_REGNUM to $ra.
21096         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
21097         not needed.  Disregard leaf_function_p().
21098         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
21099         mips16 frame pointer.
21100         * config/mips/mips.md (store ra): Only to small SP offsets.
21101         2001-08-22  Graham Stott  <grahams@redhat.com>
21102         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
21103         return a REG rtx for the return address register.
21104
21105 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
21106
21107         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
21108         constant-pool addresses as "mode-dependent".
21109         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
21110
21111 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
21112
21113         PR target/5740
21114         * expr.c (emit_group_load): Use extract_bit_field if
21115         needed for CONCAT arguments.
21116
21117 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
21118
21119         PR target/4863
21120         * arm.md (tablejump): Make this a define_expand.  For PIC add the
21121         offset to the base of the table.
21122         (thumb_tablejump): Matcher for Thumb tablejump insn.
21123         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
21124         as the difference of two labels.
21125         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21126         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
21127         tables in the code.
21128         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
21129         * arm.c (get_jump_table_size): If the table is not in the text
21130         section, return zero.
21131
21132 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
21133
21134         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
21135         of gen_rtx_SUBREG.
21136         (arm_reload_out_hi): Use gen_lowpart instead of
21137         gen_rtx_SUBREG to access QImode components.
21138         * config/arm/arm.md: Disable zero_extend split for QImode
21139         subregs in BIG_ENDIAN mode.
21140         (storehi_bigend): Match use of least significant byte.
21141         (storeinthi): Remove extraneous SUBREG.
21142         Add missing construction of operands[2].
21143         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
21144         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
21145         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
21146
21147 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
21148
21149         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
21150         any_operand.
21151
21152 2002-03-17  Richard Henderson  <rth@redhat.com>
21153
21154         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
21155         explicitly.
21156
21157 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
21158
21159         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
21160         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
21161
21162 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21163
21164         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
21165
21166         * predict.c (estimate_bb_frequencies): Delete unused variables.
21167
21168 2002-03-17  Richard Henderson  <rth@redhat.com>
21169
21170         * config/ia64/ia64.c (ia64_attribute_table): Move before
21171         targetm definition.  Make static.
21172
21173 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
21174
21175         * c-common.h (yyparse, c_common_parse_file): New.
21176         * c-lang.c: Include c-common.h.
21177         (LANG_HOOKS_PARSE_FILE): Redefine.
21178         * c-lex.c: Include c-common.h.
21179         (yyparse): Rename c_common_parse_file.  Call yyparse.
21180         * c-parse.in (yyparse): Remove macro.
21181         * c-tree.h (yyparse_1): Remove.
21182         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
21183         (LANG_HOOKS_INITIALIZER): Update.
21184         * langhooks.h (struct lang_hoooks): New hook parse_file.
21185         * toplev.c (compile_file): Use parse_file hook.
21186         * tree.h (yyparse): Remove.
21187         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
21188
21189 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
21190
21191         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
21192         float_truncate, not fix.
21193         ("*truncdfsf2_real"): Ditto.
21194         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
21195
21196         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
21197
21198 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
21199
21200         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
21201         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
21202         where appropriate.  Make the second reference to
21203         leaf_function_p a function call, as intended.  Reindented.
21204
21205         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
21206         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
21207
21208         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
21209         add register to non-constant into sp.
21210
21211         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
21212         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
21213         (mips16_gp_pseudo_rtx): Lose.
21214         (INIT_EXPANDERS): Deleted.
21215         * config/mips/mips.c (mips_init_machine_status): New.
21216         (mips_free_machine_status): New.
21217         (mips_mark_machine_status): New.
21218         (override_options): Set them.
21219         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
21220         (struct machine_function): ... new.  Replaced all references.
21221         (mips_add_gc_roots): Don't mark them.
21222         (embedded_pic_fnaddr_reg): New, extracted from...
21223         (embedded_pic_offset): ... here.
21224         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
21225         (movsi): Likewise.
21226
21227 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
21228
21229         * cppinit.c: Revert -MD removal.
21230
21231 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21232
21233         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
21234         soft registers by default for 68HC12.
21235         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
21236         when compiling with -fomit-frame-pointer.
21237         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
21238         (expand_epilogue): Likewise.
21239         (m68hc11_gen_rotate): Use exg when rotating by 8.
21240
21241 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21242
21243         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
21244         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
21245         (splits): Remove unused add splits.
21246         ("*addhi3_68hc12"): Tune constraints.
21247         ("addhi_sp"): Try to use X instead of Y in all cases and if the
21248         constant fits in 8-bits and D is dead use abx/aby instructions.
21249         ("*addhi3"): Remove extern declaration of ix_reg.
21250         ("*subsi3"): Optimize and provide new split.
21251         ("subhi3"): Cleanup.
21252         ("*subhi3_sp"): Avoid saving X if we know it is dead.
21253         (arith splits): For 68hc12 save the address register on the stack
21254         and do the arithmetic operation with a pop.
21255
21256 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21257
21258         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
21259         allocating QImode in address registers.
21260         ("*movqi_m68hc11"): Likewise.
21261
21262 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
21263
21264         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
21265
21266 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
21267
21268         * cppinit.c (print_help): Display -MD and -MMD.
21269         Don't display usage string.  Update assertion syntax and
21270         typo.
21271         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
21272         (cpp_handle_option): Update.
21273
21274 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
21275
21276         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
21277         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
21278         and define it so that regardless of target CPU size,
21279         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
21280         of "int" rather than "long."
21281
21282 2002-03-15  Richard Henderson  <rth@redhat.com>
21283
21284         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
21285         size as a tree.
21286
21287 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21288
21289         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
21290         ("tstqi" split): Avoid using memory for tstqi on address register.
21291         (splits): Remove constraints.
21292         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
21293         ("cmpdf", "cmpsf"): Remove since not used.
21294         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
21295         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
21296
21297 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21298
21299         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
21300         ("neghi2"): Tighten constraints.
21301         ("one_cmplsi2"): Optimize and simplify split.
21302         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
21303
21304 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21305
21306         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
21307         and split of AND operation to clear the upper bits.
21308         ("*logicalsi3_zextqi"): Likewise.
21309         ("*logicallhi3_zexthi_ashift8"): Likewise.
21310         ("*logicalsi3_silshr16"): Likewise.
21311         ("logicalsi3_silshl16"): Likewise.
21312         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
21313
21314 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21315
21316         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
21317         (m68hc11_indirect_p): New function.
21318         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
21319         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
21320         TARGET_M6812.
21321         (asm_print_register): Likewise.
21322         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
21323         (m68hc11_indirect_p): Declare.
21324         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
21325         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
21326         (TARGET_SWITCHES): New option -mrelax.
21327         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
21328         destination.
21329         ("iorsi3", "xorsi3"): Likewise.
21330         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
21331         ("*andhi3_mem"): New to handle destination in memory with bclr
21332         and a scratch register.
21333         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
21334         ("*andhi3_const"): New when operand2 is constant.
21335         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
21336         ("*andhi3_gen"): Cleanup of the old "andhi3".
21337         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
21338         ("xorqi3"): Update constraints.
21339
21340 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21341
21342         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
21343         for reg_equiv_memory_loc when the operand is a register that does
21344         not get a hard register (stack location).
21345         (tst_operand): After reload, accept all memory operand.
21346         (symbolic_memory_operand): Fix detection of symbolic references.
21347         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
21348         accept symbols and any constant.
21349
21350 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21351
21352         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
21353         note on the insn that sets the soft frame register.
21354         (must_parenthesize): ix and iy are also reserved names.
21355         (print_operand_address): One more place where parenthesis are required
21356         to avoid confusion with register names.
21357         (m68hc11_gen_movhi): Allow push of stack pointer.
21358         (m68hc11_check_z_replacement): Fix handling of parallel with a
21359         clobber.
21360         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
21361         the replacement register is.
21362         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
21363         and D8_REGS classes.
21364         (MODES_TIEABLE_P): All modes are tieable except QImode.
21365
21366 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21367
21368         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
21369         (___subdi3): Likewise.
21370         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
21371         (__map_data_section): Optimize 68hc11 case.
21372
21373 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21374
21375         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
21376         than a shift to avoid adding a register with itself.
21377         (m68hc11_memory_move_cost): Take into account NO_REGS.
21378         (m68hc11_register_move_cost): Update and use memory move cost
21379         for soft registers.
21380         (m68hc11_address_cost): Make cost of valid offset not 0 so that
21381         it gives more opportunities to cse to optimize.
21382         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
21383         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
21384
21385 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
21386
21387         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
21388         * c-common.def (CLEANUP_STMT): New tree node.
21389         * c-common.h (CLEANUP_DECL): New macro.
21390         (CLEANUP_EXPR): Likewise.
21391         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
21392         * expr.c (expand_expr): Tidy.
21393         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
21394         * tree-inline.c (initialize_inlined_parameters): Clean up
21395         new local variables.
21396
21397 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
21398
21399         PR bootstrap/4128
21400         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
21401         before movrXX only, use reg_overlap_mentioned_p.
21402         Only special case NE if just one insn can be generated.
21403
21404 2002-03-15  Jason Merrill  <jason@redhat.com>
21405
21406         * varasm.c (assemble_variable): Call resolve_unique_section before
21407         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
21408         of error_mark_node.
21409
21410 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
21411
21412         PR target/5170
21413         * arm.md (split pattern for thumb shiftable immediates): Add comment
21414         explaining non-obvious test.
21415
21416 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
21417
21418         PR target/5712
21419         * arm.md (movaddr, movaddr_insn): Delete.
21420
21421 2002-03-15  Jason Merrill  <jason@redhat.com>
21422
21423         * toplev.c (wrapup_global_declarations): Clarify variable handling.
21424         -fkeep-static-consts doesn't apply to comdats.
21425
21426 2002-03-14  Richard Henderson  <rth@redhat.com>
21427
21428         * c-decl.c: Include c-pragma.h.
21429         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
21430         (finish_function): Tidy.
21431         * c-pragma.c: Include c-common.h.
21432         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
21433         (handle_pragma_weak): Use them.
21434         (init_pragma): Register pending_weaks.
21435         * c-pragma.h (maybe_apply_pragma_weak): Declare.
21436         * print-tree.c (print_node): Print DECL_WEAK.
21437         * varasm.c (mark_weak_decls): Remove.
21438         (remove_from_pending_weak_list): Remove.
21439         (add_weak): Remove.
21440         (asm_emit_uninitialised): Call globalize_decl for weak commons.
21441         (weak_decls): Make a tree_list.
21442         (declare_weak): Cons weak_decls directly.
21443         (globalize_decl): Remove weak_decls elements directly.
21444         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
21445         symbols.  Don't pretend to handle aliases.
21446         (init_varasm_once): Update weak_decls registry.
21447         * Makefile.in: Update dependencies.
21448
21449 2002-03-14  Richard Henderson  <rth@redhat.com>
21450
21451         PR target/5312
21452         * config/ia64/ia64.c: Include tm_p.h last.
21453         (gen_nop_type): Remove duplicate definition.
21454         (cycle_end_fill_slots): Set sched_data for second L slot.
21455         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
21456         (nop_cycles_until): Fix typos.
21457
21458 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
21459
21460         PR optimization/5891
21461         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
21462
21463 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
21464
21465         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
21466           descriptors correctly.
21467
21468 2002-03-14  Michael Meissner  <meissner@redhat.com>
21469
21470         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
21471         100, allowing MAX_UNROLLED_INSNS to be overridden.
21472
21473         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
21474         --param.
21475
21476         * unroll.c (params.h): Include.
21477         (MAX_UNROLLED_INSNS): Delete, now in params.h.
21478
21479         * doc/invoke.texi (--param max-unroll-insns): Document.
21480
21481         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
21482
21483 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
21484
21485         * arm.md: Fix warnings about constraints in peepholes and splits.
21486
21487 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
21488
21489         * cpphash.h (struct lexer_state): Remove line_extension member.
21490         * cpplib.c (dequote_string, do_linemarker): New functions.
21491         (linemarker_dir): New data object.
21492         (DIRECTIVE_TABLE): No longer need to interpret #line in
21493         preprocessed source.  Delete obsolete comment about return
21494         values of handlers.
21495         (end_directive, directive_diagnostics, _cpp_handle_directive):
21496         Don't muck with line_extension.
21497         (directive_diagnostics): No need to issue warnings for
21498         linemarkers here.
21499         (_cpp_handle_directive): Issue warnings for linemarkers here,
21500         when appropriate.  Dispatch linemarkers to do_linemarker, not
21501         do_line.
21502         (do_line): Code to handle linemarkers split out to do_linemarker.
21503         Convert escape sequences in filename argument, both places.
21504
21505         * cppmacro.c (quote_string): Rename cpp_quote_string and
21506         export.  All callers changed.
21507         * cpplib.h (cpp_quote_string): Prototype.
21508         * cppmain.c (print_line): Call cpp_quote_string on to_file
21509         before printing it.
21510
21511         * doc/cpp.texi: Document that escapes are now interpreted in
21512         #line and in linemarkers, and that non-printing characters are
21513         converted to octal escapes when linemarkers are generated.
21514
21515 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
21516
21517         * emit-rtl.c (try_split): Use delete_insns.
21518         * recog.c (split_all_insns): Fix terminating condition.
21519
21520 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
21521             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
21522
21523         PR target/5828
21524         * arm.c (arm_output_epilogue): Fix floating-point register save
21525         adjustment when using a frame pointer.
21526
21527 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
21528
21529         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
21530         * config/mips/mips.c (compute_frame_size): Retrofit them here.
21531         (save_restore_insns, mips_expand_epilogue): And here.
21532         (build_mips16_call_stub): And here.
21533         (mips_function_value): Use the new macros to decide whether a single
21534         or complex float can be returned in floating-point registers.  Return
21535         a parallel rtx in the complex case.
21536
21537 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
21538
21539         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
21540         call after liveness analysis.
21541
21542         * recog.c (split_insn): Use delete_insn_and_edges.
21543
21544         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
21545         instructions to have branch prediction notes.
21546         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
21547
21548 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
21549
21550         * configure.in: Don't pass -Wno-long-long to a ADA compiler
21551         that doesn't support it.
21552         * configure: Regenerate.
21553
21554 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21555
21556         PR target/5626
21557         * config/sparc/sparc.md (normal_branch, inverted_branch,
21558         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
21559         inverted_fp_branch): Adjust calls to output_cbranch.
21560         Set length attribute.
21561         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
21562         output_v9branch.  Set length attribute.
21563         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
21564         predicates.
21565         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
21566         (output_cbranch): Likewise.  Handle far branches.
21567         (output_v9branch): Handle far branches.
21568         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
21569         Adjust prototypes.
21570         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
21571         noov_compare64_op predicates.
21572
21573 2002-03-13  Jason Merrill  <jason@redhat.com>
21574
21575         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
21576         into the function and constify it.
21577         * gthr-dce.h, gthr-solaris.h: Likewise.
21578
21579 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
21580
21581         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
21582         * config/rs6000/rs6000.c (rs6000_va_arg): Use
21583         std_expand_builtin_va_arg if not ABI_V4.
21584
21585 2002-03-13  Jason Merrill  <jason@redhat.com>
21586
21587         * varasm.c (globalize_decl): New fn.
21588         (assemble_start_function): Use it.
21589         (asm_emit_uninitialized): Use it.
21590         (assemble_alias): Use it.
21591         (assemble_variable): Use it.
21592
21593 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
21594
21595         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
21596         2002-03-12 internal visibility change.
21597         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
21598         visibility into SYMBOL_REF_FLAG.
21599
21600 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
21601
21602         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
21603         VOIDmode operand.  Add compile-time optimization for constant results.
21604
21605 2002-03-12  Jason Merrill  <jason@redhat.com>
21606
21607         * c-typeck.c (convert_for_assignment): Don't allow conversions
21608         between pointers and references.  Only allow lvalues to convert to
21609         reference.
21610
21611 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
21612
21613         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
21614         before prologue, to avoid scheduling problems.
21615
21616 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21617
21618         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
21619         (ELIMINABLE_REGS): Add sfp->sp.
21620         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
21621
21622 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21623
21624         PR optimization/5892
21625         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
21626
21627 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21628
21629         * loop.c (basic_induction_var): Don't call convert_modes if mode
21630         classes are different.
21631
21632 2002-03-12  Richard Henderson  <rth@redhat.com>
21633
21634         PR optimization/5901
21635         * function.c (reposition_prologue_and_epilogue_notes): Position
21636         the markers after/before the last/first insn not deleted.
21637
21638 2002-03-12  Richard Henderson  <rth@redhat.com>
21639
21640         PR optimization/5878
21641         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
21642         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
21643         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
21644
21645         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
21646         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
21647         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
21648
21649         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
21650         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
21651         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
21652         also.  Don't set it if not flag_pic.
21653         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
21654         to be INVALID_REGNUM when not used.
21655
21656 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
21657
21658         * expmed.c (store_bit_field): Reset alias set for memory.
21659         (extract_bit_field): Same.
21660
21661 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21662
21663         * c-common.c (c_tree_code_type, c_tree_code_length,
21664         c_tree_code_name, add_c_tree_codes): Delete.
21665         * c-common.h (add_c_tree_codes): Delete.
21666         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
21667         Define.
21668         * c-objc-common.c (c_objc_common_init): Don't call
21669         add_c_tree_codes, instead set lang_unsafe_for_reeval.
21670         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21671         objc_tree_code_name, add_objc_tree_codes): Delete.
21672         (objc_init): Don't call add_objc_tree_codes.
21673         * objc/objc-lang.c (tree_code_type, tree_code_length,
21674         tree_code_name): Define.
21675         * toplev.c (lang_independent_init): Don't set
21676         tree_code_length[IDENTIFIER_NODE].
21677         * tree.c (tree_code_type, tree_code_length, tree_code_name):
21678         Delete definitions, moved to language front-ends.
21679         * tree.def (IDENTIFIER_NODE): Hardwire the length.
21680         * tree.h (tree_code_type, tree_code_length, tree_code_name):
21681         Const-ify.
21682         (tree_code_length): Change type to unsigned char.
21683
21684 2002-03-12  Richard Henderson  <rth@redhat.com>
21685
21686         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
21687         internal visibility change.
21688
21689 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21690
21691         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
21692         validize_mem() instead of change_address to avoid clobbering
21693         memory attributes.
21694
21695 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
21696
21697         * c-lex.h (position_after_whitespace): Remove.
21698
21699 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
21700
21701         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
21702         (lex_string): Use unsigned char pointers.
21703
21704 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
21705
21706         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
21707         is not a valid memory_operand.
21708
21709 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21710
21711         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
21712         * config/xtensa/lib1funcs.asm: Fix copyright to include
21713         special case for libgcc files.
21714         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
21715         (__divsi3): Likewise.
21716         (__umodsi3): Likewise.
21717         (__modsi3): Likewise.
21718         * config/xtensa/lib2funcs.S: Fix copyright to include
21719         special case for libgcc files.
21720
21721 2002-03-12  Tom Rix  <trix@redhat.com>
21722
21723         * collect2.c (resolve_lib_name): Move outside of
21724         OBJECT_FORMAT_COFF ifdef.
21725         (ignore_library): Same.
21726
21727 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21728
21729         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
21730
21731 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21732
21733         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
21734         to function_section before writing out the constant pool.
21735
21736 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
21737
21738         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
21739         zero_constant.
21740         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
21741
21742 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
21743
21744         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
21745         (adddi3): Likewise.
21746         (movdf): Likewise.
21747         (movdi): Likewise.
21748         (cmpsi splitter): Likewise.
21749         (modsi3): Fail if <= 0.
21750         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
21751         redundant test when HOST_BITS_PER_WIDE_INT != 32.
21752         (reg_or_sub_cint64_operand): Likewise.
21753         (num_insns_constant_wide): Optimize sign extension.
21754         (rs6000_legitimize_address): Likewise.
21755
21756 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
21757
21758         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21759         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21760
21761 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
21762
21763         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
21764         address calculation.
21765
21766 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
21767
21768         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
21769         scratch register to DImode / TImode.
21770         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
21771         register used does not overlap the target.
21772
21773 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21774
21775         * Makefile.in (debug.o): Depend on debug.h.
21776         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
21777         * debug.c (do_nothing_debug_hooks): Likewise.
21778         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
21779         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
21780         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
21781         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
21782         * dwarfout.c (dwarf_debug_hooks): Likewise.
21783         * integrate.c (output_inline_function): Likewise.
21784         * objc/objc-act.c (synth_module_prologue): Likewise.
21785         * sdbout.c (sdb_debug_hooks): Likewise.
21786         * toplev.c (debug_hooks): Likewise.
21787         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21788
21789 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21790
21791         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
21792         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
21793         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
21794         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
21795         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
21796         * defaults.h (POINTER_SIZE): Define.
21797         * doc/tm.texi (POINTER_SIZE): Document default.
21798
21799 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21800
21801         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
21802
21803 2002-03-11  Richard Henderson  <rth@redhat.com>
21804
21805         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
21806         if rebuild_label_notes_after_reload.
21807
21808 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
21809
21810         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
21811         emit pic register load if "internal" visibility.
21812         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
21813         (cris_expand_builtin_va_arg): Do all computations on trees.
21814
21815 2002-03-11  Richard Henderson  <rth@redhat.com>
21816
21817         * rtlanal.c: Include recog.h.
21818         (keep_with_call_p): Fix thinko.
21819         * Makefile.in (rtlanal.o): Update dependencies.
21820
21821 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
21822
21823         * genflags.c (gen_insn): Use IS_VSPACE.
21824         * genoutput.c (output_insn_data): Likewise.
21825         (process_template): Likewise.
21826
21827 2002-03-11  Richard Henderson  <rth@redhat.com>
21828
21829         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
21830
21831 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
21832
21833         * Makefile.in: Update.
21834         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
21835         Update documentation.
21836         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
21837         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
21838
21839 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
21840
21841         * Makefile.in: Give texi2pod its input file as a command line
21842         argument, not on stdin.
21843
21844 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
21845             Daniel Berlin  <dan@dberlin.org>
21846
21847         C++ alias analysis improvement.
21848         * alias.c (record_component_aliases): Record aliases for base
21849         classes too.
21850
21851 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
21852
21853         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
21854
21855 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
21856
21857         * toplev.c (vms_fopen): Remove, not needed.
21858
21859         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
21860
21861         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
21862
21863         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
21864         for FP, already done later.
21865
21866         * toplev.c (debug_args): Add entry for VMS_DEBUG.
21867         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
21868
21869 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
21870
21871         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
21872         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
21873         LARGEST_EXPONENT_IS_NORMAL for the given mode.
21874         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
21875         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
21876         (ediv, emul, eldexp, esqrt): Likewise.
21877         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
21878         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
21879         (saturate): New function.
21880         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
21881         (make_nan): Use a saturation value instead of a NaN if
21882         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
21883         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
21884         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
21885         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
21886         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
21887         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
21888         !ROUND_TOWARDS_ZERO.
21889         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
21890         (ROUND_TOWARDS_ZERO): Document.
21891
21892 2002-03-11  Andreas Jaeger  <aj@suse.de>
21893
21894         * cfg.c (dump_flow_info): Remove unused variable.
21895
21896 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
21897
21898         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
21899         computations on trees.
21900
21901 2002-03-10  Richard Henderson  <rth@redhat.com>
21902
21903         PR 5693:
21904         * reload.c (copy_replacements_1): New.
21905         (copy_replacements): Use it to recurse through the rtx.
21906
21907 2002-03-10  Richard Henderson  <rth@redhat.com>
21908
21909         * loop.c (strength_reduce): Compute number of iterations as
21910         unsigned HOST_WIDE_INT.
21911
21912 2002-03-10  Richard Henderson  <rth@redhat.com>
21913
21914         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
21915         to move away from the end of the block.
21916
21917 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
21918
21919         PR preprocessor/5899
21920         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
21921
21922 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21923
21924         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
21925
21926         * attribs.c (decl_attributes): Fix signed/unsigned warning.
21927
21928 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
21929
21930         * config/mmix/mmix.c: Improve comments.
21931         (mmix_target_asm_function_prologue): Drop variable
21932         empty_stack_frame.  Don't allocate unused slot above fp.
21933         (mmix_target_asm_function_epilogue): Mirror prologue changes.
21934         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
21935         brace in first column.
21936         (enum reg_class): Ditto.
21937         (FIRST_PARM_OFFSET): Now 0.
21938         (USER_LABEL_PREFIX): Remove #if 0:d definition.
21939
21940 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21941
21942         * combine.c (make_extraction): Fix error in last change.
21943
21944 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21945
21946         * c4x.c (c4x_fp_reglist): Const-ify.
21947         * cris.c (cris_print_operand): Likewise.
21948         * i386.c (ix86_va_arg): Likewise.
21949         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
21950         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
21951         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
21952         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
21953         * mcore.h (regno_reg_class): Likewise.
21954         * mips.c (gen_int_relational): Likewise.
21955         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
21956         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
21957         * pdp11.c (move_costs): Likewise.
21958         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
21959         * s390.c (s390_branch_condition_mnemonic, regclass_map):
21960         Likewise.
21961         * s390.h (regclass_map): Likewise.
21962         * sh.c (shift_amounts): Likewise.
21963         * sh.md (rotlsi3): Likewise.
21964
21965 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21966
21967         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
21968         (ne0+5): Use new clobber to generate proper shift pattern.
21969         Patch by Michael Matz <matz@kde.org>.
21970
21971 2002-03-09  Andreas Schwab  <schwab@suse.de>
21972
21973         * gcc.c (validate_all_switches): Also handle `%W{...}'.
21974
21975 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21976
21977         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
21978
21979 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
21980
21981         PR middle-end/5877
21982         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
21983         even for non-representable constants.
21984
21985 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21986
21987         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
21988         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
21989         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
21990         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
21991         (pop_function_context): Compute MAY_SHARE parameter for
21992         fixup_var_refs.
21993         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
21994         (gen_mem_addressof): Call fixup_var_refs with new parm.
21995
21996         * combine.c (make_extraction): Don't make extension of CONST_INT.
21997
21998 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21999
22000         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
22001         in o32 and o64 ABIs.
22002         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
22003         but getting fixed-size structs passed in registers regardless of
22004         padding in o32 and o64 ABIs.
22005
22006         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
22007         offset before loading address of argument passed by transparent
22008         reference.
22009
22010 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22011
22012         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
22013
22014 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
22015
22016         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
22017         marker such that registers after it are saved.
22018
22019 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22020
22021         * sparc.c (arith_4096_operand): Fix error in last change.
22022
22023 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
22024
22025         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
22026         defaults for MEABI.
22027
22028 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
22029
22030         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
22031         vectors.
22032
22033 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
22034
22035         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
22036
22037 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
22038
22039         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
22040         removed; fix return value.
22041         * combine.c (combine_instructions): Dirtify blocks where we failed to
22042         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
22043         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
22044
22045 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22046
22047         * gcse.c (insert_insn_end_bb): Fix typo in last change.
22048
22049 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
22050
22051         * recog.c (peephole2_optimize): Re-distribute EH edges.
22052
22053 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
22054
22055         * expr.c (expand_expr): Use unsave lang hook.
22056         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
22057         (LANG_HOOKS_INITIALIZER): Update.
22058         * langhooks.h (struct lang_hooks): New hook unsave.
22059         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
22060         (unsave_expr_1): Remove unused lang_unsave_expr_now.
22061         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
22062         (unsave_expr_now): Remove.
22063         * tree.h (unsave_expr_now, lang_unsave,
22064         lang_unsave_expr_now): Remove.
22065         (lhd_unsave): New.
22066
22067 2002-03-08  Andreas Jaeger  <aj@suse.de>
22068
22069         * flow.c (propagate_block_delete_insn): Remove unused variable.
22070
22071 2002-03-08  Kazu Hirata  <kazu@hxi.com>
22072
22073         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
22074         insn length for memory load/store.
22075
22076 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22077
22078         * doc/install.texi (--with-libiconv-prefix): Document.
22079
22080 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
22081
22082         * doc/sourcebuild.texi: Fix typo.
22083
22084 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
22085
22086         PR c/3711
22087         * builtins.c (std_expand_builtin_va_arg): Do all computations on
22088         trees.
22089
22090 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22091
22092         * rtl.c (copy_most_rtx): Move from here ...
22093         * emit-rtl.c (copy_most_rtx): ... to here.
22094
22095 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
22096
22097         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
22098         SUBTARGET_CPP_SIZE_SPEC.
22099         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
22100
22101         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
22102
22103 2002-03-07  Matt Hiller  <hiller@redhat.com>
22104
22105         * gensupport.c (first_dir_md_include): Renamed from include;
22106         change all references.
22107         (last_dir_md_include): Renamed from last_include; change all
22108         references.
22109         (init_md_reader): Unconditionally initialize base_dir whether or
22110         not filename is a relative path.
22111
22112 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
22113
22114         * config/fp-bit.c (_unord_f2): Compile it in even if
22115         US_SOFTWARE_GOFAST is enabled.
22116
22117         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
22118         NULL_RTX.  Set all HFmode operations as NULL_RTX.
22119         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
22120         NULL_RTX, try reversing the comparison and the operands.
22121
22122 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
22123
22124         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
22125         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
22126         and MATCH_OP_DUP.
22127
22128 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
22129
22130         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
22131
22132 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
22133
22134         * basic-block.h (fixup_abnormal_edges): Declare.
22135         * reload1.c (fixup_abnormal_edges): New function.
22136         * reg-stack.c (convert_regs): Use it.
22137
22138         * gcse.c (insert_insn_end_bb): Handle trapping insns.
22139
22140         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
22141
22142 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
22143
22144         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
22145         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
22146         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
22147         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
22148         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
22149         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
22150         unless x and y could be infinite.
22151         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
22152         Check that the common type of both arguments is a real, even for
22153         targets without unordered comparisons.  Allow an integer argument
22154         to be compared against a real.
22155         (expand_tree_builtin): Use expand_unordered_cmp.
22156         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
22157         * cse.c (fold_rtx): Likewise.  Fix indentation.
22158         * fold-const.c (fold_real_zero_addition_p): New.
22159         (fold): Use it, and the new HONOR_... macros.
22160         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
22161         * jump.c (reversed_comparison_code_parts): After searching for
22162         the true comparison mode, use HONOR_NANS to decide whether it
22163         can be safely reversed.
22164         (reverse_condition_maybe_unordered): Remove IEEE check.
22165         * simplify-rtx.c (simplify_binary_operation): Use the new macros
22166         to decide which simplifications are valid.  Allow the following
22167         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
22168         and (a - -b) to (a + b).
22169         (simplify_relational_operation): Use HONOR_NANS.
22170         * doc/tm.texi: Document the MODE_HAS_... macros.
22171
22172 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
22173
22174         * combine.c (simplify_comparison): If simplifying a logical shift
22175         right and compare with constant, force the comparison to unsigned.
22176
22177 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
22178
22179         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
22180
22181         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
22182         -mabi=no-altivec
22183         (alt_reg_names): Remove % for vrsave.
22184
22185 2002-03-06  Richard Henderson  <rth@redhat.com>
22186
22187         PR optimization/5844
22188         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
22189         if used indicates we've already emitted one copy of an operand.
22190         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
22191         (gen_split): Supply a non-null used.
22192
22193 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
22194
22195         * reload1.c (reload): Unshare all rtl after reload is done.
22196
22197         * simplify-rtx.c (simplify_plus_minus): Do not abort,
22198         but simply fail if the expression is too complex to simplify.
22199         (simplify_gen_binary): Handle simplify_plus_minus failures.
22200
22201 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
22202
22203         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
22204         consistently call delete_trivially_dead_insns after CSE and GCSE;
22205         fix DFI_life dumping; do jump threading after liveness; do crossjumping
22206         after liveness2; update comment in last crossjumping.
22207         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
22208
22209 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
22210
22211         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
22212         after completing fast dead code elimination.
22213
22214         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
22215         COMPARE operator.
22216
22217 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
22218
22219         * version.c:  Fix misplaced leading blanks on first line.
22220
22221 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
22222
22223         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
22224
22225 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
22226
22227         * cfgcleanup.c (mentions_nonequal_regs): New function.
22228         (thread_jump): Use it.
22229         * toplev.c (rest_of_compilation): Run jump threading after
22230         liveness.
22231
22232 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
22233
22234         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
22235         patch.
22236
22237 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
22238
22239         * predict.c (estimate_bb_frequencies): Do not reload the
22240         frequencies from notes.
22241
22242 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
22243
22244         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
22245         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
22246
22247         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
22248         delete_noop_moves): Return indeger.
22249         * flow.c (ndead): New variable.
22250         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
22251         BB argument; update callers.
22252         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
22253         (life_analysis): Do not call purge_all_dead_edges.
22254         (update_life_info): Return number of deleted insns; print statistics.
22255         (update_life_info_in_dirty_blocks): likewise.
22256         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
22257         return number of insns deleted.
22258
22259         * cse.c: Include timevar.h
22260         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
22261         iterate until stabilizes; print statistics; return number of killed
22262         insns.
22263         * Makefile.in: (cse.o): Add timevar.h dependency
22264         * rtl.h (delete_trivially_dead_insns): New.
22265         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
22266         * toplev.c (rest_of_compilation): Update callers.
22267
22268         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
22269         (try_optimize_cfg): Do not update liveness.
22270         (cleanup-cfg): Loop until try_optimize_cfg and dead code
22271         removal stabilizes; use delete_trivially_dead_insns.
22272
22273         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
22274
22275 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
22276
22277         * cppmain.c (setup_callbacks): Disable #pragma and #ident
22278         callbacks when processing assembly language.
22279
22280 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22281
22282         * pa.h (ASM_FILE_END): Define.
22283         * som.h (ASM_FILE_END): Delete.
22284
22285         * pa.c (function_arg): Don't pass floats in general registers in
22286         indirect calls if TARGET_ELF32.
22287
22288 2002-03-05  Richard Henderson  <rth@redhat.com>
22289
22290         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
22291
22292 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
22293
22294         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
22295
22296 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22297
22298         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
22299         -r command line.  Don't hide any symbols if not building
22300         shared libgcc.
22301
22302 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
22303
22304         * cfg.c (dump_flow_info): Warn about profile mismatches.
22305         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
22306         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
22307
22308 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22309
22310         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
22311         wide volatile memory by parts.
22312
22313 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22314
22315         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
22316         is NULL.
22317
22318 2002-03-05  Richard Henderson  <rth@redhat.com>
22319
22320         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
22321
22322 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
22323
22324         * toplev.c (documented_lang_options): Document more
22325         language-specific options.
22326         * doc/invoke.texi (Warning Options): Correct documentation for
22327         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
22328         * c-decl.c (c_decode_option): Use a table to handle warning options.
22329
22330 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
22331
22332         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
22333         parameter to mmix_encode_section_info.
22334         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
22335         relocatably.  Always produce ELF, not mmo if linking relocatably.
22336         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
22337         first is non-zero, don't add symbol prefix.
22338         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
22339         prototype accordingly.
22340
22341 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
22342
22343         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
22344
22345 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
22346
22347         * configure.in: Increase required makeinfo version to 4.1.
22348         * configure: Regenerate.
22349
22350 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
22351
22352         * .cvsignore: Remove *.info* and genrtl*; these files are generated
22353         elsewhere now.
22354
22355 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
22356
22357         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
22358         * doc/invoke.texi: Fix @math uses.
22359
22360 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
22361
22362         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
22363         removal
22364
22365 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
22366
22367         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
22368         (powerpc-*-eabisimaltivec*): Same.
22369
22370         * config/rs6000/t-ppcendian: New.
22371
22372 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22373
22374         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
22375         nonimmediate_src_operand and nonimmediate_lsrc_operand to
22376         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
22377
22378 2002-03-03  Richard Henderson  <rth@redhat.com>
22379
22380         * toplev.c (rest_of_decl_compilation): Revert last two changes.
22381
22382 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
22383
22384         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
22385         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
22386         tree.c, config/m68k/m68k.c:
22387         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
22388         REAL_ARITHMETIC blocks unconditional.  Delete some further
22389         #ifdef blocks predicated on REAL_ARITHMETIC.
22390         * flags.h, toplev.c: Delete remaining references to
22391         flag_pretend_float.
22392
22393         * doc/invoke.texi: Remove documentation of -fpretend-float.
22394         * doc/tm.texi: Describe the various REAL_* macros as provided by
22395         real.h, not by the target configuration files.
22396
22397         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
22398         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
22399         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22400         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
22401         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
22402         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
22403         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
22404         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
22405         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22406         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
22407         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22408         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
22409         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
22410         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
22411         config/xtensa/xtensa.h:
22412         Do not define, undefine, or mention in comments any of
22413         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
22414         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
22415         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
22416         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
22417         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
22418         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
22419         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
22420         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
22421         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
22422
22423 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22424
22425         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
22426         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
22427         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
22428         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
22429         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
22430         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
22431         Delete.
22432         * defaults.h (BITS_PER_WORD): Define.
22433         * doc/tm.texi (BITS_PER_WORD): Document default value.
22434
22435         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
22436         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
22437         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
22438
22439 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22440
22441         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
22442         lieu of explicit sizeof/sizeof.
22443         * i386.c (override_options, ix86_init_mmx_sse_builtins,
22444         ix86_expand_builtin): Likewise.
22445         * mips.c (mips_add_gc_roots): Likewise.
22446         * mmix.c (mmix_output_condition): Likewise.
22447         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
22448         altivec_init_builtins): Likewise.
22449         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
22450         * cppexp.c (Nsuff, parse_number): Likewise.
22451         * cppinit.c (builtin_array_end): Likewise.
22452         * gcc.c (n_default_compilers, process_command): Likewise.
22453         * genpreds.c (output_predicate_decls): Likewise.
22454         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
22455         * lcm.c (N_ENTITIES): Likewise.
22456         * stor-layout.c (set_sizetype): Likewise.
22457
22458 2002-03-03  Richard Henderson  <rth@redhat.com>
22459
22460         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
22461         for types or labels.
22462
22463 2002-03-03  Richard Henderson  <rth@redhat.com>
22464
22465         * c-decl.c (start_decl): Initialized variables are not common.
22466
22467 2002-03-02  Per Bothner  <per@bothner.com>
22468
22469         * gcc.c (option_map):  Suport new --bootclasspath option.
22470         --CLASSPATH is now just an alias for --classpath.
22471
22472 2002-03-02  Richard Henderson  <rth@redhat.com>
22473
22474         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
22475         load if "internal" visibility.
22476         * doc/extend.texi: Document visibility meanings.
22477
22478 2002-03-02  Richard Henderson  <rth@redhat.com>
22479
22480         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
22481         to functions as well.
22482
22483 2002-03-02  Richard Henderson  <rth@redhat.com>
22484
22485         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
22486         (handle_visibility_attribute): Don't call assemble_visibility.
22487         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
22488         without asmspec.  Invoke assemble_alias when needed.
22489         * varasm.c (maybe_assemble_visibility): New.
22490         (assemble_start_function, assemble_variable, assemble_alias): Use it.
22491
22492 2002-03-02  Richard Henderson  <rth@redhat.com>
22493
22494         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
22495         invoke ENCODE_SECTION_INFO with first call flag.
22496
22497         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
22498         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
22499         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
22500         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
22501         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
22502         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
22503         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
22504         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
22505         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
22506         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
22507         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
22508         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
22509         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
22510         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
22511         config/mcore/mcore-protos.h, config/mcore/mcore.c,
22512         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
22513         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
22514         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
22515         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
22516         config/sh/sh.h, config/sparc/sparc.h,
22517         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
22518         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
22519         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
22520         FIRST argument.  As needed, examine it and do nothing.
22521
22522         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
22523         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22524         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
22525
22526         * config/arm/t-pe (pe.o): Add dependencies.
22527
22528 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22529
22530         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
22531         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
22532         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
22533         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
22534         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
22535         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
22536         * defaults.h (BITS_PER_UNIT): Define.
22537         * doc/tm.texi (BITS_PER_UNIT): Document default value.
22538
22539 2002-03-02  Kazu Hirata  <kazu@hxi.com>
22540
22541         * config/h8300/h8300-protos.h: Add a prototype for
22542         compute_a_shift_length.
22543         * config/h8300/h8300.c (h8300_asm_insn_count): New.
22544         (compute_a_shift_length): Likewise.
22545         (h8300_adjust_insn_length): Do not adjust insn length of shift
22546         insns.
22547         * config/h8300/h8300.md (anonymous shift patterns): Use
22548         compute_a_shift_length.
22549
22550 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22551
22552         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
22553         trunc_int_for_mode.
22554
22555         * emit-rtl.c (offset_address): Call update_temp_slot_address.
22556
22557 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22558
22559         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
22560         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
22561         * flags.h (flag_zero_initialized_in_bss): Declare.
22562         * toplev.c (flag_zero_initialized_in_bss): New flag.
22563         (lang_independent_options): Add flag_zero_initialized_in_bss.
22564         * tree.c (initializer_zerop): New function.
22565         * tree.h (initializer_zerop): Declare.
22566         * varasm.c (assemble_variable): If we can emit bss, put zero
22567         initializers in the bss section.
22568
22569 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
22570
22571         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
22572         like more than one symbol per .weak directive.
22573
22574 2002-03-01  Richard Henderson  <rth@redhat.com>
22575
22576         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
22577         adjust argument_pointer by pretend_args_size.
22578         (ia64_va_start): Adjust va_start address by -pretend_args_size.
22579
22580 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22581
22582         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
22583
22584 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
22585
22586         * toplev.c (rest_of_compilation): Delete dead jumptables before
22587         loop.
22588         * flow.c (delete_dead_jumptables): Make global.
22589         * rtl.h (delete_dead_jumptables): Declare.
22590
22591 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
22592
22593         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
22594         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
22595         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
22596
22597 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22598
22599         * config/h8300/h8300-protos.h: Fix formatting.
22600         * config/h8300/h8300.c: Likewise.
22601         * config/h8300/h8300.h: Likewise.
22602
22603 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22604
22605         * config/h8300/h8300.c (print_operand): Support 16-bit
22606         constant addresses.
22607         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
22608
22609 2002-02-28  Richard Henderson  <rth@redhat.com>
22610
22611         * expmed.c (store_bit_field): Prevent generation of CONCATs;
22612         pun complex values as integers; use gen_lowpart instead of
22613         gen_rtx_SUBREG.
22614         (extract_bit_field): Likewise.
22615
22616 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
22617             David Edelsohn  <edelsohn@gnu.org>
22618
22619         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
22620         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
22621         (SUPPORTS_WEAK): Likewise.
22622         * output.h (add_weak): Add tree param.
22623         * varasm.c (add_weak): Likewise.  Save decl.
22624         (struct weak_syms): Add decl field.
22625         (mark_weak_decls): New function.
22626         (init_varasm_once): ggc_add_root mark_weak_decls.
22627         (assemble_start_function): Use ASM_WEAKEN_DECL.
22628         (assemble_variable): Likewise.
22629         (assemble_alias): Likewise.
22630         (declare_weak): Pass decl to add_weak.
22631         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
22632         (remove_from_pending_weak_list): Declare and define for
22633         ASM_WEAKEN_DECL.
22634         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
22635         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
22636         * defaults.h (SUPPORTS_WEAK): Likewise.
22637         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22638         .weak for code sym.  Do emit .size for descriptor sym.
22639         (ASM_DECLARE_FUNCTION_SIZE): Define.
22640         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
22641         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
22642         .lglobl unless TARGET_XCOFF.  Formatting fixes.
22643         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22644         .weak for code sym.
22645         (HANDLE_PRAGMA_WEAK): Remove.
22646         (ASM_WEAKEN_LABEL): Remove.
22647         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
22648
22649 2002-03-01  Jason Merrill  <jason@redhat.com>
22650
22651         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
22652         (TARGET_EXPR_CLEANUP): New macro.
22653
22654 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
22655
22656         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
22657         to take ptr_extend into account as third type of extension.
22658         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
22659         fields used by SUBREG_PROMOTED_UNSIGNED_P.
22660         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
22661         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
22662         * calls.c (precompute_arguments): Use new macro.
22663         (expand_call): Ditto.
22664         * combine.c (nonzero_bits): Ditto.
22665         (record_promoted_value): Ditto.
22666         * expr.c (store_expr): Ditto.
22667         (expand_expr): Ditto.
22668         * function.c (assign_parms): Ditto.
22669
22670 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
22671
22672         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
22673         override -shared and -shared-libgcc.
22674
22675 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
22676
22677         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
22678         of "ultrasparc".
22679         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
22680         to be broken.
22681
22682 2002-02-28  Richard Henderson  <rth@redhat.com>
22683
22684         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
22685         4 cycle latency from MM producers.
22686         (ia64_internal_sched_reorder): Likewise with pipeline flush.
22687
22688 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
22689
22690         * mklibgcc.in: Don't use GNU make extension.
22691
22692 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
22693
22694         * c-parse.in (STATIC): New terminal.
22695         (scspec): New non-terminal.  Update productions accordingly.
22696         (program): Remove bogus ifc / end ifc.
22697         (array_declarator): Simplify production using STATIC.
22698
22699 2002-02-28  Jim Meyering  <meyering@lucent.com>
22700
22701         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
22702         \a still means TARGET_BELL.
22703
22704 2002-02-28  Richard Henderson  <rth@redhat.com>
22705
22706         * haifa-sched.c (sched_emit_insn): New.
22707         (schedule_block): Use last_scheduled_insn to track last insn.
22708         * sched-int.h (sched_emit_insn): Prototype.
22709         * config/ia64/ia64.c (last_issued): Remove.
22710         (ia64_variable_issue): Don't set it.
22711         (nop_cycles_until): Use sched_emit_insn.
22712
22713 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
22714
22715         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
22716         extended constants.
22717
22718 2002-02-28  Kazu Hirata  <kazu@hxi.com>
22719
22720         * config/h8300/h8300.c: Fix formatting.
22721         * config/h8300/h8300.h: Likewise.
22722
22723 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
22724
22725         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
22726         which may overwrite the high byte of the frame pointer.
22727
22728 2002-02-28  Bo Thorsen  <bo@suse.de>
22729
22730         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
22731         (STARTFILE_SPEC): Add 64 bit files.
22732         (ENDFILE_SPEC): Likewise.
22733
22734 2002-02-28  Jason Merrill  <jason@redhat.com>
22735
22736         * c-decl.c (finish_function): Only warn about missing return
22737         statement with -Wreturn-type.
22738
22739 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
22740
22741         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
22742
22743         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
22744         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
22745
22746 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
22747
22748         * basic-block.h (BB_REACHABLE): Renumber.
22749         (BB_DIRTY, BB_NEW): New flags.
22750         (clear_bb_flags): Declare.
22751         (update_life_info_in_dirty_blocks): Declare.
22752         * cfg.c (clear_bb_flags): New function.
22753         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
22754         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
22755         reorder_insns, emit_insn_after): Mark block as dirty.
22756         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
22757         (update_life_info_in_dirty_blocks): New function.
22758         * recog.c (apply_change_group): Dirtify block.
22759
22760         * cse.c (cse_insn): Reorder emitting of jump insn to keep
22761         cfg consistent.
22762         * gcse.c (delete_null_pointer_checks): Likewise.
22763
22764         * toplev.c (dump_file_index): Move cse2 after bp,
22765         add DFI_null
22766         (dump_file_info): Similary.
22767         (rest_of_compilation): Avoid most of CFG rebuilds;
22768         do first if converision after null pointer checks, do cse2
22769         after branch prediction; avoid full liveness rebuild after
22770         initializing subregs.
22771         * invoke.texi (-d options): Document -du, renumber.
22772
22773         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
22774         (notice_new_block): Do not set BB_UPDATE_LIFE.
22775         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
22776          merge_blocks_move_successor_nojumps, merge_blocks,
22777          try_crossjump_to_edge): Likewise.
22778         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
22779         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
22780         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
22781         (merge_of_block): Do not use life_data_ok.
22782         (find_if_case_1): Do not use SET_UPDATE_LIFE.
22783         (if_convert): Use BB_DIRTY mechanizm to update life.
22784         * lcm.c (optimize_mode_switching): Update
22785         update_life_info_in_dirty_blocks
22786
22787 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
22788
22789         * Makefile.in (integrate.o): Update.
22790         * c-decl.c (copy_lang_decl): Rename.
22791         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22792         * integrate.c: Include langhooks.h.
22793         (copy_decl_for_inlining): Update to use langhook.
22794         * langhooks-def.h (lhd_do_nothing_t,
22795         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
22796         (LANG_HOOKS_INITIALIZER): Update.
22797         * langhooks.c (lhd_do_nothing_t): New.
22798         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
22799         * tree.h (copy_lang_decl): Remove.
22800 objc:
22801         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22802
22803 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
22804
22805         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
22806         POST_DEC, and POST_MODIFY.
22807
22808 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22809
22810         * c-typeck.c (digest_init): Remove unused parameter; all
22811         callers changed.
22812
22813 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
22814
22815         * expmed.c (expand_shift): Correctly test for low part of a
22816         subreg.
22817
22818 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
22819
22820         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
22821         insn UIDs with insn addresses.
22822
22823 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22824
22825         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
22826         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
22827         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
22828         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
22829         gcc.c, toplev.c: Delete code implementing -traditional mode.
22830
22831         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
22832         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
22833         Document removal of -traditional mode for compilation, and
22834         remove documentation only relevant to that mode.
22835
22836         * config/nextstep.h, config/ptx4.h, config/svr4.h,
22837         config/convex/convex.h, config/d30v/d30v.h,
22838         config/i386/dgux.h, config/i386/osf1elf.h,
22839         config/i386/osfelf.h, config/i386/osfrose.h,
22840         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
22841         config/m68k/hp310.h, config/m88k/dgux.h,
22842         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
22843         config/m88k/m88k.h, config/m88k/openbsd.h,
22844         config/mips/abi64.h, config/mips/osfrose.h,
22845         config/mips/svr4-5.h, config/mips/svr4-t.h,
22846         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
22847         config/stormy16/stormy16.h: Remove all references to
22848         -traditional from target specs.  Delete all mention of the
22849         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
22850         delete a couple of commented-out definitions of
22851         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
22852         to -traditional.
22853
22854         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
22855         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
22856
22857 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22858
22859         * mklibgcc.in: Don't use \n in a line subject to
22860         interpretation by echo.
22861
22862 2002-02-27  Graham Stott  <grahams@redhat.com>
22863
22864         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
22865         Constify NAME.
22866
22867         * loop.c (prescan_loop): Handle PARALLEL.
22868
22869         * unroll.c (loop_iterations): Return 0 if the add_val for
22870         a BIV is REG.
22871
22872         * final.c (output_operand_lossage): Constify PFX_STR.
22873
22874         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
22875
22876 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
22877
22878         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
22879         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
22880
22881 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
22882
22883         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22884
22885 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
22886
22887         * cpplex.c (_cpp_lex_token): Handle directives in macro
22888         arguments.
22889         * cpplib.c (_cpp_handle_directive): Save and restore state
22890         if parsing macro args when entering a directive.
22891         * cppmacro.c (collect_args): No need to handle directives
22892         in macro arguments.
22893         (enter_macro_context, replace_args): Use the original macro
22894         definition in case it was redefined whilst collecting arguments.
22895 doc:
22896         * cpp.texi: Update.
22897
22898 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
22899
22900         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
22901         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
22902         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
22903         method on AIX.
22904         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
22905         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
22906         (load_toc_v4_PIC_2): Same.
22907
22908 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
22909
22910         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
22911
22912 2002-02-26  Richard Henderson  <rth@redhat.com>
22913
22914         * config/alpha/alpha.md (ashldi_se): Re-enable.
22915
22916 2002-02-26  Richard Henderson  <rth@redhat.com>
22917
22918         * config/alpha/alpha.c (alpha_encode_section_info): Examine
22919         MODULE_LOCAL_P; improve commentary.
22920
22921 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
22922
22923         * doc/cpp.texi: Clarify documentation of relationship between
22924         #line and #include.
22925
22926 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22927
22928         * config/h8300/h8300-protos.h: Update the prototype for
22929         compute_logical_op_length.  Add the prototype for
22930         compute_logical_op_cc.
22931         * config/h8300/h8300.c (compute_logical_op_length): Figure out
22932         code from operands.
22933         (compute_logical_op_cc): New.
22934         * config/h8300/h8300.md: Combine all the logical op patterns
22935         in HImode and SImode.  Use compute_logical_op_cc.
22936
22937 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
22938
22939         * config/i386/i386.c (print_operand): Don't append ATT-style
22940         length suffixs to x87 opcodes when in Intel mode.
22941
22942 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
22943
22944         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
22945         (init_emit_once): Update calls.
22946         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
22947         (init_syntax_once): Prototype.
22948
22949 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22950
22951         * pa-linux.h (LIB_SPEC): Update definition.
22952         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22953
22954 2002-02-26  Richard Henderson  <rth@redhat.com>
22955
22956         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
22957         if we emitted a stop bit.
22958
22959 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22960
22961         * configure.in (libgcc_visibility): Substitute.
22962         * configure: Rebuilt.
22963         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
22964         defined symbols .hidden.
22965
22966 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22967
22968         * attribs.c (c_common_attribute_table): Add visibility.
22969         (handle_visibility_attribute): New function.
22970         * varasm.c (assemble_visibility): New function.
22971         * output.h (assemble_visibility): Add prototype.
22972         * tree.h (MODULE_LOCAL_P): Define.
22973         * crtstuff.c (__dso_handle): Use visibility attribute.
22974         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
22975         for MODULE_LOCAL_P symbols too.
22976         * config/ia64/ia64.c (ia64_encode_section_info): Handle
22977         MODULE_LOCAL_P symbols the same way as local symbols.
22978         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
22979         into .sdata/.sbss by the user.
22980         * doc/extend.texi (Function Attributes): Document visibility
22981         attribute.
22982
22983 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22984
22985         PR debug/5770
22986         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
22987         STRING_CST initializer spanning the whole variable without
22988         embedded zeros.
22989         If expand_expr returned MEM, don't use it.
22990
22991 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
22992
22993         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
22994         generate a die for the lexical block.
22995
22996 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22997
22998         * config/h8300/h8300-protos.h: Add a prototype for
22999         compute_logical_op_length.
23000         * config/h8300/h8300.c (compute_logical_op_length): New.
23001         * config/h8300/h8300.md (anonymous logical patterns): Use
23002         compute_logical_op_length for length.
23003
23004 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
23005
23006         * dwarf2out.c (modified_type_die): Do not call type_main_variant
23007         for vectors.
23008         (gen_type_die): Same.
23009
23010         * attribs.c (handle_vector_size_attribute): Set debug information.
23011
23012 2002-02-26  Daniel Egger  <degger@fhm.edu>
23013
23014         * config/rs6000/rs6000.md: Swap define_insn attributes to
23015         fix incorrect generation of merge high instructions instead
23016         of merge low.
23017
23018 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
23019
23020         * c-typeck.c (really_start_incremental_init): Use
23021         bitsize_zero_node for vectors.
23022
23023 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
23024
23025         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
23026         ("*set_vrsave_internal"): Same.
23027
23028 2002-02-25  Richard Henderson  <rth@redhat.com>
23029
23030         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
23031         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
23032
23033 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
23034
23035         PR target/5755
23036         * config/i386/i386.c (ix86_return_pops_args): Only pop
23037         fake structure return argument if it was passed on the stack.
23038
23039 2002-02-25  Jason Merrill  <jason@redhat.com>
23040
23041         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
23042         RESULT_DECL.
23043
23044 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
23045
23046         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
23047         link with shared_name only.
23048         * doc/invoke.texi (Link Options): Document new behavior.
23049
23050 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
23051
23052         * c-typeck.c (push_init_level): Handle vectors.
23053
23054 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
23055
23056         * config/sparc/sparc.c (const64_high_operand): Zero-extend
23057         operands of SPARC_SETHI_P.
23058         (input_operand): Likewise.
23059         (sparc_emit_set_const32): Likewise.
23060         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
23061         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
23062         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
23063         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
23064         (movdi_insn_sp64_vis): Likewise.
23065         (movdi split, movdf split): Use SETHI32.
23066         * doc/md.texi: Document SPARC constraints L, M and N.
23067
23068 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
23069
23070         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
23071         ("*set_vrsave_internal"): use mfspr for Darwin.
23072
23073         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
23074         gen_get_vrsave_internal.
23075
23076 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23077
23078         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
23079
23080 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
23081
23082         * cpplex.c (cpp_interpret_charconst): Get signedness or
23083         otherwise of wide character constants correct.
23084         * cppexp.c (lex): Get signedness of wide charconsts correct.
23085
23086 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23087
23088         * optabs.c (widen_operand): Only call convert_modes for
23089         promoted SUBREG if signedness matches.
23090         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
23091
23092 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
23093
23094         * cpplib.c (glue_header_name): Use local buffer to build up
23095         header name.
23096
23097 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
23098
23099         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
23100
23101 2002-02-23  Kazu Hirata  <kazu@hxi.com>
23102
23103         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
23104         H8/300[HS] separately.
23105         * config/h8300/h8300.md: Remove the early clobber constraint
23106         from bit field patterns.
23107
23108 2002-02-23  Kazu Hirata  <kazu@hxi.com>
23109
23110         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
23111         register_operand.
23112         (mulhisi3): Likewise.
23113         (umulqisi3): Likewise.
23114         (umulhisi3): Likewise.
23115
23116 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
23117
23118         * cppinit.c (output_deps): Correct test for stdout output.
23119         (init_dependency_output): Cure warning.
23120
23121 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23122
23123         * expr.c (store_expr): When converting expression to promoted
23124         equivalent type, allow using SUBREG_REG of TARGET as the target
23125         of the expansion of EXP.
23126         * loop.c (basic_induction_var, case SUBREG): Always look inside.
23127         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
23128         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
23129         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
23130         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
23131
23132 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
23133
23134         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
23135         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
23136         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
23137
23138 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
23139
23140         PR optimization/5747
23141         * loop.c (scan_loop): Update reg info if move_movables created new
23142         pseudos.
23143
23144 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
23145
23146         * gcc.c (init_gcc_spec): Revert last change.
23147
23148 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
23149
23150         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
23151         gpc_reg_operand constraint.
23152
23153 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
23154
23155         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
23156         Simplify comparison of `low'.
23157         (add_operand): Fix formatting.
23158         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
23159         (mask_operand): Disallow mask to wrap in 64-bit mode.
23160         (rs6000_stack_info): Remove redundant test setting push_p.
23161         (output_toc): Fix formatting.
23162         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
23163         cc_reg_not_cr0_operand constraint.
23164         (booldi3, boolcdi3 splitters): Same.
23165
23166 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
23167
23168         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
23169
23170 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
23171
23172         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
23173         gcc invoked with -shared-libgcc.
23174
23175 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
23176
23177         PR c++/5748
23178         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
23179         decl if any of elements was TREE_USED.
23180
23181 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
23182
23183         * config/sparc/sol2.h: Don't include sys/mman.h.
23184         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
23185         (arith_4096_operand): Don't throw high bits away.
23186         (const64_operand): Take sign extension of CONST_INTs into account.
23187         (const64_high_operand, sparc_emit_set_const32): Likewise.
23188         (GEN_HIGHINT64): Likewise.
23189         (sparc_emit_set_const64_quick1): Likewise.
23190         (const64_is_2insns): Likewise.
23191         (print_operand): Use trunc_int_for_mode for sign extension.
23192         * config/sparc/sparc.h (SMALL_INT32): Likewise.
23193         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
23194         chars.  Assume CONST_INT is already properly sign-extended.
23195         (movdi split): Sign-extend each SImode part.
23196         (andsi3 split): Don't mask high bits off, so that result
23197         remains properly sign-extend.
23198         (iorsi3 split): Likewise.
23199         (xorsi3 split): Likewise.
23200
23201 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
23202
23203         * fold-const.c (fold): Fix typo in comments.
23204
23205 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
23206
23207         * Makefile.in (langhooks.o): Update dependencies.
23208
23209 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
23210
23211         * langhooks.c: Include flags.h.
23212
23213 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
23214
23215         * testsuite/gcc.dg/attr-alwaysinline.c: New.
23216
23217         * c-common.c (c_common_post_options): Set inline trees by
23218         default.
23219
23220         * doc/extend.texi (Function Attributes): Document always_inline
23221         attribute.
23222         Update documentation about inlining when not optimizing.
23223
23224         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
23225
23226         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
23227         unless DECL_ALWAYS_INLINE.
23228
23229         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
23230         unless DECL_ALWAYS_INLINE.
23231         (c_disregard_inline_limits): Disregard if always_inline set.
23232
23233         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
23234         Disregard if always_inline set.
23235         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
23236         unless DECL_ALWAYS_INLINE.
23237
23238         * attribs.c (handle_always_inline_attribute): New.
23239         (c_common_attribute_table): Add always_inline.
23240
23241         * config/rs6000/altivec.h: Add prototypes for builtins
23242         requiring the always_inline attribute.
23243
23244 2002-02-21  Eric Christopher  <echristo@redhat.com>
23245
23246         * expmed.c (store_bit_field): Try to simplify the subreg
23247         before generating a new one when when the mode size of
23248         value is less than maxmode.
23249
23250 2002-02-21  Richard Henderson  <rth@redhat.com>
23251
23252         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
23253         than gen_rtx_PLUS to form the sum.
23254         * explow.c (force_reg): Rearrange to not allocate new pseudo
23255         when force_operand returns a register.
23256         * expr.c (expand_assignment): Allow offset_rtx expansion to
23257         return a sum.  Do not force addresses into registers.
23258         (expand_expr): Likewise.
23259         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
23260         to canonicalize arithmetic that didn't simpify.
23261         (simplify_plus_minus): New argument force; update
23262         all callers.  Don't split CONST unless we can do something with it,
23263         and wouldn't lose the constness of the operands.
23264
23265         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
23266         that we generated earlier.
23267
23268 2002-02-21  Tom Tromey  <tromey@redhat.com>
23269
23270         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23271         (output_line_info): Use constant `1', with a long explanatory
23272         comment.
23273         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
23274
23275 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
23276
23277         * jump.c (redirect_jump): If old label has no UID, don't try to
23278         delete it.
23279
23280 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
23281
23282         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
23283         If input is constant, do shifts at compile time.
23284
23285 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
23286
23287         * doc/extend.texi: Fix some more overfull hboxes.
23288
23289 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23290
23291         PR optimization/4994
23292         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
23293         register moves.
23294
23295 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23296
23297         PR c++/4574
23298         * expr.h (expand_and): Add mode argument.
23299         * expmed.c (expand_and): Add mode argument.
23300         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
23301         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
23302         * except.c (expand_builtin_extract_return_addr): Likewise.
23303         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
23304         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
23305         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
23306         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
23307         * config/c4x/c4x.md: Use GEN_INT (x) instead of
23308         gen_rtx (CONST_INT, VOIDmode, x).
23309
23310 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23311
23312         PR c/4697:
23313         * stmt.c (warn_if_unused_value): Move side effects test once more.
23314
23315 2002-02-20  Torbjorn Granlund  <tege@swox.com>
23316
23317         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
23318         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
23319
23320 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
23321
23322         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
23323         SUBREG or ZERO_EXTEND.
23324
23325 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
23326
23327         * sh.h (current_function_anonymous_args): Remove.
23328         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
23329         of current_function_varargs and current_function_stdarg is set.
23330         * sh.c (sh_expand_prologue): Check current_function_varargs /
23331         current_function_stdarg / TARGET_SH5 instead of
23332         current_function_anonymous_args.
23333
23334         * sh64.h (TARGET_VERSION): Define.
23335
23336 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
23337
23338         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
23339         VRSAVE_REGNO on TARGET_ALTIVEC.
23340
23341 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
23342
23343         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
23344         bits of SImode const_int.
23345         (includes_rshift_p): Likewise.
23346         (print_operand): Call mask_operand and mask64_operand with correct
23347         mode.
23348         (rs6000_output_function_epilogue): Pad traceback table to word.
23349         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
23350         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
23351         mask64_operand with correct mode.
23352         (FUNCTION_ARG_REGNO_P): Correct parentheses.
23353
23354 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23355
23356         PR debug/4461
23357         * varasm.c (get_pool_constant_mark): New.
23358         * rtl.h (get_pool_constant_mark): Add prototype.
23359         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
23360         be represented if it has not been output.
23361
23362 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
23363
23364         * combine.c (do_SUBST): Sanity check substitutions of
23365         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
23366         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
23367         CONST_INT into its operand.
23368         (known_cond): Likewise, for ZERO_EXTEND.
23369         * simplify-rtx.c (simplify_unary_operation): Fix condition to
23370         allow for simplification of wide modes.  Reject CONST_INTs in
23371         ZERO_EXTEND when their actual mode is not given.
23372
23373 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
23374
23375         * c-decl.c (pushdecl): If no global declaration is found for an
23376         extern declaration in block scope, try a limbo one.
23377
23378 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23379
23380         PR c++/4401
23381         * c-common.c (pointer_int_sum): Moved from...
23382         * c-typeck.c (pointer_int_sum): ...here.
23383         * c-common.h (pointer_int_sum): Add prototype.
23384
23385 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23386
23387         PR c++/5713
23388         * c-decl.c (duplicate_decls): Return 0 if issued error about
23389         redeclaration.
23390
23391 2002-02-20  Roger Sayle  <roger@eyesopen.com>
23392             Jakub Jelinek  <jakub@redhat.com>
23393
23394         PR c/4389
23395         * tree.c (host_integerp): Ensure that the constant integer is
23396         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
23397         when pos is zero or non-zero respectively.  Clarify comment.
23398         * c-format.c (check_format_info_recurse): Fix host_integerp
23399         usage; the pos argument should be zero when assigning to a
23400         signed HOST_WIDE_INT.
23401
23402 2002-02-20  Richard Henderson  <rth@redhat.com>
23403
23404         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
23405         of the operand, rather than assuming TImode.
23406         (ix86_expand_binop_builtin): Cope with commutative patterns
23407         using nonimmediate_operand for both operands.
23408         (ix86_expand_timode_binop_builtin): Likewise.
23409         (ix86_expand_store_builtin): Validate operand 1.
23410         (ix86_expand_unop1_builtin): Likewise.
23411
23412 2002-02-20  Philip Blundell  <philb@gnu.org>
23413
23414         PR 5705
23415         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
23416
23417 2002-02-20  Richard Henderson  <rth@redhat.com>
23418
23419         PR c/5615
23420         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
23421
23422 2002-02-20  Tom Tromey  <tromey@redhat.com>
23423
23424         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23425         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23426         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23427         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23428         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
23429         unconditionally.
23430
23431 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
23432
23433         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
23434           for (const_int 0) in X not just INTVAL.
23435
23436 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
23437
23438         * doc/extend.texi: Avoid or reduce overfull hboxes.
23439
23440 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
23441
23442         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
23443         operations if the field does not start at a mode boundary.
23444
23445 2001-02-20      Joel Sherrill <joel@OARcorp.com>
23446
23447         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
23448         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
23449         Also done for -Acpu and -Amachine.
23450
23451 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
23452
23453         * cppinit.c (init_dependency_output): Take deps output file
23454         from -o if none given with -MF.  Suppress normal output.
23455         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
23456         * doc/cpp.texi, doc/invoke.texi: Update.
23457
23458 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
23459
23460         * toplev.c (output_quoted_string): Write unprintable
23461         characters with octal escapes.
23462
23463 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
23464
23465         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
23466         really_call_used[VRSAVE_REGNO] if not Altivec.
23467
23468 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
23469
23470         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
23471         MODE_MASK.
23472         (constant_pool_expr_1): Fix formatting.
23473         (rs6000_legitimize_reload_address): Likewise.
23474
23475 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23476
23477         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
23478         now that we have one.
23479
23480 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
23481
23482         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
23483         end of first block of bitfields (which was only seven bits);
23484         rename dummy to unused_1; remove comment which is no longer true.
23485
23486 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
23487
23488         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
23489
23490 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
23491
23492         PR 5399
23493         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
23494         if generating PIC.
23495
23496         PR 5054
23497         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
23498         arm_is_longcall_p rather than inspecting call-type cookie
23499         directly.
23500         (call_value_insn) [TARGET_THUMB]: Likewise.
23501
23502 2002-02-19  Graham Stott  <grahams@redhat.com>
23503
23504         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
23505
23506 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
23507
23508         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
23509         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
23510         (FP_SAVE_INLINE): Delete.
23511
23512         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
23513         * config/rs6000/eabi.asm: Remove ABI save restore routines.
23514         * config/rs6000/t-ppccomm: Build crtsavres.o.
23515         * config/rs6000/crtsavres.asm: New file.
23516
23517 2002-02-19  Philip Blundell  <philb@gnu.org>
23518
23519         * config/arm/arm.c (use_return_insn): Don't reject interrupt
23520         functions.
23521         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
23522         (output_return_instruction): Allow interrupt functions to return with
23523         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
23524         (arm_expand_prologue): Subtract 4 before stacking LR in an
23525         interrupt function.
23526
23527 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
23528
23529         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
23530         decl, not just FUNCTION_DECL.
23531         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
23532         (arm_assemble_integer): Likewise.
23533         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
23534         marked local.
23535
23536 2002-02-19  matthew green  <mrg@eterna.com.au>
23537
23538         * config.gcc (sparc-*-netbsdelf*): Enable target.
23539         (sparc64-*-netbsd*): New target.
23540         * config/sparc/netbsd-elf.h: New file.
23541         * config/sparc/t-netbsd64: New file.
23542
23543 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
23544
23545         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
23546
23547 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
23548
23549         * doc/invoke.texi: explicitly list the style guidelines that
23550         -Weffc++ checks for.
23551
23552 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
23553
23554         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
23555
23556 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
23557
23558         PR other/5718
23559         * gcc.c (cpp_unique_options): Treat -o as indicating object file
23560         only if not -E.  If -E, pass -o through to the preprocessor.
23561
23562 2002-02-19  Kazu Hirata  <kazu@hxi.com>
23563
23564         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
23565         register number with an appropriate macro.
23566
23567 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
23568
23569         * doc/rtl.texi (Constants): Close @code tag.
23570
23571 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
23572
23573         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
23574         ("mmx_uavgv4hi3"): Same.
23575         ("pmulhrwv4hi3"): Same.
23576
23577         * tree-inline.c (walk_tree): Handle vectors.
23578
23579         * c-common.c (constant_expression_warning): Handle vectors.
23580         (overflow_warning): Same.
23581
23582         * sched-deps.c (sched_analyze_2): Handle vectors.
23583
23584         * rtlanal.c (rtx_unstable_p): Handle vectors.
23585         (rtx_varies_p): Same.
23586         (count_occurrences): Same.
23587         (regs_set_between_p): Same.
23588         (modified_between_p): Same.
23589         (modified_in_p): Same.
23590         (volatile_insn_p): Same.
23591         (volatile_refs_p): Same.
23592         (side_effects_p): Same.
23593         (may_trap_p): Same.
23594         (inequality_comparisons_p): Same.
23595         (replace_regs): Same.
23596         (computed_jump_p_1): Same.
23597
23598         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
23599         argument.
23600         (inner_mode_array): New.
23601         (copy_rtx): Handle vectors.
23602         (copy_most_rtx): Same.
23603         (rtx_equal_p): Same.
23604         (get_mode_alignment): Adjust for vectors.
23605
23606         * resource.c (mark_referenced_resources): Handle vectors.
23607         (mark_set_resources): Same.
23608
23609         * reload1.c (eliminate_regs): Handle vectors.
23610         (elimination_effects): Same.
23611         (scan_paradoxical_subregs): Same.
23612
23613         * reload.c (subst_reg_equivs): Handle vectors.
23614
23615         * regrename.c (scan_rtx): Handle vectors.
23616
23617         * regclass.c (reg_scan_mark_refs): Handle vectors.
23618
23619         * recog.c (find_single_use_1): Handle vectors.
23620
23621         * local-alloc.c (equiv_init_varies_p): Handle vectors.
23622         (contains_replace_regs): Same.
23623         (memref_referenced_p): Same.
23624
23625         * integrate.c (copy_rtx_and_substitute): Handle vectors.
23626         (subst_constants): Same.
23627
23628         * genattrtab.c (attr_copy_rtx): Handle vectors.
23629         (encode_units_mask): Same.
23630         (clear_struct_flag): Same.
23631         (count_sub_rtxs): Same.
23632
23633         * gcse.c (want_to_gcse_p): Handle vectors.
23634         (oprs_unchanged_p): Same.
23635         (hash_expr_1): Same.
23636         (oprs_not_set_p): Same.
23637         (expr_killed_p): Same.
23638         (compute_transp): Same.
23639         (store_ops_ok): Same.
23640
23641         * function.c (purge_addressof_1): Do not allow paradoxical subregs
23642         of vectors.
23643         (fixup_var_refs_1): Same.
23644         (instantiate_virtual_regs_1): Same.
23645
23646         * fold-const.c (operand_equal_p): Handle vectors.
23647         (fold): Same.
23648         (rtl_expr_nonnegative_p): Same.
23649
23650         * flow.c (mark_used_regs): Handle vectors.
23651
23652         * df.c (df_uses_record): Handle vectors.
23653
23654         * cselib.c (cselib_subst_to_values): Handle vectors.
23655         (cselib_mem_conflict_p): Same.
23656         (hash_rtx): Same.
23657
23658         * cse.c (canon_reg): Handle vectors.
23659         (fold_rt): Same.
23660         (cse_process_notes): Same.
23661         (count_reg_usage): Same.
23662         (canon_hash): Same.
23663
23664         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
23665
23666         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
23667
23668         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
23669         (gen_rtx): Handle CONST_VECTOR.
23670         (gen_const_vector_0): New.
23671         (copy_rtx_if_shared): CONST_VECTORs can be shared.
23672         (reset_used_flags): Same.
23673         (copy_insn_1): Same.
23674         (initializer_constant_valid_p): Handle VECTOR_CST.
23675
23676         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
23677
23678         * doc/rtl.texi (Constants): Document const_vector.
23679         (CONST0_RTX): Update for vectors.
23680         (RTL sharing): Same.
23681
23682         * print-tree.c (print_node): Add case for VECTOR_CST.
23683
23684         * tree.h (TREE_VECTOR_CST_ELTS): New.
23685         (struct tree_vector): New.
23686         (union tree_node): Add vector node.
23687         (build_vector): Add prototype.
23688
23689         * tree.def (VECTOR_CST): New.
23690
23691         * tree.c (build_vector): New.
23692
23693         * expmed.c (make_tree): Handle CONST_VECTOR.
23694
23695         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
23696         (CONST_VECTOR_ELT): New.
23697         (CONST_VECTOR_NUNITS): New.
23698
23699         * machmode.h (GET_MODE_INNER): New.
23700         (DEF_MACHMODE): Accept 8th arg.
23701
23702         * machmode.def: Add 8th argument for vector inner mode.
23703         Add inner vector modes for vectors.
23704
23705         * rtl.def (VEC_CONST): Remove.
23706         (CONST_VECTOR): New.
23707
23708         * expr.c (clear_storage): Allow vectors.
23709         (is_zeros_p): Handle VECTOR_CST.
23710
23711         * varasm.c (output_constant_pool): Handle vectors.
23712         (rtx_const): Add veclo and vechi fields.
23713         (kind): Add RTX_VECTOR.
23714         (decode_rtx_const): Add case for vector.
23715
23716         * config/rs6000/rs6000-protos.h: Add zero_constant.
23717
23718         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
23719         constants.  Force easy vector constants into memory.
23720         (easy_vector_constant): New.
23721         (emit_easy_vector_constant): New.
23722         (rs6000_legitimize_reload_address): Do not generate bad reloads on
23723         darwin.
23724
23725         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
23726         instruction does.
23727         ("altivec_lvxl"): Same.
23728         (altivec_lvebx): Same.
23729         (altivec_lvehx): Same.
23730         (altivec_lvewx): Same.
23731         ("*movv4si_const0"): New.
23732         ("*movv4sf_const0"): New.
23733         ("*movv8hi_const0"): New.
23734         ("*movv16qi_const0"): New.
23735
23736 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23737
23738         * config/h8300/h8300.c (notice_update_cc): Use
23739         cc_status.value2.
23740
23741 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23742
23743         * config/h8300/h8300.md (divmod patterns): Change the
23744         constraints for operands[1] to register_operand.
23745
23746 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23747
23748         * config/h8300/h8300-protos.h: Remove the prototype for
23749         p_operand.
23750         * config/h8300/h8300.c (p_operand): Remove.
23751         * config/h8300/h8300.md: Replace p_operand with
23752         const_int_operand.
23753
23754 2002-02-18 Philip Blundell <pb@nexus.co.uk>
23755
23756         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
23757         comment.
23758         (output_return_instruction): Allow use of LDR to unstack
23759         return addresss even for interrupt handlers or when
23760         interworking.  If compiling for ARMv5, use interworking-safe
23761         return instructions by default.  Remove duplicated code and
23762         lengthy "strcat" sequences.
23763
23764 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
23765
23766         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
23767         (LINK_EH_SPEC): Define.
23768         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
23769
23770 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
23771
23772         * config/s390/s390.c (s390_emit_prologue): Do not set the
23773         frame_related flag for call-clobbered registers.
23774
23775 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
23776
23777         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
23778         (construct_container): Fix handling of SSE operands.
23779         (ix86_expand_builtin): Fix handling of 64bit pointers.
23780         (mmx_maskmovq_rex): New pattern.
23781
23782 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
23783
23784         * regrename.c (kill_set_value): Handle subregs properly.
23785
23786 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
23787
23788         * objc/objc-act.c (handle_impent): Remove leading '*'
23789         from objc_class_name.
23790
23791 2002-02-17  Richard Henderson  <rth@redhat.com>
23792
23793         * config/alpha/alpha.c (some_small_symbolic_operand,
23794         some_small_symbolic_operand_1, split_small_symbolic_operand,
23795         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
23796         Handle small SYMBOL_REFs anywhere, not just inside memories.
23797         * config/alpha/alpha-protos.h: Update.
23798         * config/alpha/alpha.h (PREDICATE_CODES): Update.
23799         * config/alpha/alpha.md (small symbolic operand splitter): Update.
23800
23801 2002-02-17  Roland McGrath  <roland@frob.com>
23802
23803         * config.gcc (powerpc-*-gnu-gnualtivec*,
23804         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
23805         * config/rs6000/gnu.h: New file.
23806         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
23807         Grok "gnu" in rs6000_abi_name.
23808         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
23809         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
23810         Grok -mcall-gnu analogous to -mcall-linux et al.
23811         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23812         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
23813         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
23814
23815 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
23816
23817         PR c/3444:
23818         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
23819         shortening.
23820
23821 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23822
23823         * config/cris/cris.h: Undefine STARTFILE_SPEC and
23824         ENDFILE_SPEC before (re)defining them.
23825
23826 2002-02-17  Kazu Hirata  <kazu@hxi.com>
23827
23828         * config/h8300/h8300.c: Fix formatting.
23829         * config/h8300/h8300.h: Likewise.
23830
23831 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23832
23833         * doc/tm.texi: Explain why empty strings should not be
23834         marked for translation.
23835
23836 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23837
23838         * final.c (output_operand_lossage): Changed to accept
23839         printf style arguments. Change calls where necessary.
23840         * output.h (output_operand_lossage): Change declaration
23841         accordingly. Update copyright.
23842         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
23843         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
23844         Update copyright date where necessary.
23845
23846         * config/i386/i386.c (print_operand): Likewise. Remove use of
23847         sprintf.
23848
23849         * config/cris/cris.c (cris_operand_lossage): Likewise.
23850         Rename parameter so that exgettext recognizes it as
23851         translatable message.
23852         (LOSE_AND_RETURN): Rename parameter to msgid.
23853
23854 2002-02-17  Kazu Hirata  <kazu@hxi.com>
23855
23856         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
23857         hard coded register number with an appropriate macro.
23858         (HARD_REGNO_MODE_OK): Likewise.
23859         (ARG_POINTER_REGNUM): Likewise.
23860         (STATIC_CHAIN_REGNUM): Likewise.
23861         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
23862         * config/h8300/h8300.md (define_constants): Define more
23863         register numbers.
23864
23865 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23866
23867         * config/i386/i386.h: Don't mark empty strings for translation.
23868
23869 2002-02-16  H.J. Lu <hjl@gnu.org>
23870
23871         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
23872
23873 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
23874
23875         * cppinit.c (merge_include_chains): Check for brack being
23876         NULL before attempting to merge it with qtail.
23877
23878 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
23879
23880         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
23881         DBX_DEBUG.
23882
23883 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23884
23885         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
23886
23887 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23888
23889         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
23890         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
23891         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
23892
23893 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23894
23895         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
23896         now only if !TARGET_FIX.
23897         (*movsi_nt_vms_fix): New pattern.
23898
23899 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
23900
23901         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
23902         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
23903         (alpha_sa_mask, alpha_sa_size): Reflect above change.
23904         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
23905         (alpha_start_function, alpha_expand_epilogue): Likewise.
23906         (unicosmk_gen_dsib): Likewise.
23907
23908 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23909
23910         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
23911
23912 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
23913
23914         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
23915         check_and_change_labels, s390_final_chunkify): Delete.
23916         (s390_split_branches, s390_chunkify_pool): New functions.
23917         (s390_function_prologue): Call them.
23918
23919         * config/s390/s390.h (S390_REL_MAX): Delete.
23920         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
23921
23922         * config/s390/s390.md (cjump, icjump, jump): Fix length
23923         attribute calculation.
23924
23925
23926 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
23927
23928         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
23929         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
23930
23931 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23932
23933         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
23934         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
23935         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
23936
23937 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23938
23939         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
23940
23941 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23942
23943         * reload.c (find_dummy_reload): Check that an output register
23944         is valid for its mode.
23945
23946 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
23947
23948         * combine.c (known_cond): After replacing the REG of a SUBREG, try
23949         to simplify it.
23950
23951         * function.c (assign_parms): Demote promoted argument passed by
23952         transparent reference.
23953
23954 2001-02-14      Joel Sherrill <joel@OARcorp.com>
23955
23956         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
23957         -Acpu() and -Amachine() to eliminate warnings.
23958
23959 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
23960
23961         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
23962
23963 2002-02-14  Kazu Hirata  <kazu@hxi.com>
23964
23965         * config/h8300/h8300-protos.h: Update the prototype for
23966         const_costs.
23967         * config/h8300/h8300.c (const_costs): Treat SET as a little
23968         more expensive operation.
23969         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
23970         reference to const_costs.
23971
23972 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
23973
23974         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
23975
23976 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
23977
23978         PR c/5503:
23979         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
23980         use arguments from newtype.
23981
23982 2002-02-13  Eric Christopher  <echristo@redhat.com>
23983
23984         * config/mips/mips.c (override_options): Add check for march/mipsX
23985         on the same command line. Fix error message in cpu processing.
23986         Remove architecture and ISA checks.
23987
23988 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23989
23990         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
23991
23992         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
23993
23994 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23995
23996         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
23997         alternatives.
23998         ("*movv8hi_internal1"): Same.
23999         ("*movv16qi_internal1"): Same.
24000         ("*movv4sf_internal1"): Same.
24001
24002         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
24003         not push_reload for altivec modes.
24004
24005 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
24006
24007         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
24008         all RTEMS targets including removal of #includes from config/*/rtems*.h
24009         file and adding them to tm_file setting. Added xm_defines=POSIX to
24010         many targets.
24011         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
24012         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
24013         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
24014         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
24015         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
24016         config/m68k/rtemself.h: Ditto.
24017         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
24018         config/mips/rtems64.h: Ditto.
24019         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
24020         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
24021         Ditto.
24022         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
24023         config/sparc/rtemself.h: Ditto.
24024         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
24025         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
24026         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
24027         more like arm-elf.
24028         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
24029         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
24030         target made more similar to i386-elf.
24031         * config/i386/t-rtems-i386: Added soft float support and multilibs.
24032         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
24033         be similar to config/m68k/t-m68kelf.
24034         * gthr-rtems.h: Encapsulate with extern "C" for C++.
24035
24036 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
24037
24038         * regmove.c (kill_value): Handle subregs.
24039
24040 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
24041
24042         * i386.md (mul patterns): Allow memory operand to be first;
24043         add expanders where needed; fix constraints.
24044         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
24045         Allow memory operand to be the first.
24046
24047         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
24048         operands.
24049
24050 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
24051
24052         PR c/5681:
24053         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
24054         GET_MODE (x).
24055
24056 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
24057
24058         PR optimization/5547:
24059         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
24060         all valid IA-32 address modes involving non-scaled %ebx and
24061         GOT/GOTOFF as displacement.
24062
24063 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
24064
24065         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
24066         after emitting ltorg insns.
24067
24068         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
24069         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
24070         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
24071         *abssf2): Fix "op_type" attribute.
24072
24073 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
24074
24075         * mkconfig.sh: Avoid using a subshell redirect.
24076         ($output.T): Change to $(output)T.
24077         (ENABLE_NLS): Remove unneeded undef.
24078
24079         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
24080         * config/alpha/x-vms (libsubdir): Define.
24081
24082         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
24083         register frame procedures. Optimize retrieving context.
24084
24085         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
24086         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
24087         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
24088
24089 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24090
24091         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
24092         Make same change as for find_base_value.
24093
24094 2002-02-13  Kazu Hirata  <kazu@hxi.com>
24095
24096         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
24097         of QImode and SImode.
24098
24099 2002-02-13  Kazu Hirata  <kazu@hxi.com>
24100
24101         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
24102         length computation of movsi.
24103         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
24104
24105 2002-02-13  Kazu Hirata  <kazu@hxi.com>
24106
24107         * config/h8300/h8300.md (subqi3): Tighten the predicate for
24108         operands[2] to register_operand.
24109
24110 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
24111
24112         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
24113
24114 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
24115
24116         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
24117         for altivec_lvx* and altivec_stvx*.
24118         ("*movv4si_internal"): Add constraint for loading from GPRs.
24119         ("*movv8hi_internal1"): Same.
24120         ("*movv16qi_internal1"): Same.
24121         ("*movv4sf_internal1"): Same.
24122
24123         * config/rs6000/rs6000.c (altivec_register_operand): New.
24124
24125         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
24126         altivec_register_operand.
24127
24128 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
24129
24130         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
24131         handle SYMBOL_REF.
24132
24133 2002-02-13  Stan Shebs  <shebs@apple.com>
24134
24135         * c-typeck.c (digest_init): Handle vectors.
24136         (really_start_incremental_init): Same.
24137         (pop_init_level): Same.
24138         (process_init_element): Same.
24139
24140         * varasm.c (output_constant): Same.
24141
24142         * expr.c (clear_storage): Same.
24143         (store_constructor): Same.
24144
24145 2002-02-12  Eric Christopher  <echristo@redhat.com>
24146
24147         * explow.c (hard_function_value): Add comment explaining
24148         signed/unsigned comparison.
24149
24150 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
24151
24152         * jump.c (never_reached_warning): Add finish argument.
24153         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
24154         real insn after end.
24155         * rtl.h (never_reached_warning): Adjust prototype.
24156         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
24157         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
24158         never_reached_warning.
24159
24160 2002-02-12  Graham Stott  <grahams@redhat.com>
24161
24162         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
24163
24164 2002-02-12  Kazu Hirata  <kazu@hxi.com>
24165
24166         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
24167         logical shifts on H8/300.
24168         (shift_alg_si): Improve several shifts on H8/300.
24169         (get_shift_alg): Likewise.
24170
24171 2002-02-12  Graham Stott  <grahams@redhat.com>
24172
24173         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
24174
24175 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24176
24177         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
24178         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
24179
24180 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
24181
24182         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
24183         non-CONST_INT through default_assemble_integer.
24184         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
24185         <case 8>: Abort for CONST_DOUBLE.
24186
24187 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24188
24189         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
24190         is specified.
24191         * config/pa/pa-linux.h (LIB_SPEC): Delete.
24192         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
24193
24194 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
24195
24196         * config/stormy16/stormy16.md (zero_extendqihi2): New.
24197
24198 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
24199
24200         * regrename.c (regrename_optimize): Don't accept a
24201         part-clobbered register if the replaced register is not part
24202         clobbered.
24203
24204         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
24205         take padding into account when computing the argument value.
24206
24207         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
24208
24209         * combine.c (try_combine): Apply substitutions in
24210         CALL_INSN_FUNCTION_USAGE too.
24211
24212 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
24213
24214         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
24215         __builtin_altivec_abs*.
24216         (bdesc_abs): New.
24217
24218         * config/rs6000/rs6000.h (rs6000_builtins): Add
24219         ALTIVEC_BUILTIN_ABS*.
24220
24221         * config/rs6000/altivec.h: Use const char for builtins expecting
24222         literals.
24223         (vec_abs): New versions for C and C++.
24224         (vec_abss): Same.
24225
24226 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24227
24228         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
24229         using Pmode.
24230
24231 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24232
24233         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
24234         constant definition from h8300.md.
24235         (FRAME_POINTER_REGNUM): Likewise.
24236         * config/h8300/h8300.md (define_constants): Add FP_REG.
24237
24238 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24239
24240         * config/h8300/h8300.c (print_operand): Remove redundant code.
24241
24242 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24243
24244         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
24245         * config/h8300/h8300.c (byte_reg): Make it static.
24246
24247 2002-02-10  Richard Henderson  <rth@redhat.com>
24248
24249         PR c/5623
24250         * c-typeck.c (incomplete_type_error): Handle flexible array members.
24251
24252 2002-02-10  Richard Henderson  <rth@redhat.com>
24253
24254         PR c++/5624
24255         * tree.c (append_random_chars): Don't abort if main_input_filename
24256         does not exist.
24257
24258 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
24259
24260         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
24261
24262 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24263
24264         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
24265         (pushhi1): Likewise.
24266
24267 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24268
24269         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
24270         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
24271
24272 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
24273
24274         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
24275         remove MASK_VIS.
24276         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
24277
24278 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24279
24280         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
24281         a half of an SImode register on H8/300.
24282
24283 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
24284
24285         * i386.md (movdi_2): Add missing '!'.
24286
24287 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24288
24289         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
24290         definitions.
24291
24292 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24293
24294         * config/h8300/h8300.md (length): Correct the distance valid
24295         for the short branch.
24296
24297 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24298
24299         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
24300
24301 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
24302
24303         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
24304         registers in SImode.
24305         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
24306         part-clobbered.
24307
24308         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
24309         patch.
24310
24311         Contribute sh64-elf.
24312         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
24313         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
24314         (sh_cannot_modify_jumps_p): New function.
24315         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
24316         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
24317         (sh_ms_bitfield_layout_p): New function.
24318         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
24319                     Zack Weinberg  <zack@codesourcery.com>
24320         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
24321         expand_simple_binop instead of expand_binop.
24322         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
24323         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
24324         use of .quad and .uaquad.
24325         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
24326         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
24327         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24328         * config/sh/sh.md (movdi_const, movdi_const_32bit,
24329         movdi_const_16bit): Make sure all CONSTs have modes.
24330         (sym2PIC): Ditto, but by adjusting all callers.
24331         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
24332         if the prologue calls the SHmedia argument decoder or register
24333         saver.
24334         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24335         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
24336         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
24337         (sh_expand_epilogue): Don't emit USE of return target register.
24338         (prepare_move_operands): Legitimize DImode PIC addresses.
24339         (sh_media_register_for_return): Skip tr0, used to initialize the
24340         PIC register.
24341         (sh_expand_prologue): Remove explicit USE of return register.
24342         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
24343         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
24344         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
24345         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
24346         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
24347         EXTRA_CONSTRAINT_T.
24348         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
24349         (MOVI_SHORI_BASE_OPERAND_P): New.
24350         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
24351         (EXTRA_CONSTRAINT_T): Define in terms of them.
24352         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
24353         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
24354         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
24355         alternatives supporting TARGET_REGS.
24356         (UNSPEC_GOTPLT): New constant.
24357         (movdi split): Move incrementing of LABEL_NUSES...
24358         (movdi_const, movdi_const_32bit): Here.  Use
24359         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
24360         (movdi_const_16bit): New.
24361         (call, call_value) [flag_pic]: Use GOTPLT.
24362         (call_pop, call_value_pop): New expands.
24363         (call_pop_compact, call_pop_rettramp): New insns.
24364         (call_value_pop_compact, call_value_pop_rettramp): New insns.
24365         (sibcall) [flag_pic]: Use GOT.
24366         (builtint_setjmp_receiver): Remove bogus, unused expand.
24367         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
24368         (*pt, *ptb, ptrel): New insns.
24369         (sym2GOT): Handle DImode GOT.
24370         (sym2GOTPLT, symGOTPLT2reg): New expands.
24371         (sym2PIC): New expand.
24372         (shcompact_return_tramp): Use GOTPLT to return trampoline.
24373         (shcompact_return_tramp_i): Use return register explicitly.
24374         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
24375         disable flag_reorder_blocks.
24376         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
24377         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
24378         clobbers, for clarity.
24379         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
24380         restoring of r0 in macl as MAYBE_DEAD.
24381         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
24382         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
24383         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
24384         alter_subreg all over.
24385         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
24386         reload, instead of emitting instructions that would require
24387         reloading.
24388         (casesi_load_media): Add missing modes.
24389         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
24390         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
24391         as used if the argument decoder is called.
24392         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
24393         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
24394         Pmode, then extend it to DImode if necessary.
24395         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
24396         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
24397         constants in FPU-enabled SHmedia, let them be loaded from memory.
24398         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
24399         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
24400         Adjust whitespace in assembly output templates.
24401         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
24402         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
24403         mode of if_then_else.
24404         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
24405         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
24406         sh.h.
24407         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
24408                     Joern Rennecke <amylaar@redhat.com>
24409         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
24410         (SUBTARGET_CPP_PTR_SPEC): New.
24411         (SUBTARGET_CPP_SPEC): Remove.
24412         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
24413         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24414         Fix typo in previous checkin.
24415         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
24416         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
24417         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
24418                     Alexandre Oliva  <aoliva@redhat.com>
24419         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
24420         what single FP register can hold for SHmedia target.
24421         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
24422                     Alexandre Oliva  <aoliva@redhat.com>
24423         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24424         Do not split into SUBREG.
24425         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
24426         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
24427         and added new functions as specified in SH5 ABI r9.
24428         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
24429         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
24430         8-byte boundary.
24431         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
24432         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
24433         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
24434         and consttable_window_ends.
24435         2001-06-03  Graham Stott  <grahams@redhat,com>
24436         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
24437         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
24438         * config/sh/sh.c (print_operand): Handle floating-point pair,
24439         vector and matrix registers.
24440         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
24441         vector modes into account.
24442         * config/sh/sh.md (movv2sf): Split move between registers into
24443         movdf.
24444         (movv4sf, movv16sf): Introduce insns that get split only after
24445         reload.
24446         * config/sh/shmedia.h: Fix Copyright dates.
24447         * config/sh/ushmedia.h: Likewise.  Move loop counter
24448         declarations into conditionals that uses them.
24449         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
24450         loop boundary.
24451         * config/sh/sshmedia.h: Fix Copyright dates.
24452         (sh_media_PUTCFG): Fix constraints.
24453         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
24454         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
24455         ptrmemfunc_vbit_in_delta for SH5.
24456         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
24457         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
24458         * invoke.texi: Likewise.
24459         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
24460         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
24461         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
24462         GCC_pop_shmedia_regs_nofpu): New global symbols.
24463         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
24464         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
24465         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
24466         compact function with nonlocal labels.
24467         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
24468         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
24469         (initial_elimination_offset): Account for their stack space.
24470         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
24471         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
24472         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
24473         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
24474         least one of the operands to be a register.
24475         (movv2sf): Likewise.  Renamed to movv2sf_i.
24476         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
24477         prepare_move_operands() before emitting SHmedia insns.
24478         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
24479         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
24480         Don't save nor initialize r12.  Don't mis-align the stack.
24481         Pad the code with a nop.
24482         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
24483         stack.
24484         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
24485         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
24486         [__SHMEDIA__]: Implement.
24487         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
24488         * config/sh/sh.md: Set latency of `pt' closer to reality.
24489         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
24490         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
24491         Set move, load and store type attributes.
24492         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
24493         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
24494         profiling.
24495         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
24496         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
24497         * config/sh/sh.c (sh_media_register_for_return): New function.
24498         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
24499         branch-target register.
24500         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
24501         * config/sh/sh.md (return_media_i): Use any call-clobbered
24502         branch-target register.
24503         (return_media): If r18 wasn't copied in the prologue, copy it
24504         here.
24505         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
24506         Clear class FP0_REGS.
24507         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
24508         from elf.h.
24509         2001-03-08  DJ Delorie  <dj@redhat.com>
24510         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
24511         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
24512         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
24513         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
24514         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
24515         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
24516         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
24517         return value correctly for call_cookie.
24518         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
24519         * config/sh/crt1.asm (start): Modified so as to call
24520         ___setup_argv_and_call_main.
24521         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
24522         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
24523         SHmedia mode.
24524         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
24525         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
24526         (STRIP_NAME_ENCODING): Use it.
24527         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
24528         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
24529         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
24530         prepare_scc_operands().
24531         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
24532         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
24533         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
24534         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
24535         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
24536         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
24537         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
24538         used in shcompact_incoming_args.
24539         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
24540         change.
24541         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
24542         mode.
24543         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
24544         Adjust accordingly.
24545         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
24546         Simplify.  Adjust.  Add sanity check.
24547         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
24548         FPU_SINGLE_BIT.
24549         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
24550         TARGET_SHCOMPACT.
24551         (udivsi3, divsi3): Use them.
24552         (force_mode_for_call): New insn.
24553         (call, call_value, sibcall_value): Emit it before SHcompact
24554         calls.
24555         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
24556         * config/sh/sh.md (call, call_value, sibcall): Make sure the
24557         call cookie is non-NULL before taking its value.
24558         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
24559         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
24560         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
24561         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
24562         block.
24563         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
24564         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
24565         temporary for stack adjusts.  Use MACL and MACH to pass
24566         arguments to shcompact_incoming_args.
24567         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
24568         clobber r1.
24569         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
24570         (nested_trampoline): Load static chain address into r1.
24571         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
24572         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
24573         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
24574         fp_arith_reg_operand().
24575         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
24576         * config/sh/sh.md (casesi): Sign-extend the first two operands,
24577         and use signed compares for them.
24578         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
24579         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
24580         ones properly aligned.
24581         (find_barrier): Account for extra alignment needed for 8-byte wide
24582         constants.
24583         (machine_dependent_reorg): Require a label for the second 4-byte
24584         constant after an 8-byte one.
24585         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
24586         change.
24587         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
24588         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
24589         last_float when switching float modes.
24590         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
24591         auto-increment for general-purpose registers.
24592         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
24593         result.
24594         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
24595         for stack adjust.
24596         * config/sh/sh.c (sh_builtin_saveregs): Support using all
24597         registers for varargs.
24598         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
24599         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
24600         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
24601         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
24602         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
24603         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
24604         call_cookie accordingly.
24605         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
24606         (SHCOMPACT_BYREF): Likewise.
24607         (SHCOMPACT_FORCE_ON_STACK): New macro.
24608         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
24609         (sh_builtin_saveregs): Likewise.
24610         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24611         shcompact_incoming_args): Use new shift values.  Support
24612         sequences of consecutive and non-consecutive pushes/pops.
24613         * config/sh/sh.md (return): Don't explicitly use PR_REG.
24614         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
24615         * config/sh/sh.h (TEXT_SECTION): Define.
24616         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
24617         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
24618         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
24619         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
24620         return values on FPU-enabled SHmedia.
24621         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
24622         FPU-enabled SHmedia.
24623         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
24624         value is returned in a non-FP reg and is not returned by
24625         reference.
24626         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
24627         jump_ind.
24628         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
24629         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
24630         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
24631         quad-aligned to be passed by callee-copy reference.
24632         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
24633         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
24634         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
24635         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
24636         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
24637         copying low-numbered FP regs to r7 and r8.
24638         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
24639         FP regs to general-purpose regs only if the copy was passed on the
24640         stack.
24641         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
24642         copying FP reg to r9.
24643         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
24644         copy FP regs to general-purpose regs only in outgoing calls.
24645         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
24646         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
24647         HOST_WIDE_INT.
24648         * config/sh/sh.h (struct sh_args): Document all fields.
24649         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
24650         passed partially on the stack should not consider making
24651         sibcalls.
24652         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
24653         stack_regs only for incoming calls.  When passing FP args,
24654         make sure there are FP regs available before modifying
24655         call_cookie.
24656         (SHCOMPACT_BYREF): Pass double args in general-purpose
24657         registers by reference.
24658         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
24659         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
24660         attempt to generate sibcalls if the caller got any arguments
24661         by reference.
24662         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
24663         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
24664         to 8-byte boundaries.
24665         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
24666         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
24667         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
24668         stored in the stack.
24669         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
24670         for the offsets to have the ISA bit set.
24671         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
24672         invocation.  Use beq instead of bgt to mark end of sequence of
24673         loads.
24674         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
24675         bgt to mark end of sequence of stores.
24676         * config/sh/sh.c (arith_operand): Don't check whether
24677         CONST_OK_FOR_J for now.
24678         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
24679         instead of long for conversion.
24680         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
24681         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
24682         before passing it to fprintf.
24683         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
24684         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
24685         Call set_fpscr before reading/writing SR.
24686         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
24687         Call set_fpscr.
24688         * config/sh/lib1funcs.asm: Add `.align 2' directives before
24689         SHmedia code.
24690         (FMOVD_WORKS): Define on SH5 with FPU.
24691         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
24692         setting.
24693         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
24694         _fpscr_values.
24695         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
24696         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
24697         address.
24698         (ia_main_table): Ditto.
24699         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
24700         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
24701         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
24702         the definitions from sh.h.
24703         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
24704         TARGET_SH5.
24705         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
24706         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
24707         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24708         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
24709         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
24710         Increment LABEL_NUSES.
24711
24712         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
24713         TARGET_SH5.
24714         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
24715         defined.
24716         * config/sh/elf.h (SIZE_TYPE): Likewise.
24717         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24718         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24719         shcompact_incoming_args): Load switch table addresses using
24720         datalabel.
24721         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24722         (NO_BUILTIN_SIZE_TYPE): Define.
24723         (SIZE_TYPE): Don't define.
24724         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24725         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
24726         definition of __SH5__=32 for -m5-compact-nofpu.
24727         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
24728         ADDR_DIFF_VEC.
24729         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
24730         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
24731         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
24732         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
24733         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
24734         (INSN_LENGTH_ALIGNMENT): Likewise.
24735         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24736         * config/sh/sh.md (call, call_value, sibcall): Simplify
24737         copying of non-branch-target register.
24738         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24739         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
24740         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
24741         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24742         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
24743         floating-point values as structs.
24744         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
24745         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
24746         general-purpose register.
24747         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
24748         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
24749         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
24750         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
24751         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
24752         (ENCODE_SECTION_INFO): Enclose variables and constants in
24753         DATALABEL unspecs.
24754         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
24755         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
24756         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
24757         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
24758         only for LABEL_REFs.  For SYMBOL_REFs, prepend
24759         SH_DATALABEL_ENCODING to the symbol name.
24760         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
24761         convert_mode().
24762         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
24763         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
24764         UNSPEC_DATALABEL.
24765         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
24766         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
24767         (DATALABEL_REF_P): Don't require CONST.
24768         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
24769         REL label.
24770         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
24771         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
24772         right.
24773         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
24774         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
24775         Use shallow_copy_rtx and PUT_MODE to change the mode of
24776         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
24777         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
24778         on SHmedia using GENERAL_REGs.
24779         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24780         bltu_media_i): Fix reversion of conditions.
24781         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
24782         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
24783         * config/sh/sh.c (output_far_jump): Save r13 in macl.
24784         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
24785         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
24786         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
24787         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
24788         (GCC_nested_trampoline): Likewise.
24789         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
24790         * config/sh/sh.c (gen_datalabel_ref): Define.
24791         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
24792         (INITIALIZE_TRAMPOLINE): Likewise.
24793         (TRAMPOLINE_ADJUST_ADDRESS): Define.
24794         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
24795         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
24796         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
24797         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
24798         (ic_invalidate): Adjust for SH5.
24799         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
24800         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
24801         _nested_trampoline.
24802         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
24803         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
24804         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
24805         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
24806         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
24807         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
24808         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
24809         * config/sh/sh.c (target_reg_operand): Match only target-branch
24810         registers and pseudos that aren't virtual registers.
24811         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24812         Copy operands that don't match target_reg_operand to pseudos.
24813         (call_media, call_value_media, sibcall_media): Use
24814         target_reg_operand instead of target_operand.
24815         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
24816         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
24817         * config/sh/sh.c (target_reg_operand): Match hardware registers
24818         other than branch-target registers.
24819         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
24820         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
24821         (fpscr_values) [SH5 == 32]: Define.
24822         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
24823         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24824         Handle function addresses coming in SUBREGs.
24825         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
24826         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24827         shcompact_return_trampoline): Use datalabel where appropriate.
24828         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
24829         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
24830         general-purpose register to copy one branch-target register to
24831         another.
24832         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
24833         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
24834         SYMBOL_REFs with VOIDmode.
24835         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24836         bltu_media_i): New insns.
24837         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
24838         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
24839         (INIT_CUMULATIVE_ARGS): Likewise.
24840         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
24841         * machmode.def (V16SFmode): New mode.
24842         * c-common.c (type_for_mode): Support V2SF and V16SF.
24843         * tree.c (build_common_tree_nodes_2): Likewise.
24844         * tree.h (tree_index): Likewise.
24845         * calls.c (emit_call_1): Take args_so_far.  Adjust all
24846         callers.  Introduce CALL_POPS_ARGS.
24847         * tm.texi (CALL_POPS_ARGS): Document.
24848         * config/sh/crt1.asm: Implement in SHmedia mode.
24849         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
24850         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
24851         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
24852         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
24853         Implement divsi and udivsi in SHmedia mode.  Introduce
24854         SHcompact trampolines.
24855         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
24856         only in SHmedia64.
24857         (regno_reg_class): Rewrite.
24858         (fp_reg_names): Remove.
24859         (sh_register_names, sh_additional_register_names): New.
24860         (print_operand): Added `u'.  Support SUBREGs in addresses.
24861         Add parentheses around shifted CONSTs.
24862         (output_file_start): Output .mode and .abi directives.
24863         (shiftcosts, addsubcosts, multcosts): Adjust.
24864         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
24865         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
24866         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
24867         bytes, not registers.  Take into account the need for the
24868         SHcompact incoming args trampoline.  Adjust all callers.
24869         (sh_expand_prologue): Take stack_regs into account.  Call
24870         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
24871         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
24872         stack aligned as per SH5 ABI.
24873         (sh_builtin_saveregs): Support SH5 ABI.
24874         (sh_build_va_list, sh_va_start): Likewise.
24875         (initial_elimination_offset): Take alignment into account.
24876         Compute location of PR according to the SH5 stack frame.
24877         (arith_reg_operand): Reject branch-target registers.
24878         (shmedia_6bit_operand): New.
24879         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
24880         (target_reg_operand): Match DImode only.  Accept SUBREGs.
24881         (target_operand): New.
24882         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
24883         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
24884         SIBCALL_REGS for SHmedia.
24885         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
24886         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
24887         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
24888         (TARGET_SWITCHES): New SH5 flags.
24889         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
24890         VALID_REGISTER_P to disable unsupported registers.
24891         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
24892         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
24893         (FUNCTION_ARG_PADDING): Define.
24894         (FASTEST_ALIGNMENT): Adjust.
24895         (SH_REGISTER_NAMES_INITIALIZER): New.
24896         (sh_register_names): Declare.
24897         (DEBUG_REGISTER_NAMES): Define.
24898         (REGISTER_NAMES): Define based on sh_register_names.
24899         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
24900         (sh_additional_register_names): Declare.
24901         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
24902         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
24903         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
24904         (REGISTER_NATURAL_MODE): Define.
24905         (FIRST_PSEUDO_REGISTER): Adjust.
24906         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
24907         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
24908         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
24909         (VECTOR_MODE_SUPPORTED_P): Define.
24910         (REG_CLASS_CONTENTS): Adjust.
24911         (SMALL_REGISTER_CLASSES): Adjust.
24912         (REG_ALLOC_ORDER): Adjust.
24913         (INDEX_REG_CLASS): Adjust.
24914         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
24915         (CONST_OK_FOR_LETTER_P): Adjust.
24916         (PREFERRED_RELOAD_CLASS): Adjust.
24917         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
24918         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
24919         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
24920         (FIRST_FP_PARM_REG): Adjust.
24921         (CALL_POPS_ARGS): Define.
24922         (FUNCTION_ARG_REGNO_P): Adjust.
24923         (struct sh_args): New fields.
24924         (GET_SH_ARG_CLASS): Adjust.
24925         (INIT_CUMULATIVE_ARGS): Adjust.
24926         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
24927         (FUNCTION_ARG_ADVANCE): Adjust.
24928         (FUNCTION_ARG): Adjust.
24929         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
24930         (FUNCTION_ARG_CALLEE_COPIES): Define.
24931         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
24932         (STRICT_ARGUMENT_NAMING): Define.
24933         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
24934         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
24935         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
24936         (SETUP_INCOMING_VARARGS): Adjust.
24937         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
24938         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
24939         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
24940         (SUBREG_OK_FOR_INDEX_P): Adjust.
24941         (EXTRA_CONSTRAINT_S): Update.
24942         (EXTRA_CONSTRAINT_T): New.
24943         (EXTRA_CONSTRAINT): Adjust.
24944         (GO_IF_LEGITIMATE_INDEX): Adjust.
24945         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
24946         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
24947         (MOVE_MAX): Adjust.
24948         (MAX_MOVE_MAX): Define.
24949         (Pmode): Adjust.
24950         (CONST_COSTS): Adjust.
24951         (REGISTER_MOVE_COST): Adjust.
24952         (BRANCH_COST): Adjust.
24953         (TEXT_SECTION_ASM_OP): Adjust.
24954         (DBX_REGISTER_NUMBER): Adjust.
24955         (ASM_OUTPUT_DOUBLE_INT): New.
24956         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
24957         (PREDICATE_CODES): Adjust.
24958         (PROMOTE_MODE): Adjust.
24959         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
24960         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
24961         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
24962         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
24963         (DR0_REG, DR2_REG, DR4_REG): Renumber.
24964         (TR0_REG, TR1_REG, TR2_REG): New.
24965         (XD0_REG): Renumber.
24966         (UNSPEC_COMPACT_ARGS): New.
24967         (type): Added pt and ptabs.
24968         (length): Default to 4 on SHmedia.  Default pt length to 12
24969         and     20 on SHmedia32 and SHmedia64, respectively.
24970         (pt): New function unit.
24971         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
24972         Add whitespace between operands of SHmedia instructions.
24973         (movdicc): Fix.
24974         (adddi3_media, addsi3_media): Adjust constraints.
24975         (subsi3) [SHmedia]: Force operand 1 into a register.
24976         (udivsi3_i1_media, udivsi3_i4_media): New.
24977         (udivsi3): Support SHmedia.
24978         (divsi3_i1_media, divsi3_i4_media): New.
24979         (divsi3): Support SHmedia.
24980         (anddi3, iordi3, xordi3): Adjust constraints.
24981         (zero_extendhidi2, zero_extendqidi2): New.
24982         (extendsidi2, extendhidi2, extendqidi2): New.
24983         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
24984         (pop_e, pop_fpul, pop_4): Likewise.
24985         (movsi_media): Support FP and BT registers.
24986         (movsi_media_nofpu): New.  Adjust splits to DImode.
24987         (lduw, ldub): Renamed to zero_extend* above.
24988         (movqi_media): Fix typo.
24989         (movdi_media): Support FP and BT registers.
24990         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
24991         (movdi_const_32bit): New.
24992         (shori_media): Require immediate operand.  Use `u' for output.
24993         (movdf_media, movsf_media): Simplified.
24994         (movdf_media_nofpu, movsf_media_nofpu): New.
24995         (movdf, movsf): Adjust
24996         (movv2sf, movv2sf, movv16sf): New.
24997         (beq_media, beq_media_i): Adjust constraints.  Don't use
24998         scratch BT register.
24999         (bne_media, bne_media_i): Likewise.
25000         (bgt_media, bgt_media_i): Likewise.
25001         (bge_media, bge_media_i): Likewise.
25002         (bgtu_media, bgtu_media_i): Likewise.
25003         (bgeu_media, bgeu_media_i): Likewise.
25004         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
25005         bunordered): Emit jump insn.  Force operands to registers when
25006         needed.
25007         (jump_media, jump): Simplify.
25008         (call_compact, call_compact_rettramp): New.
25009         (call_value_compact, call_value_compact_rettramp): New.
25010         (call_media, call_value_media): Simplify.
25011         (sibcall_compact, sibcall_media): New.
25012         (call, call_value): Adjust for SHmedia and SHcompact.
25013         (sibcall, sibcall_value, untyped_call): Likewise.
25014         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
25015         (indirect_jump): Adjust for SHmedia.
25016         (casesi_jump_media): New.
25017         (nop): Re-enable for SHmedia.
25018         (call_site): Restrict to SH1.
25019         (casesi): Adjust for SHmedia.
25020         (casesi_shift_media, casesi_load_media): New.
25021         (return): Explicitly use PR register.  Call return trampoline
25022         on SHcompact.
25023         (return_i): Explicitly use PR register.
25024         (shcompact_return_tramp, shcompact_return_tramp_i): New.
25025         (return_media): Adjust.
25026         (shcompact_incoming_args): New.
25027         (epilogue): Adjust.
25028         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
25029         (movstrsi): Disable on SH5.
25030         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
25031         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
25032         (subsf3, subsf3_media): Likewise.
25033         (mulsf3, mulsf3_media, mac_media): Likewise.
25034         (divsf3, divsf3_media): Likewise.
25035         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
25036         (floatsisf2, fux_truncsfsi2): Likewise.
25037         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
25038         constraints.
25039         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
25040         (cmpunsf_media, cmpsf): Likewise.
25041         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
25042         (abssf2, abssf2_media): Likewise.
25043         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
25044         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
25045         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
25046         (floatsidf2, fix_truncdfsi2): Likewise.
25047         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
25048         constraints.
25049         (cmpeqdf_media, cmpgtdf_media): Likewise.
25050         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
25051         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
25052         (absdf2, absdf2_media): Likewise.
25053         (extendsfdf2, extendsfdf2_media): Likewise.
25054         (truncsfdf2, truncsfdf2_media): Likewise.
25055         * config/sh/sh64.h: New file.
25056         * config/sh/t-sh64: New file.
25057         * config/sh/shmedia.h: New file.
25058         * config/sh/ushmedia.h: New file.
25059         * config/sh/sshmedia.h: New file.
25060         * configure.in: Added sh64-*-elf.
25061         * configure: Rebuilt.
25062         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
25063         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
25064         (reg_class_from_letter): Use `b' for TARGET_REGS.
25065         (print_operand): Support `%M', `%m', `AND' and
25066         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
25067         (andcosts): Adjust for SHmedia.
25068         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
25069         Likewise.
25070         (target_reg_operand): New function.
25071         * config/sh/sh-protos.h (target_reg_operand): Declare.
25072         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
25073         FP registers on SH5.
25074         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
25075         on SH4.
25076         (TARGET_REGISTER_P): New macro.
25077         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
25078         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
25079         (EXTRA_CONSTRAINT_S): New macro.
25080         (EXTRA_CONSTRAINT): Adjust.
25081         (FLOAT_TYPE_SIZE): Define to 32.
25082         (Pmode): DImode on SHmedia.
25083         (CONST_COSTS): Adjust for SHmedia literals.
25084         (PREDICATE_CODES): Added target_reg_operand.
25085         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
25086         * config/sh/sh.md: Remove all attrs from SHmedia insns.
25087         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
25088         (cmpdi): Accept SHmedia.
25089         (movdicc_false, movdicc_true): New insns.
25090         (movdicc): New expand.
25091         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
25092         no_new_pseudos.
25093         (addsi3_media): Match `S' constraint.
25094         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
25095         (negdi2): Expand for SHmedia.
25096         (one_cmpldi2): New expand.
25097         (zero_extendsidi2): Change from expand to insn.
25098         (extendsidi2): Add constraints.
25099         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
25100         LD/ST address.  Fix SI immediate loading split.
25101         (movhi_media, movqi_media, lduw, ldub): New insns.
25102         (movhi, movqi): Accept SHmedia.
25103         (shori_media, movdi_media): Relax input constraints.  Split
25104         symbolic constants.
25105         (movdf_media, movsf_media): New insn.  New split to movdi.
25106         (movdf, movsf): Match on SHmedia.
25107         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
25108         bgeu_media): New insns and splits.  New insns with `_i' suffix.
25109         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
25110         (bunordered): New expand.
25111         (jump_compact): Renamed from `jump'.
25112         (jump_media): New insn.
25113         (jump): New expand.
25114         (call_media, call_value_media): New insns.
25115         (call, call_value): Adjust.
25116         (indirect_jump_compact): Renamed from `indirect_jump'.
25117         (indirect_jump_media): New insn.
25118         (indirect_jump): New expand.
25119         (untyped_call, return): Accept SHmedia.
25120         (return_media): New insn.
25121         (prologue, epilogue, blockage): Accept SHmedia.
25122         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
25123         (sunordered): New expand.
25124         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
25125         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
25126         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
25127         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
25128         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
25129         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
25130         abssf2_media): New insns.
25131         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
25132         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
25133         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
25134         floatdidf2, floatsidf2_media, fix_truncdfdi2,
25135         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
25136         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
25137         absdf2_media): New insns.
25138         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
25139         (extendsfdf2_media, truncdfsf2_media): New insns.
25140         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
25141         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
25142         * config/sh/sh.h (CONST_OK_FOR_J): Document.
25143         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
25144         * config/sh/sh.md (adddi3): New expand.
25145         (adddi3_media, adddi3z_media): New insns.
25146         (adddi3_compact): Renamed from adddi3.
25147         (addsi3_media): Use add.l r63 to add constant zero.
25148         (subdi3): New expand.
25149         (subdi3_media): New insn.
25150         (subdi3_compact): Renamed from subdi3.
25151         (mulsidi3): New expand.
25152         (mulsidi3_media): New insn.
25153         (mulsidi3_compact): Renamed from mulsidi3.
25154         (umulsidi3): New expand.
25155         (umulsidi3_media): New insn.
25156         (umulsidi3_compact): Renamed from umulsidi3.
25157         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
25158         (ashlsi3, ashrsi3, lshrsi3): Use them.
25159         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
25160         (ashldi3, ashrdi3, lshrdi3): Use them.
25161         (zero_extendsidi2): New expand.
25162         (extendsidi2): New insn.
25163         (movsi_media): New insn.  Split to movdi to load constants.
25164         (movsi): Enable for shmedia.
25165         (movdi_media): New insn.  Use shori_media to load wide constants.
25166         (short_media): New insn.
25167         (movdi): Enable for shmedia.
25168         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
25169         * config/sh/sh.h (CPP_SPEC): Added `m5'.
25170         (SUBTARGET_CPP_SPEC): Added `!m5'.
25171         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
25172         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
25173         to all other SH variants.
25174         (TARGET_DEFAULT): Set to SH1_BIT.
25175         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
25176         (BITS_PER_WORD): Raise to 64 on shmedia.
25177         (MAX_BITS_PER_WORD): Change to 64.
25178         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
25179         (INT_TYPE_SIZE): Keep as 32.
25180         (UNITS_PER_WORD): Raise to 8 on shmedia.
25181         (MIN_UNITS_PER_WORD): Keep as 4.
25182         (POINTER_SIZE): Raise to 64 on shmedia.
25183         (CONST_OK_FOR_J): New macro.
25184         (CONST_OK_FOR_LETTER_P): Use it.
25185         (processor_type): Add PROCESSOR_SH5.
25186         * config/sh/sh.md: Conditionalize all expands, insns and
25187         splits to TARGET_SH1.
25188         (cpu): Added sh5.
25189         (addsi3_compact): Renamed from...
25190         (addsi3): Now an expand.
25191         (addsi3_media, subsi3_media): New insns.
25192         (subsi3): Don't negate constants with SHmedia.
25193
25194         * hooks.c: New file.
25195         * hooks.h: New file.
25196         * Makefile.in (HOOKS_H): New.
25197         (TARGET_DEF_H): Added $(HOOKS_H).
25198         (OBJS): Added hooks.o.
25199         (cfgcleanup.o, bb-reorder.o): Added target.h.
25200         (hooks.o): Added dependencies.
25201         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
25202         (TARGET_INITIALIZER): this.
25203         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
25204         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
25205         * bb-reorder.c: Include target.h.
25206         (reorder_basic_blocks): Skip if cannot modify jumps.
25207         * cfgcleanup.c: Include target.h.
25208         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
25209
25210 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
25211
25212         * config/mips/mips.md (casesi_internal, casesi_internal_di):
25213         Protect jump delay slot instructions with .set noreorder and
25214         .set nomacro.
25215
25216 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
25217
25218         * config/mips/mips.md (casesi_internal_di): Calculate
25219         the index into the target offset table correctly.
25220
25221 2002-02-08  Richard Henderson  <rth@redhat.com>
25222
25223         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
25224         * final.c (output_addr_const): Accept and discard SUBREG.
25225         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
25226         mark them unknown instead.
25227         (simplify_subtraction): Handle RTX_UNKNOWN.
25228         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
25229
25230 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
25231
25232         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
25233
25234 2002-02-08  Richard Henderson  <rth@redhat.com>
25235
25236         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
25237
25238 2002-02-08  Andreas Jaeger  <aj@suse.de>
25239
25240         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
25241         * config/i386/t-linux64: New file.
25242
25243 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
25244
25245         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
25246         * c-parse.in (compstmt): Clear last_expr_type.
25247
25248 2002-02-07  Richard Henderson  <rth@redhat.com>
25249
25250         * loop.c (strength_reduce): Sink final_value when not
25251         eliminating a biv.
25252
25253 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
25254
25255         * config/sparc/freebsd.h: Fix mismatched spec {.
25256
25257 2002-02-07  Richard Henderson  <rth@redhat.com>
25258
25259         * cfgrtl.c: Include recog.h and insn-config.h.
25260         (keep_with_call_p): Fix general_operand invocation.
25261         * Makefile.in (cfgrtl.o): Update dependencies.
25262
25263 2002-02-07  Kazu Hirata  <kazu@hxi.com>
25264
25265         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
25266         comment.  Accept HImode only if TARGET_H8300.
25267
25268 2002-02-07  Eric Christopher  <echristo@redhat.com>
25269
25270         * config/mips/crtn.asm: Cleanup #ifdefs.
25271
25272 2002-02-07  Eric Christopher  <echristo@redhat.com>
25273
25274         * config/mips/crti.asm: Add changes for mips16. mips16 uses
25275         register 7 as RA instead of $31.
25276         * config/mips/crtn.asm: Ditto.
25277         * config/mips/mips.c (mips_move_2words): Add case for
25278         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
25279         (compute_frame_size): Fix typo.
25280         (save_restore_insns): Ditto.  Make documentation about using
25281         register $7 as return register more precise.
25282         (mips_expand_epilogue): Fix comment. Add code to work around not
25283         being able to add to the stack pointer directly.
25284         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
25285         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
25286         epilogue.
25287
25288 2002-02-07  Tom Rix  <trix@redhat.com>
25289
25290         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
25291         immediates in ldu and stdu DS opcode field.
25292         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
25293         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
25294         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
25295
25296 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
25297
25298         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
25299         offset for stack bias.
25300
25301 2002-02-07  H.J. Lu <hjl@gnu.org>
25302
25303         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
25304
25305 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
25306
25307         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
25308
25309 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
25310
25311         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
25312         * i386.c (x86_order_regs_for_local_alloc): New global function.
25313         * i386.h (REG_ALLOC_ORDER): CLeanup.
25314         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
25315
25316 2002-02-07  Richard Henderson  <rth@redhat.com>
25317
25318         PR optimization/2463
25319         * alias.c (find_base_value): Recall base values for fixed hard regs.
25320         * loop.c (loop_regs_update): Don't use single_set on non-insns.
25321
25322 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
25323
25324         * config/mips/mips.md (define_delay) [mips16]: Adjust required
25325         length.
25326
25327 2002-02-06  Richard Henderson  <rth@redhat.com>
25328
25329         PR c/5609
25330         * stmt.c (resolve_operand_name_1): Take more care with mixed
25331         named and unnamed operands.
25332
25333 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
25334             Jan Hubicka  <jh@suse.cz>
25335
25336         * loop.c (remove_constant_addition): Avoid clobbering a shared
25337         CONST expression.
25338
25339 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
25340
25341         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
25342         * config/s390/t-linux64: New file.
25343         * config/s390/libgcc-glibc.ver: New file.
25344
25345 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
25346
25347         * config/s390/linux64.h: Delete file.
25348         * config/s390/s390x.h: New file.
25349         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
25350         as target header file.
25351         * config/s390/linux.h (TARGET_VERSION): Define depending on
25352         DEFAULT_TARGET_64BIT.
25353         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
25354         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
25355         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
25356         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
25357         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
25358         (EXTRA_SPEC): New define.
25359         * config/s390/s390.h (TARGET_VERSION): Define depending on
25360         DEFAULT_TARGET_64BIT.
25361         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
25362
25363 2002-02-06  Jason Merrill  <jason@redhat.com>
25364
25365         * c-decl.c (finish_function): Warn about a non-void function with
25366         no return statement and no abnormal exit.
25367         (current_function_returns_abnormally): New variable.
25368         (start_function): Clear it.
25369         (struct c_language_function): Add returns_abnormally.
25370         (push_c_function_context): Save it.
25371         (pop_c_function_context): Restore it.
25372         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
25373         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
25374         an explicit return type.
25375         * c-tree.h: Declare current_function_returns_abnormally.
25376         (C_FUNCTION_IMPLICIT_INT): New macro.
25377         * c-typeck.c (build_function_call): Set it.
25378         (c_expand_return): Set current_function_returns_value even if the
25379         value is erroneous.
25380
25381 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
25382
25383         PR c/5420:
25384         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
25385         unsafe for reevaluation.
25386
25387 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
25388
25389         PR c/5482:
25390         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
25391         EXPR_STMT, but COMPOUND_STMT, recurse into it.
25392
25393 2002-02-06  Richard Henderson  <rth@redhat.com>
25394
25395         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
25396         be a general_operand.  Dest for function value must be a pseudo.
25397
25398 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
25399
25400         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
25401         as SYMBOL_REFs from the constant pool.
25402
25403 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
25404
25405         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
25406         passed by invisible reference.
25407
25408 2002-02-05  Richard Henderson  <rth@redhat.com>
25409
25410         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
25411
25412 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
25413
25414         Implement using "base addresses" in insn operands as default.
25415         * config/mmix/mmix.c (mmix_conditional_register_usage): if
25416         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
25417         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
25418         used to read the rtx value.
25419         (mmix_target_asm_function_epilogue): Fix spacing.
25420         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
25421         (mmix_legitimate_address): Ditto.
25422         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
25423         should be loaded with a GETA insn.  Don't allocate needless extra
25424         char for nul termination and fix misleading comment.
25425         (mmix_print_operand_address): Handle constants if
25426         TARGET_BASE_ADDRESSES.
25427         (mmix_output_register_setting): Use base addressing if
25428         TARGET_BASE_ADDRESSES and the number of insns is 3.
25429         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
25430         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
25431         to use R as constraint, add LDA to match s.
25432         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
25433         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
25434         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
25435         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
25436         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
25437         order with other fixed registers.
25438         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
25439         other parameter/call-clobbered registers.
25440         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
25441         -mbase-addresses, -mno-base-addresses.
25442         (MMIX Options): Ditto.
25443
25444 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25445
25446         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
25447
25448 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
25449
25450         * config/rs6000/altivec.h: Change elem to _S_elem.
25451
25452 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
25453
25454         * config/netbsd.h (WCHAR_TYPE): Define.
25455         (WCHAR_TYPE_SIZE): Ditto.
25456         (WINT_TYPE): Ditto.
25457         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
25458         (WCHAR_UNSIGNED): Ditto.
25459         (WCHAR_TYPE_SIZE): Ditto.
25460         (WINT_TYPE): Ditto.
25461         * config/arm/netbsd.h: Likewise.
25462         * config/i386/netbsd-elf.h: Likewise.
25463         * config/i386/netbsd.h: Likewise.
25464         * config/m68k/netbsd-elf.h: Likewise.
25465         * config/m68k/netbsd.h: Likewise.
25466         * config/ns32k/netbsd.h: Likewise.
25467         * config/sparc/netbsd.h: Likewise.
25468         * config/vax/netbsd.: Likewise.
25469
25470 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
25471
25472         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
25473         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
25474         (TARGET_INITIALIZER): this.
25475         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
25476         (BITFIELD_NBYTES_LIMITED): Markup fix.
25477         * tree.h (default_ms_bitfield_layout_p): Declare.
25478         (record_layout_info): Added prev_field.
25479         * tree.c (default_ms_bitfield_layout_p): New fn.
25480         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
25481         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
25482         * stor-layout.c: Include target.h.
25483         (start_record_layout): Initialize prev_field.
25484         (place_field): Handle MS bit-field layout, and disregard
25485         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
25486         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
25487         * Makefile.in (stor-layout.o): Adjust dependencies.
25488
25489 2002-02-05  Jason Merrill  <jason@redhat.com>
25490
25491         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
25492
25493 2002-02-05  Andreas Jaeger  <aj@suse.de>
25494
25495         * crtstuff.c: Fix comments.
25496
25497 2002-02-05  Richard Henderson  <rth@redhat.com>
25498
25499         PR fortran/3393
25500         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
25501         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
25502
25503         PR fortran/3392
25504         * config/mips/mips.c (function_arg): Handle TImode.
25505         (function_arg_advance): Likewise.
25506
25507 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25508
25509         * config/rs6000/altivec.h (vec_step_help): Rename to
25510         __vec_step_help.
25511
25512 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25513
25514         * config/rs6000/altivec.h: Fix typos.
25515
25516 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
25517
25518         * config/arm/netbsd.h: Correct a comment.
25519
25520 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25521
25522         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
25523         building void typed builtins.
25524
25525         * config/rs6000/altivec.h (vec_ld*): Fix typos.
25526         (vec_step): Implement for C++.
25527
25528 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25529
25530         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
25531
25532 2002-02-04  Richard Henderson  <rth@redhat.com>
25533
25534         * combine.c (nonzero_bits): Re-introduce special case for
25535         sp/fp/ap wrt REGNO_POINTER_ALIGN.
25536
25537 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25538
25539         * doc/extend.texi: Warn about unsupported usage of altivec
25540         builtins.
25541
25542         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
25543         (altivec_predicate_*): New.
25544
25545         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
25546         Add C++ version of vec_*() functions.
25547
25548         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
25549         (bdesc_2arg): Remove altivec predicates.
25550         (altivec_expand_builtin): Handle predicates.
25551         (altivec_init_builtins): Handle predicates.
25552         (altivec_expand_predicate_builtin): New.
25553
25554 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25555
25556         * pa.c (DO_FRAME_NOTES): Move forward.
25557         (store_reg): Revise handling of frame notes.
25558         (load_reg): Likewise.
25559         (set_reg_plus_d): Likewise.
25560         (hppa_expand_prologue): Likewise.
25561         (hppa_expand_epilogue): Likewise.
25562
25563 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25564
25565         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
25566
25567 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25568
25569         PR c/4475, c++/3780:
25570         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
25571         * c-common.h (SWITCH_TYPE): Define.
25572         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
25573         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
25574         Rename spareness variable to sparseness.
25575         (expand_end_case_type): Renamed from expand_end_case, use orig_type
25576         if non-NULL instead of TREE_TYPE (orig_index).
25577         * tree.h (expand_end_case_type): Renamed from expand_end_case.
25578         (expand_end_case): Define using expand_end_case_type.
25579         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
25580         to expand_end_case_type.
25581         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
25582
25583 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25584
25585         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
25586         (BIGGEST_ALIGNMENT): Change to 128.
25587
25588 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25589
25590         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
25591
25592 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25593
25594         * pa.md (call_internal_reg_64bit): Remove unused variable.
25595
25596 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
25597
25598         * config/arm/arm.h (machine_function): Add uses_anonymous_args
25599         field.
25600         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
25601         * config/arm/arm.c (current_function_anonymous_args): Delete,
25602         replace uses with cfun->machine->uses_anonymous_args.
25603         (arm_reorg): Do not reset uses_anonymous_args.
25604
25605         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
25606         any geenral register.
25607
25608 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
25609
25610         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
25611         the entry block.
25612
25613 2002-02-04  Richard Henderson  <rth@redhat.com>
25614
25615         * combine.c (force_to_mode): Remove STACK_BIAS code.
25616         (nonzero_bits): Likewise.  Replace sp/fp special case with
25617         REGNO_POINTER_ALIGN.
25618
25619         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
25620         (HARD_FRAME_POINTER_REGNUM): New.
25621         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
25622         (FIXED_REGS, CALL_USED_REGS): Update.
25623         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
25624         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
25625         (HARD_REGNO_NREGS): Update for SFP.
25626         (STACK_POINTER_OFFSET): Include bias here ...
25627         (FIRST_PARM_OFFSET): ... not here.
25628         (STACK_BIAS): Remove.
25629         (INIT_EXPANDERS): New.
25630         (STARTING_FRAME_OFFSET): Do not include bias.
25631         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
25632         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
25633         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
25634         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
25635         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
25636         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
25637         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
25638         (MUST_SAVE_REGISTER): Likewise.
25639         (sparc_flat_function_prologue): Likewise.
25640         (sparc_flat_function_epilogue): Likewise.
25641         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
25642         (sparc_init_modes): SFP is GENERAL_REGS.
25643         (sparc_builtin_saveregs): SFP does not have bias applied.
25644
25645 2002-02-04  Richard Henderson  <rth@redhat.com>
25646
25647         * config/alpha/alpha.c (current_function_is_thunk): Don't check
25648         current_function_is_thunk.
25649         (alpha_sa_mask): Distinguish between current_function_is_thunk
25650         called from ASM_OUTPUT_MI_THUNK and not.
25651         (alpha_does_function_need_gp): Thunks always need gp.
25652         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25653         (alpha_output_mi_thunk_osf): New.
25654         * config/alpha/alpha-protos.h: Update.
25655         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
25656
25657 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
25658
25659         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
25660         function types, not when they're taken away.
25661
25662 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
25663
25664         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
25665         CODE_LABEL and jump table when replacing a table jump with a
25666         simple jump.
25667
25668 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
25669
25670         * config/s390/s390-protos.h (legitimize_la_operand,
25671         s390_secondary_input_reload_class, s390_plus_operand,
25672         s390_expand_plus_operand): Add prototypes.
25673
25674         config/s390/s390.c (s390_secondary_input_reload_class,
25675         s390_plus_operand, s390_expand_plus_operand): New functions.
25676
25677         (struct s390_address): New member 'pointer'.
25678         (s390_decompose_address): Compute it.
25679         (legitimate_la_operand_p): Use it.
25680         (legitimize_la_operand): New function.
25681         (movti, movdi, movdf splitters): Call it.
25682
25683         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
25684         (PREDICATE_CODES): Add s390_plus_operand.
25685
25686         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
25687         (la_ccclobber): Allow GENERAL_REGS as output operand.
25688
25689         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
25690         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
25691         (*la_64, *la_31, reload_indi, reload_insi): ... these.
25692
25693 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
25694
25695         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
25696         register names for regular asm () construct.
25697
25698 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25699
25700         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
25701         registers.
25702
25703 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25704
25705         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
25706         pat for recog.
25707
25708 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
25709
25710         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
25711         constant pool to be identical by string address and index.
25712
25713 2002-02-04  Anthony Green  <green@redhat.com>
25714
25715         * output.h (SECTION_OVERRIDE): Define.
25716         * varasm.c (named_section): Obey SECTION_OVERRIDE.
25717
25718 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
25719
25720         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
25721         by existing arm*-*-netbsd* (a.out) target.
25722         (ns32k-*-netbsdelf*): Likewise.
25723         (sparc-*-netbsdelf*): Likewise.
25724         (vax-*-netbsdelf*): Likewise.
25725
25726 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
25727
25728         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
25729         headers and libobjc headers.
25730
25731 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
25732
25733         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
25734         (_mingw.h): Remove duplicate include.
25735
25736 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
25737
25738         * config.gcc: Set cpu_type to m68k for 68010, as well.
25739         (m68010-*-netbsdelf*): New...
25740         (m68k*-*-netbsdelf*): ...targets.
25741         * config/m68k/netbsd-elf.h: New file.
25742
25743 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25744
25745         * config/h8300/h8300.c (hand_list): Move inside function_arg.
25746
25747 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25748
25749         * config/h8300/h8300.c (h8_push_ops): Move inside
25750         h8300_init_once.
25751         (h8_pop_ops): Likewise.
25752         (h8_move_ops): Likewise.
25753
25754 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25755
25756         * config/h8300/h8300.c (os_task): Make it static.
25757         (monitor): Likewise.
25758         (pragma_saveall): Likewise.
25759
25760 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
25761
25762         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
25763         constant is a valid sign-extension for Pmode.
25764
25765 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25766
25767         * config/h8300/h8300.c: Fix formatting.
25768
25769 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25770
25771         * config/h8300/h8300.md: Fix formatting.
25772
25773 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25774
25775         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
25776         predicates of operands[1].  Split the patterns for each
25777         processor variant.
25778
25779 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25780
25781         * config/h8300/h8300.md (xor patterns): Tighten the predicates
25782         of operands[1] to register_operand.
25783
25784 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
25785
25786         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
25787         * cpphash.c (_cpp_init_hashtable): Similarly.
25788         * cppinit.c (cpp_create_reader): Default the signed_char flag.
25789         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
25790         (COMMAND_LINE_OPTIONS): Recognize -f{un,}signed-char.
25791         (cpp_handle_option): Handle the new options.
25792         * cpplex.c (cpp_interpret_charconst): Use new flag.
25793         * cpplib.h (struct cpp_options): New member signed_char.
25794         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
25795         (cpp_options): Handle -fsigned-char and -funsigned-char.
25796         (static_specs): Remove signed_char_spec.
25797         (do_spec1): Don't handle %c.
25798         * system.h: Poison SIGNED_CHAR_SPEC.
25799         * tradcif.y (yylex): Use flag_signed_char.
25800         * tradcpp.h (flag_signed_char): New.
25801         * tradcpp.c (flag_signed_char): New.
25802         (main): Handle new command-line options.
25803         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
25804 config:
25805         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
25806         * avr/avr.h: Remove old comments.
25807         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
25808         (CC1_SPEC): Pass -fsigned-char if -mic*.
25809         (SIGNED_CHAR_SPEC): Remove.
25810 doc:
25811         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
25812
25813 2002-02-01  Eric Christopher  <echristo@redhat.com>
25814
25815         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
25816         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
25817         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
25818         (ASM_OUTPUT_REG_POP): Ditto.
25819
25820 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
25821
25822         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
25823         patch.
25824
25825 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
25826
25827         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
25828
25829 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
25830
25831         PR c/5304:
25832         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
25833         unconditionally.
25834
25835 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
25836
25837         * cfganal.c: Include tm_p.h.
25838         (keep_with_call_p): Fix the test that determines if a register holds
25839         the return value of a call.
25840
25841 2002-02-01  DJ Delorie  <dj@redhat.com>
25842
25843         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
25844         we are given conflicting registers, switch to the other one we
25845         had allocated for us.
25846         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
25847         as TImode so we know when the "other" register is available.
25848
25849 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
25850
25851         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
25852         sparc/sparc_bi.h.
25853
25854 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
25855
25856         * cfganal.c (keep_with_call_p): New function.
25857         (flow_call_edges_add): Prevent splitting a block between a call and
25858         a single-set instruction that should be kept in the same block.
25859
25860 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25861
25862         * doc/install.texi (avr): Update outdated URL.
25863
25864 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
25865
25866         * config/stormy16/stormy16.md (pushqi): New.
25867         (popqi): New.
25868         (pushhi): New.
25869         (pophi): New.
25870         (movhi): Remove stack operands.
25871         (movqi): Likewise.
25872         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
25873         nonimmediate_nonstack_operand.
25874         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
25875         New.
25876         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
25877         New.
25878
25879 2002-01-31  Jason Merrill  <jason@redhat.com>
25880
25881         * Makefile.in (c-parse.c): Handle .output file.
25882         * objc/Make-lang.in (objc-parse.c): Likewise.
25883
25884 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
25885
25886         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
25887         the -me[lb] option is given.  Don't output the default flag
25888         twice.
25889
25890 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
25891
25892         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
25893         the primary source file; this has not been done yet.
25894         * c-decl.c (c_expand_body): Reset input_filename from
25895         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
25896
25897 2002-01-31  Kazu Hirata  <kazu@hxi.com>
25898
25899         * rtlanal.c (subreg_regno_offset): Do not use
25900         SUBREG_REGNO_OFFSET.
25901         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
25902         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
25903
25904 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
25905
25906         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
25907         version rather than GNATS version in --version output.
25908
25909 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
25910
25911         * ifcvt.c (noce_process_if_block): Make a copy of the destination
25912         when copying back from a temporary.
25913
25914 2002-01-30  Richard Henderson  <rth@redhat.com>
25915
25916         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
25917         and new_dest are the same.
25918
25919 2002-01-30  Richard Henderson  <rth@redhat.com>
25920
25921         PR opt/5076
25922         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
25923         * rtl.c (note_insn_name): Update.
25924         * emit-rtl.c (remove_unnecessary_notes): Kill it.
25925         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
25926         to perform loop rotation.
25927         (expand_exit_loop_top_cond): New.
25928         * tree.h (expand_exit_loop_top_cond): Declare it.
25929         * c-semantics.c (genrtl_while_stmt): Use it.
25930         (genrtl_for_stmt): Likewise.
25931
25932 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
25933
25934         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
25935         arguments to 64-bit boundaries on 64-bit ABIs.
25936
25937 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
25938
25939         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
25940
25941 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
25942
25943         * c-decl.c (grokdeclarator): Handle type being a typedef for an
25944         invalid type.
25945
25946 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
25947
25948         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
25949         * config/sparc/sparc_bi.h: Remove file.
25950         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
25951
25952 2002-01-30  Richard Henderson  <rth@redhat.com>
25953
25954         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
25955
25956 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
25957
25958         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
25959
25960 2002-01-30  Jason Merrill  <jason@redhat.com>
25961
25962         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
25963         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
25964         (reg_save): Use DW_CFA_offset_extended_sf instead.
25965
25966         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
25967
25968 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25969
25970         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
25971         in cselib_lookup.
25972
25973 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
25974
25975         * rs6000.md ("*call_value_local32"): Remove constraints.
25976         ("*call_value_local64"): Same.
25977         ("*call_value_indirect_nonlocal_aix32"): Same.
25978         ("*call_value_nonlocal_aix32"): Same.
25979         ("*call_value_indirect_nonlocal_aix64"): Same.
25980         ("*call_value_nonlocal_aix64"): Same.
25981         ("*call_value_nonlocal_sysv"): Same.
25982
25983 2002-01-29  Richard Henderson  <rth@redhat.com>
25984
25985         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
25986
25987 2002-01-29  Richard Henderson  <rth@redhat.com>
25988
25989         * expr.c (force_operand): Ignore flag_pic for detecting pic
25990         address loads.
25991         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
25992         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
25993         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
25994         instead of open-coded loop.
25995         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
25996         be fixed when in use.
25997
25998 2002-01-29  Richard Henderson  <rth@redhat.com>
25999
26000         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
26001         * sched-rgn.c (propagate_deps): Update them.
26002         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
26003         clobbers list when either gets too long.
26004
26005 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
26006
26007         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
26008         and INDEX_REGS the same as GENERAL_REGS.
26009         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
26010
26011 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
26012
26013         * tree.c (build_nonstandard_integer_type): Correct prototype.
26014
26015 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
26016
26017         * config/s390/s390.md (movstrsico, movstrdix_64,
26018         movstrsix_31): Remove, replace by ...
26019         (movstrdi_short, movstrsi_short, movstrdi_long,
26020         movstrsi_long): ... these.  New.
26021         (movstrdi, movstrsi): Adapt.
26022
26023         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
26024         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
26025         Remove unnecessary CC clobber.
26026         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
26027         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
26028
26029         (divmoddi4): Don't partially initialize TImode register.
26030
26031 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
26032
26033         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
26034
26035 2002-01-29  Richard Henderson  <rth@redhat.com>
26036
26037         * flow.c (print_rtl_and_abort): Remove.
26038         (print_rtl_and_abort_fcn): Remove.
26039         (verify_local_live_at_start): Use dump_bb instead.
26040         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
26041         (verify_wide_reg_1): Return 2 on mode test failure.
26042
26043 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
26044
26045         PR c/3325, c/3326, c/2511, c/3347
26046         * c-decl.c (enum_decl_context): Remove BITFIELD.
26047         (grokdeclarator): Take bitfield width as an input.
26048         Ensure bitfields are given the correct type.  Perform
26049         bitfield width validation with build_bitfield_integer_type
26050         rather than waiting for finish_struct.
26051         (grok_typename, grok_typename_in_parm_context, start_decl,
26052         push_parmdecl, grokfield, start_function): Update calls to
26053         grokdeclarator.
26054         (build_bitfield_integer_type): New function.
26055         (finish_struct): Move bitfield validation to grokdeclarator
26056         and build_bitfield_integer_type.
26057         * tree.c (build_nonstandard_integer_type): New function.
26058         * tree.h (build_nonstandard_integer_type): New prototype.
26059 objc:
26060         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
26061
26062 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
26063
26064         PR other/1502:
26065         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
26066         don't ignore unrecognized -W* options.
26067         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
26068         * cpplib.h (cpp_handle_option): Adjust prototype.
26069         * c-decl.c (c_decode_options): Pass 0 as last argument to
26070         cpp_handle_option.
26071
26072         PR c/2896:
26073         * gcc.c (cpp_unique_options): Split from cpp_options.
26074         (cpp_options): Source cpp_unique_options.
26075         (default_compilers): Use cpp_unique_options instead of cpp_options
26076         when used together with cc1_options.
26077         (static_specs): Add cpp_unique_options.
26078         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
26079         when used together with cc1_options.
26080
26081 2002-01-29  Kazu Hirata  <kazu@hxi.com>
26082
26083         * config/h8300/h8300-protos.h: Update the prototype of
26084         output_a_shift.
26085         * config/h8300/h8300.c (output_a_shift): Remove an unused
26086         argument 'insn'.  Remove redundant code.
26087         * config/h8300/h8300.md: Adust to the new prototype of
26088         output_a_shift.
26089
26090 2002-01-29  Kazu Hirata  <kazu@hxi.com>
26091
26092         * config/h8300/h8300-protos.h: Update the prototypes of
26093         emit_a_rotate and expand_a_rotate.
26094         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
26095         first argument to 'enum rtx_code'.
26096         (expand_a_rotate): Likewise.
26097
26098 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26099
26100         * config/h8300/h8300-protos.h: Update the prototype of
26101         output_simode_bld.
26102         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
26103         'log2'.
26104         * config/h8300/h8300.md: Adjust to the new prototype.
26105
26106 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26107
26108         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
26109         redundant code.
26110
26111 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26112
26113         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
26114         is a fixed register before returning pic_offset_table_rtx.
26115         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
26116         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
26117
26118 2002-01-28  Jason Merrill  <jason@redhat.com>
26119
26120         * dwarf2.h: Sync with src version.
26121
26122 2002-01-28  Paul Koning  <pkoning@equallogic.com>
26123
26124         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
26125         BT_FN_VOID_PTR_VAR.
26126         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
26127         * doc/extend.texi (__builtin_prefetch): Update documentation:
26128         first argument is now const void ptr.
26129
26130 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26131
26132         * config/h8300/h8300-protos.h: Remove an unused prototype.
26133
26134 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
26135
26136         * toplev.c (lang_independent_init): Round up identifier size.
26137
26138 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
26139
26140         * config.gcc: Revert previous change.
26141
26142 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
26143
26144         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
26145
26146 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
26147
26148         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
26149         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
26150         other non-elf netbsd config frags.
26151         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
26152         collect2 will does that.
26153         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
26154         shared-lib frobbing will work.
26155
26156 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26157
26158         * config/h8300/h8300.h: Fix formatting.
26159         * config/h8300/h8300.md: Likewise.
26160
26161 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
26162
26163         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
26164         the old, removed AAA_standards fix.
26165         * fixinc/fixincl.x: Rebuilt.
26166
26167 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
26168
26169         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
26170         atexit call in crtbegin, hooked in after call to frame_dummy;
26171         register EH before registering __fini__start.
26172
26173 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
26174
26175         * config/rs6000/altivec.h: Remove spurious semicolons.
26176
26177 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26178
26179         * config/h8300/h8300.md: Replace dead bit extraction patterns
26180         with ones that work.
26181
26182 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26183
26184         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
26185         if not STRICT_ALIGNMENT.
26186         * rtl.h (MEM_ALIGN): Likewise.
26187
26188 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26189
26190         * doc/invoke.texi (-fdump-translation-unit): Revert this
26191         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26192
26193 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26194
26195         * config/h8300/h8300.md (define_constants): New.
26196         (anonymous patterns) Use defined constants appropriately.
26197
26198 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26199
26200         * config/h8300/h8300.c (function_arg): Remove redundant code.
26201
26202 2002-01-26  Richard Henderson  <rth@redhat.com>
26203
26204         * sched-deps.c (reg_pending_uses_head): New.
26205         (reg_pending_barrier): Rename from reg_pending_sets_all.
26206         (find_insn_list): Don't mark inline.
26207         (find_insn_mem_list): Remove.
26208         (add_dependence_list, add_dependence_list_and_free): New.
26209         (flush_pending_lists): Replace only_write param with separate
26210         for_read and for_write parameters.  Update all callers.  Use
26211         add_dependence_list_and_free.
26212         (sched_analyze_1): Do not add reg dependencies here; just set
26213         the pending bits.  Use add_dependence_list.
26214         (sched_analyze_2): Likewise.
26215         (sched_analyze_insn): Replace schedule_barrier_found with
26216         reg_pending_barrier.  Add all dependencies for pending reg
26217         uses, sets, and clobbers.
26218         (sched_analyze): Don't add reg dependencies for calls, just
26219         set pending bits.  Use regs_invalidated_by_call.  Treat
26220         sched_before_next_call as a normal list, not a fake insn.
26221         (init_deps): No funny init for sched_before_next_call.
26222         (free_deps): Free pending mems lists.  Don't zero reg_last.
26223         (init_deps_global): Init reg_pending_uses.
26224         (finish_deps_global): Free it.
26225         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
26226         (find_insn_mem_list): Remove.
26227         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
26228         (propagate_deps): Use them.  Zero temp mem lists.
26229
26230 2002-01-26  Richard Henderson  <rth@redhat.com>
26231
26232         * Makefile.in (CRTSTUFF_CFLAGS): New.
26233         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
26234         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
26235         crtstuff.c instead of alpha assembly version.
26236         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
26237         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
26238         not FORCE_{INIT,FINI}_SECTION_ALIGN.
26239         (__do_global_dtors_aux): Mark used.
26240         (frame_dummy, __do_global_ctors_aux): Mark used.
26241         (fini_dummy, init_dummy): Remove.
26242
26243         * config/alpha/crtbegin.asm: Remove file.
26244         * config/alpha/crtend.asm: Remove file.
26245         * config/alpha/t-crtbe: Remove file.
26246         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
26247         (LINK_EH_SPEC): New.
26248
26249         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
26250         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
26251         calling constructors.
26252         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
26253
26254         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
26255         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
26256         CRT_END_INIT_DUMMY hack.
26257         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
26258         FORCE_{INIT,FINI}_SECTION_ALIGN.
26259
26260         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
26261         FORCE_{INIT,FINI}_SECTION_ALIGN.
26262
26263         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
26264         invocation sequence.
26265         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
26266
26267         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
26268         (FORCE_CODE_SECTION_ALIGN): New.
26269
26270 2002-01-26  Richard Henderson  <rth@redhat.com>
26271
26272         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
26273
26274 2002-01-26  Richard Henderson  <rth@redhat.com>
26275
26276         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
26277         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
26278
26279 2002-01-26  Kazu Hirata  <kazu@hxi.com>
26280
26281         * config/h8300/h8300.md: Remove bit extraction patterns that
26282         cannot be triggered.
26283         Restrict each bit extraction pattern to a variant on which the
26284         pattern is tested.
26285
26286 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
26287
26288         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
26289
26290 2002-01-26  Kazu Hirata  <kazu@hxi.com>
26291
26292         * config/h8300/h8300.md: Remove bit test patterns that cannot
26293         be triggered.
26294         Restrict each bit test pattern to a variant on which the
26295         pattern is tested.
26296
26297 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26298
26299         * builtins.c (expand_builtin_strncat): Remove redundant check for
26300         INTEGER_CST.
26301
26302 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
26303
26304         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
26305         default setting.
26306         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
26307         existing setting.
26308
26309 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
26310
26311         * dbxout.c (dbxout_init): Use assemble_name rather than just
26312         stripping off the first character.
26313         (dbxout_source_file): Likewise.
26314
26315 2002-01-25  DJ Delorie  <dj@redhat.com>
26316
26317         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
26318         using rtx_equal_p, not by comparing pointers.
26319
26320 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
26321
26322         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
26323         for PIC_OFFSET_TABLE_REGNUM.
26324         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
26325
26326 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
26327
26328         * config.gcc (x86_64-*-freebsd*): New target.
26329         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
26330         value.
26331         (i[34567]86-*-freebsd*): Don't include svr4.h.
26332         * config/i386/freebsd64.h: New file.
26333
26334 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
26335
26336         * config/alpha/x-vms (version): Make static.
26337
26338         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
26339         in previous checkin.
26340
26341         * Makefile.in (install-headers-cp): New target.
26342         * config.gcc (alpha-dec-*vms*): Install headers with
26343         install-headers-cp
26344
26345 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
26346
26347         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
26348         avoid it's copies.
26349
26350 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26351
26352         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
26353         of compare_tree_int.
26354         (expand_builtin_strncat): Likewise.
26355         * c-decl.c (finish_struct): Use tree_low_cst.
26356         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
26357         * tree.c (compare_tree_int): Likewise.
26358
26359 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
26360
26361         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
26362         adjustments even if they are implemented by more than two insns.
26363
26364 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
26365
26366         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
26367         * df.h (struct ref): Kill B.
26368         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
26369
26370         * basic-block.h (PROP_EQUAL_NOTES): New flag.
26371         * flow.c (propagate_one_insn): Use it.
26372         (mark_used_regs): Handle NIL.
26373
26374 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
26375
26376         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
26377         to help folding.
26378
26379 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
26380
26381         * rs6000.md (prefetch): Make address V4SI mode so that the address
26382         is restricted to legitimate form for instruction.
26383
26384 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
26385
26386         * doc/install.texi (xtensa-*-elf): New target.
26387         (xtensa-*-linux*): New target.
26388         * doc/contrib.texi: Add myself.
26389
26390 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
26391
26392         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
26393         purpose register to hold an SImode (or smaller) value.
26394
26395 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
26396
26397         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
26398         registry only.
26399         * crtstuff.c: Likewise.
26400
26401 2002-01-25  Kazu Hirata  <kazu@hxi.com>
26402
26403         * config/h8300/h8300.md (negation patterns): Tighten
26404         predicates to register_operand.
26405
26406 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
26407
26408         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
26409         mode, not Pmode.
26410
26411         * builtins.c (expand_builtin_prefetch): Same.
26412
26413 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26414
26415         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
26416         modes.
26417
26418 2002-01-24  Kazu Hirata  <kazu@hxi.com>
26419
26420         * config/h8300/h8300.c (print_operand): Remove support for
26421         operand character 'A'.
26422         * config/h8300/h8300.md (three anonymous patterns): Replace
26423         operand character 'A' with either 'T' or 'S'.
26424
26425 2002-01-24  Kazu Hirata  <kazu@hxi.com>
26426
26427         * config/h8300/h8300.c (print_operand): Remove support for
26428         operand character 'U'.
26429
26430 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
26431
26432         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
26433
26434 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
26435
26436         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
26437         values to be assigned to the stack pointer.
26438
26439 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
26440
26441         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
26442         to const_double needs to be done right for big-endian systems.
26443
26444 2002-01-24  Jason Merrill  <jason@redhat.com>
26445
26446         PR c++/2432
26447         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
26448         to can_throw_internal.
26449
26450 2002-01-23  Richard Henderson  <rth@redhat.com>
26451
26452         * fold-const.c (fold): Change UINT_MAX test to check vs precision
26453         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
26454
26455 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26456
26457         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
26458         (symGOT2reg): Use them, then set as GOT value as unchanging.
26459         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
26460         as a temporary, if possible.
26461         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
26462         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
26463
26464 2002-01-23  Kazu Hirata  <kazu@hxi.com>
26465
26466         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
26467         accept to accept 0x80 as operands[2].
26468
26469 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26470
26471         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
26472
26473 2002-01-23  Richard Henderson  <rth@redhat.com>
26474
26475         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
26476
26477 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
26478
26479         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
26480         (parmlist_or_identifiers_1): Verify that only a parmlist follows
26481         an attribute.
26482
26483 2002-01-23  Richard Henderson  <rth@redhat.com>
26484
26485         * expr.c (move_by_pieces_1): Extend size before negation.
26486
26487         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
26488         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
26489         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
26490         * config/m68k/t-m68kelf: Likewise.
26491
26492 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
26493
26494         * config/xtensa/elf.h: New file.
26495         * config/xtensa/lib1funcs.asm: New file.
26496         * config/xtensa/lib2funcs.S: New file.
26497         * config/xtensa/linux.h: New file.
26498         * config/xtensa/t-xtensa: New file.
26499         * config/xtensa/xtensa-config.h: New file.
26500         * config/xtensa/xtensa-protos.h: New file.
26501         * config/xtensa/xtensa.c: New file.
26502         * config/xtensa/xtensa.h: New file.
26503         * config/xtensa/xtensa.md: New file.
26504         * config.gcc (xtensa-*-elf*): New target.
26505         (xtensa-*-linux*): New target.
26506         * cse.c (canon_hash): Compare rtx pointers instead of register
26507         numbers.  This is required for the Xtensa port.
26508         * integrate.c (copy_insn_list): Handle case where the static
26509         chain is in memory and the memory address has to be copied to
26510         a register.
26511         * doc/invoke.texi (Option Summary): Add Xtensa options.
26512         (Xtensa Options): New node.
26513         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
26514
26515 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
26516
26517         * diagnostic.c (internal_error): Do ICE suppression only
26518         when ENABLE_CHECKING is not defined.
26519
26520         * c-typeck.c (require_complete_type): Return error_mark_node
26521         if type is error_mark_node.
26522
26523 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
26524
26525         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
26526         -Os and issue a warning.
26527
26528 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
26529
26530         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
26531         current (lack of) need for host configuration by hand.
26532
26533         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
26534         references.  Documentation of some target macros moved from
26535         hostconfig.texi to tm.texi.
26536
26537 2002-01-23  Will Cohen  <wcohen@redhat.com>
26538
26539         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
26540         defined.
26541
26542 2002-01-23  Kazu Hirata  <kazu@hxi.com>
26543
26544         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
26545         operand[3].
26546
26547 2002-01-23  Jason Merrill  <jason@redhat.com>
26548
26549         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
26550
26551         * function.c (assign_parms): Don't put args of inline functions
26552         into registers when not optimizing.
26553
26554 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
26555
26556         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
26557         (prologue_use): New pattern.
26558         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
26559         preference to gen_rtx_USE.
26560         (thumb_expand_prologue): Use gen_prologue_use in preference to
26561         gen_rtx_USE.
26562         (thumb_expand_epilogue): Use gen_prologue_use in preference to
26563         gen_rtx_USE.
26564
26565 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
26566
26567         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
26568
26569 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
26570
26571         PR c/3504
26572         * doc/extend.texi: Correct documentation of __alignof__.
26573
26574 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
26575
26576         * params.h: Rename arguments of DEFPARAM so that it will be
26577         recognized as a translation keyword.
26578
26579 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26580
26581         * extend.texi: Document altivec functions.
26582         Fix N-bit adjectives in X86 builtin documentation.
26583
26584 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
26585
26586         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
26587         auto_inc_dec values.
26588
26589 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
26590
26591         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
26592         after backslash.
26593         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
26594
26595 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
26596
26597         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
26598
26599 2002-01-22  Richard Henderson  <rth@redhat.com>
26600
26601         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
26602         copy_insn not copy_rtx.
26603
26604 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
26605
26606         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
26607         "nonzero" as that might add "1" bits.  Ensure "constop" is
26608         properly sign extened.
26609         (force_to_mode): Tweak for sign extended constop.
26610
26611 2002-01-22  Richard Henderson  <rth@redhat.com>
26612
26613         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
26614         for_each_rtx instead of assuming we're already looking at the MEM.
26615         (split_small_symbolic_mem_operand): Likewise.
26616         * config/alpha/alpha.h (PREDICATE_CODES): Update.
26617         * config/alpha/alpha.md (small symbolic memory splitters): Update.
26618
26619 2002-01-22  Richard Henderson  <rth@redhat.com>
26620
26621         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
26622         sequence number for the literal.
26623         (divmoddi_internal_er): Likewise.
26624
26625 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26626
26627         PR java/4972
26628         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
26629         in LIBICONV variable.
26630         * configure: Regenerated.
26631
26632 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
26633
26634         * dependence.c (build_def_use): Remove array_idx.
26635
26636         * dwarfout.c (last_filename): Remove.
26637         (output_compile_unit_die): Remove last_filename.
26638
26639 2002-01-22  Roger Sayle  <roger@eyesopen.com>
26640             Richard Henderson  <rth@redhat.com>
26641
26642         PR opt/3640
26643         * fold-const.c (fold): Optimize unsigned comparisons against
26644         UINT_MAX (and similar unsigned constants).
26645
26646 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
26647
26648         * Makefile.in (loop.o): Depend on OPTABS_H.
26649         * loop.c (emit_prefetch_instructions): Check the prefetch operand
26650         against the predicate.
26651
26652         PR target/5379
26653         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
26654         for the address operand.
26655
26656 2002-01-22  Richard Henderson  <rth@redhat.com>
26657
26658         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
26659
26660 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26661
26662         PR other/5450
26663         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
26664         preprocessor flags.
26665
26666 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
26667
26668         * config.gcc (x86_64-*-netbsd*): New target.
26669         * config/i386/netbsd64.h: New file.
26670
26671 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26672
26673         * regrename.c (kill_value): Fix typo.
26674
26675 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26676
26677         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
26678
26679         * config/rs6000/rs6000.h: Same.
26680
26681         * function.c (instantiate_virtual_regs): Remove
26682         STARTING_FRAME_PHASE.
26683         (assign_stack_local_1): Same.
26684         Calculate frame phase.
26685
26686 2002-01-22  Nick Clifton  <nickc@redhat.com>
26687
26688         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
26689         variable declaration to outer scope in order to simplify
26690         future extensions.
26691         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
26692         arm_hard_regno_mode_ok.
26693         * config/arm/arm-protos.h: Add a prototype for
26694         arm_hard_regno_mode_ok.
26695         * config/arm/arm.c (soft_df_operand): Remove now redundant
26696         check for DImode values using IP_REGNUM.
26697         (nonimmediate_soft_df_operand): Remove now redundant check for
26698         DImode values using IP_REGNUM.
26699         (arm_hard_regno_mode_ok): New function. New check: make sure
26700         that DImode values are not stored in IP_REGNUM.
26701
26702         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
26703         note with a USE.
26704         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
26705
26706 2002-01-22  Jason Merrill  <jason@redhat.com>
26707
26708         * c-semantics.c (genrtl_compound_stmt): Only check nesting
26709         consistency if this COMPOUND_STMT is scoped.
26710
26711 2002-01-22  Kazu Hirata  <kazu@hxi.com>
26712
26713         * predict.c: Fix formatting.
26714         * print-tree.c: Likewise.
26715         * protoize.c: Likewise.
26716         * real.h: Likewise.
26717         * rtl.h: Likewise.
26718         * sbitmap.h: Likewise.
26719         * scan.c: Likewise.
26720         * sched-deps.c: Likewise.
26721         * sched-vis.c: Likewise.
26722         * sdbout.c: Likewise.
26723         * sibcall.c: Likewise.
26724         * ssa.c: Likewise.
26725         * ssa-ccp.c: Likewise.
26726         * ssa-dce.c: Likewise.
26727         * stmt.c: Likewise.
26728         * stor-layout.c: Likewise.
26729         * system.h: Likewise.
26730
26731 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26732
26733         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
26734         if fits in bounds of base type.
26735
26736         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
26737         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
26738         (add_bound_info, default): If can't find a context, make a
26739         SAVE_EXPR.
26740         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
26741
26742 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
26743
26744         * c-typeck.c (parser_build_binary_op): If result from
26745         build_binary_op is ERROR_MARK just return error_mark_node without
26746         further processing.
26747
26748 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
26749
26750         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
26751         Split a.out-specific bits into...
26752         * config/netbsd-aout.h: ...this.
26753         * config/netbsd-elf.h: New file.
26754         * config/alpha/netbsd-elf.h: Remove.
26755         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
26756         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
26757         (STARTFILE_SPEC): Remove redundant definition.
26758         (ENDFILE_SPEC): Likewise.
26759         (LINK_SPEC): Likewise.
26760         (CPP_SPEC): Likewise.
26761         (ASM_SPEC): Likewise.
26762         (LIB_SPEC): Likewise.
26763         (SWITCH_TAKES_ARG): Likewise.
26764         (TARGET_MEM_FUNCTIONS): Likewise.
26765         (CPP_PREDEFINES): Redefine.
26766         (ASM_FINAL_SPEC): Remove redefinition.
26767         (ASM_COMMENT_START): Redefine.
26768         (FUNCTION_PROFILER): Define.
26769         (TARGET_VERSION): Redefine.
26770         Comment and formatting cleanup.
26771         * config/i386/netbsd.h: Include <netbsd-aout.h>.
26772         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
26773         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
26774         big- or little-endian.
26775         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
26776         * config.gcc (*-*-netbsd*): Add definitions common to all
26777         NetBSD configs.
26778         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
26779         gnu_ld definitions.  Add netbsd-elf.h to and remove
26780         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
26781         tmake_file, and don't lose previous tmake_file contents.
26782         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
26783         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
26784         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
26785         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
26786         (mipsel-*-netbsd*): Rename this to...
26787         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
26788         mips/little.h to tm_file for mips*el-*.
26789         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
26790         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
26791         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
26792
26793 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26794
26795         * pa-protos.h (reg_before_reload_operand): New function prototype.
26796         * pa.c (reg_before_reload_operand): New function implementation.
26797         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
26798         contraints to "*m".
26799
26800 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26801
26802         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
26803
26804 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26805
26806         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
26807         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
26808         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
26809         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
26810         (ENDFILE_SPEC): Undefine.
26811         (STARTFILE_SPEC): Redefine for PA.
26812
26813 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26814
26815         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
26816
26817 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
26818
26819         * config.gcc: Add entries to supported PowerPC --with-cpu
26820         types.
26821
26822 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
26823
26824         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
26825         true for 64-bit mode only SSE registers in 32-bit mode.
26826
26827 2002-01-21  Kazu Hirata  <kazu@hxi.com>
26828
26829         * unwind-dw2.c: Fix formatting.
26830         * unwind-dw2-fde.c: Likewise.
26831         * unwind-dw2-fde.h: Likewise.
26832         * unwind-pe.h: Likewise.
26833         * varasm.c: Likewise.
26834         * varray.h: Likewise.
26835
26836 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
26837
26838         Remove workaround for register stack overwrite bug in mmix.
26839         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
26840         support for TARGET_REG_STACK_FILL_BUG.
26841         * config/mmix/mmix.h: Remove member has_call_without_parameters.
26842         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
26843         Delete.
26844         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
26845         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
26846         -mno-reg-stack-fill-bug-workaround.
26847         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
26848         machine member has_call_without_parameters.
26849         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
26850         -mreg-stack-fill-bug-workaround and
26851         -mno-reg-stack-fill-bug-workaround.
26852         (MMIX Options): Ditto.
26853
26854 2002-01-21  Kazu Hirata  <kazu@hxi.com>
26855
26856         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
26857         as appropriate.
26858         Remove redundant code.
26859
26860 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
26861
26862         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
26863         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
26864         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
26865         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
26866         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
26867         out target macro definitions and non-target-specific comments
26868         mostly taken from old versions of the manual.
26869
26870 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26871
26872         * config/h8300/h8300.h: Fix comment formatting.
26873         * config/ia64/aix.h: Likewise.
26874         * config/ia64/ia64-protos.h: Likewise.
26875         * config/ia64/ia64.c: Likewise.
26876         * config/ia64/ia64.h: Likewise.
26877         * config/ia64/ia64intrin.h: Likewise.
26878         * config/ia64/linux.h: Likewise.
26879         * config/ia64/unwind-aix.c: Likewise.
26880         * config/ia64/unwind-ia64.c: Likewise.
26881
26882 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26883
26884         * config/h8300/h8300.c: Revise comments about shift code.
26885
26886 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26887
26888         * config/h8300/h8300.c (function_arg): Update a comment.
26889
26890 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26891
26892         * config/h8300/h8300.md: Update the comments at the beginning
26893         of the file.
26894
26895 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26896
26897         * config/i370/i370.c: Fix comment formatting.
26898         * config/i370/i370.h: Likewise.
26899         * config/i370/i370.md: Likewise.
26900         * config/i370/linux.h: Likewise.
26901
26902 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26903
26904         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
26905
26906         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
26907         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
26908         in incomplete case.
26909
26910 2002-01-20  Graham Stott  <grahams@redhat.com>
26911
26912         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
26913
26914 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26915
26916         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
26917
26918 2002-01-19  Tom Rix  <trix@redhat.com>
26919
26920         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
26921
26922 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
26923
26924         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
26925
26926         * function.c (assign_stack_local_1): Adjust x_frame_offset with
26927         STARTING_FRAME_PHASE.
26928         (STARTING_FRAME_PHASE): New.
26929         (instantiate_virtual_regs): Check saneness of
26930         STARTING_FRAME_PHASE.
26931
26932         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
26933
26934 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
26935
26936         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
26937
26938 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26939
26940         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
26941         be used for bootstrapping GCC 3.0.
26942
26943 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26944
26945         * config/h8300/h8300.md: Fix an insn length.
26946
26947 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26948
26949         * bitmap.h: Fix comment formatting.
26950         * combine.c: Likewise.
26951         * cppfiles.c: Likewise.
26952         * c-pragma.h: Likewise.
26953         * c-typeck.c: Likewise.
26954         * df.c: Likewise.
26955         * dwarf2out.c: Likewise.
26956         * function.c: Likewise.
26957         * gcc.c: Likewise.
26958         * genattrtab.c: Likewise.
26959         * gthr-win32.h: Likewise.
26960         * haifa-sched.c: Likewise.
26961         * predict.c: Likewise.
26962         * rtlanal.c: Likewise.
26963         * rtl.h: Likewise.
26964         * unwind-dw2-fde.h: Likewise.
26965         * unwind-pe.h: Likewise.
26966         * vmsdbgout.c: Likewise.
26967
26968 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26969
26970         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
26971         if type_required and passed decl.
26972
26973 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
26974
26975         * config.gcc (cpu_type): Include altivec.h in powerpc
26976         extra_headers.
26977         Same for darwin.
26978
26979         * config/rs6000/altivec.h: New.
26980
26981 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
26982
26983         * doc/install.texi (*-ibm-aix*): Update assembler and exception
26984         handling information.
26985         * doc/trouble.texi (Interoperation): Add libstdc++ information
26986         for AIX.
26987         (Misunderstandings): Add template instantiation and static template
26988         member information for AIX.
26989
26990 2002-01-17  Jason Merrill  <jason@redhat.com>
26991
26992         * dbxout.c (dbxout_type): Support const and volatile.
26993
26994         * except.c (add_partial_entry): Remove backwards compatibility code.
26995         (end_protect_partials): Likewise.
26996
26997 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
26998
26999         * config/ia64/ia64.md (prologue_use): New.
27000         * config/ia64/ia64.c (ia64_expand_prologue): Use
27001         gen_prologue_use instead of gen_rtx_USE.
27002         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
27003         as CODE_FOR_pred_rel_mutex.
27004         (ia64_sched_reorder2): Likewise.
27005
27006 2002-01-16  Eric Christopher  <echristo@redhat.com>
27007
27008         * config/mips/r3900.h: Reformat.
27009         (SUBTARGET_CPP_SIZE_SPEC): Remove.
27010         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
27011         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
27012         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
27013         * config/mips/t-elf: Remove mips3 multilib.
27014
27015 2002-01-16  H.J. Lu <hjl@gnu.org>
27016
27017         * config/mips/linux.h: Include "mips/abi64.h".
27018
27019 2002-01-16  H.J. Lu <hjl@gnu.org>
27020
27021         * config/mips/t-linux: New.
27022
27023         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
27024
27025         * config/mips/linux.h: Don't include "gofast.h".
27026         (INIT_SUBTARGET_OPTABS): Removed.
27027
27028 2002-01-16  Kazu Hirata  <kazu@hxi.com>
27029
27030         * config/h8300/h8300-protos.h: Replace emit_a_shift with
27031         output_a_shift.
27032         * config/h8300/h8300.c: Likewise.
27033         * config/h8300/h8300.md: Likewise.
27034
27035 2002-01-16  Kazu Hirata  <kazu@hxi.com>
27036
27037         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
27038         spaces after an opcode name.
27039         (pushqi1_h8300hs): Likewise.
27040         (pushhi1_h8300hs): Likewise.
27041
27042 2002-01-16  Kazu Hirata  <kazu@hxi.com>
27043
27044         * doc/extend.texi: Replace "option" with "attribute"
27045         appropriately.
27046
27047 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
27048
27049         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
27050         (and:DI () (const_int -8)).
27051         (split_small_symbolic_mem_operand): Split
27052         (mem (and:DI () (const_int -8)).
27053
27054 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
27055
27056         PR target/5309:
27057         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
27058         same way as TYPE_IMUL.
27059         (ultrasparc_sched_reorder): Likewise.
27060         * config/sparc/sparc.md (type): Add comment to update
27061         ultrasparc_sched_reorder when making changes.
27062
27063 2002-01-16  Kazu Hirata  <kazu@hxi.com>
27064
27065         * doc/invoke.texi: Change the dump file name of block
27066         reordering pass from 28.bbro to 29.bbro.
27067         Mention -dk option.
27068
27069 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
27070
27071         * i386.md (minsf splitter): Fix pasto.
27072
27073 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
27074
27075         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
27076         to frame pointer initialisation instruction.
27077         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
27078         initialisation instruction.
27079         (soft_df_operand): Do not accept the IP register.
27080         (nonimmediate_soft_df_operand): Do not accept the IP register.
27081
27082 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
27083
27084         PR target/5357:
27085         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
27086         MASK_V8 being both set.
27087
27088 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
27089
27090         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
27091         insn for GOT register; add REG_MAYBE_DEAD notes instead.
27092         config/s390/s390.md (call, call_value): Add GOT register to
27093         CALL_INSN_FUNCTION_USAGE where needed.
27094         (call_exp, call_value_exp): New.
27095
27096 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
27097
27098         * config/arm/arm.c: General formatting tidy up.
27099
27100 2002-01-16  Graham Stott  <grahams@redhat.com>
27101
27102         * calls.c (try_to_integrate): Use "(size_t)" intermediate
27103         cast and when casting an integer literal to "rtx" pointer.
27104         (expand_call): Likewise.
27105         * flow.c (try_pre_increment): Likewise.
27106         (find_use_as_address): Likewise.
27107         * integrate.c (expand_iline_function): Likewise.
27108         * regmove.c (try_auto_increment): Likewise.
27109
27110 2002-01-16  Graham Stott  <grahams@redhat.com>
27111
27112         * sched-rgn.c (passed): Use sbitmap_free.
27113         (header): Likewise.
27114         (inner): Likewise.
27115         (in_queue): Likewise.
27116         (in_stack): Likewise.
27117
27118 2002-01-15  Eric Christopher  <echristo@redhat.com>
27119
27120         * flow.c (propagate_one_insn): Change to use fatal_insn.
27121
27122 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27123
27124         * expmed.c (extract_fixed_bit_field): Remove unused code.
27125         * system.h: Poison SLOW_ZERO_EXTEND.
27126         * doc/tm.texi: Remove.
27127         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
27128         * config/arm/arm.h: Likewise.
27129         * config/avr/avr.h: Likewise.
27130         * config/clipper/clipper.h: Likewise.
27131         * config/convex/convex.h: Likewise.
27132         * config/d30v/d30v.h: Likewise.
27133         * config/dsp16xx/dsp16xx.h: Likewise.
27134         * config/elxsi/elxsi.h: Likewise.
27135         * config/fr30/fr30.h: Likewise.
27136         * config/h8300/h8300.h: Likewise.
27137         * config/i370/i370.h: Likewise.
27138         * config/i386/i386.h: Likewise.
27139         * config/m68k/m68k.h: Likewise.
27140         * config/mips/mips.h: Likewise.
27141         * config/ns32k/ns32k.h: Likewise.
27142         * config/pdp11/pdp11.h: Likewise.
27143         * config/pj/pj.h: Likewise.
27144         * config/s390/s390.h: Likewise.
27145         * config/sh/sh.h: Likewise.
27146         * config/stormy16/stormy16.h: Likewise.
27147         * config/v850/v850.h: Likewise.
27148         * config/vax/vax.h: Likewise.
27149         * config/we32k/we32k.h: Likewise.
27150
27151 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
27152
27153         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
27154         (altivec_lvsl): Change constraint to b.
27155         (altivec_lvsr): Same.
27156         (altivec_lvebx): Same.
27157         (altivec_lvehx): Same.
27158         (altivec_lvewx): Same.
27159         (altivec_lvxl): Same.
27160         (altivec_lvx): Same.
27161         (altivec_stvx): Add parallel.
27162         (altivec_stvxl): Same.
27163         (altivec_stvehx): Same.
27164         (altivec_stvebx): Same.
27165         (altivec_stvebx): Same.
27166
27167 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
27168
27169         * config.gcc: Change altivec.h to altivec-defs.h.
27170
27171         * config/rs6000/altivec.h: Delete.
27172
27173         * config/rs6000/altivec-defs.h: Add.
27174
27175 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27176
27177         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
27178         and UMOD modes.
27179
27180         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
27181         less than or equal to eight bytes.
27182
27183         * vax.md (andsi3): Remove constraints and change SET destination
27184         operand type to nonimmediate_operand.
27185         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
27186         when it is a CONST_INT.
27187
27188 2002-01-15  Jason Merrill  <jason@redhat.com>
27189
27190         * c-common.def (FILE_STMT): New code.
27191         * c-common.c (statement_code_p): It's a statement.
27192         * c-common.h (stmt_tree_s): Add x_last_filename.
27193         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
27194         (last_expr_filename): New macro.
27195         * c-semantics.c (begin_stmt_tree): Initialize it.
27196         (add_stmt): If the filename changed, also insert a
27197         FILE_STMT.
27198         (expand_stmt): Handle seeing one.
27199
27200 2002-01-15  Eric Christopher  <echristo@redhat.com>
27201
27202         * flow.c (propagate_one_insn): Add error message and print out
27203         insn for debugging.
27204
27205 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
27206
27207         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
27208         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
27209         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
27210         TRAMPOLINE_ALIGNMENT.
27211         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
27212         to be in bits.
27213         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
27214         PCC_BITFIELD_TYPE_MATTERS.
27215         * config/interix.h (STDC_VALUE): Remove.  Use
27216         STDC_0_IN_SYSTEM_HEADERS.
27217         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
27218         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
27219         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
27220
27221 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27222
27223         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
27224         not work on this platform currently.
27225
27226 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
27227
27228         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
27229         readonly_warning in _().
27230
27231 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
27232
27233         * gcc.c (delete_if_ordinary): Backout previous change.
27234
27235 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27236
27237         * config/h8300/h8300.c (print_operand): Remove support for
27238         unused operand characters.
27239
27240         * read-rtl.c: Fix formatting.
27241         * real.c: Likewise.
27242         * recog.c: Likewise.
27243         * regclass.c: Likewise.
27244         * regmove.c: Likewise.
27245         * reg-stack.c: Likewise.
27246         * reload1.c: Likewise.
27247         * rtlanal.c: Likewise.
27248
27249 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27250
27251         * config/i386/i386.c: Fix formatting.
27252
27253 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
27254
27255         * c-typeck.c (process_init_element): Don't save_expr
27256         COMPOUND_LITERAL_EXPR if just its initializer will be used.
27257
27258 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
27259
27260         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
27261         emit optional traceback table if optimize_size or TARGET_ELF.
27262         * config/rs6000/rs6000.md (prefetch): New.
27263
27264 2002-01-15  Andreas Jaeger  <aj@suse.de>
27265
27266         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
27267
27268 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27269
27270         * mips-tfile.c: Fix formatting.
27271
27272 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
27273
27274         * unroll.c (final_reg_note_copy): Fix previous commit.
27275
27276 2002-01-14  Kazu Hirata  <kazu@hxi.com>
27277
27278         * config/h8300/h8300-protos.h: Remove the prototype for
27279         eq_operator.
27280         * config/h8300/h8300.c (eq_operator): Remove.
27281
27282 2002-01-14  Richard Henderson  <rth@redhat.com>
27283
27284         * config/i386/i386.md (prefetch): Tidy.
27285         (prefetch_3dnow): Fix locality operand.
27286
27287 2002-01-14  Richard Henderson  <rth@redhat.com>
27288
27289         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
27290         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
27291
27292 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
27293
27294         * reload1.c (reload_combine): Pass reg_sum replacement through
27295         copy_rtx in loop performing multiple changes.
27296
27297 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
27298
27299         * except.c (remove_unreachable_regions): New.
27300         (free_eh_status): Clear exception_handler_labels.
27301         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
27302         (find_exception_handler_labels): Don't add the same label more than
27303         once.
27304         (remove_exception_handler_label): Don't die if
27305         find_exception_handler_labels hasn't been called for the current
27306         function yet.
27307
27308 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
27309
27310         * toplev.c (rest_of_compilation): Rebuild jump labels after
27311         gcse.
27312
27313 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
27314
27315         * doc/extend.texi: Move documentation of X86 built-in functions
27316         here.
27317         * doc/invoke.texi: From here.
27318         * doc/sourcebuild.texi: Document location of documentation for
27319         machine built-in functions.
27320
27321 2002-01-13  Christopher Faylor  <cgf@redhat.com>
27322
27323         * cppfiles.c (TEST_THRESHOLD): New macro.
27324         (SHOULD_MMAP): Ditto.
27325         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
27326         be used.
27327
27328 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
27329
27330         * unroll.c (final_reg_note_copy): Properly handle
27331         REG_LABEL
27332         (unroll_loops): Fix LOOP_CONDITION heuristics.
27333
27334 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
27335
27336         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
27337         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
27338
27339 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
27340
27341         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
27342         threaded loop.
27343
27344 2002-01-14  Tom Rix  <trix@redhat.com>
27345
27346         * config/rs6000/rs6000.md: Fix typo with sradi.
27347
27348 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
27349
27350         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
27351         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
27352         (clrstrdi, clrstrsi): Adapt callers.
27353
27354         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
27355
27356         (movti splitter): Never use register 0 as base register.
27357
27358 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
27359
27360         * combine.c (simplify_shift_const): Always generate new rtx
27361         for shift expression instead of reusing given expression.
27362
27363 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27364
27365         * config/alpha/alpha.c (alpha_expand_mov): Don't call
27366         alpha_legitimize_address unless mode is Pmode.
27367
27368 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
27369
27370         * doc/md.texi (Modifiers): Document the '*' constraint for the
27371         user.
27372
27373         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
27374         * doc/extend.texi (Function Attributes): 'interrupt' is valid
27375         for xstormy16 too.
27376
27377 2002-01-13  Richard Henderson  <rth@redhat.com>
27378
27379         * reload.c (find_reloads): Use a hard reg destination as reload reg
27380         for an input reload of the source.
27381
27382 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
27383
27384         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
27385         more generic.
27386
27387 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
27388
27389         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27390         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27391
27392         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
27393
27394 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27395
27396         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
27397
27398 2002-01-12  Tom Rix  <trix@redhat.com>
27399
27400         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
27401         TARGET_POWERPC64.
27402
27403 2002-01-12  Richard Henderson  <rth@redhat.com>
27404
27405         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
27406
27407         * doc/invoke.texi: Update Alpha options.
27408
27409         * doc/invoke.texi: Update i386 built-in function lists.
27410
27411 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
27412
27413         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
27414         referencing outside.
27415
27416 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27417
27418         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
27419         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
27420         offsets, and change line folding.
27421         * optabs.c (expand_binop): Remove warnings.
27422         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
27423
27424 2002-01-12  Graham Stott <grahams@redhat.com>
27425
27426         * attribs.c (handle_deprecated_attribute): constify WHAT.
27427         * diagnostic.c (warn_deprecated_use): Add braces, fixes
27428         dangling else warning and constify WHAT.
27429         * except.h (struct function, struct inline_remap): Move
27430         struct tag forward defs before all prototypes.
27431         (duplicate_eh_regions): Whitespace.
27432
27433 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
27434
27435         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27436         MODE_BASE_REG_CLASS.
27437         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
27438
27439 2002-01-12  Richard Henderson  <rth@redhat.com>
27440
27441         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
27442         (ix86_expand_vector_move): New.
27443         (bdesc_2arg): Remove andps, andnps, orps, xorps.
27444         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
27445         Remove old prefetch builtins.  Special case the logicals removed above.
27446         (ix86_expand_builtin): Likewise.
27447         (safe_vector_operand): Use V4SFmode, not TImode.
27448         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
27449         (ix86_expand_timode_binop_builtin): New.
27450         * config/i386/i386-protos.h: Update.
27451         * config/i386/i386.h (enum ix86_builtins): Update.
27452         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
27453         Use ix86_expand_vector_move in vector move expanders.
27454         (movti_internal, movti_rex64): Add xorps alternative.
27455         (sse_clrv4sf): Rename and adjust from sse_clrti.
27456         (prefetch): Don't work so hard.
27457         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
27458         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
27459         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
27460
27461 2002-01-11  Richard Henderson  <rth@redhat.com>
27462
27463         * config/i386/mmintrin.h: New file.
27464         * config/i386/xmmintrin.h: New file.
27465         * config.gcc (i?86-*-*): Add extra_headers.
27466         * simplify-rtx.c (simplify_unary_operation): Handle saturating
27467         truncation codes.
27468         (simplify_binary_operation): Handle saturating arithmetic codes.
27469         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
27470         not the lowpart subreg.
27471         (ix86_expand_builtin): Return a TImode dummy register instead of 0
27472         on error.
27473         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
27474
27475 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27476
27477         * conflict.c (conflict_graph_compute): Free regsets when finished.
27478         * ssa.c (compute_coalesced_reg_partition): Likewise.
27479
27480 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27481
27482         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
27483         every where we allocate a register.
27484
27485 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27486
27487         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
27488         * lcm.c (compute_earliest, compute_farthest): Likewise.
27489
27490 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
27491
27492         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
27493
27494 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
27495
27496         * doc/rtl.texi (Insns): Fix 2 typos.
27497
27498 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
27499
27500         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
27501         options.  Use @table @gcctabopt for MMIX options.  Add index
27502         entries for MMIX options.  Start new paragraph with first
27503         heading of the machine-dependent options.
27504
27505 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27506
27507         PR other/5299
27508         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
27509         * combine.c (force_to_mode): Same.
27510         * reload1.c (clear_reload_reg_in_use): Same.
27511
27512 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
27513
27514         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
27515         and 'subtargets'.
27516
27517 2002-01-11  Andreas Jaeger  <aj@suse.de>,
27518             Brad Lucier <lucier@math.purdue.edu>
27519
27520         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
27521         mcpu.
27522
27523 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
27524
27525         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
27526         Protect with IN_LIBGCC.
27527         (LINK_EH_SPEC): Add required trailing space.
27528
27529 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
27530
27531         * c-tree.h: Move function declarations so that they are listed
27532         under the filename which contains them.
27533         (check_identifier, finish_decl_top_level,
27534         lookup_name_current_level_global, shadow_record_fields): Remove.
27535
27536 2002-01-11  Andreas Jaeger  <aj@suse.de>
27537
27538         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
27539         march.
27540
27541 2002-01-10  Richard Henderson  <rth@redhat.com>
27542
27543         * config/alpha/alpha.c (print_operand): Add 'J'.
27544         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
27545         new operand with the sequence number for the lituse.  When splitting
27546         the insns, use gen_movdi_er_high_g and generate a sequence number.
27547         (gen_movdi_er_high_g): Print the sequence number if non-zero.
27548
27549 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
27550
27551         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
27552         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
27553         stvxl.
27554         (altivec_expand_builtin): Same.
27555         (altivec_expand_stv_builtin): New.
27556
27557         * config/rs6000/rs6000.h (rs6000_builtins): Same.
27558
27559         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
27560         ("altivec_lvehx"): New.
27561         ("altivec_lvewx"): New.
27562         ("altivec_lvxl"): New.
27563         ("altivec_lvx"): New.
27564         ("altivec_stvx"): New.
27565         ("altivec_stvebx"): New.
27566         ("altivec_stvehx"): New.
27567         ("altivec_stvewx"): New.
27568         ("altivec_stvxl"): New.
27569
27570 2002-01-10  Richard Henderson  <rth@redhat.com>
27571
27572         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
27573         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
27574         care not to delete instructions twice.
27575
27576 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
27577
27578         * toplev.c: Don't declare environ (it's not used anywhere).
27579         * configure.in: Don't check for declaration of environ.
27580         * config/i386/xm-mingw32.h: Don't #define environ.
27581         * config.in, configure: Regenerate.
27582
27583 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
27584
27585         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
27586         * configure: Regenerate.
27587
27588         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
27589         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
27590         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
27591         alpha/xm-vms.h.
27592         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
27593         LIMITS_H_TEST here, not in m68k/x-next.
27594         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
27595         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
27596
27597         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
27598         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
27599         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
27600
27601         * config/i386/x-djgpp: Renamed i386/t-djgpp.
27602         * config/m88k/x-dolph: Renamed m88k/t-dolph.
27603         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
27604         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
27605         replacement of quadlib.asm with quadlib.c.
27606
27607         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
27608         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
27609         config/rs6000/xm-beos.h: Delete file.
27610
27611         * config.gcc: Update to match above changes.
27612
27613 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27614
27615         * config/h8300/h8300.h: Fix comment typos.
27616         * config/h8300/h8300.md: Likewise.
27617         * config/h8300/lib1funcs.asm: Likewise.
27618
27619 2002-01-10  Dale Johannesen  <dalej@apple.com>
27620
27621         PR optimization/5269
27622         * unroll.c (precondition_loop_p): Make *increment be the correct
27623         sign when n_iterations known, to avoid confusing caller.
27624
27625 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27626
27627         * doc/extend.texi (deprecated): Fix a typo.
27628
27629 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
27630
27631         * basic-block.h (update_br_prob_note): Declare.
27632         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
27633         (try_forward_edges): Care negative frequencies and update note.
27634         (outgoing_edges_match): Tweek conditional merging heuristics.
27635         (try_crossjump_to_edge): use update_br_prob_note.
27636         * cfglayout.c (fixup_reorder_chain): Likewise.
27637         * cfrtl.c (update_br_prob_note): New.
27638         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
27639
27640         * i386.c (ix86_decompose_address): Return -1 if address contains
27641         shift.
27642         (legitimate_address_p): Require ix86_decompose_address to return 1.
27643
27644         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
27645         (cprop_insn): Likewise.
27646
27647 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27648
27649         * toplev.c: Fix formatting.
27650         * tree.c: Likewise.
27651         * tree-dump.c: Likewise.
27652         * unroll.c: Likewise.
27653         * unwind-dw2.c: Likewise.
27654         * unwind-dw2-fde.c: Likewise.
27655         * unwind-dw2-fde-glibc.c: Likewise.
27656         * unwind-sjlj.c: Likewise.
27657
27658 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
27659
27660         * doc/invoke.texi: Document PDP-11 options.
27661
27662 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27663
27664         * config/h8300/h8300.h: Fix formatting.
27665
27666 2002-01-10  Ira Ruben   <ira@apple.com>
27667
27668         Add __attribute__ ((deprecated)).
27669         * extend.texi: Document __attribute__ ((deprecated)).
27670         * invoke.texi: Document -Wno-deprecated-declarations.
27671         * testsuite/g++.dg/other/deprecated.C: New C++ test.
27672         * testsuite/gcc.dg/deprecated.c: New C test.
27673         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
27674         (c_common_attribute_table): Add "deprecated" entry.
27675         (handle_deprecated_attribute): New function.
27676         * c-decl.c (deprecated_states): New enum.
27677         deprecated_state: State of "deprecated" handling.
27678         (start_decl): Set deprecated_state based on attributes.
27679         (grokdeclarator): Test for deprecated uses, propagate attribute.
27680         * c-typeck.c (build_component_ref): Test for deprecated fields.
27681         (build_external_ref): Test for deprecated primaries.
27682         * diagnostic.c (warn_deprecated_use) New function to issue
27683         warnings about __attribute__ ((depricated)) references.
27684         * flags.h (warn_deprecated_decl): Extern declared for
27685         -W[no-]deprecated-declarations option.
27686         * print-tree.c (print_node): Show deprecated flag status.
27687         * toplev.c (warn_deprecated_decl): Defined.
27688         (W_options): Added "deprecated-declaration".
27689         * toplev.h (warn_deprecated_use): Extern declared.
27690         * tree.h (struct tree_common): Define deprecated_flag.
27691         (TREE_DEPRECATED): New macro to access flag.
27692         * cp/call.c (build_call): Test for deprecated calls.
27693         * cp/class.c (add_implicitly_declared_members): Set global
27694         flag to tell grokdeclarator to not issue deprecated warnings.
27695         * cp/cp-tree.h: Add extern for adding_implicit_members.
27696         * cp/decl.c (deprecated_states): New enum.
27697         (start_decl): Set deprecated_state based on attributes.
27698         (grokdeclarator): Test for deprecated uses, propagate attribute.
27699         * cp/lex.c (do_identifier): Test for deprecated primaries.
27700         * cp/typeck.c (build_component_ref): Test for deprecated fields.
27701
27702 2002-01-10  Ira Ruben   <ira@apple.com>
27703
27704         Fix to assign attributes to inline member functions.
27705         * cp/decl.c (start_method): Handle attrlist.
27706
27707 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27708
27709         * combine.c (expand_field_assignment): Use subreg_lsb().
27710
27711 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
27712
27713         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
27714         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
27715         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
27716         Recurse for any operand of AND as long as constant is non-zero.
27717
27718 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27719
27720         * config/h8300/h8300.md: Remove constraints from expanders.
27721
27722 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27723
27724         * varasm.c: Fix formatting.
27725         * varray.c: Likewise.
27726         * vmsdbgout.c: Likewise.
27727         * xcoffout.c: Likewise.
27728
27729 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
27730
27731         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
27732         update edge probabilities to match.
27733
27734 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
27735
27736         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
27737         dependencies.
27738         * doc/languages.texi, doc/sourcebuild.texi: New files.
27739         * doc/configfiles.texi: Make a subsubsection.  Update.
27740         * doc/configterms.texi: Add @node.  Remove warning that this isn't
27741         instructions for building GCC.
27742         * doc/makefile.texi: Make a subsection.
27743         * doc/gccint.texi: Update.
27744
27745 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
27746
27747         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
27748
27749 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
27750
27751         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
27752
27753 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
27754
27755         * optabs.c (expand_fix): Look for wider integer modes first.
27756
27757         * i386.md (mov?f): Avoid the fake const double trick for medium
27758         memory model.
27759         (min?f*/max?f*): Prohibit memory operands for i387 variant.
27760         (fop_df_4): Disable for SSE compilation.
27761
27762 2002-01-10  Graham Stott  <grahams@redhat.com>
27763
27764         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
27765         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
27766
27767 2002-01-10  Richard Henderson  <rth@redhat.com>
27768
27769         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
27770
27771 2002-01-10  Richard Henderson  <rth@redhat.com>
27772
27773         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
27774         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
27775
27776 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27777
27778         * combine.c (can_combine_p): Fix a comment typo.
27779
27780 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
27781
27782         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
27783         empty list correctly.  Change loop index $t to $f for
27784         consistency with rest of Makefile.
27785
27786 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
27787
27788         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
27789         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27790
27791         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
27792         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
27793         (altivec_init_builtins): Same.
27794         (altivec_expand_unop_builtin): Return NULL_RTX on error.
27795         (altivec_expand_binop_builtin): Same.
27796         (altivec_expand_ternop_builtin): Same.
27797         (bdesc_dst): New.
27798
27799         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
27800         ("altivec_vctuxs"): Fix typo.
27801         ("altivec_vnmsubfp"): Same.
27802         ("altivec_dssall"): New.
27803         ("altivec_mfvscr"): New.
27804         ("altivec_dss"): New.
27805         ("altivec_lvsl"): New.
27806         ("altivec_lvsr"): New.
27807         ("altivec_dstt"): New.
27808         ("altivec_dstst"): New.
27809         ("altivec_dststt"): New.
27810         ("altivec_dst"): New.
27811
27812         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
27813         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27814
27815 2002-01-09  Richard Henderson  <rth@redhat.com>
27816
27817         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
27818
27819 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
27820
27821         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
27822         function.
27823         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
27824         prototype.
27825         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
27826
27827 2002-01-09  Kazu Hirata  <kazu@hxi.com>
27828
27829         * read-rtl.c: Fix formatting.
27830         * real.c: Likewise.
27831         * regclass.c: Likewise.
27832         * regrename.c: Likewise.
27833         * reg-stack.c: Likewise.
27834         * reload1.c: Likewise.
27835         * reload.c: Likewise.
27836         * rtl.c: Likewise.
27837
27838 2002-01-09  Kazu Hirata  <kazu@hxi.com>
27839
27840         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
27841         to extract items in the expr_list chain.
27842
27843 2002-01-09  Richard Henderson  <rth@redhat.com>
27844
27845         * config/vax/vax.c (vax_rtx_cost): Never abort.
27846
27847         * config/vax/vax.h (REAL_ARITHMETIC): Define.
27848
27849 2002-01-09  Jan Hubicka  <jh@suse.cz>
27850
27851         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
27852
27853 2002-01-09  Richard Henderson  <rth@redhat.com>
27854
27855         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
27856         Unify code from various alternatives.
27857
27858 2002-01-09  Richard Henderson  <rth@redhat.com>
27859
27860         * regrename.c (copy_value): Ignore the copy if the source register
27861         is present in the value chain with a narrower mode.
27862
27863 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
27864
27865         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
27866         for the c4x target. Also improve layout.
27867
27868 2002-01-09  Richard Henderson  <rth@redhat.com>
27869
27870         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
27871         * config/m32r/m32r.md (and ior xor splitters): Swap operands
27872         to match insn patterns.
27873
27874 2002-01-09  Richard Henderson  <rth@redhat.com>
27875
27876         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
27877         (copyprop_hardreg_forward_1): Likewise.
27878
27879 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27880
27881         * pa.md (decrement_and_branch_until_zero): Change predicate for
27882         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
27883
27884 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
27885
27886         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
27887         gets undefined. For Darwin.
27888
27889 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27890
27891         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
27892
27893 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27894
27895         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
27896
27897 2002-01-08  Richard Henderson  <rth@redhat.com>
27898
27899         * regrename.c (copy_value): Ignore overlapping copies.
27900
27901 2002-01-08  Richard Henderson  <rth@redhat.com>
27902
27903         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
27904         as needed to avoid shared structure.
27905
27906 2002-01-08  Kazu Hirata  <kazu@hxi.com>
27907
27908         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
27909         H8/300H and H8S.
27910
27911 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27912
27913         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
27914         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
27915         documentation of obsolete macros.
27916         * system.h: Poison these macros.
27917         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
27918         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
27919         config/c4x/c4x.h, config/clipper/clipper.h,
27920         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
27921         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
27922         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
27923         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
27924         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
27925         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
27926         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
27927         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
27928         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
27929         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
27930         config/sparc/sparc.h, config/stormy16/stormy16.h,
27931         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
27932         definitions and commented out definitions of obsolete macros.
27933         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
27934         of MAX_INT_TYPE_SIZE.
27935
27936 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
27937
27938         * config/s390/s390.c (s390_preferred_reload_class): Never
27939         return ADDR_REGS if it isn't a subset of the given class.
27940         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
27941         FP_REGS, but all superclasses as well.
27942
27943         * config/s390/s390.c (s390_function_profiler): Fix thinko.
27944
27945         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
27946         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
27947         must not be a const_int.
27948
27949 2002-01-08  Richard Henderson  <rth@redhat.com>
27950
27951         * Makefile.in (toplev.o): Depend on options.h.
27952         (gcc.o): Depend on specs.h.
27953
27954 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
27955
27956         * expr.c (store_expr): Convert VOIDmode constants back to target's
27957         mode.
27958
27959 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
27960
27961         * doc/invoke.texi: Markup gcc as @command.  Refer to
27962         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
27963         of http://gcc.gnu.org/thanks.html.
27964
27965 2002-01-08  Dale Johannesen  <dalej@apple.com>
27966
27967         * config/rs6000/rs6000.md: Add missing int register
27968         target case to movdf_low.
27969
27970 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
27971
27972         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
27973         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
27974         (cppinit.o): Depend on except.h.
27975         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
27976         s-specs): New rules.
27977
27978         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
27979         Don't create specs.h/options.h/gencheck.h here.  Remove
27980         unnecessary variable settings from last argument of AC_OUTPUT.
27981         * config.in, configure: Regenerate.
27982         * intl.c: Hardcode package name as "gcc".
27983
27984         * cppinit.c: Include except.h.
27985         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
27986         appropriate.
27987         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
27988         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
27989         (!)USING_SJLJ_EXCEPTIONS.
27990         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
27991
27992 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27993
27994         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
27995         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
27996         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
27997         documentation of obsolete macros.
27998         * system.h: Poison these macros.
27999         * config/d30v/d30v.h, config/ns32k/encore.h,
28000         config/stormy16/stormy16.h: Remove definitions and commented out
28001         definitions of obsolete macros.
28002
28003 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
28004
28005         * objc/objc-act.c (handle_class_ref): Mark the declaration of
28006         %sobjc_class_ref_%s as used - to prevent unwanted compiler
28007         warnings.
28008
28009 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
28010
28011         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
28012         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
28013         to insn adjusting stack/frame pointer.
28014         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
28015         accept operands that cause the insn to be non-splittable.
28016
28017 2002-01-08  Graham Stott  <grahams@redhat.com>
28018
28019         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
28020         (C_TYPE_FIELDS_VOLATILE): Likewise.
28021         (C_TYPE_BEING_DEFINED): Likewise.
28022         (C_IS_RESERVED_WORD): Likewise.
28023         (C_TYPE_VARIABLE_SIZE): Likewise.
28024         (C_DECL_VARIABLE_SIZE): Likewise.
28025         (C_MISSING_PROTOTYPE_WARNED): Likewise.
28026         (C_SET_EXP_ORIGINAL_CODE): Likewise.
28027         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
28028         parenthesis.
28029         (C_DECL_ANTICIPATED): Likewise.
28030         (c_build_type_variant): Add parenthesis.
28031
28032 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
28033
28034         * gcc.c (option_map): Remove --version.
28035         (process_command): Handle -fversion following the GNU Coding
28036         Standards.  Partially addresses PR other/704.
28037
28038 2002-01-08  Graham Stott  <grahams@redhat.com>
28039
28040         * combine.c (combine_instructions): Fix typo.
28041
28042 2002-01-08  Graham Stott  <grahams@redhat.com>
28043
28044         * debug.h: Use "tree" and "rtx" throughout.
28045
28046         * debug.c: Likewise.
28047
28048 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
28049
28050         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
28051         constant pool, use the pool's version of the symbol instead.
28052
28053 2002-01-07  Richard Henderson  <rth@redhat.com>
28054
28055         * regrename.c (find_oldest_value_reg): Ignore the value chain if
28056         the original register was copied in a mode with a fewer number of
28057         hard registers than the desired mode.
28058         (copyprop_hardreg_forward_1): Likewise.
28059         (debug_value_data): Fix loop test.
28060         * toplev.c (parse_options_and_default_flags): Reenable
28061         -fcprop-registers at -O1.
28062
28063 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
28064
28065         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
28066         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
28067
28068         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
28069         predicates.
28070
28071         * config/rs6000/rs6000.md: Add altivec predicate patterns.
28072
28073 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
28074
28075         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
28076         (pa_output_function_prologue): Output local label at the beginning of
28077         the prologue when profiling.
28078         (hppa_profile_hook): Use the local label rather than the function label.
28079         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
28080
28081 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
28082
28083         * config/rs6000/rs6000.c (print_operand): Remove extra space.
28084         (altivec_expand_unop_builtin): Fix thinko.
28085         (altivec_expand_binop_builtin): Same.
28086         (altivec_expand_ternop_builtin): Same.
28087         (altivec_expand_builtin): Same.
28088
28089 2002-01-07  Richard Henderson  <rth@redhat.com>
28090
28091         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
28092
28093 2002-01-07  Jason Merrill  <jason@redhat.com>
28094
28095         * unwind-dw2.c (execute_cfa_program): Use < again.
28096
28097 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
28098
28099         * predict.c (combine_predictions_for_insn): Avoid division by zero.
28100
28101 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
28102
28103         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
28104         Don't allow -1 - x -> ~x simplifications in the first pass.
28105
28106 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
28107
28108         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
28109         arguments.
28110         (altivec_expand_binop_builtin): Same.
28111         (altivec_expand_unop_builtin): Same.
28112         (print_operand): Fix typo.
28113         (bdesc_1arg): Add vupk* variants.
28114
28115         * rs6000.h (rs6000_builtins): Add vupk* enums.
28116
28117         * rs6000.md: Add altivec_vupk* variants.
28118
28119 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
28120
28121         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
28122         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
28123         and last update dates.
28124
28125 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
28126
28127         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
28128
28129 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
28130
28131         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
28132         * config/avr/avr.h (CPP_SPEC): Likewise.
28133         (LINK_SPEC): Likewise.
28134         (CRT_BINUTILS_SPECS): Likewise.
28135         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
28136         * doc/invoke.texi (AVR Options): Document them.
28137
28138 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
28139
28140         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
28141         LABEL_NUSES.
28142
28143 2002-01-07  Graham Stott  <grahams@redhat.com>
28144
28145         * config/i386/i386.h: Update copyright date.
28146         (HALF_PIC_PTR): Add parenthesis.
28147         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
28148         (CONSTANT_ALIGNMENT): Add parenthesis.
28149         (DATA_ALIGNMENT): Likewise.
28150         (LOCAL_ALIGNMENT): Likewise.
28151         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
28152         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
28153         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
28154         (HARD_REGNO_NREGS): Add paranethesis.
28155         (VALID_SSE_REG_MODE): Whitespace.
28156         (VALID_MMX_REG_MODE): Whitespace.
28157         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
28158         (ix86_hard_regno_mode_ok): Add parenthesis.
28159         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
28160         (RETURN_IN_MEMORY): Whitespace.
28161         (N_REG_CLASSES): Add parenthesis.
28162         (INTEGER_CLASS_P): Add parenthesis and wrap.
28163         (FLOAT_CLASS_P): Likewise.
28164         (SSE_CLASS_P): Likewise.
28165         (MMX_CLASS_P): Likewise.
28166         (MAYBE_INTEGER_CLASS_P): Likewise.
28167         (MAYBE_FLOAT_CLASS_P): Likewise.
28168         (MAYBE_SSE_CLASS_P): Likewise.
28169         (MAYBE_MMX_CLASS_P): Likewise.
28170         (Q_CLASS_P): Likewise.
28171         (GENERAL_REGNO_P): Uppercase macro parameter.
28172         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
28173         (FP_REGNO_P): Likewise.
28174         (ANY_FP_REGNO_P): Uppercase macro parameter.
28175         (SSE_REGNO_P): Likewise.
28176         (SSE_REGNO): Likewise.
28177         (SSE_REG_P): Likewise.
28178         (SSE_FLOAT_MODE_P): Likewise.
28179         (MMX_REGNO_P): Likewise.
28180         (MMX_REG_P):Likewise.
28181         (STACK_REG_P): Likewise.
28182         (NON_STACK_REG_P): Likewise.
28183         (STACK_TOP_P): Likewise.
28184         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
28185         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
28186         (SECONDARY_MEMORY_NEEDED): Likewise.
28187         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
28188         (MD_ASM_CLOBBERS): Whitespace and wrap.
28189         (MUST_PASS_IN_STACK): Whitespace and wrap.
28190         (RETURN_POPS_ARGS): Add parenthesis.
28191         (INIT_CUMULATIVE_ARGS): Likewise.
28192         (FUNCTION_ARG): Likewise.
28193         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
28194         (SETUP_INCOMING_VARARGS): Likewise.
28195         (BUILD_VA_LIST_TYPE):  Add parenthesis.
28196         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
28197         parenthsis.
28198         (EXPAND_BUILTIN_VA_ARG): Likewise.
28199         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
28200         (INITIALIZE_TRAMPOLINE): Add parenthesis.
28201         (INITIAL_ELIMINATION_OFFSET): Likewise.
28202         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
28203         (REGNO_OK_FOR_BASE_P): Likewise.
28204         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
28205         (REGNO_OK_FOR_DIREG_P): Likewise.
28206         (REG_OK_FOR_INDEX_P): Whitespace.
28207         (REG_OK_FOR_BASE_P): Whitespace.
28208         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
28209         parenthesis.
28210         (FIND_BASE_TERM): Fix typo.
28211         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
28212         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
28213         (SYMBOLIC_CONST; Whitespace.
28214         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
28215         (ENCODE_SECTION_INFO): Whitespace.
28216         (FINALIZE_PIC): Remove do { ... } while (0).
28217         (PROMOTE_MODE): Wrap in do { ... } while (0).
28218         (CONST_COSTS): Whitespace.
28219         (RTX_COSTS): Add paramethesis, whitespace and wrap.
28220         (REGISTER_MOVE_COST): Add parenthesis.
28221         (MEMORY_MOVE_COST): Likewise.
28222         (EXTRA_CC_MODES): Whitespace.
28223         (SELECT_CC_MODE): Add parenthesis and whitespace.
28224         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
28225         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
28226         (ASM_OUTPUT_LABEL): Add paramethesis.
28227         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
28228         (ASM_OUTPUT_REG_POP): Likewise.
28229         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
28230         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
28231
28232         * config/i386/i386.c: Update copyright.
28233         (CHECK_STACK_LIMIT): Add parenthesis.
28234         (AT_BP): Uppercase macro parameter.
28235         (x86_64_int_parameter_registers): Constify.
28236         (x86_64_int_return_registers): Likewise.
28237         (ix86_compare_op0): Use rtx.
28238         (construct_container): Constify INTREG parameter.
28239         (function_arg): Use rtx.
28240
28241         * diagnostic.h: Update copyright date.
28242         (output_buffer_state): Add parenthesis.
28243         (output_buffer_format_args): Likewise.
28244
28245         * combine.c (combine_instructions): Replace XEXP (links, 0)
28246         with link.
28247
28248 2002-01-06  H.J. Lu <hjl@gnu.org>
28249
28250         * cfgcleanup.c (thread_jump): Fix 2 typos.
28251
28252 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
28253
28254         * config.gcc: Add support for --enable-altivec.
28255
28256 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28257
28258         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
28259
28260 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
28261
28262         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
28263         __objc_class_name_*.
28264
28265 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28266
28267         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
28268
28269 2002-01-06  Richard Henderson  <rth@redhat.com>
28270
28271         * reorg.c (emit_delay_sequence): Remove death notes, not merely
28272         nop them out.  Increment label reference count for REG_LABEL.
28273         (fill_slots_from_thread): Frob label reference count around
28274         delete_related_insns.
28275
28276 2002-01-05  Richard Henderson  <rth@redhat.com>
28277
28278         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
28279         jump threading.
28280
28281 2002-01-05  Richard Henderson  <rth@redhat.com>
28282
28283         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
28284         * integrate.c (output_inline_function): Likewise.
28285         * toplev.c (rest_of_compilation): Do it here instead.  Move call
28286         to remove_unnecessary_notes after emitting abstract instance.
28287         Force an emitted nested function to have its parent emited as well.
28288         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
28289         for null.
28290         (rtl_for_decl_location): Do not look at reload data structures
28291         before reload has run.
28292
28293 2002-01-05  Kazu Hirata  <kazu@hxi.com>
28294
28295         * cse.c: Fix formatting.
28296         * dwarf2asm.c: Likewise.
28297         * dwarf2out.c: Likewise.
28298         * explow.c: Likewise.
28299         * expmed.c: Likewise.
28300         * function.c: Likewise.
28301         * gcov.c: Likewise.
28302         * gencheck.c: Likewise.
28303         * genrecog.c: Likewise.
28304         * ggc-common.c: Likewise.
28305         * ggc-page.c: Likewise.
28306         * global.c: Likewise.
28307
28308 2002-01-05  Kazu Hirata  <kazu@hxi.com>
28309
28310         * combine.c: Fix formatting.
28311
28312 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
28313
28314         PR middle-end/1557
28315         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
28316
28317 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
28318
28319         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
28320         as 1 for __powerpc64__ as well.
28321
28322         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
28323
28324         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
28325         return it.
28326
28327 2002-01-05  Daniel Berlin  <dan@dberlin.org>
28328
28329         * lcm.c: Revert change, due to performance regression it causes on
28330         SPEC because it's slightly more conservative (sigh, I hate
28331         edge-based LCM).
28332
28333 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
28334
28335         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
28336
28337 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
28338
28339         * doc/cppinternals.texi: Update.
28340
28341 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
28342
28343         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
28344         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
28345         negatives.
28346         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
28347         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
28348         kludge for pre-october-14th mmix versions to handle new-found bug
28349         with PUSHJ/PUSHGO and the register stack.
28350         * config/mmix/mmix.h (struct machine_function): Rename member
28351         has_call_value_without_parameters to has_call_without_parameters.
28352         All referers changed.
28353         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
28354         TARGET_MASK_BRANCH_PREDICT): New macros.
28355         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
28356         -mno-reg-stack-fill-bug-workaround.
28357         * config/mmix/mmix.md ("call"): Set struct machine member
28358         has_call_without_parameters.
28359
28360 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
28361
28362         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
28363
28364 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
28365
28366         * cfgcleanup.c: Include tm_p.h
28367         (mark_effect): Fix handling of hard register; fix handling of SET
28368
28369 2002-01-04  Kazu Hirata  <kazu@hxi.com>
28370
28371         * config/h8300/h8300.md (anonymous patterns): Check that
28372         operands are registers before using REGNO on them.
28373
28374 2002-01-03  Roland McGrath  <roland@frob.com>
28375
28376         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
28377
28378 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
28379
28380         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
28381         * c-common.h (genrtl_expr_stmt_value): Likewise.
28382         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
28383         (expand_expr_stmt_value): Add maybe_last argument.
28384         Don't warn about statement with no effect if it is the last statement
28385         in expression statement.
28386         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
28387         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
28388         expand_expr_stmt_value.
28389         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
28390         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
28391         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
28392         as maybe_last to expand_expr_stmt_value.
28393
28394 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
28395
28396         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
28397         be passed in, do not build it.
28398         (c_begin_if_stmt): New function.
28399         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28400         * c-common.h (c_expand_start_cond): Update prototype.
28401         (c_begin_if_stmt): Prototype new function.
28402         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28403         * c-parse.in (if_prefix): Use c_begin_if_stmt,
28404         c_begin_while_stmt and c_finish_while_stmt_cond.
28405
28406 2002-01-04  William Cohen  <wcohen@redhat.com>
28407
28408         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
28409         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28410         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28411         * config/pa/som.h (ASM_FILE_START): Likewise.
28412
28413 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
28414
28415         * lcm.c: Include df.h.
28416         Add available_transfer_function prototype.
28417         (compute_available): Rework to use iterative dataflow framework.
28418         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
28419         with bb_info in df.h
28420         (available_transfer_function): New function.
28421
28422         * Makefile.in (lcm.o): add df.h to dependencies.
28423
28424 2002-01-04  Richard Henderson  <rth@redhat.com>
28425
28426         * config/alpha/alpha.c (some_operand): Accept HIGH.
28427         (input_operand): Likewise; accept simple references to globals.
28428         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
28429         (alpha_const_double_ok_for_letter_p): Likewise.
28430         (alpha_extra_constraint): Likewise.
28431         (alpha_preferred_reload_class): Likewise.  Do not force
28432         symbolic constants to memory.
28433         (alpha_legitimate_address_p): Accept simple references
28434         to small_symbolic_operand.
28435         (alpha_legitimize_address): New arg scratch.  Be prepared to be
28436         called when no_new_pseudos.  Emit simple symbolic references.
28437         Split integers into low, high, and rest.
28438         (alpha_expand_mov): Use alpha_legitimize_address.
28439         (some_small_symbolic_mem_operand): New.
28440         (split_small_symbolic_mem_operand): New.
28441         * config/alpha/alpha-protos.h: Update.
28442         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
28443         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
28444         (EXTRA_CONSTRAINT): Likewise.
28445         (PREFERRED_RELOAD_CLASS): Likewise.
28446         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
28447         (PREDICATE_CODES): Update.
28448         * config/alpha/alpha.md: New post-reload splitters to convert
28449         simplfied symbolic operands to the form that references $29.
28450         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
28451         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
28452
28453 2002-01-03  Richard Henderson  <rth@redhat.com>
28454
28455         * local-alloc.c (function_invariant_p): Update commentary.
28456
28457 2002-01-04  H.J. Lu <hjl@gnu.org>
28458
28459         * toplev.c (rest_of_compilation): Fix a typo when calling
28460         cleanup_cfg.
28461
28462 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28463
28464         * c-common.c: Fix formatting.
28465         * diagnostic.c: Likewise.
28466         * doloop.c: Likewise.
28467         * dwarf2out.c: Likewise.
28468
28469 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28470
28471         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
28472         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
28473
28474 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
28475
28476         * cpperror.c: Update comments and copyright.
28477         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
28478         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
28479
28480 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
28481
28482         * collect2.c (main): Use strcmp when testing for "-shared".
28483
28484 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
28485
28486         * cppmacro.c: Don't include intl.h.  Update comments.
28487         (new_number_token): Allocate enough buffer for 64-bit unsigned
28488         integers; update prototype.
28489         * cppmain.c: Update comments.
28490
28491 2002-01-03  William Cohen  <wcohen@redhat.com>
28492
28493         * function.h (struct function): Add profile.
28494         (current_function_profile): New.
28495         doc/extend.texi: Update documentation.
28496         * final.c (final_start_function): Use current_function_profile
28497         instead of profile_flag.
28498         (profile_after_prologue): Likewise.
28499         * function.c (expand_function_start): Likewise.
28500         (expand_function_start): Likewise.
28501         * config/alpha/alpha.c (direct_call_operand):
28502         (alpha_does_function_need_gp): Likewise.
28503         (alpha_expand_prologue): Likewise.
28504         * config/arm/arm.c (arm_expand_prologue): Likewise.
28505         thumb_expand_prologue: Likewise.
28506         * config/d30v/d30v.c (d30v_stack_info): Likewise.
28507         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
28508         (fr30_expand_prologue): Likewise.
28509         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
28510         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
28511         * config/i386/i386.h (FINALIZE_PIC): Likewise.
28512         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
28513         * config/i960/i960.c (i960_output_function_prologue): Likewise.
28514         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
28515         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
28516         (m32r_expand_prologue): Likewise.
28517         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
28518         (m88k_expand_prologue): Likewise.
28519         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
28520         * config/mips/mips.c (compute_frame_size): Likewise.
28521         (mips_expand_prologue): Likewise.
28522         (mips_can_use_return_insn): Likewise.
28523         * config/pa/elf.h (ASM_FILE_START): Likewise.
28524         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28525         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28526         * config/pa/som.h (ASM_FILE_START): Likewise.
28527         * config/romp/romp.c (romp_using_r14): Likewise.
28528         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
28529         (rs6000_stack_info): Likewise.
28530         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
28531         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
28532         * config/v850/v850.c (compute_register_save_size): Likewise.
28533
28534 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
28535
28536         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
28537         gen_lowpart_common fails, use gen_lowpart_SUBREG.
28538
28539 2002-01-03  Turly O'Connor  <turly@apple.com>
28540
28541         * darwin.c (machopic_output_possible_stub_label): Don't generate
28542         stub routines for pseudo-stubs which we've just defined.
28543
28544 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28545
28546         * builtins.c: Fix formatting.
28547         * c-typeck.c: Likewise.
28548         * combine.c: Likewise.
28549         * expr.c: Likewise.
28550         * loop.c: Likewise.
28551
28552 2002-01-03  Andreas Schwab  <schwab@suse.de>
28553
28554         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
28555         and return true if _cpp_push_next_buffer pushed a new include
28556         file.
28557         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
28558         _cpp_pop_file_buffer did not push a new file.
28559         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
28560
28561 2002-01-02  Eric Christopher  <echristo@redhat.com>
28562
28563         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
28564         FIND_REG_INC_NOTE call. Update copyright.
28565         * loop.c (canonicalize_condition): Ditto.
28566         * reorg.c (delete_scheduled_jump): Ditto.
28567
28568 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28569
28570         * gcse.c: Fix formatting.
28571
28572 2002-01-03  Graham Stott  <grahams@redhat.com>
28573
28574         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
28575         forward defs for struct tags rtx_def, union_tree, rtvec_def
28576         also output corresponding typedefs for rtx, tree, and rtvec.
28577
28578         * system.h: Move forward defs for struct tags rtx_def, union_tree,
28579         rtvec_def along with corresponding typedefs for rtx, tree, and
28580         rtvec to config.h, hconfig.h, tconfig.h.
28581
28582 2002-01-03  Graham Stott  <grahams@redhat.com>
28583
28584         * tree.h: Update copyright date.
28585         (IS_EXPR_CODE_CLASS): Add parenthesis.
28586         (TREE_SET_CODE): Add whitespace.
28587         (TREE_CHECK): Add parenthesis.
28588         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
28589         (CST_OR_CONSTRUCTOR_CHECK):
28590         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
28591         (TREE_SYMBOL_REFERENCED): Whitespace.
28592         (INT_CST_LT): Likewise.
28593         (INT_CST_LT_UNSIGNED): Likewise.
28594         (tree_real_cst): Unwrap comment.
28595         (tree_string): Likewise.
28596         (tree_complex): Likewise.
28597         (IDENTIFIER_POINTER): correct cast.
28598         (SAVE_EXPR_CONTEXT): Whitespace.
28599         (EXPR_WFL_FILENAME_NODE): Likewise.
28600         (EXPR_WFL_FILENAME): Remove parenthesis.
28601         (DECL_ORIGIN): Add parenthesis.
28602         (DECL_FROM_INLINE): Use NULL_TREE.
28603         (build_int_2): Whitespace.
28604         (build_type_variant): Add parenthesis.
28605
28606         * gcc/jcf-parse.c: Update copyright date.
28607         (yyparse): Constify resource_filename.
28608
28609 2002-01-03  Graham Stott  <grahams@redhat.com>
28610
28611         * rtl.h: Update copyright date.
28612         (RTL_CHECK1): Wrap long line.
28613         (RTL_CHECK2): Likewise.
28614         (RTL_CHECKC1): Wrap long line and whitespace.
28615         (RTL_CHECKC2): Likewise.
28616         (XWINT): Whitespace.
28617         (XINT): Likewise.
28618         (XSTR): Likewise.
28619         (XEXP): Likewise.
28620         (XVEC): Likewise.
28621         (XMODE): Likewise.
28622         (XBITMAP): Likewise.
28623         (XTREE): Likewise.
28624         (XBBDEF): Likewise.
28625         (XTMPL): Likewise.
28626         (X0WINT): Likewise.
28627         (X0INT):Likewise.
28628         (X0UINT): Likewise.
28629         (X0STR): Likewise.
28630         (X0EXP): Likewise.
28631         (X0VEC): Likewise.
28632         (X0MODE): Likewise.
28633         (X0BITMAP): Likewise.
28634         (X0TREE): Likewise.
28635         (X0BBDEF): Likewise.
28636         (X0ADVFLAGS): Likewise.
28637         (X0CSELIB): Likewise.
28638         (X0MEMATTR): Likewise.
28639         (XCWINT): Likewise.
28640         (XCINT): Likewise.
28641         (XCUINT): Likewise.
28642         (XCSTR): Likewise.
28643         (XCEXP): Likewise.
28644         (XCVEC): Likewise.
28645         (XCMODE): Likewise.
28646         (XCBITMAP): Likewise.
28647         (XCTREE): Likewise.
28648         (XCBBDEF): Likewise.
28649         (XCADVFLAGS): Likewise.
28650         (XCCSELIB): Likewise.
28651         (XC2EXP): Likewise.
28652         (INSN_UID): Likewise.
28653         (PREV_INSN): Likewise.
28654         (PATTERN): Likewise.
28655         (INSN_CODE): Likewise.
28656         (PUT_REG_NOTE_KIND): Likewise.
28657         (CODE_LABEL_NUMBER): Likewise.
28658         (NOTE_SOURCE_FILE): Likewise.
28659         (NOTE_BLOCK): Likewise.
28660         (NOTE_EH_HANDLER): Likewise.
28661         (NOTE_RANGE_INFO): Likewise.
28662         (NOTE_LIVE_INFO): Likewise.
28663         (NOTE_BASIC_BLOCK): Likewise.
28664         (NOTE_EXPECTED_VALUE): Likewise.
28665         (NOTE_LINE_NUMBER): Likewise.
28666         (LABEL_NAME): Likewise.
28667         (LABEL_NUSES): Likewise.
28668         (LABEL_ALTERNATE_NAME): Likewise.
28669         (ADDRESSOF_DECL): Likewise.
28670         (JUMP_LABEL): Likewise.
28671         (LABEL_NEXTREF): Likewise.
28672         (REGNO): Likewise.
28673         (ORIGINAL_REGNO: Likewise.
28674         (HARD_REGISTER_NUM_P): Add parenthesis.
28675         (SUBREG_REG): Whitespace.
28676         (SUBREG_BYTE): Likewise.
28677         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
28678         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
28679         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
28680         (ASM_OPERANDS_INPUT_VEC): Likewise.
28681         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
28682         (ASM_OPERANDS_INPUT): Likewise.
28683         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
28684         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
28685         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
28686         (ASM_OPERANDS_INPUT_MODE): Likewise.
28687         (ASM_OPERANDS_SOURCE_FILE): Likewise.
28688         (ASM_OPERANDS_SOURCE_LINE): Likewise.
28689         (MEM_SET_IN_STRUCT_P): Minor reformat.
28690         (TRAP_CONDITION): Whitespace.
28691         (TRAP_CODE): Likewise.
28692         (COND_EXEC_TEST): Likewise.
28693         (COND_EXEC_CODE): Likewise.
28694         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
28695         (PHI_NODE_P): Add parenthesis.
28696         (plus_constant): Whitespace and add parenthesis.
28697
28698 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28699
28700         * config/avr/avr.c: Fix comment typos.
28701         * config/c4x/c4x.md: Likewise.
28702         * config/dsp16xx/dsp16xx.h: Likewise.
28703         * config/dsp16xx/dsp16xx.md: Likewise.
28704         * config/i386/i386.md: Likewise.
28705         * config/ia64/ia64.c: Likewise.
28706         * config/m32r/m32r.h: Likewise.
28707         * config/m68hc11/m68hc11.md: Likewise.
28708         * config/mmix/mmix.c: Likewise.
28709         * config/mn10200/mn10200.c: Likewise.
28710         * config/romp/romp.c: Likewise.
28711         * config/sh/sh.c: Likewise.
28712         * config/stormy16/stormy16.c: Likewise.
28713         * config/stormy16/stormy16.h: Likewise.
28714         * config/stormy16/stormy16.md: Likewise.
28715
28716 2002-01-03  Graham Stott  <grahams@redhat.com>
28717
28718         * loop.h: Update copyright date.
28719         (LOOP_MOVABLES): Fix typo.
28720         (LOOP_REGS): Likewise.
28721         (LOOP_IVS): Likewise.
28722
28723 2002-01-03  Graham Stott  <grahams@redhat.com>
28724
28725         * cppinit.c: Update copyright date.
28726         Don't include output.h
28727         * Makefile.in: Update copyright date.
28728         Update dependency.
28729
28730 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28731
28732         PR c/5226
28733         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
28734         (-pthread) Add to RS/6000 options.
28735
28736 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28737
28738         * except.c: Fix comment typos.
28739         * loop.c: Likewise.
28740         * varasm.c: Likewise.
28741         * doc/tm.texi: Fix a typo.
28742
28743 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
28744
28745         * c-typeck.c (output_init_element): Allow initializing static storage
28746         duration objects with compound literals.
28747
28748 2002-01-02  Richard Henderson  <rth@redhat.com>
28749
28750         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
28751         after abusing it.
28752
28753 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28754
28755         * gcc.c (default_compilers): Const-ify.
28756         * mips-tdump.c (stab_names): Likewise.
28757         * mips-tfile.c (map_coff_types, map_coff_storage,
28758         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
28759         pseudo_ops_t, pseudo_ops): Likewise.
28760         * protoize.c (default_include): Likewise
28761
28762         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
28763         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
28764         Add array size in declaration.
28765         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
28766         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
28767         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
28768         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
28769         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
28770         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
28771         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
28772         emtens, make_nan): Const-ify.
28773         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
28774         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
28775
28776 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
28777
28778         * config.gcc (ia64-*-*): Set extra_headers.
28779         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
28780         * config/alpha/t-osf: Remove.
28781         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
28782
28783 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
28784
28785         * config/rs6000/t-aix43: Revert previous change.
28786
28787 2002-01-02  Jason Merrill  <jason@redhat.com>
28788
28789         * c-decl.c (c_expand_body): Call outlining_inline_function when
28790         emitting an inline function out of line.
28791
28792 2002-01-02  Richard Henderson  <rth@redhat.com>
28793
28794         * dwarf2out.c (limbo_die_node): Add created_for member.
28795         (new_die): New argument created_for.  Update all callers.
28796         (mark_limbo_die_list): New.
28797         (dwarf2out_init): Register limbo_die_list as a root.
28798         (dwarf2out_finish): Force insert limbo dies into their function
28799         context.
28800
28801 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
28802
28803         PR c++/5089
28804         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
28805
28806 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28807
28808         * config/h8300/fixunssfsi.c: Update copyright.
28809         Fix comment typos.
28810         Fix formatting.
28811         * config/h8300/h8300.c: Update copyright.
28812         Eliminate warnings.
28813
28814 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28815
28816         * config/romp/romp.c: Fix comment formatting.
28817         * config/romp/romp.h: Likewise.
28818         * config/romp/romp.md: Likewise.
28819         * config/s390/s390.c: Likewise.
28820         * config/stormy16/stormy16.c: Likewise.
28821         * config/stormy16/stormy16.h: Likewise.
28822
28823 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
28824
28825         * c-common.h (genrtl_expr_stmt_value): Declare.
28826         * c-semantics.c (genrtl_goto_stmt): Redirect to...
28827         (genrtl_goto_stmt_value): ... this new function.  Pass new
28828         argument down to expand_expr_stmt_value, taking
28829         TREE_ADDRESSABLE into account.
28830         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
28831         STMT_EXPR as addressable, i.e., one whose result we want.
28832         * expr.c (expand_expr): Don't save expression statement value
28833         of labeled_blocks or loop_exprs.
28834         * stmt.c (expand_expr_stmt): Redirect to...
28835         (expand_expr_stmt_value): ... this new function.  Use new
28836         argument to tell whether to save expression value.
28837         (expand_end_stmt_expr): Reset last_expr_type and
28838         last_expr_value if we don't have either.
28839         * tree-inline.c (declare_return_variable): Mark its use
28840         statement as addressable.
28841         * tree.h: Document new use of TREE_ADDRESSABLE.
28842         (expand_expr_stmt_value): Declare.
28843
28844 2002-01-01  Tom Rix  <trix@redhat.com>
28845
28846         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
28847         rs6000_emit_allocate_stack.
28848
28849 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
28850
28851         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
28852         ${srcdir}/ginclude/ to every entry in extra_headers.
28853         * configure: Regenerate.
28854         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
28855         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
28856         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
28857         * ginclude/proto.h: Rename to config/convex/proto.h.
28858
28859 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28860
28861         * attribs.c (handle_vector_size_attribute): Use host_integerp
28862         and tree_int_cst; remove warnings.
28863         * caller-save.c (insert_restore): Add cast to get rid of warning.
28864         (insert_save): Likewise.
28865         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
28866         * regmove.c (find_matches): Add temporary var to kill a warning.
28867
28868 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
28869
28870         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
28871         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
28872         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
28873         (vms-dwarf2eh.o): Add Makefile rule.
28874         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
28875         * config/alpha/vms-dwarf2eh.asm: New file.
28876
28877         * gcc.c (delete_if_ordinary): Delete all versions.
28878
28879 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
28880
28881         * config/mmix/mmix.md: Update FIXME to not mention
28882         define_constants.
28883         (MMIX_rJ_REGNUM): New define_constants constant.
28884         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
28885         "*movdicc_real"): Adjust contraints formatting.
28886         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
28887         for branch prediction.
28888         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
28889         output template.
28890         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
28891         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
28892         number.  Delete related FIXMEs.
28893         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
28894         from number to MMIX_rJ_REGNUM.
28895         (TARGET_MASK_BRANCH_PREDICT): New.
28896         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
28897         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
28898         value.  Add -mbranch-predict and -mno-branch-predict.
28899         (TARGET_VERSION): Drop date.
28900         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
28901         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
28902         for finding out global symbols.
28903         (mmix_asm_output_labelref): Revert condition for global symbol.
28904         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
28905         (mmix_print_operand_punct_valid_p): A '+' is valid.
28906
28907 See ChangeLog.6 for earlier changes.