OSDN Git Service

* testsuite/gcc.dg/cpp/tr-warn2.c: Additional test.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-09-20  Richard Henderson  <rth@redhat.com>
2
3         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
4         (override_options): Do not initialize them.
5         (mips_const_double_ok): Allow no fp constants except zero,
6         and not even that for mips16.
7         (const_float_1_operand): Use dconst1.
8         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
9         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
10         Don't allow arbitrary constants; fix predicates and C constraint.
11
12 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
13
14         * cppmacro.c: Don't warn about function-like macros without
15         '(' during pre-expansion.
16
17 2002-09-20  Jim Wilson  <wilson@redhat.com>
18
19         * config/v850/v850.c (current_function_anonymous_args): Delete.
20         (expand_prologue): Use current_function_args_info.anonymous_args.
21         (expand_epilogue): Delete use of current_function_anonymous_args.
22         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
23         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
24         (current_function_anonymous_args): Delete extern declaration.
25         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
26
27 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
28
29         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
30         to load_macho_picbase.
31         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
32         (load_macho_picbase): Take the symbol to use as a parameter.
33         (macho_correct_pic): New insn.
34         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
35
36         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
37         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
38         (CAN_ELIMINATE): Likewise.
39         (INITIAL_ELIMINATION_OFFSET): Likewise.
40         (TOC_REGISTER): Likewise.
41
42 2002-09-20  Richard Henderson  <rth@redhat.com>
43
44         * real.c (real_hash): New.
45         * real.h: Declare it.
46         * cse.c (canon_hash): Use it.
47         * cselib.c (hash_rtx): Likewise.
48         * emit-rtl.c (const_double_htab_hash): Likewise.
49         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
50         * varasm.c (struct rtx_const): Reduce vector size; separate
51         integer and fp vectors.
52         (HASHBITS): Remove.
53         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
54         take modulus MAX_HASH_TABLE.
55         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
56         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
57         (SYMHASH): Don't use HASHBITS.
58         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
59         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
60         (simplify_subtraction): Fix kind comparison.
61         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
62         Use a union to pun integer array.
63         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
64         only hash two words of integral CONST_DOUBLE.
65
66 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
67
68         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
69         (STARTFILE_PREFIX_SPEC): New.
70         (LINK_SPEC): Modify.
71         (LIB_SPEC): Modify.
72         (LIBGCC_SPEC): New.
73
74 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
75
76         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
77         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
78
79 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
80
81         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
82         Add clobber of the condition code register.
83
84 2002-09-20  Richard Henderson  <rth@redhat.com>
85
86         * real.c (do_fix_trunc): Static.
87         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
88         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
89         encode_i370_single, encode_i370_double, encode_c4x_single,
90         encode_c4x_extended): Add default abort case.
91
92 2002-09-20  Richard Henderson  <rth@redhat.com>
93
94         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
95         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
96         (struct realvaluetype): Remove.
97         (REAL_VALUE_TYPE): Use struct real_value.
98         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
99         (test_real_width): New.
100         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
101         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
102         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
103         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
104         real_to_integer, real_to_integer2, real_to_decimal,
105         real_to_hexadecimal, real_from_string, real_from_integer,
106         real_inf, real_nan, real_2expN, real_convert, real_to_target,
107         real_from_target): Likewise.
108         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
109         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
110
111 2002-09-20  Richard Henderson  <rth@redhat.com>
112
113         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
114         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
115         * defaults.h: ... here.
116         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
117         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
118         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
119         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
120
121 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
122
123         * config/mmix/mmix.md ("negdf2"): Rewrite.
124         ("*expanded_negdf2"): New.
125
126 2002-09-19  Jim Wilson  <wilson@redhat.com>
127
128         * combine.c (simplify_set): When optimizing a subreg src with a
129         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
130
131 2002-09-19  Dale Johannesen <dalej@apple.com>
132         * combine.c (make_extraction): Don't create
133         invalid subreg.
134
135 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
136
137         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG 
138         and STRICT_LOW_PART within SET_DEST.
139         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
140         splitters, replacing pre-reload splitters.
141         ("*zero_extendhisi2_31", "*zero_extendqisi2_31", 
142         "*zero_extendqihi2_31"): New insns.
143         ("*zero_extendqihi2_64"): Do not clobber CC.
144
145 2002-09-18  Devang Patel  <dpatel@apple.com>
146
147         * cp/cp-tree.h: New prototype for walk_vtabls().        
148         * cp/decl.c (walk_vtables_r): New function.        
149         (struct cp_binding_level): Add new members, namespaces,        
150         names_size and vtables.        
151         (add_decl_to_level): Add decl in namespaces or vtables        
152         chain, if conditions match.        
153         (walk_vtables): New function.        
154         (walk_namespaces_r): Travers separate namespace chain        
155         for namespace decls.        
156         (wrapup_globals_for_namespace): Use names_size instead        
157         of list_length().        
158         * cp/decl2.c (finish_file): Use walk_vtables() instead of        
159         walk_globals() to walk vtable decls.        
160                 
161 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
162
163         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
164         (DTORS_SECTION_ASM_OP): Ditto.
165         (READONLY_DATA_SECTION_ASM_OP): Moved.
166         (DATA_SECTION_ASM_OP): New.
167         (SDATA_SECTION_ASM_OP): New.
168         (BSS_SECTION_ASM_OP): New.
169         (SBSS_SECTION_ASM_OP): New.
170         (TEXT_SECTION_ASM_OP): New.
171
172 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
173
174         * config/fp-bit.c: Follow spelling conventions.
175         * config/d30v/d30v.c: Likewise.
176         * config/d30v/d30v.h: Likewise.
177         * config/fr30/fr30.c: Likewise.
178         * config/fr30/fr30.h: Likewise.
179         * config/fr30/fr30.md: Likewise.
180         * config/frv/frv.c: Likewise.
181         * config/frv/frv.h: Likewise.
182         * config/h8300/h8300.c: Likewise.
183         * config/h8300/lib1funcs.asm: Likewise.
184         * config/i370/i370.c: Likewise.
185         * config/i386/i386.h: Likewise.
186         * config/i386/i386.md: Likewise.
187         * config/i386/pentium.md: Likewise.
188         * config/i386/winnt.c: Likewise.
189         * config/i960/i960.c: Likewise.
190         * config/ia64/ia64.h: Likewise.
191         * config/ip2k/ip2k.c: Likewise.
192         * config/ip2k/ip2k.h: Likewise.
193         * config/ip2k/ip2k.md: Likewise.
194         * config/ip2k/libgcc.S: Likewise.
195
196 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
197
198         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
199         (GOTOFF_P): Extend to allow gotoff plus constant.
200
201 2002-09-18  Richard Henderson  <rth@redhat.com>
202
203         * ifcvt.c (noce_process_if_block): Correctly detect X modified
204         with INSN_B before COND_EARLIEST.  Don't check A and B for 
205         modification in condition range.  Reorder INSN_B for A==B properly.
206         (if_convert): Iterate until no matches for a block.
207
208 2002-09-18  Richard Henderson  <rth@redhat.com>
209
210         * calls.c (store_one_arg): Rename default_align to parm_align;
211         always adjust parm_align for downward padding.
212
213 2002-09-18  Richard Henderson  <rth@redhat.com>
214
215         * toplev.c (backend_init): Move init_real_once invocation ...
216         (do_compile): ... here.
217
218 2002-09-18  Richard Henderson  <rth@redhat.com>
219
220         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
221         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
222
223 2002-09-18  Richard Henderson  <rth@redhat.com>
224
225         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
226
227 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
228
229         * config/rs6000/rs6000.md: (floatdisf2): Rename to
230         floatdisf2_internal1.
231         (floatdisf2): New define_expand.
232         (floatdisf2_internal2): Likewise.
233
234 2002-09-18  Richard Henderson  <rth@redhat.com>
235
236         * real.c (sticky_rshift_significand): Collect sticky as 
237         unsigned long, not bool.
238
239 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
240
241         * config/s390/s390.c (s390_address_cost): New function.
242         config/s390/s390-protos.h (s390_address_cost): Add prototype.
243         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
244         (RTX_COST): Use COSTS_N_INSNS.
245
246 2002-09-18  Douglas Rupp  <rupp@gnat.com>
247             Donn Terry  <donnte@microsoft.com>
248
249         * stor-layout.c (place_field): Handle alignment of whole
250         structures when MSVC compatible bitfields are involved.
251         Change method of computing location of MS bitfields to
252         be compatible with #pragma pack(n).
253
254         * tree.h (record_layout_info): Add new field
255         remaining_in_alignment.
256
257         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
258         (pragma pack): Add paragraph on MSVC bitfield packing.
259
260 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
261
262         PR optimization/7967
263         * arm.md (ne_zeroextractsi): Add clobber of the condition code
264         register.
265
266 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
267
268         * config/s390/s390.c: Follow spelling conventions.
269         * config/sh/lib1funcs.asm: Likewise.
270         * config/sh/sh.c: Likewise.
271         * config/sh/sh.h: Likewise.
272         * config/sparc/sparc.c: Likewise.
273         * config/sparc/sparc.h: Likewise.
274         * config/sparc/sparc.md: Likewise.
275         * config/stormy16/stormy16.c: Likewise.
276         * config/stormy16/stormy16.h: Likewise.
277         * config/v850/v850.c: Likewise.
278         * config/v850/v850.h: Likewise.
279         * config/vax/vax.c: Likewise.
280         * config/vax/vax.h: Likewise.
281
282 2002-09-18  Nick Clifton  <nickc@redhat.com>
283
284         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
285         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
286         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
287
288 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
289
290         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
291         statement that the only translation is to en_UK.
292
293 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
294
295         * config/alpha/alpha.c: Follow spelling conventions.
296         * config/alpha/alpha.h: Likewise.
297         * config/alpha/alpha.md: Likewise.
298         * config/arc/arc.h: Likewise.
299         * config/arm/arm.c: Likewise.
300         * config/arm/arm.h: Likewise.
301         * config/arm/arm.md: Likewise.
302         * config/arm/pe.c: Likewise.
303         * config/arm/unknown-elf.h: Likewise.
304         * config/avr/avr.c: Likewise.
305         * config/avr/avr.h: Likewise.
306         * config/c4x/c4x.c: Likewise.
307         * config/cris/cris.c: Likewise.
308         * config/cris/cris.h: Likewise.
309
310 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
311
312         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
313         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
314         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
315
316 2002-09-17  Dale Johannesen  <dalej@apple.com>
317
318         * cfgcleanup.c (try_forward_edges):  Do not forward a
319         branch to just after a loop exit before loop optimization;
320         this interfered with doloop detection.
321
322 2002-09-17  Nick Clifton  <nickc@redhat.com>
323
324         * config/arm/arm.c (output_return_instruction): Do not
325         writeback the stack pointer when it is being loaded.
326         (arm_output_epilogue): Likewise.
327
328 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
329
330         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
331         generate a pseudo reg that receives the result of a libcall.
332         (prepare_float_lib_cmp): Likewise.
333
334 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
335
336         * config/ia64/elf.h: Remove CPP_PREDEFINES.
337
338 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
339
340         Fix PR/7014 and related objc bugs:
341         * c-typeck.c (comp_target_types): Added a reflexive argument.
342         Pass it to ObjC when/if calling objc_comptypes().  Updated all
343         callers to provide the appropriate reflexive argument.
344         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
345         typechecking for all cases of comparisons and assignments,
346         particularly the obscure and less common ones involving protocols.
347
348 2002-09-17  Nick Clifton  <nickc@redhat.com>
349
350         * machmode.def (V1DImode): New mode.  A single element vector.
351         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
352         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
353         * tree.c (build_common_tree_nodes_2): Build
354         unsigned_V1DI_type_node and V1D1_type_node.
355         * c-common.c (c_common_type_for_mode): Return
356         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
357         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
358
359 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
360
361         * doc/objc.texi (Constant string objects): Extended documentation
362         to make clear that the constant string class ivar layout is
363         completely fixed.
364         
365 2002-09-17  Roger Sayle  <roger@eyesopen.com>
366
367         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
368         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
369
370 2002-09-16  Richard Henderson  <rth@redhat.com>
371
372         * expr.c (emit_block_move): Set memory block size as appropriate
373         for the copy.
374
375 2002-09-16  Richard Henderson  <rth@redhat.com>
376
377         PR fortran/3924
378         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
379
380 2002-09-16  Richard Henderson  <rth@redhat.com>
381
382         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
383         as well as OFFSET for BITPOS.
384
385 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
386
387         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
388         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
389         winchip2 and c3.
390         * doc/invoke.texi: Mention new aliases.
391
392 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
393
394         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
395         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
396         downward.
397         * function.c (pad_below):  Always compile.
398         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
399         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
400         Pad below when the argument is not in a register and the padding
401         direction is downward.
402
403         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
404         (PAD_VARARGS_DOWN): Define.
405         * pa.c (function_arg_padding): Revise padding directions to make them
406         compatible with the 32 and 64-bit runtime architecture documentation.
407         (hppa_va_arg):  Add code to handle variable and size zero arguments
408         passed by reference on TARGET_64BIT.  Reformat.
409         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
410         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
411         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
412         Add comments.
413         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
414         (RETURN_IN_MEMORY): Return size zero types in memory.
415         (FUNCTION_VALUE): Return TFmode in general registers.
416         (MUST_PASS_IN_STACK): Define.
417         (FUNCTION_ARG_BOUNDARY): Simplify.
418         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
419         by reference.
420         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
421
422 2002-09-16  Richard Henderson  <rth@redhat.com>
423
424         * real.c (do_fix_trunc): New.
425         (real_arithmetic): Call it.
426         * simplify-rtx.c (simplify_unary_operation): Handle FIX
427         with a floating-point result mode.
428
429 2002-09-16  Richard Henderson  <rth@redhat.com>
430
431         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
432         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
433         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
434         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
435         * builtins.c (fold_builtin_nan): New.
436         (fold_builtin): Call it.
437         * real.c (real_nan): Parse a non-empty string.
438         (round_for_format): Fix NaN significand truncation.
439         * real.h (real_nan): Return bool.
440         * doc/extend.texi: Document new builtins.
441
442 2002-09-16  Jason Merrill  <jason@redhat.com>
443             Danny Smith  <dannysmith@users.sourceforge.net>
444
445         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
446         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
447         (i386_pe_mark_dllimport): Not here.
448
449 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
450
451         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
452
453 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
454
455         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
456         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
457         < 64.
458         (rs6000_emit_cmove): Use real_isinf not target_isinf.
459
460 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
461
462         * calls.c (emit_library_call_value_1): Don't refer to
463         hard_libcall_value.
464         * optabs.c (prepare_float_lib_cmp): Likewise.
465
466 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
467
468         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
469         mangling.
470
471         The following changes are merged from pch-branch:
472
473         * doc/gty.texi (GTY Options): Document %a.
474         * gengtype.c (do_scalar_typedef): New function.
475         (process_gc_options): Handle `length' option.
476         (set_gc_used_type): A pointer to an array of structures doesn't
477         qualify as a pointer to a structure.
478         (output_escaped_param): Add `%a' escape.
479         (write_gc_structure_fields): Allow 'desc' on array of unions.
480         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
481         do_scalar_typedef.
482
483         * gengtype.c (enum rtx_code): Make global.
484         (rtx_format): Make global.
485         (rtx_next): New.
486         (gen_rtx_next): New.
487         (write_rtx_next): New.
488         (adjust_field_rtx_def): Skip fields marked by chain_next.
489         (open_base_files): Delete redundant prototype.
490         (write_enum_defn): New.
491         (output_mangled_typename): Correct abort call.
492         (write_gc_marker_routine_for_structure): Handle chain_next and
493         chain_prev options.
494         (finish_root_table): Don't output redundant \n.
495         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
496         * c-tree.h (union lang_tree_node): Add chain_next option.
497
498         * gengtype.h (NUM_PARAM): New definition.
499         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
500         * gengtype.c (find_param_structure): New.
501         (adjust_field_type): Handle param<n>_is option.
502         (process_gc_options): Detect use_params option.  Update callers.
503         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
504         'use_params' option.
505         (open_base_files): Add splay-tree.h to list of files included.
506         (output_mangled_typename): New.
507         (write_gc_structure_fields): Update 'param' parameter to support
508         multiple parameters.  Change name mangling.  Allow parameterized
509         fields to have an apparent scalar type.  Handle param<n>_is options,
510         use_param option.
511         (write_gc_marker_routine_for_structure): Update for change to name
512         mangling.  Better guess the output file for parameterized types.
513         (write_gc_types): Update for change to name mangling.
514         (write_gc_root): Update for change to name mangling.  Handle (ignore)
515         param<n>_is options.
516         * doc/gty.texi (GTY Options): Add description of param<n>_is
517         options, use_params option.
518         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
519         * gengtype-lex.l: Produce token for param<n>_is.
520         * gengtype-yacc.y: Parse param<n>_is.
521
522         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
523
524         * rtl.c: Update comment describing rtx_format.
525         * rtl.h (union rtunion): Separate definition and typedef.
526         (struct rtx_def): Use gengtype to mark.
527         * Makefile.in (gengtype.o): Also depend on rtl.def.
528         * ggc.h (ggc_mark_rtx_children): Delete prototype.
529         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
530         * ggc-common.c (ggc_mark_rtx_children): Delete.
531         (ggc_mark_rtx_children_1): Delete.
532         (gt_ggc_m_rtx_def): Delete.
533         * gengtype.c (adjust_field_rtx_def): New.
534         (adjust_field_type): Call adjust_field_rtx_def.
535         (write_gc_structure_fields): Add 'default' case to switch if none
536         is specified; remove unused code.
537
538         * tree.h (struct tree_exp): Update for change to meaning
539         of special.
540         * gengtype.c (adjust_field_tree_exp): New function.
541         (adjust_field_type): Handle `tree_exp' special here.
542         (write_gc_structure_fields): Don't handle `tree_exp' special here.
543         Handle new `dot' option.
544
545         * gengtype.h: Make `info' a pointer-to-const.
546         * gengtype-yacc.y (yacc_ids): Use xasprintf.
547
548         * gengtype.c (write_gc_structure_fields): Remove implementation
549         of `always' option, add `default' option.
550         * doc/gty.texi (GTY Options): Remove documentation of `always',
551         add `default'.
552
553 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
554
555         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
556
557 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
558
559         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
560
561         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
562         instead of the *-protos.h file directly.
563         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
564         * darwin.c (machopic_output_stub): Move prototype ...
565         * darwin-protos.h (machopic_output_stub): ... here.
566         * rs6000-protos.h (machopic_output_stub): Don't declare.
567
568 2002-09-16  Richard Henderson  <rth@redhat.com>
569
570         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
571
572 2002-09-16  Richard Henderson  <rth@redhat.com>
573
574         * real.c, real.h: Rewrite from scratch.
575
576         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
577         (paranoia): New target.
578         * builtins.c (fold_builtin_inf): Use new real.h interface.
579         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
580         * c-lex.c (interpret_float): Likewise.
581         * emit-rtl.c (gen_lowpart_common): Likewise.
582         * optabs.c (expand_float): Use real_2expN.
583         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
584         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
585         (FLOAT_WORDS_BIG_ENDIAN): New.
586         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
587         directly to REAL_VALUE_NEGATIVE.
588         * loop.c (canonicalize_condition): Likewise.
589         * simplify-rtx.c: Include tree.h.
590         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
591         with floating-point result modes.
592         * toplev.c (backend_init): Call init_real_once.
593
594         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
595         * tree.c (build_real): Likewise.
596         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
597         float_values, inited_float_values, check_float_value): Remove.
598         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
599         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
600         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
601         (VAX_HALFWORD_ORDER): Remove.
602
603 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
604
605         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
606         (s390_load_address): ... this new function.
607         (s390_decompose_address): Allow the argument pointer and all
608         virtual registers as 'pointer' registers.
609         (s390_expand_plus_operand): Use s390_load_address.
610         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
611         ("force_la_31"): New insn pattern.
612         config/s390/s390-protos.h (legitimize_la_operand): Remove.
613         (s390_load_address): Add prototype.
614
615         * config/s390/s390.c: Include "optabs.h".
616         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
617         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr, 
618         s390_expand_cmpstr): Add prototypes.
619         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
620         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
621         for operands 0 and 1 to "memory_operand".  Add type attribute.
622         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
623         for operands 0 and 1 to "memory_operand".  Add type attribute.
624         ("movstrdi_long", "movstrsi_long"): Remove.
625         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
626         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
627         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
628         ("clrstrsico"): Remove, replace by ...
629         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
630         ("clrstrsi_64"): Rename to "clrstr_long_64".
631         ("clrstrsi_31"): Rename to "clrstr_long_31".
632         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
633         ("cmpstr_const"): Remove, replace by ...
634         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
635         ("cmpstr_64"): Rename to "cmpstr_long_64".
636         ("cmpstr_31"): Rename to "cmpstr_long_31".
637
638 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
639
640         * ABOUT-NLS: Follow spelling conventions.
641         * ChangeLog: Likewise.
642         * ChangeLog.1: Likewise.
643         * ChangeLog.2: Likewise.
644         * ChangeLog.3: Likewise.
645         * ChangeLog.4: Likewise.
646         * ChangeLog.5: Likewise.
647         * ChangeLog.6: Likewise.
648         * FSFChangeLog.10: Likewise.
649         * FSFChangeLog.11: Likewise.
650         * c-common.c: Likewise.
651         * c-lex.c: Likewise.
652         * c-objc-common.c: Likewise.
653         * cppexp.c: Likewise.
654         * cppinit.c: Likewise.
655         * cpplex.c: Likewise.
656         * doloop.c: Likewise.
657         * flow.c: Likewise.
658         * function.c: Likewise.
659         * integrate.c: Likewise.
660         * loop.c: Likewise.
661         * reg-stack.c: Likewise.
662         * reload.h: Likewise.
663         * ssa.c: Likewise.
664
665 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
666
667         * ChangeLog: Follow spelling conventions.
668         * ChangeLog.0: Likewise.
669         * ChangeLog.1: Likewise.
670         * ChangeLog.2: Likewise.
671         * ChangeLog.4: Likewise.
672         * ChangeLog.6: Likewise.
673         * config.gcc: Likewise.
674         * dwarfout.c: Likewise.
675         * reload1.c: Likewise.
676         * simplify-rtx.c: Likewise.
677         * unwind-sjlj.c: Likewise.
678         * config/avr/avr.h: Likewise.
679         * config/d30v/d30v.h: Likewise.
680         * config/frv/frv.c: Likewise.
681         * config/frv/frv.h: Likewise.
682         * config/ip2k/ip2k.h: Likewise.
683         * config/m88k/m88k-move.sh: Likewise.
684         * config/stormy16/stormy16.c: Likewise.
685         * config/stormy16/stormy16.h: Likewise.
686         * doc/extend.texi: Likewise.
687         * doc/interface.texi: Likewise.
688         * doc/invoke.texi: Likewise.
689         * doc/md.texi: Likewise.
690         * doc/rtl.texi: Likewise.
691         * doc/tm.texi: Likewise.
692         * doc/trouble.texi: Likewise.
693         * ginclude/float.h: Likewise.
694         * treelang/treelang.texi: Likewise.
695
696 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
697
698         * i386-protos.h (i386_pe_dllexport_name_p,
699         i386_pe_dllimport_name_p, i386_pe_unique_section,
700         i386_pe_declare_function_type, i386_pe_record_external_function,
701         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
702         prototype.
703         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
704         * i386/t-interix (winnt.o): Likewise.
705
706         * v850-protos.h (v850_output_addr_const_extra): Prototype.
707
708 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
709
710         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
711         MIPS ABI CPP macros.
712         (TARGET_CPU_CPP_BUILTINS): Redefine.
713         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
714         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
715
716 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
717
718         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
719
720 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
721
722         * ChangeLog: Follow spelling conventions.
723         * ChangeLog.0: Likewise.
724         * ChangeLog.1: Likewise.
725         * ChangeLog.2: Likewise.
726         * ChangeLog.3: Likewise.
727         * ChangeLog.4: Likewise.
728         * ChangeLog.5: Likewise.
729         * ChangeLog.6: Likewise.
730         * FSFChangeLog.10: Likewise.
731         * FSFChangeLog.11: Likewise.
732         * c-common.c: Likewise.
733         * c-common.h: Likewise.
734         * c-format.c: Likewise.
735         * c-opts.c: Likewise.
736         * cpplib.c: Likewise.
737         * langhooks.h: Likewise.
738         * real.c: Likewise.
739         * reg-stack.c: Likewise.
740         * toplev.c: Likewise.
741         * config/arm/arm.c: Likewise.
742         * config/arm/arm.md: Likewise.
743         * config/arm/linux-gas.h: Likewise.
744         * config/arm/netbsd.h: Likewise.
745         * config/c4x/c4x.c: Likewise.
746         * config/c4x/c4x.h: Likewise.
747         * config/c4x/c4x.md: Likewise.
748         * config/c4x/libgcc.S: Likewise.
749         * config/fr30/fr30.md: Likewise.
750         * config/frv/frv.md: Likewise.
751         * config/ia64/ia64.md: Likewise.
752         * config/mips/mips.h: Likewise.
753         * config/mn10300/mn10300.c: Likewise.
754         * config/stormy16/stormy16.c: Likewise.
755         * config/v850/v850.md: Likewise.
756         * doc/extend.texi: Likewise.
757         * doc/invoke.texi: Likewise.
758         * doc/md.texi: Likewise.
759
760 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
761
762         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
763         library if -pthread is specified.
764
765 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
766
767         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
768         for --enable-threads=yes and --enable-threads=posix.
769
770 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
771
772         * config/sparc/cypress.md: Replace Sparc with SPARC.
773         * config/sparc/freebsd.h: Likewise.
774         * config/sparc/gmon-sol2.c: Likewise.
775         * config/sparc/hypersparc.md: Likewise.
776         * config/sparc/lb1spc.asm: Likewise.
777         * config/sparc/lb1spl.asm: Likewise.
778         * config/sparc/linux.h: Likewise.
779         * config/sparc/linux64.h: Likewise.
780         * config/sparc/lynx.h: Likewise.
781         * config/sparc/sol2.h: Likewise.
782         * config/sparc/sparc-modes.def: Likewise.
783         * config/sparc/sparc.c: Likewise.
784         * config/sparc/sparc.h: Likewise.
785         * config/sparc/sparc.md: Likewise.
786         * config/sparc/sparclet.md: Likewise.
787         * config/sparc/supersparc.md: Likewise.
788         * config/sparc/sysv4.h: Likewise.
789         * config/sparc/vxsim.h: Likewise.
790         * config/sparc/vxsparc64.h: Likewise.
791
792 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
793
794         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
795
796 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
797
798         * ChangeLog: Follow spelling conventions.
799         * ChangeLog.0: Likewise.
800         * ChangeLog.2: Likewise.
801         * ChangeLog.3: Likewise.
802         * ChangeLog.4: Likewise.
803         * ChangeLog.5: Likewise.
804         * ChangeLog.6: Likewise.
805         * cppfiles.c: Likewise.
806         * cppinit.c: Likewise.
807         * cpplib.h: Likewise.
808         * cse.c: Likewise.
809         * debug.h: Likewise.
810         * df.c: Likewise.
811         * dominance.c: Likewise.
812         * hashtable.c: Likewise.
813         * hashtable.h: Likewise.
814         * loop.c: Likewise.
815         * config/arm/README-interworking: Likewise.
816         * config/arm/arm.c: Likewise.
817         * config/arm/arm.h: Likewise.
818         * config/arm/arm.md: Likewise.
819         * config/dsp16xx/dsp16xx.h: Likewise.
820         * config/frv/frv.c: Likewise.
821         * config/frv/frv.h: Likewise.
822         * config/ip2k/ip2k.h: Likewise.
823         * config/rs6000/rs6000.c: Likewise.
824         * config/stormy16/stormy-abi: Likewise.
825         * config/stormy16/stormy16.h: Likewise.
826         * config/v850/v850.c: Likewise.
827
828 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
829
830         * loop.c: Fix a comment typo.
831
832 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
833
834         * config/fr30/fr30.h: Fix comment typos.
835         * config/frv/frv.c: Likewise.
836         * config/i386/xmmintrin.h: Likewise.
837         * config/mips/mips.c: Likewise.
838         * config/sh/sh.c: Likewise.
839
840 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
841
842         * haifa-sched.c: Follow spelling conventions.
843         * regclass.c: Likewise.
844         * regrename.c: Likewise.
845         * config/fp-bit.c: Likewise.
846         * config/frv/frv.h: Likewise.
847         * config/m88k/m88k.c: Likewise.
848         * config/mcore/mcore.c: Likewise.
849         * config/rs6000/darwin.h: Likewise.
850         * config/rs6000/gnu.h: Likewise.
851         * config/rs6000/linux.h: Likewise.
852         * config/rs6000/linux64.h: Likewise.
853         * config/rs6000/rs6000.c: Likewise.
854         * config/rs6000/rs6000.h: Likewise.
855         * config/sh/sh.c: Likewise.
856         * config/sparc/sparc.c: Likewise.
857         * config/sparc/ultra1_2.md: Likewise.
858
859 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
860
861         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
862         memory operand when source is 0 (K constraint).
863         ("movsi_internal"): Likewise.
864         ("movdf_internal"): Likewise.
865         ("movsf_internal"): Likewise.
866
867 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
868
869         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
870         targetm.binds_local_p to set SYMBOL_REF_FLAG.
871         (rs6000_xcoff_encode_section_info): Likewise.
872         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
873
874 2002-09-10  Theodore A. Roth  <troth@verinet.com>
875
876         * gcc/config/avr/avr.h: Set default options for C++ for avr.
877
878 2002-09-13  Richard Henderson  <rth@redhat.com>
879
880         * Makefile.in (toplev.o): Depend on real.h.
881         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
882
883 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
884
885         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
886         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
887         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
888
889 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
890
891         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
892
893 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
894
895         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
896         ia64*-*-linux*): Set extra_parts.
897         * config/ia64/t-aix (EXTRA_PARTS): Remove.
898         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
899
900 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
901
902         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
903         * config/h8300/h8300.c: Likewise.
904         * config/h8300/h8300.h: Likewise.
905         * config/h8300/h8300.md: Likewise.
906         * doc/invoke.texi: Likewise.
907
908 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
909
910         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
911
912 2002-09-13  Matt Austern  <austern@apple.com>
913
914         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
915         * cp/call.c: Change call-by-const-reference mechanism to use
916         non_cast_lvalue_p when deciding whether the create a temporary.
917         We need a temporary when passing, e.g. (long) x by const ref.
918         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
919         passing a cast expression to a function by const reference.
920         
921 2002-09-13  Richard Henderson  <rth@redhat.com>
922
923         * config/alpha/alpha.md (attr type): Add callpal.
924         (imb, trap, load_tp, set_tp): Use it.
925         * config/alpha/ev4.md (ev4_callpal): New.
926         * config/alpha/ev5.md (ev5_callpal): New.
927         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
928         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
929         (alphaev5_insn_pipe): Likewise.
930
931 2002-09-13  Andreas Jaeger  <aj@suse.de>
932
933         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
934
935 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
936
937         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
938         LIB2ADDEH): New, set to NULL.
939         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
940
941 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
942
943         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
944         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
945         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
946         Add declarations.
947         (_U_Qfneg): Remove.
948
949 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
950
951         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
952         for H8/300, H8S aa:8 mode.
953         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
954         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
955         for H8/300 aa:8 mode.
956
957 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
958
959         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
960         insns.
961
962 2002-09-12  Richard Henderson  <rth@redhat.com>
963
964         * Makefile.in (HOST_PRINT): Use print-rtl1.o
965         (print-rtl.o): Don't define GENERATOR_FILE.
966         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
967         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
968         unless GENERATOR_FILE.
969
970 2002-09-12  Stan Shebs  <shebs@apple.com>
971
972         * config/darwin.h (USER_LABEL_PREFIX): Define here...
973         * config/i386/darwin.h: ... instead of here.
974
975         * target.h (struct gcc_target): New field
976         terminate_dw2_eh_frame_info.
977         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
978         (TARGET_INITIALIZER): Add it.
979         * dwarf2out.c (output_call_frame_info): Use target hook.
980         * dwarf2asm.c (dw2_asm_output_delta): Use macro
981         ASM_OUTPUT_DWARF_DELTA if defined.
982         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
983         (ASM_OUTPUT_DWARF_DELTA): Ditto.
984         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
985         (ASM_OUTPUT_DWARF_PCREL): Ditto.
986         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
987         (powerpc-*-darwin*): Ditto.
988         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
989         to work correctly for Darwin.
990         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
991         (STARTFILE_SPEC): Add crtbegin.o.
992         (ENDFILE_SPEC): Define.
993         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
994         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
995         (ASM_OUTPUT_DWARF_DELTA): Define.
996         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
997         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
998
999 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
1000
1001         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
1002         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
1003         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
1004
1005 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
1006
1007         * toplev.c: Move default definition of USER_LABEL_PREFIX...
1008         * defaults.h: ... here.
1009
1010 2002-09-12  Richard Henderson  <rth@redhat.com>
1011
1012         * vax.c: Include tree.h earlier.
1013
1014 2002-09-12  Stan Shebs  <shebs@apple.com>
1015
1016         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
1017         (machopic_operand_p): Ditto.
1018
1019 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1020
1021         * config/arm/arm.c (arm_compute_initial_elimination_offset):
1022         Fix a comment typo.
1023
1024 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1025
1026         * toplev.c (do_abort): Fix a comment typo.
1027
1028 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1029
1030         * cselib.c: Fix comment formatting.
1031         * gengtype.c: Likewise.
1032
1033 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1034
1035         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
1036         (udivmodhi4): Likewise.
1037
1038 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
1039             Roger Sayle  <roger@eyesopen.com>
1040
1041         * i386.c (any_fp_register_operand, fp_register_operand,
1042         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
1043         New predicate functions.
1044         * i386-protos.h:  Add their prototypes.
1045         * i386.h: Add them to PREDICATE_CODES.
1046         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
1047         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
1048         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
1049         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
1050         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
1051         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
1052         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
1053         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
1054         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
1055         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
1056         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
1057         Use these new predicates to simplify and correct the use of
1058         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
1059
1060 2002-09-12  Jason Merrill  <jason@redhat.com>
1061
1062         * diagnostic.c (output_add_identifier): New fn.
1063         * diagnostic.h: Declare it.
1064
1065         * calls.c (store_one_arg): Use size_in_bytes to determine the
1066         amount of space to push.
1067
1068 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1069
1070         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
1071
1072 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
1073
1074         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
1075         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
1076         (s390_select_ccmode): Likewise.
1077         (s390_branch_condition_mask): Likewise.
1078         (optimization_options): Do not set flag_branch_on_count.
1079         (s390_split_branches): Handle doloop branches.
1080         (s390_chunkify_pool): Likewise.
1081         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1082         ("doloop_end"): New expander.
1083         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1084         associated splitters): New.
1085
1086 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
1087
1088         * fold-const.c (make_range): Only narrow to signed range if
1089         the signed range is smaller than the unsigned range.
1090
1091 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1092
1093         * emit-rtl.c (set_mem_size): New function.
1094         * expr.h (set_mem_size): Declare.
1095         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1096         (expand_block_move): Instead, use adjust_address and
1097         replace_equiv_address to generate proper aliasing info.
1098         Move common code out of conditionals.  Localize vars.
1099
1100 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
1101
1102         * optabs.c (expand_binop): Minor cleanup.
1103         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1104
1105 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
1106
1107         * print-tree.c (print_node): Print the restrict qualifier.
1108
1109 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
1110
1111         * doc/install.texi: Fix typos.
1112
1113 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
1114
1115         * Makefile.in: Remove all references to s-under and underscore.c.
1116         * collect2.c, tlink.c: Change all uses of prepends_underscore
1117         to look directly at USER_LABEL_PREFIX.
1118
1119 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
1120
1121         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
1122         alignment to csect.
1123         (rs6000_xcoff_unique_section): Only set section name for public
1124         data.
1125         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
1126         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
1127         duplicate definition.
1128
1129 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1130
1131         * pa.md (extzv): Check predicates before emitting extzv_32.
1132         (insv): Likewise.
1133
1134 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1135
1136         * config/s390/s390.h (MOVE_MAX): Define to correct value.
1137         (MAX_MOVE_MAX): Define.
1138         (MOVE_BY_PIECES_P): Define.
1139         (CLEAR_BY_PIECES_P): Define.
1140
1141 2002-09-10  Denis Chertykov  <denisc@overta.ru>
1142
1143         * config/avr/avr.md (movstrhi): Use right operands for conversion.
1144
1145 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
1146
1147         PR c/7873
1148         * arm.md (insv): Use reg_or_int_operand for operand[3].
1149
1150 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
1151
1152         * rs6000.c (rs6000_assemble_visibility): Protect declaration
1153         inside macro.  Correct function definition typo.
1154         (rs6000_xcoff_section_type_flags): New function.
1155         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
1156         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
1157         with appropriate PIC test.
1158         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
1159         determine readonly.
1160         (rs6000_binds_local_p): Combine PIC flags.
1161         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
1162         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
1163
1164 2002-09-09  Per Bothner  <per@bothner.com>
1165
1166         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
1167         characters, and only print TREE_STRING_LENGTH chars.
1168
1169 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
1170
1171         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
1172         (ASM_FILE_END) New.
1173         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
1174         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
1175         * config/ia64/ia64.c (ia64_asm_output_external): Create list
1176         of external functions if TARGET_HPUX_LD is true.
1177         (ia64_hpux_add_extern_decl): New, routine to put names on
1178         list of external functions.
1179         (ia64_hpux_asm_file_end): Put out declarations for external
1180         functions if and only if they are used.
1181
1182 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1183
1184         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
1185         on TARGET_64BIT before pic register restore.
1186
1187 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
1188
1189         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
1190         (TARGET_HAVE_TLS): New description.
1191
1192 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
1193
1194         * doc/extend.texi (Statement Exprs): Fix broken link.
1195
1196 2002-09-09  Denis Chertykov  <denisc@overta.ru>
1197
1198         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
1199         right conversion of operands[1].
1200
1201 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1202
1203         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
1204         commutative.  Use "nonimmediate_operand" instead of "register_operand"
1205         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
1206
1207         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
1208         as commutative.
1209
1210         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
1211         mark as commutative.  Use "nonimmediate_operand" instead of
1212         "register_operand" as predicate for operand 1.
1213
1214         ("movstrictsi"): Fix typo in insn name.
1215
1216 2002-09-09  Jan Hubicka  <jh@suse.cz>
1217
1218         * i386.c (index_register_operand): New.
1219         * i386.h (predicate_codes): Add new predicate.
1220         * i386.md (lea_general_*): Use index_regsiter_operand
1221         (ashift to lea splitter): Do not produce invalid leas
1222         (ashift to mov+ashift split): New.
1223
1224 2002-09-09  Nick Clifton  <nickc@redhat.com>
1225
1226         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
1227         Fix folding marks.
1228
1229 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1230             J"orn Rennecke <joern.rennecke@superh.com>
1231
1232         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
1233
1234 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
1235
1236         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
1237         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
1238         attributes.
1239
1240 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1241
1242         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
1243
1244 2002-09-08  Richard Henderson  <rth@redhat.com>
1245
1246         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
1247         (DW_OP_GNU_push_tls_address): New.
1248         (DW_OP_lo_user): Fix.
1249         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
1250         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
1251         (size_of_loc_descr): Likewise.
1252         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
1253         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
1254         (loc_descriptor_from_tree): Handle TLS variables.
1255         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
1256         (add_location_or_const_value_attribute): ... not here.  Defer
1257         to loc_descriptor_from_tree for TLS variables.
1258
1259         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
1260         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
1261         * config/i386/i386-protos.h: Update.
1262
1263 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1264
1265         PR optimization/6405
1266         * unroll.c (loop_iterations): last_loop_insn should be the previous
1267         non-note instruction before loop->end.
1268         * loop.c (strength_reduce): The conditional jump is the last
1269         non-note instruction before loop->end (as above).
1270
1271 2002-09-08  Roger Sayle  <roger@eyesopen.com>
1272
1273         * combine.c (try_combine): Handle the case that undobuf.other_insn
1274         has been turned into a return or unconditional jump, by inserting
1275         a BARRIER if necessary.
1276         (simplify_set):  Test if a condition code setter has a constant
1277         comparison at compile time, if so convert this insn to a no-op move
1278         and update/simplify the condition code user (undobuf.other_insn).
1279
1280 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
1281
1282         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
1283         (CLEAR_INSN_CACHE): Define.
1284
1285 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1286
1287         * basic-block.h: Fix comment formatting.
1288         * c-common.c: Likewise.
1289         * c-common.h: Likewise.
1290         * c-lex.c: Likewise.
1291         * c-pretty-print.c: Likewise.
1292         * cfglayout.c: Likewise.
1293         * cfgloop.c: Likewise.
1294         * defaults.h: Likewise.
1295         * et-forest.c: Likewise.
1296         * explow.c: Likewise.
1297         * function.h: Likewise.
1298         * gcov.c: Likewise.
1299         * genattrtab.c: Likewise.
1300         * gengtype.c: Likewise.
1301         * ifcvt.c: Likewise.
1302         * libgcc2.c: Likewise.
1303         * loop.c: Likewise.
1304         * profile.c: Likewise.
1305         * ra-build.c: Likewise.
1306         * real.c: Likewise.
1307         * rtl.h: Likewise.
1308         * tracer.c: Likewise.
1309         * tree-inline.c: Likewise.
1310         * varasm.c: Likewise.
1311
1312 2002-09-08  Jan Hubicka  <jh@suse.cz>
1313
1314         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
1315         handling.
1316
1317         * loop.c (loop_gics_reduce):  Emit addition after.
1318
1319 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1320
1321         * varasm.c (default_assemble_visibility): Rename from
1322         assemble_visibility.
1323         * output.h: Here too.
1324         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
1325         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
1326
1327 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
1328
1329         * reload.c (find_reloads <p constraint>): Pass operand_mode to
1330         find_reloads_address.
1331
1332 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
1333
1334         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
1335         (anonymous pattern): Likewise.
1336
1337 2002-09-07  Scott Snyder  <snyder@fnal.gov>
1338
1339         PR target/7374
1340         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
1341
1342 2002-09-07  Roger Sayle  <roger@eyesopen.com>
1343
1344         * basic-block.h (struct loop): Remove unused cont_dominator field.
1345
1346 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1347
1348         * varasm.c (decode_rtx_const): Don't check undefined field for
1349         CONST_VECTOR.
1350
1351 2002-09-07  Glen Nakamura  <glen@imodulo.com>
1352
1353         PR opt/7814
1354         * sched-deps.c (sched_analyze_insn): Make sure to add insn
1355         to reg_last->sets after flushing the dependency lists to guarantee
1356         that subsequent clobbers will be dependent on it.
1357
1358 2002-09-07  Igor Shevlyakov <igor@microunity.com>
1359
1360         * combine.c (simplify_shift_const): Calculate rotate count
1361         correctly for vector operands.
1362
1363 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
1364
1365         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
1366         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
1367         tree_expr_nonnegative_p.
1368         (build_conditional_expr): Likewise.
1369         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
1370
1371 2002-09-07  Richard Henderson  <rth@redhat.com>
1372
1373         * builtins.def (inf, inff, infl): Mark const.
1374         (huge_val, huge_valf, huge_vall): Likewise.
1375         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
1376
1377         * real.c (ereal_inf): Clear E before use.
1378
1379 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1380
1381         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
1382         an expander and an anonymous pattern.  Zero out the upper half
1383         of the dividend in the expander.
1384         (udivmodqi4): Likewise.
1385
1386 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
1387
1388         * config/h8300/h8300.c: Fix formatting.
1389         * config/h8300/h8300.h: Likewise.
1390         * config/h8300/h8300.md: Likewise.
1391
1392 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1393
1394         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
1395         information.
1396
1397 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
1398
1399        * rtlanal.c (dead_or_set_regno_p): Fix typo.
1400
1401 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
1402
1403         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1404
1405         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
1406         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1407         (TARGET_ASM_OUT): Add the above here.
1408         * target.h (struct gcc_target): Add "visibility" field.
1409         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
1410         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
1411         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1412         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
1413
1414 2002-09-06  Ziemowit Laski <zlaski@apple.com>
1415
1416         * c-lang.c (objc_is_id): New stub.
1417         * c-tree.h (objc_is_id): New forward declaration.
1418         * c-typeck.c (build_c_cast): Do not strip protocol
1419         qualifiers from 'id' type.
1420         * objc/objc-act.c (objc_comptypes): Correct handling
1421         of protocol qualifiers.
1422         (objc_is_id): New.
1423
1424 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
1425
1426         * pentium.md (pentium-firstvboth): Fix typo.
1427
1428 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
1429
1430         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
1431         (enum shift_type, enum h8_cpu): Likewise.
1432         (INL, ROT, LOP, SPC macros): Likewise.
1433         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
1434         const designator.
1435         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
1436         space efficient algorithms when optimize for codesize.
1437
1438 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1439
1440         Fix PR/1727 and long-standing failing testcase
1441         objc/formal-protocol-6.m.
1442         * objc-act.c (build_protocol_expr): If compiling for the GNU
1443         runtime, create a list of Protocol statically allocated instances
1444         if it doesn't exist, then add the Protocol object to this same
1445         list.
1446         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
1447         instead of TREE_CHAIN.
1448
1449 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1450
1451         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
1452         10k.  Fixed category dumping - print out category names with the
1453         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
1454         interface.
1455         (finish_objc): Fixed the -gen-decls option.  It was printing out
1456         only the last class.  Dump an interface declaration of all classes
1457         being compiled instead.
1458
1459 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
1460
1461         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
1462         prototype.
1463         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
1464         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
1465         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
1466         rather than GEN_INT.
1467         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
1468         (return_addr_mask, *check_arch2): New.
1469
1470 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
1471
1472         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
1473         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
1474         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1475         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
1476         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
1477         "adddf3", "*adddf3", "*adddf3_ibm",
1478         "addsf3", "*addsf3", "*addsf3_ibm",
1479         "muldi3", "mulsi3", "mulsidi3",
1480         "muldf3", "*muldf3", "*muldf3_ibm",
1481         "mulsf3", "*mulsf3", "*mulsf3_ibm",
1482         "*anddi3_cc", "*anddi3_cconly", "anddi3",
1483         "*andsi3_cc", "*andsi3_cconly", "andsi3",
1484         "*iordi3_cc", "*iordi3_cconly", "iordi3",
1485         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1486         "*xordi3_cc", "*xordi3_cconly", "xordi3",
1487         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
1488         instead of "register_operand" as predicate for "%0" operand.
1489
1490 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
1491
1492         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
1493         unconditionally when gcc_cv_as_flags64 checks are gone.
1494         * configure: Rebuilt.
1495
1496 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
1497
1498         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
1499         2002-07-26 change.  Comment.
1500
1501 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1502
1503         * frv.c (frv_unique_section, frv_select_section,
1504         frv_select_rtx_section): Delete.
1505         (frv_in_small_data_p): New.
1506         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
1507         TARGET_ASM_SELECT_RTX_SECTION): Delete.
1508         (TARGET_IN_SMALL_DATA_P): Define.
1509
1510 2002-09-05  Dale Johannesen  <dalej@apple.com>
1511
1512         * reload1.c (reload):  Retain only those memory clobbers
1513         added for variable-array handling.
1514
1515 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1516
1517         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
1518         return-in-memory rules.
1519         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
1520
1521 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1522
1523         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
1524         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
1525
1526 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
1527
1528         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
1529         not a compile-time constant for the non-IBM case.
1530         * config/arm/arm-protos.h (arm_float_words_big_endian): New
1531         prototype.
1532         * config/arm/arm.c (arm_float_words_big_endian): New function.
1533         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
1534         if TARGET_VFP  and not TARGET_HARD_FLOAT.
1535         (ARM_FLAG_VFP, TARGET_VFP): Define.
1536         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
1537
1538 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
1539
1540         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
1541         URLs.  Fix AIX wording.
1542
1543 2002-09-05  Stan Shebs  <shebs@apple.com>
1544
1545         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
1546         -fPIC equivalent on Darwin.
1547
1548 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
1549
1550         * sh.c (sh_expand_builtin): Return early if encountering an
1551         error_mark for a type.
1552
1553 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1554
1555         * config/s390/s390.c (s390_expand_plus_operand): Do not require
1556         double-word scratch register.
1557         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
1558
1559         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
1560         "*cli"): Replace s_operand by memory_operand.
1561         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
1562
1563 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
1564
1565         * config/h8300/h8300.c (asm_file_start): Add a missing
1566         semicolon.
1567
1568 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
1569
1570         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
1571         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
1572         (ix86_output_addr_diff_elt) Likewise.
1573         (x86_output_mi_thunk) Likewise.
1574         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
1575
1576 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1577
1578         * frv.c (frv_encode_section_info): Fix error in last change.
1579
1580 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
1581
1582         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
1583         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
1584         (TARGET_BINDS_LOCAL_P): Define.
1585         (rs6000_override_options): Save original flag_pic value.
1586         (rs6000_elf_select_section): Call default_elf_select_section_1.
1587         (rs6000_elf_unique_section): Call default_unique_section_1.
1588         (rs6000_elf_in_small_data_p): New function.
1589         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
1590         (rs6000_xcoff_select_section): Update based on defaults.
1591         (rs6000_xcoff_unique_section): Set to basic name if not common.
1592         (rs6000_binds_local_p): New function.
1593         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1594         targetm.have_srodata_section if SDATA_EABI.
1595         (TARGET_IN_SMALL_DATA_P): Define.
1596
1597 2002-09-04  Dale Johannesen  <dalej@apple.com>
1598
1599         * varasm.c (struct rtx_const, decode_rtx_const):
1600         Make veclo and vechi fields not share storage.
1601
1602 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1603
1604         * loop.c (scan_loop): Don't mark separate insns out of a libcall
1605         for moving.
1606         (move_movables): Abort if we see the first insn of a libcall.
1607
1608 2002-09-04  Richard Henderson  <rth@redhat.com>
1609
1610         * builtin-types.def (BT_FN_FLOAT): New.
1611         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
1612         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
1613         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
1614         * builtins.c (fold_builtin_inf): New.
1615         (fold_builtin): Call it.
1616         * real.c (ereal_inf): New.
1617         * real.h: Declare it.
1618         * doc/extend.texi: Document new builtins.
1619
1620 2002-09-04  Richard Henderson  <rth@redhat.com>
1621
1622         * cse.c (cse_insn): Avoid subreg games if the equivalence
1623         is already in the proper mode.
1624
1625 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
1626
1627         PR c/7102
1628         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
1629
1630 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1631
1632         * pa.md (setccfp0, setccfp1): New patterns.
1633
1634 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1635
1636         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
1637         frv_select_section, frv_select_rtx_section,
1638         frv_encode_section_info, frv_unique_section): Delete.
1639         * frv.c: Update for target hooks.
1640         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
1641         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
1642         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
1643
1644 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1645
1646         * ip2k-protos.h (function_prologue, function_epilogue,
1647         encode_section_info): Update to match target hook specification.
1648         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
1649         (function_prologue, function_epilogue, encode_section_info):
1650         Update to match target hook specification.
1651         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
1652         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
1653         (NOTICE_UPDATE_CC): Cast to void.
1654         * ip2k.md: Add defaults in switch statements.
1655
1656 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1657
1658         * doc/trouble.texi (Interoperation): Update information about C++ ABI
1659         issues.
1660
1661 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1662
1663         * config/sparc/t-netbsd64: Disable multilib for now.
1664
1665 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
1666
1667         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
1668         * target.h (gcc_target): Add have_srodata_section member.
1669         * varasm.c (section_category): Add SECCAT_SRODATA.
1670         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
1671         READONLY_SDATA_SECTION defined.
1672         (decl_readonly_section_1): True for SECCAT_SRODATA also.
1673         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
1674         (default_unique_section_1): Likewise.
1675
1676 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1677
1678         * expr.c (emit_group_load): Revise to allow splitting TCmode source
1679         into DImode pieces.
1680
1681         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
1682         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
1683         for floating-point register class.
1684         * pa.c (function_arg): Fix handling of modes wider than one word for
1685         TARGET_64BIT.
1686
1687 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1688
1689         * combine.c (make_compound_operation): Don't generate zero / sign
1690         extensions in floating point modes.
1691
1692 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1693
1694         * doc/c-tree.texi: Fix overfull hboxes.
1695         * doc/cppopts.texi: Ditto.
1696         * doc/extend.texi: Ditto.
1697         * doc/gty.texi: Ditto.
1698         * doc/invoke.texi: Ditto.
1699         * doc/makefile.texi: Ditto.
1700         * doc/rtl.texi: Ditto.
1701         * doc/standards.texi: Ditto.
1702         * doc/tm.texi: Ditto.
1703
1704 2002-09-04  Richard Henderson  <rth@redhat.com>
1705
1706         * c-common.c (builtin_define_with_hex_fp_value): New.
1707         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
1708
1709 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
1710
1711         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
1712         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
1713         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
1714         Warn that these options can break ABI compatibility.
1715
1716 2002-09-04  Richard Henderson  <rth@redhat.com>
1717
1718         * real.c (ereal_to_decimal): Add digits parameter.
1719         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
1720         * c-pretty-print.c (pp_c_real_literal): Update call.
1721         * print-rtl.c (print_rtx): Likewise.
1722         * print-tree.c (print_node_brief, print_node): Likewise.
1723         * sched-vis.c (print_value): Likewise.
1724         * config/arc/arc.c (arc_print_operand): Likewise.
1725         * config/c4x/c4x.c (c4x_print_operand): Likewise.
1726         * config/i370/i370.h (PRINT_OPERAND): Likewise.
1727         * config/i386/i386.c (print_operand): Likewise.
1728         * config/i960/i960.c (i960_print_operand): Likewise.
1729         * config/ip2k/ip2k.c (asm_output_float): Likewise.
1730         * config/m32r/m32r.c (m32r_print_operand): Likewise.
1731         * config/m68hc11/m68hc11.c (print_operand): Likewise.
1732         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
1733         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1734         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
1735         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1736         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
1737         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1738         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
1739         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1740         * config/mips/mips.c (print_operand): Likewise.
1741         * config/ns32k/ns32k.c (print_operand): Likewise.
1742         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
1743         * config/vax/vax.h (PRINT_OPERAND): Likewise.
1744         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
1745
1746 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
1747
1748         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
1749         xtensa_multibss_section_type_flags.
1750         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
1751
1752 2002-09-04  Richard Henderson  <rth@redhat.com>
1753
1754         * doc/install-old.texi: Don't mention enquire.
1755         * doc/sourcebuild.texi: Update float.h description.
1756
1757 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
1758
1759         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
1760
1761 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
1762
1763         * varasm.c (default_section_type_flags): Append _1 to name with
1764         shlib parameter.  Use original name to call new function with
1765         implicit flag_pic.
1766         (decl_readonly_section): Likewise.
1767         (default_elf_select_section): Likewise.
1768         (default_unique_section): Likewise.
1769         (default_bind_local_p): Likewise.
1770         (categorize_decl_for_section): Add shlib parameter to use in place
1771         of implicit flag_pic.
1772         * output.h: Declare new functions with _1 and shlib argument.
1773
1774 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
1775
1776         * doc/install.texi: Fix typos, formatting problems, and obvious
1777         overfull/underfull boxes.
1778
1779         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
1780         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
1781         include its file, compat.texi.
1782         * doc/compat.texi: New file with new chapter, Binary Compatibility.
1783
1784 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
1785
1786         Debian BTS Bug #157416
1787         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
1788         * cpplib.c (destringize_and_run): Kludge around getting
1789         tokens from in-progress macros.
1790         (_cpp_do__Pragma): Simplify.
1791
1792 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
1793
1794         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
1795         (CPP_CPU_SPEC): Remove.
1796         (TARGET_CPU_CPP_BUILTINS): New.
1797         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
1798         (CPP_SPEC): Remove.
1799         (TARGET_OS_CPP_BUILTINS): New.
1800         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
1801         (TARGET_OS_CPP_BUILTINS): New.
1802         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
1803         TARGET_OS_CPP_BUILTINS.
1804         (CPP_PREDEFINES): Remove.
1805         (CPLUSPLUS_CPP_SPEC): Remove.
1806         (TARGET_OS_CPP_BUILTINS): New.
1807
1808 2002-09-03  Richard Henderson  <rth@redhat.com>
1809
1810         * Makefile.in (USER_H): Add ginclude/float.h.
1811         (FLOAT_H): Remove.
1812         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
1813         (mostlyclean): Don't remove float.h intermediate files.
1814         (distclean): Don't remove float.h.
1815         * config.gcc: Remove all float_format references.
1816         * configure.in (float_format, float_h_file): Remove.
1817
1818         * c-common.c: Include tree-inline.h.
1819         (builtin_define_with_int_value): New.
1820         (builtin_define_type_precision): Use it.
1821         (builtin_define_float_constants): New.
1822         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
1823         __FLT_EVAL_METHOD__.
1824         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
1825         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
1826         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
1827         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
1828         (TARGET_FLT_EVAL_METHOD): New.
1829
1830         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
1831         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
1832         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
1833         * ginclude/float.h: New.
1834
1835 2002-09-03  Stan Shebs  <shebs@apple.com>
1836
1837         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
1838         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
1839         (PREFERRED_DEBUGGING_TYPE): Ditto.
1840         (ASM_OUTPUT_IDENT): Remove empty definition.
1841
1842 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
1843
1844         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
1845         cxx_target.
1846         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
1847         handling routine for builtin pragma.
1848         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
1849         Registered pragma handling routine.
1850         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
1851         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
1852         If builtin pragma seen for math routine and C89 conformance is
1853         requested use different math function in order to set errno.
1854         * t-ia64 (ia64-c.o): Add new rule for new file.
1855
1856 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1857
1858         * config/s390/s390.md ("movti"): Add Q->Q alternative.
1859         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1860         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
1861
1862         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
1863         "*movsf_ss"): Remove.
1864
1865 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1866
1867         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
1868         Delete macros.
1869
1870 2002-09-03   Arati Dikey  <aratid@kpit.com>
1871
1872         * h8300.c (asm_file_start): Corrected optimization comment.
1873
1874 2002-09-03  Stan Shebs  <shebs@apple.com>
1875
1876         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
1877         * c-tree.h (recognize_objc_keyword): Remove decl.
1878         * c-typeck.c (comp_target_types): Update a comment.
1879
1880 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1881
1882         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
1883         and register validity checks.
1884         (general_s_operand): Adapt to s390_decompose_address interface change.
1885         (q_constraint): Likewise.
1886         (s390_expand_plus_operand): Likewise.
1887         (legitimiate_address_p): Likewise.
1888         (legitimate_la_operand_p): Likewise.
1889         (legitimize_la_operand): Likewise.
1890         (print_operand_address): Likewise.
1891         (print_operand): Likewise.
1892
1893 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1894
1895         PR objc/5956:
1896         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
1897         was causing the new selector never to match the existing ones
1898         (Patch by Alexander Malmberg <alexander@malmberg.org>).
1899
1900 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1901
1902         * config/i386/i386.md ("femms"): Add "memory" attr "none".
1903
1904 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1905
1906         * expr.c (expand_expr): Remove extraneous comment and code.
1907
1908 2002-08-31  Richard Henderson  <rth@redhat.com>
1909
1910         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
1911
1912 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1913
1914         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
1915
1916 2002-08-30  Richard Henderson  <rth@redhat.com>
1917
1918         PR opt/7515
1919         * c-objc-common.c: Include target.h.
1920         (c_cannot_inline_tree_fn): Don't auto-inline functions that
1921         don't bind locally.  Factor setting DECL_UNINLINABLE.
1922         * Makefile.in (c-objc-common.o): Update.
1923
1924 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
1925
1926         * doc/install.texi (Configuration, Building): Fix a typo and
1927         some formatting directives.
1928
1929 2002-08-30  Paul Koning <pkoning@equallogic.com>
1930
1931         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
1932         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
1933         implemented" note.
1934         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
1935         for alphabetic order.
1936         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
1937         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
1938         (VAX_HALFWORD_ORDER): Document.
1939         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
1940         IEEE float format.
1941         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
1942         (ASM_OUTPUT_LABEL_REF): Fix font.
1943         (CASE_VECTOR_SHORTEN_MODE): Ditto.
1944
1945 2002-08-30  Denis Chertykov  <denisc@overta.ru>
1946
1947         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
1948         stuff.
1949         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
1950         CONST_DOUBLE constants.
1951
1952 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
1953
1954         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
1955         related defines to...
1956         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
1957         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
1958         as a no-op.
1959
1960 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
1961
1962         * config/arm/arm.c (arm_asm_output_labelref): New function.
1963         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
1964         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
1965
1966 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
1967
1968         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
1969         memory exhausted" workarounds.
1970
1971 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1972
1973         * diagnostic.c (fancy_abort): Don't repeat "internal error".
1974         * toplev.c (crash_signal): Likewise.
1975
1976 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1977
1978         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
1979         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
1980         Extended, updated documentation.
1981         (-Wundeclared-selector): Documented.
1982
1983 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
1984
1985         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
1986         the value 1.  Do not undef before defining.
1987         * config/darwin.h: Likewise.
1988         * config/dbx.h: Likewise.
1989         * config/dbxcoff.h: Likewise.
1990         * config/dbxelf.h: Likewise.
1991         * config/elfos.h: Likewise.
1992         * config/interix.h: Likewise.
1993         * config/lynx-ng.h: Likewise.
1994         * config/lynx.h: Likewise.
1995         * config/netware.h: Likewise.
1996         * config/psos.h: Likewise.
1997         * config/svr3.h: Likewise.
1998         * config/alpha/alpha.h: Likewise.
1999         * config/alpha/elf.h: Likewise.
2000         * config/alpha/vms.h: Likewise.
2001         * config/arc/arc.h: Likewise.
2002         * config/arm/aout.h: Likewise.
2003         * config/arm/coff.h: Likewise.
2004         * config/c4x/c4x.h: Likewise.
2005         * config/h8300/h8300.h: Likewise.
2006         * config/i386/cygwin.h: Likewise.
2007         * config/i386/djgpp.h: Likewise.
2008         * config/i386/gas.h: Likewise.
2009         * config/i386/gstabs.h: Likewise.
2010         * config/i386/i386-coff.h: Likewise.
2011         * config/i386/i386-interix.h: Likewise.
2012         * config/i386/sco5.h: Likewise.
2013         * config/i386/svr3dbx.h: Likewise.
2014         * config/i386/sysv3.h: Likewise.
2015         * config/i386/win32.h: Likewise.
2016         * config/i386/x86-64.h: Likewise.
2017         * config/i960/i960.h: Likewise.
2018         * config/ia64/ia64.h: Likewise.
2019         * config/ip2k/ip2k.h: Likewise.
2020         * config/m32r/m32r.h: Likewise.
2021         * config/m68k/3b1.h: Likewise.
2022         * config/m68k/3b1g.h: Likewise.
2023         * config/m68k/ccur-GAS.h: Likewise.
2024         * config/m68k/coff.h: Likewise.
2025         * config/m68k/hp2bsd.h: Likewise.
2026         * config/m68k/hp310g.h: Likewise.
2027         * config/m68k/hp320g.h: Likewise.
2028         * config/m68k/hp3bsd.h: Likewise.
2029         * config/m68k/hp3bsd44.h: Likewise.
2030         * config/m68k/linux-aout.h: Likewise.
2031         * config/m68k/m68k-aout.h: Likewise.
2032         * config/m68k/mot3300.h: Likewise.
2033         * config/m68k/netbsd.h: Likewise.
2034         * config/m68k/openbsd.h: Likewise.
2035         * config/m68k/pbb.h: Likewise.
2036         * config/m68k/plexus.h: Likewise.
2037         * config/m68k/sun2.h: Likewise.
2038         * config/m68k/sun3.h: Likewise.
2039         * config/m68k/tower-as.h: Likewise.
2040         * config/m68k/vxm68k.h: Likewise.
2041         * config/m88k/aout-dbx.h: Likewise.
2042         * config/m88k/m88k-aout.h: Likewise.
2043         * config/mcore/mcore-elf.h: Likewise.
2044         * config/mcore/mcore-pe.h: Likewise.
2045         * config/mips/elf.h: Likewise.
2046         * config/mips/elf64.h: Likewise.
2047         * config/mips/iris5gas.h: Likewise.
2048         * config/mips/iris6.h: Likewise.
2049         * config/mips/mips.h: Likewise.
2050         * config/mips/sni-gas.h: Likewise.
2051         * config/mmix/mmix.h: Likewise.
2052         * config/ns32k/netbsd.h: Likewise.
2053         * config/pa/pa64-hpux.h: Likewise.
2054         * config/romp/romp.h: Likewise.
2055         * config/rs6000/sysv4.h: Likewise.
2056         * config/rs6000/xcoff.h: Likewise.
2057         * config/sh/coff.h: Likewise.
2058         * config/sh/elf.h: Likewise.
2059         * config/sparc/linux64.h: Likewise.
2060         * config/sparc/liteelf.h: Likewise.
2061         * config/sparc/netbsd.h: Likewise.
2062         * config/sparc/openbsd.h: Likewise.
2063         * config/sparc/pbd.h: Likewise.
2064         * config/sparc/sp64-elf.h: Likewise.
2065         * config/sparc/sp86x-elf.h: Likewise.
2066         * config/sparc/sparc.h: Likewise.
2067         * config/vax/vax.h: Likewise.
2068         * config/vax/vaxv.h: Likewise.
2069
2070 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
2071
2072         * h8300.c (shift_alg_hi): Various tweaks to improve performance
2073         of HImode shifts.
2074         (get_shift_alg): Corresponding changes.
2075
2076 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2077
2078         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2079
2080 2002-08-29  Richard Henderson  <rth@redhat.com>
2081
2082         * expr.h (enum block_op_methods): New.
2083         (emit_block_move): Update prototype.
2084         * expr.c (block_move_libcall_safe_for_call_parm): New.
2085         (emit_block_move_via_loop): New.
2086         (emit_block_move): Use them.  New argument METHOD.
2087         (emit_push_insn): Always respect the given alignment.
2088         (expand_assignment): Update call to emit_block_move.
2089         (store_expr, store_field, expand_expr): Likewise.
2090         * builtins.c (expand_builtin_apply): Likewise.
2091         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2092         * function.c (expand_function_end): Likewise.
2093         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2094         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2095         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2096         (save_fixed_argument_area): Use emit_block_move with
2097         BLOCK_OP_CALL_PARM instead of move_by_pieces.
2098         (restore_fixed_argument_area): Likewise.
2099         (store_one_arg): Fix alignment parameter to emit_push_insn.
2100
2101 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2102
2103         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2104
2105 2002-08-29  Catherine Moore  <clm@redhat.com>
2106
2107         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2108         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2109         (PREDICATE_CODES): Include new predicates.
2110         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
2111         (TARGET_SWITCHES):  Add strict-align.
2112         (TARGET_STRICT_ALIGN): New.
2113         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
2114         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2115         Define.
2116         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
2117         v850_muldi3.
2118         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
2119         L_callt_save_r2_r31, L_return_r2_r31,
2120         L_save_all_interrupt): Change addi to add.
2121         (L_save_interrupt, L_return_interrupt): Rework.
2122         (__return_r31):  Correct .size directive.
2123         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
2124         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
2125         New routines.
2126         * config/v850/v850.c (expand_prologue): Call
2127         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
2128         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
2129         (reg_or_int9_operand): New predicate.
2130         (reg_or_const_operand): New routine.
2131         * config/v850/v850.md (return_interrupt): Changed from
2132         restore_interrupt.
2133         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
2134         (callt_save_interrupt): Change save sequence.
2135         (callt_return_interrupt): New.
2136         (save_interrupt): Don't use runtime function for LONG_CALLS
2137         and TARGET_PROLOG_FUNCTION.
2138         (save_all_interrupt): Likewise.
2139         (mulsi3): Use new predicate.
2140         (moviscc): Disallow some combination of constants.
2141         Fix define_split for sasf insns, so that it will not generate bad
2142         code if operand0 and operand5 are the same.
2143         * config/v850/v850-protos.h: Prototype new predicates.
2144
2145 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2146
2147         * c-common.c (builtin_define_type_precision): New function.
2148         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
2149         wchar_t is unsigned in C++.
2150         * doc/cpp.texi (Common Predefined Macros): Document
2151         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
2152         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
2153         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
2154
2155 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
2156
2157         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
2158         section.  Mention that it is enabled by -Wall.
2159         (-Wall): Mention that there can be language-specific warnings as well.
2160         (-Wctor-dtor-privacy): Mention that it is enabled by default.
2161         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
2162
2163 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
2164
2165         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
2166         if it is ever live.
2167
2168         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
2169         attribute for SHCOMPACT.
2170
2171         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
2172         appropriately.
2173         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
2174         by the ABI.
2175
2176         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
2177
2178 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
2179
2180         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
2181         "MASK_GAS|MASK_ABICALLS".
2182         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
2183         (TARGET_DEFAULT): Remove.
2184         (MACHINE_TYPE): Undefine before defining.
2185         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
2186
2187 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
2188
2189         * c-common.c (warn_abi): New variable.
2190         * c-common.h (warn_abi): Likewise.
2191         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
2192         (c_common_decode_option): Handle it.
2193         * doc/invoke.texi: Document -Wabi.
2194
2195 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2196
2197         * c-common.c (warn_undeclared_selector): New variable.
2198         * c-common.h (warn_undeclared_selector): Idem.
2199         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
2200         to on when -Wundeclared-selector is found.
2201         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
2202         * objc/objc-act.c (build_selector_expr): If
2203         warn_undeclared_selector is set, check that the selector has
2204         already been defined, and emit a warning if not.
2205
2206 2002-08-27  Nick Clifton  <nickc@redhat.com>
2207             Catherine Moore  <clm@redhat.com>
2208             Jim Wilson  <wilson@cygnus.com>
2209
2210         * config.gcc: Add v850e-*-* target.
2211         Add --with-cpu= support for v850.
2212         * config/v850/lib1funcs.asm: Add v850e callt functions.
2213         * config/v850/v850.h: Add support for v850e target.
2214         * config/v850/v850.c: Add functions to support v850e target.
2215         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
2216         * config/v850/v850.md: Add patterns for v850e instructions.
2217         * doc/invoke.texi: Document new v850e command line switches.
2218
2219 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
2220                           Aldy Hernandez <aldyh at redhat dot com>
2221
2222         * doc/tm.texi: Applied numerous fixes to the automaton based
2223         scheduler descrition.
2224
2225 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
2226
2227         * i386.c (classify_argument): Handle variable sized objects.
2228
2229 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
2230
2231         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
2232
2233 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
2234
2235         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
2236
2237 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2238
2239         * i386.c (classify_argument): Properly compute word size of the analyzed object.
2240
2241 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
2242
2243         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
2244         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
2245         accordingly.
2246         (attribute insn_class): Provide default definitions based on type.
2247         Remove all insn-specific settings.
2248         (various function units): Remove old SH4 scheduling.
2249         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
2250         New attributes.  Set them where appropriate.
2251         (cpu unit FS): Don't define / use.
2252         (F3, load_store): New cpu units.
2253         (F01): New reservation.
2254         (all insn_reservations): Make dependent on sh4 pipeline model.
2255         Fix latencies.
2256         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
2257         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
2258         (mt insn_reservation): Use type mt_group.
2259         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
2260         sh4_fload and sh4_store.
2261         (insn_reservation branch_zero and branch): Replace with sh4_branch.
2262         (insn_reservation branch_far): Replace with sh4_return.
2263         (insn_reservation return_from_exp): Rename to:
2264         (sh4_return_from_exp).  Change to be just d_lock*5.
2265         (insn_reservation lds_to_pr): Rename to:
2266         (sh4_lds_to_pr).  Change to be just d_lock*2.
2267         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
2268         d_lock*2.
2269         (insn_reservation prload_mem): Rename to:
2270         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
2271         (insn_reservation fpscr_store): Rename to:
2272         (fpscr_load).  Change to d_lock,nothing,F1*3.
2273         (insn_reservation fpscr_store_mem): Rename to:
2274         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
2275         (insn_reservation multi): Change to
2276         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
2277         (insn_reservation fp_arith): Change to issue,F01,F2.
2278         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
2279         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
2280         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
2281         (insn_reservation fp_double_cmp): Change to
2282         d_lock,(d_lock+F01),F1+F2,F2.
2283         (insn_reservation dp_div): Change to
2284         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
2285         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2286         (sh_adjust_cost, SHcompact): Differentiate between different
2287         kinds of dependencies.  Drop factor of ten for superscalar.
2288         Use new instruction types.  Add new exception rules.
2289
2290         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2291
2292         * sh.md (mperm_w): Add DONE.
2293
2294 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
2295
2296         * longlong.h: Import current PowerPC defintion from GMP-4.1.
2297
2298         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2299
2300         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2301
2302 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2303
2304         * sh.h (MAX_FIXED_MODE_SIZE): Define.
2305
2306 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
2307
2308         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2309         delimiter.
2310
2311 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2312
2313         * c-common.c (cpp_define_data_format): New function.
2314         (cb_register_builtins): Call it.
2315
2316         * doc/cpp.texi (Common Predefined Macros): Document
2317         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
2318         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
2319         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
2320         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
2321         __TARGET_USES_VAX_H_FLOAT__.
2322
2323 2002-08-26  Ziemowit Laski <zlaski@apple.com>
2324
2325         * objc/objc-act.c (get_super_receiver): If inside a class method
2326         of a category, cast the receiver to 'id' before accessing the 'isa'
2327         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
2328
2329 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2330
2331         * config/s390/s390-protos.h (s390_function_prologue,
2332         s390_function_epilogue): Remove.
2333         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
2334         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2335
2336         config/s390/s390.c (s390_machine_dependent_recorg): New function.
2337         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
2338         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
2339         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
2340         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
2341
2342         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
2343         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
2344         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
2345         function is not a leaf function.  Use save_gprs and restore_gprs.
2346         (s390_emit_epilogue): Likewise.
2347         (save_gprs, restore_gprs): New functions.
2348         (struct s390_frame): Remove return_reg_saved_p member.
2349         (save_fprs_p): Remove.
2350         (s390_optimize_prolog): New function.
2351         (s390_legitimate_reload_constant): Remove now unnecessary check.
2352
2353         (s390_function_count): Remove.
2354         (s390_output_symbolic_const): Replace s390_function_count by
2355         current_function_funcdef_no.
2356         (s390_output_constant_pool): Likewise.
2357
2358         (legitimize_pic_address): Use regs_ever_live to track PIC register
2359         instead of current_function_uses_pic_offset_table.
2360         (s390_emit_prologue): Likewise.
2361         config/s390/s390.md ("call", "call_value"): Likewise.
2362
2363 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
2364
2365         * c-opts.c (find_opt): Don't complain about wrong languages
2366         here.  Return exact matches even for wrong language.
2367         (c_common_decode_option): Complain about wrong languages
2368         here.
2369
2370 2002-08-24  Stuart Hastings  <stuart@apple.com>
2371
2372         * function.h (struct function): Add flag
2373         all_throwers_are_sibcalls.
2374         * except.c (set_nothrow_function_flags): Replaces
2375         nothrow_function_p. Set new flag.
2376         * except.h (set_nothrow_function_flags): Replaces
2377         nothrow_function_p.
2378         * dwarf2out.c (struct dw_fde_struct): Add flag
2379         all_throwers_are_sibcalls.
2380         (output_call_frame_info): Test it.
2381         (dwarf2out_begin_prologue) Propagate it from cfun to
2382         dw_fde_struct.
2383         * toplev.c (rest_of_compilation): Update calls to
2384         nothrow_function_p.
2385
2386 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
2387
2388         * ggc-page.c (compute_inverse): Short circuit calculation for
2389         object sizes larger than half a page.
2390
2391 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
2392
2393         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
2394         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
2395         default.
2396         (rs6000_elf_unique_section): Likewise.
2397
2398 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2399
2400         * ns32k.c (ns32k_globalize_label): Delete.
2401         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
2402
2403 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
2404
2405         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
2406         for loading delta with num_insns_constant_wide.  Calculate
2407         delta_low, delta_high without using a conditional.
2408
2409 2002-08-22  Jason Merrill  <jason@redhat.com>
2410
2411         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
2412         * c-common.def: Adjust.
2413         * c-dump.c (c_dump_tree): Adjust.
2414         * c-semantics.c (genrtl_return_stmt): Adjust.
2415         * c-pretty-print.c (pp_c_statement): Adjust.
2416         * tree-inline.c (copy_body_r): Adjust.
2417
2418 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
2419
2420         * ggc-page.c: Avoid division in ggc_set_mark.
2421         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
2422         compute_inverse): New.
2423         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
2424         (init_ggc): Initialize inverse_table.
2425
2426 2002-08-22  Tom Tromey  <tromey@redhat.com>
2427
2428         * doc/install.texi (Configuration): Document --datadir.
2429
2430 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
2431
2432         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
2433
2434 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
2435
2436         * gengtype-lex.l (ID): Allow underscore as first character.
2437
2438 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
2439
2440         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
2441         function.
2442         (rs6000_xcoff_asm_named_section): Rename.
2443         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2444
2445 2002-08-21  Tom Tromey  <tromey@redhat.com>
2446
2447         For PR java/6005 and PR java/7611:
2448         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
2449         (fold): Likewise.
2450         * langhooks.c (lhd_can_use_bit_fields_p): New function.
2451         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
2452         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
2453         (LANG_HOOKS_INITIALIZER): Use it.
2454         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
2455         field.
2456
2457 2002-08-21  Stan Shebs  <shebs@apple.com>
2458
2459         * tree.c (finish_vector_type): Fix a typo in a comment.
2460         * Makefile.in: Fix "the the" stutters in comments.
2461         * genautomata.c: Ditto.
2462         * ifcvt.c: Ditto.
2463         * regrename.c: Ditto.
2464         * config/alpha/alpha.c: Ditto.
2465         * config/alpha/vms-crt0-64.c: Ditto.
2466         * config/alpha/vms-crt0.c: Ditto.
2467         * config/alpha/vms-psxcrt0-64.c: Ditto.
2468         * config/alpha/vms-psxcrt0.c: Ditto.
2469         * config/d30v/d30v.h: Ditto.
2470         * config/fr30/fr30.h: Ditto.
2471         * config/rs6000/rs6000.c: Ditto.
2472         * config/stormy16/stormy16.h: Ditto.
2473         * doc/md.texi: Ditto.
2474
2475 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2476
2477         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
2478
2479 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2480
2481         * c-decl.c (grokdeclarator): Make invalid combinations with long,
2482         short, signed or unsigned into hard errors.  Fixes PR c/4319.
2483         Also make duplicate modifiers such as "short short" into hard
2484         errors.
2485
2486 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
2487             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2488
2489         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
2490         to the actual end.  Add '@end table' and '@table @code'.
2491
2492 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
2493
2494         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
2495
2496         * unroll.c (biv_total_increment): Don't try to compute the total
2497         increment for FP BIVs.
2498
2499 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2500
2501         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
2502         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
2503         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2504         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
2505         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
2506         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
2507         (GLOBAL_ASM_OP): Define.
2508         * arm.c (aof_globalize_label): New function.
2509         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
2510         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2511         * c4x.c (c4x_globalize_label): New function.
2512         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
2513         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
2514         (GLOBAL_ASM_OP): Define.
2515         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2516         * darwin-protos.h (darwin_globalize_label): Declare.
2517         * darwin.c (darwin_globalize_label): New function.
2518         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
2519         (ASM_GLOBALIZE_LABEL): Delete.
2520         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
2521         * dsp16xx.c (asm_output_common): Use target hook.
2522         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2523         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
2524         (GLOBAL_ASM_OP): Define.
2525         * i370.c (i370_globalize_label): New function.
2526         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
2527         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
2528         * i386.c (ix86_asm_file_end): Use target hook.
2529         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
2530         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2531         * ia64.c (ia64_asm_output_external): Likewise.
2532         * ia64/sysv4.h: Update comment.
2533         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2534         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2535         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
2536         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2537         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
2538         * mmix-protos.h (mmix_asm_globalize_label): Delete.
2539         * mmix.c (mmix_asm_globalize_label): Likewise.
2540         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
2541         (GLOBAL_ASM_OP): Define.
2542         * ns32k.c (ns32k_globalize_label): New function.
2543         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
2544         (ASM_GLOBALIZE_LABEL): Delete.
2545         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
2546         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
2547         * pa.c (pa_globalize_label): New function.
2548         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
2549         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
2550         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
2551         (GLOBAL_ASM_OP): Define.
2552         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
2553         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2554         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
2555         (GLOBAL_ASM_OP): Define.
2556         * v850.c (v850_output_aligned_bss): Use target hook.
2557         * vax.c (vms_globalize_label): New function.
2558         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
2559         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
2560         (GLOBAL_ASM_OP): Define.
2561         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
2562         * doc/tm.texi: Update docs.
2563         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
2564         target hook.
2565         * final.c (output_alternate_entry_point): Likewise.
2566         * hooks.c (hook_FILEptr_constcharptr_void): New function.
2567         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
2568         * output.h (assemble_global): Delete.
2569         (default_globalize_label): Declare.
2570         * system.h (ASM_GLOBALIZE_LABEL): Poison.
2571         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2572         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
2573         * target.h (gcc_target): Add globalize_label member.
2574         * varasm.c (asm_output_bss, asm_output_aligned_bss,
2575         globalize_decl): Use target hook.
2576         (assemble_global): Delete.
2577         (default_globalize_label): New function.
2578
2579 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2580
2581         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
2582
2583 2002-08-20  Devang Patel  <dpatel@apple.com>
2584         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
2585
2586 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2587
2588         * arc.c (output_shift): Use stdio instead of asm_fprintf.
2589         * arm.c (thumb_output_function_prologue): Likewise.
2590         * avr.c (print_operand): Likewise.
2591         * c4x.c (c4x_print_operand): Likewise.
2592         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
2593         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
2594         * cris.c (cris_target_asm_function_prologue,
2595         cris_asm_output_mi_thunk): Likewise.
2596         * h8300.c (print_operand): Likewise.
2597         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2598         * ip2k.c (print_operand): Likewise.  Fix format specifier.
2599         * m68hc11.c (asm_print_register, print_operand,
2600         print_operand_address): Use stdio instead of asm_fprintf.
2601         (print_operand_address): Fix format specifier.
2602         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
2603         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
2604         asm_fprintf.
2605         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2606         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2607         * m68k.c (m68k_output_function_prologue,
2608         m68k_output_function_epilogue, print_operand): Likewise.
2609         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
2610         Likewise.  Fix format specifier.
2611         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2612         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2613         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2614
2615 2002-08-15  Eric Christopher  <echristo@redhat.com>
2616             Jeff Knaggs  <jknaggs@redhat.com>
2617
2618         * config.gcc (mipsisa64sr71k-elf): New target.
2619         * config/mips/sr71k.md: New file.
2620         * config/mips/mips.md: Use it.
2621         (rot*): Add sr71k specifics.
2622         * config/mips/t-sr71k: New file.
2623         * config/mips/mips.h (sr71k): New cpu.
2624         (TARGET_SR71K): Use it.
2625         (TUNE_SR71K): Ditto.
2626         (GENERATE_BRANCHLIKELY): Ditto.
2627         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
2628         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
2629         * config/mips/mips.c (sr71k): New cpu.
2630         (mips_use_dfa_pipeline_interface): Use.
2631
2632 2002-08-15  Eric Christopher  <echristo@redhat.com>
2633             Richard Sandiford <rsandifo@redhat.com>
2634             Aldy Hernandez  <aldyh@redhat.com>
2635             Graham Stott    <grahams@redhat.com>
2636             Michael Meissner  <meissner@redhat.com>
2637             Gavin Romig-Koch  <gavin@redhat.com>
2638             Ken Raeburn  <raeburn@cygnus.com>
2639             Alexandre Oliva <aoliva@redhat.com>
2640
2641         * config.gcc (mips64vr-elf): New target.
2642         * config/mips/5400.md: New file.
2643         * config/mips/5500.md: Ditto.
2644         * config/mips/mips.md: Use them.
2645         (frsqrt): New.
2646         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
2647         cpus.
2648         (mips_issue_rate): Use them.
2649         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
2650         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
2651         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
2652         cpus.
2653         (TARGET_MIPSx): Use them.
2654         (TUNE_MIPSx): Ditto.
2655         (GETNATE_MULT3_SI): Ditto.
2656         (ISA_HAS_BRANCHLIKELY): Ditto.
2657         (ISA_HAS_CONDMOVE): Ditto.
2658         (ISA_HAS_NMADD_NMSUB): Ditto.
2659         (ISA_HAS_MULHI): New. Ditto.
2660         (ISA_HAS_MULS): Ditto.
2661         (ISA_HAS_MSAC): Ditto.
2662         (ISA_HAS_MACC): Ditto.
2663         (ISA_HAS_ROTR_SI): Ditto.
2664         (ISA_HAS_ROTR_DI): Ditto.
2665         (RTX_COSTS): Use.
2666
2667 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2668
2669         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
2670         at head.
2671         (remove_dup_nonsys_dirs): New function.
2672         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
2673         (merge_include_chains): Remove non-system include directories from
2674         quote and bracket include chains when they duplicate equivalent system
2675         directories.
2676         * doc/cpp.texi (-I): Update.
2677         * doc/cppopts.texi (-I): Update.
2678         * doc/install.texi (--with-local-prefix): Further document usage of
2679         this option.
2680         * doc/invoke.texi (-I): Update.
2681
2682 2002-08-20  Richard Henderson  <rth@redhat.com>
2683
2684         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
2685         (emit_block_move): Split out subroutines.
2686         (emit_block_move_via_movstr): New.
2687         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
2688         (emit_block_move_libcall_fn): New.  Construct function prototype for
2689         bcopy as well.
2690         (clear_storage): Split out subroutines.
2691         (clear_storage_via_clrstr): New.
2692         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
2693         (clear_storage_libcall_fn): New.  Construct function prototype for
2694         bzero as well.
2695         (emit_push_insn): Use emit_block_move.
2696         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
2697         (store_constructor): Likewise.
2698
2699 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
2700
2701         * objc/objc-act.c (building_objc_message_expr): Rename to
2702         current_objc_message_selector.
2703
2704 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
2705
2706         * objc/objc-act.c (build_ivar_chain): Remove.
2707         (objc_copy_list): Likewise.
2708         (get_class_ivars): Inline call to removed build_ivar_chain
2709         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
2710         slot; use that slot (rather than CLASS_IVARS) when accessing
2711         ivars for base classes.  Call copy_list and chainon instead of
2712         objc_copy_list.
2713         (build_private_template): Call get_class_ivars instead of
2714         build_ivar_chain.
2715         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
2716         (continue_class): Call get_class_ivars instead of
2717         build_ivar_chain.
2718         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
2719         of DECL_BIT_FIELD (which may have been cleared).
2720         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
2721
2722 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2723
2724         * genautomata.c (output_translate_vect, output_state_ainsn_table,
2725         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
2726         in output file.
2727         (output_internal_min_issue_delay_func): Initialize variable in
2728         output file.
2729
2730 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
2731
2732         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
2733         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
2734
2735 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
2736             Steve Ellcey  <sje@cup.hp.com>
2737
2738         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
2739         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
2740         * explow.c (trunc_int_for_mode): Abort when the mode is not
2741         a scaler integer mode.
2742         * combine.c (expand_compound_operation): Don't expand Vector
2743         or Complex modes into shifts.
2744         (expand_field_assignment): Don't do bitwise arithmatic and
2745         shifts on Vector or Complex modes.
2746         (simplify_comparison): Don't call trunc_int_for_mode
2747         for VOIDmode.
2748         * recog.c (general_operand): Likewise.
2749         (immediate_operand): Likewise.
2750         (nonmemory_operand): Likewise.
2751
2752 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
2753
2754         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
2755         multi-instruction SImode constant.  Add REG_EQUAL note.
2756         * config/rs6000/rs6000.md (movsi splitter): Use
2757         rs6000_emit_set_const.
2758
2759 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2760
2761         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
2762         the macro test controlling its use.
2763
2764 2002-08-18  H.J. Lu  (hjl@gnu.org)
2765
2766         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
2767         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
2768         gnu_ld=yes.
2769         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
2770         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
2771         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
2772         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
2773         here.
2774         (cris-*-linux*): Remove setting thread_file here.
2775
2776 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
2777
2778         PR preprocessor/7602
2779         * cppinit.c (path_include): Treat the system environment
2780         variables as being cxx_aware.
2781
2782 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2783
2784         * c-decl.c (flexible_array_type_p): New function.
2785         (grokdeclarator, finish_struct): Use it.
2786         * doc/extend.texi: Document constraints on use of structures with
2787         flexible array members.
2788
2789 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
2790
2791         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
2792         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
2793         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
2794
2795 2002-08-16  Stan Shebs  <shebs@apple.com>
2796
2797         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
2798         for ObjC with -fnext-runtime.
2799         * doc/cpp.texi: Document it.
2800
2801 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
2802
2803         * doc/install.texi (Final installation): Replace links to individual
2804         build status pages with a link to a common page that lists them all.
2805
2806 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
2807
2808         * doc/invoke.texi: Fix typo.
2809
2810 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
2811
2812         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
2813
2814 2002-08-16  Andrew Haley  <aph@redhat.com>
2815
2816         * tree-inline.c: Add includes for Java inliner.
2817         (remap_decl): Don't handle anonymous types for Java.
2818         (remap_block): Add handling for Java trees.
2819         (copy_scope_stmt): Conditionalize for non-Java use only.
2820         (copy_body_r): Handle Java trees.  Add handling for
2821         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
2822         (initialize_inlined_parameters):  Handle Java trees.
2823         (declare_return_variable): Likewise.
2824         (expand_call_inline): Handle Java trees.
2825         (walk_tree): Likewise.
2826         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
2827         (add_stmt_to_compound): New function.
2828
2829 2002-08-15  Richard Henderson  <rth@redhat.com>
2830
2831         * Makefile.in (LOOSE_WARN): Remove -fno-common.
2832         (NOCOMMON_FLAG): New substitution point.
2833         (GCC_WARN_CFLAGS): Include it.
2834         * configure.in (ac_checking): Set nocommon_flag.
2835         (nocommon_flag): New substitution point.
2836
2837 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
2838
2839         * c-tree.h (skip_evaluation): Move declaration...
2840         * c-common.h: ... here.
2841         * c-typeck.c (build_external_ref): Don't assemble_external nor
2842         mark a tree as used if skip_evaluation is set.
2843         * c-parse.in (typeof): New non-terminal to set skip_evaluation
2844         around TYPEOF.
2845         (typespec_nonreserved_nonattr): Use it.
2846
2847 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
2848
2849         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
2850         (xcoff_debug_hooks): Update end_prologue.
2851         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
2852         * debug.h (end_prologue): Add file arg.
2853         (end_epilogue): Add line and file args.
2854         (dwarf2out_end_epilogue): Add line and file args.
2855         (vmsdbgout_after_prologue): Remove.
2856         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
2857         (dwarf2_debug_hooks): Update end_prologue.
2858         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
2859         (dwarfout_end_prologue): Add file arg.
2860         * final.c (vmsdbgout_after_prologue): Remove
2861         (final_end_function): Update end_epilogue call.
2862         (final_scan_insn): Update end_prologue call.
2863         * sdbout.c (sdbout_end_epilogue): Add line and file args.
2864         (sdbout_end_prologue): Add file arg.
2865         (sdb_debug_hooks): Update end_prologue.
2866         (sdb_begin_prologue): Update sdbout_end_prologue call.
2867         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
2868         vmsdbgout_end_function.
2869         (vmsdbgout_end_prologue): New function renamed from
2870         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
2871         (vmsdbgout_end_function): New function.
2872         (vmsdbgout_end_epilogue): Add line and file args. Call
2873         vmsdbgout_source_line.
2874         (write_pclines): Write only valid line numbers.
2875         (write_srccorr): Don't write source correlation records if 0 lines.
2876         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
2877
2878 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
2879
2880         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
2881         (_Unwind_Internal_Ptr): 32 bit version for use in
2882         read_encoded_value_with_base.
2883         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
2884         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
2885         right size.
2886
2887 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2888
2889         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
2890         signed/unsigned warnings.
2891
2892         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
2893         record_reg_classes): Likewise.
2894
2895         * reload.c (reload_inner_reg_of_subreg, push_reload,
2896         find_reloads_address_1): Likewise.
2897
2898 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
2899
2900         * rs6000.c (output_mi_thunk): Return to function section on
2901         TARGET_ELF.
2902
2903         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2904
2905 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
2906
2907         * config/s390/s390.c (legitimize_address): Optimize loading
2908         of large displacements.
2909
2910 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
2911
2912         * config/alpha/alpha-protos.h: Update.
2913
2914         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
2915         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
2916         (alpha_linkage_symbol_p): New static function.
2917         (print_operand_address): Print linkage operand.
2918
2919         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
2920         variables.
2921         (reloc_kind): New enum.
2922         (struct alpha_funcs): New struct.
2923         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
2924
2925         (alpha_need_linkage): Rewrite.
2926         (alpha_use_linkage): New global function.
2927         (alpha_write_linkage): Rewrite and make static.
2928         (alpha_write_one_linkage): Rewrite
2929
2930         (alpha_start_function): Remove procedure descriptor output.
2931         (alpha_end_function): Write linkages at end of each function.
2932
2933         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
2934         (call_vms_1, call_value_vms_1): Rewrite.
2935
2936         * config/alpha/vms.h (ASM_FILE_END): Remove.
2937
2938 2002-08-14  Richard Henderson  <rth@redhat.com>
2939
2940         * ggc-page.c (RTL_SIZE): New.
2941         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
2942         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
2943
2944 2002-08-14  Richard Henderson  <rth@redhat.com>
2945
2946         * calls.c: Include target.h.
2947         * Makefile.in (calls.o): Update.
2948
2949         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
2950         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2951
2952 2002-08-14  Richard Henderson  <rth@redhat.com>
2953
2954         * Makefile.in (LOOSE_WARN): Add -fno-common.
2955         * c-common.h (constant_string_class_name): Add missing extern.
2956
2957 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
2958
2959         PR preprocessor/7358
2960         * c-opts.c (check_deps_environment_vars): Ignore main file
2961         for SUNPRO_DEPENDENCIES.
2962         * cppfiles.c (stack_include_file): Ignore main file if
2963         appropriate.
2964         * cpplib.h (struct cpp_options): New member in deps.
2965         * doc/cppenv.texi: Update.
2966
2967 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2968
2969         PR preprocessor/7526
2970         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
2971
2972 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2973
2974         * doc/invoke.texi (-a): Remove documentation.
2975         (-fprofile-arcs): Remove reference to -a, -ax options.
2976         * doc/gcov.texi (Gcov Data Files): Data might be merged.
2977
2978 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2979
2980         Fix PR/7566
2981         * c-semantics.c (genrtl_case_label): Don't (mis)use
2982         warning_with_decl.
2983
2984 2002-08-14  Dale Johannesen  <dalej@apple.com>
2985
2986         * explow.c (emit_stack_restore):  Emit memory clobbers
2987         preceding the stack pop, to prevent the scheduler from
2988         moving refs to variable arrays below this pop.
2989         * reload1.c (reload):  Preserve these clobbers for sched2.
2990         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
2991
2992 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2993
2994         * c-opts.c (c_common_post_options): Correct test.
2995
2996 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2997
2998         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
2999         order in call to fprintf.
3000
3001 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3002
3003         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
3004
3005 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3006
3007         * reload.c (find_reloads): Handle constraint letters marked by
3008         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
3009         (alternative_allows_memconst): Likewise.
3010         * reload1.c (maybe_fix_stack_asms): Likewise.
3011         * recog.c (asm_operand_ok, preprocess_constraints,
3012         constrain_operands): Likewise.
3013         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3014         * local-alloc.c (block_alloc, requires_inout): Likewise.
3015         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3016
3017         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
3018         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3019         * doc/tm.texi: Document these two new target macros.
3020
3021         * config/s390/s390.c (s390_expand_plus_operand): Accept already
3022         valid operands.
3023         (q_constraint): New function.
3024         config/s390/s390-protos.h (q_constraint): Declare it.
3025         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
3026         (EXTRA_MEMORY_CONSTRAINT): New macro.
3027
3028         * config/s390/s390.md: Throughout the machine description,
3029         replace all instances of the constraint combinations 'Qo'
3030         or 'oQ' with simply 'Q'.
3031
3032 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3033
3034         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
3035         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
3036         (LIBGCC2_CFLAGS): Compile with -mrelax.
3037
3038 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3039
3040         * doc/invoke.texi: Document -minmax for 68HC12.
3041
3042         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
3043         ("uminqi3"): Likewise.
3044         ("uminhi3", "umaxhi3"): Likewise.
3045
3046         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
3047         (TARGET_MIN_MAX): Define.
3048         (TARGET_SWITCHES): New option -minmax/-mnominmax.
3049
3050 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3051
3052         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
3053         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
3054
3055         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
3056         (ret, declare, farsym): New gas macros.
3057         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
3058         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
3059         and declare the symbol far when compiled with -mlong-calls.
3060         (__far_trampoline): New for 68HC12 trampoline code to invoke a
3061         far handler using jsr/bsr.
3062
3063         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
3064         (jsr): New macro to transform a 'jsr' into a 'call'.
3065
3066 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3067
3068         * doc/invoke.texi: Document -mlong-calls for 68HC12.
3069
3070         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
3071         -mlong-calls is specified.
3072         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
3073         assembler directives.
3074         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
3075         (TARGET_SWITCHES): Add -mlong-calls options.
3076         (current_function_far): Declare.
3077
3078         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3079         into account the page register saved on the stack.
3080         (m68hc11_override_options): Take into account -mlong-calls option.
3081         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3082
3083         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3084         if the function is going to be in 68HC12 banked memory (-mlong-calls).
3085         ("*return_16bit"): Likewise.
3086         ("*return_void"): Likewise.
3087         ("call", "call_value"): Use call for a far function call.
3088
3089 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3090
3091         * toplev.c (parse_options_and_default_flags): Don't call
3092         post_options here.
3093         (general_init): Initialize GC, pools and tree hash here,
3094         instead of lang_independent_init.
3095         (lang_independent_init): Rename backend_init.
3096         (do_compile): Call post_options hook; exit early if there
3097         have been errors after switch processing.
3098         (toplev_main): Update.
3099
3100 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3101
3102         * c-pretty-print.h: Guard against multiple inclusion.
3103         Robustify macros.
3104         (pp_c_attributes): Declare.
3105         * c-pretty-print.c (pp_c_attributes): New function.
3106
3107 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3108
3109         * m68k.c (m68k_output_function_prologue,
3110         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
3111         and NEWS/MOTOROLA.
3112         * genattrtab.c: Remove dpx2 comment.
3113         * libgcc2.c (__enable_execute_stack): Delete versions for
3114         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
3115         sony_news/SYSTYPE_BSD.
3116         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
3117         __gmicro__, __i860__, __NeXT__ and __pyr__.
3118         * rtl.h: Remove convex comment.
3119         * varasm.c: Likewise.
3120
3121 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3122
3123         * c-opts.c (lang_flags): Const-ify.
3124         * ra-build.c (undef_table): Likewise.
3125         * ra.c (eliminables): Likewise.
3126
3127 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3128
3129         * tree.h: Guard against multiple inclusion.
3130
3131 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
3132
3133         * reload1.c (reload_cse_simplify): Before checking
3134         REG_FUNCTION_VALUE_P, check REG_P.
3135
3136 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
3137
3138         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
3139
3140 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3141
3142         * c-opts.c (c_common_init_options): Extra braces needed.
3143
3144 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3145
3146         * sh.c (sh_init_builtins): Add PARAMS to declaration.
3147         (sh_media_init_builtins, sh_expand_builtin): Likewise.
3148         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
3149         (sh_expand_binop_v2sf): Likewise.
3150         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
3151         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
3152         (sh_initialize_trampoline): Likewise.
3153
3154 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
3155
3156         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
3157         new condition code modes.
3158         s390.c (s390_match_ccmode_set): Handle those new CC modes.
3159         (s390_select_ccmode): Likewise.
3160         (s390_branch_condition_mask): Likewise.
3161
3162         * s390-protos.h (s390_tm_ccmode): Declare.
3163         s390.c (s390_tm_ccmode): New function.
3164         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
3165
3166         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
3167         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
3168         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
3169
3170         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
3171         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
3172         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
3173         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
3174         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
3175
3176         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
3177         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
3178         "*cmpqi_ccs_0"): Remove, replace by ...
3179         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
3180         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
3181         "*tstqi", "*tstqi_cconly"): ... these new patterns.
3182
3183         ("*cmpsidi_ccs"): Remove, replace by ...
3184         ("*cmpsi_ccs_sign"): ... this new pattern.
3185         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
3186
3187         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
3188         ("*cli"): ... this new pattern.
3189
3190         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
3191         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
3192         New patterns.
3193         ("adddi3_64"): Rename to "*adddi3_64".
3194         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
3195         ("adddi3"): Adapt expander.
3196
3197         ("*addsi3_cc"): Allow "general_operand" for operand 2.
3198         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
3199         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
3200
3201         ("addhi3", "addqi3"): Remove, replace by ...
3202         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
3203
3204         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
3205         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
3206         ("subdi3"): Replace by insn and splitter "*subdi3_31".
3207         ("subdi3"): New expander.
3208
3209         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
3210
3211         ("subhi3", "subqi3"): Remove, replace by ...
3212         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
3213
3214         ("*muldi3_sign"): New pattern.
3215         ("muldi3"): Do not clobber CC.
3216         ("mulsi3"): Likewise.
3217         ("mulsi_6432"): Likewise.
3218
3219 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3220
3221         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
3222         which can change CC0.
3223
3224 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
3225
3226         * gcse.c (adjust_libcall_notes): New function.
3227         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
3228
3229 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
3230
3231         * libgcc2.c (L_bb): Remove unneeded #includes.
3232         (__global_counters, __gthreads_active): Remove unused globals.
3233         (__bb_exit_func): Merge counts into files rather than appending.
3234         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
3235         (ALL_CFLAGS): ... to here.
3236
3237 2002-08-13  Denis Chertykov  <denisc@overta.ru>
3238
3239         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
3240         (function_epilogue): Don't calculate function size.
3241         (ip2k_set_compare): Don't use lookup_const_double.
3242         (asm_file_start): Initialization of commands_in_file removed.
3243         (asm_file_end): Output of commands_in_file removed.
3244
3245         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
3246         __INT_MAX__.
3247
3248 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3249
3250         * c-opts.c (c_common_init_options): Check option array is
3251         sorted if checking enabled.
3252
3253 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
3254
3255         * c-pretty-print.c: #include "c-tree.h".
3256         (pp_c_simple_type_specifier): Tweak.
3257         (pp_c_storage_class_specifier): New.
3258         (pp_c_function_specifier): Likewise.
3259         (pp_c_declaration_specifiers): Likewise.
3260         (pp_c_init_declarator): Likewise.
3261         (pp_c_declaration): Likewise.
3262         (pp_c_direct_declarator): Stub.
3263         (pp_c_declarator): Likewise.
3264         (pp_c_parameter_declaration): Likewise.
3265
3266 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
3267
3268         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
3269         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
3270         struct deferred_opt): New.
3271         (COMMAND_LINE_OPTIONS): Add -M*.
3272         (missing_arg): Update.
3273         (c_common_decode_option): Handle -M*.
3274         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
3275         don't call cpp_post_options.
3276         (c_common_finish, check_deps_environment_vars): Update.
3277         * cppfiles.c (stack_include_file, handle_missing_header): Update.
3278         * cpphash.h (CPP_PRINT_DEPS): Remove.
3279         * cppinit.c: Don't include version.h.
3280         (cpp_create_reader): Don't call deps_init.  Initialize
3281         warn_long_long.
3282         (cpp_read_main_file): Init deps if necessary.
3283         (cpp_destroy): Conditionally free deps.
3284         (cpp_finish): Update.
3285         (no_tgt): Remove.
3286         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3287         (cpp_post_options): Rename post_options.
3288         * cpplib.h (struct cpp_options): Remove some dependency options;
3289         move others to a new structure.
3290         (cpp_post_options): Remove.
3291         (cpp_finish): Comment.
3292         * fix-header.c (read_scan_file): Don't call cpp_post_options.
3293
3294 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3295
3296         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3297         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3298         MMIX_rR_REGNUM as clobbered.
3299         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3300
3301 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
3302
3303         * diagnostic.h (output_formatted_scalar): Rename from
3304         output_formatted_integer.
3305         * diagnostic.def: Add DK_DEBUG.
3306         * diagnostic.c (output_decimal): Adjust.
3307         (output_long_decimal): Likewise.
3308         (output_unsigned_decimal): Likewise.
3309         (output_octal): Likewise.
3310         (output_long_octal): Likewise.
3311         (output_hexadecimal): Likewise.
3312         (output_long_hexadecimal): Likewise.
3313         * c-pretty-print.c (pp_c_type_specifier): New function.
3314         (pp_c_specifier_qualifier_list): Likewise.
3315         (pp_c_abstract_declarator): Likewise.
3316         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
3317
3318 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
3319
3320         * doc/trouble.texi (Disappointments): Add static constructor and
3321         destructor dependency information for AIX.
3322
3323 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3324
3325         * cpphash.h (struct printer): New from cppmain.c.
3326         (cpp_reader): New member.
3327         * cppmain.c (struct printer): Move to cpphash.h.
3328         (options, print): Remove.
3329         (account_for_newlines, print_line, maybe_print_line,
3330         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
3331         scan_translation_unit_trad, cb_line_change, cb_ident,
3332         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
3333         cb_def_pragma): Make reentrant.
3334
3335 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3336
3337         * real.c (ieee_64): Always define.
3338         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3339         (dec_h): Not used yet, hide it.
3340         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
3341         macro controlling use.
3342         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3343
3344 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3345
3346         * i386.md (tablejump): Sign extend the operand.
3347         * i386.c (classify_argument): Fix missed case from previous patch.
3348
3349 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
3350
3351         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
3352         to c-copts.c.
3353         (warn_multichar): Die.
3354         (cb_register_builtins): Export.
3355         * c-common.h (warn_multichar, preprocess_file): Remove.
3356         (cb_register_builtins): New.
3357         * c-lang.c (c_init): Remove.
3358         (LANG_HOOKS_INIT): Use c_objc_common_init.
3359         * c-lex.c (init_c_lex): Don't canonicalize filename.
3360         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
3361         (preprocess_file): Make static.  Update for cpplib.
3362         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
3363         (c_common_post_options): Set some cpp options here.
3364         (c_common_init): Move from c-common.c.
3365         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
3366         * cpplib.h (struct cpp_options): Remove in_fname.
3367         (cpp_preprocess_file): Update.
3368         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
3369
3370 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3371
3372         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
3373
3374 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3375
3376         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
3377         backslash in comment preceeding macro definition.
3378         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
3379         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
3380         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
3381
3382 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
3383
3384         * expr.c (store_expr): In condition for checking if value is
3385         generated in TARGET, move call to expr_size last.
3386
3387 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3388
3389         * c-common.c (c_common_init): Call preprocess_file instead.
3390         (c_common_finish): Move to c-opts.c.
3391         * c-common.h (preprocess_file): new.
3392         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
3393         check_deps_environment_vars, c_common_finish): New.
3394         (c_common_decode_option): Update for out_fname and dependencies.
3395         * cppinit.c (init_dependency_output, output_deps): Remove.
3396         (cpp_destroy): Update prototype.
3397         (cpp_add_dependency_target): New.
3398         (cpp_read_main_file): Don't overlay a buffer.
3399         (cpp_finish): Take a deps output stream and write deps to it.
3400         Return the error count.
3401         (cpp_post_options): Don't canonicalize out_fname, or do anything
3402         with dependencies.
3403         * cpplib.h (struct cpp_options): Remove out_fname and
3404         preprocess_only.
3405         (cpp_add_dependency_target): New.
3406         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
3407         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
3408         set preprocess_only.  Don't handle the output stream directly.
3409
3410 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3411
3412         * dsp16xx.c (print_operand): Fix format specifier.
3413         * dsp16xx.md: Avoid automatic aggregate initialization.
3414         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
3415         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
3416         integer constant modifier.
3417         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
3418         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
3419         guards.
3420         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
3421         * v850.c (v850_select_section): Mark parameter with
3422         ATTRIBUTE_UNUSED.
3423         * global.c (global_alloc): Const-ify.
3424         * ra-colorize.c (hardregset_to_string): Fix format specifier.
3425
3426 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3427
3428         * darwin-c.c (darwin_pragma_options): Const-ify.
3429         * darwin.c (machopic_non_lazy_ptr_name,
3430         machopic_validate_stub_or_non_lazy_ptr): Likewise.
3431         (machopic_indirect_data_reference): Wrap variables in macros
3432         controlling their use.
3433         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
3434         (machopic_select_section): Use parentheses around && within ||.
3435         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
3436
3437 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3438
3439         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
3440         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3441         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
3442         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
3443         mdr_try_remove_redundant_insns, track_w_reload,
3444         mdr_try_wreg_elim): Make function static to match prototype.
3445         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
3446         parameter with ATTRIBUTE_UNUSED.
3447
3448 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3449
3450         * arc.c (arc_init): Don't use ISO C style function definitions.
3451         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
3452         arm_get_strip_length, arm_strip_name_encoding): Likewise.
3453         * avr.h (progmem_section): Likewise.
3454         * h8300.c h8300_asm_insn_count): Likewise.
3455         * m32r.c (init_idents): Likewise.
3456         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
3457         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
3458         * xtensa.c (xtensa_build_va_list): Likewise.
3459
3460 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
3461
3462         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
3463         * c-opts.c (parse_option): Rename find_opt.
3464         (set_std_c99): New function.
3465         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
3466         (missing_arg): Remove OPT_std_bad.  Handle -o.
3467         (c_common_decode_option): Handle input and output file names,
3468         -o and -remap.  Clean up -std= handling.
3469         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
3470         (cpp_handle_option): Similarly.  Don't handle filenames.
3471
3472 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3473
3474         * i386.c (classify_argument): Fix computing of field's offsets.
3475
3476 2002-08-11  Andreas Jaeger  <aj@suse.de>
3477
3478         PR target/7531:
3479         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
3480
3481 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
3482
3483         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
3484         reference to clk_objective_c with flag_objc.
3485         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
3486         Likewise.
3487         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3488
3489 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
3490
3491         * c-opts.c (set_std_cxx98, set_std_c89): New.
3492         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3493         (c_common_decode_option): Handle new switches from cppinit.c.
3494         Add -std=gnu++98.
3495         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
3496         (no_arg, no_num): Remove.
3497         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
3498         switches apart from -lang-objc and lang-asm.
3499         (cpp_handle_option): Similarly.
3500         * cpplib.h (cpp_set_lang): New.
3501         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
3502         -std=gnu++98.
3503         * objc/lang-specs.h: Remove -ansi.
3504
3505 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
3506                                Graham Stott
3507
3508         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
3509         errors.
3510
3511 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3512
3513         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
3514         emit_jump_insn): Fix uninitialized variable.
3515         * gcov.c (init_line_info): Likewise.
3516         * genautomata.c (transform_3): Add braces around ambiguous
3517         else.
3518         * ifcvt.c (cond_exec_process_insns): Mark parameter with
3519         ATTRIBUTE_UNUSED.
3520         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
3521         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
3522         variable.
3523
3524         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
3525         warnings in output files.
3526
3527 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
3528
3529         * c-common.c (flag_objc): New.
3530         * c-common.h (c_language_kind): Get rid of clk_objective_c
3531         enum value.
3532         (flag_objc): New extern declaration.
3533         * c-decl.c (implicitly_declare): Call objc_check_decl
3534         instead of maybe_objc_check_decl.
3535         (finish_decl): Likewise.
3536         (grokfield): Likewise.
3537         (finish_struct): Likewise.
3538         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
3539         (maybe_objc_comptypes): Rename to objc_comptypes.
3540         (maybe_building_objc_message_expr): Rename to
3541         objc_message_selector.
3542         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
3543         replace with flag_objc as needed.
3544         * c-opts.c (c_common_init_options): Likewise.
3545         (c_common_decode_option): Likewise.
3546         * c-parse.in (init_reswords): Likewise.
3547         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
3548         (maybe_objc_comptypes): Rename to objc_comptypes.
3549         (maybe_building_objc_message_expr): Rename to
3550         objc_message_selector.
3551         * c-typeck.c (comptypes): Call objc_comptypes instead of
3552         maybe_objc_comptypes, and/or objc_message_selector instead of
3553         maybe_building_objc_message_expr.
3554         (comp_target_types): Likewise.
3555         (convert_for_assignment): Likewise.
3556         (warn_for_assignment): Likewise.
3557         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
3558         independently of those for other languages.
3559         * objc/objc-act.c (maybe_objc_comptypes): Delete.
3560         (maybe_objc_check_decl): Delete.
3561         (maybe_building_objc_message_expr): Rename to
3562         objc_message_selector.
3563         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
3564         clk_objective_c; set flag_objc flag.
3565
3566 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3567
3568         * ifcvt.c (find_if_case_2): Test correct basic block for size.
3569
3570 2002-08-09  Dale Johannesen  <dalej@apple.com>
3571
3572         * config/rs6000/rs6000.md: Add sibcall patterns.
3573         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
3574         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
3575         Rewritten to handle sibcalls.
3576         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
3577         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
3578
3579 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
3580
3581         * profile.c (da_file_name): New static var.
3582         (init_branch_prob): Initialize it.
3583         (end_branch_prob): Remove da file.
3584
3585         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
3586         * configure.in (coverage_flags): Default to nothing.
3587         * configure: Rebuilt.
3588
3589 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
3590
3591         * Makefile.in (c-opts.o): Update
3592         * c-opts.c: Include intl.h.
3593         (print_help): Move from cppinit.c.  Remove unused options.
3594         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3595         (missing_arg): Complain for switches without an argument.
3596         (c_common_decode_option): Reject missing joined arguments.
3597         Handle new switches from cppinit.c.
3598         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3599         (cpp_handle_option): Similarly.
3600         (print_help): Moved to c-opts.c.
3601         * cpplib.h (struct cpp_options): Remove help_only.
3602         * gcc.c (cpp_unique_options): Remove -$.
3603         * doc/cppopts.texi: Undocument -h.
3604
3605 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3606
3607         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
3608         legitimate constant.
3609         (legitimate_pic_operand_p): Neither pic operand.
3610         (legitimate_address_p): But legitimate address.
3611         (get_thread_pointer): Generate MEM/u instead of CONST around
3612         UNSPEC_TP.
3613         (print_operand): Remove printing of UNSPEC_TP.
3614         (print_operand_address): And print it here.
3615
3616 2002-08-08  Devang Patel  <dpatel@apple.com>
3617
3618         * objc/objc-act.c (build_selector_translation_table): Issue warning,
3619         when  -Wselector is used,if method for which selector is being
3620         created does not exist.
3621
3622 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
3623
3624         * config/sh/sh.c (prepare_move_operands): Only call
3625         target_reg_operand if TARGET_SHMEDIA.
3626
3627 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3628
3629         * config/rs6000/rs6000.h, config/rs6000/aix.h,
3630         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
3631         two patches.
3632         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
3633
3634 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
3635             Richard Henderson  <rth@redhat.com>
3636
3637         * emit-rtl.c (gen_rtx_REG): After reload, only return
3638         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
3639
3640 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3641
3642         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
3643         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
3644         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
3645         macro.
3646
3647 2002-08-08  Adam Nemet  <anemet@lnxw.com>
3648
3649         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
3650         register.
3651         (thumb_expand_prologue): Likewise.
3652         (thumb_output_function_prologue): Likewise.
3653         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
3654         the additional push of the PIC register.
3655
3656 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
3657
3658         * configure.in (enable_coverage): New enable switch.
3659         * configure: Rebuilt.
3660         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
3661         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
3662         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
3663         (mostlyclean): Remove coverage files.
3664         * doc/install.texi: Document enable_coverage.
3665
3666         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
3667         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
3668         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
3669         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
3670         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
3671         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
3672         files.
3673
3674 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
3675
3676         * c-opts.c (cpp_opts): New.
3677         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
3678         (c_common_decode_options): Handle cpplib switches.
3679         (c_common_init_options): Set cpp_opts.
3680         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3681         (cpp_handle_option): Similarly.
3682
3683 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
3684
3685         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
3686         (TARGET_ALTIVEC_ABI): Same.
3687         (TARGET_ALTIVEC_VRSAVE): Same.
3688
3689         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
3690         icode not CODE_FOR_nothing.  Change switch to if.
3691
3692 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
3693
3694         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
3695
3696 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3697
3698         * stor-layout.c (place_union_field): For bitfields if
3699         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
3700         TYPE_USER_ALIGN.
3701
3702 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3703
3704         * pa.c (struct deferred_plabel): Constify name field.
3705
3706 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
3707
3708         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
3709
3710 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3711
3712         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
3713         local_prefix are the same.
3714         * configure: Rebuilt.
3715
3716 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3717             Richard Henderson  <rth@redhat.com>
3718
3719         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
3720         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
3721         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
3722         (place_field): Likewise.
3723         * config/i386/i386.c (x86_field_alignment): Don't check
3724         DECL_USER_ALIGN here.
3725         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
3726         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
3727         prototype.
3728         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
3729         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
3730         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
3731         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
3732         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
3733         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
3734
3735 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
3736
3737         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
3738         * c-common.c: Don't include tree-inline.h.
3739         (c_common_init_options, c_common_post_options): Move to c-opts.c.
3740         * c-common.h (c_common_decode_option): New.
3741         * c-decl.c (c_decode_option): Remove.
3742         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
3743         * c-opts.c: New file.
3744         * c-tree.h (c_decode_option): Remove.
3745         * doc/passes.texi: Update.
3746         * objc/objc-act.c (objc_decode_option): Remove.
3747         * objc/objc-act.h (objc_decode_option): Remove.
3748         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
3749         c_common_decode_option.
3750
3751 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
3752
3753         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
3754         dependency on TARGET_DOUBLE_FLOAT.
3755
3756 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
3757
3758         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
3759         overwrite callee-save registers.  Fix comment.
3760
3761 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
3762
3763         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
3764         in target_flags based on ISA, if it was not set on the command
3765         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
3766         support Branch Likely instructions.
3767         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
3768         (TARGET_BRANCHLIKELY): Likewise.
3769         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
3770         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
3771         ISA_HAS_BRANCHLIKELY.
3772         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
3773         * doc/invoke.texi: Document new MIPS -mbranch-likely and
3774         -mno-branch-likely options.
3775
3776 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3777
3778         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
3779
3780         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
3781         $(GCONFIG_H).
3782
3783 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
3784
3785         * c-decl.c (duplicate_decls): Error out for incompatible TLS
3786         declarations.
3787
3788         * testsuite/gcc.dg/tls/diag-3.c: New.
3789
3790 2002-08-06  Dale Johannesen  <dalej@apple.com>
3791
3792         * c-common.c (fname_decl): Use line number 0 for
3793         __func__, to avoid confusing debuggers.
3794
3795 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
3796
3797         * gcov.c: Tidy.
3798         (struct line_info, struct coverage): New structures.
3799         (gcov_file_name, gcov_file): Remove globals.
3800         (output_data): Take source file parameter. Fix memory leak. Break
3801         up into ...
3802         (init_line_info, output_line_info, make_gcov_file_name,
3803         accumulate_branch_counts): ... here.
3804         (calculate_branch_probs, function_summary): Adjust.
3805         (main): Adjust.
3806         (function_*): Remove global variables.
3807
3808 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3809
3810         * dwarf2out.c: Remove unused macros.
3811
3812 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3813
3814         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
3815
3816 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3817
3818         * cppinit.c (struct lang_flags): Rename trigraphs std.
3819         (set_lang): Update.
3820         * cpplib.h (struct cpp_options): New member std.
3821         * cppmacro.c (_cpp_builtin_macro_text): Use std.
3822         (collect_args): Flag whether to swallow a possible future
3823         comma pasted with varargs.
3824         (replace_args): Use this flag.
3825         * doc/cpp.texi: Update varargs extension documentation.
3826
3827 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3828
3829         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
3830
3831 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3832
3833         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
3834         and MODE_CLASS_INT modes.
3835
3836 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3837
3838         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
3839         --{enable,disable}-threads is given to configure.
3840         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
3841         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
3842         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
3843         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
3844         Remove thread_file setting here.
3845
3846 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
3847
3848         * doc/install.texi (Binaries): Update Bull Freeware URL.
3849
3850 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3851
3852         * doc/gcc.texi (Top): Rename Index to Keyword Index.
3853
3854 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
3855
3856         * gcov.c (output_data): Round to % to nearest, tweak formatting.
3857
3858 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3859
3860         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
3861         of the operands into MINUS_EXPR if code is PLUS_EXPR.
3862
3863 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
3864
3865         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
3866         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
3867         drectve_section): Define.
3868         * config/i386/t-interix: Replace interix.o rule with winnt.o.
3869         * config/i386/interix.c: Remove.
3870
3871 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
3872
3873         * attribs.c: Don't include obstack.h.
3874         * builtins.c: Likewise.
3875         * cfganal.c: Likewise.
3876         * cfgbuild.c: Likewise.
3877         * cfgcleanup.c: Likewise.
3878         * emit-rtl.c: Likewise.
3879         * loop.c: Likewise.
3880         * stmt.c: Likewise.
3881
3882         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
3883
3884 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
3885
3886         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
3887
3888 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
3889
3890         * doc/invoke.texi: Remove duplicated paragraph describing
3891         TARGET_SWITCHES.
3892
3893 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
3894
3895         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
3896         * collect2.h (permanent_obstack): Delete declaration.
3897         * collect2.c (permanent_obstack): Delete definition.
3898         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
3899         * expr.c: Don't include obstack.h.
3900         (permanent_obstack): Delete declaration.
3901         * function.c: Don't include obstack.h.
3902         (permanent_obstack): Delete declaration.
3903         * integrate.c: Don't include obstack.h.
3904         (function_maybepermanent_obstack): Delete declaration.
3905         * print-tree.c (debug_tree): Use x*alloc not permalloc.
3906         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
3907         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
3908         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
3909         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
3910         of permalloc, expralloc, perm_calloc.
3911         * tree.c (permanent_obstack): Delete definition.
3912         (init_ttree): Rename from init_obstacks.
3913         (permalloc): Delete.
3914         (perm_calloc): Delete.
3915         (dump_tree_statistics): Don't print information about
3916         permanent_obstack.
3917         * varasm.c (assemble_start_function): Use xstrdup instead of
3918         permalloc/strcpy.
3919         (assemble_variable): Likewise.
3920         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
3921         permalloc.
3922         (unicosmk_add_extern): Likewise.
3923         * config/c4x/c4x.c (c4x_external_ref): Likewise.
3924         (c4x_global_label): Likewise.
3925         * config/frv/frv.c (frv_encode_section_info): Likewise.
3926         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3927         (i386_pe_record_exported_symbol): Likewise.
3928         * config/mips/mips.c (mips_output_external): Likewise.
3929         (mips_output_external_libcall): Likewise.
3930         * config/pa/pa.c: (permanent_obstack): Delete declaration.
3931         (output_call): Use ggc_strdup instead of allocating on
3932         permanent_obstack.
3933         * config/romp/romp.c: Include ggc.h.
3934         (get_symref): Don't declare permanent_obstack, use ggc_strdup
3935         intead of permanent_obstack.
3936         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
3937         instead of permalloc.
3938         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
3939         instead of permalloc
3940         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
3941         instead of permalloc.
3942         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
3943         permalloc.
3944
3945 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
3946
3947         Contribute a port developed primarily by Michael Meissner,
3948         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
3949         * config.gcc: Add frv-elf target.
3950         * config/frv/cmovd.c: New file.
3951         * config/frv/cmovh.c: New file.
3952         * config/frv/cmovw.c: New file.
3953         * config/frv/frv-abi.h: New file.
3954         * config/frv/frv-asm.h: New file.
3955         * config/frv/frv-modes.def: New file.
3956         * config/frv/frv-protos.h: New file.
3957         * config/frv/frv.c: New file.
3958         * config/frv/frv.h: New file.
3959         * config/frv/frv.md: New file.
3960         * config/frv/frvbegin.c: New file.
3961         * config/frv/frvend.c: New file.
3962         * config/frv/lib1funcs.asm: New file.
3963         * config/frv/media.h: New file.
3964         * config/frv/modi.c: New file.
3965         * config/frv/t-frv: New file.
3966         * config/frv/uitod.c: New file.
3967         * config/frv/uitof.c: New file.
3968         * config/frv/ulltod.c: New file.
3969         * config/frv/ulltof.c: New file.
3970         * config/frv/umodi.c: New file.
3971         * config/frv/xm-frv.h: New file.
3972
3973         * config/frv/media.h: Removed again.
3974
3975 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3976
3977         * gcov.c (bb_file_time): New static variable.
3978         (object_directory): May also be object file.
3979         (preserve_paths): New static variable.
3980         (print_usage): Adjust.
3981         (options): Adjust.
3982         (process_args): Adjust.
3983         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
3984         file. Find modification date on bb file.
3985         (read_profile): Don't rewind a NULL file.
3986         (format_hwint): New static function.
3987         (function_summary): Use format_hwint.
3988         (output_data): SOURCE_FILE_NAME is never relative to
3989         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
3990         mangling. Adjust output format to make it more machine readable.
3991         * doc/gcov.texi: Document & clarify semantics.
3992
3993 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3994
3995         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
3996
3997 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3998
3999         * gcc.c (cc1_options): Pass output file as auxbase when
4000         appropriate.
4001         * profile.c (init_branch_prob): FILENAME has already had ending
4002         stripped.
4003         * final.c (end_final): Likewise.
4004         * toplev.c (aux_base_name): New global.
4005         (compile_file): Pass aux_base_name to init init_branch_prob and
4006         end_final.
4007         (independent_decode_option, case 'a'): New auxinfo options.
4008         (case 'd'): Protect against mising basename.
4009         (do_compile): Initialize aux_base_name.
4010         * toplev.h (aux_base_name): New global.
4011         * doc/invoke.texi: Adjust documentation.
4012
4013 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4014
4015         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
4016         of TARGET_ALIGN_DOUBLE.
4017
4018 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
4019
4020         * diagnostic.c (inform): New function.
4021         * diagnostic.h (inform): Declare.
4022
4023 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
4024
4025         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
4026         (movhi_internal): Same.
4027         (movqi_internal): Same.
4028         (movdi_internal64): Same.
4029
4030         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
4031
4032         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
4033         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
4034         (COMMON_ASM_OP): Define.
4035         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
4036         Use ALIGN parameter.
4037         (LOCAL_COMMON_ASM_OP): Define.
4038         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
4039
4040 2002-08-03  Roger Sayle  <roger@eyesopen.com>
4041
4042         * builtins.def: Define new builtin functions exp, expf, expl,
4043         log, logf and logl (and their __builtin_* variants).
4044         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
4045         Define exp_optab and log_optab.
4046         * optabs.c (init_optans): Initialize exp_optab and log_optab.
4047         * genopinit.c (optabs): Implement exp_optab and log_optab
4048         using exp?f2 and log?f2 patterns.
4049         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
4050         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
4051         (expand_builtin): Ignore the new builtins (and all cos and
4052         sin variants) when not optimizing.  Expand new builtins via
4053         expand_builtin_mathfn when flag_unsafe_math_optimizations.
4054
4055         * doc/extend.texi: Document new exp and log builtins.
4056         * doc/md.texi: Document new exp?f2 and log?f2 patterns
4057         (and previously undocumented cos?f2 and sin?f2 patterns).
4058
4059 2002-08-03  Jason Merrill  <jason@redhat.com>
4060
4061         * explow.c (int_expr_size): New fn.
4062         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
4063         * expr.h: Declare it.
4064
4065 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
4066
4067         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
4068         gengtype-* dependencies.
4069
4070 2002-08-02  Eric Christopher  <echristo@redhat.com>
4071
4072         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
4073         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
4074         #ifndef to #undef.
4075         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
4076
4077 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
4078
4079         PR optimize/7067
4080         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4081         small if optimizing for size.
4082
4083 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
4084
4085         * configure.in (FORBUILD): Use $build_alias.
4086         * configure: Regenerated.
4087
4088 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
4089
4090         * config.gcc: Don't include mips/abi64.h in $tm_file.
4091         * hard-reg-set.h (call_really_used_regs): Declare.
4092         * config/mips/abi64.h: Remove file.
4093         * config/mips/linux.h,
4094         * config/mips/iris6.h: Don't include it.
4095         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4096         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4097         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4098         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4099         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4100         Bring across definitions from abi64.h.
4101         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4102         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4103         (struct mips_args): Use it.
4104         * config/mips/mips.c (mips_conditional_register_usage): Define.
4105
4106 2002-08-02  Jason Merrill  <jason@redhat.com>
4107
4108         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4109         * langhooks.c (lhd_expr_size): Define default.
4110         * langhooks.h (struct lang_hooks): Add expr_size.
4111         * explow.c (expr_size): Call it.
4112         * expr.c (store_expr): Don't copy an expression of size zero.
4113         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
4114         to store.
4115         * Makefile.in (builtins.o): Depend on langhooks.h.
4116
4117 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4118
4119         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
4120         * ra-debug.c: Include "tm_p.h".
4121         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
4122
4123 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
4124
4125         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
4126         when not honoring signalling NaNs.
4127         (simplify_ternary_operation): a == b has a definite value
4128         when not honoring NaNs.
4129
4130 2002-08-02  Jason Merrill  <jason@redhat.com>
4131
4132         * gdbinit.in (pct): New macro.
4133
4134 2002-08-01  Stan Shebs  <shebs@apple.com>
4135             Andreas Tobler  <toa@pop.agri.ch>
4136
4137         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
4138         plays nice with Darwin headers.
4139         (_BSD_RUNE_T_DEFINED_): Likewise.
4140
4141 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4142
4143         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
4144         * cppinit.c (cpp_post_options): Likewise.
4145
4146         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
4147         warning about 'LL' suffix (but not 'ULL' etc) when
4148         -Wno-long-long is in effect.
4149
4150         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
4151         Check for failing time()/localtime(), issue a warning, and
4152         make __TIME__ and __DATE__ expand to fallback strings.
4153
4154         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
4155         and __TIME__ when the date and time cannot be determined.
4156
4157 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4158
4159         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
4160
4161 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
4162
4163         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
4164
4165 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4166
4167         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
4168         (mipsisa64sb1el-*-elf*): Likewise.
4169         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
4170         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
4171         (TARGET_SB1, TUNE_SB1): New macros.
4172         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
4173         -mtune flags.
4174
4175 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
4176
4177         * varasm.c (asm_emit_uninitialized): Return false if global BSS
4178         and ASM_EMIT_BSS not supported by target.
4179         (assemble_variable): Do not duplicate uninitialized logic.
4180         Fall through if asm_emit_uninitialized failed.
4181
4182 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
4183
4184         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
4185
4186 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
4187
4188         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
4189         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
4190
4191         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
4192         HOST_BITS_PER_WIDE_INT == 64.
4193
4194 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4195
4196         * df.c (df_insn_table_realloc): Change parameter to unsigned.
4197         * optabs.c (expand_binop): Make variable unsigned.
4198         * simplify-rtx.c (simplify_subreg): Likewise.
4199         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
4200
4201 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4202
4203         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
4204
4205 2002-08-01  Richard Henderson  <rth@redhat.com>
4206
4207         * toplev.c (parse_options_and_default_flags): Don't set
4208         flag_reorder_blocks for -Os.
4209
4210         * config/avr/avr.c (avr_optimization_options): Remove.
4211         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
4212         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
4213         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
4214
4215 2002-08-01  H.J. Lu <hjl@gnu.org>
4216             Richard Henderson  <rth@redhat.com>
4217
4218         * output.h (DECL_READONLY_SECTION): Remove.
4219         (decl_readonly_section): Declare.
4220         * varasm.c (decl_readonly_section): New.
4221         (default_section_type_flags, default_select_section): Use it.
4222         * config/arm/pe.c (arm_pe_unique_section): Likewise.
4223         * config/i386/interix.c (i386_pe_unique_section): Likewise.
4224         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
4225         * config/mcore/mcore.c (mcore_unique_section): Likewise.
4226         * config/mips/mips.c (mips_unique_section): Likewise.
4227
4228 2002-08-01  Richard Henderson  <rth@redhat.com>
4229
4230         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
4231         refers to a subroutine parameter.
4232
4233 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
4234
4235         * varasm.c (assemble_visibility): Strip name encoding.
4236
4237 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4238
4239         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
4240         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
4241         when there is no frame pointer.
4242         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
4243         registers properly.
4244         * config/ns32k/__unorddf2.c: New file.
4245         * config/ns32k/__unordsf2.c: New file.
4246         * config/ns32k/t-ns32k: New file.
4247         * config.gcc (ns32k-*-netbsd*): Use it.
4248
4249 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
4250
4251         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
4252
4253 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4254
4255         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
4256
4257 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
4258
4259         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
4260
4261 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
4262
4263         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
4264
4265 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4266
4267         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
4268         n_sets): Removed.
4269         (expr_hash_table, set_hash_table): Type changed to ...
4270         (struct hash_table): New type.
4271         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
4272         insert_expr_in_table, insert_set_in_table, compute_hash_table,
4273         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
4274         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
4275         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
4276         (alloc_hash_table): New.
4277         (free_set_hash_table, free_expr_hash_table): Merged to ...
4278         (free_hash_table): New.
4279         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
4280         (compute_hash_table_work): New.
4281         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
4282         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
4283         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
4284         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
4285         hoist_code, one_code_hoisting_pass,
4286         trim_ld_motion_mems): Altered due to changed type of hash tables.
4287
4288 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
4289
4290         * final.c (output_alternate_entry_point):
4291         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4292
4293 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4294
4295         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4296         avoid ISO C style function definition.
4297
4298         * expr.c (expand_assignment): Delete unused variable.
4299
4300 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
4301
4302         * c-common.c (cb_register_builtins): Set
4303         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4304         is given, and to 0 otherwise.
4305         * combine.c (simplify_if_then_else): HONOR_NANS
4306         implies FLOAT_MODE_P.
4307
4308 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4309
4310         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4311         (cpp_handle_option): Don't handle it.
4312         (print_help): Update.
4313         * doc/cppopts.texi: Update.
4314
4315 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4316
4317         * c-common.c (cb_register_builtins): If C++, define
4318         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
4319         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
4320 cp:
4321         * lang-specs.h: Simplify in accordance with new code in
4322         c-common.c.
4323
4324 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
4325
4326         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
4327         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
4328         * c-decl.c: Move all warning and flag variables to c-common.c.
4329         * c-format.c: Move all warning variables to c-common.c.
4330         * c-tree.h: Move all warning and flag declarations to c-common.h.
4331         * objc/objc-act.c: Move all warning variables to c-common.c.
4332         (flag_warn_protocol): Rename warn_protocol.
4333
4334 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4335
4336         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
4337
4338 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
4339
4340         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
4341         .section prefix.
4342
4343 2002-07-31  Stan Shebs  <shebs@apple.com>
4344
4345         * config.gcc (i[34567]86-*-darwin*): New configuration.
4346         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
4347         defining.
4348         (TARGET_ENCODE_SECTION_INFO): Ditto.
4349         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
4350         * config/darwin.c (machopic_indirect_data_reference): Remove
4351         setting of RTX_UNCHANGING_P.
4352         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
4353         not to be applied to sums.
4354         * config/i386/t-darwin: New file.
4355         * config/i386/darwin.h: New file.
4356         * config/i386/i386.h (TARGET_MACHO): Add default definition.
4357         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
4358         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
4359         label and not the GOT add.
4360         (constant_address_p): For Mach-O, seeing a CONST is enough.
4361         (legitimate_pic_address_disp_p): Add a Mach-O case.
4362         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
4363         (legitimize_pic_address): Use generic Mach-O code to legitimize.
4364         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
4365         if outputting a difference.
4366         (ix86_output_addr_diff_elt): Add Mach-O case.
4367         (ix86_expand_move): Similarly.
4368         (ix86_expand_call): Similarly.
4369         (current_machopic_label_num): New global.
4370         (machopic_output_stub): New function.
4371         (ix86_value_regno): New function.
4372         (ix86_function_value): Use it instead of VALUE_REGNO.
4373         (ix86_libcall_value): Ditto.
4374         * config/i386/unix.h (VALUE_REGNO): Remove.
4375
4376 2002-07-31  Graham Stott  <grahas@btinternet.com>
4377
4378         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
4379         hash for LABEL_REF's.
4380
4381 2002-07-31  Graham Stott  <grahams@btinternet.com>
4382
4383         * config/rs6000/rs6000.c (spe_init_builtins,
4384         altivec_init_builtins, rs6000_common_init_builtins):
4385         Replace ANSI with K&R function def.
4386
4387 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
4388
4389         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
4390         for CCFPmode.
4391
4392 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4393
4394         * config/mips/crtn.asm: Don't use __mips16 to determine the
4395         return-address offset.  Define RA to a suitable temporary
4396         register for the return address.
4397
4398 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
4399
4400         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
4401         constraints to 'd'.
4402
4403 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
4404
4405         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
4406         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
4407         patch on 2002-07-29.)
4408         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4409
4410 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4411
4412         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
4413         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
4414         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
4415         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
4416         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
4417         (ASM_GLOBALIZE_LABEL): Delete.
4418         (GLOBAL_ASM_OP): Define.
4419
4420         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
4421
4422         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
4423         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
4424
4425 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
4426
4427         * doc/extend.texi (Hints implementation): Document that GCC
4428         mostly ignores `register'.
4429
4430 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
4431
4432         * flags.h: Declare flag_finite_math_only.
4433         Use it in definition of HONOR_NANS and
4434         HONOR_INFINITIES.
4435         * c-common.c (cb_register_builtins): Emit
4436         __FINITE_MATH_ONLY__ when flag_finite_math_only
4437         is set.
4438         * combine.c (simplify_if_then_else): If
4439         flag_finite_math_only is set, a == b has a
4440         definite value.
4441         * toplev.c: Initialize flag_finite_math_only.
4442         (set_flags_fast_math): Set it on -ffast-math.
4443         (flag_fast_math_set_p): Test it.
4444         * doc/invoke.texi: Document -ffinite-math-only.
4445
4446 2002-07-30  Richard Henderson  <rth@redhat.com>
4447
4448         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
4449         (noce_process_if_block): Likewise.
4450
4451 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
4452
4453         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4454         Bail out early if false_expr is NULL and we'd crash due to this.
4455         * genemit.c (gen_expand): Recognize return insns even if the return
4456         appears in a parallel.
4457         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
4458         * config/fp-bit.c: Likewise.
4459         * doc/tm.texi: Document it.
4460
4461 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
4462             Zack Weinberg  <zack@codesourcery.com>
4463
4464         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
4465         CODE_FOR_nothing.  Change switch to if.
4466         (rs6000_expand_binop_builtin): Same.
4467         (rs6000_expand_builtin): Expand builtin if target support enabled.
4468         (rs6000_init_builtins): Init builtin if target support enabled.
4469         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
4470
4471 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4472
4473         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
4474
4475 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
4476
4477         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
4478
4479 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
4480
4481         * sh.md (cond_delay_slot): New attribute.
4482         (cbranch delay): Use it for anulled-true case.
4483         (stuff_delay_slot): New pattern.
4484         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
4485         delay slot insn.
4486         (gen_far_branch): Emit stuff_delay_slot pattern.
4487
4488 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
4489
4490         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
4491
4492 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
4493
4494         * fold-const.c: Fix comment typos.
4495         * gcse.c: Likewise.
4496         * reload1.c: Likewise.
4497
4498 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4499
4500         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
4501         for TARGET_SPE.
4502
4503 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4504
4505         * c-pretty-print.h (pp_c_statement): Declare.
4506         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
4507         (pp_c_statement): Define.
4508
4509 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4510
4511         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
4512         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
4513         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
4514         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
4515         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
4516         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
4517
4518         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
4519         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
4520
4521 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4522
4523         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
4524         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
4525         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
4526         (pp_c_expression): Update.
4527
4528 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4529
4530         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
4531         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
4532         * alpha/vms-ld.c (main): Likewise.
4533         * dsp16xx.c (double_reg_to_memory): Likewise.
4534         * mcore.c (mcore_expand_prolog): Likewise.
4535         * cppfiles.c (read_name_map): Likewise.
4536         * gensupport.c (process_rtx, identify_predicable_attribute,
4537         alter_test_for_insn): Likewise.
4538         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
4539
4540 2002-07-29  Roger Sayle  <roger@eyesopen.com>
4541
4542         * builtins.c (expand_builtin):  Change the default behavior to
4543         only issue an error if the builtin function doesn't have a
4544         fallback library call.  Remove several cases handled by the
4545         new default.
4546
4547 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
4548
4549         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
4550         floating point format of the target is IEEE.
4551         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
4552         format of the target is DEC.
4553
4554 2002-07-29  Richard Henderson  <rth@redhat.com>
4555
4556         * unroll.c (verify_addresses): Remove.
4557         (find_splittable_givs): Never split DEST_ADDR givs.
4558
4559 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
4560
4561         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
4562         is exhaustive.
4563         (Files): Improve documentation on generated source files.
4564
4565         * doc/extend.texi (Translation implementation): Document what
4566         diagnostics look like.
4567         (Identifiers implementation): Document that there's normally no
4568         limit on identifier names.
4569         (Integers implementation): Document two's complement.
4570         (Hints implementation): Document that GCC honors 'inline', mostly.
4571         (Preprocessing directives implementation): Document that GCC
4572         requires the current time.
4573
4574 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
4575
4576         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
4577         (pp_initializer): New macro.
4578         (pp_c_initializer): Declare.
4579         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
4580         (pp_c_initializer): Define.
4581         (pp_c_initializer_list): New function.
4582         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
4583         VECTOR_CST, CONSTRUCTOR.
4584         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
4585         IMAGPART_EXPR.
4586         (pp_c_cast_expression): Handle FLOAT_EXPR.
4587         (pp_c_assignment_expression): Handle INIT_EXPR.
4588         (pp_c_expression): Update.
4589
4590 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
4591
4592         * objc/objc-act.c (objc_init): Return immediately if filename
4593         is NULL.
4594
4595 2002-07-29  Eric Christopher  <echristo@redhat.com>
4596
4597         * config/mips/elf.h: Remove ecoff.h and gofast includes.
4598         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
4599         (SDB_DEBUGGING_INFO): Undefine.
4600         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4601         (PUT_SDB_SIZE): Remove.
4602         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
4603         (STARTFILE_SPEC): Add isa3264 define.
4604         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
4605         * config/mips/ecoff.h: Remove. and here...
4606         * config/mips/iris3.h: and here...
4607         * config/mips/sni-svr4.h: and here...
4608         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
4609         Add assembler -mmdebug options for non-dwarf debugging.
4610         * config/mips/r3900.h: Remove debug info defines.
4611         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
4612         * config/mips/isa3264.h: Ditto.
4613         * config/mips/t-isa3264: Fix up for file removal and gofast configure
4614         change.
4615         * config/mips/t-elf: Ditto.
4616         * config/mips/t-ecoff: Ditto.
4617         * config/mips/t-r3900: Ditto.
4618         * config/mips/t-iris5-6: Ditto.
4619         * config/mips/t-isa3264: Ditto.
4620         * config/mips/t-linux: Remove.
4621         * config/mips/t-netbsd: Remove.
4622         * config/mips/t-mips: New file.
4623         * config/mips/t-gofast: Ditto.
4624         * config/mips/netbsd.h: Remove unnecessary undefines.
4625         * config/mips/linux.h: Remove #include of mips.h.
4626         * config.gcc: Add mips.h include for elf targets. Remove tm_file
4627         for ecoff. Add gofast configure option for mips.
4628
4629 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
4630
4631         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
4632         linker scripts use STARTUP directives consistently.
4633         * configure: Regenerate.
4634         * config.in: Regenerate.
4635         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
4636         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
4637         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4638         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
4639         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
4640         will be the same.
4641
4642 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4643
4644         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
4645
4646 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4647
4648         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
4649
4650 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
4651
4652         * config/rs6000/rs6000.md: Move altivec patterns from here...
4653
4654         * config/rs6000/altivec.md: ...to here.
4655
4656 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4657
4658         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
4659
4660 2002-07-29  Richard Henderson  <rth@redhat.com>
4661
4662         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
4663         set_mem_attributes and add BITPOS argument.  Subtract it from
4664         OFFSET when same is adjusted.
4665         (set_mem_attributes): New wrapper function.
4666         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
4667         remove offset adjustment hack.
4668         * expr.h (set_mem_attributes_minus_bitpos): Declare.
4669
4670 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
4671
4672         * Makefile.in (C_OBJS): Include c-pretty-print.o
4673         (c-pretty-print.o): Add depency rule.
4674         * pretty-print.h: Add more macros.
4675         * c-pretty-print.c: New file.
4676         * c-pretty-print.h: Likewise.
4677
4678 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
4679
4680         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
4681         constants to __ev64_s32__.
4682         (__internal_ev_mwhgsmian): Same.
4683         (__internal_ev_mwhgsmfan): Same.
4684         (__internal_ev_mwhgssfan): Same.
4685         (__internal_ev_mwhgumiaa): Same.
4686         (__internal_ev_mwhgsmiaa): Same.
4687         (__internal_ev_mwhgsmfaa): Same.
4688         (__internal_ev_mwhgssfaa): Same.
4689
4690 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
4691
4692         * varasm.c (assemble_variable): Narrow test for uninitialized
4693         without BSS target support.
4694
4695 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
4696
4697         * profile.c: Add file comment describing the overall algorithm and
4698         structures.
4699         (struct edge_info): Add comments.
4700         (struct bb_info): Add comments.
4701         * basic-block.h (EDGE_*): Add comments.
4702         * doc/gcov.texi (Gcov Data Files): Document bit flags.
4703
4704 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
4705
4706         * config/xtensa/elf.h, config/xtensa/linux.h
4707         (TARGET_OS_CPP_BUILTINS): Define.
4708         (CPP_PREDEFINES): Remove.
4709         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
4710         (CPP_SPEC): Remove.
4711
4712 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
4713
4714         * gensupport.c: Include hashtab.h.
4715         (insn_elision, condition_table, hash_c_test, cmp_c_test,
4716         maybe_eval_c_test): New routines and data structures to
4717         support insn elision.
4718         (init_md_reader): Read and initialize the condition_table.
4719         (read_md_rtx): Discard insn patterns whose C test is provably
4720         always false.
4721         * gensupport.h: Declare new functions and data structures.
4722
4723         * genconditions.c, dummy-conditions.c: New files.
4724         * Makefile.in: Build genconditions; run it to construct
4725         insn-conditions.c; build that and link it into most gen*
4726         programs.
4727         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
4728         (GEN): Delete, unused.
4729         (STAGESTUFF): Update.
4730
4731         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
4732         CODE_FOR_nothing for all elided patterns.
4733         (main): Tweaked to support this.
4734         * genflags.c (gen_proto): Emit a static inline generator
4735         function here for all elided patterns, which simply returns
4736         NULL_RTX.
4737         (gen_insn): Do not define HAVE_xxx for elided patterns.
4738         (main): Tweaked to support this.  No need to forward-declare
4739         struct rtx_def.
4740         * genrecog.c: Do not bother emitting the C test if it's known
4741         to be true at compile time.
4742
4743 2002-07-29  Mike Stump  <mrs@apple.com>
4744
4745         * config.gcc (target_gtfiles): Initialize, as otherwise cross
4746         compilers hosted on powerpc-apple-darwin6.0 won't even build.
4747
4748 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
4749
4750         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
4751         remove clobber of LR.
4752         (sibcall_insn, sibcall_value_insn): Update accordingly.
4753         (sibcall_epilogue): Remove debugging comment from assembler stream.
4754
4755 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
4756
4757         * pretty-print.h: Define more macros.
4758         * diagnostic.h (output_formatted_integer): Moved from...
4759         * diagnostic.c: ... here.
4760
4761 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4762
4763         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
4764
4765 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
4766
4767         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
4768         arguments.  Always use ".-symbol" as expression argument.
4769         * doc/tm.texi: Update to match.  Document requirement for
4770         ".size symbol, .-symbol" to be acceptable to assembler.
4771
4772         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4773         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
4774         config/i386/freebsd-aout.h, config/i386/sco5.h,
4775         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
4776         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
4777
4778 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4779
4780         * Makefile.in (gengtype-lex.c): Fix error in last change.
4781
4782         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
4783         backslash.
4784
4785         * Makefile.in (vmsdbgout.o): Depend on function.h.
4786
4787         * vmsdbgout.c: Include function.h.
4788
4789 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
4790
4791         * prefix.c (update_path): Don't strip single `.' path components
4792         unless stripping a later `..' component.  Exit loop as soon as
4793         a valid path is found.
4794
4795 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4796
4797         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
4798         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
4799         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
4800         floating point unordered comparisons (e.g. __builtin_isgreater)
4801         as const, and leave the remaining GCC_BUILTINs unchanged.
4802
4803         * c-decl.c (builtin_function): No need to explicitly mark
4804         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
4805
4806 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4807
4808         * Makefile.in: rtlanal.o now depends upon real.h.
4809
4810         * flags.h [flag_signaling_nans]: New flag.
4811         [HONOR_SNANS]: New macro.
4812
4813         * toplev.c [flag_signaling_nans]: Initialize to false.
4814         (f_options): Add processing for "-fsignaling-nans".
4815         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
4816         (process_options): flag_signaling_nans implies flag_trapping_math.
4817
4818         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
4819         when -fsignaling-nans.  First step to implementing WG14's N965.
4820
4821         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
4822         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
4823         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
4824
4825         * simplify-rtx.c (simplify_relational_operation): Conditionalize
4826         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
4827
4828         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
4829         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
4830         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
4831         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
4832         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
4833
4834         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
4835
4836 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4837
4838         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
4839         * gengtype-lex.l (YY_USE_PROTOS): Undef.
4840         (YY_DECL): Define.
4841
4842 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4843
4844         * doc/invoke.texi: Document that both -fno-builtin-foo and
4845         -fno-builtin are supported by the g++ front-end.
4846
4847 2002-07-27  Stan Shebs  <shebs@apple.com>
4848
4849         * configure.in: Rename config_gtfiles to target_gtfiles.
4850         * configure: Regenerate.
4851         * doc/gty.texi: Update reference.
4852         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
4853         instead of appending to it.
4854
4855 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
4856
4857         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
4858         vectors are split into two registers.
4859         (function_arg): Same.
4860
4861 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
4862
4863         * pa.md (extv): Check predicates before emitting extv_32.
4864
4865 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
4866
4867         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
4868         (rs6000_traceback): New var.
4869         (rs6000_override_options): Set rs6000_traceback.
4870         (rs6000_output_function_epilogue): Implement traceback options.
4871         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
4872         (rs6000_traceback_name): Declare.
4873
4874         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
4875         label reference when NO_PROFILE_COUNTERS.
4876
4877 2002-07-26  Jason Merrill  <jason@redhat.com>
4878
4879         * function.c (assign_parms): Handle frontend-directed pass by
4880         invisible reference.
4881
4882 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4883
4884         * doc/cppopts.texi: Update.
4885
4886 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4887
4888         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
4889         warnings on assertions.
4890
4891 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4892
4893         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
4894         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
4895         RID_COMPL): Remove.
4896         * c-parse.in (rid_to_yy): Similarly.
4897
4898 2002-07-26  Jason Merrill  <jason@redhat.com>
4899
4900         * c-dump.c: Resurrect.
4901         * tree-dump.c: Move C-specific stuff to c-dump.c.
4902         * c-common.h: Declare c_dump_tree.
4903         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
4904         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4905         (c-dump.o): New rule.
4906
4907 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
4908
4909         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
4910         PowerPC64.  Replace "T" and "S" constraints with "n" when the
4911         predicate will do.  Formatting fixes.
4912         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
4913         as for extzvsi_internal1.
4914
4915 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4916
4917         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
4918         DERIV_END_LABEL_FMT): Remove.
4919         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
4920
4921 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4922
4923         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
4924         Remove.
4925
4926 2002-07-25  Stan Shebs  <shebs@apple.com>
4927
4928         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
4929         local var dwarfp.
4930         (output_compiler_stub): Remove unused locals.
4931         (output_call): Always initialize line number.
4932
4933 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4934
4935         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
4936         * sh.md (truncdiqi2, movqi_media): Likewise.
4937
4938 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4939
4940         * gcse.c (obstack_chunk_alloc): Remove.
4941         (gcse_alloc): Fix to count allocated bytes.
4942         * collect2.c (SYMBOL__MAIN): Remove.
4943
4944 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4945
4946         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
4947         HAVE_TARGET_EXECUTABLE_SUFFIX.
4948
4949 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4950
4951         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
4952         SIZE, EXPR and OFFSET.
4953
4954 2002-07-25  Richard Henderson  <rth@redhat.com>
4955
4956         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
4957         in ARRAY_REF of DECL_P case.
4958
4959 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4960
4961         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
4962         description.  Document -mips32, -mips64, and the associated -march
4963         values.  Describe the "mipsN" arguments to -march.  Say that the
4964         -mipsN options are equivalent to -march.  Reword the description
4965         of default type sizes.
4966         * toplev.h (target_flags_explicit): Declare.
4967         * toplev.c (target_flags_explicit): New var.
4968         (set_target_switch): Update target_flags_explicit.
4969         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
4970         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
4971         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
4972         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
4973         * config/mips/mips.h (mips_cpu_info): New struct.
4974         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4975         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
4976         (MIPS_CPP_SET_PROCESSOR): New macro.
4977         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
4978         Define _MIPS_ARCH and _MIPS_TUNE.
4979         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
4980         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
4981         MIPS_ISA_DEFAULT were already defined.
4982         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
4983         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
4984         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
4985         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
4986         (ABI_GAS_ASM_SPEC): Remove.
4987         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
4988         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
4989         Invoke %(asm_abi_default_spec) if no ABI was specified.
4990         (CC1_SPEC): Remove ISA -> register-size rules.
4991         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
4992         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
4993         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4994         (mips_cpu_info_table): New array.
4995         (mips_set_architecture, mips_set_tune): New fns.
4996         (override_options): Rework to make -mipsN equivalent to -march.
4997         Detect more erroneous cases, including those removed from CC1_SPEC.
4998         Don't change the ABI based on architecture, or vice versa.
4999         Unify logic with GAS.
5000         (mips_asm_file_start): Get architecture name from mips_arch_info.
5001         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5002         (mips_parse_cpu): Take the name of the option as argument.  Handle
5003         'from-abi'.  Raise an error if the option is wrong.
5004         (mips_cpu_info_from_isa): New fn.
5005
5006 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5007
5008         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
5009         (tablejump_mips162): Likewise.
5010
5011 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
5012
5013         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
5014         int_mode_for_mode.
5015
5016 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
5017
5018         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
5019         complaining.
5020         * c-common.h (c_sizeof): Adjust definition.
5021         (c_alignof): Likewise.
5022         * c-tree.h (c_sizeof_nowarn): Now macro.
5023         * c-typeck.c (c_sizeof_nowarn): Remove definition.
5024
5025 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5026
5027         * c-decl.c (c_decode_option): No need to handle switches
5028         cpplib handles.
5029
5030 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
5031
5032         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
5033         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
5034         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
5035         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5036
5037         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5038         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
5039         config/cris/aout.h, config/i386/freebsd-aout.h,
5040         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
5041         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
5042         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
5043         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
5044         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
5045         config/xtensa/elf.h, config/xtensa/linux.h:
5046         Use the new macros.
5047         Where possible, remove redundant definitions of SIZE_ASM_OP,
5048         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5049
5050 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
5051
5052         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
5053         TARGET_ISEL, and TARGET_FPRS.
5054
5055         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5056         -mabi=spe, -mabi=no-spe, and -misel=.
5057
5058         * config/rs6000/rs6000-protos.h: Add output_isel.
5059         Move vrsave_operation prototype here.
5060
5061         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
5062         (smaxsi3): Same.
5063         (uminsi3): Same.
5064         (umaxsi3): Same.
5065         (abssi2_nopower): Disallow when TARGET_ISEL.
5066         (*ne0): Same.
5067         (negsf2): Change to expand and rename old pattern to *negsf2.
5068         (abssf2): Change to expand and rename old pattern to *abssf2.
5069
5070         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
5071         fixunssfsi2.
5072
5073         Change patterns that check for TARGET_HARD_FLOAT or
5074         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
5075
5076         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
5077         rs6000_isel, rs6000_fprs, rs6000_isel_string.
5078         (rs6000_override_options): Add 8540 case to
5079         processor_target_table.
5080         Set rs6000_isel for the 8540.
5081         Call rs6000_parse_isel_option.
5082         (enable_mask_for_builtins): New.
5083         (rs6000_parse_isel_option): New.
5084         (rs6000_parse_abi_options): Add spe and no-spe.
5085         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5086         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5087         for TARGET_HARD_FLOAT.
5088         Add case for SPE_VECTOR_MODE.
5089         (rs6000_legitimize_reload_address): Handle SPE vector modes.
5090         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5091         vector modes.
5092         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5093         (rs6000_emit_move): Check for TARGET_FPRS.
5094         Add cases for SPE vector modes.
5095         (function_arg_boundary): Return 64 for SPE vector modes.
5096         (function_arg_advance): Check for TARGET_FPRS and
5097         Handle SPE vectors.
5098         (function_arg): Same.
5099         (setup_incoming_varargs): Check for TARGET_FPRS.
5100         (rs6000_va_arg): Same.
5101         (struct builtin_description): Un-constify mask field.  Move up in
5102         file.
5103         (bdesc_2arg): Un-constify and add SPE builtins.
5104         (bdesc_1arg): Same.
5105         (bdesc_spe_predicates): New.
5106         (bdesc_spe_evsel): New.
5107         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5108         (rs6000_expand_binop_builtin): Same.
5109         (bdesc_2arg_spe): New.
5110         (spe_expand_builtin): New.
5111         (spe_expand_predicate_builtin): New.
5112         (spe_expand_evsel_builtin): New.
5113         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
5114         (rs6000_init_builtins): Initialize SPE builtins.  Call
5115         rs6000_common_init_builtins.
5116         (altivec_init_builtins): Move all non-altivec builtin code to...
5117         (rs6000_common_init_builtins): ...here.  New function.
5118         (branch_positive_comparison_operator): Allow NE code for SPE.
5119         (ccr_bit): Return correct ccr bit for SPE fp.
5120         (print_operand): Emit crnor in 'D' case for SPE.
5121         New case 't'.
5122         Add SPE code for 'y' case.
5123         (rs6000_generate_compare): Generate rtl for SPE fp.
5124         (output_cbranch): Handle SPE hard floats.
5125         (rs6000_emit_cmove): Handle isel.
5126         (rs6000_emit_int_cmove): New.
5127         (output_isel): New.
5128         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
5129         64-bits for SPE.
5130         (debug_stack_info): Add SPE info.
5131         (gen_frame_mem_offset): New.
5132         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
5133         Change mode of frame pointer, when saving it, to Pmode.
5134         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
5135         Misc cleanups and use gen_frame_mem_offset when appropriate.
5136
5137         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
5138         (TARGET_SPE_ABI): New.
5139         (TARGET_SPE): New.
5140         (TARGET_ISEL): New.
5141         (TARGET_FPRS): New.
5142         (FIXED_SCRATCH): New.
5143         (RTX_COSTS): Add PROCESSOR_PPC8540.
5144         (ASM_CPU_SPEC): Add case for 8540.
5145         (TARGET_OPTIONS): Add isel= case.
5146         (rs6000_spe_abi): New.
5147         (rs6000_isel): New.
5148         (rs6000_fprs): New.
5149         (rs6000_isel_string): New.
5150         (UNITS_PER_SPE_WORD): New.
5151         (LOCAL_ALIGNMENT): Adjust for SPE.
5152         (HARD_REGNO_MODE_OK): Same.
5153         (DATA_ALIGNMENT): Same.
5154         (MEMBER_TYPE_FORCES_BLK): New.
5155         (FIRST_PSEUDO_REGISTER): Set to 113.
5156         (FIXED_REGISTERS): Add SPE registers.
5157         (reg_class): Same.
5158         (REG_CLASS_NAMES): Same.
5159         (REG_CLASS_CONTENTS): Same.
5160         (REGNO_REG_CLASS): Same.
5161         (REGISTER_NAMES): Same.
5162         (DEBUG_REGISTER_NAMES): Same.
5163         (ADDITIONAL_REGISTER_NAMES): Same.
5164         (CALL_USED_REGISTERS): Same.
5165         (CALL_REALLY_USED_REGISTERS): Same.
5166         (SPE_ACC_REGNO): New.
5167         (SPEFSCR_REGNO): New.
5168         (SPE_SIMD_REGNO_P): New.
5169         (HARD_REGNO_NREGS): Adjust for SPE.
5170         (VECTOR_MODE_SUPPORTED_P): Same.
5171         (REGNO_REG_CLASS): Same.
5172         (FUNCTION_VALUE): Same.
5173         (LIBCALL_VALUE): Same.
5174         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
5175         (SPE_VECTOR_MODE): New.
5176         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
5177         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
5178         (rs6000_stack): Add spe_gp_size, spe_padding_size,
5179         spe_gp_save_offset.
5180         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
5181         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5182         (SPE_CONST_OFFSET_OK): New.
5183         (rs6000_builtins): Add SPE builtins.
5184
5185         * testsuite/gcc.dg/ppc-spe.c: New.
5186
5187         * config/rs6000/eabispe.h: New.
5188
5189         * config/rs6000/spe.h: New.
5190
5191         * config/rs600/spe.md: New.
5192
5193         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5194         __SIMD__ for TARGET_SPE.
5195
5196         * config.gcc: Add powerpc-*-eabispe* case.
5197         Add spe.h to user headers for powerpc.
5198
5199 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5200
5201         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
5202         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5203         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
5204
5205 2002-07-24  Richard Henderson  <rth@redhat.com>
5206
5207         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
5208         form when not optimizing.
5209
5210 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
5211
5212         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
5213         thread_pointer_rtx as unchanging.
5214
5215 2002-07-24  Michael Matz  <matz@suse.de>
5216
5217         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
5218         (free_reg): Use it.
5219
5220 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
5221
5222         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
5223         pattern.
5224         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
5225         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
5226
5227 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
5228
5229         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
5230         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5231         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
5232
5233 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5234
5235         * toplev.c (rest_of_compilation): Dump loops before clobbering
5236         the structure.
5237
5238 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
5239
5240         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
5241
5242 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
5243
5244         PR optimization/7291
5245         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
5246         problem on x86_64.
5247
5248 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
5249
5250         * pretty-print.h: Add macros from cp/error.c
5251
5252 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5253
5254         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
5255         (mask64_2_operand): Declare.
5256         (build_mask64_2_operands): Declare.
5257         (and64_2_operand): Declare.
5258         (extract_MB): Declare.
5259         (extract_ME): Declare.
5260         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
5261         CONST_DOUBLE code.
5262         (mask_operand_wrap): New insn predicate.
5263         (mask64_2_operand): Likewise.
5264         (and64_2_operand): Likewise.
5265         (build_mask64_2_operands): New function.
5266         (extract_MB): New function.
5267         (extract_ME): New function.
5268         (print_operand <case m,M>): Use extract_MB and extract_ME.
5269         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
5270         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
5271         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
5272         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
5273         * config/rs6000/rs6000.md (andsi3_internal3): New
5274         (andsi3_internal3+1): Enable split for powerpc64.
5275         (andsi3_internal3+2): New split.
5276         (andsi3_internal4): Renamed old andsi3_internal3.
5277         (andsi3_internal5): New.
5278         (andsi3_internal5+1): Enable split for powerpc64.
5279         (andsi3_internal5+2): New split.
5280         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
5281         (anddi3): Handle 't' constraint.
5282         (anddi3+1): New split.
5283         (anddi3_internal2): Handle 't' constraint.
5284         (anddi3_internal2+1): New split.
5285         (anddi3_internal3): Handle 't' constraint.
5286         (anddi3_internal3+1): New split.
5287
5288 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
5289
5290         * config/rs6000/rs6000.md: Remove scratch reg on insns using
5291         addze and similar (plus (comparison r1 r2) r3) insns.  Add
5292         missing scratch reg in one case.  Formatting fixes.
5293
5294 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
5295
5296         * cppexp.c (parse_defined): Mark macro used.
5297         * cpphash.h (struct cpp_macro): New member "used".
5298         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5299         (struct cpp_reader): New member.
5300         * cppinit.c (cpp_finish_options): Set first_unused_line.
5301         (cpp_finish): Warn of unused macros if requested.
5302         (OPT_TABLE): New switches.
5303         (cpp_handle_option): Handle them.
5304         * cpplib.c (do_undef): Warn if macro unused.
5305         (do_ifdef, do_ifndef): Mark macro used.
5306         * cpplib.h (struct cpp_options): New member.
5307         * cppmacro.c (_cpp_warn_if_unused_macro): New.
5308         (enter_macro_context): Mark macro used.
5309         (_cpp_create_definition): Mark macro unused; warn if unused
5310         when redefined.
5311         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5312         Mark macros used.
5313         * doc/cppopts.texi: Update.
5314
5315 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5316
5317         * dwarf2out.c (SECTION_ASM_OP,
5318         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5319         * system.h (SECTION_ASM_OP): Poison.
5320         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
5321         * config/alpha/alpha-interix.h, config/mips/linux.h
5322         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5323         * config/mmix/mmix-protos.h, config/mmix/mmix.c
5324         (mmix_asm_output_define_label_difference_symbol): Remove.
5325         * config/mmix/mmix.h
5326         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5327         * doc/tm.texi: Remove documentation.
5328
5329 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5330
5331         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
5332         (constrain_operands): Likewise.
5333         * regclass.c (record_reg_classes): Likewise.
5334         * reload.c (find_reloads): Likewise.
5335         * doc/md.texi: Likewise.
5336
5337         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
5338         * simplify-rtx.c (simplify_subreg): When converting to a non-int
5339         mode, try to convert to an integer mode of matching size first.
5340
5341         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
5342         from individual subregs, check that each subreg has been generated
5343         sucessfully.
5344
5345 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5346
5347         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
5348         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
5349         FOR_EACH_BB_IN_SBITMAP): Remove.
5350         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
5351         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
5352         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
5353         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
5354         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
5355         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
5356
5357 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5358
5359         * pretty-print.h: New file.
5360
5361 2002-07-23      Paul Koning     <pkoning@equallogic.com>
5362
5363         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
5364         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5365         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
5366         (TARGET_G_FLOAT): Default to 0 if not defined.
5367         (ieeetoe): New, common routine to convert target format floats
5368         to internal form.
5369         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
5370         vs. others.
5371         (e113toe): Change to use ieeetoe.
5372
5373 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5374
5375         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
5376         IBM.
5377         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
5378         (e64toe): Remove special cases for DEC and IBM. Remove support for
5379         ARM_EXTENDED_IEEE_FORMAT.
5380         (e24toe): Remove special cases for DEC.
5381         (significand_size): Simplify. Indent.
5382         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
5383         (etoieee, toieee): New.
5384         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
5385         etoieee and toieee for IEEE arithmetic.
5386
5387 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5388
5389         * doc/extend.texi: Say ISO C90, not ISO C89.
5390         * doc/invoke.texi: Likewise.
5391         * doc/standards.texi: Likewise.
5392
5393 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
5394
5395         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
5396         Fix permutation of conversion and plus/mult.
5397         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
5398         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
5399         (expand_builtin_strncpy) Ditto.
5400         (expand_builtin_memset) Ditto.
5401
5402 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
5403
5404         Fix PR/7363:
5405         * c-common.c (c_sizeof_or_alignof_type): New function.
5406         (c_alignof): Remove definition.
5407         * c-common.h (c_sizeof, c_alignof): Define as macros.
5408         (c_sizeof_or_alignof_type): Declare.
5409         (my_friendly_assert): Moved from cp/cp-tree.h
5410         * c-typeck.c (c_sizeof): Remove definition.
5411
5412 2002-07-23  Jan Hubicka  <jh@suse.cz>
5413
5414         * gcse.c (try_replace_reg): Use num_changes_pending.
5415         * recog.c (num_changes_pending): New function.
5416         (validate_replace_src): Use validate_repalce_src_group.
5417         (validate_replace_src_group): New.
5418         * recog.h (validate_repalce_src_group): New.
5419         (num_changes_pending): Likewise.
5420
5421 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
5422
5423         * calls.c (emit_library_call_value_1): If
5424         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
5425         libcall, const call nor pure call.
5426
5427 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5428
5429         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
5430
5431 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5432
5433         * vmsdbgout.c (SECTION_ASM_OP): Remove.
5434
5435 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5436
5437         * config/i386/i386.c (AT_BP): Remove.
5438
5439 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
5440
5441         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
5442         Default definition.
5443         * gcse.c: Don't define obstack_chunk_free.
5444         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
5445         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
5446         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
5447         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
5448         Don't define obstack macros.
5449
5450 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5451
5452         PR target/6744
5453         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
5454         ASM_OPERANDS instructions.
5455
5456 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
5457
5458         PR target/7361
5459         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
5460         constant addresses only on 68HC12.
5461
5462 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5463
5464         * cppfiles.c (stack_include_file): Correct test of whether
5465         a dependency should be output.
5466
5467 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
5468
5469         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
5470
5471 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
5472
5473         * arm.md (movqi): If optimizing and we can create pseudos, use
5474         a ZERO_EXTEND to load from memory, then copy the result into the
5475         target.
5476         (movhi): Likewise, but only for ARMv4.
5477
5478 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
5479
5480         * ssa-ccp.c (PHI_PARMS): Remove.
5481
5482 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
5483
5484         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
5485         on big-endian targets.
5486
5487 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5488
5489         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
5490         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
5491         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
5492         New formatting macros.
5493
5494         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
5495
5496 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
5497
5498         * rtlanal.c (subreg_regno_offset): Return correct offset for
5499         big endian paradoxical subregs.
5500
5501         * optabs.c (expand_vector_unop): Don't expand using sub_optab
5502         if we got the wrong mode.
5503
5504         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
5505         * genrecog.c (write_switch, write_cond): Use it.
5506         * genemit.c (gen_exp): Likewise.
5507
5508 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5509
5510         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
5511
5512 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
5513
5514         * c-decl.c (build_compound_literal): Defer compound literal decls
5515         until until file end to emit them only if they are actually used.
5516
5517 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5518
5519         * ra-build.c (check_conflict_numbers): Hide unused function.
5520         (livethrough_conflicts_bb): Avoid automatic aggregate
5521         initialization.
5522         (parts_to_webs_1): Avoid `U' integer constant modifier.
5523         (conflicts_between_webs): Wrap a variable in the macro controlling
5524         its usage.
5525         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
5526         (dump_igraph, dump_graph_cost): Avoid string concatenation
5527         (dump_static_insn_cost): Avoid automatic aggregate
5528         initialization.
5529         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
5530         initialization.
5531         (dump_cost): Avoid string concatenation
5532
5533 2002-07-21  Richard Henderson  <rth@redhat.com>
5534
5535         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
5536         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
5537
5538 2002-07-21  Richard Henderson  <rth@redhat.com>
5539
5540         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
5541         that are not unrolled completely.
5542
5543 2002-07-21  Richard Henderson  <rth@redhat.com>
5544
5545         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
5546         * loop.c (strength_reduce): Update.
5547         * toplev.c (rest_of_compilation): Do unrolling in the first
5548         loop pass, not the second.
5549
5550 2002-07-21  Richard Henderson  <rth@redhat.com>
5551
5552         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
5553         when flag_argument_noalias == 2.
5554         * alias.c (nonoverlapping_memrefs_p): Handle that.
5555         * print-rtl.c (print_mem_expr): Likewise.
5556
5557 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
5558
5559         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
5560         instead of __negdi2 directly.
5561
5562 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5563
5564         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
5565         * function.c (SYMBOL__MAIN): Remove definition.
5566         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
5567         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
5568         * profile.c (GCOV_INDEX_TO_BB): Remove.
5569         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
5570         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
5571
5572 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5573
5574         * c-lex.c (GET_ENVIRONMENT): Remove.
5575         * collect2.c (GET_ENV_PATH_LIST): Remove.
5576         (prefix_from_env): Use GET_ENVIRONMENT.
5577         * cppinit.c (GET_ENV_PATH_LIST): Remove.
5578         (init_standard_includes): Use GET_ENVIRONMENT.
5579         * defaults.h (GET_ENVIRONMENT): Define here if not already.
5580         * gcc.c (GET_ENV_PATH_LIST): Remove.
5581         (make_relative_prefix, process_command): Update.
5582         * protoize.c (GET_ENV_PATH_LIST): Remove.
5583         (do_processing): Update.
5584
5585 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
5586
5587         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
5588         (grokdeclarator): Likewise.
5589         * c-format.c (C_STD_NAME): Likewise.
5590         * c-lex.c (interpret_integer): Likewise.
5591         * c-typeck.c (build_array_ref): Likewise.
5592         * cpplex.c (_cpp_lex_direct): Likewise.
5593         * toplev.c (documented_lang_options): Likewise.
5594
5595 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5596
5597         * c-format.c (T99_I, T99_UI): Remove.
5598
5599 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
5600
5601         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
5602
5603 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5604
5605         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
5606         do_local_cprop.
5607
5608 2002-07-21  Andreas Jaeger  <aj@suse.de>
5609
5610         * reload1.c (fixup_abnormal_edges): Remove unused variable.
5611
5612 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
5613
5614         Improvements for the ifcvt pass from Michael Meissner, with patches
5615         by Richard Sandiford <rsandifo@redhat.com>
5616         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
5617         * ifcvt.c (cond_exec_changed_p): New static variable.
5618         (last_active_insn): New function, renamed from last_active_insn_p
5619         and changed to return the last active insn in a basic block. All
5620         callers updated.
5621         (block_fallthru): New function.
5622         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
5623         IFCVT_MODIFY_INSN.  All callers updated.
5624         Return false if START or END are NULL.
5625         Handle case where we're processing an insn that is already
5626         conditional.
5627
5628         (noce_process_if_block): CE_INFO argument rather than
5629         multiple args containing the involved basic blocks.  All callers
5630         changed.
5631         (process_if_block, merge_if_block, find_if_block,
5632         cond_exec_process_if_block): Likewise.
5633
5634         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
5635         changed.
5636         Use new function last_active_insn to simplify some code.
5637         New code to handle multiple tests.
5638         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
5639         cond_exec_changed_p to TRUE.
5640
5641         (process_if_block): New code to handle multiple tests.
5642         (merge_if_block): Likewise.
5643         (find_if_header): New arg PASS.  Changed to return the currently
5644         processed basic block or NULL instead of true/false. All callers
5645         changed.
5646         Call IFCVT_INIT_EXTRA_FIELDS.
5647         (block_jumps_and_fallthru_p): New function.
5648         (find_if_block): Discover opportunities to convert multiple tests.
5649         Add additional debugging output.
5650         Update the ce_info structure before returning.
5651
5652         (if_convert): Run multiple passes of if-conversion.
5653         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
5654         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
5655         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
5656         these macros.
5657
5658 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
5659
5660         * gcse.c: Include cselib.h
5661         (constptop_register): Break out from ...
5662         (cprop_insn): ... here; kill basic_block argument.
5663         (do_local_cprop, local_cprop_pass): New functions.
5664         (one_cprop_pass): Call local_cprop_pass.
5665
5666 2002-07-20  Roger Sayle  <roger@eyesopen.com>
5667
5668         * simplify-rtx.c (simplify_relational_operation): Optimize
5669         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
5670
5671 2002-07-20  Michae Matz  <matz@suse.de>
5672
5673         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
5674
5675 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
5676
5677         * cppexp.c (struct op): Add token pointer.
5678         (check_promotion, CHECK_PROMOTION): New.
5679         (optab): Update.
5680         (_cpp_parse_expr): Update, use token pointer of struct op.
5681         (reduce): Warn about change of sign owing to promotion.
5682         * cppinit.c (cpp_handle_option): New warning if -Wall.
5683         * cpplib.h (struct cpp_options): New member.
5684
5685 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
5686
5687         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
5688         fpu list.  Separate Power4 compare and delayed_compare.  Correct
5689         Power4 fpcompare.
5690         (fix_truncdfsi2_internal): Restore FPR preference.
5691         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
5692         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
5693
5694 2002-07-19  Momchil Velikov <velco@fadata.bg>
5695
5696         * reload1.c (reload_as_needed): Duplicate oldpat.
5697
5698 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
5699
5700         PR optimization/7130
5701         * loop.h (struct loop_info): Add "preconditioned".
5702         * unroll.c (unroll_loop): Set it.
5703         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
5704
5705 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
5706
5707         * rtl.def (CODE_LABEL): Remove slot 8.
5708         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
5709         (LABEL_ALTERNATE_NAME): Delete.
5710         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
5711         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5712
5713         * final.c (output_alternate_entry_point): New.
5714         (final_scan_insn): Use it instead of
5715         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
5716         of a case label being an alternate entry point.
5717
5718         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
5719         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
5720         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
5721         (field deleted).
5722         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
5723
5724         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
5725         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
5726         * doc/tm.texi: Delete documentation of
5727         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5728
5729 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5730
5731         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
5732         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
5733         (LINK_SPEC): Define.
5734         (STARTFILE_SPEC): Define.
5735         (ENDFILE_SPEC): Define.
5736
5737         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
5738         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
5739
5740         * config/mips/iris6-o32-gas.h: New file.
5741         * config.gcc (mips-sgi-irix6*o32): Use it.
5742
5743         * config/mips/t-iris5-gas: New file.
5744         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5745
5746 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
5747
5748         * cppexp.c (ALWAYS_EVAL): Remove.
5749         (optab, reduce): Always evaluate.
5750         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
5751         only if not skipping evaluation.
5752
5753 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5754
5755         * config/avr/avr.c (debug_hard_reg_set): Remove.
5756
5757 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
5758
5759         * gcc.c (cpp_options): Include "%1" (cc1_spec).
5760
5761 2002-07-19  Richard Henderson  <rth@redhat.com>
5762
5763         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
5764
5765 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
5766
5767         * prefix.c (update_path): Don't zap single `.' path components
5768         unless followed by another `.' and fix typo last patch.
5769
5770 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
5771
5772         * cppexp.c (cpp_num_mul): Remove unused parameter.
5773         (UNARY, BINARY, OTHER, binary_handler): Remove.
5774         (ALWAYS_EVAL): New.
5775         (optab): Update.
5776         (reduce): Refactor to a large switch, don't use a function
5777         pointer.
5778
5779 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
5780
5781         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
5782
5783 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5784
5785         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
5786         (sh_expand_binop_v2sf): Likewise.
5787         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
5788         (int_gpr_dest, trunc_hi_operand): New functions.
5789         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
5790         trunc_hi_operand.
5791         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
5792         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
5793         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
5794         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
5795         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
5796         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
5797         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
5798         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
5799         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
5800         (movsf_ie+1): Likewise.
5801         (loaddi_trunc): Use int_gpr_dest predicate.
5802         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
5803         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
5804         (casesi_worker_0+[12], casesi_worker): Likewise.
5805         (shcompact_preserve_incoming_args): Likewise.
5806         (mov_nop): Use any_register_operand predicate.
5807         (mperm_w0): Use trunc_hi_operand predicate.
5808
5809 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5810
5811         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
5812         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
5813         numbering.
5814
5815 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5816
5817         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
5818
5819 2002-07-18  Richard Henderson  <rth@redhat.com>
5820
5821         PR optimization/7147
5822         * ifcvt.c (noce_get_condition): Make certain that the condition
5823         is valid at JUMP.
5824
5825 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
5826
5827         * sh.c (barrier_align, push): Shut up compiler warnings.
5828         (initial_elimination_offset,sh_media_init_builtins): Likewise.
5829         (reg_no_subreg_operand): Delete.
5830
5831 2002-07-17  Bo Thorsen  <bo@suse.de>
5832
5833         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
5834         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
5835         (STARTFILE_SPEC): Remove hardcoded library paths.
5836         (ENDFILE_SPEC): Likewise.
5837
5838 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
5839
5840         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
5841
5842         * gcse.c (try_replace_reg): Do not return false positives.
5843
5844 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5845
5846         * prefix.c: (update_path): Strip ".." components when prior dir
5847         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
5848
5849         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
5850         (ASM_OUTPUT_REG_POP): Likewise.
5851
5852 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5853
5854         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
5855         adjustments to first_reg for profiling case.
5856         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
5857         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
5858         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
5859         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
5860         (ASM_OUTPUT_REG_POP): Define.
5861         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
5862         (ASM_OUTPUT_REG_POP): Undef.
5863
5864 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5865
5866         * cpplib.c (do_sccs): Handle #sccs on all systems.
5867         * system.h (SCCS_DIRECTIVE): Poison.
5868         * config/darwin.h, config/freebsd.h, config/netbsd.h,
5869         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
5870         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
5871         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
5872         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
5873         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
5874         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
5875         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
5876         Remove all references to SCCS_DIRECTIVE.
5877         * doc/cpp.texi, doc/tm.texi: Update.
5878
5879 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
5880
5881         * regrename.c (maybe_mode_change): New function.
5882         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
5883
5884 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
5885
5886         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
5887         suppress addition when either ct or cf are zero.
5888
5889 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
5890             Glen Nakamura <glen@imodulo.com>
5891
5892         PR optimization/6713
5893         * loop.c (loop_givs_rescan): Explicitly delete the insn that
5894         sets a non-replaceable giv after issuing the new one.
5895
5896 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5897
5898         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
5899         eval_token): Clarify and correct use of "bool" variables.
5900         * cpplib.h (struct cpp_options): Similarly.
5901         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
5902         * cpptrad.c (recursive_macro): Similarly.
5903
5904 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
5905
5906         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
5907         SHmedia code.
5908
5909         * sh.md (cmpgtudi_media): Remove spurious @.
5910
5911         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
5912         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
5913
5914         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
5915         * sh-protos.h (sh_initialize_trampoline): Declare.
5916         * sh.c (sh_initialize_trampoline): New function.
5917         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
5918         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
5919         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
5920         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
5921         * sh.md (initialize_trampoline, double_shori): New patterns.
5922         (initialize_trampoline_compact): Likewise.
5923         (shmedia32_initialize_trampoline_big): Remove.
5924         (shmedia32_initialize_trampoline_little): Likewise.
5925
5926         * sh-protos.h (binary_float_operator): Remove declaration.
5927         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
5928         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
5929         (unary_float_operator, sh_expand_unop_v2sf): New functions.
5930         (sh_expand_binop_v2sf): Likewise.
5931         (zero_vec_operand): Delete.
5932         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
5933         all non-shared ones.
5934         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
5935         Enable nsb and byterev.
5936         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
5937         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
5938         in general regs.
5939         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
5940         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
5941         immediate operands.
5942         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
5943         Add DF_HI_REGS.
5944         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
5945         lowpart fp regs - only for big endian for now.
5946         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
5947         when FPU is in use.
5948         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
5949         (LOAD_EXTEND_OP): NIL for SImode.
5950         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
5951         general and fp registers is 4.
5952         PREDICATE_CODES: Amend binary_float_operator entry.
5953         Remove zero_vec_operand.  Add unary_float_operator.
5954         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
5955         subreg SET_DEST.
5956         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
5957         (truncdiqi2): Do sign extension.
5958         (movsi_media, movdi_media): Allow to use r63 to an fp register.
5959         (movdf_media, movsf_media): Likewise.
5960         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
5961         Collapse to one define_insn_and_split.  Allow immediate sources.
5962         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
5963         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
5964         (movv4sf): Allow immediate sources.
5965         (movsf_media_nofpu+1): Don't split moves to FP registers.
5966         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
5967         (movv8qi_i+3): Check against CONST0_RTX.
5968         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
5969         for input and output operands.  Fix argument 3 to gen_mextr_rl.
5970         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
5971         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
5972         (mshf0_w, fipr, ftrv): Likewise.
5973         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
5974
5975 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5976
5977         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
5978         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
5979         * arm.c: Similarly.
5980
5981 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
5982
5983         * config/mips/mips-protos.h (mips_sign_extend): Declare.
5984         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
5985         (TARGET_SWITCHES): Remove debugh.
5986         (ISA_HAS_TRUNC_W): New macro.
5987         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
5988         (PREDICATE_CODES): Remove se_nonimmediate_operand.
5989         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
5990         any SImode move_operand.
5991         (se_nonimmediate_operand): Remove.
5992         (mips_sign_extend): New.
5993         (mips_move_2words): Use it for sign-extended source operands.
5994         (override_options): Allow integers to be put into single FPRs.
5995         (mips_secondary_reload_class): Handle integers in float registers.
5996         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
5997         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
5998         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
5999         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
6000         (fix_truncdfdi2): Provide only a single alternative, in which the
6001         integer is in a float register.  Depend on TARGET_FLOAT64 rather
6002         than TARGET_64BIT.
6003         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
6004         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
6005         (movdi_internal2): Don't allow the source operand to be sign-extended.
6006         Add alternatives for float registers.
6007         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
6008         allows sign-extension.
6009         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
6010         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
6011         float registers.  Remove TARGET_DEBUG_H_MODE test.
6012         (movhi_internal1): Rename to movhi_internal.  Don't check
6013         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
6014         (movqi_internal1): Rename to movqi_internal and remove
6015         TARGET_DEBUG_H_MODE dependency.
6016         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
6017
6018 2002-07-16  Jim Wilson  <wilson@redhat.com>
6019
6020         * toplev.c (lang_dependent_init): Create function context for
6021         init_expr_once.
6022
6023 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
6024
6025         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
6026         --gc-sections if -r.
6027         * config/cris/cris.h: Ditto.
6028
6029 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
6030
6031         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
6032         the comparison directly gives a mask suppress addition when cf is
6033         zero by complementing the mask.
6034
6035 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6036
6037         * Makefile.in: Delete references to enquire.
6038         * enquire.c: Move to contrib.
6039
6040 2002-07-16  Stan Shebs  <shebs@apple.com>
6041
6042         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
6043         config/rs6000/darwin.h.
6044         (ASM_OUTPUT_SKIP): Ditto.
6045         (TEXT_SECTION_ASM_OP): Ditto.
6046         (DATA_SECTION_ASM_OP): Ditto.
6047         (ASM_APP_ON): Define.
6048         (ASM_APP_OFF): Define.
6049         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
6050         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
6051
6052         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
6053         (machopic_function_base_name): Declare result to be const.
6054         (machopic_non_lazy_ptr_name): Ditto.
6055         (machopic_stub_name): Ditto.
6056         * config/darwin-protos.h: Ditto for the prototypes.
6057
6058 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6059
6060         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
6061
6062 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
6063
6064         * i386.md (prefetch): Fix for 64bit mode.
6065         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6066
6067 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
6068
6069         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
6070         * i386.c (x86_machine_dependent_reorg): New function.
6071         * i386-protos.h (x86_machine_dependent_reorg): Declare.
6072
6073 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
6074
6075         * builtins.c (std_expand_builtin_va_start): Remove unused
6076         first argument.
6077         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6078         std_expand_builtin_va_start with just two arguments.
6079         * expr.h: Update prototypes.
6080
6081         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6082         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6083         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6084         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6085         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6086         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6087         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6088         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6089         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
6090         argument from all implementations of EXPAND_BUILTIN_VA_START
6091         and all uses of std_expand_builtin_va_start.
6092
6093 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6094
6095         * regrename.c (copy_value): Don't record high part copies.
6096
6097 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6098
6099         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6100         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6101         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6102
6103 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6104
6105         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6106
6107         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6108         into addsi3 using register class "x" and "y".
6109
6110         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
6111         "earlyclobber" constraint modifier for some alternative.
6112
6113         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
6114         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
6115         unordered.
6116         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
6117
6118         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
6119         (TARGET_SWITCHES): Add -mieee-compare option.
6120         (OVERRIDE_OPTIONS): 32332 is a subset of
6121         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
6122         (TARGET_SWITCHES): Fix description of bitfield option.
6123         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
6124         -mieee-compare option. Remove 32332 flag.
6125
6126 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6127
6128         * explow.c (convert_memory_address): Remove special handling
6129         when POINTERS_EXTEND_UNSIGNED < 0.
6130         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
6131         (movedi_symbolic): Fix typo.
6132         (load_fptr): Remove mode restriction so it works for SI and DI.
6133         (load_fptr_internal1): Ditto.
6134         (load_gprel): Ditto.
6135         (load_symptr_internal1): Ditto.
6136         (call_pic): Ditto.
6137         * config/ia64.c (call_operand): Modify mode check.
6138         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
6139         (ia64_expand_move): Ditto.
6140         (ia64_assemble_integer): Handle SImode function pointers.
6141         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
6142         (ia64_expand_op_and_fetch): Ditto.
6143         (ia64_expand_compare_and_swap): Ditto.
6144         (ia64_expand_lock_test_and_set): Ditto.
6145         (ia64_expand_lock_release): Ditto.
6146
6147 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6148
6149         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
6150
6151 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6152             Richard Earnshaw  <rearnsha@arm.com>
6153
6154         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
6155         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
6156
6157 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
6158
6159         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
6160         understands to be a memory clobber.
6161         * arm.c (arm_expand_prologue): Use it.
6162
6163 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
6164
6165         * ra-rewrite.c: #include reload.h, insn-config.h
6166         * ra-build.c: #include reload.h
6167         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
6168         depend on reload.h, insn-config.h.
6169
6170 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
6171
6172         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
6173         the same size as a word.
6174
6175         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
6176         BYTES_BIG_ENDIAN into account.
6177
6178 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
6179
6180         * i386.md (prefetch): Fix for 64bit mode.
6181         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6182
6183         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
6184
6185 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6186
6187         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
6188
6189 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
6190
6191         * ginclude/varargs.h: Replace with stub which issues #error.
6192         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
6193         __builtin_va_start.
6194
6195         * builtins.def (BUILT_IN_VARARGS_START): Delete.
6196         (BUILT_IN_VA_START): New.
6197         * builtins.c (expand_builtin_va_start): Eliminate first
6198         argument and code to implement pre-ISO varargs.
6199         (std_expand_builtin_va_start): Ignore first argument; it is
6200         always 1.
6201         (expand_builtin): Handle BUILT_IN_VA_START and
6202         BUILT_IN_STDARG_START identically.  Delete
6203         BUILT_IN_VARARGS_START case.
6204
6205         * function.c (assign_parms): Delete hide_last_arg and all
6206         its uses.
6207         (mark_varargs): Delete function.
6208         * function.h (struct function): Delete 'varargs' bit.
6209         (current_function_varargs): Delete macro.
6210         * tree.h: Don't declare mark_varargs.
6211
6212         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
6213         (c_expand_body): Don't call mark_varargs.
6214         * c-objc-common.c: Handle BUILT_IN_VA_START and
6215         BUILT_IN_STDARG_START identically.  Delete
6216         BUILT_IN_VARARGS_START case.
6217         * c-tree.h: Don't declare c_mark_varargs.
6218         * c-parse.in: Remove grammar rules for '&...' (which has been
6219         commented out since before 2.7.2) and for '...' in K+R
6220         argument declarations.
6221
6222         * builtins.c, function.c, integrate.c, sibcall.c,
6223         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
6224         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
6225         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
6226         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
6227         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6228         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
6229         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
6230         config/stormy16/stormy16.c: Delete all references to
6231         current_function_varargs, and code predicated on that flag.
6232
6233         * config/alpha/alpha.c (alpha_va_start),
6234         config/arc/arc.c (arc_va_start),
6235         config/i386/i386.c (ix86_va_start),
6236         config/mips/mips.c (mips_va_start),
6237         config/mn10300/mn10300.c (mn10300_va_start),
6238         config/rs6000/rs6000.c (rs6000_va_start),
6239         config/s390/s390.c (s390_va_start),
6240         config/sh/sh.c (sh_va_start),
6241         Ignore first argument; it is always 1.
6242
6243         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
6244         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
6245         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
6246         Delete m68hc11_va_start.
6247         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
6248         No need to define EXPAND_BUILTIN_VA_START.
6249
6250         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
6251         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
6252
6253 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
6254
6255         PR optimization/7153
6256         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
6257         dies in more than one insn.
6258
6259 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
6260
6261         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6262
6263 2002-07-15  Michael Matz  <matz@suse.de>,
6264             Daniel Berlin  <dberlin@dberlin.org>,
6265             Denis Chertykov  <denisc@overta.ru>
6266
6267         Add a new register allocator.
6268
6269         * ra.c: New file.
6270         * ra.h: New file.
6271         * ra-build.c: New file.
6272         * ra-colorize.c: New file.
6273         * ra-debug.c: New file.
6274         * ra-rewrite.c: New file.
6275
6276         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
6277         (ra-rewrite.o): New .o files for libbackend.a.
6278         (GTFILES): Add basic-block.h.
6279
6280         * toplev.c (flag_new_regalloc): New.
6281         (f_options): New option "new-ra".
6282         (rest_of_compilation): Call initialize_uninitialized_subregs()
6283         only for the old allocator.  If flag_new_regalloc is set, call
6284         new allocator, instead of local_alloc(), global_alloc() and
6285         friends.
6286
6287         * doc/invoke.texi: Document -fnew-ra.
6288         * basic-block.h (FOR_ALL_BB): New.
6289         * config/rs6000/rs6000.c (print_operand): Write small constants
6290         as @l+80.
6291
6292         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6293         (df_reg_table_realloc): Make size at least as large as max_reg_num().
6294         (df_insn_table_realloc): Size argument now is absolute, not relative.
6295         Changed all callers.
6296
6297         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6298         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6299
6300         2002-06-20  Michael Matz  <matz@suse.de>
6301
6302         * df.h (struct ref.id): Make unsigned.
6303         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6304
6305         2002-06-13  Michael Matz  <matz@suse.de>
6306
6307         * df.h (DF_REF_MODE_CHANGE): New flag.
6308         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6309         involving subregs with invalid mode changes, when
6310         CLASS_CANNOT_CHANGE_MODE is defined.
6311
6312         2002-05-07  Michael Matz  <matz@suse.de>
6313
6314         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
6315
6316         2002-05-03  Michael Matz  <matz@suse.de>
6317
6318         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
6319
6320         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
6321
6322         * regclass.c (regclass): Work with all regs which have sets or
6323         refs.
6324         (reg_scan_mark_refs): Count regs inside (clobber ...).
6325
6326         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
6327
6328         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
6329         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
6330         add new refs.
6331         (df_bb_refs_update): Don't clear insns_modified here, ...
6332         (df_analyse): ... but here.
6333
6334         * sbitmap.c (dump_sbitmap_file): New.
6335         (debug_sbitmap): Use it.
6336
6337         * sbitmap.h (dump_sbitmap_file): Add prototype.
6338
6339         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
6340
6341         * df.c (df_insn_modify): Grow the UID table if necessary, rather
6342         than assume all emits go through df_insns_modify.
6343
6344         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
6345
6346         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
6347         increase REG_N_REFS (like flow does), so that regclass doesn't
6348         think a reg is useless, and thus, not calculate a class, when it
6349         really should have.
6350
6351         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
6352
6353         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
6354         dataflow analysis.
6355
6356 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
6357
6358         PR middle-end/7245
6359         * config/i386/i386.c (const_int_1_31_operand): New.
6360         * config/i386/i386.h (PREDICATE_CODES): Add it.
6361         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
6362         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
6363         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
6364
6365 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
6366
6367         PR target/7282
6368         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
6369         (floatunssidf2): Likewise.
6370         (floatsidf_ppc64): New insn_and_split.
6371         (floatunssidf_ppc64): Likewise.
6372
6373 2002-07-14  Andreas Jaeger  <aj@suse.de>
6374
6375         * config.gcc (sh64): Remove unused
6376         target_requires_64bit_host_wide_int.
6377
6378 2002-07-12  Roger Sayle  <roger@eyesopen.com>
6379
6380         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
6381         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
6382         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
6383         whether clear_by_pieces should be used to clear storage.
6384         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
6385
6386         * doc/tm.texi: Document these two new target macros.
6387
6388 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
6389
6390         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
6391         the scratch register.
6392         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
6393         of it, forbid reload to use it.
6394
6395 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6396
6397         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
6398         usage on 64-bit hosts, return value was truncated to 32 bits.
6399
6400 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
6401
6402         * simplify-rtx.c (simplify_subreg): Handle floating point
6403         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
6404         the element mode is requested, compute a subreg with an
6405         integer mode of the same size as the element mode first.
6406
6407 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6408
6409         * combine.c (try_combine): When converting a paradoxical subreg
6410         to an extension, take LOAD_EXTEND_OP into account.
6411
6412 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6413
6414         * config.gcc (mips-sgi-irix6*o32): New configuration.
6415
6416         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
6417         configurations.
6418         * configure: Regenerate.
6419
6420         * config/mips/iris6-o32-as.h: New file.
6421         * config/mips/iris6-o32.h: New file.
6422
6423         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
6424         (NM_FLAGS): Define.
6425         (HAVE_AS_SHF_MERGE): Undefine.
6426
6427         * config/mips/t-iris5-as: New file.
6428         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6429
6430         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
6431         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
6432         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
6433         dp-bit.c, fp-bit.c): Move ...
6434         * config/mips/t-iris5-6: ... here.
6435         New file, shared by IRIX 5 and IRIX 6.
6436         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
6437         mips-sgi-irix5*): Use it.
6438
6439         * config/mips/iris6.h: Remove duplicate comment.
6440
6441         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
6442         !TARGET_IRIX6]: Define.
6443         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
6444
6445         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
6446
6447 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6448
6449         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
6450         and delete code to force constant to register.
6451         * pa-protos.h (adddi3_operand): Add prototype.
6452         * pa.c (adddi3_operand): New function.
6453
6454 2002-07-11  Roger Sayle  <roger@eyesopen.com>
6455
6456         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
6457         non-ANSI builtin functions.
6458
6459 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
6460
6461         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
6462         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
6463         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
6464         (gen_const_vector_0): Use it.
6465
6466 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6467
6468         * pa.md (adddi3): For 32-bit targets, force constants to a register
6469         if they don't fit in an 11-bit immediate.  Change insn predicate to
6470         arith11_operand.  Remove comment.
6471         * pa.c (cint_ok_for_move): Fix comment.
6472         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
6473         targets.
6474
6475 2002-07-11  Tim Josling  <tej@melbpc.org.au>
6476
6477         Remove front end hard coding from gengtype.c.
6478
6479         * Makefile.in
6480         (STAGESTUFF): add gtyp-gen.h
6481         (GTFILES): Remove front end specific files.
6482         (GTFILES_FILES_LANGS): New, from configure..
6483         (GTFILES_FILES_FILES): Likewise.
6484         (GTFILES_LANG_DIR_NAMES): Likewise.
6485         (GTFILES_SRCDIR): Likewise.
6486         (gtyp-gen.h): Build from configure information.
6487         (s-gtype): Remove command line parameters from gengtype.
6488         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
6489         (mostlyclean): Delete files generated by and for gengtype.
6490
6491         * c-config-lang.in: New file.
6492
6493         * configure.in (all_gtfiles_files_langs): New. Accumulate files
6494         for each language.
6495         (all_gtfiles_files_files): New. Accumulate language for each file
6496         accumulated.
6497         (gtfiles): Pick up value for C.
6498         (srcdir): AC-SUBST this variable.
6499         (all_gtfiles_files_langs): AC-SUBST this variable.
6500         (all_gtfiles_files_files): AC-SUBST this variable.
6501
6502         * configure: Regenerate.
6503
6504         * gengtype-lex.l (parse_file): Make parameter const.
6505
6506         * gengtype.c (toplevel): include gtyp-gen.h.
6507         (BASE_FILE_<language> unnamed enum): Delete.
6508         (lang_names): Delete (replaced by gtyp-gen.h)
6509         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
6510         all references.
6511         (NUM_GT_FILES): New.
6512         (NUM_LANG_FILES): New.
6513         (srcdir_len): New.
6514         (NUM_BASE_FILES): Change calculation.
6515         (open_base_files): Change prototype to avoid warning.
6516         (startswith): Delete.
6517         (get_file_basename): Iterate through generated language list not
6518         hard coded list.
6519         (get_base_file_bitmap): Use generated list of files and languages.
6520         (close_output_files): Add prototype to rmove warning.
6521         (main): Iterate through list of generated files from gtyp-gen.h
6522         rather than command line paramaters.  Ignore duplicated file
6523         names.
6524
6525         * gengtype.h (parse_file): Amend prototype for const parameter.
6526
6527         * doc/sourcebuild.texi: Document gtfiles variable.
6528
6529         * doc/gty.texi: Document changes to gtfiles variable for front
6530         ends.
6531
6532         * objc/config-lang.in (gtfiles): Add files needed for objc front
6533         end.
6534
6535 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6536
6537         PR c/2454
6538         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
6539         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
6540
6541 2002-07-10  Roger Sayle  <roger@eyesopen.com>
6542             Zack Weinberg <zack@codesourcery.com>
6543
6544         * builtins.def: Make the argument types of abort and exit
6545         independent of the front-end.
6546
6547 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
6548
6549         * config/rs6000/linux64.h (ASM_SPEC): Define.
6550
6551 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
6552
6553         * config/rs6000/rs6000.c (emit_frame_save): New.
6554         (rs6000_frame_related): Replace reg2 before reg.
6555         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
6556         and eh_return registers.
6557
6558 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6559
6560         Revert all patches for optimization of Complex .op. Real.
6561         * complex_part_zero_p: Remove
6562         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
6563         with x.
6564         * expand_cmplxdiv_wide: Ditto.
6565         * expand_binop: Ditto.
6566
6567 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6568
6569         * config/avr/avr.md: Fix two 0x80000000 constants to make them
6570         negative also on 64-bit hosts.
6571
6572         Default to -fno-reorder-blocks when optimizing for size.
6573         * config/avr/avr-protos.h (avr_optimization_options): Declare.
6574         * config/avr/avr.c (avr_optimization_options): New function.
6575         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
6576
6577         Optimize returning from simple functions.
6578         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
6579         * config/avr/avr.c (avr_simple_epilogue): New function.
6580         * config/avr/avr.md (return): New insn.
6581
6582 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
6583
6584         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
6585         HAS_INIT_SECTION to protection.
6586
6587 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
6588
6589         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
6590         deprecated.
6591
6592 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
6593
6594         * combine.c (gen_lowpart_for_combine): Handle vector modes.
6595         Supply non-VOID mode to simplify_gen_subreg.
6596
6597 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
6598
6599         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
6600
6601 2002-07-10  Jeffrey A Law  <law@redhat.com>
6602
6603         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
6604         as appropriate.
6605
6606         * mn10200.c (expand_epilogue): Fix test to determine which scratch
6607         register to use.
6608
6609 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
6610
6611         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
6612         Get mode from dest.
6613         If simplify_gen_subreg fails, try next equivalent.
6614
6615 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
6616
6617         * diagnostic.h: #include location.h
6618         (location_t): Move definition to..
6619         * location.h: ... here.  New file.
6620         * tree.h: #include location.h
6621         (DECL_SOURCE_LOCATION): New macro.
6622         (DECL_SOURCE_FILE): Use.
6623         (DECL_SOURCE_LINE): Likewise.
6624         (struct tree_decl): REplace filename and linenum with locus.
6625         * Makefile.in (TREE_H): add location.h
6626         (diagnostic.o): Depends on gt-location.h
6627         (gt-location.h): Depends on s-gtype
6628
6629 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
6630
6631         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
6632         TARGET_OS_CPP_BUILTINS.
6633         * config/rs6000/aix31.h: Likewise.
6634         * config/rs6000/aix41.h: Likewise.
6635         * config/rs6000/aix43.h: Likewise.
6636         * config/rs6000/aix51.h: Likewise.
6637         * config/rs6000/beos.h: Likewise.
6638         * config/rs6000/darwin.h: Likewise.
6639         * config/rs6000/eabi.h: Likewise.
6640         * config/rs6000/eabisim.h: Likewise.
6641         * config/rs6000/linux.h: Likewise.
6642         * config/rs6000/linux64.h: Likewise.
6643         * config/rs6000/lynx.h: Likewise.
6644         * config/rs6000/mach.h: Likewise.
6645         * config/rs6000/rtems.h: Likewise.
6646         * config/rs6000/sysv4.h: Likewise.
6647         * config/rs6000/vxppc.h: Likewise.
6648
6649 2002-07-09 Devang Patel <dpatel@apple.com>
6650         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
6651         Do not allow ObjC objects as a parameter type for Objective-C methods.
6652         My previous patch restricted  'struct' also.
6653
6654 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
6655
6656         * cpperror.c (cpp_error): Default to directive_line within
6657         directives here.
6658         * cppexp.c (cpp_interpret_integer): Only use traditional
6659         number semantics in directives.
6660         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
6661         (do_include_common): Similarly.
6662         * cpptrad.c (scan_out_logical_line): Implement accurate
6663         quoting of <> in #include.
6664         * doc/cpp.texi: Update.
6665
6666 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
6667                           J"orn Rennecke <joern.rennecke@superh.com>
6668
6669         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
6670         * sh.md (attribute issues): Replace with:
6671         (attribute pipe_model).  All users changed.
6672         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
6673         All users changed.
6674         (function units sh5issue, sh5fds): New.
6675         (attribute is_mac_media): New.
6676         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
6677         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
6678         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
6679         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
6680         (call_media, call_value_media, sibcall_media): Likewise.
6681         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
6682         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
6683         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
6684         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
6685         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
6686         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
6687         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
6688         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
6689         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
6690         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
6691         (truncdfsf2_media): Likewise.
6692         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
6693         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
6694
6695 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
6696
6697         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
6698         * sh.c (general_extend_operand, inqhi_operand): New functions.
6699         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
6700         alternatives using 'N' modifier.  Add type.
6701         (adddi3z_media): Likewise.  Enable generator function generation.
6702         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
6703         exact predicates / constraints.  Add type.
6704         (subsi3): Allow 0 for SHMEDIA.
6705         (udivsi3_i4_media): Use match_operand for input values
6706         rather than hard registers.
6707         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6708         unnecessarily through hard registers.  Keep copies of pseudo
6709         registers outside of the libcall sequence.
6710         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
6711         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
6712         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
6713         (extendhidi2, extendqidi2): Likewise.
6714         (andsi3_compact): Name.
6715         (andcdi3): Enable generator function generation.
6716         (zero_extendhisi2, zero_extendqisi2): Rename to
6717         (zero_extendhisi2_compact, zero_extendqisi2_compact).
6718         (extendhisi2, extendqisi2): Rename to
6719         (extendhisi2_compact, extendqisi2_compact).
6720         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
6721         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
6722         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
6723         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
6724         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
6725         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
6726         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
6727         (shmedia32_initialize_trampoline_big): Likewise.
6728         (shmedia32_initialize_trampoline_little): Likewise.
6729         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
6730         (negdi2): Remove spurious T clobber.
6731         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
6732         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
6733         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
6734         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
6735         (ic_invalidate_line_media): Write back data cache before invalidating
6736         instruction cache.  Add type.
6737         (movsf_media): Sign-extend when the destination is a general
6738         purpose register.  Add type.
6739         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
6740         (casesi_worker_0+1): Only increment ref count for proper label.
6741         (casesi_worker_0+2): Likewise.
6742
6743 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
6744
6745         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
6746
6747 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
6748
6749         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
6750         from Pmode to ptr_mode.
6751         (get_exception_pointer): Ditto.
6752         (connect_post_landing_pads): Ditto.
6753         (dw2_build_landing_pads): Ditto.
6754
6755 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
6756         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
6757         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
6758         (handle_pragma_redefine_extname): Change to use new function.
6759
6760 2002-07-08  Roger Sayle  <roger@eyesopen.com>
6761
6762         * combine.c (combine_simplify_rtx): Add an explicit cast
6763         to avoid signed/unsigned comparison warning.
6764         (simplify_if_then_else): Likewise.
6765         (extended_count): Likewise.
6766         (simplify_shift_const): Likewise.
6767         (simplify_comparison): Likewise.
6768
6769 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
6770
6771         * config/mips/mips.md: Add imadd type.  Update scheduler description
6772         to use imadd as well as imul.
6773         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
6774         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
6775         (*mul_sub_si): Likewise for first alternative.  Change second
6776         alternative from imul to multi.
6777
6778 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
6779
6780         * c-common.c (c_common_post_options): Update prototype;
6781         don't init backends if preprocessing only.
6782         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
6783         * langhooks.h (struct lang_hooks): Update post_options to
6784         return a boolean.
6785         * toplev.c (parse_options_and_default_flags, do_compile,
6786         lang_independent_init): Update prototypes.  Allow the
6787         front end to specify that there is no need to initialize
6788         the back end.
6789         (general_init): Move call to hex_init here...
6790         (toplev_main): ...from here.  Pass flag for back end init
6791         suppression.
6792
6793 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6794
6795         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
6796         (PREDICATE_CODES): Add entries for equality_comparison_operator,
6797         greater_comparison_operator and less_comparison_operator.
6798         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
6799         more operators.
6800         (equality_comparison_operator): New function.
6801         (greater_comparison_operator, less_comparison_operator): Likewise.
6802         * sh.md (beq_media_i): Disable generator function generation.
6803         Use match_operator to handle a whole class of comparisons.  Add
6804         modifier in output template to provide branch prediction.  Add type.
6805         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
6806         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
6807         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
6808         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
6809
6810 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
6811
6812         Emit MMIX function prologue and epilogue as rtl.
6813         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
6814         not unprototyped get_hard_reg_initial_val.
6815         ("call_value", "nonlocal_goto_receiver"): Ditto.
6816         ("return"): Make define_expand.  Move real insn to...
6817         ("*expanded_return"): New pattern.
6818         ("prologue", "epilogue"): New define_expands.
6819         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
6820         (struct machine_function): New member in_prologue.
6821         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
6822         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
6823         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
6824         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
6825         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
6826         (LOCAL_REGNO): Define.  Adjust comment.
6827         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
6828         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
6829         leaf_function_p.
6830         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
6831         the prologue.
6832         (mmix_target_asm_function_prologue): Make static.  Just mark that
6833         the prologue is being emitted.  Move guts to...
6834         (mmix_expand_prologue): New function.  Adjust for emitting
6835         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
6836         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
6837         \n.  Move guts to...
6838         (mmix_expand_epilogue): New function.  Adjust for emitting
6839         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
6840         (mmix_target_asm_function_end_prologue): Mark that the prologue
6841         has ended.
6842         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
6843         (mmix_conditional_register_usage): Improve comments.
6844         (mmix_local_regno): New function.
6845         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
6846         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
6847         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
6848         (mmix_get_hard_reg_initial_val): Ditto.
6849
6850 2002-07-06  Andreas Jaeger  <aj@suse.de>
6851
6852         * toplev.c (set_fast_math_flags): Don't use ISO C style function
6853         definitions.
6854         * gengtype.c (open_base_files): Likewise.
6855         (close_output_files): Likewise.
6856         * tracer.c (find_best_predecessor): Likewise.
6857         (find_best_successor): Likewise.
6858         (ignore_bb_p): Likewise.
6859
6860 2002-07-05  Roger Sayle  <roger@eyesopen.com>
6861
6862         PR c++/7099
6863         * builtin-attrs.def: Define new attribute lists for use in
6864         builtins.def.
6865         * builtins.def [DEF_BUILTIN]: Modify to take an additional
6866         ATTRS argument, an enumerated value defined in builtin-attrs.def
6867         that represents the attribute list for the builtins.  Modify
6868         all builtin functions to pass an appropriate attribute list.
6869         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
6870         their required noreturn attributes.
6871         * tree.h (enum_builtin_function): Ignore the additional parameter
6872         to DEF_BUILTIN.
6873         * builtins.c (built_in_names): Likewise.
6874         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
6875         argument with a tree representing the functions attribute list.
6876         Pass this "attrs" argument to builtin_function.  No longer handle
6877         the noreturn_p processing manually.
6878         (built_in_attributes): Move the definitions from builtin-attrs.def
6879         before c_common_nodes_and_builtins.
6880         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
6881         DEF_BUILTIN, passing it to both builtin_function and the changed
6882         builtin_function_2.
6883
6884         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
6885         __builtin__exit and __builtin__Exit.
6886
6887 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6888
6889         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
6890         QI mode registers in soft registers.
6891         ("zero_extendqihi2"): Do not take into account soft registers
6892         for register allocation (use '*' constraint).
6893
6894 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6895
6896         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
6897         it is dead.
6898         ("*ashrsi3"): Likewise.
6899         ("*lshrsi3"): Likewise.
6900
6901 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
6902
6903         * genautomata.c (output_max_insn_queue_index_def): Take latencies
6904         into account.
6905
6906 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6907
6908         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
6909         address computation and memory moves.
6910
6911 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
6912
6913         PR c++/6706
6914         * dwarfout.c (output_reg_number): Fix warning message.
6915         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
6916         before using it.
6917
6918 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6919
6920         * gcc/gcc.c (asm_debug): Move initialization ...
6921         (init_spec): ... here.
6922
6923 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6924
6925         * c-parse.in (extdef): Append ';'.
6926         (old_style_parm_decls): Append ';'.
6927
6928 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6929
6930         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
6931         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
6932         to gcc_cv_as_gstabs_flag.
6933         * configure: Rebuilt.
6934
6935 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
6936
6937         * ggc.h (ggc_add_root): Document as obsolete.
6938
6939 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
6940
6941         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
6942         (mshflo_w): Likewise.
6943
6944 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6945
6946         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
6947         vector mode subregs of constants to finding integer mode
6948         subregs of constants.
6949         * cse.c (cse_insn): Use simplify_gen_subreg.
6950         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
6951         From a vector mode expression of different size than the
6952         target mode.
6953
6954 2002-07-03  Eric Christopher  <echristo@redhat.com>
6955
6956         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
6957         * config/mips/mips.h: Remove deprecated -m<processor> options
6958         and cc1_cpu_spec associated.
6959         (CONSTANT_ADDRESS_P): Fix last patch.
6960         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
6961         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
6962         sunge_sf): Remove.
6963
6964 2002-07-03  Stan Shebs  <shebs@apple.com>
6965
6966         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
6967         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
6968         (CPP_SPEC): Remove insertion of APPLE_CC definition.
6969
6970 2002-07-03  Roger Sayle  <roger@eyesopen.com>
6971
6972         * combine.c (struct_undo): Change types of recorded substitutions
6973         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
6974         (do_SUBST_INT): Change types of the substitution from unsigned int
6975         to int, to avoid compilation warning from SUBST_INT's only caller.
6976
6977         (make_extraction): Add cast to avoid compilation warning.
6978         (force_to_mode): Remove cast to avoid compilation warning.
6979
6980 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
6981             Jeff Law  <law@redhat.com>
6982
6983         * i386.md (length_immediate attribute): Fix typo.
6984         (length_address attribute): Likewise.
6985         (modrm attribute): Set it to 0 for immediate call instructions.
6986         (jcc_1 pattern): Set modrm attribute to 0.
6987         (jcc_2 pattern ): Likewise.
6988         (jump pattern): Likewise.
6989         (doloop_end_internal pattern): Explicitly set length.
6990         (leave pattern): Fix typo.
6991         (leave_rex64 pattern): Likewise.
6992
6993 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
6994
6995         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
6996         in FPR as preference.
6997         (fctiwz): Same.
6998         (floatdidf2, fix_truncdfdi2): Same.
6999         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
7000         (floatditf2): Same.
7001         (floatsitf2, fix_trunctfsi2): SImode in GPR.
7002         (ctrdi): Remove FPR alternative and splitter.
7003
7004 2002-07-03  Will Cohen  <wcohen@redhat.com>
7005
7006         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
7007
7008 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
7009
7010         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
7011         than UNITS_PER_WORD, unless this is little endian and the first unit
7012         in this word.  Let extract_bit_field decide how to load an element.
7013         Force arguments to matching mode.
7014         (expand_vector_unop): Likewise.
7015
7016         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
7017         consist of word_mode elements.
7018         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
7019         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
7020         (build_unary_op): Allow vector types for BIT_NOT_EPR.
7021         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
7022         CONST_VECTOR.
7023         * optabs.c (expand_vector_binop): Try to perform operation in
7024         smaller vector modes with same inner size.  Add handling of AND, IOR
7025         and XOR.  Reject expansion to inner-mode sized scalars when using
7026         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
7027         (expand_vector_unop): Try to perform operation in smaller vector
7028         modes with same inner size.  Add handling of one's complement.
7029         When there is no vector negate operation, try a vector subtract
7030         operation.  Use simplify_gen_subreg on constants.
7031         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
7032         constants into smaller vectors with same inner mode, and to
7033         integer CONST_DOUBLEs.
7034
7035 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7036
7037         * c-parse.in (parsing_iso_function_signature): New variable.
7038         (extdef_1): New, copied from...
7039         (extdef): ... here.  Reset parsing_iso_function_signature.
7040         (old_style_parm_decls):  Reset parsing_iso_function_signature.
7041         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
7042         Warn about ISO C style function definitions.
7043         (nested_function, notype_nested_function): Reset
7044         parsing_iso_function_signature.
7045         (parmlist_2): Set parsing_iso_function_signature.
7046
7047         * doc/invoke.texi (-Wtraditional): Document new behavior.
7048
7049 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
7050
7051         * config.gcc (mips*el-*-*): Use tm_defines to set
7052         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
7053         * config/mips/little.h: Remove.
7054
7055 2002-07-02 Devang Patel <dpatel@apple.com>
7056
7057         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
7058         object as parameter. Prevent something like 'NSObject' to be
7059         used as the type for a method argument.
7060
7061 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
7062
7063         * cpptrad.c: Update comment.
7064
7065 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7066
7067         * doc/cpp.texi: Update for traditional preprocessing changes.
7068         * goc/cppopts.texi: Similarly.
7069
7070 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
7071
7072         * c-parse.in (designator): Enable designated initializers if ObjC.
7073         (objcmessageexpr): Remove references to objc_receiver_context.
7074         * objc/objc-act.h (objc_receiver_context): Remove decl.
7075         * objc/objc-act.c (objc_receiver_context): Remove.
7076         (lookup_objc_ivar): Test objc_method_context instead of
7077         objc_receiver_context.
7078
7079 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7080
7081         * sh.c (print_operand, case 'N'): Allow zero vector.
7082         (arith_reg_or_0_operand): Likewise.
7083         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7084         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
7085         IOR, XOR, PLUS and SET and take their respective constant
7086         ranges into account.
7087         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7088         * sh.md (subdi3, subdi3_media): Allow zero operand.
7089         (movv8qi_i+3): Only vector that is not split is the zero vector.
7090         Fix operand 3 to simplify_subreg.
7091         (movv2si_i): Split alternative 1.
7092         (mshfhi_l_di_rev+1): New splitter.
7093
7094 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7095
7096         PR preprocessor/7029
7097         * cppinit.c (cpp_handle_option):  Suppress warnings with an
7098         implicit "-w" for "-M" and "-MM".
7099         * doc/cppopts.texi: Update.
7100
7101 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7102
7103         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7104         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
7105         builtin_function.
7106
7107 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
7108
7109         * README.Portability: Fix typos.
7110
7111 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
7112
7113         PR target/7177
7114         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
7115         of indirections for register inside sign-extended mem part.
7116
7117 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7118
7119         * tree.h:  Modify builtin_function interface to take an extra
7120         argument ATTRS, which is a tree representing an attribute list.
7121
7122         * c-decl.c (builtin_function): Accept additional parameter.
7123         * objc/objc-act.c (builtin_function): Likewise.
7124         * f/com.c (builtin_function): Likewise.
7125         * java/decl.c (builtin_function): Likewise.
7126         * ada/utils.c (builtin_function): Likewise.
7127         * cp/decl.c (builtin_function): Likewise.
7128         (builtin_function_1): Likewise.
7129
7130         * c-common.c (c_common_nodes_and_builtins): Pass an additional
7131         NULL_TREE argument to builtin_function.  (builtin_function_2):
7132         Likewise.
7133         * cp/call.c (build_java_interface_fn_ref): Likewise.
7134         * objc/objc-act.c (synth_module_prologue): Likewise.
7135         * java/decl.c (java_init_decl_processing): Likewise.
7136         * f/com.c (ffe_com_init_0): Likewise.
7137
7138         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
7139         NULL_TREE argument to builtin_function.
7140         * config/arm/arm.c (def_builtin): Likewise.
7141         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
7142         * config/i386/i386.c (def_builtin): Likewise.
7143         * config/ia64/ia64.c (def_builtin): Likewise.
7144         * config/rs6000/rs6000.c (def_builtin): Likewise.
7145
7146 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
7147
7148         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
7149         * config/mips/t-isa3264: Likewise.
7150         * config/mmix/t-mmix: Likewise.
7151
7152 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7153
7154         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
7155
7156 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7157
7158         PR opt/4046
7159         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
7160         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
7161         B are truth values.
7162
7163 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
7164
7165         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
7166
7167 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
7168
7169         * README.Portability (Function prototypes): Give an example of
7170         declaring and defining a function with no arguments.
7171
7172         * README.Portability (Function prototypes): Document new
7173         variable-argument function macros.
7174
7175 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
7176
7177         * sh.c (langhooks.h): Include.
7178         (sh_init_builtins, sh_media_init_builtins): New functions.
7179         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
7180         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7181         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
7182         (builtin_description): New struct tag.
7183         (signature_args, bdesc): New arrays.
7184         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
7185         (print_operand): Add 'N' modifier.
7186         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
7187         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
7188         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
7189         (CONST_COSTS): Add special case for SHmedia AND.
7190         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
7191         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
7192         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
7193         target_operand can also be const or unspec.
7194         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
7195         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
7196         (attribute type): Add new types.
7197         (anddi3): Add splitter.
7198         (movdi_const_16bit+1): Add code to handle vector constants and
7199         bitmasks efficiently.
7200         (shori_media): Have generator function made.
7201         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
7202         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
7203         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
7204         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
7205         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
7206         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
7207         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
7208         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
7209         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
7210         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
7211         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
7212         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
7213         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
7214         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
7215         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
7216         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
7217         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
7218         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
7219         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
7220         (ftrv): Likewise.
7221
7222         (fpu_switch+1, fpu_switch+2): Remove constraint.
7223
7224 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
7225
7226         * tree.c (build_function_type_list): Update function comment.
7227         Rename first argument to return_type.
7228
7229 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7230
7231         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
7232         tradcif.y and related files.
7233
7234 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7235
7236         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
7237
7238 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7239
7240         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
7241
7242 2002-06-30  Devang Patel  <dpatel@apple.com>
7243
7244         * objc/objc-act.c (finish_file): Avoid finish_objc() if
7245         -fsyntax-only.
7246
7247 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
7248                           Frank Ch. Eigler  <fche@redhat.com>
7249                           Matthew Green  <mrg@redhat.com>
7250                           Richard Henderson <rtl@redhat.com>
7251                           Dave Hudson  <dave.hudson@ubicom.com>
7252                           Jeff Johnston  <jjohnstn@redhat.com>
7253                           Alan Lehotsky <apl@alum.mit.edu>
7254                           Bernd Schmidt  <bernds@redhat.com>
7255                           Graham Stott  <grahams@redhat.com>
7256
7257         * doc/extend.texi: Add ip2k port to description of attribute
7258         naked.
7259         * doc/install.texi (Specific): Add ip2k description.
7260         * doc/install-old.texi (Configurations): Add ip2k to possible
7261         cpu types.
7262         * doc/md.texi: Document ip2k constraints.
7263         * config/ip2k/crt0.S: New file.
7264         * config/ip2k/ip2k-protos.h: New file.
7265         * config/ip2k/ip2k.c: New file.
7266         * config/ip2k/ip2k.h: New file.
7267         * config/ip2k/ip2k.md: New file.
7268         * config/ip2k/libgcc.S: New file.
7269         * config/ip2k/t-ip2k: New file.
7270
7271 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
7272
7273         * config/mmix/mmix.md ("return"): New pattern.
7274         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
7275         (TARGET_USE_RETURN_INSN): New macros.
7276         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
7277         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
7278         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
7279         (MMIX_POP_ARGUMENT): New macro.
7280         (mmix_target_asm_function_prologue): When no epilogue is executed,
7281         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
7282         (mmix_print_operand) <case '.'>: New case.
7283         (mmix_print_operand_punct_valid_p): Match '.'.
7284         (mmix_use_simple_return): New function.
7285         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
7286         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
7287         -msingle-exit, -mno-single-exit.
7288         (MMIX Options): Ditto.
7289
7290 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
7291
7292         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
7293
7294 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7295
7296         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
7297
7298 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
7299
7300         * unroll.c (loop_iterations): Handle EQ loops.
7301
7302 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
7303
7304         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
7305         constraint in define_expand, not splitter.
7306         Formatting.
7307
7308 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
7309
7310         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7311         build_function_type_list instead of build_function_type.
7312
7313         * config/ia64/ia64.c (ia64_init_builtins): Same.
7314
7315         * config/alpha/alpha.c (alpha_init_builtins): Same.
7316
7317         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
7318
7319         * config/arm/arm.c (arm_init_builtins): Same.
7320
7321         * tree.h: Add build_function_type_list prototype.
7322
7323         * tree.c (build_function_type_list): New.
7324
7325 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7326
7327         * collect2.c (scan_prog_file): Fix typo in message.
7328
7329 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
7330
7331         * fold-cont.c: Remove unused CHARMASK.
7332
7333 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
7334
7335         PR preprocessor/7150
7336         * cppmain.c (scan_translation_unit_trad): Simplify.
7337         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
7338
7339 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7340
7341         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
7342         Don't use CPP_PREDEFINES.
7343         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
7344         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
7345         * config/i386/djgpp.h, config/i386/i386-coff.h,
7346         config/i386/i386-interix.h, config/i386/i386-interix3.h,
7347         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7348         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
7349         config/i386/uwin.h: Similarly.
7350
7351 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7352
7353         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
7354         flag_inline_trees to enable inlining.
7355
7356 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
7357
7358         * configure.in (gcc_gxx_include_dir):  Change to match versioned
7359         C++ headers if --enable-version-specific-runtime-libs is used.
7360         * configure:  Regenerate.
7361
7362 2002-06-28  Jan Hubicka  <jh@suse.cz>
7363
7364         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
7365
7366 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
7367
7368         * combine.c (combine_simplify_rtx): Pass the mode of the
7369         shift count, not the shift operation when trying to simplify
7370         a shift on a SHIFT_COUNT_TRUNCATED target.
7371
7372 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7373
7374         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
7375         avoid the auto increment addressing modes.
7376         ("*subsi3"): Likewise.
7377         (split for add/sub on address): For 68HC12 push the value on
7378         the stack and do the operation with a pop.
7379
7380 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
7381
7382         * cpplib.c (_cpp_handle_directive): Move #define-specific
7383         code to the #define handler...
7384         (do_define): ...here.
7385         (lex_macro_node): No longer a need to check for comments here.
7386
7387 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7388
7389         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
7390         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7391         Declare.
7392         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
7393         do not reorder basic blocks at the end when optimizing for size.
7394
7395 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
7396
7397         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
7398         (m68hc11_make_autoinc_notes): New function.
7399         (m68hc11_split_move): Be very cautious when spliting a move with
7400         auto increment/decrement modes because this may result in incompatible
7401         directions; add REG_INC notes to the resulting insn for CSE reg.
7402
7403 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
7404
7405         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
7406         can be a valid address.
7407
7408 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
7409
7410         * config/rs6000/rs6000.c: Remove unusued variables from last
7411         patch.
7412
7413 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7414
7415         Revert:
7416         * config/rs6000/rs6000.c (rs6000_override_options): Move
7417         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7418
7419 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7420
7421         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
7422         lvx/stv/dst builtins...
7423         (altivec_expand_ld_builtin): ...to here.
7424         (altivec_expand_st_builtin): ...here.
7425         (altivec_expand_dst_builtin): ...and here (respectively).
7426
7427 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
7428
7429         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
7430
7431 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
7432
7433         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
7434         subregs.
7435         * recog.c (general_operand, register_operand): Disallow them.
7436
7437 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
7438
7439         PR preprocessor/7138
7440         * cpplib.c (_cpp_handle_directive): Do traditional
7441         preparation after setting state.angled_headers.
7442         * cpptrad.c (scan_out_logical_line): Fix potential
7443         quote bug.
7444
7445 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
7446
7447         * config/rs6000/rs6000.c (rs6000_override_options): Move
7448         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7449
7450 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
7451
7452         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
7453         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
7454         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
7455
7456 2002-06-27  Roger Sayle  <roger@eyesopen.com>
7457
7458         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
7459         * config/stormy16/stormy16.h: Likewise.
7460
7461         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
7462         with #define.
7463
7464 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7465
7466         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
7467         Hitachi entry.  Make punctuation more consistent.
7468
7469 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
7470
7471         * doc/install.texi: Change ` bit' to `-bit'.
7472         * doc/md.texi: Change `-bits' to `-bit'.
7473         * doc/tm.texi: Change `-bits' to ` bits'.
7474
7475 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
7476
7477         * gcse.c (hoist_code): Rewrite to only get list of dominated
7478         blocks once per BB. Also fix reversed test (by removing need for
7479         the test at all).
7480
7481 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
7482
7483         * cpphash.h (_cpp_set_trad_context): Remove.
7484         * cpplib.c (prepare_directive_trad): Do nothing for #define.
7485         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
7486         * cpptrad.c: Update comments.
7487         (_cpp_read_logical_line_trad): Let scan_logical_line handle
7488         updating the current context.
7489         (scan_logical_line): Update the current context.
7490         (_cpp_create_trad_definition): Similarly.
7491         (_cpp_set_trad_context): Remove.
7492
7493 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
7494
7495         PR preprocessor/7070
7496         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
7497
7498 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
7499
7500         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
7501         config/xtensa/xtensa.c (xtensa_return_addr): New function.
7502         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
7503         config/xtensa/xtensa.md (fix_return_addr): New pattern.
7504
7505 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7506
7507         * mips.c (coprocessor_operand, coprocessor2_operand,
7508         symbolic_operand): Move prototypes from here...
7509         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
7510         symbolic_operand): ...to here.
7511
7512 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7513
7514         * config/sh/crt1.asm: remove _stack label definition
7515         and sentinel value.
7516
7517 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7518
7519         * varasm.c: Include real.h before output.h.
7520
7521 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
7522
7523         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
7524         check for TARGET_ALTIVEC.
7525
7526 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
7527
7528         * config.gcc (vax-*-vms*): Make obselete.
7529
7530 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7531
7532         * gcc.c (warn_std): Delete.
7533
7534 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
7535
7536         * doc/extend.texi: Fix formatting of last checkin.
7537
7538 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7539
7540         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
7541         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
7542
7543 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
7544
7545         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7546         discrepancies from motorola's documentation.
7547
7548 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
7549
7550         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
7551         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
7552
7553         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
7554         produce a 32 bit result before normalization, then normalize with a
7555         left shift.  Compute approximative error of 2nd reciprocal
7556         approximation in 2's complement.  Fix mask generation from upper
7557         longword of second divide stage result.
7558         For large divisor, fix shift count used to truncate first stage
7559         divide result; make decision if to adjust upwards based on comparison
7560         of higher parts of normalized values.
7561         (udivdi): Likewise.  Undo normalization of result for large divisor
7562         case.
7563
7564 2002-06-25  David S. Miller  <davem@redhat.com>
7565
7566         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
7567
7568 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
7569
7570         * cpplib.c (do_include_common): Revert to correct line number
7571         if -traditional.
7572         * cpptrad.c (scan_out_logical_line): Treat null directive as
7573         white space.  Invlidate MI optimization for non-whitespace
7574         text outside a directive.
7575
7576 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7577
7578         * Makefile.in (SHELL): Set to @SHELL@.
7579         * fixinc/Makefile.in (SHELL): Likewise.
7580
7581         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
7582         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
7583         initialization.
7584
7585 2002-06-24  Jeff Law <law@redhat.com>
7586
7587         * flow.c (propagate_one_insn): When removing an insn
7588         with a REG_LIBCALL note but not the entire libcall sequence,
7589         delete the associated REG_RETVAL note.
7590
7591 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
7592
7593         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
7594         (udivsi3): Likewise.  Rewrite SH1 implementation.
7595         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
7596         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
7597         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
7598         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
7599         (_moddi3): Likewise.
7600
7601         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
7602
7603         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
7604         arguments into account for stack_regs.
7605
7606 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
7607
7608         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
7609         in examples.
7610
7611 2002-06-24  Art Haas  <ahaas@neosoft.com>
7612
7613         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
7614         * doc/tm.texi (Frame Layout): Likewise.
7615
7616 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
7617
7618         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
7619         Set float_format to i128.
7620
7621 2002-06-24  David S. Miller  <davem@redhat.com>
7622
7623         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
7624         32-bit ABI libfuncs to NULL.
7625
7626         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
7627         strings instead of quoted strings for code blocks.
7628
7629         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
7630         optabs if op1 is const0_rtx.
7631
7632         * Makefile.in (GTFILES): Add basic-block.h
7633         * basic-block.h (label_value_list, tail_recursion_label_list):
7634         Mark with GTY.
7635
7636 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
7637
7638         * cpptrad.c (scan_out_logical_line): Check recursing only when
7639         we know we have a macro invocation in the function-like case.
7640         Only call _cpp_handle_directive if we know we have a good
7641         directive, or we want to reject a bad directive.
7642
7643 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
7644
7645         * doloop.c (doloop_valid_p): Correct comment.
7646         (doloop_modify_runtime <abs_inc != 1>): Simplify.
7647         (doloop_modify_runtime <do-while>): Don't emit code when NE.
7648
7649 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
7650
7651         * config.gcc: Add support for ip2k.
7652
7653 2002-06-23  Jan Hubicka  <jh@suse.cz>
7654             Jeff Law <law@redhat.com>
7655
7656         * function.h (struct emit_status): Clarify potential contents
7657         of regno_reg_rtx array.
7658         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
7659         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
7660
7661         * reg-stack.c (convert_regs_exit): Push the registers to stack in
7662         proper order.
7663
7664 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
7665
7666         PR middle-end/6963
7667         * function.c (assign_stack_temp_for_type): Do not return
7668         the same MEM rtx for multiple uses of a stack slot.
7669
7670 2002-06-22  David S. Miller  <davem@redhat.com>
7671
7672         PR target/6841 target/6770 target/6719
7673         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
7674         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
7675         GENERAL_OR_EXTRA_FP_REGS.
7676
7677 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
7678
7679         * cpptrad.c (struct fun_macro): Add line number.
7680         (scan_out_logical_line): Set it, and use it to report unterminated
7681         macro invocations.
7682
7683 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7684
7685         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
7686         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
7687         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
7688         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
7689         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
7690         REGEXP_ONEOF, check_name): Const-ify.
7691
7692 2002-06-21  Matt Thomas  <matt@3am-software.com>
7693
7694         * config/vax/vax.c (vax_output_function_prologue): Use
7695         REGISTER_PREFIX.  Fix some indentation.
7696         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
7697         (VAX_ISTREAM_SYNC): Define.
7698         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
7699         i-stream sync to the end.
7700         (REGISTER_PREFIX): Define as "".
7701         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
7702
7703 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
7704
7705         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
7706         configurations.
7707
7708 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7709
7710         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
7711         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
7712
7713 2002-06-21  Matt Thomas  <matt@3am-software.com>
7714
7715         * config/vax/netbsd.h: Adjust a comment.
7716         (TARGET_DEFAULT): Redefine as 0.
7717
7718 2002-06-21  Richard Henderson  <rth@redhat.com>
7719
7720         * bb-reorder.c (make_reorder_chain_1): Search harder for the
7721         vax casesi fallthru edge.
7722         * cfglayout.c (cleanup_unconditional_jumps): Use
7723         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
7724         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
7725         block after ADDR_VEC.
7726
7727 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7728
7729         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7730
7731 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
7732
7733         * cpperror.c (cpp_error): For traditional CPP, default to
7734         diagnostics on pfile->line.
7735         * cpplib.c (prepare_directive_trad): Set line number for
7736         diagnostics for #define too.
7737         * cpptrad.c (skip_whitespace): Skip comments properly.
7738         (_cpp_expansions_different_trad): Initialize quote2.
7739
7740 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
7741
7742         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
7743         * config/mmix/mmix.h: Ditto.
7744         * config/mmix/mmix-protos.h: Ditto.
7745         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
7746         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
7747         comment.  Comment extra CC modes.
7748
7749 2002-06-20 Jan Hubicka  <jh@suse.cz>
7750
7751         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
7752         (scope_to_insns_finalize): Do not call set_block_levels; handle
7753         sequences.
7754         (choose_inner_scope): New.
7755         * rtl.h (choose_inner_scope): Declare.
7756
7757 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7758
7759         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
7760         HOST_WIDE_INT.
7761         * pa.c (pa_asm_output_mi_thunk): Likewise.
7762         (n_deferred_plabels): Change type to size_t.
7763         (output_deferred_plabels, output_call): Use size_t instead of int.
7764
7765 2002-06-20  Richard Henderson  <rth@redhat.com>
7766
7767         PR target/4041
7768         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
7769         pattern and adjust constraints for coldfire.
7770
7771 2002-06-20  Richard Henderson  <rth@redhat.com>
7772
7773         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
7774
7775 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
7776
7777         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
7778
7779 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
7780
7781         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
7782
7783 2002-06-20  Stan Shebs  <shebs@apple.com>
7784
7785         * dominance.c: Include errors.h instead of error.h.
7786
7787 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
7788
7789         * cppexp.c (cpp_interpret_integer): Don't force traditional
7790         numbers to be unsigned.
7791         * cpplib.c (prepare_directive_trad): Set line number for
7792         diagnostics.
7793         * cpptrad.c (scan_out_logical_line): Continue scanning out
7794         at start of buffer.
7795         * gcc.c (trad_capable_cpp): Use cc1 always.
7796
7797 2002-06-20  Jeffrey Law  <law@redhat.com>
7798
7799         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
7800         elimination in leaf functions by default yet.
7801
7802 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
7803
7804         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
7805
7806 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7807
7808         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
7809         multilibs.
7810         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7811         Fixes PR other/6836.
7812
7813 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
7814                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
7815
7816         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
7817
7818         * basic-block.h: Do not include et-forest.h
7819         (dominance_info): Declare as struct dominance-info.
7820         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
7821         deleting block.
7822         * dominance.c (struct dominance_info): Define.
7823         (BB_NODE, SET_BB_NODE): New macros.
7824         (bb_hash_func, bb_eq_func): Kill.
7825         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
7826         nearest_common_dominator, dominated_by_p, recount_dominator,
7827         add_to_dominance_info, delete_from_dominance_info): update for new
7828         representation.
7829         (get_dominated_by, redirect_immediate_dominators): Rewrite using
7830         enumerate_sons.
7831         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
7832         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
7833         structure.
7834
7835         * et-forest.h: Update copyright; revamp all function to operate on
7836         nodes
7837         (et_forest_value): Kill.
7838         (et_forest_enumerate_sons, et_forest_node_value): New.
7839         * et-forest.c: Update copyright.
7840         * et-forest.h: Update copyright; revamp all function to operate on
7841         nodes
7842         (et_forest_value): Kill.
7843         (et_forest_enumerate_sons, et_forest_node_value): New.
7844
7845         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7846
7847         * basic-block.h: Inlude et-forest.h
7848         (basic_block_def): Kill dominator.
7849         (dominance_info): New type.
7850         (loops): Use dominace_info.
7851         (dominace handling functions): Take dominace_info as argument
7852         instead of bitmaps.
7853         (create_preheader): Likewise.
7854         * cfg.c (entry_exit_blocks): Kill dominator.
7855         (dump_flow_info): Do not dump dominators.
7856         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
7857         dominators.
7858         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
7859         (flow_loops_pre_header_scan, make_forwarder_block,
7860         canonicale_loop_headers, flow_loops_find): Likewise.
7861         * dominance.c: Include error.h
7862         (idoms_to_doms): Kill.
7863         (bb_hash_func, bb_eq_func): New static functions.
7864         (debug_dominace_info): New global function.
7865         (calculate_dominance_info): Use new et forest structure.
7866         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
7867         get_dominated_by, redirect_immediate_dominators,
7868         nearest_common_dominator, dominated_by_p, verify_dominators,
7869         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
7870         delete_from_dominance_info): New global functions.
7871         * gcse.c (domnators): CHange to dominance_info.
7872         (alloc_hoist_mem): Do not alloc dominators
7873         (free_code_hoist_mem): Use free_dominance_info.
7874         (compute_code_hoist_data): Use dominance_info.
7875         (hoist_code): Likewise.
7876         * ifcvt.c (post_dominators): Likewise.
7877         (find_if_case_2, if_convert): Likewise.
7878         * predict.c (process_note_predictions, process_note_prediction,
7879         estimate-probability): Likewise.
7880         * sched-rgn.c (find_rgns, init_regions): Likewise.
7881         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
7882         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
7883         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
7884         find_evaluations, convert_to_ssa): Likewise.
7885         * ssa.h (compute_dominance_frontiers): Likewise.
7886
7887         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7888
7889         * Makefile.in (et-forest.c): Add.
7890         * et-forest.c: New file.
7891         * at-forest.h: New file.
7892
7893 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7894
7895         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
7896         array size calculation.
7897         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
7898         Likewise.
7899
7900         * diagnostic.c (diagnostic_kind_text): Const-ify.
7901         * gengtype.c (lang_names): Likewise.
7902
7903 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
7904
7905         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
7906
7907 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7908
7909         * config/sol2.h: New file.
7910         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
7911         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
7912         (sparc-*-chorusos*): Likewise.
7913         (sparc-*-elf*): Likewise.
7914         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
7915         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
7916         (sparc-hal-solaris2*): Likewise.
7917         (sparc-*-solaris2*): Likewise.
7918         (sparclite-*-elf*): Likewise.
7919         (sparc86x-*-elf*): Likewise.
7920         (sparc64-*-elf*): Likewise.
7921
7922         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
7923         config/sol2.h.
7924         (ASM_SPEC): Override config/sol2.h version for now.
7925         Removed obsolete GAS_REJECTS_MINUS_S variant.
7926         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
7927         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7928         (TARGET_OS_CPP_BUILTINS): Likewise.
7929         Assert system=unix.
7930         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
7931         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
7932         config/sol2.h.
7933         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7934         (ASM_CPU_SPEC): Define.
7935         (SUBTARGET_EXTRA_SPECS): Define.
7936
7937         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
7938         in config/sparc/sol2.h.
7939         (ASM_SPEC): Moved to config/sol2.h.
7940         (CPP_CPU_SPEC): Simplified.
7941         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
7942         consistency.
7943         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
7944         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
7945         STARTFILE_ARCH64_SPEC.
7946         (STARTFILE_SPEC): Moved to config/sol2.h
7947         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
7948         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
7949         (LINK_ARCH64_SPEC): Simplified.
7950         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
7951         (LINK_SPEC): Moved to config/sol2.h
7952
7953         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
7954         config/sol2.h.
7955         Use BITS_PER_WORD for size.
7956         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
7957         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7958         (CPP_PREDEFINES): Removed OS-specific part handled by
7959         TARGET_OS_CPP_BUILTINS.
7960         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
7961         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
7962         (ASM_SPEC): Moved to config/sol2.h.
7963         (PREFERRED_DEBUGGING_TYPE): Likewise.
7964         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
7965         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7966         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
7967         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
7968
7969         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
7970         * config/i386/sol2gas.h: Removed.
7971
7972 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
7973
7974         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
7975
7976 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
7977
7978         * gcc.c-torture/execute/simd-1.c: New.
7979
7980         * gcc.dg/simd-1.c: New.
7981
7982         * doc/extend.texi (Vector Extensions): Document that we can
7983         specify simd types not specifically supported by the hardware.
7984         Document that simd types can be used as function arguments.
7985         Document that signness does make a difference in SIMD types.
7986         Misc cleanups and revisions to the vector extensions section.
7987
7988         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
7989         constants.
7990
7991         * expr.c (vector_mode_valid_p): New.
7992
7993         * expr.h: Add vector_mode_valid_p.
7994
7995         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
7996
7997         * c-common.c (type_for_mode): Always build vector nodes regardless
7998         of VECTOR_MODE_SUPPORTED_P.
7999         (handle_mode_attribute): Error if we can't emulate a nonexisting
8000         vector mode.
8001         (handle_vector_size_attribute): Same.
8002
8003         * optabs.c (expand_binop): Open-code vector operations.
8004         (expand_unop): Open-code vector unops.
8005         (expand_vector_binop): New.
8006         (expand_vector_unop): New.
8007
8008         * c-typeck.c (build_binary_op): Allow vectors in binops.
8009         Allow vectors in conditional operatiors.
8010         (build_unary_op): Allow vectors in unary minus.
8011
8012         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
8013         TARGET_ALTIVEC.
8014
8015 2002-05-20  Richard Henderson  <rth@redhat.com>
8016
8017         * c-common.c (c_common_get_alias_set): Correctly handle characters.
8018         Rearrange order of expressions; don't handle vectors here.
8019         * alias.c (get_alias_set): Let vectors match their components.
8020
8021 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
8022
8023         * config/mips/mips.c (mips_emit_prefetch): Use hints which
8024         match desired locality.
8025
8026 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
8027
8028         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
8029         (h8300_insert_attributes): New.
8030
8031 2002-06-19  Akim Demaille  <akim@epita.fr>
8032
8033         * c-parse.in (initelt: identifier ':' initval): Add an empty
8034         action to fix a type clash.
8035         (aliasdecl, classdef): Add the missing closing `;'.
8036         Whitespace changes.
8037         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
8038         $$ = $1 type clashes.
8039
8040 2002-06-19  Eric Christopher  <echristo@redhat.com>
8041
8042         * config/mips/mips.c (symbol_operand): New function.
8043         (mips_emit_prefetch): Ditto.
8044         * config/mips/mips-protos.h: Define.
8045         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
8046         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
8047         (LEGITIMIZE_ADDRESS): Ditto.
8048         * config/mips/mips.md (prefetch, prefetch_si_address,
8049         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
8050
8051 2002-06-19  Eric Christopher  <echristo@redhat.com>
8052
8053         * config/fp-bit.h: Add unordered defines for gofast.
8054
8055 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
8056
8057         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
8058         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
8059         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
8060         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
8061         checking and without it.
8062         (decl_name, decl_mode_check_failed, regexp_name,
8063         regexp_mode_check_failed): New functions.
8064         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8065         gen_presence_set, gen_absence_set, gen_automaton,
8066         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
8067         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
8068         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
8069         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
8070         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
8071         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
8072         (decl_hash, decl_eq_p): Use the macros.
8073         (find_decl): Ditto.  Set up mode of work_decl.
8074         (process_excls, process_presence_absence, process_decls,
8075         check_automaton_usage, process_regexp, process_regexp_decls,
8076         check_usage, loop_in_regexp, check_loops_in_regexps,
8077         process_regexp_cycles, add_advance_cycle_insn_decl,
8078         initiate_states, initiate_excl_sets,
8079         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
8080         transform_2): Use the macros.
8081         (transform_3): Ditto.  Check mode before making transformations of
8082         ALLOF.
8083         (regexp_transform_func, transform_insn_regexps,
8084         process_unit_to_form_the_same_automaton_unit_lists,
8085         form_the_same_automaton_unit_lists_from_regexp,
8086         form_the_same_automaton_unit_lists,
8087         process_seq_for_forming_states, process_alts_for_forming_states,
8088         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
8089         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
8090         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
8091         units_to_automata_heuristic_distr, create_ainsns,
8092         units_to_automata_distr, create_automata): Use the macros.
8093         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
8094         (longest_path_length, min_issue_delay_pass_states,
8095         output_dead_lock_vect, output_tables, output_insn_code_cases,
8096         output_internal_insn_latency_func, output_print_reservation_func,
8097         output_description, output_automaton_units, generate): Use the
8098         macros.
8099         (make_insn_alts_attr): Ditto.  Check case when there are not
8100         alternatives in the reservation.
8101         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
8102         make_bypass_attr, form_important_insn_automata_lists,
8103         expand_automata): Use the macros.
8104
8105 2002-06-20  Tim Josling  <tej@melbpc.org.au>
8106
8107         * Makefile.in: Clean up code to check for misspecified languages
8108         in enable-languages.
8109
8110 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
8111
8112         * cpptrad.c (_cpp_replacement_text_len): initialize len.
8113
8114 2002-06-19  Jason Merrill  <jason@redhat.com>
8115
8116         * Makefile.in (unstrap, restrap): New targets.
8117         (bootstrap): Mention restrap.
8118
8119 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
8120
8121         * except.c (ehl_free): Remove.
8122
8123         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
8124         builtin_define and builtin_define_std.
8125
8126 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
8127
8128         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
8129         (sCOND): Restrict operand class so that gcc knows how to reload them.
8130         (bitfield_set): Merge two unnamed insn's using alternatives.
8131         (call_value): Remove constraint on unused uperand.
8132         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
8133         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
8134
8135         * longlong.h (count_trailing_zeros): Escape newline and beautify.
8136
8137 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
8138
8139         * Makefile.in (QMTEST_DIR): Simplify definition.
8140
8141 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
8142
8143         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
8144         #define.
8145
8146 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
8147
8148         * cpphash.h (struct cpp_reader): Make date and time strings.
8149         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
8150         _cpp_replacement_text_len): New.
8151         * cppinit.c (cpp_create_reader): Update.
8152         (init_builtins): Register appropriate builtins for -traditional-cpp.
8153         * cppmacro.c (new_number_token): Remove.
8154         (_cpp_builtin_macro_text): New.
8155         (builtin_macro): Use it.
8156         (cpp_macro_definition): Update to handle traditional macros.
8157         * cppmain.c (cb_line_change): Don't do column positioning for
8158         traditional output.
8159         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
8160         state ls_fun_close.
8161         (skip_whitespace): Fix.
8162         (maybe_start_funlike): Don't set state.parsing_args.
8163         (scan_out_logical_line): Remove duplicate error.  Use lex_state
8164         rather than state.parsing_args.
8165         (push_replacement_text): Handle builtins.
8166         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
8167
8168 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
8169             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8170
8171         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
8172         attribute __always_inline__.
8173
8174 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
8175
8176         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
8177         when generating the call to _mcount.
8178         (NO_PROFILE_COUNTERS): Define.
8179
8180 2002-06-18  Richard Henderson  <rth@redhat.com>
8181
8182         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
8183         2002-06-02 change.
8184
8185 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
8186
8187         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
8188         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
8189         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
8190         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
8191
8192         * sh-protos.h (sh_pr_interrupt): Declare.
8193         * sh.c (sh_pr_interrupt): New function.
8194         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
8195         (sh_hard_regno_rename_ok): Likewise.
8196         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
8197
8198 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
8199
8200         * rtl.def (DEFINE_AUTOMATON): Add description of new options
8201         `time' and `v'.  Fix incorrect description of option `w'.
8202
8203         * doc/md.texi: Ditto.
8204
8205         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
8206         (gen_automata_option): Process the new options.
8207         (transform_2, transform_3): Initialize some variables.
8208         (initiate_automaton_gen): Use the new macros.
8209
8210 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
8211
8212         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
8213         (mips_set_return_address, mips_restore_gp): Declare.
8214         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
8215         (current_frame_info): Remove.
8216         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
8217         * config/mips/mips.c: Remove uses of current_frame_info.
8218         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
8219         (struct machine_function): Add 'frame' and 'insns_len'.
8220         (current_frame_info, zero_frame_info): Remove.
8221         (mips_restore_gp, mips_set_return_address): New.
8222         (mips_initial_elimination_offset): New.
8223         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
8224         (eh_return define_split): Use mips_set_return_address.
8225
8226 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8227
8228         * cpplib.c (dtable): Update.
8229         (end_directive): Decrement expansion prevention count.
8230         Clear state.in_expression.
8231         (prepare_directive_trad): Set state.in_expression.
8232         Increment expansion prevention count.
8233         * cpptrad.c (enum ls): New.
8234         (_cpp_overlay_buffer): Set overlaid_buffer.
8235         (_cpp_remove_overlay): Use overlaid_buffer.
8236         (_cpp_read_logcial_line_trad): Update buffer when it might
8237         have changed.
8238         (scan_out_logical_line): Handle state transitions for assertions
8239         and defined() in #if, and for funlike invocations including the
8240         directive case.  Handle '<' and '>' as a quote mechanism in
8241         #include.  Warn about unterminated macro invocations.
8242         * cpphash.h (struct lexer_state): New member in_expression.
8243         (struct cpp_reader): New member overlaid buffer.
8244
8245 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
8246
8247         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
8248         __always_inline__.
8249
8250 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
8251
8252         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
8253
8254         * doloop.c (doloop_optimize): Extract pattern from insn.
8255
8256 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
8257
8258         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
8259
8260 2002-06-17  Jeff Law <law@redhat.com>
8261
8262         * libgcc2.c: Do not include symcat.h or machmode.h.
8263
8264 2002-06-17  Richard Henderson  <rth@redhat.com>
8265
8266         PR target/6922
8267         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
8268
8269 2002-06-17  Tom Tromey  <tromey@redhat.com>
8270
8271         * dwarfout.c: Include function.h.
8272
8273 2002-06-17  Andreas Schwab  <schwab@suse.de>
8274
8275         * print-rtl.c (print_rtx): Print space before vector, not after.
8276         (debug_rtx): Clear sawclose before printing.
8277         (debug_rtx_list): Print newline after each list element.
8278         (debug_rtx_range): Likewise.
8279
8280 2002-06-17  Richard Henderson  <rth@redhat.com>
8281
8282         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
8283         (current_function_funcdef_no): Similarly.
8284         * function.c (funcdef_no): Similarly.
8285         (prepare_function_start): Set current_function_funcdef_no.
8286         (expand_function_start): Don't set current_function_profile_label_no.
8287         * dwarf2out.h (current_funcdef_number): Remove.
8288         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
8289         current_function_funcdef_no throughout.
8290         * dwarfout.c, vmsdbgout.c: Similarly.
8291         * except.c (sjlj_funcdef_number): Remove.
8292         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
8293         (output_function_exception_table): Likewise.
8294         * final.c (profile_function): Use current_function_funcdef_no
8295         instead of current_function_profile_label_no.
8296
8297 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
8298
8299         * sched-ebb.c (init_ready_list): Check INSN_P first.
8300
8301 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
8302
8303         * sh.md (divsi3): Update way how to find insns in a sequence.
8304
8305         * reload1.c (merge_assigned_reloads): Don't change reloads
8306         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
8307         to RELOAD_OTHER when there are conflicting input reloads.
8308
8309 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
8310
8311         * function.c (epilogue_done): Correctly build a sequence of insns for
8312         a sibcall epilogue.
8313
8314 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
8315
8316         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
8317         #define.
8318
8319         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
8320
8321 2002-06-16  Richard Henderson  <rth@redhat.com>
8322
8323         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
8324         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
8325
8326 2002-06-16  Richard Henderson  <rth@redhat.com>
8327
8328         PR opt/6722
8329         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
8330
8331 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8332
8333         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
8334         * config/i386/i386-aout.h, config/i386/i386elf.h,
8335         config/i386/sysv4.h: Remove CPP_PREDEFINES.
8336         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
8337         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
8338         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
8339         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
8340         CPP_PREDEFINES and part of CPP_SPEC.
8341         * config/i386/sysv4-cpp.h: New.
8342
8343 2002-06-16  Richard Henderson  <rth@redhat.com>
8344
8345         PR c/7030
8346         * dwarf2out.c (modified_type_die): Don't assign the qualified die
8347         to the unqualified type.
8348
8349 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
8350
8351         * i386-protos.h (x86_field_alignment): Declare.
8352         * i386.c (x86_field_alignment): Define.
8353         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
8354         (BIGGEST_FIELD_ALIGNMENT): Kill.
8355
8356 2002-06-16  Richard Henderson  <rth@redhat.com>
8357
8358         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
8359
8360 2002-06-16  Richard Henderson  <rth@redhat.com>
8361
8362         * c-common.c (flag_ms_extensions): Move from c++ front end.
8363         * c-common.h (flag_ms_extensions): Declare.
8364         * c-decl.c (c_decode_option): Add -fms-extensions.
8365         (grokfield): Don't accept anonymous structures in ISO C mode;
8366         accept only unnamed anonymous structures in GNU C mode; accept
8367         Plan 9 extensions in MS mode.
8368         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
8369         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
8370         (extension): Clear flag_iso.
8371         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
8372
8373 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
8374
8375         PR target/7042
8376         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
8377         early if current_function_epilogue_delay_list is non-empty.
8378         * config/cris/cris.md ("return"): Add sanity check asserting that
8379         current_function_epilogue_delay_list is empty.
8380
8381 2002-06-16  Jeff Law <law@redhat.com>
8382
8383         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
8384         sharing of hard registers.
8385
8386         * toplev.c (rest_of_compilation): Remove redundant conditional.
8387
8388         * toplev.c (rest_of_compilation): Perform a simpler, less costly
8389         cleanup of the CFG when not optimizing.
8390
8391 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
8392
8393         * gcc.c (main): Correct startfile_prefix_spec check.
8394
8395 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
8396
8397         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
8398         include both darwin.o and rs6000-c.o.
8399
8400 2002-06-15  Roger Sayle  <roger@eyesopen.com>
8401
8402         * expr.c (compare_from_rtx): Call simplify_relational_operation
8403         on all comparisons, not just those between integer constants,
8404         with the correct (possibly unsigned) comparison code.
8405         (do_compare_rtx_and_jump): Likewise.
8406
8407 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8408
8409         * Makefile.in (tm_defines): New configuration variable.
8410         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
8411         Pass tm_defines in TM_DEFINES.
8412         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
8413         * config.gcc (tm_defines): New configuration variable.
8414         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
8415         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
8416         * configure.in: Substitute tm_defines.
8417         * configure: Rebuilt.
8418         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
8419         * doc/install.texi: Update.
8420         * pa/pa-700.h: Delete file.
8421         * pa/pa-7100.h: Delete file.
8422
8423 2002-06-15  Roger Sayle  <roger@eyesopen.com>
8424
8425         * fold-const.c (comparison_to_compcode): New function to convert
8426         an comparison TREE CODE into a bit-based representation.
8427         (compcode_to_comparison): New function to convert from this bit
8428         based representation back to a comparison TREE CODE.
8429         (fold_truthop): Simplify (x<y) && (x==y) and related composite
8430         comparisons.
8431
8432 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
8433
8434         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
8435
8436         * stor-layout.c (compute_record_mode): Remove check for
8437         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
8438         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
8439         MEMBER_TYPE_FORCES_BLK.
8440
8441         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
8442
8443         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
8444
8445 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
8446
8447         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
8448
8449 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
8450
8451         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
8452         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
8453         * configure, config.in: Regenerate.
8454
8455 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8456
8457         * loop.c (check_final_value): Use v->always_executed
8458         instead of v->always_computable.
8459         * unroll.c (final_giv_value): Don't calculate the final
8460         value as a function of the biv if the giv is not computed
8461         for every loop iteration.
8462
8463 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8464
8465         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
8466
8467 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
8468
8469         PR c/6677
8470         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
8471         the truncation down when the target type is signed.
8472         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
8473         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
8474         the conversion if the target type is a smaller type.
8475
8476 2002-06-14  Richard Henderson  <rth@redhat.com>
8477
8478         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
8479         earlier.  Re-factor comparisons vs extrema.
8480
8481 2002-06-14  Richard Henderson  <rth@redhat.com>
8482
8483         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
8484
8485 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8486
8487         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
8488         * sched-deps.c (add_dependence): Likewise.
8489         (group_leader): Likewise.
8490         * sched-rgn.c (init_ready_list): Likewise.
8491         * doc/rtl.texi: Adjust accordingly.
8492
8493 2002-06-13  Jeffrey Law  <law@redhat.com>
8494
8495         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
8496         null pointer checks were eliminated.  Update prototype.
8497         (delete_null_pointer_checks): Similarly.
8498         * rtl.h (delete_null_pointer_checks): Update prototype.
8499         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
8500         delete_null_pointer_checks deletes one or more null
8501         pointer checks.  Do not run cleanup_cfg before gcse, the
8502         CFG is accurate and optimized at that point..
8503
8504         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
8505         of hard registers.
8506
8507 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
8508
8509         * Makefile.in (libgcc.mk): Depend on specs.
8510
8511 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
8512
8513         * sh.md (mulsi3): Update way how to find insns in a sequence.
8514
8515 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
8516
8517         * sh.h: Define HARD_REGNO_RENAME_OK
8518         * sh.c: sh_hard_regno_rename_ok: New. If current function has
8519         interrupt_handler attribute, only registers saved on stack are OK.
8520         * sh-protos.h: Declare sh_hard_regno_rename_ok.
8521
8522 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
8523
8524         * config/sh/sh.md (jump): Emit jump insn.
8525         (call_pcrel): Get pattern of the result of gen_call_site.
8526         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
8527
8528 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8529
8530         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
8531         * cpptrad.c: Update comments.
8532         (skip_whitespace, copy_comment): Take a new parameter.
8533         (skip_escaped_newlines): Don't duplicate escaped newline test.
8534         (copy_comment): Different location for CUR, decide here how
8535         to copy / replace the comment.
8536         (skip_whitespace): Copy whitespace.
8537         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
8538         (scan_out_logical_line): Let copy comment handle keeping or
8539         replacing comments.
8540         (scan_parameters, _cpp_create_trad_definition): Update.
8541
8542 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
8543
8544         * reload.c (get_secondary_mem,find_reloads_address,
8545         find_reloads_address_1): Pass reference to MEM to find_reloads_address
8546         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
8547
8548 2002-06-13  Jessica Han  <jessica@cup.hp.com>
8549
8550         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8551         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8552         * doc/tm.texi: Document them.
8553         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8554         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8555         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
8556         (ASM_OUTPUT_FDESC): Likewise.
8557
8558 2002-06-13  Eric Christopher  <echristo@redhat.com>
8559
8560         * diagnostic.c (output_format): Fix thinko.
8561
8562 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
8563
8564         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
8565         (DWARF2_UNWIND_INFO): Define to 0.
8566
8567         * config/sh/sh.c (calc_live_regs): Don't use initial_value
8568         optimization for PR_MEDIA_REG.
8569
8570 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8571
8572         * cpphash.h (_cpp_lex_identifier_trad): Remove.
8573         * cpplib.c (end_directive): Don't skip, always remove overlay
8574         apart from #define.
8575         (prepare_directive_trad): Handle NULL pfile->directive.
8576         (_cpp_handle_directive): Always call prepare_directive_trad
8577         if traditional.
8578         * cppmain.c (check_multiline_token): Rename account_for_newlines,
8579         generalize inputs.
8580         (scan_translation_unit_trad): Use it.
8581         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
8582         output, get escaped newline in comment close correct.
8583         (check_output_buffer, skip_whitespace): Update.
8584         (_cpp_lex_identifier_trad): Remove.
8585         (scan_out_logical_line): Handle -C and comments in directives
8586         properly.
8587
8588 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
8589
8590         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
8591         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
8592         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
8593         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
8594         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
8595         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
8596         (SELECT_SH5_COMPACT_NOFPU): Likewise.
8597         (TARGET_SWITCHES): Use them.
8598         (TARGET_CPU_DEFAULT): Define if not already defined.
8599         (TARGET_DEFAULT): Use it.
8600         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
8601         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
8602         * config/sh/t-monolib: New file.
8603
8604 2002-06-13  Roger Sayle  <roger@eyesopen.com>
8605
8606         * toplev.c (rest_of_compilation): Simplify (and correct) the
8607         logic of the first delete-null-pointer-checks pass.
8608
8609 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
8610
8611         * i386.c (ix86_expand_movstr):  Fix pasto.
8612
8613 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
8614
8615         * reload.c (find_valid_class):  Fix thinko in my previous patch.
8616
8617 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
8618
8619         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
8620         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
8621         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
8622         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
8623
8624 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
8625
8626         * tree-inline.c (expand_call_inline): Don' mess with _DECL
8627         fields.
8628
8629 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
8630
8631         * diagnostic.c (output_format): Recognize "%H" as a format
8632         specifier for a location_t.
8633         (text_specifies_location): New function.
8634         (diagnostic_set_info): Use it.
8635
8636 2002-06-13  Jeffrey Law  <law@redhat.com>
8637
8638         * emit-rtl.c (static_regno_reg_rtx): Define.
8639         (init_emit_once): Initialize static_regno_reg_rtx.
8640         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
8641         of building new hard reg objects once per function.
8642         (gen_rtx_REG): Try to share hard regs.
8643         * regclass.c (init_fake_stack_mems): New function broken out from
8644         init_regs.
8645         * rtl.h (init_fake_stack_mems): Declare.
8646         * toplev.c (lang_independent_init): Call init_regs before
8647         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
8648
8649         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
8650
8651         * alias.c (argument_registers): Remove.
8652         (init_alias_once): Initialize static_reg_base_value here.  Remove
8653         initialization of argument_registers.
8654         (init_alias_once_per_function): Remove.
8655         (init_alias_analysis): Copy all the entries from static_reg_base_value
8656         into new_reg_base_value all at once.
8657         * rtl.h (init_alias_once_per_function): Remove declaration.
8658         * function.c (prepare_function_start): Do not call
8659         init_alias_once_per_function.
8660
8661         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
8662         starting a sequence and emitting an INSN.
8663
8664 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
8665
8666         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
8667
8668 2002-06-13  David S. Miller  <davem@redhat.com>
8669
8670         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
8671
8672 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8673
8674         * cpplib.c (end_directive): Handle line skipping.  Only remove
8675         the rest of the line if the directive was valid.
8676         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
8677         expanding a traditional macro.
8678         * cpptrad.c (recursive_macro): New.
8679         (read_logical_line_trad): Handle skipping.
8680         (scan_out_logical_line): Continue after a successful directive.
8681         Don't expand macros whilst skipping, or if recursing.
8682         (_cpp_create_trad_definition): scan_out_logical_line now sets
8683         the output current position.
8684
8685 2002-06-12  Eric Christopher  <echristo@redhat.com>
8686
8687         From Chris Demetriou  <cgd@broadcom.com>
8688         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
8689         comment.
8690         (ISA_HAS_MADD_MSUB): Ditto.
8691         (ISA_HAS_NMADD_NMSUB): Ditto.
8692
8693 2002-06-12  Eric Christopher  <echristo@redhat.com>
8694
8695         * config.gcc: Consolidate little endian handling and
8696         little/big endian targets.
8697         * config/mips/elfl.h: Remove file.
8698         * config/mips/elfl64.h: Ditto.
8699         * config/mips/ecoffl.h: Ditto.
8700         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
8701
8702 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
8703
8704         * gengtype.h (xvasprintf): New prototype.
8705         (xasprintf): New prototype.
8706         (struct outf): New.
8707         (get_output_file): Return an outf_p.
8708         (header_file): Is now an outf_p.
8709         (base_files): Now are outf_p.
8710         (oprintf): New.
8711         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
8712         rather than stdio operations.  Use xasprintf in a few places,
8713         when appropriate.
8714         (xvasprintf): New.
8715         (xasprintf): New.
8716         (struct filemap): Delete.
8717         (files): Delete.
8718         (output_files): New.
8719         (oprintf): New.
8720         (create_file): Create an outf_p.  Add parameter to indicate output
8721         file name, change all callers.
8722         (open_base_files): Create gtype-desc.c here.
8723         (get_output_file_with_visibility): Rewrite.
8724         (get_output_file_name): Just look at 'name' field in struct outf.
8725         (close_output_files): Rewrite.
8726
8727 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
8728
8729         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
8730         (MASK_G_FLOAT): Define.
8731         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
8732         (TARGET_SWITCHES): Likewise.
8733         (TARGET_DEFAULT): Likewise.
8734
8735 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
8736
8737         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
8738         * config/mips/mips.c (mips_output_filename): Don't print a
8739         ".file" directive if we are using DWARF-2.
8740         (mips_output_function_prologue): Do not emit source file
8741         name for TARGET_GAS.
8742
8743 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
8744
8745         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
8746         decide whether emit the short opcode.
8747         * i386.h (x86_shift1): Declare.
8748         (TARGET_SHIFT1): New macro.
8749         * i386.c (x86_shift1): New global variable.
8750
8751         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
8752         unconditionally; make loop to rebuild CFG; kill unnecesary
8753         find_basic_block calls; kill compute_bb_for_insn call.
8754         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
8755         * haifa-sched.c (sched_init): Likewise.
8756         * ssa-ccp.c (ssa_const_prop): Likewise.
8757         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8758
8759 2002-06-11  David S. Miller  <davem@redhat.com>
8760
8761         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
8762         active_insn_p.
8763
8764 2002-06-11  Richard Henderson  <rth@redhat.com>
8765
8766         * c-common.c (builtin_define_type_max): New.
8767         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
8768         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
8769
8770         From Joseph S. Myers:
8771         * glimits.h: Rewrite to expect the double underscore definitions
8772         from the compiler.
8773
8774         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
8775         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
8776         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
8777         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8778         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
8779         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
8780         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
8781         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
8782
8783 2002-06-11  Richard Henderson  <rth@redhat.com>
8784
8785         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
8786         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
8787         (code_for_builtns): Update.
8788         (alpha_init_builtins): Add __builtin_thread_pointer and
8789         __builtin_set_thread_pointer.
8790         (alpha_expand_builtin): Handle void builtins.
8791         * doc/extend.texi (Alpha Built-in Functions): Update.
8792
8793 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
8794
8795         PR target/6997
8796         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
8797
8798 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8799
8800         * config.gcc: Make the name of the extra-modes file adjustable
8801         by target stanzas.
8802         (s390x, strongarm, xscale stanzas): Use this facility.
8803         * configure.in: Update to match.
8804         * configure: Regenerate.
8805
8806 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
8807
8808         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
8809         max/mins as unsigned GE compares.
8810
8811 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
8812
8813         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
8814         * config/vax/bsd.h: New file.
8815         * config/vax/netbsd.h: Add missing notice.
8816         (CPP_PREDEFINES): Remove.
8817         (TARGET_OS_CPP_BUILTINS): Define.
8818         (CPP_SPEC): Use NETBSD_CPP_SPEC.
8819         * config/vax/openbsd.h: Update copyright years.
8820         (CPP_PREDEFINES): Remove.
8821         (TARGET_OS_CPP_BUILTINS): Define.
8822         * config/vax/ultrix.h: Likewise.
8823         * config/vax/vaxv.h: Likewise.
8824         * config/vax/vms.h: Likewise.
8825         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
8826         (CPP_PREDEFINES, CPP_SPEC): Remove.
8827
8828 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
8829
8830         * i386.md (addqi_1_slp, subqi_1_slp
8831         (andqi_ext0, testqi_ext0): Remove unnecesary check.
8832         (addhi*, addqi*): Simplify "dec" condition.
8833         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
8834         (and, or, xor to QImode splitters): New.
8835         (iorqi_ext*): New.
8836         (xorqi_ext_0): New.
8837         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
8838         (andqi_ext_1_rex64): New.
8839         (ashrqi*_slp): New.
8840         (ashlqi*_slp): New.
8841         (lshlqi*_slp): New.
8842         (rotrqi3*_slp): New.
8843         (rotlqi3*_slp): New.
8844
8845 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8846
8847         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
8848         softfloat.h.
8849         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
8850         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8851         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
8852         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
8853         __LONG_DOUBLE_128__ setting, _CALL_* setting.
8854         (CPP_DEFAULT_SPEC): Delete.
8855         (CPP_FLOAT_DEFAULT_SPEC): Delete.
8856         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
8857         (CPP_SYSV_DEFAULT_SPEC): Delete.
8858         (CPP_ENDIAN_BIG_SPEC): Delete.
8859         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8860         (CPP_ENDIAN_SPEC): Delete.
8861         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
8862         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
8863         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
8864         cpp_longdouble_default.
8865         * config/rs6000/softfloat.h: Delete.
8866         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
8867         (EXTRA_SPECS): Delete cpp_cpu.
8868         (TARGET_CPU_CPP_BUILTINS): New.
8869         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
8870         prototype.
8871         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
8872         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
8873         (CPP_DEFAULT_SPEC): Delete.
8874         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
8875         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
8876         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
8877         (CPP_DEFAULT_SPEC): Delete.
8878         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8879         (CPLUSPLUS_CPP_SPEC): Likewise.
8880         (CPP_CPU_SPEC): Delete.
8881         (CPP_DEFAULT_SPEC): Delete.
8882         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8883         (CPLUSPLUS_CPP_SPEC): Likewise.
8884         (CPP_CPU_SPEC): Delete.
8885         (CPP_DEFAULT_SPEC): Delete.
8886         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
8887         (CPP_DEFAULT_SPEC): Delete.
8888         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
8889         (CPP_DEFAULT_SPEC): Delete.
8890
8891         * doc/gty.texi: Small updates.
8892
8893 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
8894
8895         * objc/objc-act.c (warn_with_ivar): Adjust calls to
8896         diagnostic_count_error.
8897         (warn_with_method): Likewise.
8898
8899         * diagnostic.h (warnings_are_errors_message): New field of
8900         diagnostic_context.
8901         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
8902         match semantics.
8903         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
8904         (diagnostic_count_diagnostic): Make aware of other kinds of
8905         diagnostics.
8906         (diagnostic_initialize): Initialize warnings_are_errors_message field.
8907
8908 2002-06-11  Tom Tromey  <tromey@redhat.com>
8909
8910         For PR java/6520:
8911         * fold-const.c (fold_convert): Don't modify existing tree's type.
8912
8913 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8914
8915         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
8916
8917 2002-06-11  Richard Henderson  <rth@redhat.com>
8918
8919         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
8920
8921 2002-06-11  Richard Henderson  <rth@redhat.com>
8922
8923         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
8924         DWARF2_UNWIND_INFO is false.
8925
8926 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
8927
8928         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
8929
8930         * config/s390/s390.c (emit_prologue): gen_store_multiple
8931         returns an insn now, not a pattern.
8932
8933 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8934
8935         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
8936         $(TEXI2DVI) -o.
8937
8938 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8939
8940         * i386.c (x86_promote_QImode): Set for Athlon
8941         (x86_fast_prefix): New global variable.
8942         (x86_arch_always_fancy_math_387): Fix formating.
8943         * i386.h (x86_fast_prefix): Declare
8944         (TARGET_FAST_PREFIX): define.
8945         * i386.md (and to strict_low_part, HI to SI
8946         promoting splitter): Use new macro.
8947
8948         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
8949
8950 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8951
8952         * Makefile.in (distclean): Delete junk left in testsuite
8953         directory, too.
8954
8955 2002-06-11  Jeffrey Law <law@redhat.com>
8956
8957         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
8958         last insn created by the splitter.
8959
8960         * caller-save.c (init_caller_save): Move creation of SAVEINSN
8961         and RESTINSN into into the scope of the sequence.
8962
8963         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
8964         RETURN insns.
8965
8966         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
8967
8968         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
8969         not the pattern.  So extract the pattern from the insn.
8970
8971         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
8972
8973 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8974
8975         * config/s390/s390.md (movsi): Only use floating point
8976         register alternatives when operands are already fprs.
8977         (movdi_31, movdi_64): Likewise.
8978
8979 2002-06-11  David S. Miller  <davem@redhat.com>
8980
8981         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
8982         Only run RTX equality checks on INSN_P rtl.
8983
8984 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8985
8986         * config/s390/s390.md (reload_base, ltorg): Remove.
8987         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
8988         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
8989         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
8990         s390_asm_output_pool_prologue): Likewise.
8991         * s390.h (s390_pool_start_insn): Likewise.
8992
8993         * s390.c (s390_output_symbolic_const): Remove support for
8994         old-style pool chunks.
8995         (s390_function_epilogue): Likewise.
8996         (s390_output_constant_pool): Likewise.  Also, fix incorrect
8997         alignment for 64-bit literal pools.
8998         (print_operand_address): Remove 'y' and 'Y' format flags.
8999         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
9000         old-style pool chunks.
9001         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
9002         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
9003         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
9004
9005         * s390.c (consttable_operand): New function.
9006         * s390-protos.h (consttable_operand): Declare it.
9007         * s390.h (PREDICATE_CODES): Add consttable_operand.
9008         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
9009         consttable_sf, consttable_df, pool_start_31, pool_end_31,
9010         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
9011         * s390.c (struct constant, struct constant_pool): New data types.
9012         (constant_modes, gen_consttable): New variables.
9013         (s390_start_pool, s390_end_pool, s390_add_pool,
9014         s390_dump_pool, s390_free_pool): New functions.
9015         (s390_chunkify_pool): Completely reimplement literal pool
9016         overflow handling.
9017
9018         * s390.c (s390_pool_overflow): New variable.
9019         * s390.h (s390_pool_overflow): Declare it.
9020         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
9021         jumps in literal pool overflow situations.
9022
9023         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
9024         (s390_frame_info): Account for possible use of RETURN_REGNUM
9025         by new literal pool overflow code.
9026         (s390_emit_prologue): Likewise.
9027
9028 2002-06-05  David S. Miller  <davem@redhat.com>
9029
9030         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
9031         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
9032         emit_insns_before_scope, emit_insns_after,
9033         emit_insns_after_scope): Delete declaration.
9034         * ada/misc.c (insert_code_for): Use emit_insn* instead of
9035         emit_insns_foo.
9036         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
9037         (alpha_set_memflags): Fix comment.
9038         (set_frame_related_p): Use get_insns instead of gen_sequence.
9039         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
9040         emitting no insns.
9041         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
9042         gen_sequence.
9043         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
9044         * config/fr30/fr30.c (fr30_move_double): Likewise.
9045         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
9046         Likewise.
9047         * config/ia64/ia64.c (spill_restore_mem): Likewise.
9048         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
9049         no insns.
9050         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
9051         instead of gen_sequence.
9052         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
9053         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
9054         * config/sh/sh.c (sh_need_epilogue): Likewise.
9055         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
9056         attributes.
9057         (setjmp pattern and split): Use them to avoid splitter which emits
9058         no RTL.
9059         * genattrtab.c (main): Emit include of function.h
9060         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
9061         get_insns instead of gen_sequence.
9062         * config/cris/cris.c (cris_split_movdx): Likewise.
9063         * emit-rtl.c (emit_insns*): Kill.
9064         (try_split): Expect insn list instead of SEQUENCE.
9065         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
9066         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
9067         Make them abort if a SEQUENCE is given and RTL checking is
9068         enabled.
9069         (emit_*_scope): Don't forget to set scope on final insn.
9070         (gen_sequence): Move from here...
9071         * ssa.c (gen_sequence): To here as private function.
9072         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
9073         comments.
9074         (expand_builtin_return, expand_builtin_mathfn): Likewise.
9075         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
9076         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
9077         (expand_builtin_expect_jump): Use get_insns and fix comments.
9078         * calls.c (try_to_integrate): Use emit_insn_foo.
9079         (expand_call, emit_library_call_value_1): Likewise.
9080         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
9081         (emit_move_insn_1): Use get_insns instead of gen_sequence.
9082         (expand_expr): Use emit_insn_foo.
9083         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
9084         * except.c (build_post_landing_pads): Likewise.
9085         * flow.c (attempt_auto_inc): Likewise.
9086         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
9087         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
9088         * function.c (fixup_var_refs_insn): Use get_insns instead of
9089         gen_sequence.
9090         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
9091         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
9092         (fixup_stack_1, purge_addressof_1, expand_main_function,
9093         get_arg_pointer_save_area): Likewise.
9094         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
9095         expand_function_end): Use emit_insn_foo.
9096         (record_insns, keep_stack_depressed): Work with insn list instead
9097         of SEQUENCE, fix comments.
9098         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
9099         noce_try_store_flag_constants, noce_try_store_flag_inc,
9100         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
9101         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
9102         (noce_process_if_block): Use get_insns instead of gen_sequence.
9103         * optabs.c (add_equal_note): Work with insn list, fix comments.
9104         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
9105         (expand_unop, expand_complex_abs, expand_unop_insn,
9106         expand_no_conflict_block): Likewise.
9107         (gen_move_insn): Use get_insns instead of gen_sequence.
9108         (gen_cond_trap): Likewise.
9109         * integrate.c (copy_rtx_and_substitute): Likewise.
9110         (emit_initial_value_sets): Use emit_insn_foo.
9111         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
9112         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
9113         now that RTL generators give insn lists.
9114         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
9115         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
9116         instead of gen_sequence.
9117         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
9118         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
9119         instead of gen_sequence.
9120         * loop.c (move_movables, emit_prefetch_instructions,
9121         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
9122         Likewise.
9123         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
9124         (product_cheap_p): Likewise, and add commentary about RTL wastage
9125         here.
9126         * lcm.c (optimize_mode_switching): Use get_insns instead of
9127         gen_sequence.
9128         * profile.c (gen_edge_profiler): Likewise.
9129         * regmove.c (copy_src_to_dest): Likewise.
9130         * reg-stack.c (compensate_edge): Likewise and fix comment.
9131         * gcse.c (process_insert_insn): Likewise.
9132         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
9133         * jump.c (delete_prior_computation): Update comment.
9134         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
9135         of gen_sequence, update comments to match.
9136         * recog.c (peephole2_optimize): Work with insn lists instead of
9137         SEQUENCE rtl.
9138         * sched-vis.c (print_pattern): Abort on SEQUENCE.
9139         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
9140         Use get_insns instead of gen_sequence.
9141         (copy_loop_body): Likewise and don't emit dummy NOTE.
9142         * genrecog.c: Don't mention SEQUENCE rtl in comments.
9143         * combine.c (try_combine): Expect insn lists from split generator.
9144         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
9145         hand.
9146
9147 2002-06-11  Roger Sayle  <roger@eyesopen.com>
9148             Andreas Jaeger <aj@suse.de>
9149
9150         * cfgbuild.c: Update copyright years.
9151
9152 2002-06-11  Andreas Schwab  <schwab@suse.de>
9153
9154         * config/m68k/m68k.h (PREDICATE_CODES): Define.
9155
9156 2002-06-11  Eric Christopher  <echristo@redhat.com>
9157
9158         * doc/tm.texi (Run-time Target): Add comment about flag_iso
9159         and strict ANSI.
9160         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
9161         * config/mips/ecoffl.h: Ditto.
9162         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
9163         (CPP_PREDEFINES): Ditto.
9164         * config/mips/elfl64.h: Ditto.
9165         * config/mips/elfl.h: Ditto.
9166         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
9167         out until irix header consolidation.
9168         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
9169         with SUBTARGET_OS_CPP_BUILTINS.
9170         * config/mips/iris6.h: Ditto.
9171         (CPLUSPLUS_CPP_SPEC): Remove.
9172         * config/mips/linux.h: Ditto.
9173         * config/mips/netbsd.h: Ditto.
9174         * config/mips/openbsd.h: Ditto.
9175         * config/mips/rtems.h: Ditto.
9176         * config/mips/rtems64.h: Ditto.
9177         * config/mips/sni-svr4.h: Ditto.
9178         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
9179         ISA_MIPS32, ISA_MIPS64): New defines.
9180         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
9181         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
9182         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9183         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
9184         (TARGET_CPU_CPP_BUILTINS): Define.
9185         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
9186         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
9187         (movdicc): Remove check for ISA_MIPS32.
9188          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
9189         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
9190         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
9191         sunge_sf, sunle_df, sunle_sf): New patterns.
9192
9193 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9194
9195         * Makefile.in: Update cppmain.o.
9196         * cpphash.h (struct cpp_reader): Move some members to a
9197         nested structure.
9198         (trad_line): Rename saved_line.
9199         (_cpp_read_logical_line_trad): Update.
9200         (_cpp_remove_overlay): New.
9201         * cppinit.c (cpp_create_reader): No need to set saved_line.
9202         (cpp_destroy): Update.
9203         (cpp_read_main_file): Only overlay if compiling.
9204         * cpplex.c (continue_after_nul): Return false if in directive.
9205         * cpplib.c (EXPAND): New.
9206         (directive_table, SEEN_EOL): Update.
9207         (end_directive): Remove overlay if traditional; don't skip
9208         line in traditional #define.
9209         (prepare_directive_trad): New.
9210         (_cpp_handle_directive, run_directive): Update for traditional
9211         directives.
9212         (lex_macro_node): Simplify, don't use lex_identifier_trad.
9213         * cpplib.h (struct options): Add preprocess_only.
9214         * cppmain.c: Don't include intl.h.
9215         (cpp_preprocess_file): Set options->preprocess_only.
9216         (scan_translation_unit_trad): Fix, and print line numbers.
9217         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
9218         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
9219         save_replacement_text, _cpp_create_trad_definition): Update for
9220         variable renaming.
9221         (_cpp_overlay_buffer): Save line number.
9222         (_cpp_remove_overlay): Rename from restore_buff, restore line.
9223         (_cpp_read_logical_line_trad): Don't handle overlays here.
9224         (scan_out_logical_line): Process directives.
9225
9226 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
9227
9228         * gthr-win32.h: Wrap functions in extern "C".
9229         (__gthread_key_t): Typedef as unsigned long,
9230         not win32 DWORD.
9231         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
9232         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
9233         (__gthr_win32_once, __gthr_win32_key_create,
9234         __gthr_win32_key_delete, __gthr_win32_getspecific,
9235         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9236         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9237         __gthr_win32_mutex_unlock): Declare.
9238         (__gthread_once,__gthread_key_create,
9239         __gthread_key_delete, __gthread_getspecific,
9240         __gthread_setspecific, __gthread_mutex_init_function,
9241         __gthread_mutex_lock,__gthread_mutex_trylock,
9242         __gthread_mutex_unlock): Call corresponding
9243         __gthr_win32_* extern implementations if #defined
9244         __GTHREAD_HIDE_WIN32API.
9245         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
9246         $(srcdir)/config/i386/gthr-win32.c
9247         * config/i386/gthr-win32.c: New implementation file.
9248         (__gthr_win32_once, __gthr_win32_key_create,
9249         __gthr_win32_key_delete, __gthr_win32_getspecific,
9250         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9251         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9252         __gthr_win32_mutex_unlock): New functions, based on
9253         static inlines in gthr-win32.h.
9254
9255 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
9256
9257         * config/xtensa/xtensa.c (override_options): Don't warn about
9258         using -fpic or -fPIC when PIC is enabled by default.
9259
9260 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9261
9262         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
9263
9264 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9265
9266         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
9267         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
9268         exists, substitute its pathname as @extra_modes_file@, define
9269         EXTRA_MODES_FILE to be an appropriate string to #include it
9270         with, and define EXTRA_CC_MODES to 1.
9271
9272         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
9273         it's defined.  Get rid of redundancy in calling sequence for
9274         CC; don't use it to define CCmode, to avoid a warning.
9275         * libgcc2.c: Include symcat.h for the sake of machmode.def.
9276
9277         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
9278         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
9279         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
9280         New files.
9281         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
9282         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
9283
9284         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
9285         defining extra CC modes.
9286
9287 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9288             Andreas Jaeger <aj@suse.de>
9289
9290         * cfgrtl.c (create_basic_block_structure):  Remove index argument
9291         and use last_basic_block++ instead.  (create_basic_block): Update.
9292         * cfgbuild.c (find_basic_blocks_1): Likewise.
9293
9294         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
9295         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
9296         * sched-ebb.c (schedule_ebbs): Likewise.
9297         * sched-rgn.c (schedule_insns): Likewise.
9298         * ssa-ccp.c (ssa_const_prop): Likewise.
9299         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
9300         * toplev.c (rest_of_compilation): Likewise.
9301         * config/ia64/ia64.c (ia64_reorg): Likewise.
9302
9303 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9304
9305         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
9306         of matching registers.
9307
9308 2002-06-10  Roger Sayle  <roger@eyesopen.com>
9309
9310         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
9311         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
9312
9313 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
9314
9315         * config/mmix/mmix.h: Improve comments.
9316         (CPP_SPEC, CPP_PREDEFINES): Don't define.
9317         (TARGET_CPU_CPP_BUILTINS): Define.
9318         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
9319         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
9320         unused predicate.
9321         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
9322         compiler warning.
9323         (mmix_constant_address_p): Remove another
9324         redundant test before case.
9325         (mmix_canonicalize_comparison): Remove unused function.
9326         (mmix_print_operand_address): Don't test and adjust for operand in
9327         non-canonical format.
9328         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
9329         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
9330
9331 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9332
9333         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
9334         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
9335         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
9336         (gen_compare): Use CCmode unconditionally.
9337
9338 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9339
9340         PR optimization/6759
9341         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
9342         the REQ_EQUAL note.
9343
9344 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9345
9346         PR c/6660
9347         * c-decl.c (grokfield): Allow user defined types if they declare
9348         structs or unions for unnamed fields.
9349
9350 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9351
9352         PR c/6809
9353         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
9354
9355 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9356
9357         PR optimization/6842
9358         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
9359         operand subreg cannot be simplified.
9360
9361 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9362
9363         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
9364         (compare_constant): Likewise.
9365         (output_addressed_constants): Likewise.
9366
9367 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
9368
9369         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
9370         merge bb with itself.
9371
9372 2002-06-10  Richard Henderson  <rth@redhat.com>
9373
9374         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
9375         (builtin_zapnot): Likewise.
9376
9377         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
9378         reservation.
9379
9380 2002-06-10  Eric Christopher  <echristo@redhat.com>
9381
9382         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
9383         prototype and function.
9384         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
9385         (call_insn_operand): Remove half pic references.
9386         (legitimate_address_p): Ditto.
9387         * config/i386/i386.h: Remove half pic defines.
9388
9389 2002-06-10  Eric Christopher  <echristo@redhat.com>
9390
9391         * doc/extend.texi (Return Address): Add note explaining the side-
9392         effects of inlining on __builtin_return_address.
9393
9394 2002-06-10  Tom Tromey  <tromey@redhat.com>
9395
9396         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
9397         (c-common.o): Depend on langhooks.h.
9398
9399 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9400
9401         * cpphash.h (_cpp_read_logical_line_trad,
9402         _cpp_expansions_different_trad): Update prototypes.
9403         * cpplex.c (continue_after_nul): New.
9404         * cppmain.c: Include cpphash.h.
9405         (scan_translation_unit_trad): New.
9406         (cpp_preprocess_file): Call it.
9407         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
9408         overlay.
9409         (_cpp_expansions_different_trad): Update prototype.
9410
9411 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9412
9413         Fix cfi generation for SH[1-4]:
9414
9415         * sh.c (frame_insn): New function.
9416         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
9417         (push): Now returns rtx.  Use frame_insn.
9418         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
9419         of a DF register.
9420         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
9421
9422 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
9423
9424         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
9425         and gtype-desc.c.
9426         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
9427         (distclean): ... not here.  But do delete all testsuite/*.log,
9428         testsuite/*.sum files here.  Delete mkheaders.  Delete
9429         po/*.gmo and the testsuite directory in a split tree build.
9430
9431 2002-06-10  Jeffrey Law  <law@redhat.com>
9432
9433         * alias.c (static_reg_base_value): New to hold RTL for
9434         items allocated once per function for the aliasing code.
9435         (init_alias_once_per_function): Initialize static_reg_base_value.
9436         (init_alias_analysis): Avoid throw-away allocations of RTL by
9437         using pre-computed values in static_reg_base_value.
9438         * function.c (prepare_function_start): Call
9439         init_alias_once_per_function appropriately.
9440         * rtl.h (init_alias_once_per_function): Declare.
9441         * caller-save (init_caller_save): Restructure slightly to
9442         avoid lots of silly RTL generation.
9443         * expr.c (init_expr_once): Likewise.
9444         * reload1.c (reload_cse_regs_1): Allocate throw-away register
9445         RTL object here.  Pass it into children.
9446         (reload_cse_simplify_operands): Use passed-in register RTL
9447         object.
9448         (reload_cse_simplify): Pass through throw-away register
9449         RTL object.
9450
9451 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
9452
9453         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
9454
9455 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
9456
9457         * gcc.c (process_command): Avoid assignment to read-only location.
9458         Fix sizeof calculation.
9459
9460 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9461
9462         * cpphash.h (struct cpp_macro): Put comments on their own lines.
9463         (_cpp_expansions_different_trad): New.
9464         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
9465         * cpptrad.c (canonicalize_text): New.
9466         (scan_out_logical_line): Handle no arguments correctly.
9467         (save_replacement_text): Commit memory when finished.
9468         (_cpp_expansions_different_trad): New.
9469
9470 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9471
9472         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
9473         TREELANG and COBOL.
9474         (lang_names): Add treelang and cobol.
9475         (get_file_basename): Add code to support treelang and cobol as
9476         4th and 5th users of c-common.c.
9477
9478 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
9479
9480         * Makefile.in (install-driver): Install driver as
9481         $(target_alias)-gcc-$(version).
9482         * gcc.c (spec_version): Make const.
9483         (process_command): Handle -V and -b by using exec.
9484         * doc/invoke.texi (Target Options): Restore -V option,
9485         update docs for -b option.
9486
9487 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9488
9489         * configure.in (remaining_languages_check):
9490         Added check that all languages specified were found.
9491         Exit if not found. Previous behavior was silent failure.
9492         * configure: Regenerated.
9493
9494 2002-06-10  Tim Josling  <tej@melbpc.org.au>
9495
9496          First steps to making treelang documentation compliant, based on
9497          instructions in sourcebuild.texi. Also add to gcc.c list of
9498          default languages.
9499
9500         * doc/contrib.texi: Add self as contributor of treelang.
9501
9502         * doc/frontends.texi: Add mention of treelang.
9503
9504         * doc/invoke.texi (Overall Options): Add mention of treelang.
9505
9506         * doc/standards.texi:  Add mention of treelang.
9507
9508 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
9509
9510         * config/cris/cris.c: Include ggc.h
9511
9512 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9513
9514         * cpphash.h (_cpp_push_text_context): Update.
9515         (_cpp_arguments_ok): New.
9516         * cppmacro.c (_cpp_arguments_ok): New, split out from...
9517         (collect_args): ...here.
9518         (_cpp_push_text_context): Change inputs.
9519         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
9520         replace_args_and_push): New.
9521         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
9522         Don't use IS macros directly.
9523         (scan_out_logical_line): Handle function-like macro argument
9524         collection.
9525         (push_replacement_text): Update.
9526         (replacement_length): Remove.
9527         (_cpp_create_trad_definition): Don't skip whitespace before
9528         checking for '('.
9529
9530 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9531
9532         * config/avr/avr.c (avr_mcu_types): Update for new devices.
9533         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
9534         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
9535         * config/avr/avr.md ("type" and "length" attributes): New type
9536         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
9537         output a single "call" or "rcall" insn depending on device size.
9538         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
9539
9540 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
9541
9542         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
9543         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
9544         assembler option.
9545         (CPP_CPU_SPEC): Add power3 and power4.
9546         (PROCESSOR_DEFAULT): Change to 604e.
9547         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
9548         (CPP_CPU_SPEC): Similar additions.
9549         (enum process_type): Add POWER4.
9550         (RTX_COSTS): Add POWER4.
9551         (CPP_CPU_SPEC): Similar additions.
9552         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9553         (PROCESSOR_DEFAULT64): Define.
9554         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
9555         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
9556         branch adjustment.
9557         (rs6000_issue_rate): Add Power4.
9558         * config/rs6000/rs6000.md (cpu attr): Add power4.
9559         (iu compare): Remove 604, 604e, 620, 630.
9560         Add basic Power4 scheduling information.
9561         (mfcr/mtcrf): Change type attribute to cr_logical.
9562
9563 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9564
9565         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
9566         ATTRIBUTE_PRINTF_2.
9567         * gengtype-lex.l: Fix format specifier warning.
9568
9569         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
9570         not isspace.
9571         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
9572         lieu of isspace/IDchar.
9573         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
9574         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
9575         ISSPACE.
9576
9577 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
9578
9579         * Makefile.in (LIBCPP_OBJS): Take out version.o.
9580         * cpphash.h (cpp_reader): Take out print_version member.
9581         * cppinit.c: (cpp_handle_option): Don't do anything with
9582         -version.  Just set help_only for --version, --target-help.
9583         Just set verbose option for -v.
9584         (cpp_post_options): Don't print a version string.
9585
9586 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9587
9588         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
9589         (avr_section_type_flags): New, handle .noinit* sections.
9590
9591 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9592
9593         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
9594         and include netbsd_entry_point.
9595         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9596         (NETBSD_ENTRY_POINT): Define.
9597
9598 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9599
9600         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
9601         if not already defined.
9602         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
9603
9604 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9605
9606         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
9607         in a noreturn function.
9608         (avr_output_function_prologue, avr_output_function_epilogue):
9609         Correct function size calculation.  Do not crash on empty function.
9610         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
9611
9612 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9613
9614         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9615         netbsd_link_spec and netbsd_entry_point.
9616         (LINK_SPEC): Use %(netbsd_link_spec).
9617         (NETBSD_ENTRY_POINT): Define.
9618
9619 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9620
9621         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
9622         linker emulation.
9623         (LINK_ARCH64_SPEC): Likewise.
9624         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
9625         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
9626
9627 2002-06-08  Marc Espie  <espie@openbsd.org>
9628
9629         * lists.c (free_list):  Fix typo in comment.
9630
9631 2002-06-08  Andreas Jaeger  <aj@suse.de>
9632
9633         * lcm.c (optimize_mode_switching): Add unused attribute for
9634         variable.
9635
9636         * sched-deps.c (sched_analyze): Remove unused variable.
9637
9638 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
9639
9640         * diagnostic.def: Don't capitalize diagnostict descriptors.
9641
9642 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9643
9644         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
9645         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9646         (NETBSD_ENTRY_POINT): Define.
9647
9648 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9649
9650         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
9651         NETBSD_LINK_SPEC_ELF.
9652         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
9653         (NETBSD_ENTRY_POINT): Define.
9654         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
9655         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
9656         netbsd_entry_point.
9657         (NETBSD_ENTRY_POINT): Define.
9658
9659 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9660
9661         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9662         netbsd_link_spec and netbsd_entry_point.
9663         (LINK_SPEC): Use %(netbsd_link_spec).
9664         (NETBSD_ENTRY_POINT): Define.
9665
9666 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9667
9668         * config/netbsd-elf.h (LINK_SPEC): Rename to...
9669         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
9670         to specify program entry point.
9671
9672 2002-06-07  Jeff Law <law@redhat.com
9673
9674         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
9675         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
9676         than creating a new register.
9677         (distribute_notes): Likewise.
9678         * df.c (df_reg_use_gen): Likewise.
9679         (df_reg_clobber_gen): Likewise.
9680         (df_ref_record): Likewise.
9681         * expr.c (use_regs): Likewise.
9682         * flow.c (propagate_one_insn): Likewise.
9683         (mark_set_1): Likewise.
9684         (mark_used_reg): Likewise.
9685         * reload.c (emit_reload_insns): Likewise.
9686
9687 2002-06-07  Roger Sayle  <roger@eyesopen.com>
9688
9689         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
9690         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
9691         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
9692         comparison code comp can be reversed.
9693
9694 2002-06-07  Roger Sayle  <roger@eyesopen.com>
9695
9696         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
9697         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
9698         equivalent x > -1.0 when -ffast-math.
9699
9700 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9701
9702         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
9703         * config/mips/t-netbsd: New file.
9704
9705 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
9706
9707         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
9708         options their own entries.
9709         (parse_option): Clarify comment.
9710         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
9711         special case.  Replace if/strcmp chain for -W options with
9712         use of new OPT_* entries for them.
9713         (cpp_handle_options): Update to match.
9714         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
9715         * c-decl.c: Update call to cpp_handle_option.
9716
9717 2002-06-07  Akim Demaille  <akim@epita.fr>
9718
9719         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
9720         Whitespace changes.
9721
9722 2002-06-07  Jeffrey Law  <law@redhat.com>
9723
9724         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
9725         on empty lists.
9726
9727 2002-06-07  H.J. Lu  (hjl@gnu.org)
9728
9729         * configure.in: Add --enable-__cxa_atexit.
9730         * configure: Regenerated.
9731         * config.in: Likewise.
9732
9733         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
9734         not defined.
9735
9736 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
9737
9738         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
9739
9740 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9741
9742         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
9743
9744 2002-06-07  Jason Merrill  <jason@redhat.com>
9745
9746         * cppexp.c (num_equality_op): Use a temporary variable to work
9747         around gcc 3.0.4 bug.
9748
9749 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
9750
9751         * diagnostic.c (diagnostic_build_prefix): Tidy.
9752
9753 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9754
9755         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
9756         scan_parameters, save_replacement_text, replacement_length): New.
9757         (scan_out_logical_line): Take a macro and save parameters if
9758         non-NULL.
9759         (_cpp_logical_line_trad): Update.
9760         (_cpp_create_trad_definition): Update to handle function-like
9761         macros.
9762         * cpplex.c (new_buff): Update.
9763         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
9764         * cpphash.h: ...here.
9765         (CPP_ALIGN2, _cpp_save_parameter): New.
9766         * cppmacro.c (save_parameter): Rename, export.
9767         (parse_params): Update.
9768
9769 2002-06-07  Andreas Jaeger  <aj@suse.de>
9770
9771         * config/mmix/mmix.c: Remove extra broken prototype for
9772         mmix_init_machine_status.
9773
9774 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
9775
9776         * gengtype.c: Add comments before all the routines.
9777
9778 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
9779
9780         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
9781         from and add t-sh64 to ${tmake_file}.
9782         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
9783         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
9784         * config/sh/t-netbsd-sh5-32: Remove.
9785         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
9786         MULTILIB_ENDIAN.
9787         (MULTILIB_DIRNAMES): Define.
9788
9789 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
9790
9791         * i386.md (and promoting splitters): Disable QI to SImode promoting
9792         when doing so changes immediate to be 32bit.
9793
9794         * rtl.h (emit_*_scope): Declare.
9795         * emit-rtl.c (emit_*_scope): New global functions.
9796         (try_split): Copy scope.
9797         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9798         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9799         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
9800         noce_process_if_block, find_cond_trap): Copy scopes.
9801         * recog.c (peephole2_optimize): likewise.
9802
9803 2002-06-06  Jeffrey Law  <law@redhat.com>
9804
9805         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
9806
9807 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
9808
9809         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
9810
9811 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9812
9813         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
9814         ($(docdir)/gccinstall.info): New target.
9815         (info): Depend on it.
9816         (gccinstall.dvi): New target.
9817         (dvi): Depend on it.
9818         * doc/.cvsignore: Ignore new info files.
9819         * doc/install.texi (@setfilename): Reflect new info filename.
9820
9821 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
9822
9823         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
9824         on an UNSPEC.
9825
9826 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9827
9828         PR objc/6834
9829         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
9830         c_common_get_alias_set.
9831         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
9832
9833 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9834
9835         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
9836         functions.
9837         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
9838         * avr/avr.c (avr_output_function_epilogue): Use above to determine
9839         function size.
9840         * pa/pa.c (pa_output_function_prologue): Likewise.
9841
9842 2002-06-05  David S. Miller  <davem@redhat.com>
9843
9844         * integrate.c (subst_constants): Handle 'B' RTL format.
9845
9846 2002-06-05  Eric Christopher  <echristo@redhat.com>
9847
9848         * varasm.c (make_decl_rtl): Fix comment for removed
9849         halfpic.c.
9850
9851 2002-06-05  Eric Christopher  <echristo@redhat.com>
9852
9853         * Makefile.in: Remove missed halfpic bits.
9854
9855 2002-06-05  Eric Christopher  <echristo@redhat.com>
9856
9857         * toplev.c: Remove half-pic.
9858         * config/mips/mips.c: Ditto.
9859         * config/mips/mips.h: Ditto. Remove unused defines.
9860         * config/mips/openbsd.h: Update comment to reflect above.
9861         * config/mips/mips.md: Remove half-pic constraints.
9862         * halfpic.h: Delete.
9863         * halfpic.c: Ditto.
9864
9865 2002-06-05  Jeffrey Law  <law@redhat.com>
9866
9867         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
9868         rejects (mem (lo_sum (reg) (unspec))), but will allow
9869         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
9870
9871 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9872
9873         * cpphash.h (_cpp_create_definition): Update prototype.
9874         (_cpp_push_text_context, _cpp_create_trad_definition): New.
9875         ( cpp_lex_identifier_trad): New.
9876         (_cpp_set_trad_context): New.
9877         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
9878         * cpplib.c (SEEN_EOL): Update.
9879         (lex_macro_node): Update for -traditional.
9880         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
9881         * cppmacro.c (_cpp_create_definition): Split into
9882         create_iso_definition() and _cpp_create_trad_definition().
9883         (warn_of_redefinition): Update prototype; handle traditional
9884         macros.
9885         (_cpp_push_text_context): New.
9886         * cpptrad.c (skip_whitespace, push_replacement_text): New.
9887         (lex_identifier): Call ht_lookup with correct start.
9888         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
9889         _cpp_set_trad_context): New.
9890         (scan_out_logical_line): Update to handle changing contexts.
9891
9892 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
9893
9894         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
9895         (shl*-*-elf*): Add.
9896         * config/sh/t-be (MULTILIB_ENDIAN): Set.
9897         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
9898         * t-sh (MULTILIB_ENDIAN): Set.
9899         (MULTILIB_OPTIONS): Use it.
9900         * t-sh64 (MULTILIB_OPTIONS): Likewise.
9901         (MULTILIB_DIRNAMES): Likewise.
9902
9903 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
9904
9905         * toplev.h (report_error_function): Remove.
9906
9907         * diagnostic.h (location_t): New datatype.
9908         (text_info): Likewise.
9909         (diagnostic_info): Likewise.
9910         (output_prefix): New macro.
9911         (diagnostic_last_function_changed): Likewise.
9912         (diagnostic_set_last_function): Likewise.
9913         (diagnostic_last_module_changed): Likewise.
9914         (diagnostic_set_last_module): Likewise.
9915         (report_diagnostic): Now macro.
9916         (diagnostic_set_info): Declare.
9917
9918         * diagnostic.c (report_problematic_module): Rename to
9919         diagnostic_repor_current_module.
9920         (set_diagnostic_context): Remove.
9921         (count_error): Rename to diagnostic_error_count.
9922         (error_function_changed): Remove.
9923         (record_last_error_function): Likewise.
9924         (error_module_changed): Likewise.
9925         (record_last_error_module): Likewise.
9926         (context_as_prefix): Rename to diagnostic_build_prefix.
9927         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
9928         (diagnostic_set_info): New function.
9929
9930         * objc/objc-act.c: #include diagnostic.h
9931         (error_with_ivar): Adjust call to count_error.
9932         (warn_with_method): Likewise.
9933         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
9934
9935 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
9936
9937         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
9938         lang_hooks.types.make_type instead of make_node; set up
9939         __va_list_tag type decl.
9940         (xtensa_builtin_saveregs): Remove broken use of
9941         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
9942         for saved registers; add varargs alias set.
9943
9944 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9945
9946 config:
9947         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
9948         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9949         CPP_PREDEFINES and part of CPP_SPEC.
9950         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
9951         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
9952
9953 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
9954
9955         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
9956
9957 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
9958
9959         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
9960
9961 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
9962
9963         * gengtype-yacc.y: Make sure all rules end with a semicolon.
9964
9965 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
9966
9967         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
9968         typo in function prototype and include "ggc.h" header.
9969
9970 2002-06-04  Richard Henderson  <rth@redhat.com>
9971
9972         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9973         (print_operand) ['U']: Likewise.
9974         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
9975         (alpha_expand_unaligned_store_words): Likewise.
9976         (alpha_expand_builtin_vector_binop): Fix typo.
9977         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
9978         umulh, and cix insns.
9979         (one_arg_builtins): Add cix builtins.
9980         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
9981         (alpha_expand_builtin): Fix typo in arity.
9982         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
9983         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
9984         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
9985         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
9986         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
9987         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
9988         builtin_ctlz, builtin_ctpop): New.
9989         * doc/extend.texi (Alpha Built-in Functions): Update.
9990
9991 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
9992
9993         * gengtype.c (write_gc_root): Don't unnecessarily prevent
9994         global variable-length arrays being roots.
9995
9996         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
9997         * configure.in (config_gtfiles): New variable.
9998         (all_gtfiles): Initialize from config_gtfiles.
9999         * configure: Regenerate.
10000
10001 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10002
10003 config/i386:
10004         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
10005         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
10006         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
10007         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
10008         win32.h (CPP_SPEC): Remove cpp_cpu.
10009         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
10010         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
10011
10012 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
10013
10014         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
10015
10016 2002-06-04  Jeff Law <law@redhat.com.
10017             David Edelsohn <edelsohn@gnu.org>
10018             Michael Matz <matz@kde.org>
10019
10020         * sched-int.h (struct deps): New field libcall_block_tail_insn.
10021         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
10022         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
10023         is set, then mark the current insn as being part of a libcall
10024         scheduling group.
10025         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
10026
10027         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
10028         insns against the issue rate.
10029
10030 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
10031
10032         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
10033         * final.c (final_scan_insn): Likewise.
10034         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
10035         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
10036         * haifa-sched.c (unlink_other_notes): Likeewise.
10037         (reemit_notes): Likewise.
10038         * print-rtl.c (print_rtx): Likewise.
10039         * sched-deps (sched-analyze): Likewise.
10040         * rtl.c (note_insn_name): Likewise.
10041         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
10042         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
10043         (RANGE_*): Kill.
10044
10045 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
10046
10047         * varasm.c (mark_constants): Handle RTX format 'B'.
10048
10049 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10050
10051         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
10052         (struct cpp_context): Add traditional fields.
10053         * cppmacro.c (paste_all_tokens, push_ptoken_context,
10054         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
10055         * cpptrad.c (skip_comment, lex_identifier,
10056         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
10057
10058 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
10059
10060         * gbl-ctors.h: Fix formatting.
10061         * gcc.c: Likewise.
10062         * gccspec.c: Likewise.
10063         * gcov.c: Likewise.
10064         * gcov-io.h: Likewise.
10065         * gcse.c: Likewise.
10066         * ggc-common.c: Likewise.
10067         * ggc.h: Likewise.
10068         * ggc-page.c: Likewise.
10069         * ggc-simple.c: Likewise.
10070         * global.c: Likewise.
10071         * graph.h: Likewise.
10072         * gthr-dce.h: Likewise.
10073         * gthr.h: Likewise.
10074         * gthr-posix.h: Likewise.
10075         * gthr-rtems.h: Likewise.
10076         * gthr-solaris.h: Likewise.
10077         * gthr-win32.h: Likewise.
10078
10079 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10080
10081         Merge from pch-branch:
10082
10083         * gengtype.h (UNION_OR_STRUCT_P): New macro.
10084         * gengtype.c (write_gc_structure_fields): Use it.
10085         (write_gc_root): Use it here too.
10086
10087         * gengtype.c (write_gc_structure_fields): Assume that lengths
10088         of typenames fit into an 'int'; don't pass a size_t to "%d" in
10089         printf.
10090         (write_gc_marker_routine_for_structure): Likewise.
10091         (write_gc_types): Likewise.
10092         (write_gc_root): Likewise.
10093
10094         * varray.h (VARRAY_CLEAR): New.
10095         (varray_clear): Prototype.
10096         * varray.c (varray_clear): New.
10097         * cselib.c (reg_values_old): New.
10098         (used_regs_old): New.
10099         (cselib_init): Use cached varrays if available to avoid
10100         generating large amounts of garbage.
10101         (cselib_finish): Don't throw away old varrays.
10102
10103         * final.c (insn_addresses_): Move out of ifdef.
10104
10105         * varray.c (uses_ggc): Make more varray kinds GCable.
10106         * varray.h (union varray_data_tag): Let gengtype see
10107         fields 'generic' and 'te'.
10108         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
10109         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
10110         (reg_to_stack): Don't call VARRAY_FREE.
10111         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
10112         (insn_addresses_): Use gengtype to mark.
10113         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
10114         pointers; handle generic pointers in unused union fields.
10115         (get_output_file_with_visibility): Include cselib.h,
10116         insn-addr.h in gtype-desc.c.
10117         * function.c (prologue): Use gengtype to mark.
10118         (epilogue): Likewise.
10119         (sibcall_epilogue): Likewise.
10120         * dependence.c: Include gt-dependence.h, ggc.h.
10121         (struct def_use): Use gengtype to mark.
10122         (struct loop): Likewise.
10123         (struct induction): Likewise.
10124         (struct dependence): Likewise.
10125         (def_use_chain): Likewise.
10126         (dep_chain): Likewise.
10127         (loop_chain): Likewise.
10128         (induction_chain): Likewise.
10129         (init_dependence_analysis): Don't free anything, just clear pointers.
10130         (build_def_use): Use GGC to allocate def_use.
10131         (add_loop): Use GGC to allocate loop.
10132         (find_induction_variable): Use GGC to allocate induction.
10133         (check_node_dependence): Use GGC to allocate induction, dependence.
10134         (dump_node_dependence): Don't free varrays.
10135         (end_dependence_analysis): Likewise.
10136         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
10137         (struct elt_loc_list): Likewise.
10138         (struct elt_list): Likewise.
10139         * cselib.c: Don't include obstack.h.
10140         (hash_table): Use gengtype to mark.
10141         (reg_values): Use gengtype to mark.
10142         (used_regs): Use gengtype to mark.
10143         (cselib_obstack): Delete.
10144         (cselib_startobj): Delete.
10145         (empty_vals): Mark as deletable.
10146         (empty_elt_lists): Mark as deletable.
10147         (empty_elt_loc_lists): Mark as deletable.
10148         (new_elt_list): Use GGC to allocate struct elt_list.
10149         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
10150         (clear_table): Don't delete obstack; don't unnecessarily clear
10151         deletable variables.
10152         (new_cselib_val): Use GGC to allocate struct cselib_val.
10153         (cselib_init): Don't set up obstacks.  Use GGC to allocate
10154         hash table.
10155         (cselib_finish): Just clear variables, don't free anything.
10156         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
10157         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
10158         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
10159         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
10160         (gt-reg-stack.h): New rule.
10161         (gt-dependence.h): New rule.
10162         (gtype-desc.o): Add cselib.h, insn-addr.h.
10163
10164         * varray.c: Use only necessary headers.
10165         (element_size): New.
10166         (uses_ggc): New.
10167         (varray_init): Take type, not size.  Use GGC if appropriate.
10168         (varray_grow): Update for change to struct varray_head_tag.
10169         Use GGC if appropriate.
10170         * varray.h (struct const_equiv_data): Use gengtype.
10171         (enum varray_data_enum): New.
10172         (union varray_data_tag): Use gengtype.
10173         (struct varray_head_tag): Use gengtype.  Replace size field with
10174         enum varray_data_enum.
10175         (varray_init): Update prototype.
10176         (VARRAY_SCHED_INIT): Delete.
10177         (VARRAY_*_INIT): Update for change to varray_init.
10178         (VARRAY_SCHED): Delete.
10179         (VARRAY_PUSH_SCHED): Delete.
10180         (VARRAY_TOP_SCHED): Delete.
10181         * tree.h: Update for change to length specifier.
10182         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
10183         (clone_body): Likewise.
10184         * ssa.h (ssa_definition): Use gengtype to mark.
10185         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
10186         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
10187         * rtl.h (struct rtvec_def): Update for change to length specifier.
10188         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
10189         (struct initial_value_struct): Update for change to length specifier.
10190         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
10191         (ggc_add_tree_varray_root): Delete prototype.
10192         (ggc_mark_rtx_varray): Delete prototype.
10193         (ggc_mark_tree_varray): Delete prototype.
10194         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
10195         (ggc_add_tree_varray_root): Delete.
10196         (ggc_mark_rtx_varray): Delete.
10197         (ggc_mark_tree_varray): Delete.
10198         (ggc_mark_rtx_varray_ptr): Delete.
10199         (ggc_mark_tree_varray_ptr): Delete.
10200         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
10201         (create_varray): Delete prototype.
10202         * gengtype.c (varrays): Delete.
10203         (create_varray): Delete.
10204         (adjust_field_type): Detect array of string pointers.
10205         (process_gc_options): Remove code to handle varray_type option.
10206         (set_gc_used_type): Remove TYPE_VARRAY case.
10207         (output_escaped_param): New.
10208         (write_gc_structure_fields): Use output_escaped_param on all
10209         parameters.  Handle 'skip' with 'use_param' option.  Handle
10210         arrays of strings.  Remove TYPE_VARRAY handling.
10211         (write_gc_roots): Use boolean to detect 'length' option.
10212         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
10213         (struct_fields): Call adjust_field_type on array fields.
10214         (type): Remove VARRAY_TYPE case.
10215         (type_option): Likewise.
10216         * gengtype-lex.l: Don't consider varray_type a keyword.
10217         * function.h: Update for change to length specifier.
10218         (free_eh_status): Delete prototype.
10219         * function.c (free_after_compilation): Don't call free_eh_status.
10220         (reorder_blocks): Don't use VARRAY_FREE.
10221         * except.c (struct eh_status): Update for change to length specifier.
10222         remove varray_type specifier.
10223         (free_eh_status): Delete.
10224         * dwarf2out.c: Include gt-dwarf2out.h.
10225         (used_rtx_varray): Use gengtype to mark, move
10226         outside ifdefs.
10227         (incomplete_types): Likewise.
10228         (decl_scope_table): Likewise.
10229         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
10230         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
10231         * c-tree.h (struct lang_type): Update for change to length specifier.
10232         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
10233         * c-objc-common.c: Include gt-c-objc-common.h.
10234         (deferred_fns): Mark for gengtype.
10235         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
10236         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
10237         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
10238         (gtype-desc.o): Update dependencies.
10239         (dwarf2out.o): Add gt-dwarf2out.h.
10240         (varray.o): Update dependencies.
10241         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
10242         (gt-c-objc-common.h): New rule.
10243         (gt-dwarf2out.h): New rule.
10244         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
10245
10246         * doc/gty.texi (GTY Options): Correct spelling.
10247         (GGC Roots): Likewise.
10248         * Makefile.in (TEXI_CPP_FILES): New.
10249         (TEXI_GCC_FILES): New.
10250         (TEXI_GCCINT_FILES): New.
10251         (TEXI_CPPINT_FILES): New.
10252         ($(docdir)/cpp.info): Use new macros.
10253         ($(docdir)/gcc.info): Likewise.
10254         ($(docdir)/gccint.info): Likewise.
10255         ($(docdir)/cppinternals.info): Likewise.
10256         (cpp.dvi): Likewise.
10257         (gcc.dvi): Likewise.
10258         (gccint.dvi): Likewise.
10259         (cppinternals.dvi): Likewise.
10260
10261         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
10262         * doc/gccint.texi (Top): Include gty.texi.
10263         * doc/gty.texi: New file.
10264
10265         * bitmap.c: Include ggc.h, gt-bitmap.h.
10266         (bitmap_ggc_free): New.
10267         (bitmap_elem_to_freelist): New.
10268         (bitmap_element_free): Use bitmap_elem_to_freelist.
10269         (bitmap_element_allocate): Allow use of GGC.
10270         (bitmap_clear): Use bitmap_elem_to_freelist.
10271         (bitmap_copy): Update for change to bitmap_element_allocate.
10272         (bitmap_set_bit): Likewise.
10273         (bitmap_operation): Update for changes elsewhere.
10274         (bitmap_initialize): Allow to create bitmaps that will use GGC.
10275         * bitmap.h (struct bitmap_element_def): Use gengtype.
10276         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
10277         (bitmap_initialize): Add extra parameter.
10278         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
10279         (BITMAP_ALLOCA): Delete.
10280         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
10281         (BITMAP_GGC_ALLOC): New.
10282         * Makefile.in (gtype-desc.o): Add bitmap.h.
10283         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
10284         (GTFILES): Add bitmap.c.
10285         (gt-bitmap.h): New rule.
10286         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
10287         * basic-block.h: Update for changes to bitmap_initialize.
10288         * except.c (exception_handler_label_map): Move into...
10289         (struct eh_status): Here.
10290         (struct eh_region): Make 'aka' GCable.
10291         (free_eh_status): Don't need to specially handle
10292         exception_handler_label_map.
10293         (add_ehl_entry): Update for changes to exception_handler_label_map.
10294         (find_exception_handler_labels): Likewise.
10295         (remove_exception_handler_label): Likewise.
10296         (maybe_remove_eh_handler): Likewise.
10297         (for_each_eh_label): Likewise.
10298         (remove_eh_handler): Allocate 'aka' using GGC.
10299         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
10300         to list of includes.
10301
10302         * gengtype.c (write_gc_marker_routine_for_structure): Name
10303         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
10304         (write_gc_types): Arrange for the tests with NULL to be inlined.
10305         (write_gc_roots): Update uses of procedure pointers.
10306         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
10307
10308         * Makefile.in (explow.o): Add dependency on gt-explow.h.
10309         (sdbout.o): Add dependency on gt-sdbout.h.
10310
10311         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
10312         (mem_attrs_htab): Likewise.
10313         (init_emit_once): Don't call ggc_add_deletable_htab.
10314         * fold-const.c (size_htab): Use gengtype to clear unused entries.
10315         (size_int_type_wide): Don't call ggc_add_deletable_htab.
10316         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
10317         parameters, use them, change callers.
10318         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
10319         (write_gc_roots): Handle 'if_marked' option.
10320         (main): Don't need to call set_gc_used_type any more.
10321         * ggc.h (ggc_htab_marked_p): Delete.
10322         (ggc_htab_mark): Delete.
10323         (struct ggc_cache_tab): New.
10324         (gt_ggc_cache_rtab): New declaration.
10325         * ggc-common.c (struct d_htab_root): Delete.
10326         (d_htab_roots): Delete.
10327         (ggc_add_deletable_htab): Delete.
10328         (ggc_htab_delete): Handle new htab-deleting mechanism.
10329         (ggc_mark_roots): Use new htab-deleting mechanism.
10330         * tree.c (type_hash_table): Use gengtype to clear unused entries.
10331         Make static.
10332         (init_obstacks): Don't call ggc_add_deletable_htab.
10333
10334         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
10335         (struct hashed_entry): Likewise.
10336         (nst_method_hash_list): Likewise.
10337         (cls_method_hash_list): Likewise.
10338         (HASH_ALLOC_LIST_SIZE): Delete.
10339         (ATTR_ALLOC_LIST_SIZE): Delete.
10340         * objc/objc-act.c (hash_init): Use ggc to allocate
10341         nst_method_hash_list, cls_method_hash_list.
10342         (hash_enter): Use ggc to allocate; allocate one entry at a time.
10343         (hash_add_attr): Likewise.
10344         (ggc_mark_hash_table): Delete.
10345         (objc_act_parse_init): Delete.
10346         (objc_init): Delete reference to objc_act_parse_init.
10347         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
10348         obstack.h.  Replace references to 'struct hash_table' with htab_t.
10349         (struct symbol_hash_entry): Replace hash header with key field.
10350         (struct file_hash_entry): Replace hash header with key field.
10351         (struct demangled_hash_entry): Replace hash header with key field.
10352         (hash_string_eq): New.
10353         (hash_string_hash): New.
10354         (symbol_hash_newfunc): Delete.
10355         (symbol_hash_lookup): Modify to use htab_t.
10356         (file_hash_newfunc): Delete.
10357         (file_hash_lookup): Modify to use htab_t.
10358         (demangled_hash_newfunc): Delete.
10359         (demangled_hash_lookup): Modify to use htab_t.
10360         (tlink_init): Modify to use htab_t.
10361         * hash.h: Delete.
10362         * hash.c: Delete.
10363         * ggc.h: Delete forward structure declarations.
10364         Delete prototypes for deleted functions.
10365         * ggc-common.c: Don't include hash.h.
10366         (ggc_add_tree_hash_table_root): Delete.
10367         (ggc_mark_tree_hash_table_entry): Delete.
10368         (ggc_mark_tree_hash_table): Delete.
10369         (ggc_mark_tree_hash_table_ptr): Delete.
10370         * gengtype.c (write_gc_structure_fields): Allow param_is option.
10371         (write_gc_marker_routine_for_structure): Use visibility of
10372         the parameter if there is one.
10373         * function.c: Replace hash.h with hashtab.h.  Replace references
10374         to 'struct hash_table *' with htab_t.
10375         (struct insns_for_mem_entry): Include a plain key.
10376         (fixup_var_refs_insns_with_hash): Update to use htab_t.
10377         (insns_for_mem_newfunc): Delete.
10378         (insns_for_mem_hash): Update to use htab_t.
10379         (insns_for_mem_comp): Likewise.
10380         (insns_for_mem_walk): Likewise.
10381         * c-lang.c: Include ggc.h.
10382         * Makefile.in (OBJS): Remove hash.o.
10383         (c-lang.o): Add GGC_H.
10384         (COLLECT2_OBJS): Remove hash.o.
10385         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
10386         (ggc-common.o): Remove hash.h.
10387         (function.o): Remove hash.h, add HASHTAB_H.
10388         (genautomata.o): Remove hash.h, add HASHTAB_H.
10389
10390         * varasm.c (mark_const_str_htab_1): Delete.
10391         (mark_const_str_htab): Delete.
10392         (const_str_htab_del): Delete.
10393         (const_str_htab): Use gengtype to mark.
10394         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
10395         allocate them.
10396         * tree.c (mark_tree_hashtable_entry): Delete.
10397         (mark_tree_hashtable): Delete.
10398         * tree.h (mark_tree_hashtable): Delete prototype.
10399         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
10400         (ggc_mark): Likewise.
10401         (ggc_calloc): New.
10402         (htab_create_ggc): New.
10403         * ggc-common.c (ggc_calloc): New.
10404         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
10405         (struct type): Add param_struct structure.
10406         * gengtype.c (param_structs): New.
10407         (adjust_field_type): Handle param_is option.
10408         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
10409         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
10410         (write_gc_structure_fields): Add new PARAM parameter.  Update
10411         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
10412         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
10413         Use it to generate function name.  Update callers.
10414         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
10415         Process them.
10416         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
10417         option.
10418         (main): Define PTR as pointer-to-scalar.  Don't specially
10419         mark deferred_string or ehl_map_entry.
10420         * gengtype-yacc.y (PARAM_IS): Add new token.
10421         (externstatic): Use adjust_field_type.
10422         (type_option): Add PARAM_IS.
10423         * gengtype-lex.l: Add rule for typedef of function pointers.
10424         Add rule for PARAM_IS.
10425         (IWORD): Add size_t.
10426         * except.c (exception_handler_label_map): Use gengtype to mark.
10427         (type_to_runtime_map): Likewise.
10428         (mark_ehl_map_entry): Delete.
10429         (mark_ehl_map): Delete.
10430         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
10431         (t2r_mark_1): Delete.
10432         (t2r_mark): Delete.
10433         * Makefile.in (gtype-desc.o): Correct dependencies.
10434         (GTFILES): Add hashtab.h.
10435         (genautomata.o): Actually uses hashtab.h.
10436
10437         * Makefile.in (stringpool.o): Add $(GGC_H).
10438         (dwarf2asm.o): Likewise.
10439         (GTFILES): Add hashtable.h.
10440         * c-common.h (struct c_common_identifier): Use gengtype.
10441         * c-decl.h (c_mark_tree): Delete.
10442         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10443         * c-tree.h (struct lang_identifier): Use gengtype.
10444         (union lang_tree_node): New.
10445         (c_mark_tree): Delete prototype.
10446         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
10447         dwarf2_debug_hooks.
10448         * gengtype-lex.l (IWORD): Allow 'bool'.
10449         (ptr_alias): Match.
10450         * gengtype-yacc.y (ALIAS): New token.
10451         (type_option): New rule.
10452         (option): Use type_option.
10453         * gengtype.c (process_gc_options): New.
10454         (set_gc_used_type): Use it.
10455         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
10456         Add new variable 't' to hold the type of the field being processed.
10457         Add more error checking.  Use UNION_P when looking at 'desc' option.
10458         Handle language-specific structures containing other
10459         language-specific structures.
10460         (write_gc_types): Handle 'ptr_alias' option.
10461         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
10462         * ggc-common.c (ggc_pending_trees): Delete.
10463         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
10464         (ggc_mark_trees): Delete.
10465         (gt_ggc_m_tree_node): Delete.
10466         * ggc.h (ggc_pending_trees): Delete.
10467         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
10468         * hashtable.h (ht_identifier): Use gengtype.
10469         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
10470         * langhooks.h (struct lang_hooks): Delete mark_tree.
10471         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
10472         anyway.
10473         * system.h: Poison LANG_HOOKS_MARK_TREE.
10474         * tree.c (tree_node_structure): New.
10475         * tree.h (struct tree_common): Use gengtype.
10476         (struct tree_int_cst): Likewise.
10477         (struct tree_real_cst): Likewise.
10478         (struct tree_string): Likewise.
10479         (struct tree_complex): Likewise.
10480         (struct tree_vector): Likewise.
10481         (struct tree_identifier): Likewise.
10482         (struct tree_list): Likewise.
10483         (struct tree_vec): Likewise.
10484         (struct tree_exp): Likewise.
10485         (struct tree_block): Likewise.
10486         (struct tree_type): Likewise.
10487         (struct tree_decl): Likewise.
10488         (enum tree_structure_enum): New.
10489         (union tree_node): Use gengtype, with an alias.
10490         (tree_node_structure): Prototype.
10491         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10492
10493         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
10494         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
10495         to LANG_HOOKS_FUNCTION_FINAL.
10496         * Makefile.in (GTFILES): Add bitmap.h.
10497         * except.c (struct eh_region): Mark field 'aka' to be skipped.
10498
10499         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
10500         (alpha_init_machine_status): Give proper type.
10501         * Makefile.in (c-lang.o): Depend on gtype-c.h.
10502         (optabs.o): Depend on gt-optabs.h.
10503         (GTFILES): Add optabs.o.
10504         (gt-optabs.h): Add rule.
10505         * optabs.c: Include gt-optabs.h.
10506
10507         * gengtype.c (set_gc_used_type): Correct some errors in last change.
10508         (write_gc_structure_fields): If a field which should be NULL is
10509         not, abort.
10510         * c-pragma.c: Move struct align_stack and variable alignment_stack
10511         out from the ifdef.
10512
10513         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
10514         * config/xtensa/xtensa.c: Include gt-cris.h.
10515         (struct machine_function): Use gengtype to mark.
10516         * config/mmix/mmix.h (struct machine_function): Use gengtype
10517         to mark.
10518         * config/cris/t-cris: Add dependencies for gt-cris.h.
10519         * config/cris/cris.c: Include gt-cris.h.
10520         (struct machine_function): Use gengtype to mark.
10521         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
10522         to mark.
10523         * doc/tm.texi (Per-Function Data): Delete references to
10524         mark_machine_status.
10525         * config/ia64/ia64.c (ia64_override_options): Don't set
10526         mark_machine_status.
10527         * config/i386/i386.c (override_options): Likewise.
10528         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
10529         * config/arm/arm.c (arm_init_expanders): Likewise.
10530         * config/alpha/alpha.c (override_options): Likewise.
10531         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
10532         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
10533         (write_gc_structure_fields): Don't handle 'really' option.
10534         Handle 'maybe_null' option.
10535         (write_gc_types): Handle 'maybe_null' option.
10536         * function.h (struct function): Don't use "really".
10537         (mark_machine_status): Delete declaration.
10538         (mark_lang_status): Delete declaration.
10539         (gt_ggc_mr_machine_function): Delete prototype.
10540         (gt_ggc_mr_language_function): Delete prototype.
10541         * function.c (mark_machine_status): Delete.
10542         (mark_lang_status): Delete.
10543         (gt_ggc_mr_machine_function): Delete.
10544         (gt_ggc_mr_language_function): Delete.
10545         * c-tree.h (mark_c_function_context): Delete prototype.
10546         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
10547         * c-decl.c (struct language_function): Rename from struct
10548         c_language_function.  Update uses.  Use gengtype to mark.
10549         (mark_c_function_context): Delete.
10550         * c-common.h (struct c_language_function): Rename from struct
10551         language_function.
10552         (mark_stmt_tree): Delete prototype.
10553         (c_mark_lang_decl): Delete prototype.
10554         (mark_c_language_function): Delete prototype.
10555         * c-common.c (mark_stmt_tree): Delete.
10556         (c_mark_lang_decl): Delete.
10557         (mark_c_language_function): Delete.
10558
10559         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
10560         (lang_bitmap): New typedef.  Use where appropriate.
10561         (struct type): Add gc_used field, lang_struct field.
10562         (UNION_P): New macro.
10563         (new_structure): New prototype.
10564         (find_structure): Remove 'pos' parameter.  Change all callers.
10565         * gengtype-lex.l: Update for changes to find_structure.
10566         * gengtype-yacc.y (typedef_struct): Use new_structure.
10567         (yacc_ids): Suppress warning.
10568         (type): Use new_structure.
10569         * gengtype.c (string_type): Update for changes to struct type.
10570         (find_structure): Just find a structure, don't worry about
10571         creating one.
10572         (new_structure): New.
10573         (note_yacc_type): Use new_structure.
10574         (set_gc_used_type): New.
10575         (set_gc_used): New.
10576         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
10577         (write_gc_types): Handle TYPE_LANG_STRUCT.
10578         (write_gc_marker_routine_for_structure): New.
10579         (main): Call set_gc_used.  Add some calls to set_gc_used_type
10580         for places where GCC doesn't use gengtype properly yet.
10581         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
10582         (gt_ggc_m_tree_node): Likewise.
10583
10584         * varasm.c (copy_constant): Call expand_constant if we hit
10585         something we can't recognize.
10586
10587         * ggc-common.c (ggc_mark_rtvec_children): Delete.
10588         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
10589         (lang_mark_false_label_stack): Delete.
10590         * rtl.h (struct rtvec_def): Use gengtype to mark.
10591         * ggc.h (ggc_mark_rtvec): Delete.
10592         (gt_ggc_m_rtvec_def): Delete.
10593         (ggc_mark_nonnull_tree): Delete.
10594         (ggc_mark_rtvec_children): Delete prototype.
10595         (lang_mark_false_label_stack): Delete declaration.
10596
10597         * gengtype.h (note_yacc_type): Add prototype.
10598         * gengtype.c (note_yacc_type): New function.
10599         * gengtype-lex.l: Add lexer support for yacc files.
10600         * gengtype-yacc.y (start): Extract union from yacc files.
10601         (yacc_union): New rule.
10602         (yacc_typematch): New rule.
10603         (yacc_ids): New rule.
10604         (enum_items): Tweak for efficiency.
10605         (optionseq): Likewise.
10606
10607         * c-common.h (struct language_function): Use gengtype.
10608         (struct c_lang_decl): Likewise.
10609         * c-tree.h (struct lang_decl): Likewise.
10610         (struct lang_type): Likewise.
10611         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
10612         tree language substructures.
10613
10614         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
10615         ggc_mark_tree.
10616         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
10617
10618         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
10619
10620         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
10621         mark. Remove 'data.block.cleanup_ptr' field.
10622         (struct stmt_status): Use usual technique to mark struct nesting.
10623         (gt_ggc_mr_nesting_cond): Delete.
10624         (gt_ggc_mr_nesting_loop): Delete.
10625         (gt_ggc_mr_nesting_block): Delete.
10626         (gt_ggc_mr_nesting_case_stmt): Delete.
10627         (expand_start_cond): Set discriminator.
10628         (expand_start_loop): Likewise.
10629         (expand_start_null_loop): Likewise.
10630         (expand_start_bindings_and_block): Set discriminator.  Don't set
10631         deleted fields.
10632         (expand_decl_cleanup): Replace 'cleanup_ptr' with
10633         &thisblock->data.block.cleanups.
10634         (expand_start_case): Set discriminator.
10635         (expand_start_case_dummy): Set discriminator.
10636
10637         * ggc-callbacks.c: Remove.
10638
10639         * gengtype.h (struct type): Add 'u.s.bitmap' field.
10640         (find_structure): Add 'pos' parameter.
10641         * gengtype-lex.l: Update callers to find_structure.
10642         * gengtype-yacc.y: Likewise.
10643         * gengtype.c (find_structure): Allow for structures to be defined
10644         in multiple language backends.
10645         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
10646         (counter): Rename to gc_counter.
10647         (write_gc_structure_fields): Fail when writing out fields for
10648         an incomplete structure.  Ignore arrays of scalars.  Handle
10649         'tree_vec' special.
10650         (write_gc_types): Reset counter for each procedure written.
10651
10652         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
10653         (free_case_nodes): Delete.
10654         (expand_end_case_type): Delete call to free_case_nodes.
10655
10656         * Makefile.in (cselib.o): Include gt-<filename>.h.
10657         (gcse.o): Likewise.
10658         (profile.o): Likewise.
10659         (alias.o): Likewise.
10660         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
10661         alphabetize backend files.
10662         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
10663         * alias.c: Use gengtype for roots.
10664         * c-common.h (struct stmt_tree_s): Use gengtype.
10665         * c-decl.c: Use gengtype for roots.
10666         * cselib.c: Use gengtype for roots.
10667         * expr.c: Use gengtype for roots.
10668         * fold-const.c: Use gengtype for roots.
10669         * gcse.c: Use gengtype for roots.
10670         * gengtype-lex.l: Handle typedefs of function types.
10671         Allow for empty array bounds.
10672         Allow processing to stop on initializers.
10673         * gengtype-yacc.y (externstatic): Stop processing on initializers.
10674         (semiequal): New rule.
10675         * gengtype.c (create_file): Tidy output files.
10676         (get_output_file_with_visibility): Fix paren warning.  Fix bug
10677         involving multiple input files mapping to one output file.
10678         (write_gc_structure_fields): Skip arrays of scalars.
10679         (write_gc_types): Tidy output files.
10680         (write_gc_root): New function.
10681         (write_gc_roots): Fix bugs, add support for roots that are
10682         structures.
10683         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
10684         (ggc_mark_tree_ptr): Delete.
10685         (ggc_add_rtx_root): Delete.
10686         (ggc_add_tree_root): Delete.
10687         (ggc_del_root): Delete.
10688         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
10689         allocate struct initial_value_struct.
10690         * profile.c: Use gengtype for roots.
10691         * sdbout.c: Use gengtype for roots.
10692         * varasm.c (mark_weak_decls): Delete unused prototype.
10693         (mark_const_hash_entry): Delete unused function.
10694         * config/darwin-protos.h: Use gengtype for roots.
10695         (machopic_add_gc_roots): Delete.
10696         * config/arm/arm.c: Use gengtype for roots.
10697         * config/arm/arm.h: Use gengtype for roots.
10698         * config/c4x/c4x-protos.h: Use gengtype for roots.
10699         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
10700         * config/d30v/d30v-protos.h: Use gengtype for roots.
10701         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
10702         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
10703         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
10704         * config/ia64/ia64-protos.h: Use gengtype for roots.
10705         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
10706         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
10707         * config/m68hc11/m68hc11.c (z_reg): Make global.
10708         (z_reg_qi): Make global.
10709         (m68hc11_add_gc_roots): Delete.
10710         * config/mcore/mcore-protos.h: Use gengtype for roots.
10711         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
10712         * config/mips/mips.c (mips_add_gc_roots): Delete.
10713         * config/mips/mips.h: Use gengtype for roots.
10714         * config/mmix/mmix.c (override_options): Use gengtype for roots.
10715         * config/mmix/mmix.h: Use gengtype for roots.
10716         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
10717         * config/mn10200/mn10200.h: Use gengtype for roots.
10718         * config/pa/pa.c: Use gengtype for roots, marking.
10719         (struct deferred_plabel): Use GGC, gengtype.
10720         (pa_add_gc_roots): Delete.
10721         (mark_deferred_plabels): Delete.
10722         * config/pj/pj-protos.h: Use gengtype for roots.
10723         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
10724         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
10725         machopic_add_gc_roots.
10726         * config/rs6000/rs6000.h: Use gengtype for roots.
10727         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
10728         (gt-darwin.h): Add rule.
10729         * config/sh/sh.c: Use gengtype for roots.
10730         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
10731         (gt-sh.h): Add rule.
10732         * config/sparc/sparc.c: Use gengtype for roots.
10733         (sparc_add_gc_roots): Delete.
10734         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
10735         (mark_ultrasparc_pipeline_state): Delete.
10736         * config/sparc/sparc.h: Use gengtype for roots.
10737
10738         * Makefile.in (c-parse.o): Update dependencies.
10739         (c-common.o): Likewise.
10740         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
10741         Add dependencies for the files they generate.
10742         * c-common.c: Replace ggc_add_* uses with GTY annotations.
10743         * c-common.h: Likewise.
10744         * c-decl.c: Likewise.
10745         (gt_ggc_mp_binding_level): Delete.
10746         * c-lang.c: Include gtype-c.h.
10747         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
10748         gt-c-parse.h.
10749         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
10750         (gt_ggc_mp_align_stack): Delete.
10751         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
10752         * function.c: Replace ggc_add_* uses with GTY annotations.
10753         (gt_ggc_mp_function): Delete.
10754         * function.h: Replace ggc_add_* uses with GTY annotations.
10755         * gengtype.c (lang_names): New.
10756         (NUM_BASE_FILES): New.
10757         (open_base_files): Create language base files.
10758         (startswith): New.
10759         (get_file_basename): New.
10760         (get_base_file_bitmap): New.
10761         (get_output_file_with_visibility): Rename from get_output_file.
10762         Add more mappings for various C/Objc filenames.
10763         (finish_root_table): New.
10764         (write_gc_roots): Handle dependencies and scoping properly.
10765         * gengtype.h: Add prototypes for new functions.
10766         * ggc-common.c (struct deletable_root): Delete.
10767         (deletables): Delete.
10768         (ggc_add_deletable_root): Delete.
10769         (ggc_mark_roots): No need to deal with deleted functionality.
10770         * ggc.h (ggc_add_deletable_root): Delete prototype.
10771         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
10772         (gtype-objc.h): Add rule to create.
10773         * objc/config-lang.in (gtfiles): New.
10774         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
10775         ggc_add_* with GTY markers.  Include gtype-objc.h.
10776         (ggc_mark_imp_list): Delete.
10777         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
10778         * objc/objc-lang.c: Random Whitespace Change.
10779
10780         * except.h (exception_handler_labels): Delete.
10781         (get_exception_handler_labels): New.
10782         * except.c (exception_handler_labels): Delete.
10783         (struct eh_status): Add exception_handler_labels field.
10784         (doing_eh): Don't add exception_handler_labels as root.
10785         (free_eh_status): Don't need to free exception_handler_labels.
10786         (get_exception_handler_labels): New.
10787         (find_exception_handler_labels): Update for move of
10788         exception_handler_labels.
10789         (remove_exception_handler_label): Likewise.
10790         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
10791         * jump.c (rebuild_jump_labels): Likewise.
10792         * loop.c (find_and_verify_loops): Likewise.
10793         * sched-rgn.c (is_cfg_nonregular): Likewise.
10794
10795         * gengtype.c (write_gc_structure_fields): Handle variable-length
10796         TYPE_ARRAYs.
10797
10798         * varasm.c (struct weak_syms): Use GGC, gengtype.
10799         (mark_weak_decls): Delete.
10800         (weak_decls): Likewise.
10801         (add_weak): Likewise.
10802         (remove_from_pending_weak_list): Likewise.
10803         (init_varasm_once): Likewise.
10804
10805         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
10806         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
10807         stor-layout.c, regclass.c, and lists.c.
10808         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
10809         gt-regclass.h and gt-lists.h on s-gtype.
10810         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
10811         * except.c: Use gengtype for roots.
10812         * explow.c: Use gengtype for roots.  Include gt-explow.h.
10813         * expr.h (init_stor_layout_once): Delete prototype.
10814         * function.c: Use gengtype for roots.
10815         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
10816         * gengtype-yacc.y (start): Can also be an externstatic.
10817         (externstatic): New production.
10818         (struct_fields): Correct array bounds inversion for 2-d arrays.
10819         * gengtype.c (variables): New variable.
10820         (note_variable): New function.
10821         (get_output_file): Include libfuncs.h into gtype-desc.c.
10822         (get_output_file_name): New function.
10823         (write_gc_structure_fields): Suppress warnings.
10824         (write_gc_types): Make static.
10825         (put_mangled_filename): New function.
10826         (write_gc_roots): New function.
10827         (main): Call write_gc_roots.
10828         * gengtype.h (note_variable): Prototype.
10829         (get_output_file_name): Prototype.
10830         (write_gc_types): Delete prototype.
10831         * ggc.h: Clean up unnecessary structure predefinitions.
10832         (struct ggc_root_tab): Define.
10833         (gt_ggc_m_rtx_def): Make function, not macro.
10834         (gt_ggc_m_tree_node): Likewise.
10835         * libfuncs.h: Use gengtype for roots.
10836         * lists.c: Use gengtype for roots.  Include gt-lists.h.
10837         (init_EXPR_INSN_LIST_cache): Delete.
10838         * optabs.c: Use gengtype for roots.
10839         (gt_ggc_mp_optab): Delete.
10840         * optabs.h: Use gengtype for roots.
10841         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
10842         * rtl.h: Use gengtype for roots.
10843         (init_EXPR_INSN_LIST_cache): Delete prototype.
10844         * stor-layout.c: Use gengtype for roots.
10845         Include gt-stor-layout.h.
10846         (init_stor_layout_once): Delete.
10847         * toplev.c: Use gengtype for roots.  Delete calls to deleted
10848         routines.
10849         * tree.c: Use gengtype for roots.
10850         * tree.h: Use gengtype for roots.
10851         * varasm.c: Use gengtype for roots.
10852
10853         * Makefile.in (GTFILES): Add @all_gtfiles@.
10854         * configure: Regenerate.
10855         * configure.in: Construct all_gtfiles from the gtfiles definitions
10856         in config-lang.in.
10857         * gengtype-yacc.y (type): Warn about duplicate structure names.
10858         * gengtype.c (get_output_file): Handle .c files in language
10859         subdirectories.
10860
10861         * Makefile.in (GTFILES): Run gengtype on all the config files
10862         and on the target .c file.
10863         * except.c (mark_eh_region): Delete.
10864         (init_eh_for_function): Use GGC on struct eh_status.
10865         (mark_eh_status): Delete.
10866         (free_eh_status): Use GGC.
10867         (expand_eh_region_start): Use GGC to
10868         (collect_eh_region_array): Allocate last_region_number using GGC.
10869         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
10870         (remove_eh_handler): Let GGC free struct eh_region.
10871         (add_call_site): Use GGC to reallocate call_site_record array.
10872         * function.c (init_machine_status): Update calling sequence.
10873         (mark_machine_status): Likewise.
10874         (mark_lang_status): Likewise.
10875         (prepare_function_start): Update init_machine_status call.
10876         (mark_function_status): Delete.
10877         (maybe_mark_struct_function): Delete.
10878         (ggc_mark_struct_function): Delete.
10879         (gt_ggc_mp_function): New.
10880         (gt_ggc_mr_machine_function): New.
10881         (gt_ggc_mr_language_function): New.
10882         (init_function_once): Use canonical names.
10883         * function.h (struct function): Use gengtype.
10884         (init_machine_status): Return the structure.
10885         (mark_machine_status): Take a 'void *'.
10886         (mark_lang_status): Likewise.
10887         * ggc-common.c (ggc_mark_trees): Use canonical name for
10888         ggc_mark_struct_function.
10889         * tree.h (ggc_mark_struct_function): Delete prototype.
10890         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
10891         (alpha_init_machine_status): Likewise.
10892         (override_options): Use canonical name for alpha_mark_machine_status.
10893         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
10894         * config/arm/arm.h (struct machine_function): Use gengtype.
10895         * config/arm/arm.c (arm_mark_machine_status): Delete.
10896         (arm_init_machine_status): Update calling sequence.
10897         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
10898         * config/cris/cris.c (cris_init_machine_status): Update
10899         calling sequence.
10900         * config/d30v/d30v.h (struct machine_function): Use gengtype.
10901         * config/d30v/d30v.c (d30v_init_machine_status): Update
10902         calling sequence.
10903         (d30v_mark_machine_status): Delete.
10904         * config/i386/i386.c: Include gt-i386.h.
10905         (struct machine_function): Use gengtype.
10906         (ix86_init_machine_status): Update calling sequence.
10907         (ix86_mark_machine_status): Delete.
10908         (override_options): Use canonical namke for ix86_mark_machine_status.
10909         * config/ia64/ia64.h (struct machine_function): Use gengtype.
10910         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
10911         sequence.
10912         (ia64_mark_machine_status): Delete.
10913         (ia64_override_options): Use canonical name for
10914         ia64_mark_machine_status.
10915         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
10916         sequence.
10917         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
10918         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10919         * gengtype.c (get_output_file): Fix warning.
10920         (main): Add prototype to suppress warning.
10921         * tree.c: Remove tree_hash_mark prototype.
10922
10923         * tree.h (init_stmt): Delete prototype.
10924         * toplev.c (lang_independent_init): Don't call init_stmt.
10925         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
10926         (stmt_obstack): Delete.
10927         (POPSTACK): No need to free 'struct nesting'.
10928         (gt_ggc_mr_nesting_cond): Use canonical names.
10929         (gt_ggc_mr_nesting_loop): Use canonical names.
10930         (gt_ggc_mr_nesting_block): Use canonical names.
10931         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
10932         (mark_stmt_status): Delete.
10933         (init_stmt): Delete.
10934         (clear_last_expr): Clear both last_expr_type and last_expr_value.
10935         Use it everywhere that last_expr_type was cleared.
10936         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
10937         (zap_lists): Delete.
10938         * ggc.h (ggc_add_deletable_root): Prototype.
10939         (mark_stmt_status): Remove prototype.
10940         * ggc-common.c (ggc_add_deletable_root): New.
10941         (ggc_mark_roots): Handle deletable roots.
10942         * function.c (ggc_mark_struct_function): Use canonical name
10943         for mark_stmt_status.
10944         * emit-rtl.c (free_sequence_stack): New.
10945         (start_sequence): Use a freelist for sequences.
10946         (end_sequence): Likewise.
10947         (init_emit_once): Add free_sequence_stack as a deleteable root.
10948         * c-pragma.c Include gt-c-pragma.h.
10949         (struct align_stack): Use gengtype.
10950         (push_alignment): Use GGC for struct align_stack.
10951         (mark_align_stack): Delete.
10952         (gt_ggc_mp_align_stack): New.
10953         (init_pragma): Use canonical name for mark_align_stack.
10954         * c-decl.c: Include gt-c-decl.h.
10955         (struct binding_level): Use gengtype.
10956         (make_binding_level): Use GGC; handle the freelist here.
10957         (pop_binding_level): New.
10958         (pushlevel): Move code into make_binding_level.
10959         (push_label_level): Likewise.
10960         (poplevel): Move code into pop_binding_level.
10961         (pop_label_level): Likewise.
10962         (mark_binding_level): Delete.
10963         (gt_ggc_mp_binding_level): New.
10964         (c_init_decl_processing): Use canonical name for mark_binding_level.
10965         Add free_binding_level as deletable root.
10966         (mark_c_function_context): Use canonical name for mark_binding_level.
10967         * Makefile.in (c-decl.o): Add gt-c-decl.h.
10968         (c-pragma.o): Add gt-c-pragma.h.
10969         (GTFILES): Add c-decl.c and c-pragma.c.
10970         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
10971
10972         * tree.c (struct type_hash): Use gengtype.
10973         (init_obstacks): Use canonical name for type_hash_mark.
10974         (type_hash_mark): Delete.
10975         Include gt-tree.h.
10976         * rtl.h (struct mem_attrs): Use gengtype.
10977         * optabs.h (struct optab): Use gengtype.
10978         * optabs.c (expand_binop): Squish signed/unsigned warning.
10979         (mark_optab): Make local, use canonical name, use autogenerated
10980         marker procedure.
10981         (init_optabs): Use canonical name for mark_optab.
10982         (new_optab): Use GGC to allocate optabs.
10983         * ggc.h: Delete mark_optab prototype.
10984         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
10985         mem_attrs marker procedure.
10986         * gengtype.c (get_output_file): Include headers in gtype-desc.c
10987         explicitly rather than deducing them from file names.
10988         (write_gc_structure_fields): Handle arrays of structures.
10989         (main): Return non-zero exit code if errors occur during output.
10990         * emit-rtl.c (mem_attrs_mark): Delete.
10991         (init_emit_once): Use canonical name for mem_attrs marker procedure.
10992         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
10993         (tree.o): Depend on gt-tree.h.
10994         (GTFILES): Add rtl.h, optabs.h, tree.c.
10995         (gt-tree.h): Add it to s-gtype rule.
10996
10997         * .cvsignore: Ignore gengtype flex/bison generated files.
10998         * Makefile.in (GGC_H): Add gtype-desc.h.
10999         (OBJS): Add gtype-desc.o.
11000         (GEN): Add gengtype.
11001         (STAGESTUFF): Add gengtype.
11002         (varasm.o): Add gt-varasm.h.
11003         (stmt.o): Add gt-stmt.h.
11004         (except.o): Add gt-except.h.
11005         (integrate.o): Add gt-integrate.h.
11006         (GTFILES): New.
11007         Add new rules for new files.
11008         * configure: Regenerate.
11009         * configure.in: Correct defaults.h paths.
11010         * emit-rtl.c (mark_sequence_stack): Delete.
11011         (mark_emit_status): Delete.
11012         (start_sequence): Allocate sequence structures using GGC.
11013         (end_sequence): Allocate sequence structures using GGC.
11014         * except.c: Use gengtype for various structures.  Include
11015         gt-except.h.
11016         * expr.c (mark_expr_status): Delete.
11017         * function.c: Use gengtype for various structures.  Include
11018         gt-function.h.
11019         (mark_function_status): Use standard gt_ggc names for marker functions.
11020         (ggc_mark_struct_function): Likewise.
11021         * function.h: Use gengtype for various structures.
11022         * gengtype-lex.l: New file.
11023         * gengtype-yacc.y: New file.
11024         * gengtype.c: New file.
11025         * gengtype.h: New file.
11026         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
11027         the standard names.  Remove some now-unnecessary prototypes.
11028         * integrate.c: Use gengtype for various structures.  Include
11029         gt-integrate.h.
11030         (mark_hard_reg_initial_vals): Delete.
11031         * integrate.h (mark_hard_reg_initial_vals): Delete.
11032         * stmt.c: Use gengtype for various structures.  Include
11033         gt-stmt.h.
11034         (mark_case_node): Delete.
11035         (mark_goto_fixup): Delete.
11036         (mark_stmt_status): Use standard gt_ggc names for marker functions.
11037         * system.h: Define GTY to empty.   In flex/bison files,
11038         don't poison malloc or realloc, instead just define them to
11039         xmalloc and xrealloc.
11040         * varasm.c: Use gengtype for various structures.  Include
11041         gt-varasm.h.  Use standard gt_ggc names for marker functions.
11042         (mark_pool_constant): Delete.
11043         (mark_varasm_status): Delete.
11044         (decode_rtx_const): #if 0 out non-typesafe hack.
11045
11046         * function.h (free_lang_status): Mark as obsolete.
11047         * function.c (free_lang_status): Mark as obsolete.
11048         * c-decl.c (push_c_function_context): Use GC to allocate and free
11049         struct language_function.
11050         (pop_c_function_context): Likewise.
11051         * c-common.c (mark_c_language_function): Mark struct
11052         language_function.
11053
11054         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
11055         Document that the machine_function structures must be allocated
11056         using GC.  Update mark_machine_status documentation.
11057         * function.h: Don't declare free_machine_status.
11058         * function.c (free_machine_status): Don't define.
11059         (free_after_compilation): Don't call free_machine_status.
11060         (ggc_mark_struct_function): Mark f->machine.  Call
11061         mark_machine_status only on non-NULL pointers.
11062         * system.h: Poison free_machine_status.
11063         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
11064         struct machine_function.
11065         (xtensa_free_machine_status): Delete.
11066         (override_options): Don't set free_machine_status.
11067         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
11068         free_machine_status.
11069         (rs6000_init_machine_status): Use GC on struct machine_function.
11070         (rs6000_free_machine_status): Delete.
11071         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
11072         machine_function.
11073         (ia64_mark_machine_status): Likewise.
11074         (ia64_free_machine_status): Delete.
11075         (ia64_override_options): Don't set free_machine_status.
11076         * config/i386/i386.c (override_options): Don't set
11077         free_machine_status.
11078         (ix86_init_machine_status): Use GC on struct machine_function.
11079         (ix86_mark_machine_status): Likewise.
11080         (ix86_free_machine_status): Delete.
11081         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
11082         machine_function.
11083         (d30v_mark_machine_status): Likewise.
11084         (d30v_free_machine_status): Delete.
11085         (d30v_init_expanders): Don't set free_machine_status.
11086         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
11087         machine_function.
11088         (arm_init_machine_status): Likewise.
11089         (arm_free_machine_status): Delete.
11090         (arm_init_expanders): Don't set free_machine_status.
11091         * config/alpha/alpha.c (override_options): Don't set
11092         free_machine_status.
11093         (alpha_init_machine_status): Use GC on struct machine_function.
11094         (alpha_mark_machine_status): Likewise.
11095         (alpha_free_machine_status): Delete.
11096
11097         * varasm.c (compare_constant): Fix typo.
11098
11099         * varasm.c: Don't include obstack.h.
11100         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
11101         (struct rtx_const): Give substructures names, improve formatting.
11102         (struct constant_descriptor): Delete.
11103         (struct constant_descriptor_tree): New, based on constant_descriptor.
11104         (const_hash_table): Is a hash table of trees.
11105         (mark_const_hash_entry): Is used for hashes of trees.  Mark
11106         constant_descriptor_tree structure.
11107         (mark_const_str_htab_1): Mark deferred_string structure.
11108         (compare_constant): Rewrite to compare trees.
11109         (compare_constant_1): Delete.
11110         (record_constant): Delete.
11111         (record_constant_1): Delete.
11112         (output_constant_def): Use struct constant_descriptor_tree.
11113         Don't duplicate trees twice.
11114         (struct constant_descriptor_rtx): New.
11115         (struct pool_constant): Used for rtx constants.
11116         (init_varasm_status): Update for change to struct varasm_status.
11117         (mark_varasm_status): Likewise.
11118         (free_varasm_status): Delete.
11119         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
11120         (record_constant_rtx): Likewise.
11121         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
11122         (force_const_mem): Likewise.
11123         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
11124         * function.c (free_after_compilation): Don't use free_varasm_status.
11125         * function.h: Don't prototype free_varasm_status.
11126
11127         * ggc-common.c (ggc_realloc): Handle X being NULL.
11128
11129         * ggc-common.c (ggc_realloc): New function.
11130         * ggc.h: Prototype it.
11131         * emit-rtl.c (free_emit_status): Delete.
11132         (init_emit): Allocate emit subarrays using GC.
11133         (gen_reg_rtx): Reallocate subarrays using GC.
11134         (init_emit): Use GC to allocate 'struct emit_status' and its
11135         subarrays.
11136         (mark_emit_status): Mark structure and its subarrays.
11137         * stmt.c (free_stmt_status): Delete.
11138         * expr.c (free_expr_status): Delete.
11139         * function.h: Remove prototypes for deleted functions.
11140         * function.c (free_after_compilation): Don't use deleted functions.
11141         Don't call free() on x_parm_reg_stack_loc.
11142         (free_after_parsing): Don't use free_stmt_status.
11143         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
11144         (mark_function_status): Mark x_parm_reg_stack_loc.
11145
11146         * varasm.c (init_varasm_status): Use GC to allocate
11147         'struct varasm_status' and its fields x_const_rtx_hash_table
11148         and x_const_rtx_sym_hash_table.
11149         (mark_varasm_status): Mark them.
11150         (free_varasm_status): Use GC to free them.
11151         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
11152         (mark_expr_status): Mark the structure itself.
11153         (free_expr_status): Use GC to free the structure.
11154         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
11155         (mark_stmt_status): Mark the 'struct stmt_status' itself.
11156         (init_stmt_for_function): Allocate the structure for GC.
11157
11158         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
11159         (equate_type_number_to_die): Likewise.
11160         * tree.h (TYPE_SYMTAB_DIE): New macro.
11161         (struct die_struct): Predeclare.
11162         (struct tree_type): Add field symtab.die.   Add a tag
11163         to the union type of field symtab.
11164
11165         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
11166         'struct rtvec_def *', not 'struct rtvec_def'.
11167
11168         * function.h (original_arg_vector): Make a real rtvec.
11169         * function.c (ggc_mark_struct_function): Adjust.
11170         * integrate.c (expand_inline_function): Adjust.
11171
11172 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
11173
11174         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
11175         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
11176         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
11177         (TARGET_VERSION_CPU): Define according to the
11178         default target.
11179         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
11180         TARGET_VERSION_CPU.
11181         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
11182         if TARGET_SHMEDIA64.
11183         (LINK_DEFAULT_CPU_EMUL): Define according to the
11184         default target.
11185         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
11186         (SUBTARGET_LINK_SPEC): Define.
11187         (LINK_SPEC): Use SH_LINK_SPEC.
11188         (ASM_SPEC): Remove.
11189         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
11190         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
11191         and TARGET_SHMEDIA64 which abort, for now.
11192         * config/sh/t-netbsd-sh5: New file.
11193         * config/sh/t-netbsd-sh5-32: New file.
11194         * config/sh/t-netbsd-sh5-64: New file.
11195
11196 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11197             Richard Henderson  <rth@redhat.com>
11198
11199         * config/alpha/alpha.c (reg_or_const_int_operand): New.
11200         (some_operand, input_operand): Accept CONST_VECTOR.
11201         (alpha_extra_constraint): Add 'W'.
11202         (alpha_expand_zap_mask): New.
11203         (alpha_expand_builtin_vector_binop): New.
11204         (enum alpha_builtin): New.
11205         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
11206         (alpha_init_builtins, alpha_expand_builtin): New.
11207         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
11208         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
11209         (PREDICATE_CODES): Update.
11210         * config/alpha/alpha-protos.h: Update.
11211         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
11212         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
11213         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
11214         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
11215         (movv2si, movv2si_fix, movv2si_nofix): New.
11216         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
11217         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
11218         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
11219         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
11220         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
11221         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
11222         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
11223         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
11224         builtin_unpkbw, unpkbw): New.
11225         * doc/extend.texi (Alpha Built-in Functions): New.
11226
11227 2002-06-03  Richard Henderson  <rth@redhat.com>
11228
11229         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
11230         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
11231
11232 2002-06-03  Richard Henderson  <rth@redhat.com>
11233
11234         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
11235
11236         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
11237         (const0_operand): New.
11238         (reg_or_fp0_operand, fp0_operand): Remove.
11239         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11240         * config/alpha/alpha-protos.h: Update.
11241         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
11242         and fp0_operand with reg_or_0_operand and const0_operand.
11243
11244 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
11245
11246         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
11247
11248 2002-06-03  Roger Sayle  <roger@eyesopen.com>
11249
11250         * gcse.c (cprop_jump): Use single_set to get the pattern
11251         from the setcc argument.
11252
11253 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
11254
11255         * diagnostic.h (diagnostic_count): Move from output_buffer to
11256         diagnostic_context.
11257         (diagnostic_kind_count): Adjust definition.
11258
11259 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
11260
11261         * except.c (except.c): Do not rebuild CFG.
11262         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
11263         optimization.
11264
11265 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
11266
11267         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
11268         * toplev.c: Include cfglahout.h
11269         * Makefile.in (toplev.c): Add dependnecy.
11270
11271 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11272
11273         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
11274         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
11275         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
11276
11277 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
11278
11279         * config/ns32k/netbsd.h: Update copyright years.
11280         (TARGET_OS_CPP_BUILTINS): Define.
11281         (CPP_PREDEFINES): Remove.
11282         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
11283         (TARGET_CPU_CPP_BUILTINS): Define.
11284
11285 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
11286
11287         * emit-rtl.c: Fix formatting.
11288         * errors.h: Likewise.
11289         * except.c: Likewise.
11290         * explow.c: Likewise.
11291         * expmed.c: Likewise.
11292         * expr.c: Likewise.
11293         * expr.h: Likewise.
11294
11295 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
11296
11297         * config/h8300/elf.h: Fix formatting.
11298         * config/h8300/rtems.h: Likewise.
11299
11300 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
11301
11302         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
11303
11304 2002-06-02  Tom Tromey  <tromey@redhat.com>
11305
11306         * fixinc/fixincl.x: Rebuilt.
11307         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
11308
11309 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11310
11311 config/i370:
11312         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
11313         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
11314         * mvs.h: Similarly.
11315         * oe.h: Similarly.
11316
11317 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
11318
11319         * final.c (final):  Allow notes to not have computed addresses;
11320         kill no longer needed STACK_REGS ifdef.
11321
11322 2002-06-02  Richard Henderson  <rth@redhat.com>
11323
11324         * gcse.c (bypass_conditional_jumps): Fix typo last change.
11325
11326 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
11327
11328         * loop.c (emit_prefetch_instructions): Properly place the address
11329         computation.
11330
11331 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
11332
11333         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
11334         (set_block_for_insn): Turn into macro.
11335         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
11336         * cfglayout.c (insn_scopes): Kill.
11337         (scope_to_insns_initialize): Do not use insn_scopes.
11338         (scope_to_insns_finalize): Likewise.
11339         (duplicate_insn_chain): Likewise.
11340         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
11341         * cfgrtl.c (basic_block_for_insn): Kill.
11342         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
11343         (create_basic_block_structure): Use reorder_insns.
11344         (compute_bb_for_insn): Do not use basic_block_for_insn.
11345         (merge_blocks_nomove): Likewise.
11346         (update_bb_for_insn): Likewise.
11347         (verify_flow_info): Likewise.
11348         (set_block_for_insn): Kill.
11349         * combine.c (try_combine): Update gen_rtx_INSN call.
11350         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
11351         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
11352         scopes and BBs.
11353         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
11354         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
11355         Clear BB.
11356         (emit_insns_after): Simplify.
11357         (emit_copy_of_insn_after): Copy scope.
11358         * final.c (final_start_function): Lower scopes.
11359         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
11360         * integrate.c (copy_insn_list): Cope scopes.
11361         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
11362         * loop.c (loop_optimize): Do not care block notes.
11363         * print-rtl.c (print_rtx): Print BB.
11364         * recog.c (apply_change_group): Simplify.
11365         * rtl.c (copy_rtx): Handle 'B'.
11366         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
11367         * rtl.h (Field accessors): Update indexes.
11368         * sched-ebb.c (schedule_ebbs): Do not lower notes.
11369         * sched-rgn.c (schedule_insns): Likewise.
11370         * toplev.c (rest_of_compilation): Lower notes.
11371         * unroll.c (unroll_loop): Do not care scoping notes.
11372         (copy_loop_body): Copy scopes.
11373
11374 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11375
11376 config/h8300:
11377         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
11378         SUBTARGET_SPEC.
11379         * rtems.h: Similarly.
11380         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
11381         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
11382         (TARGET_CPU_CPP_BUILTINS): Use.
11383
11384 2002-06-02  Richard Henderson  <rth@redhat.com>
11385
11386         * alias.c: Include target.h.
11387         (mark_constant_function): Use targetm.binds_local_p instead
11388         of checking TREE_PUBLIC ourselves.
11389         * Makefile.in (alias.o): Add TARGET_H.
11390
11391 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11392
11393         * c-lex.c: Update copyright and file description.
11394
11395 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11396
11397         * config/fr30/fr30.h: Update to new CPP macros.
11398
11399 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11400
11401         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
11402
11403 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11404             Zack Weinberg <zack@codesourcery.com>
11405
11406         * c-common.c (c_common_init): Override cpplib's default
11407         warn_long_long setting.
11408         * c-lex.c (lex_number): Replace with interpret_integer,
11409         interpret_float, narrowest_unsigned_type and
11410         narrowest_signed_type, taking advantage of the new
11411         cpplib functionality.
11412         * cpperror.c (_cpp_begin_message): If a warning is turned
11413         into an error, avoid printing "warning:".
11414         * cppexp.c (cpp_num_sign_extend): New.
11415         * cppinit.c: Update comment.
11416         * cpplib.h (cpp_num_sign_extend): New.
11417         * tree.h: Update comment.
11418
11419 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
11420
11421         * diagnostic.h (struct diagnostic_context):  Add new member
11422         internal_error.
11423         (internal_error_function): Remove declaration.
11424         * diagnostic.c (internal_error_function): Remove definition..
11425         (internal_error): Adjust use.
11426
11427 2002-06-02  Richard Henderson  <rth@redhat.com>
11428
11429         * rtl.h (CC0_P): New.
11430         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
11431         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
11432         (bypass_block): Save old dest block for dump text.
11433         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
11434         Allow only true SET insns, not single_set.
11435
11436 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
11437
11438         * diagnostic.c (diagnostic_finish): Rename to output_flush.
11439         (clear_disgnostic_info): Rename to output_clear_data.  Use false
11440         instead of 0 for boolean value.
11441         Adjust function call throughout.
11442
11443 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
11444
11445         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
11446         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
11447
11448 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11449
11450         * d30v.h (CPP_PREDEFINES): Replace with
11451         (TARGET_CPU_CPP_BUILTINS): New.
11452
11453 2002-06-02  Roger Sayle  <roger@eyesopen.com>
11454
11455         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
11456
11457 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
11458
11459         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
11460
11461 2002-06-02  Richard Henderson  <rth@redhat.com>
11462
11463         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
11464
11465 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11466
11467         Support for C++ constructors/destructors.
11468         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
11469         instead of looping if main() returns.
11470         (asm_file_start): Output global symbols that cause .data and .bss
11471         initialization code to be linked in, unconditionally for now.
11472         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
11473         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
11474         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11475         (LIBSTDCXX): New.
11476         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
11477         (__tablejump__): New.
11478         (__do_copy_data, __do_clear_bss): New.
11479         (__do_global_ctors, __do_global_dtors): New.
11480         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
11481         _ctors, _dtors.
11482
11483 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11484
11485         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
11486         (CPP_SPEC, CPP_PREDEFINES): Kill.
11487         * c4x/rtems.h (CPP_PREDEFINES): Kill.
11488         (TARGET_OS_CPP_BUILTINS): New.
11489
11490 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
11491
11492         * Makefile.in (tracer.o): New.
11493         * params.def (TRACER_*): New options.
11494         * rtl.h (tracer): Declare.
11495         * timevar.def (TV_TRACER): New.
11496         * toplev.c (dump_file_index): Add DFI_tracer.
11497         (dump_file_info): Add tracer.
11498         (flag_tracer): New.
11499         (lang_indepdenent_options): Add tracer.
11500         (rest_of_compilation): Call tracer.
11501         * tracer.c: New file.
11502         * invoke.texi (-ftracer): Document.
11503         (--param tracer-*): Document.
11504
11505 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
11506
11507         * tree-inline.c (expand_call_inline): Make the statement
11508         expression we generate have a COMPOUND_STMT.
11509
11510 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11511
11512         * gcse.c (cprop_cc0_jump): Function deleted.
11513         (cprop_jump): Take an additional argument which is the possibly
11514         NULL cc setting insn immediately before the conditional jump.
11515         When a MODE_CC set is present, substitute it into the JUMP_INSN
11516         before attempting the constant propagation.
11517         (cprop_insn):  Recognize cc setters followed by conditional jumps
11518         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
11519         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
11520         (find_bypass_set): New function based upon find_avail_set used by
11521         cprop, but finds constant expressions available at the end of
11522         basic blocks.
11523         (bypass_block): New function.  Given a basic block that begins
11524         with a conditional jump and multiple incoming edges, perform
11525         the jump bypass optimization.
11526         (bypass_conditional_jumps): New function.  Call bypass_block with
11527         each suitable basic block in the CFG using a simple single pass.
11528
11529 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11530
11531         * tree.c (real_minus_onep): New function to test for -1.0.
11532         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
11533
11534 2002-06-01  Roger Sayle  <roger@eyesopen.com>
11535
11536         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
11537         and "!p && !q" into "(p|q) == 0" under suitable conditions.
11538
11539 2002-06-01  Andreas Jaeger  <aj@suse.de>
11540
11541         * cppexp.c (cpp_classify_number): Cast precission to int for
11542         correct printf format.
11543
11544 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11545
11546         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
11547         expected, but don't really exist: atmega83, atmega85, attiny10.
11548         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
11549         emulations for all devices.
11550         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
11551         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
11552
11553 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
11554
11555         * config/h8300/h8300-protos.h: Add a prototype for
11556         h8300_shift_needs_scratch_p.
11557         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
11558         * config/h8300/h8300.h (OK_FOR_R): New.
11559         (OK_FOR_S): Likewise.
11560         (OK_FOR_T): Likewise.
11561         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
11562         * config/h8300/h8300.md (anonymous shift patterns): Use
11563         constraints R, S, and T.
11564
11565 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11566
11567         * basic-block.h (struct basic_block_def): New field loop_father.
11568         (BB_VISITED): New flag.
11569         (struct loop): New field pred, removed field shared.
11570         (struct loops): New field parray.
11571         (LOOP_EXITS_DOMS): Removed.
11572         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
11573         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
11574         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
11575         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
11576         verify_loop_structure): Declare.
11577         * cfg.c (entry_exit_blocks): Initialize loop_father field.
11578         * cfganal.c (dfs_enumerate_from): New function.
11579         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
11580         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
11581         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
11582         flow_loop_dump, flow_loops_dump, flow_loops_free,
11583         flow_loop_tree_node_add, flow_loop_level_compute,
11584         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
11585         flow_loop_outside_edge_p): Modified for new infrastructure.
11586         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
11587         redirect_edge_with_latch_update, flow_loop_free): New static functions.
11588         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
11589         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
11590         find_common_loop, verify_loop_structure, loop_latch_edge,
11591         loop_preheader_edge): New functions.
11592         (flow_loops_cfg_dump): Do not show dominators, as this information
11593         does not remain up to date long.
11594         (flow_loops_find): Store results in new format.
11595         * predict.c (propagate_freq, estimate_probability,
11596         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
11597         infrastructure.
11598
11599 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
11600
11601         * except.c (nothrow_function_p): Walk epilogue delay list
11602         checking the insn, not the chain for potential throws.
11603
11604 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
11605
11606         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
11607         (install): Refer to install-cpp directly.
11608         (uninstall-cpp): Folded into uninstall rule.
11609         * configure.in: Delete all code relating to --disable-cpp.
11610         * configure: Regenerate.
11611         * config/t-install-cpp: Delete.
11612
11613 2002-05-31  Richard Henderson  <rth@redhat.com>
11614
11615         * configure.in (HAVE_AS_TLS): Add alpha tests.
11616         * configure: Rebuild.
11617         * config/alpha/alpha.c (TARGET_AS_TLS): New.
11618         (alpha_tls_size, alpha_tls_size_string): New.
11619         (overide_options): Set it.  Always install machine_status hooks.
11620         (input_operand): Accept got tls predicates.
11621         (local_symbol_p): Merge into ...
11622         (local_symbolic_operand): ... here.  Reject tls symbols.
11623         (global_symbolic_operand): Likewise.
11624         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
11625         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
11626         (tp16_symbolic_operand, tp32_symbolic_operand): New.
11627         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
11628         (alpha_encode_section_info): Handle TLS symbols.
11629         (alpha_strip_name_encoding): Likewise.
11630         (alpha_legitimate_address_p): Likewise.
11631         (alpha_legitimize_address): Likewise.
11632         (alpha_expand_mov): Early exit to avoid nop moves.
11633         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
11634         (alpha_init_machine_status, alpha_mark_machine_status,
11635         alpha_free_machine_status): Always define.
11636         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11637         (print_operand, print_operand_address): Add TLS relocs.
11638         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
11639         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
11640         (TARGET_SWITCHES): Add -mtls-kernel.
11641         (alpha_tls_size, alpha_tls_size_string): New.
11642         (TARGET_OPTIONS): Add -mtls-size=.
11643         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
11644         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
11645         (ASM_OUTPUT_LABELREF): Skip %.
11646         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
11647         (PREDICATE_CODES): Update.
11648         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
11649         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
11650         UNSPEC_TP, UNSPECV_SET_TP): New.
11651         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
11652         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
11653         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
11654         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
11655         (call_value_osf_2_er): Accept anything as op4.
11656         * config/alpha/alpha-protos.h: Update.
11657         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
11658
11659 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
11660
11661         * cppinit.c (append_include_chain): Always pay attention to
11662         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
11663         marker on argument.
11664
11665 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
11666
11667         * target.h: Fix formatting.
11668         * timevar.h: Likewise.
11669         * tlink.c: Likewise.
11670         * toplev.c: Likewise.
11671         * toplev.h: Likewise.
11672         * tree.c: Likewise.
11673         * tree-dump.h: Likewise.
11674         * tree.h: Likewise.
11675         * tree-inline.h: Likewise.
11676         * unroll.c: Likewise.
11677         * unwind-dw2.c: Likewise.
11678         * unwind-dw2-fde.c: Likewise.
11679         * unwind-dw2-fde-glibc.c: Likewise.
11680         * unwind-dw2-fde.h: Likewise.
11681         * unwind.h: Likewise.
11682         * unwind-sjlj.c: Likewise.
11683         * varasm.c: Likewise.
11684         * varray.h: Likewise.
11685         * vmsdbg.h: Likewise.
11686         * vmsdbgout.c: Likewise.
11687         * xcoffout.h: Likewise.
11688
11689 2002-05-31  Igor Shevlyakov <igor@microunity.com>
11690
11691         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
11692         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
11693
11694 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
11695
11696         * gcc.c (cpp_unique_options): Remove "-d" options.
11697         (cpp_debug_options): New spec string.
11698         (default_compilers): Use it.
11699         * objc/lang-specs.h: Likewise.
11700
11701 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
11702
11703         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
11704         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
11705         * gcc/mklibgcc.in: Likewise.
11706         * gcc/config/arc/t-arc: Likewise.
11707         * gcc/configure.in: Likewise.
11708         * gcc/configure: Regenerate.
11709
11710 2002-05-31  Stan Shebs  <shebs@apple.com>
11711             Turly O'Connor  <turly@apple.com>
11712
11713         * c-decl.c (struct binding_level): Change int field n_incomplete
11714         to tree list incomplete_list.
11715         (clear_binding_level): Init field with NULL.
11716         (pushdecl): Add incomplete type to list.
11717         (mark_binding_level): Mark the incomplete list.
11718         (finish_struct): Scan the incomplete list for types instead
11719         of all decls in the current binding level.
11720
11721 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11722
11723         * pa.c (output_millicode_call): Add missing '%' characters.
11724         (output_call): Likewise.
11725
11726 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
11727
11728         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
11729         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11730
11731 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
11732
11733         * varasm.c (mark_constant_pool): Walk epilogue delay list
11734         checking the insn, not the chain for potential constants.
11735
11736 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
11737
11738         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
11739
11740 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
11741
11742         * i386.c (classify_argument): Properly handle base types.
11743
11744         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
11745         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
11746         registers.
11747
11748 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
11749
11750         * gcse.c (gcse_emit_move_after): New.
11751         (pre_delete, hoist_store): Use it.
11752
11753         * reload1.c (emit_input_reload_insns): Use constrain_operands
11754         instead of constraint_accepts_reg_p to verify optimization.
11755         (constraint_accepts_reg_p): Kill
11756
11757         * reload1.c (reload_cse_delete_noop_set): Kill.
11758         (reload_cse_simplify): use delte_insn_and_edges.
11759
11760 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11761
11762         * cfgloop.c (flow_loops_find): Initialize first and last fields
11763         correctly.
11764
11765 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
11766
11767         * c-common.c (builtin_define_std): Correct logic.
11768
11769 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11770
11771         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
11772         (output_call): Likewise.
11773
11774 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11775
11776         * pa.c: Move output.h include after tree.h include.
11777         (pa_asm_output_mi_thunk): Constify identifier lab.
11778
11779 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11780
11781         * config/ns32k/ns32k.h: Define named constants for the
11782         bits in target_flags and use them.
11783         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
11784
11785 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11786
11787         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
11788         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
11789         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
11790         default scheduling model.
11791         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
11792         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
11793         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
11794         * doc/install.texi (hppa*-*-*): Document default scheduling.
11795
11796 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11797
11798         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
11799
11800 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11801
11802         * config.gcc (ns32k-*-netbsd*): Set tm_file to
11803         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
11804         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
11805         netbsd.h, or netbsd-aout.h.
11806
11807 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11808
11809         * longlong.h (count_trailing_zeros): Add missing \, and clean up
11810         whitespace in __ns32000__ case.
11811
11812 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
11813
11814         * expr.c (expand_expr): Output partially zeroed out vectors with
11815         output_constant_def.
11816
11817 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11818
11819         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
11820         (sh-*-netbsdelf*)
11821         (shl*-*-netbsdelf*): New targets.
11822         * config/sh/netbsd-elf.h: New file.
11823         * config/sh/t-netbsd: New file.
11824
11825 2002-05-30  Richard Henderson  <rth@redhat.com>
11826             Eric Botcazou  <ebotcazou@multimania.com>
11827
11828         PR optimization/6822
11829         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
11830         to unsigned int for op1 comparisons.  Use gen_int_mode.
11831
11832 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
11833
11834         * expmed.c (const_mult_add_overflow_p): New.
11835         * expr.h: Declare it.
11836         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
11837         Don't eliminate the biv if the giv has a constant multiplier and
11838         the rhs argument of the comparison does satisfy the predicate.
11839         Use expand_mult_add to compute the replacement constant.
11840
11841 2002-05-30  Osku Salerma  <osku@iki.fi>
11842
11843         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
11844         (c_common_get_alias_set): Handle it.
11845         * doc/extend.texi: Document it.
11846
11847 2002-05-30  Richard Henderson  <rth@redhat.com>
11848
11849         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11850         * toplev.c (process_options): Don't check it.
11851         * doc/tm.texi: Don't document it.
11852         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
11853         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11854         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
11855         frame pointer optimization if current_function_profile.
11856
11857 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
11858
11859         * langhooks.c: Fix formatting.
11860         * langhooks.h: Likewise.
11861         * lcm.c: Likewise.
11862         * libgcc2.c: Likewise.
11863         * lists.c: Likewise.
11864         * local-alloc.c: Likewise.
11865         * loop.c: Likewise.
11866         * loop.h: Likewise.
11867
11868 2002-05-30  Marc Espie <espie@openbsd.org>
11869
11870         * config.gcc (sparc64-*-openbsd*): New.
11871         * config/sparc/openbsd1-64.h: New.
11872         * config/sparc/openbsd64.h: New.
11873
11874 2002-05-30  Jeff Law <law@redhat.com>
11875
11876         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
11877         a dead insn with a REG_RETVAL note when the entire libcall is not
11878         dead and remove the associated REG_LIBCALL note at the same time.
11879
11880 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
11881
11882         * lcm.c (output.h): #include.
11883         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
11884         as an ordinary block.
11885         (optimize_mode_switching): Don't pretend that the exit block is
11886         an ordinary block, or handle sucessors of entry block specially.
11887         Instead, split edges from entry block and to exit block, and
11888         put a computing definition on the thus gained post-entry-block,
11889         and a need on the pre-exit-block.
11890
11891 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
11892
11893         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
11894         * rtl.texi: Document 'B'
11895
11896 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11897
11898         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
11899         at run-time.
11900         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
11901
11902 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
11903
11904         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11905         const0_rtx instead of NULL_RTX when in error.
11906         (altivec_expand_abs_builtin): Same.
11907         (rs6000_expand_binop_builtin): Same.
11908         (altivec_expand_predicate_builtin): Same.
11909         (altivec_expand_stv_builtin): Same.
11910         (rs6000_expand_ternop_builtin): Same.
11911         (altivec_expand_builtin): Same.
11912
11913 2002-05-29  David S. Miller  <davem@redhat.com>
11914
11915         * rtl.h (clear_emit_caches): Delete.
11916         * integrate.c (output_inline_function): Don't call it.
11917         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
11918         (clear_emit_caches): Delete definition.
11919         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
11920
11921 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
11922
11923         * config/mmix/mmix.c: Include real.h.
11924         (mmix_constant_address_p): Remove redundant test before switch.
11925
11926 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11927
11928         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
11929         only if not already defined.
11930
11931 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
11932
11933         * config/h8300/h8300-protos.h: Remove prototypes for
11934         ok_for_bclr and small_power_of_two.
11935         * config/h8300/h8300.c (small_power_of_two): Remove.
11936         (ok_for_blcr): Likewise.
11937         (fix_bit_operand): Make WHAT deal with an integer instead of a
11938         constraint character.
11939         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
11940         (CONST_OK_FOR_P): Likewise.
11941         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
11942         CONST_OK_FOR_P any more.
11943         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
11944         of fix_bit_operand.
11945         (iorqi3): Likewise.
11946         (xorqi3): Likewise.
11947
11948 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11949
11950         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11951         (CPP_PREDEFINES): Make sure this is undefined.
11952         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
11953         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
11954         or -U__MIPSEB__ before defining one or the other.  Instead,
11955         use %(subtarget_endian_default) if neither -EB nor -EL are
11956         specified.
11957         (SUBTARGET_EXTRA_SPECS): Define.
11958         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
11959         %(netbsd_cpp_spec).
11960
11961 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
11962
11963         * doc/md.texi (Patterns): Note pattern condition pitfall
11964         for unnamed insn.
11965
11966 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
11967
11968         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
11969         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
11970         ternary operations from here...
11971         (rs6000_expand_builtin): ...to here.
11972         New argument expandedp.
11973         Change all instances of altivec_expand_binop_builtin to
11974         rs6000_expand_binop_builtin.
11975         (altivec_expand_unop_builtin): Rename to
11976         rs6000_expand_unop_builtin.
11977         (altivec_expand_binop_builtin): Rename to
11978         rs6000_expand_binop_builtin.
11979         (altivec_expand_ternop_builtin): Rename to
11980         rs6000_expand_ternop_builtin.
11981
11982 2002-05-29  Richard Henderson  <rth@redhat.com>
11983
11984         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
11985         (TARGET_BI_ARCH): Likewise.
11986         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
11987         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
11988         (TARGET_64BIT_DEFAULT): Default to 0.
11989         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
11990
11991 2002-05-29  Richard Henderson  <rth@redhat.com>
11992
11993         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
11994         (get_pc_thunk_name): New.
11995         (output_set_got): Use it.
11996         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
11997         into linkonce sections.
11998
11999 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12000
12001         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12002         (CPP_PREDEFINES): Make sure this is undefined.
12003         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
12004         (CPP_SUBTARGET_SPEC): Don't provide different versions for
12005         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
12006         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
12007         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
12008         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12009         (CPP_PREDEFINES): Make sure this is undefined.
12010         (SUBTARGET_EXTRA_SPECS): Define.
12011         (CPP_SPEC): Use %(netbsd_cpp_spec).
12012
12013 2002-05-29  Jeff Law <law@redhat.com>
12014
12015         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
12016
12017         * flow.c (propagate_one_insn): Do not remove a dead insn if it
12018         contains a REG_RETVAL note.
12019
12020         * haifa-sched (sched_analyze): Remove another useless clearing
12021         of SCHED_GROUP_P I missed yesterday.
12022
12023         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
12024         * pa.c (pa_asm_output_mi_thunk): New function.
12025         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
12026
12027 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12028             Marek Michalkiewicz  <marekm@amelek.gda.pl>
12029
12030         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
12031         (avr_asm_only_p): Make non-static.
12032         (enum avr_arch): Remove.
12033         (avr_arch_types): New.
12034         (avr_mcu_types): Update.
12035         (avr_override_options): Use avr_arch_types table instead of switch.
12036         * avr.h (CPP_PREDEFINES): Die.
12037         (avr_base_arch_macro, avr_extra_arch_macro): New.
12038         (TARGET_CPU_CPP_BUILTINS): New.
12039         (CPP_SPEC, EXTRA_SPECS): Simplify.
12040         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
12041         CPP_AVR5_SPEC): Die.
12042
12043 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12044
12045         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
12046         NETBSD_OS_CPP_BUILTINS_AOUT.
12047         (SUBTARGET_EXTRA_SPECS): Define.
12048         (CPP_SPEC): Use %(netbsd_cpp_spec).
12049
12050 2002-05-29  Richard Henderson  <rth@redhat.com>
12051
12052         * config/i386/i386.c (ix86_output_function_epilogue): New.
12053         (TARGET_ASM_FUNCTION_EPILOGUE): New.
12054         (pic_label_name): Remove.
12055         (pic_labels_used): New.
12056         (ix86_asm_file_end): Emit one pc load stub for each register used.
12057         (output_set_got): Generate deep pc load to any register.
12058         (ix86_select_alt_pic_regnum): New.
12059         (ix86_save_reg): Don't save pic register if we can find a valid
12060         call-clobbered replacement.
12061         (ix86_expand_prologue): If we found a valid replacement, renumber
12062         pic_offset_table_rtx.
12063         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
12064         pic_offset_table_rtx after reload.
12065         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
12066         * config/i386/i386.md (set_got): Make insn, not expander.
12067         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
12068
12069 2002-05-29  Richard Henderson  <rth@redhat.com>
12070
12071         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
12072         alignment for alloca.
12073
12074 2002-05-29  Richard Henderson  <rth@redhat.com>
12075
12076         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
12077         (print_operand_address): Only add rip for symbolic addresses
12078         for which we do not have another relocation type.
12079
12080 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12081
12082         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12083         (EXTRA_SPECS): Add netbsd_cpp_spec.
12084         (CPP_SPEC): Use %(netbsd_cpp_spec).
12085         (CPP_PREDEFINES): Remove.
12086         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12087         (EXTRA_SPECS): Define.
12088         (CPP_SPEC): Use %(netbsd_cpp_spec).
12089         (CPP_PREDEFINES): Remove.
12090
12091 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12092
12093         PR preprocessor/6844
12094         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
12095         NUL.
12096
12097 2002-05-29  Eric Christopher  <echristo@redhat.com>
12098
12099         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
12100         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
12101
12102 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
12103
12104         * config/fr30/fr30.md: Remove previous restriction on splits.
12105         Enforce conformance through gen_lowpart and cont_int_operand.
12106         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
12107         as the assembler does not support ".bss".
12108
12109 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12110
12111         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12112         (CPP_PREDEFINES): Remove.
12113         (SUBTARGET_EXTRA_SPECS): Define.
12114         (CPP_SPEC): Use %(netbsd_cpp_spec).
12115         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12116         (CPP_PREDEFINES): Remove.
12117         (SUBTARGET_EXTRA_SPECS): Define.
12118         (CPP_SPEC): Use %(netbsd_cpp_spec).
12119         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
12120         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
12121         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
12122         Add netbsd_cpp_spec.
12123         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
12124
12125 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12126             Zack Weinberg <zack@codesourcery.com>
12127
12128         * cppexp.c (cpp_num): Move to cpplib.h.
12129         (CPP_ERROR): Remove.
12130         (interpret_float_suffix, interpret_int_suffix): New.
12131         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
12132         (cpp_classify_number, cpp_interpret_integer): New.
12133         (interpret_number): Remove.
12134         (eval_token): Update to use new routines.
12135         * cpphash.h (cpp_num_part): Move to cpplib.h.
12136         * cppinit.c (cpp_post_options): Set warn_long_long.
12137         * cpplib.h (struct cpp_options): Add warn_long_long.
12138         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
12139         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
12140         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
12141         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
12142         cpp_interpret_integer): New.
12143
12144 2002-05-29  Joel Sherrill <joel@OARcorp.com>
12145
12146         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
12147
12148 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
12149
12150         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
12151         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
12152         (CPP_SUBTARGET_SPEC): Define.
12153         (SUBTARGET_EXTRA_SPECS): Define.
12154         (CPP_SPEC): Remove.
12155
12156 2002-05-29  Chris Lattner  <sabre@nondot.org>
12157
12158         * ssa.c (rename_insn_1): Rename uses of undefined registers to
12159         prevent confusion if/when the register is defined.
12160
12161 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
12162
12163         PR target/6838
12164         * config/cris/cris.md: Fix typos and thinkos in comments.
12165         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
12166         second alternative.
12167         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
12168         ("*mov_sideqi_mem"): Similar, but for operand 3.
12169         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
12170         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
12171         Remove spurious mode specifier on operand 2.
12172
12173 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
12174
12175         * config/h8300/h8300-protos.h: Remove the prototype for
12176         o_operand.
12177         Add prototypes for single_one_operand and single_zero_operand.
12178         * config/h8300/h8300.c (o_operand): Remove.
12179         (single_one_operand): New.
12180         (single_zero_operand): Likewise.
12181         (print_operand): For 'V' operand, and the operand with 0xff.
12182         For 'V' and 'W' operands, do not and the bit position with 7.
12183         * config/h8300/h8300.md (various anonymous patterns): Replace
12184         use of exact_log2 with single_one_operand/single_zero_operand.
12185
12186 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
12187
12188         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
12189
12190 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
12191
12192         * config/s390/s390.c (legitimate_pic_operand_p): Do not
12193         accept symbolic LARL operands.
12194         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
12195         epilogue insns.
12196
12197 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
12198
12199         * config/s390/s390.md (cmpstr_64/31): Mark whole
12200         input registers as used.
12201
12202 2002-05-28  Richard Henderson  <rth@redhat.com>
12203
12204         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
12205         not current_function_uses_pic_offset_table and
12206         current_function_uses_const_pool; examine current_function_profile.
12207         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
12208         input to blockage if needed.
12209         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
12210         (legitimize_pic_address): Likewise.  Set regs_ever_live for
12211         pic_offset_table_rtx when invoked during reload.
12212         * config/i386/i386.h (FINALIZE_PIC): Remove.
12213         * config/i386/i386.md (tablejump): Reformat.  Do not set
12214         current_function_uses_pic_offset_table.
12215         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
12216         (blockage): Accept anything as operand 0.
12217
12218 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
12219
12220         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
12221         common CPP built-ins for all NetBSD a.out targets.
12222         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
12223         common CPP built-ins for all NetBSD ELF targets.
12224         * config/netbsd.h: Add missing notice.
12225         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
12226         for all NetBSD targets.
12227         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
12228         for all NetBSD targets using an LP64 code model.
12229         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
12230         NetBSD targets.
12231
12232 2002-05-28  Richard Henderson  <rth@redhat.com>
12233
12234         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
12235         update if UPDATE_LIFE_LOCAL.
12236
12237 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12238
12239         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
12240
12241 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
12242                           Jason R. Thorpe <thorpej@wasabisystems.com>
12243
12244         config/sh reorganization to factor out endianness and coff:
12245
12246         * config/sh/little.h: New file.
12247         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
12248         defined, define to 0 to select big-endian.
12249         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
12250         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12251         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12252         * config/sh/t-be: New file.
12253         * config/sh/t-le: New file.
12254
12255         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
12256         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
12257         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
12258         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
12259         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
12260         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12261         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
12262         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
12263         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
12264         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
12265         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
12266         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
12267         (LINK_SPEC): Define to SH_LINK_SPEC.
12268         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
12269         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
12270         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12271         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
12272         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
12273         * config/sh/coff.h: New file.
12274         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
12275         (TARGET_OBJFMT_CPP_BUILTINS): Define.
12276         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
12277         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
12278         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
12279         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
12280         (PTRDIFF_TYPE): Likewise.
12281         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
12282         (CPP_PREDEFINES): Don't define.
12283         (TARGET_OBJFMT_CPP_BUILTINS): Define.
12284         (LINK_SPEC): Define to SH_LINK_SPEC.
12285         (LINK_EMUL_PREFIX): Redefine.
12286         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
12287         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
12288         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
12289         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
12290         (TARGET_OS_CPP_BUILTINS): Define.
12291         (TARGET_DEFAULT): Redefine.
12292         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12293         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
12294         (LINK_SPEC): Don't redefine.
12295         (LINK_DEFAULT_CPU_EMUL): Redefine.
12296         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12297         * sh.c (sh_asm_named_section): Don't declare / define.
12298         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
12299         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
12300         (sh64-*-elf* tm_file): Likewise.
12301         (sh-*-rtemself* tm_file): Likewise.
12302         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
12303         (sh-*-linux* tmake_file): Add sh/t-le.
12304         (sh-*-rtems* tm_file): Add sh/coff.h
12305         (sh-*-* tm_file): Likewise.
12306
12307 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
12308
12309         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
12310         CONSTANT_POOL_ADDRESS_P.
12311
12312         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
12313
12314 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
12315             Jeff Law <law@redhat.com>
12316
12317         * optabs.c (expand_binop): Fix nwords sign warnings.
12318         generate pseudo for add_optab.
12319
12320         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
12321         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
12322
12323 2002-05-28      Marc Espie <espie@openbsd.org>
12324
12325         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
12326         inherited from gas.h.
12327         (ASM_QUAD):  Undef.  OpenBSD does not support it.
12328
12329 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
12330
12331         * doc/install.texi (binaries): Change mingw binaries
12332         link to www.mingw.org.
12333
12334 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12335
12336         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
12337
12338 2002-05-28  Richard Henderson  <rth@redhat.com>
12339
12340         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
12341         bottom alignment for leaf functions.
12342
12343 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
12344
12345         * config/pa/milli32.S, config/pa/lib1funcs.asm,
12346         config/sparc/sol2-g1.asm: Delete unused files.
12347
12348 2002-05-28  Richard Henderson  <rth@redhat.com>
12349
12350         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
12351
12352         * flow.c (calculate_global_regs_live): Rename call_used to
12353         invalidated_by_call.  Initialize from regs_invalidated_by_call
12354         instead of call_used_regs.
12355
12356         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
12357         DECL_EXTERNAL.
12358
12359 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
12360
12361         * tree.h: Don't include real.h.
12362         Forward-declare struct realvaluetype.
12363         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
12364         contain it.
12365         (TREE_REAL_CST_PTR): New accessor.
12366         (TREE_REAL_CST): Update.
12367         * real.h: Include machmode.h.
12368         (realvaluetype): Make it struct realvaluetype, not a typedef.
12369         (build_real): Prototype here.
12370
12371         * tree.c: Include real.h.
12372         (build_real): Allocate the REAL_VALUE_TYPE as a separate
12373         object in GC memory, set TREE_REAL_CST_PTR to point to it.
12374         (build_real_from_int_cst): Use build_real.
12375         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
12376         REAL_CST.
12377
12378         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
12379         fold-const.c, print-tree.c, real.c: Include real.h.
12380         * Makefile.in: Update dependency lists.
12381
12382 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12383
12384         * basic-block.h (last_basic_block): Declare.
12385         (expunge_block_nocompact): Declaration removed.
12386         (compact_blocks): Declare.
12387         * cfg.c (last_basic_block): New variable.
12388         (expunge_block_nocompact): Removed.
12389         (expunge_block): Do not compact basic blocks.
12390         (compact_blocks): New.
12391         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
12392         longer change.
12393         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
12394         last_basic_block.
12395         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
12396         real positions of blocks.
12397         (delete_unreachable_blocks): Simplified -- quadratic behavior now
12398         cannot occur.
12399         (cleanup_cfg): Compact blocks.
12400         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
12401         basic_block_info varray.
12402         (flow_delete_block): Comment update.
12403         (back_edge_of_syntactic_loop_p): Modify position check code.
12404         (verify_flow_info): Update checking.
12405         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
12406         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12407         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
12408         indices no longer change.
12409         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
12410         last_basic_block.
12411         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
12412         * profile.c (branch_prob): Compact blocks.
12413         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
12414         last_basic_block.
12415
12416 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
12417
12418         * config/h8300/h8300.md (two anonymous patterns): New.
12419
12420 2002-05-28  David S. Miller  <davem@redhat.com>
12421
12422         * config/sparc/sparc.md (cpu): Tidy.
12423         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
12424         'trap'.
12425         (in_call_delay): Delete reference to 'return' type.
12426         (eligible_for_return_delay, in_return_delay, define_delay
12427         referencing those): Delete.
12428         (rest of file): Use new type attributes as appropriate.
12429         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
12430         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
12431         * config/sparc/ultra1_2.md (us1_single): New reservation.
12432         (us1_ialuX): Likewise.
12433         * config/sparc/ultra3.md (us3_single): Likewise.
12434         (us3_ialuX): Likewise.
12435         (us3_imul, us3_idiv): Tweak.
12436
12437 2002-05-28  Richard Henderson  <rth@redhat.com>
12438
12439         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
12440         STRING_CST.
12441
12442 2002-05-28  Richard Henderson  <rth@redhat.com>
12443
12444         * config.gcc: Obsolete mn10200.
12445
12446 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12447
12448         * cppexp.c (interpret_number): Optimize for single-digit
12449         and less-than-half-precision cases.
12450         (num_trim, num_positive, num_div_op): Cast constants.
12451
12452 2002-05-27  Bo Thorsen  <bo@suse.de>
12453
12454         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
12455         3.1 branch. The file was made by Jakub Jelinek.
12456         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
12457         support so multilib doesn't break. And don't define this at all
12458         when -Dinhibit_libc is used.
12459         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
12460         * config/i386/t-linux64: Implement full multilib support. Patch
12461         originally done by Andreas Jaeger and Jakub Jelinek.
12462
12463 2002-05-27  Roger Sayle  <roger@eyesopen.com>
12464
12465         * c-common.c: Add support for __attribute__((nothrow)) to specify
12466         that a function cannot throw an exception (using TREE_NOTHROW).
12467         (handle_nothrow_attribute): New function to process this attribute.
12468
12469         * doc/extend.texi: Document the new nothrow function attribute.
12470
12471 2002-05-27  H.J. Lu  (hjl@gnu.org)
12472
12473         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
12474         (num_positive): Likewise.
12475         (num_div_op): Likewise.
12476
12477 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12478
12479         * c-common.c (c_common_init): Always use intmax_t.
12480
12481 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12482
12483         * c-common.c (c_common_init): Use intmax_t for now.
12484
12485 2002-05-24  Andrew Haley  <aph@redhat.com>
12486
12487         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
12488         if T is a boolean type.
12489
12490 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12491
12492         * basic-block.h (last_basic_block): Defined as synonym for
12493         n_basic_blocks.
12494         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
12495         flow_depth_first_order_compute, flow_preorder_transversal_compute,
12496         flow_dfs_compute_reverse_init): Replaced relevant occurences of
12497         n_basic_blocks with last_basic_block.
12498         * cfgbuild.c (make_edges): Likewise.
12499         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
12500         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
12501         * combine.c (combine_instructions): Likewise.
12502         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
12503         iterative_dataflow_bitmap): Likewise.
12504         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12505         calc_idoms, idoms_to_doms): Likewise.
12506         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
12507         Likewise.
12508         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
12509         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
12510         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
12511         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
12512         delete_null_pointer_checks, compute_code_hoist_vbeinout,
12513         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12514         compute_store_table, build_store_vectors): Likewise.
12515         * haifa-sched.c (sched_init): Likewise.
12516         * ifcvt.c (if_convert): Likewise.
12517         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12518         pre_edge_lcm, compute_available, compute_nearerout,
12519         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
12520         Likewise.
12521         * predict.c (estimate_probability, process_note_prediction,
12522         note_prediction_to_br_prob): Likewise.
12523         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
12524         * recog.c (split_all_insns, peephole2_optimize): Likewise.
12525         * regrename.c (copyprop_hardreg_forward): Likewise.
12526         * resource.c (init_resource_info): Likewise.
12527         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
12528         init_regions, schedule_insns): Likewise.
12529         * ssa-ccp.c (ssa_const_prop): Likewise.
12530         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12531         * ssa.c (compute_dominance_frontiers,
12532         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
12533
12534         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
12535         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
12536         sizes consistently.
12537
12538 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12539
12540         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
12541         new.
12542         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
12543         hoist_insn_after, hoist_insn_to_edge): New.
12544
12545 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
12546
12547         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
12548         (PROP_FINAL): Include.
12549         * flow.c (life_analysis, update_life_info,
12550         init_propagate_block_info, mark_set_1, mark_used_rgs):
12551         Support SCAN_DEAD_STORE.
12552
12553 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12554
12555         * c-common.c (c_common_init): Set CPP arithmetic precision.
12556         * cppexp.c (cpp_num_part): Move typedef ...
12557         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
12558         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
12559         (sanity_checks): Update.
12560
12561 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
12562
12563         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
12564         (mkheaders): New rule.
12565         (install-mkheaders): New rule.
12566         * configure.in (all_outputs): Add mkheaders.
12567         * configure: Regenerate.
12568         * mkheaders.in: New file.
12569
12570 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
12571
12572         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
12573
12574 2002-05-26  Andreas Jaeger  <aj@suse.de>
12575
12576         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
12577
12578 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12579
12580         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
12581         right_shift): Remove.
12582         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
12583         HIGH_PART): New.
12584         (struct op): Use cpp_num.
12585         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
12586         num_part_mul, num_unary_op, num_binary_op, num_negate,
12587         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
12588         num_div_op, num_lshift, num_rshift, append_digit): New.
12589         (interpret_number, parse_defined, eval_token, reduce): Update
12590         for two-integer arithmetic.
12591         (binary_handler): New typedef.
12592         (optab): Update.
12593         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
12594         (_cpp_parse_expr, reduce): Update to handle two-integers.
12595         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
12596
12597 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12598
12599         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
12600         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
12601         branch insn into account, do not assume 1.
12602         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
12603         over single word insn.  Handle upper half of I/O space too.
12604         * config/avr/avr.md (*sbrx_branch): Use it.
12605         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
12606         (*sbix_branch, *sbix_branch_bit7): Likewise.
12607         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
12608         Use RTL peepholes to optimize register operand sign tests.
12609
12610 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12611
12612         * config/avr/avr.c (avr_asm_only_p): New variable.
12613         (avr_override_options): Set it here if AVR1.
12614         (asm_file_start): Test it here, report an error if set.
12615
12616 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
12617
12618         * alias.c: Fix formatting.
12619         * attribs.c: Likewise.
12620         * bb-reorder.c: Likewise.
12621         * bitmap.c: Likewise.
12622         * bitmap.h: Likewise.
12623         * builtins.c: Likewise.
12624
12625 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
12626
12627         * reload.c (find_valid_class): Accept new argument DEST,
12628         choose class accordingly.
12629         (push_reload): Update callers.
12630
12631 2002-05-26  Andreas Jaeger  <aj@suse.de>
12632
12633         * combine.c (combine_instructions): Do not indent #if for
12634         traditional C.
12635
12636 2002-05-25  Richard Henderson  <rth@redhat.com>
12637
12638         * c-pragma.c (apply_pragma_weak): Convert value identifier to
12639         string for decl_attributes.
12640         (handle_pragma_weak): Call assemble_alias if we're modifying
12641         an existing decl.
12642
12643 2002-05-25  Richard Henderson  <rth@redhat.com>
12644
12645         PR target/6788
12646         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
12647         using rtl instead of fprintf.
12648         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
12649         * config/sparc/sparc-protos.h: Update.
12650
12651 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12652
12653         * Makefile.in (C_COMMON_H): Fix.
12654         Update other targets.
12655         * c-common.c: Don't include c-lex.h.
12656         (builtin_define_with_value): Make static and prototype.
12657         (builtin_define_std): Move from c-lex.h.
12658         * c-common.h (init_c_lex): Move from c-lex.h.
12659         * c-decl.c: Don't include c-lex.h.
12660         (make_pointer_declarator): Move from c-parse.in.
12661         * c-lex.c: Don't include c-lex.h.
12662         * c-lex.h: Remove.
12663         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
12664         (make_pointer_declarator): Move to c-decl.c.
12665         * c-pragma.c: Don't include c-lex.h.
12666         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
12667         * c-tree.h (make_pointer_declarator): New.
12668 doc:
12669         * passes.texi, tm.texi: Update.
12670 objc:
12671         * Make-lang.in: Update and correct.
12672         * objc-act.c: Don't include c-lex.h or cpplib.h.
12673 treelang:
12674         * treetree.c: Don't include c-lex.h.
12675 config:
12676         * darwin-c.c: Don't include c-lex.h.
12677         * c4x/c4x-c.c: Don't include c-lex.h.
12678         * c4x/t-c4x: Update.
12679         * i370/i370-c.c: Don't include c-lex.h.
12680         * i370/t-i370: Update.
12681         * i960/i960-c.c: Don't include c-lex.h.
12682         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
12683         * i960/t-960bare: Update.
12684         * i960/t-vxworks: Update.
12685         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
12686         * rs6000/t-darwin: Update.
12687         * rs6000/t-rs6000-c-rule: Update.
12688         * v850/v850-c.c: Don't include c-lex.h.
12689         * v850/v850.c: Don't include c-lex.h or cpplib.h.
12690
12691
12692 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
12693
12694         * tree.def: Fix typos.
12695         * doc/install.texi: Likewise.
12696
12697 2002-05-25  Richard Henderson  <rth@redhat.com>
12698
12699         * configure.in (HAVE_AS_TLS): Add ia64 test.
12700         * configure: Rebuild.
12701         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
12702         (override_options): Set it.
12703         (TARGET_HAVE_TLS): New.
12704         (sdata_symbolic_operand): Look for 's'.
12705         (tls_symbolic_operand): New.
12706         (ia64_expand_load_address): Abort for tls symbols.
12707         (gen_tls_get_addr): New.
12708         (gen_thread_pointer): New.
12709         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
12710         (rtx_needs_barrier): Add new unspecs.
12711         (ia64_encode_section_info): Handle tls symbols.
12712         (ia64_strip_name_encoding): Strip two encoding chars.
12713         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
12714         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
12715         (TARGET_OPTIONS): Add tls-size.
12716         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
12717         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
12718         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
12719         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
12720         (movsf, movdf): Likewise.
12721         (movdi_symbolic): Use match_scratch.  Don't split if we won't
12722         have a scratch availiable.
12723         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
12724         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
12725         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
12726         * config/ia64/ia64-protos.h: Update.
12727         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12728         sdata_symbolic_operand.
12729         (ASM_OUTPUT_LABELREF): Strip two characters.
12730
12731 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
12732
12733         * combine.c (simplify_set): Remove an unnecessary subreg.
12734
12735 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12736
12737         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
12738
12739         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
12740
12741 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
12742
12743         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
12744
12745 2002-05-25  Roger Sayle  <roger@eyesopen.com>
12746
12747         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
12748         (cond (compare x y) 0) into the equivalent (cond x y).
12749
12750 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
12751
12752         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
12753
12754 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
12755
12756         * config.gcc: Remove all stanzas for previously obsoleted
12757         systems.  Where necessary, add explicit error stanzas to
12758         prevent removed systems from being misidentified as something
12759         else.  Begin a fresh obsoletions list, with the systems that
12760         were reprieved last round.
12761         * doc/install.texi: Remove all mention of dead targets.
12762         * fixinc/mkfixinc.sh: Likewise.
12763
12764         * config/arm/arm.h: Bit 31 of target_flags is no longer
12765         reserved.
12766
12767         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
12768         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
12769         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
12770         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
12771         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
12772         config/alpha/osf12.h, config/alpha/osf2or3.h,
12773         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
12774         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
12775         config/clipper/clipper-protos.h, config/clipper/clipper.c,
12776         config/clipper/clipper.h, config/clipper/clipper.md,
12777         config/clipper/clix.h, config/convex/convex-protos.h,
12778         config/convex/convex.c, config/convex/convex.h,
12779         config/convex/convex.md, config/convex/fixinc.convex,
12780         config/convex/proto.h, config/elxsi/elxsi-protos.h,
12781         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
12782         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
12783         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
12784         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
12785         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
12786         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
12787         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
12788         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
12789         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
12790         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
12791         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
12792         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
12793         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
12794         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
12795         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
12796         config/m68k/altos3068.h, config/m68k/apollo68.h,
12797         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
12798         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
12799         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
12800         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
12801         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
12802         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
12803         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
12804         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
12805         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
12806         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
12807         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
12808         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
12809         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
12810         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
12811         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
12812         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
12813         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
12814         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
12815         config/mips/dec-osf1.h, config/mips/elflorion.h,
12816         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
12817         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
12818         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
12819         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
12820         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
12821         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
12822         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
12823         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
12824         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
12825         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
12826         config/ns32k/sequent.h, config/ns32k/tek6000.h,
12827         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
12828         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
12829         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
12830         config/sparc/rtems.h, config/we32k/we32k-protos.h,
12831         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
12832         Delete file.
12833
12834 2002-05-24  Richard Henderson  <rth@redhat.com>
12835
12836         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
12837         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
12838         * config/i386/i386.c (tls_model_chars): Add leading space.
12839         (tls_symbolic_operand): Don't bias by 1.
12840         (legitimize_address): Don't unbias by 1.
12841
12842 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12843
12844         * lcm.c (optimize_mode_switching): Change bb used as indices
12845         to bb->index.
12846
12847 2002-05-24  Richard Henderson  <rth@redhat.com>
12848
12849         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
12850         of update_life_info_in_dirty_blocks.
12851
12852 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
12853
12854         PR other/6782
12855         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
12856
12857 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12858
12859         PR preprocessor/6780
12860         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
12861
12862 2002-05-24  Jim Blandy  <jimb@redhat.com>
12863
12864         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
12865         entry with a type code of zero, marking the end of the compilation
12866         unit's macro info.
12867
12868 2002-05-24  Richard Henderson  <rth@redhat.com>
12869
12870         * varasm.c (asm_output_bss): Always output one byte.
12871         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
12872
12873 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12874
12875         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
12876         namespace.
12877
12878 2002-05-24  Andreas Jaeger  <aj@suse.de>
12879
12880         * ggc-page.c (alloc_page): Cast variables of type size_t to
12881         unsigned long, adjust printf format string.
12882         (ggc_alloc): Likewise.
12883         (ggc_print_statistics): Likewise.
12884         (ggc_print_statistics): Correct printf format string for SCALE to
12885         use unsigned long.
12886
12887 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
12888
12889         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
12890
12891 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
12892             Zack Weinberg     <zack@codesourcery.com>
12893
12894         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
12895         quoted strings.
12896         * dwarf2out.c (lookup_filename): Properly quote filename in .file
12897         directive in assembly file.
12898         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12899         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12900         * config/pj/pj.h (ASM_FILE_START): Likewise.
12901         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12902         * config/avr/avr.c (asm_file_end): Likewise.
12903         * toplev.c (output_quoted_string): Handle possibly signed plain
12904         char.
12905         * toplev.h (output_clean_symbol_name): Declare
12906         * toplev.c (output_clean_symbol_name): Define.
12907         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
12908         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
12909
12910 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
12911
12912         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
12913
12914 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
12915
12916         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
12917         of size of unsigned.
12918
12919 2002-05-23  Richard Henderson  <rth@redhat.com>
12920
12921         * configure.in (HAVE_AS_TLS): New test.
12922         * config.in, configure: Rebuild.
12923         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
12924         (ix86_tls_dialect_string, ix86_tls_dialect): New.
12925         (override_options): Set it.
12926         (tls_model_chars, tls_symbolic_operand): New.
12927         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
12928         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
12929         (local_exec_symbolic_operand): New.
12930         (get_pic_label_name): Merge into output_set_got.
12931         (ix86_asm_file_end): Emit pic_label_name if defined.
12932         (legitimate_constant_p, constant_address_p): New.
12933         (legitimate_pic_operand_p): New.
12934         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
12935         (legitimate_address_p): Likewise.
12936         (ix86_encode_section_info): Rename from i386_; handle tls decls.
12937         (ix86_strip_name_encoding): New.
12938         (get_thread_pointer): New.
12939         (legitimize_address): Handle tls symbols.
12940         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
12941         Remove UNSPEC_PLT.
12942         (struct machine_function): Add some_ld_name.
12943         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
12944         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
12945         (output_addr_const_extra): New.
12946         (maybe_get_pool_constant): New.
12947         (ix86_split_to_parts): Use it.
12948         (ix86_expand_move): Handle tls symbols.
12949         (ix86_tls_get_addr): New.
12950         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
12951         (TARGET_OPTIONS): Add tls-dialect.
12952         (CONSTANT_ADDRESS_P): Use new out-of-line function.
12953         (LEGITIMATE_CONSTANT_P): Likewise.
12954         (LEGITIMATE_PIC_OPERAND_P): Likewise.
12955         (TARGET_STRIP_NAME_ENCODING): New.
12956         (ASM_OUTPUT_LABELREF): New.
12957         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
12958         (OUTPUT_ADDR_CONST_EXTRA): New.
12959         (PREDICATE_CODES): Update.
12960         (ix86_tls_dialect, ix86_tls_dialect_string): New.
12961         * config/i386/i386.md: Regroup and renumber unspec constants.
12962         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
12963         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
12964         (tls_global_dynamic, tls_local_dynamic_base): New.
12965         (tls_local_dynamic_once): New.
12966         * config/i386/i386-protos.h: Update.
12967
12968 2002-05-23  Richard Henderson  <rth@redhat.com>
12969
12970         * genemit.c (gen_insn): Print file:lineno comment before function.
12971         (main): likewise.
12972         * gensupport.c (struct queue_elem): Add filename member.
12973         (queue_pattern): Initialize it; update all callers.
12974         (process_include): Don't free filename.
12975         (read_md_rtx): Set read_rtx_filename.
12976
12977 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
12978
12979         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
12980
12981 2002-05-23  Richard Henderson  <rth@redhat.com>
12982
12983         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
12984
12985 2002-05-23  Richard Henderson  <rth@redhat.com>
12986
12987         * doc/extend.texi (C++98 Thread-Local Edits): Update with
12988         commentary from Mark.
12989
12990 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12991
12992         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
12993         Use FOR_EACH_BB macros to iterate over basic block chain.
12994         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
12995         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
12996         Likewise.
12997         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
12998         find_unreachable_blocks, create_edge_list, verify_edge_list,
12999         remove_fake_edges, add_noreturn_fake_exit_edges,
13000         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
13001         Likewise.
13002         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13003         find_sub_basic_blocks): Likewise.
13004         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
13005         Likewise.
13006         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
13007         Likewise.
13008         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
13009         Likewise.
13010         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
13011         commit_edge_insertions, commit_edge_insertions_watch_calls,
13012         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
13013         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
13014         * conflict.c (conflict_graph_compute): Likewise.
13015         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
13016         df_modified_p, df_refs_unlink, df_dump): Likewise.
13017         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
13018         * final.c (compute_alignments): Likewise.
13019         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
13020         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
13021         count_or_remove_death_notes): Likewise.
13022         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
13023         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
13024         classic_gcse, compute_transp, cprop, compute_pre_data,
13025         compute_transpout, invalidate_nonnull_info,
13026         delete_null_pointer_checks_1, delete_null_pointer_checks,
13027         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
13028         compute_store_table, build_store_vectors, store_motion): Likewise.
13029         * global.c (global_conflicts, mark_elimination): Likewise.
13030         * graph.c (print_rtl_graph_with_bb): Likewise.
13031         * haifa-sched.c (sched_init): Likewise.
13032         * ifcvt.c (if_convert): Likewise.
13033         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
13034         compute_available, compute_nearerout, compute_rev_insert_delete,
13035         optimize_mode_switching): Likewise.
13036         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
13037         * predict.c (estimate_probability, note_prediction_to_br_prob,
13038         propagate_freq, counts_to_freqs, expensive_function_p,
13039         estimate_bb_frequencies): Likewise.
13040         * profile.c (instrument_edges, get_exec_counts,
13041         compute_branch_probabilities, compute_checksum, branch_prob,
13042         find_spanning_tree): Likewise.
13043         * recog.c (split_all_insns, peephole2_optimize): Likewise.
13044         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
13045         Likewise.
13046         * regclass.c (scan_one_insn, regclass): Likewise.
13047         * regmove.c (mark_flags_life_zones, regmove_optimize,
13048         record_stack_memrefs): Likewise.
13049         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
13050         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
13051         * resource.c (find_basic_block): Likewise.
13052         * sched-ebb.c (schedule_ebbs): Likewise.
13053         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
13054         find_single_block_region, find_rgns, schedule_insns)
13055         * sibcall.c (optimize_sibling_and_tail_recursive_call)
13056         * ssa-ccp.c (optimize_unexecutable_edges,
13057         ssa_ccp_df_delete_unreachable_insns): Likewise.
13058         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
13059         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
13060         rename_block, convert_to_ssa, compute_conservative_reg_partition,
13061         compute_coalesced_reg_partition, rename_equivalent_regs,
13062         convert_from_ssa): Likewise.
13063         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
13064         process_for_unwind_directive): Likewise.
13065
13066         * df.c (FOR_ALL_BBS): Removed.
13067         * gcse.c (struct null_pointer_info): Type of current_block field
13068         changed.
13069         (struct reg_avail_info): Type of last_bb field changed.
13070         * config/ia64/ia64.c (block_num): Removed.
13071         (need_copy_state): Type changed.
13072         (last_block): New.
13073
13074 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13075
13076         * cppinit.c (mark_named_operators): Split out from init_builtins.
13077         (cpp_finish_options): Call it from here instead.
13078
13079 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
13080
13081         * builtin-attrs.def: Update copyright years.
13082         (ATTR_NONNULL): New attribute identifier.
13083         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
13084         attribute tree lists.
13085         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
13086         format operand.
13087         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
13088         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
13089         attribute lists.  Chain the appropriate nonnull attribute.
13090         * c-format.c (check_format_arg): Remove null format string
13091         warning.
13092         * testsuite/gcc.dg/format/null-1.c: New test.
13093
13094 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13095
13096         * Makefile.in (ADAC): Define.
13097         (SYSLIBS): Define.
13098         (.SUFFIXES): Move before language makefile fragments.
13099         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
13100
13101 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
13102
13103         * varasm.c (make_decl_rtl): Don't allow weak variables to be
13104         placed in common.
13105
13106 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
13107
13108         * cfg.c (dump_flow_info): Print results of
13109         maybe_hot/probably_never_executed predicates.
13110         * toplev.c (open_dump_file): Print function frequency.
13111
13112 2002-05-23  David S. Miller  <davem@redhat.com>
13113
13114         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
13115         regsets.
13116
13117 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
13118
13119         * c-common.c (warn_nonnull): Declare.
13120         (c_common_attribute_table): Add "nonnull" attribute.
13121         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
13122         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
13123         check_function_arguments_recurse): New functions.
13124         * c-common.h (warn_nonnull): Declare extern.
13125         (check_function_arguments, check_function_arguments_recurse): New
13126         prototypes.
13127         * c-decl.c (c_decode_option): Add -Wnonnull option.
13128         * c-format.c (set_Wformat): Set warn_nonnull if enabling
13129         format checking.
13130         (format_check_context): New structure.
13131         (check_format_info_recurse): Remove recursion and rename to...
13132         (check_format_arg): ...this.  Update comment.
13133         (check_format_info): Use check_function_arguments_recurse.
13134         * c-typeck.c (build_function_call): Call check_function_arguments
13135         instead of check_function_format.
13136         * doc/extend.texi: Document "nonnull" attribute.
13137         * doc/invoke.texi: Docuemnt -Wnonnull option.
13138         * testsuite/gcc.dg/nonnull-1.c: New test.
13139         * testsuite/gcc.dg/nonnull-2.c: New test.
13140
13141 2002-05-23  David S. Miller  <davem@redhat.com>
13142
13143         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
13144         * cfgcleanup.c (cleanup_cfg): If it is set do not
13145         attempt to delete trivially dead insns.
13146         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
13147         * toplev.c (rest_of_compilation): Document non-trivial aspect
13148         the RTL before optimize_save_area_alloca is run.
13149
13150 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13151
13152         * c-lex.c (indent_level): Remove.
13153         (cb_file_change, c_lex): Remove indent level handling.
13154         * c-lex.h (indent_level): Remove.
13155         * input.h (struct file_stack): Remove indent_level.
13156         * toplev.c (push_srcloc): Remove indent_level handling.
13157
13158 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
13159
13160         PR target/6753
13161         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
13162         of x in constraints for clarity.
13163         (sse_mov?fcc split): abort if op2 == op3.
13164         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
13165         sse_movsfcc_const0_4): Add earlyclobber.
13166         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
13167         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
13168         Use Y instead of x in constraints.
13169
13170 2002-05-23  Richard Henderson  <rth@redhat.com>
13171
13172         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
13173         (C++98 Thread-Local Edits): New subsection.
13174
13175         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
13176         (ix86_arch): Set type to enum processor_type.
13177
13178         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
13179         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
13180
13181 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
13182
13183         * configure.in: Fix as version test for binutils 2.12.1 releases
13184         (without dates).
13185         * configure: Rebuilt.
13186
13187 2002-05-23  Richard Henderson  <rth@redhat.com>
13188
13189         * config/i386/i386.c (get_pic_label_name): New.
13190         (load_pic_register): Remove.
13191         (output_set_got): New.
13192         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
13193         * config/i386/i386.md (UNSPEC_SET_GOT): New.
13194         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
13195         (prologue_set_got, prologue_get_pc): Remove.
13196         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
13197         (builtin_setjmp_receiver): Use gen_set_got.
13198         * config/i386/i386-protos.h: Update.
13199
13200 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13201
13202         * gcse.c (hash_expr): Do not use alias set for hashing.
13203
13204 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
13205
13206         * dbxout.c (dbxout_class_name_qualifiers): New function.
13207         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
13208
13209 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13210
13211         * cpperror.c (_cpp_begin_message): No special casing
13212         of CPP_FATAL_LIMIT.
13213         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
13214         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
13215         * cpplib.c (do_include_common): Use DL_ERROR.
13216         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
13217         (DL_ICE): Renumber.
13218         * fix-header.c (read_scan_file): Update.
13219
13220 2002-05-22  Richard Henderson  <rth@redhat.com>
13221
13222         * config/i386/i386.c (ix86_expand_call): New function, extracted
13223         from md call patterns.  Add pic_offset_table_rtx to
13224         CALL_INSN_FUNCTION_USAGE when needed.
13225         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
13226         (call_value_pop, call_value, untyped_call): Likewise.
13227         (call_exp, call_value_exp): Remove.
13228         * config/i386/i386-protos.h: Update.
13229
13230 2002-05-22  Richard Henderson  <rth@redhat.com>
13231
13232         * varasm.c (default_section_type_flags): Check for VAR_DECL
13233         before using DECL_THREAD_LOCAL.
13234
13235 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
13236
13237         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
13238         (STARTFILE_SPEC): Delete PE crt0.o.
13239         * config/rs6000/aix51.h: Same.
13240         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
13241         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
13242         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
13243         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
13244         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
13245
13246 2002-05-22  Richard Henderson  <rth@redhat.com>
13247
13248         * varasm.c (default_section_type_flags): Handle tls data and
13249         default sections.
13250         (default_unique_section): Handle tls sections.
13251
13252 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
13253
13254         * configure.in (CROSS): Define NATIVE_CROSS.
13255         * configure: Regenerate.
13256         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
13257         (startfile_prefix_spec): New var.
13258         (static_specs): Add startfile_prefix_spec.
13259         (do_spec_2): Split out from..
13260         (do_spec): ..here.
13261         (main): Process startfile_prefix_spec.
13262         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
13263         dynamic linker.
13264         (STARTFILE_PREFIX_SPEC): Define.
13265         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
13266         absolute paths.
13267
13268 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
13269
13270         * cpperror.c: Fix formatting.
13271         * cppexp.c: Likewise.
13272         * cppfiles.c: Likewise.
13273         * cpphash.c: Likewise.
13274         * cpphash.h: Likewise.
13275         * cppinit.c: Likewise.
13276         * cpplex.c: Likewise.
13277         * cpplib.c: Likewise.
13278         * cppmacro.c: Likewise.
13279         * cppmain.c: Likewise.
13280         * cppspec.c: Likewise.
13281
13282 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
13283
13284         * combine.c (force_to_mode): Use gen_int_mode.
13285         Don't clear CONST_INT bits outside of mode.
13286
13287 2002-05-22  Richard Henderson  <rth@redhat.com>
13288
13289         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
13290         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13291
13292 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
13293
13294         PR c/6643
13295         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
13296         if DECL_SIZE_UNIT is INTEGER_CST.
13297
13298 2002-05-22  Richard Henderson  <rth@redhat.com>
13299
13300         * flow.c (life_analysis): Delete broken reg_label check.
13301
13302 2002-05-22  Richard Henderson  <rth@redhat.com>
13303
13304         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
13305         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13306
13307 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13308
13309         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
13310         (embed-bb.c): New rule.
13311         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
13312         * config/sh/embed_bb.c: Delete.
13313
13314 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
13315
13316         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
13317
13318 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
13319
13320         * config/h8300/h8300.md (*andorqi3): New.
13321
13322 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13323
13324         PR preprocessor/6517
13325         * Makefile.in: Update.
13326         * c-common.c (c_common_post_options): Add preprocessor
13327         errors to the error count.
13328         * c-lang.c (c_post_options): Kill.
13329         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13330         * hooks.h: Add header guards.
13331         * langhooks-def.h: Include hooks.h.
13332         (LANG_HOOKS_POST_OPTIONS): Update.
13333         * langhooks.h (struct lang_hooks): Update post_options.
13334         * toplev.c (parse_options_and_default_flags): Update.
13335 objc:
13336         * objc-lang.c (objc_post_options): Kill.
13337         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13338
13339 2002-05-21  Bruce Korb  <bkorb@gnu.org>
13340
13341         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
13342         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
13343         * fixinc/fixincl.x: regen.
13344
13345 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
13346
13347         * cfgbuild.c: Fix formatting.
13348         * cfg.c: Likewise.
13349         * cfgcleanup.c: Likewise.
13350         * cfglayout.c: Likewise.
13351         * cfgloop.c: Likewise.
13352         * cfgrtl.c: Likewise.
13353
13354 2002-05-21  Richard Henderson  <rth@redhat.com>
13355
13356         * c-common.h (enum rid): Add RID_THREAD.
13357         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
13358         (grokdeclarator): Grok __thread.
13359         * c-parse.in (reswords): Add __thread.
13360         (rid_to_yy): Add RID_THREAD.
13361
13362         * tree.h (DECL_THREAD_LOCAL): New.
13363         (struct tree_decl): Add thread_local_flag.
13364         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
13365         * tree.c (staticp): TLS variables are not static.
13366
13367         * target-def.h (TARGET_HAVE_TLS): New.
13368         * target.h (have_tls): New.
13369         * output.h (SECTION_TLS): New.
13370         * varasm.c (assemble_variable): TLS variables can't be common for now.
13371         (default_section_type_flags): Handle .tdata and .tbss.
13372         (default_elf_asm_named_section): Handle SECTION_TLS.
13373         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
13374
13375         * flags.h (flag_tls_default): Declare.
13376         * toplev.c (flag_tls_default): Define.
13377         (display_help): Display help for it.
13378         (decode_f_option): Set it.
13379
13380         * doc/extend.texi (Thread-Local): New node describing language-level
13381         thread-local storage.
13382         * doc/invoke.texi (-ftls-model): Document.
13383
13384         * fixinc/inclhack.def (thread_keyword): New.
13385         * fixinc/fixincl.x: Rebuild.
13386
13387 2002-05-21  Jeffrey A Law  <law@redhat.com>
13388
13389         * optabs.c (expand_binop): For double-word integer multiplies,
13390         do not compute intermediate results into something that is
13391         not a register (such as a SUBREG or MEM).
13392
13393         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
13394         (ix86_sched_reorder): Make sure to initialize scheduling
13395         data even when there's only one insn in the ready queue.
13396
13397 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
13398
13399         * genautomata.c (reserv_sets_hash_value): Fix a typo.
13400
13401 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
13402
13403         * genautomata.c (reserv_sets_hash_value): Define hash_value as
13404         set_el_t.  Transform the hash value into unsigned.
13405         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
13406         (transform_3): Add code to process `(A,B)+(D,E)'.
13407
13408 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
13409
13410         * reload1.c (do_output_reload): Run delete_output_reload
13411         only if optimizing.
13412
13413 2002-05-21  Roger Sayle  <roger@eyesopen.com>
13414
13415         PR middle-end/6600
13416         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
13417         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
13418         (can_store_by_pieces): ... and here to limit the largest mode used.
13419         Add a comment to document this function.
13420
13421 2002-05-21  Richard Henderson  <rth@redhat.com>
13422
13423         * flow.c (life_analysis): Fix test for deleted label.
13424
13425 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13426
13427         * doc/tm.texi: Fix typo.
13428
13429 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
13430
13431         * c-common.c (c_common_init): Set options->unsigned_char from
13432         flag_signed_char.
13433         (cb_register_builtins): Define __STRICT_ANSI__ and
13434         __CHAR_UNSIGNED__ here...
13435         * cppinit.c (init_builtins): Not here.
13436         (cpp_create_reader): unsigned_char option defaults to 0, not
13437         !DEFAULT_SIGNED_CHAR.
13438         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
13439         and -funsigned-char.
13440
13441         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
13442         * cpphash.c (_cpp_init_hashtable): Don't set it.
13443         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
13444         directly.  Clarify comment.
13445
13446 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13447
13448         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
13449         neighboring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
13450         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
13451         BASIC_BLOCK (n_basic_blocks - 1).
13452         * cfganal.c (can_fallthru, flow_call_edges_add,
13453         flow_preorder_transversal_compute): Too.
13454         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13455         find_sub_basic_blocks): Too.
13456         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
13457         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
13458         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
13459         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
13460         * combine.c (this_basic_block): Type changed to basic_block.
13461         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
13462         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13463         get_last_value, distribute_notes, distribute_links): Too.
13464         * final.c (compute_alignments): Too.
13465         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
13466         * function.c (thread_prologue_and_epilogue_insns): Too.
13467         * gcse.c (compute_code_hoist_vbeinout): Too.
13468         * global.c (build_insn_chain): Too.
13469         * ifcvt.c (find_if_block, find_cond_trap): Too.
13470         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
13471         * regmove.c (regmove_optimize): Too.
13472         * resource.c (find_basic_block): Too.
13473         * sched-ebb.c (schedule_ebbs): Too.
13474         * ssa-dce.c (find_control_dependence, find_pdom): Too.
13475
13476 2002-05-21  Andreas Jaeger  <aj@suse.de>
13477
13478         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
13479
13480 2002-05-21  Richard Henderson  <rth@redhat.com>
13481
13482         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
13483         unspec names, not numbers.
13484
13485 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13486
13487         * doc/sourcebuild.texi: Mention snapshot-README and
13488         snapshot-index.html as needing updating for new front ends.
13489
13490 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13491
13492         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
13493         disabling checking, and avoid multiple evaluation of RTX.
13494
13495 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
13496
13497         * bitmap.c (bitmap_find_bit): Return early if we have the correct
13498         element cached.
13499
13500 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
13501
13502         * profile.c (gen_edge_profiler):  Set alias set before the memory is
13503         used.
13504
13505 2002-05-20  David S. Miller  <davem@redhat.com>
13506
13507         * cselib.c (max_value_regs): New.
13508         (cselib_lookup, cselib_invalidate_regno): Initialize it when
13509         adding new entries to the REG_VALUES table and we are dealing with
13510         a hard register.
13511         (clear_table): Initialize it.
13512         (cselib_invalidate_regno): Use it to determine which hard
13513         registers to scan when mode is not VOIDmode.
13514
13515 2002-05-20  Duraid Madina   <duraid@fl.net.au>
13516
13517         * tradcpp.c (fixup_newlines): Use old-style function header.
13518
13519 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
13520
13521         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
13522
13523 2002-05-20  H.J. Lu  (hjl@gnu.org)
13524
13525         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
13526
13527         * config/mips/mips.h (DFMODE_NAN): Defined.
13528         (SFMODE_NAN): Likewise.
13529
13530 2002-05-20  Dale Johannesen  <dalej@apple.com>
13531
13532         * combine.c (cant_combine_insn_p):  Back out my
13533         previous patch.
13534
13535 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
13536
13537         * params.c: Fix formatting.
13538         * params.h: Likewise.
13539         * predict.c: Likewise.
13540         * prefix.c: Likewise.
13541         * print-rtl.c: Likewise.
13542         * print-tree.c: Likewise.
13543         * profile.c: Likewise.
13544
13545 2002-05-20  H.J. Lu  (hjl@gnu.org)
13546
13547         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
13548
13549 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
13550
13551         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
13552         switches straight on to the assembler, do not abbreviate them.
13553         * config/arm/elf.h (ASM_SPEC): As above.
13554         * config/arm/semi.h (ASM_SPEC): As above.
13555         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
13556         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
13557         -mcpu=xscale on to the assembler by default.
13558         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
13559
13560 2002-05-20  Richard Henderson  <rth@redhat.com>
13561
13562         * cse.c (canon_hash): Reorder do_not_record test.  Always
13563         allow pic_offset_table_rtx.
13564
13565 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13566
13567         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
13568         (expand_binop): Ditto (3 times).
13569
13570 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
13571
13572         * Makefile.in (distclean): Remove QMTest stuff.
13573         (QMTEST_PATH): New variable.
13574         (QMTESTFLAGS): Likewise.
13575         (QMTESTRUNFLAGS): Likewise.
13576         (QMTEST): Likewise.
13577         (QMTEST_GPP_TESTS): Likewise.
13578         (QMTEST_DIR): Likewise.
13579         (QMTEST_DIR/context): New target.
13580         (qmtest-g++): Likeise.
13581         (qmtest-gui): Likewise.
13582         (QMTEST_DIR/gpp-expected.qmr): Likewise.
13583
13584 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
13585
13586         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
13587         an altivec register if TARGET_ALTIVEC.
13588
13589         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
13590         to ALTIVEC_VECTOR_MODE.
13591         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
13592         (rs6000_va_arg): Vectors may go in registers if they are not
13593         altivec vectors.
13594
13595 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
13596
13597         * protoize.c: Fix formatting.
13598
13599 2002-05-19  Richard Henderson  <rth@redhat.com>
13600
13601         * gensupport.c (init_include_reader): Merge into ...
13602         (process_include): ... here.  Simplify composite path creation.
13603         Plug memory leaks.  Fix file/line number tracking.  Do not
13604         process_define_cond_exec.  Return void.
13605         (process_rtx): Don't check process_include return value.
13606
13607 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13608
13609         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
13610         fields.
13611         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13612         traversing basic block chain.
13613         (create_basic_block_structure, create_basic_block): Declaration changed.
13614         (link_block, unlink_block): Declare.
13615         * cfg.c (entry_exit_blocks): Initialize new fields.
13616         (link_block, unlink_block): New.
13617         (expunge_block_nocompact): Unlink basic block.
13618         (dump_flow_info): Print prev_bb/next_bb fields.
13619         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
13620         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
13621         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
13622         * cfgrtl.c (create_basic_block_structure, create_basic_block,
13623         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
13624         (verify_flow_info): Check that list agrees with numbering.
13625
13626 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13627
13628         * c-common.c (preprocessing_asm): New macro.
13629         * c-lex.h (builtin_define, builtin_assert): Use pfile.
13630 doc:
13631         * tm.texi: Update.
13632 config/alpha:
13633         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
13634         (CPP_SPEC): Simplify.
13635         (TARGET_CPU_CPP_BUILTINS): Update.
13636         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
13637         (CPP_SPEC): Simplify.
13638         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
13639         (TARGET_OS_CPP_BUILTINS): Update.
13640         * osf.h (CPP_XFLOAT_SPEC): Kill.
13641         (TARGET_OS_CPP_BUILTINS): Update.
13642         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
13643         * osf5.h (CPP_XFLOAT_SPEC): Kill.
13644         * vms.h (CPP_SUBTARGET_SPEC): Kill.
13645         (TARGET_OS_CPP_BUILTINS): Update.
13646
13647 2002-05-19  Richard Henderson  <rth@redhat.com>
13648
13649         * varasm.c (default_binds_local_p): Fix typo.
13650
13651 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13652
13653         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
13654         CONST_INT operand to the correct mode after adding 1 to it.
13655
13656 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
13657
13658         * config.gcc (powerpc-wrs-windiss*): New target.
13659
13660 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13661
13662         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
13663         (ashrdi3): Use it.
13664
13665 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
13666
13667         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
13668         alphasort.
13669         * config.in: Regenerated.
13670         * configure: Regenerated.
13671
13672 2002-05-19  Richard Henderson  <rth@redhat.com>
13673
13674         * target-def.h (TARGET_BINDS_LOCAL_P): New.
13675         * target.h (struct gcc_target): Move boolean fields to the end.
13676         Add binds_local_p.
13677         * varasm.c (default_binds_local_p): New.
13678         * output.h: Declare it.
13679
13680         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
13681         * config/cris/cris.c (cris_encode_section_info): Likewise.
13682         * config/i386/i386.c (i386_encode_section_info): Likewise.
13683         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13684         * config/sh/sh.c (sh_encode_section_info): Likewise.
13685
13686         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
13687         (TARGET_BINDS_LOCAL_P): New.
13688
13689 2002-05-19  Richard Henderson  <rth@redhat.com>
13690
13691         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
13692         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
13693         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
13694
13695         * toplev.c (display_help): Kill -a -ax help.
13696
13697         * config/1750a/1750a.h, config/alpha/alpha.h,
13698         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
13699         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
13700         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
13701         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
13702
13703         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
13704         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
13705
13706         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
13707         (ix86_output_function_block_profiler): Kill.
13708         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
13709         (m68hc11_function_block_profiler): Kill.
13710         * config/m68hc11/m68hc11-protos.h: Update.
13711         * config/m88k/m88k.c (output_block_profiler): Kill.
13712         (output_function_block_profiler): Kill.
13713         * config/m88k/m88k-protos.h: Update.
13714
13715 2002-05-19  Richard Henderson  <rth@redhat.com>
13716
13717         * system.h (STRIP_NAME_ENCODING): Poison it.
13718         * output.h (STRIP_NAME_ENCODING): Remove.
13719         (default_strip_name_encoding): Declare.
13720         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
13721         * target.h (strip_name_encoding): New.
13722         * varasm.c (default_strip_name_encoding): New.
13723
13724         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
13725         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
13726         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
13727         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
13728         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
13729         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
13730         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
13731         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
13732         config/v850/v850.h: Use the hook, not the macro.
13733
13734         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13735         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
13736         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
13737         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
13738         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
13739         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
13740         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13741         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
13742         config/v850/v850.c, config/v850/v850.h:
13743         Move STRIP_NAME_ENCODING to out-of-line function and add
13744         TARGET_STRIP_NAME_ENCODING.
13745
13746         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
13747         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
13748         with TARGET_STRIP_NAME_ENCODING referencing existing function;
13749         make function static.
13750
13751         * xcoffout.c: Include target.h
13752         * Makefile.in (xcoffout.o): Update.
13753
13754         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
13755         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
13756         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
13757         reloc argument unused.
13758         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
13759
13760         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
13761         STRIP_NAME_ENCODING docs.
13762
13763 2002-05-19  Andreas Jaeger  <aj@suse.de>
13764
13765         * gengenrtl.c: Add prototype for excluded_rtx.
13766
13767         * real.h: Add prototype for exact_real_truncate.
13768
13769 2002-05-18  Richard Henderson  <rth@redhat.com>
13770
13771         * system.h (ENCODE_SECTION_INFO): Poison it.
13772         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
13773         * target.h (encode_section_info): New.
13774         * varasm.c (make_decl_rtl, output_constant_def): Use it.
13775         * hooks.c (hook_tree_int_void): New.
13776         * hooks.h: Declare it.
13777
13778         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13779         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
13780         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
13781         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
13782         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
13783         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
13784         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
13785         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
13786         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
13787         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13788         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
13789         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
13790         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
13791         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
13792         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
13793         referencing existing function.  Make function static.
13794
13795         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
13796         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
13797         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
13798         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
13799         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
13800         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
13801         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
13802         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
13803         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
13804         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
13805         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
13806         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
13807         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
13808         Move ENCODE_SECTION_INFO to out-of-line function and add
13809         TARGET_ENCODE_SECTION_INFO.
13810
13811         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
13812         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13813
13814         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
13815         from SUBTARGET_*
13816         (switch_to_section): Replace in_rdata case with in_readonly_data.
13817
13818         * config/h8300/h8300.c (h8300_encode_label): Make static.
13819         * config/h8300/h8300-protos.h: Update.
13820
13821         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
13822         from rs6000_encode_section_info; make static.
13823         (rs6000_xcoff_encode_section_info): New.
13824
13825         * config/v850/v850.c (v850_encode_data_area): Make static.
13826         * config/v850/v850-protos.h: Update.
13827
13828         * config/vax/vax.c: Include flags.h.
13829         (vms_select_section): Fix typo.
13830
13831         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
13832         ENCODE_SECTION_INFO docs.
13833
13834 2002-05-18  Richard Henderson  <rth@redhat.com>
13835
13836         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
13837         REGISTER_TARGET_PRAGMAS.
13838         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
13839
13840         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
13841
13842 2002-05-18  Richard Henderson  <rth@redhat.com>
13843
13844         * system.h (SELECT_RTX_SECTION): Poison.
13845         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
13846         * target.h (select_rtx_section): New.
13847         * varasm.c (output_constant_pool): Use it.
13848         (default_select_rtx_section, default_elf_select_rtx_section): New.
13849         * output.h: Declare them.
13850
13851         * config/darwin.h (SELECT_RTX_SECTION): Move ...
13852         * config/darwin.c (machopic_select_rtx_section): ... here.
13853         * config/darwin-protos.h: Update.
13854
13855         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
13856         * config/nextstep.c (machopic_select_rtx_section): ... here.
13857         (nextstep_select_section): Rename variable to avoid macro clash.
13858         * config/nextstep-protos.h: Update.
13859
13860         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
13861         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
13862         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
13863         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
13864         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
13865         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
13866         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
13867         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
13868         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
13869         (SELECT_RTX_SECTION): Remove.
13870
13871         * config/darwin.h, config/elfos.h, config/nextstep.h,
13872         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
13873         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
13874         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
13875         config/sparc/lynx.h, config/xtensa/xtensa.c
13876         (TARGET_ASM_SELECT_RTX_SECTION): New.
13877
13878         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
13879         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
13880         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
13881         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
13882         (ia64_aix_select_rtx_section): New.
13883         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
13884         redefining.
13885         * config/mips/mips.c (mips_select_rtx_section): Make static.
13886         Support ELF SHF_MERGE features.
13887         * config/mips/mips-protos.h: Update.
13888         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
13889         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
13890         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
13891         make static, fall back to default_elf_select_rtx_section.
13892         * config/rs6000/rs6000-protos.h: Update.
13893         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
13894         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
13895         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
13896         * config/romp/romp.c (romp_select_rtx_section): New.
13897         * config/s390/s390.c (s390_select_rtx_section): New.
13898         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
13899         declarations before target macro definition.
13900         (xtensa_emit_call): Use static buffer.
13901         (xtensa_select_rtx_section): New.
13902         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
13903         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
13904         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
13905
13906         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
13907         SELECT_RTX_SECTION docs.
13908
13909 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13910
13911         * i386.md (movsi/movdi): Fix template.
13912         (sse2 patterns): Set attributes consistently.
13913
13914         * i386.md (pushqi2, ashrqi_*): Fix constraint.
13915
13916 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13917
13918         * optabs.c (complex_part_zero_p): New.
13919         * (expand_cmplxdiv_straight): Use it.
13920         * (expand_cmplxdiv_wide): Ditto.
13921         * (expand_binop): Ditto.
13922
13923 2002-05-18  Richard Henderson  <rth@redhat.com>
13924
13925         * final.c (HAVE_READONLY_DATA_SECTION): New.
13926         (shorten_branches): Use it instead of ifdefs.
13927         * varasm.c (enum in_section): Add in_readonly_data.
13928         (text_section, data_section): Tidy.
13929         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
13930
13931         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
13932         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
13933         (READONLY_DATA_SECTION): Don't undef.
13934
13935         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
13936         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
13937         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
13938
13939         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
13940         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
13941         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
13942         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
13943
13944         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
13945         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
13946         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13947         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
13948         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
13949         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
13950         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
13951         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
13952         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
13953
13954         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
13955         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
13956         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
13957         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
13958         config/pa/pa64-hpux.h, config/sparc/litecoff.h
13959         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13960
13961         * config/elfos.h, config/netware.h, config/svr3.h,
13962         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13963         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13964         config/h8300/h8300.h, config/i386/i386-interix.h,
13965         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13966         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
13967
13968         * config/elfos.h, config/netware.h, config/svr3.h,
13969         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13970         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
13971         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13972         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
13973
13974         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
13975         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
13976         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
13977         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
13978         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
13979         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
13980         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
13981         config/rs6000/sysv4.h, config/v850/v850.h
13982         (EXTRA_SECTIONS): Remove in_const/in_rdata.
13983         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
13984
13985         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
13986         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
13987         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
13988         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
13989         * config/alpha/alpha.c (alpha_start_function): Likewise.
13990         (alpha_write_linkage): Likewise.
13991         * config/m32r/m32r.c (m32r_select_section): Likewise.
13992         * config/m88k/m88k.c (m88k_select_section): Likewise.
13993         * config/mips/mips.c (mips_select_rtx_section): Likewise.
13994         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
13995         (rs6000_elf_select_section): Likewise.
13996         * config/v850/v850.c (v850_select_section): Likewise.
13997
13998         * config/1750a/1750a.h, config/i860/sysv3.h
13999         (READONLY_DATA_SECTION_ASM_OP): New.
14000         READONLY_DATA_SECTION_ASM_OP.
14001         * config/i386/interix.c, config/i386/winnt.c
14002         (i386_pe_unique_section): Always use .rdata prefix.
14003         * config/pa/som.h (readonly_data): Always switch to read-only section.
14004         (READONLY_DATA_SECTION): Predicate on flag_pic.
14005         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
14006         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
14007         (READONLY_DATA_SECTION): Update.
14008
14009 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
14010
14011         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
14012         is used without -Wformat.
14013         * c-common.h (warn_format_zero_length): Declare extern.
14014         * c-decl.c (warn_options): Add "format-zero-length".
14015         * c-format.c (warn_format_zero_length): Declare.
14016         (set_Wformat): Set warn_format_zero_length for -Wformat.
14017         (check_format_info): Only warn about zero-length formats if
14018         warn_format_zero_length is true.  Include the format type
14019         name in the warning message.
14020         * doc/invoke.texi: Document -Wformat-zero-length.
14021         * testsuite/gcc.dg/format/zero-length-1.c: New test.
14022
14023 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
14024
14025         * timevar.c: Fix formatting.
14026         * tlink.c: Likewise.
14027         * toplev.c: Likewise.
14028         * tree-dump.c: Likewise.
14029         * tree-inline.c: Likewise.
14030
14031 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14032
14033         * cppinit.c (cpp_post_options): If preprocessed, turn off
14034         traditional.  If traditional, turn off column numbers.
14035         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
14036         * cpptrad.c (handle_newline): Update line_base.
14037         (skip_comment): Handle -Wcomment.
14038
14039 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
14040
14041         * cppinit.c (struct builtin): Remove unused fields.
14042         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
14043         (operator_array): New - was second half of builtin_array.
14044         (init_builtins): Simplify loop over builtin_array/operator_array.
14045
14046 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
14047
14048         * defaults.h (UNIQUE_SECTION): Remove.
14049         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
14050
14051 2002-05-17  Richard Henderson  <rth@redhat.com>
14052
14053         * expr.c (init_expr_once): Don't use start/end_sequence.
14054         Use rtx_alloc instead of emit_insn.
14055         * toplev.c (lang_dependent_init): Run init_expr_once here ...
14056         (lang_independent_init): ... not here.
14057
14058 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
14059
14060         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
14061
14062 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14063
14064         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
14065         for fixed registers, possibly used for global register variables.
14066         (initial_elimination_offset, avr_output_function_prologue,
14067         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
14068
14069 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14070
14071         * Makefile.in: Update for cpptrad.c.
14072         * cpphash.h (struct cpp_buffer): New members for buffer
14073         overlays.
14074         (struct cpp_reader): New members for traditional output.
14075         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
14076         * cppinit.c (cpp_create_reader): Set trad_line.
14077         (cpp_destroy): Free trad_out_base if used.
14078         (cpp_read_main_file): Overlay an empty buffer if traditional.
14079         (cpp_finish_options): Don't do builtins.
14080         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
14081         (cpp_handle_option): Handle it.
14082         * cpplex.c (continue_after_nul): New.
14083         (_cpp_lex_direct): Use handle_nul.
14084         * cpplib.h (struct cpp_options): New traditional option.
14085         * cpptrad.c: New file.
14086
14087 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14088
14089         * c-common.c (c_common_init_options): Use C89 for Objective-C,
14090         and set the options flag.
14091         * cppinit.c (lang_flags): Remove objc.
14092         (lang_defaults): Remove OBJC and OBJCXX.
14093         (set_lang): Update.
14094         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
14095         (cpp_handle_option): Remove -+ and -lang-objc++.
14096         For ObjC, just set a flag.
14097         (print_help): Update.
14098         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
14099
14100 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14101
14102         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
14103         bootstrap with -mips3.
14104
14105 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
14106
14107         * final.c: Fix formatting.
14108         * fix-header.c: Likewise.
14109         * flow.c: Likewise.
14110         * fold-const.c: Likewise.
14111         * function.c: Likewise.
14112
14113 2002-05-17  David S. Miller  <davem@redhat.com>
14114
14115         PR c/6689, PR optimization/6615
14116         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
14117         and make it a pointer to rtx.  Update comments.
14118         (update_equiv_regs): When scanning for equivalences, record
14119         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
14120         it while making the equiv replacements.
14121
14122 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14123
14124         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
14125
14126 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
14127
14128         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
14129         when encoding visibility into SYMBOL_REF_FLAG.
14130
14131 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
14132
14133         * expr.c (force_operand): Fix reversed move.
14134
14135 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
14136
14137         * doc/install.texi (Testing): Mention two common DejaGnu warnings
14138         that can be ignored.
14139
14140 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14141
14142         * doc/install.texi (Final install): Recommend to install into a
14143         "clean" target directory.
14144
14145 2002-05-17  Richard Henderson  <rth@redhat.com>
14146
14147         * config/ia64/ia64.md: Use braced strings instead of quoted strings
14148         for code blocks.  Tidy whitespace.
14149
14150 2002-05-17  Richard Henderson  <rth@redhat.com>
14151
14152         * hooks.c (hook_tree_bool_false): New.
14153         * hooks.h: Declare it.
14154         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
14155         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
14156         * target.h (select_section, unique_section): New.
14157         (in_small_data_p): New.
14158         * varasm.c (resolve_unique_section): Use hooks instead of macros.
14159         (variable_section, output_constant_def_contents): Likewise.
14160         (default_select_section, default_unique_section): New.
14161         (categorize_decl_for_section, default_elf_select_section): New.
14162         * output.h: Declare them.
14163
14164         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
14165         (TARGET_ASM_SELECT_SECTION): New.
14166         (SELECT_SECTION): Move ...
14167         * config/darwin.c (machopic_select_section): ... here.
14168         * config/darwin-protos.h: Update.
14169
14170         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
14171         (SELECT_SECTION): Move ...
14172         * config/nextstep.c (nextstep_select_section): ... here.
14173         * config/nextstep-protos.h: Update.
14174
14175         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
14176         (TARGET_ASM_SELECT_SECTION): New.
14177         * config/svr3.h (SELECT_SECTION): Remove.
14178
14179         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
14180         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
14181         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
14182         (alpha_encode_section_info): Use it.
14183         * config/alpha/alpha-protos.h: Update.
14184         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
14185         (SELECT_SECTION, UNIQUE_SECTION): Remove.
14186         (TARGET_ASM_SELECT_SECTION): New.
14187         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
14188
14189         * config/arm/pe.h (UNIQUE_SECTION): Remove.
14190         (TARGET_ASM_UNIQUE_SECTION): New.
14191
14192         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
14193         (avr_unique_section): Rename from unique_section; make static.
14194         * config/avr/avr-protos.h: Update.
14195         * config/avr/avr.h (UNIQUE_SECTION): Remove.
14196
14197         * config/c4x/c4x.h (SELECT_SECTION): Remove.
14198
14199         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
14200         (TARGET_ASM_UNIQUE_SECTION): New.
14201         * config/i386/i386-interix.h: Likewise.
14202         * config/i386/win32.h: Likewise.
14203         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
14204         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
14205         * config/i386/sco5.h (SELECT_SECTION): Remove.
14206         (TARGET_ASM_SELECT_SECTION): New.
14207         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
14208
14209         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
14210         instead of SELECT_SECTION.
14211         * config/m68k/dpx2.h: Likewise.
14212         * config/rs6000/lynx.h: Likewise.
14213
14214         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14215         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14216         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
14217         (ia64_in_small_data_p): New.
14218         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
14219         (ia64_aix_select_section, ia64_aix_unique_section): New.
14220         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
14221         (SELECT_SECTION, UNIQUE_SECTION): Remove.
14222
14223         * config/m32r/m32r.h (SELECT_SECTION): Remove.
14224         (TARGET_ASM_SELECT_SECTION): New.
14225         * config/m32r/m32r.c (m32r_select_section): Take align argument.
14226         * config/m32r/m32r-protos.h: Update.
14227
14228         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
14229         (SELECT_SECTION): Move ...
14230         * config/m88k/m88k.c (m88k_select_section): ... here.
14231
14232         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
14233         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
14234         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
14235         (mcore_unique_section): Make static.
14236         * config/mcore/mcore-protos.h: Update.
14237
14238         * config/mips/elf.h (UNIQUE_SECTION): Remove.
14239         (TARGET_ASM_UNIQUE_SECTION): New.
14240         * config/mips/elf64.h: Likewise.
14241         * config/mips/iris6gld.h: Likewise.
14242         * config/mips/linux.h: Likewise.
14243         * config/mips/mips-protos.h: Update.
14244         * config/mips/mips.c (mips_select_section): Add align argument.
14245         * config/mips/mips.h (SELECT_SECTION): Remove.
14246         (TARGET_ASM_SELECT_SECTION): New.
14247
14248         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14249         * config/mmix/mmix.c (mmix_select_section): Remove.
14250         (mmix_unique_section): Remove.
14251         * config/mmix/mmix-protos.h: Update.
14252
14253         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
14254         (SELECT_SECTION): Move ...
14255         * config/pa/pa.c (pa_select_section): ... here.
14256         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
14257
14258         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
14259         from rs6000_select_section and make static.
14260         (rs6000_elf_unique_section): Similarly.
14261         (rs6000_xcoff_select_section): From xcoff.h.
14262         (rs6000_xcoff_unique_section): Likewise.
14263         * config/rs6000/rs6000-protos.h: Update.
14264         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14265         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14266         * config/rs6000/xcoff.h: Likewise.
14267
14268         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
14269         (SELECT_SECTION): Move ...
14270         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
14271
14272         * config/v850/v850.h (SELECT_SECTION): Move ...
14273         * config/v850/v850.c (v850_select_section): ... here.
14274         (TARGET_ASM_SELECT_SECTION): New.
14275
14276         * config/vax/vms.h (SELECT_SECTION): Move ...
14277         * config/vax/vax.c (vms_select_section): ... here.
14278         (TARGET_ASM_SELECT_SECTION): New.
14279
14280         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
14281         for the target hooks.
14282
14283 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
14284
14285         * config/arm/arm.c (emit_multi_reg_push): Do not set
14286         RTX_FRAME_RELATED_P on the SEQUENCE.
14287
14288 2002-05-16  Richard Henderson  <rth@redhat.com>
14289
14290         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
14291         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
14292
14293 2002-05-16  Richard Henderson  <rth@redhat.com>
14294
14295         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
14296
14297         * config/ia64/ia64.c (saveable_obstack): Do not declare.
14298
14299 2002-05-16  Richard Henderson  <rth@redhat.com>
14300
14301         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
14302         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
14303         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
14304         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
14305         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
14306         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
14307         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
14308         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
14309         Revert "Basic block renumbering removal", and two followup patches.
14310
14311 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
14312
14313         * lcm.c (optimize_mode_switching): Revert previous change.
14314
14315 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14316
14317         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
14318         with only extant block numbers.
14319
14320 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
14321
14322         * lcm.c (optimize_mode_switching): Fix typo.
14323
14324 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14325
14326         * flow.c (calculate_global_regs_live): Queue blocks in program order.
14327
14328 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14329
14330         * doc/install.texi (Configuration): Document PWDCMD.
14331
14332 2002-05-16  Dale Johannesen  <dalej@apple.com>
14333
14334         * combine.c (cant_combine_insn_p):  Reenable combinations
14335         involving hard regs unless CLASS_LIKELY_SPILLED_P.
14336
14337 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14338
14339         * c-common.c (cb_register_builtins): Handle more built-ins
14340         here rather than in gcc.c specs.
14341         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
14342         (cpp_options): Pass -O flags even when only preprocessing.
14343         * toplev.c (set_fast_math_flags): New prototype.
14344         (fast_math_flags_set_p): New.
14345         (set_no_fast_math_flags): Remove.
14346         (decode_f_option): Update.
14347         * toplev.h (set_fast_math_flags): Update.
14348         (fast_math_flags_set_p): New.
14349         (set_no_fast_math_flags): Remove.
14350 config:
14351         * c4x/c4x.c (c4x_override_options): Update.
14352
14353 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
14354
14355         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
14356         Default-define here.
14357         (builtin_define_with_value): Can now wrap the expansion in
14358         quotation marks if such is wanted.
14359         (cb_register_builtins): Update calls to builtin_define_with_value.
14360         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
14361         here.
14362         (c_common_init): Set options->stdc_0_in_system_headers.
14363         * c-lex.h: Update prototype of builtin_define_with_value.
14364         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
14365         and REGISTER_PREFIX.
14366
14367         * cppinit.c (VERS, ULP, C, X): Kill.
14368         (builtin_array): Remove entries for __VERSION__,
14369         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
14370         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
14371         a constant.
14372         (init_builtins): Kill off a bunch of now-dead code.
14373         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
14374         -fno-leading-underscore.
14375         (cpp_handle_option): Remove code to set user_label_prefix.
14376         (cpp_post_options): Likewise.
14377
14378         * cpplib.h (struct cpp_options): Remove user_label_prefix.
14379         (stdc_0_in_system_headers): New.
14380         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
14381         stdc_0_in_system_headers) too to decide the value of __STDC__.
14382
14383         * tradcpp.c (user_label_prefix): Kill.
14384         (main): Remove code handling -f(no-)leading-underscore.
14385         (initialize_builtins): Don't define __REGISTER_PREFIX__
14386         or __USER_LABEL_PREFIX__.
14387         (install_value): Wrap compound statement in dummy loop so the
14388         macro works properly in an if statement.
14389
14390
14391 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
14392
14393         * loop.h (struct loop_info): Add member has_prefetch.
14394         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
14395         (prescan_loop): Initialize has_prefetch.
14396         (struct prefetch_info): Change prefetch_in_loop and
14397         prefetch_before_loop from bit fields to ints.
14398         (emit_prefetch_instructions): Several small fixes.
14399         (check_dbra_loop): Don't reverse loop that uses prefetch.
14400
14401 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14402
14403         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
14404         * configure.in: Likewise.
14405         * fixinc/check.tpl: Likewise.
14406         * fixinc/fixinc.dgux: Likewise.
14407         * fixinc/fixinc.svr4: Likewise.
14408         * fixinc/fixinc.winnt: Likewise.
14409         * fixinc/fixincl.sh: Likewise.
14410         * fixproto: Likewise.
14411         * configure: Regenerate.
14412
14413 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14414
14415         Basic block renumbering removal:
14416         * basic_block.h (struct basic_block_def): Renamed index to sindex,
14417         added prev_bb and next_bb fields.
14418         (n_basic_blocks): Renamed to num_basic_blocks.
14419         (last_basic_block): New, index of last basic block.
14420         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
14421         traversing basic block chain.
14422         (BLOCK_NUM): index -> sindex.
14423         (create_basic_block_structure, create_basic_block): Declaration changed.
14424         (debug_num2bb): Declare.
14425         (expunge_block_nocompact): Declaration removed.
14426         (link_block, unlink_block, compact_blocks): Declare.
14427         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
14428         * cfg.c (entry_exit_blocks): Initialize new fields.
14429         (clear_edges, alloc_block, expunge_block, cached_make_edge,
14430         redirect_edge_pred, dump_flow_info, dump_edge_info,
14431         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
14432         free_aux_for_edges): Modified.
14433         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
14434         (expunge_block_nocompact): Removed.
14435         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
14436         find_unreachable_blocks, create_edge_list, print_edge_list,
14437         verify_edge_list, flow_edge_list_print, remove_fake_successors,
14438         remove_fake_edges, flow_reverse_top_sort_order_compute,
14439         flow_depth_first_order_compute, flow_preorder_transversal_compute,
14440         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
14441         flow_dfs_compute_reverse_execute): Modified.
14442         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
14443         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
14444         Modified.
14445         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14446         merge_blocks_move_predecessor_nojumps,
14447         merge_blocks_move_successor_nojumps, merge_blocks,
14448         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
14449         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
14450         * cfglayout.c (skip_insns_after_block, label_for_bb,
14451         record_effective_endpoints, scope_to_insns_finalize,
14452         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
14453         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
14454         cfg_layout_duplicate_bb): Modified.
14455         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
14456         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
14457         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
14458         flow_loops_find, flow_loop_outside_edge_p): Modified.
14459         * cfgrtl.c (create_basic_block_structure, create_basic_block,
14460         flow_delete_block, compute_bb_for_insn, split_block,
14461         try_redirect_by_replacing_jump, redirect_edge_and_branch,
14462         force_nonfallthru_and_redirect, tidy_fallthru_edge,
14463         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
14464         commit_edge_insertions, commit_edge_insertions_watch_calls,
14465         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
14466         purge_all_dead_edges): Modified.
14467         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
14468         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
14469         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
14470         Modified.
14471         * conflict.c (conflict_graph_compute): Modified.
14472         * df.c (FOR_ALL_BBS): Removed.
14473         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
14474         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
14475         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
14476         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
14477         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
14478         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
14479         * final.c (compute_alignments, final_scan_insn): Modified.
14480         * flow.c (verify_local_live_at_start, update_life_info,
14481         update_life_info_in_dirty_blocks, free_basic_block_vars,
14482         delete_noop_moves, calculate_global_regs_live,
14483         initialize_uninitialized_subregs, allocate_bb_life_data,
14484         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
14485         mark_used_reg, count_or_remove_death_notes): Modified.
14486         * function.c (thread_prologue_and_epilogue_insns): Modified.
14487         * gcse.c (struct null_pointer_info): Change typo of current_block
14488         to basic_block.
14489         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
14490         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
14491         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
14492         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
14493         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
14494         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
14495         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
14496         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
14497         pre_delete, one_pre_gcse_pass, compute_transpout,
14498         invalidate_nonnull_info, delete_null_pointer_checks_1,
14499         free_code_hoist_mem, compute_code_hoist_vbeinout,
14500         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
14501         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
14502         compute_store_table, build_store_vectors, insert_insn_start_bb,
14503         insert_store, replace_store_insn, free_store_memory, store_motion):
14504         Modified.
14505         * global.c (global_alloc, global_conflicts, mark_elimination,
14506         build_insn_chain): Modified.
14507         * graph.c (print_rtl_graph_with_bb): Modified.
14508         * haifa-sched.c (sched_init): Modified.
14509         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
14510         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
14511         if_convert): Modified.
14512         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
14513         compute_insert_delete, pre_edge_lcm, compute_available,
14514         compute_farthest, compute_nearerout, compute_rev_insert_delete,
14515         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
14516         Modified.
14517         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
14518         * loop.c (loop_dump_aux): Modified.
14519         * predict.c (combine_predictions_for_insn, estimate_probability,
14520         last_basic_block_p, process_note_prediction, process_note_predictions,
14521         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
14522         expensive_function_p, estimate_bb_frequencies,
14523         compute_function_frequency): Modified.
14524         * print-rtl.c (print_rtx): Modified.
14525         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
14526         get_exec_counts, compute_branch_probabilities, compute_checksum,
14527         branch_prob, find_spanning_tree): Modified.
14528         * recog.c (split_all_insns, peephole2_optimize): Modified.
14529         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
14530         convert_regs_1, convert_regs_2, convert_regs): Modified.
14531         * regclass.c (scan_one_insn, regclass): Modified.
14532         * regmove.c (mark_flags_life_zones, regmove_optimize,
14533         combine_stack_adjustments): Modified.
14534         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
14535         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
14536         * reorg.c (dbr_schedule): Modified.
14537         * resource.c (find_basic_block, init_resource_info): Modified.
14538         * sbitmap.c (sbitmap_intersection_of_succs,
14539         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
14540         sbitmap_union_of_preds): Modified.
14541         * sched-deps.c (init_dependency_caches): Modified.
14542         * sched-ebb.c (schedule_ebbs): Modified.
14543         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
14544         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
14545         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
14546         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
14547         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
14548         ssa_const_prop): Modified.
14549         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
14550         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
14551         * ssa.c (remove_phi_alternative, find_evaluations,
14552         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
14553         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
14554         make_regs_equivalent_over_bad_edges,
14555         make_equivalent_phi_alternatives_equival,
14556         compute_conservative_reg_partition,
14557         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
14558         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
14559         Modified.
14560
14561 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
14562
14563         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
14564
14565 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
14566
14567         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
14568         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14569         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
14570         calling CONSTANT_POOL_ADDRESS_P.
14571         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
14572         to decide whether to define __arm__ or __thumb.
14573         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
14574         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14575
14576 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14577
14578         * config/arc/arc.h (CPP_PREDEFINES): Remove.
14579         (CPP_SPEC): Update.
14580         (TARGET_CPU_CPP_BUILTINS): New.
14581
14582 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
14583
14584         * cpphash.h (cpp_macro): Move here, and make expansion a union.
14585         * cppmacro.c (cpp_macro): Remove.
14586         (enter_macro_context, replace_args, warn_of_redefinition,
14587         _cpp_create_definition, cpp_macro_definition): Update.
14588
14589 2002-05-16  Jason Merrill  <jason@redhat.com>
14590
14591         * config/mips/mips.c (mips_output_external): Don't do sdata
14592         optimization for a variable with DECL_COMDAT set.
14593
14594 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14595
14596         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
14597         Cleanups for accepting modifiers on pointers.
14598         Fix predicate typos.
14599         Allow long pointers as well as int pointers.
14600
14601 2002-05-15  Richard Henderson  <rth@redhat.com>
14602
14603         * varasm.c (merge_weak): Remove special case for extern and common.
14604
14605 2002-05-15  Matt Hiller  <hiller@redhat.com>
14606
14607         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
14608         XFAILing.
14609         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
14610         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
14611         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
14612         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
14613         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
14614         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
14615
14616 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14617
14618         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
14619
14620 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
14621
14622         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
14623         ("altivec_mfvscr"): Read from VSCR.
14624
14625         Add vscr sets for the following insns: altivec_vctuxs,
14626         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
14627         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
14628         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
14629         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
14630         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
14631         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
14632         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
14633         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
14634         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
14635         altivec_vsum2sws, altivec_vsumsws.
14636
14637         * config/rs6000/rs6000.h: Add VSCR fixed register.
14638         (CALL_REALLY_USED_REGISTERS): Add vscr.
14639         (CALL_USED_REGISTERS): Same.
14640         (FIXED_REGISTERS): Same.
14641         (REG_ALLOC_ORDER): Same.
14642         (reg_class): Add VSCR_REGS.
14643         (REG_CLASS_NAMES): Same.
14644         (REG_CLASS_CONTENTS): Same.
14645         (VSCR_REGNO): New.
14646         (REGISTER_NAMES): Add vscr.
14647         (DEBUG_REGISTER_NAMES): Same.
14648         (ADDITIONAL_REGISTER_NAMES): Same.
14649         (FIRST_PSEUDO_REGISTER): Increment.
14650         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
14651
14652 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
14653
14654         * fold-const.c (fold): Fix a typo.
14655
14656 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
14657
14658         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
14659         comparison against the highest or lowest integer value before
14660         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
14661         transformation and that of an unsigned comparison against 0
14662         right after.
14663
14664 2002-05-15  Richard Henderson  <rth@redhat.com>
14665
14666         * varasm.c (merge_weak): Error for any weakening after definition.
14667         Adjust weakening after use warning to catch more cases.
14668         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
14669         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
14670
14671 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
14672
14673         * invoke.texi (-malign-double): Re-add lost warning.
14674
14675         * i386-protos.h (x86_output_mi_thunk): Declare.
14676         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
14677         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
14678
14679         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
14680         when flag_asynchronous_unwind_tables is set.
14681
14682         * flags.h (flag_reorder_functions): Declare.
14683         * function.c (prepare_function_start): Initialize frequnecy.
14684         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
14685         * Makefile.in (predict.o): Add dependency on target.h and params.h
14686         * defaults.h (HOT_TEXT_SECTION_NAME,
14687         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
14688         * predict.c (choose_function_section): New function.
14689         (estimate_bb_frequencies): Use it.
14690         * toplev.c (flag_reorder_functions): New global variable.
14691         (lang_independent_options): New.
14692         (parse_options_and_default_flags): Set.
14693         * varasm.c (assemble_start_function): Bypass functdion alignment
14694         for never executed functions.
14695         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
14696         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
14697         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14698         Document.
14699
14700         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14701
14702         * predict.c: Inlude profile.h
14703         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
14704         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
14705         Use the information about maximal counter in the program.
14706
14707         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
14708
14709         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
14710         probably_never_executed_bb_p): New functions.
14711         * cfgcleanup.c (outgoing_edges_match): Use them.
14712         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
14713         (maybe_hot_bb_p, probably_cold_bb_p,
14714         probably_never_executed_bb_p): New functions.
14715
14716         * function.h (function): Add new field function_frequency.
14717         * predict.c (compute_function_frequency): New function.
14718         (estimate_probability): Call it.
14719
14720 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14721
14722         PR optimization/5172, optimization/5200
14723         * gcse.c (gcse_main): Disable store_motion.
14724
14725 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
14726
14727         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
14728         (c_common_nodes_and_builtins): Use it.
14729         (builtin_define_with_value): New function.
14730         (cb_register_builtins): Define __SIZE_TYPE__,
14731         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
14732         using builtin_define_with_value.  Use consistent notation when
14733         defining __GXX_WEAK__.
14734         (WCHAR_TYPE_SIZE): Don't redefine.
14735         (combine_strings): Don't use WCHAR_TYPE_SIZE.
14736
14737         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
14738         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
14739         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
14740         * tradcpp.c (initialize_builtins): Likewise.
14741         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
14742
14743         * c-lex.h (builtin_define_with_value): Prototype.
14744         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
14745         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
14746         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
14747
14748         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14749         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
14750         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
14751         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
14752         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
14753         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
14754         config/sparc/sol2-bi.h, config/sparc/sparc.h:
14755         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
14756         to __SIZE_TYPE__ etc from all spec strings. When this makes
14757         extra specs empty, delete them.
14758
14759 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14760
14761         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
14762         for PA8000 or generating dwarf2 call frame information.
14763         (output_call): Remove DO_FRAME_NOTES check from return pointer
14764         optimization.
14765         (following_call): Return 0 when scheduling for PA8000 or generating
14766         dwarf2 call frame information.  Revise comment.
14767
14768 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14769
14770 config/alpha:
14771         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
14772         and __IEEE_FP_INEXACT as appropriate.
14773         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
14774         (CPP_SPEC): Remove ieee defines.
14775         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
14776
14777 2002-05-14  Richard Henderson  <rth@redhat.com>
14778
14779         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
14780         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
14781
14782 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14783
14784         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
14785         (CPP_SPEC): Update.
14786         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
14787         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
14788         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
14789         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
14790         (EXTRA_SPECS): Update.
14791         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
14792         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
14793         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
14794         define TARGET_OS_CPP_BUILTINS if necessary.
14795
14796 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14797
14798         * gcc.c (cpp_options): Must pass -m* and -f* options
14799         to the front end even when only preprocessing.
14800         (cc1_options): Remove redundant -lang-c.
14801         * tradcpp.c (main): Ignore -m options.
14802 objc:
14803         * lang-specs.h: Similarly.
14804
14805 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
14806
14807         * genautomata.c (transform_3): Add code for transformation
14808         `(A,B,...)+C -> A+C,B,...'.
14809
14810 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
14811
14812         * final.c (end_final): Do not output profile_arcs constructor, when
14813         no functions are instrumented.
14814
14815 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
14816
14817         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
14818
14819 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14820
14821         * doc/install.texi: Remove special markup originally required for
14822         HTML generation with texi2html.
14823
14824 2002-05-14  Andreas Schwab  <schwab@suse.de>
14825
14826         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
14827         SELECT_SECTION.
14828         (UNIQUE_SECTION): Define to get small data correctly.
14829
14830         * varasm.c (resolve_unique_section): Add third parameter
14831         flag_function_or_data_sections and use it instead of
14832         flag_function_sections.
14833         (assemble_start_function): Pass flag_function_sections.
14834         (asm_emit_uninitialised): Pass flag_data_sections.
14835         (assemble_variable): Likewise.
14836
14837 2002-05-14  Richard Henderson  <rth@redhat.com>
14838
14839         * config/i386/i386.md: Use define_constants for unspec numbers.
14840         * config/i386/i386.c: Likewise.
14841
14842 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14843
14844         * doc/contrib.texi: Update my entry.
14845
14846 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
14847
14848         * fixinc/inclhack.def (winidss_valist): Limit applicability.
14849         * fixinc/fixincl.x: Regenerated.
14850         * fixinc/tests/base/math.h: Update.
14851         * fixinc/tests/base/testing.h: Likewise.
14852
14853 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
14854
14855         * genattr.c (gen_attr): Don't emit a comma after the last
14856         enumerator.
14857
14858 2002-05-13  Richard Henderson  <rth@redhat.com>
14859
14860         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
14861         by non-local gotos.
14862         * recog.c (peephole2_optimize): Likewise.
14863
14864 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
14865
14866         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
14867         input to O_BINARY.
14868
14869 2002-05-13  Jeffrey A Law  (law@redhat.com)
14870
14871         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
14872         Update prototype and callers.
14873         (propagate_one_insn): Stack pointer adjustments kill MEMs on
14874         the mem_set_list which reference the stack pointer, as do
14875         calls to constant functions as they may clobber outgoing
14876         argument space.
14877
14878         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
14879
14880         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14881         (ia32_multipass_dfa_lookahead): New function.
14882
14883 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14884
14885         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
14886         (translate_options): Remove 'V'.
14887         (process_command): Similarly.
14888 doc:
14889         * invoke.texi: Remove documentation of 'V'.
14890
14891 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
14892
14893         * config/s390/linux.h: Revert 2002-04-22 changes.
14894
14895 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
14896
14897         * config/fr30/fr30.md: Only allow splits of immediate loads
14898         if the destination is a register.
14899
14900 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14901
14902         * Makefile.in (c-common.o, cppinit.o): Update.
14903         * c-common.c: Include except.h.
14904         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
14905         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
14906         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
14907         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
14908         CPP_PREDEFINES): Handle here.
14909 config:
14910         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
14911         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
14912         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
14913         TARGET_OS_CPP_BUILTINS.
14914         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
14915         (CPP_SPEC, EXTRA_SPECS): Update.
14916         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
14917         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
14918         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
14919         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
14920         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
14921 doc:
14922         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
14923         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
14924
14925 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14926
14927         * emit-rtl.c (global_rtl): Update comment.
14928         (const_double_htab, const_double_htab_hash,
14929         const_double_htab_hash, lookup_const_double): New.
14930         (const_int_htab_hash, const_int_htab_eq): Remove const
14931         qualifiers, which cause tons of warnings with RTL checking on.
14932         (gen_rtx_CONST_DOUBLE): Deleted.
14933         (const_double_from_real_value): New function - bears some
14934         resemblance to the former immed_real_const_1.
14935         (immed_double_const): Moved here from varasm.c and
14936         simplified.
14937         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
14938         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
14939         (gen_rtx): Use immed_double_const.
14940         (init_emit_once): Initialize the const_double_htab.  Use
14941         REAL_VALUE_FROM_INT where possible.  Can now use
14942         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
14943         * varasm.c (struct varasm_status): Remove x_const_double_chain.
14944         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
14945         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
14946         (init_varasm_status, mark_varasm_status): Don't touch
14947         x_const_double_chain.
14948
14949         * output.h: Delete prototype for clear_const_double_mem.
14950         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
14951         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
14952         const_double_from_real_value, not immed_real_const_1, and use
14953         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
14954         CONST_DOUBLE_ATOF.
14955         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
14956         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
14957         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
14958         (gen_rtx_REG): Second arg is unsigned.
14959
14960         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
14961         (excluded_rtx): New, return true for CONST_DOUBLE.
14962         (genmacro): Write nothing for excluded codes.
14963         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
14964         * expr.c (expand_expr): Likewise.
14965         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
14966         CONST_DOUBLE_CHAIN.
14967         * toplev.c (rest_of_compilation): Don't call
14968         clear_const_double_mem.
14969
14970         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
14971         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
14972         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
14973         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
14974         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
14975         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
14976         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
14977         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
14978
14979 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14980
14981         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
14982
14983 2002-05-12  Tom Tromey  <tromey@redhat.com>
14984
14985         * tree.h (copy_node): Don't mention TREE_PERMANENT.
14986
14987 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14988
14989         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
14990         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
14991         * gensupport.h: Prototype new routines.
14992         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
14993         use of printf.
14994         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
14995         (next_comma_elt): Use scan_comma_elt.
14996
14997         * config/i386/i386.md: Use new attribute notation to break up
14998         long lines in define_attr forms.
14999
15000 2002-05-12  Richard Henderson  <rth@redhat.com>
15001
15002         * expr.c (compress_float_constant): New.
15003         (emit_move_insn): Use it.
15004         (float_extend_from_mem): New.
15005         (init_expr_once): Initialize it.
15006         * real.c (exact_real_truncate): New.
15007
15008         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
15009         dropped into memory; penalize for size.
15010         (RTX_COSTS): FLOAT_EXTEND is free.
15011         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
15012         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
15013
15014 2002-05-12  Richard Henderson  <rth@redhat.com>
15015
15016         * profile.h (profile_info): Add missing extern to declaration.
15017         * profile.c (profile_info): Define it.
15018
15019 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15020
15021         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
15022         used for DImode and TImode.
15023
15024 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15025
15026         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
15027         fake a newline.
15028
15029 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
15030
15031         * config/rs6000/rs6000.c (rs6000_default_long_calls,
15032         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
15033         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
15034         (rs6000_override_options): Handle -m(no-)longcall.
15035         (init_cumulative_args, output_mi_thunk): Check for both
15036         longcall and shortcall attributes on the function.
15037         (rs6000_attribute_table): Add "shortcall".
15038         (rs6000_handle_longcall_attribute): Update comment.
15039         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
15040         altivec_expand_ternop_builtin): Add default clauses to switches
15041         to silence warnings.
15042
15043         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
15044         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
15045         (TARGET_OPTIONS): Add longcall and no-longcall.
15046
15047         * config/rs6000/rs6000.md (call_nonlocal_sysv,
15048         call_value_nonlocal_sysv): Split by alternatives.  One pair
15049         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
15050         the call cookie.  The other pair accepts only LR/CTR and has
15051         no restriction.
15052
15053         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
15054         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
15055         tmake_file.
15056         * config/rs6000/rs6000-c.c: New file.
15057         * config/rs6000/t-rs6000-c-rule: New file.
15058         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
15059         Prototype rs6000_pragma_longcall.
15060
15061         * doc/extend.texi: Document shortcall attribute.
15062         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
15063
15064 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15065
15066         * reorg.c (dbr_schedule): Remove unnecessary test.
15067
15068 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
15069
15070         * i386.md (testsi to testqi spliters): New.
15071
15072         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
15073
15074         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
15075
15076         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
15077
15078         * basic-block.h: New flag EDGE_CAN_FALLTHRU
15079         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
15080         that can be made fallthru.
15081
15082         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
15083
15084         * cfglayout.c (cleanup_unconditional_jumps): New static function.
15085         (cfg_layout_initialize): Use it.
15086
15087 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15088
15089         * config/avr/avr.c (avr_mcu_types): Update supported devices.
15090         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15091         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15092
15093 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
15094
15095         * dbxout.c: Fix formatting.
15096         * dependence.c: Likewise.
15097         * df.c: Likewise.
15098         * diagnostic.c: Likewise.
15099         * doloop.c: Likewise.
15100         * dominance.c: Likewise.
15101         * doschk.c: Likewise.
15102         * dwarf2asm.c: Likewise.
15103         * dwarf2out.c: Likewise.
15104         * dwarfout.c: Likewise.
15105
15106 2002-05-10  Richard Henderson  <rth@redhat.com>
15107
15108         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
15109         Convert integers constants as needed.  Replace "nwords" field with
15110         "sizeof_bb".
15111         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
15112         * function.h: Fix typo in comment.
15113         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
15114
15115 2002-05-10  Roger Sayle  <roger@eyesopen.com>
15116
15117         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
15118         into the equivalent (signed char)c > 0.
15119
15120 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
15121
15122         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
15123         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
15124         (struct prefetch_info): Fix spelling of member bytes_accessed.
15125         (emit_prefetch_instructions): Make dump messages more regular;
15126         restructure code to add more dump messages; use new macros for
15127         heuristics. (There are no code generation changes in any of this).
15128
15129 2002-05-10  David S. Miller  <davem@redhat.com>
15130
15131         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
15132         (struct rtx_def): Update unchanging flag comment.
15133         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
15134         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
15135         to be handled to INSN too.
15136         (dbr_schedule): Likewise.
15137         * resource.c (next_insn_no_annul): Likewise.
15138
15139         * cse.c (rtx_cost): Remove multiplication by power of 2 special
15140         casing.
15141
15142 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15143
15144         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
15145         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
15146         (possibly) work around broken /bin/sh.
15147
15148 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15149
15150         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
15151         . as N64/N32 libgcc_s.so subdirs.
15152
15153 2002-05-10  David S. Miller  <davem@redhat.com>
15154
15155         * config/sparc/sparc.md: Use define_constants for unspec numbers.
15156
15157         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
15158         more accurately.
15159         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
15160         comment.
15161         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
15162         * doc/rtl.texi: Document these macros more accurately.
15163         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
15164         JUMP_INSNs and CALL_INSNs.
15165         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
15166         or INSN_FROM_TARGET_P if the code is appropriate.
15167
15168 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15169
15170         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
15171         before using SYMBOL_REF_FLAG (addr).
15172
15173         * config/avr/avr-protos.h (avr_io_address_p): Declare.
15174         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
15175         Make non-static.  Update all callers.
15176         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
15177         New insns to clear/set/test a single bit in I/O address space.
15178
15179 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15180
15181         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
15182
15183 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15184
15185         * Makefile.in: Update.
15186         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
15187         builtin_define_std): New.
15188         (c_common_init): Register CPP builtins callback.
15189         * c-common.h (flag_iso, flag_undef): New.
15190         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
15191         * c-lex.c: Don't include target.h.
15192         (cb_register_builtins): Move to c-common.c.
15193         (init_c_lex): Don't register hook here.
15194         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
15195         (cpp_define, cpp_assert): Remove.
15196         * gcc.c (cc1_options): Pass -undef to front end.
15197         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
15198         (TARGET_INITIALIZER): Update.
15199         * target.h (struct cpp_reader): Don't predeclare.
15200         (struct gcc_target): Remove cpp builtin hook.
15201         * tree.c (default_register_cpp_builtins): Remove.
15202 doc:
15203         * tm.texi: Update.
15204
15205 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15206
15207         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
15208
15209 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15210
15211         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
15212         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
15213
15214 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
15215
15216         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
15217         * config/sparc/libgcc-sparc-glibc.ver: New file.
15218         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
15219         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
15220
15221 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
15222
15223         PR target/6429
15224         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
15225         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
15226         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
15227         base multilibs.
15228         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
15229         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
15230         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15231         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15232
15233 2002-05-09  Richard Henderson  <rth@redhat.com>
15234
15235         * config/ia64/ia64.md: Use define_constants for unspec numbers.
15236         * config/ia64/ia64.c: Likewise.
15237
15238 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
15239
15240         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
15241         (save_restore_insns): Likewise.
15242         (mips_expand_prologue, mips_expand_epilogue): Update callers.
15243         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
15244
15245 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
15246
15247         * athlon.md, k6.md, pentium.md, ppro.md): New files.
15248         * i386.md: Move scheduling information into new files.
15249
15250         * i386.md (type attribute): Add "rotate" for rotate insns.
15251         (rotate insns): Set type to "rotate".
15252         (various attributes and function units): Treat rotate like shift.
15253         (pent_pair attribute): Only rotates by one bit position are
15254         pairable.
15255         (sbb insns): Explicitly set pent_pair attribute on a couple
15256         that were missing it.
15257
15258 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
15259
15260         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
15261         make sure that buffer starts on odd word address.
15262         (sh_va_arg): Skip odd fp registers when reading a double precision
15263         value.
15264
15265 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15266
15267         * tree.h (preserve_data, object_permanent_p, type_precision):
15268         Remove.
15269
15270 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15271
15272         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
15273         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
15274 doc:
15275         * cpp.texi: Update for removal of obsolete features.
15276
15277 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
15278                           Jeffrey A Law  (law@redhat.com)
15279
15280         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
15281         the DFA interface for Pentium processors.
15282         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
15283         (attr_pent_pair, ix86_pent_find_pair): Remove.
15284         (ix86_sched_reorder_pentium): Remove.
15285         (ix86_sched_reorder): Remove reordering for Pentium.
15286         * i386.md (Pentium scheduling): Rewrite using DFA description.
15287
15288 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
15289
15290         * cfganal.c (can_fallthru): Fix fast path.
15291         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
15292         with edges to the next block.
15293
15294 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
15295                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
15296
15297         * final.c (end_final): Use C trees to output data structures for profiling.
15298
15299         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
15300         (profile.o): New dependency profile.h
15301         (final.o): New dependency profile.h
15302         * profile.h: New file. New global structure profile_info.
15303         * final.h (count_edges_instrumented_now): Declare.
15304         (current_function_cfg_checksum): Declare.
15305         (function_list): New structure.
15306         (functions_head, functions_tail): New static variables.
15307         (end_final): Emits more data, removed some -ax stuff.
15308         (final): Stores function names and chcksums.
15309         * gcov-io.h (__write_gcov_string): New function.
15310         (__read_gcov_string): New function.
15311         * gcov.c (read_profile): New function.
15312         (create_program_flow_graph): Uses read_profile instead of reading
15313         da_file.
15314         (read_files): Removed da_file checking, it's done by read_profile now.
15315         * libgcc2.c (bb_function_info): New structure.
15316         (bb): New field in structure, removed some -ax stuff.
15317         (__bb_exit_func): Changed structure of da_file.
15318         * profile.c (count_edges_instrumented_now): New global variable.
15319         (current_function_cfg_checksum): New global variable.
15320         (max_counter_in_program): New global variable.
15321         (get_exec_counts): New function.
15322         (compute_checksum): New function.
15323         (instrument_edges): Sets count_edges_instrumented_now.
15324         (compute_branch_probabilities): Uses get_exec_counts instead of
15325         reading da_file.
15326         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
15327         (init_branch_prob): Removed da_file checking, done in get_exec_counts
15328         now.
15329         (end_branch_prob): Removed da_file checking, done in get_exec_counts
15330         now.
15331         * gcov.texi: Updated information about gcov file format.
15332
15333 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
15334
15335         * sbitmap.c: Fix formatting.
15336         * scan.c: Likewise.
15337         * scan-decls.c: Likewise.
15338         * sched-deps.c: Likewise.
15339         * sched-ebb.c: Likewise.
15340         * sched-rgn.c: Likewise.
15341         * sched-vis.c: Likewise.
15342         * sdbout.c: Likewise.
15343         * sibcall.c: Likewise.
15344         * simplify-rtx.c: Likewise.
15345         * ssa.c: Likewise.
15346         * ssa-ccp.c: Likewise.
15347         * ssa-dce.c: Likewise.
15348         * stmt.c: Likewise.
15349         * stor-layout.c: Likewise.
15350         * stringpool.c: Likewise.
15351
15352 2002-05-09  David S. Miller  <davem@redhat.com>
15353
15354         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
15355
15356 2002-05-07  David S. Miller  <davem@redhat.com>
15357
15358         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
15359         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
15360         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
15361         library implementation clobbers the output before the inputs
15362         are fully consumed, use stack temporary for the output.
15363
15364 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
15365
15366         * config/netbsd.h (CPP_SPEC): Remove.
15367         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
15368         * config/i386/netbsd.h (CPP_SPEC): Define.
15369         * config/ns32k/netbsd.h (CPP_SPEC): Define.
15370         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
15371         * config/sparc/netbsd.h (CPP_SPEC): Define.
15372         * config/vax/netbsd.h (CPP_SPEC): Define.
15373
15374 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
15375
15376         * read-rtl.c: Fix formatting.
15377         * real.c: Likewise.
15378         * recog.c: Likewise.
15379         * regclass.c: Likewise.
15380         * regmove.c: Likewise.
15381         * reg-stack.c: Likewise.
15382         * reload1.c: Likewise.
15383         * reload.c: Likewise.
15384         * resource.c: Likewise.
15385         * rtlanal.c: Likewise.
15386         * rtl.c: Likewise.
15387         * rtl-error.c: Likewise.
15388
15389 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15390
15391         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
15392         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
15393
15394 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
15395
15396         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
15397         use __SSE2__ macro instead.
15398         * config/i386/xmmintrin.h: Likewise.
15399
15400 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
15401
15402         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
15403         and use it in all invocations of these macros.  Clean up comments.
15404         * rtl.c (rtl_check_failed_flag): Add an argument for the name
15405         of the flag access macro whose check failed.
15406         * doc/rtl.texi (Flags): Document additional flag uses.
15407
15408 2002-05-08  Robert Spier <rspier@pobox.com>
15409             Neil Booth  <neil@daikokuya.demon.co.uk>
15410
15411         PR preprocessor/6521
15412         * cppfiles.c (handle_missing_header): Don't do anything
15413         different for <> includes.
15414 doc:
15415         * cppopts.texi: Update documentation for -MG.
15416
15417 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
15418
15419         * cpplex.c (cpp_interpret_charconst): Truncate as well as
15420         sign-extend.
15421 doc:
15422         * cpp.texi: Clarify multichar charconst valuation.
15423
15424 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
15425
15426         * doc/invoke.texi: Document -mwindiss option.
15427
15428 2002-05-08  Jason Merrill  <jason@redhat.com>
15429
15430         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
15431
15432         * dwarf2out.c (gen_type_die): Abort on broken recursion.
15433
15434         PR c++/6381
15435         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
15436         REAL_CST.
15437
15438 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
15439
15440         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
15441         little-endian multilibs to override arm/thumb multilibs.
15442         Do not build hardware floating point multilibs, nor apcs-26
15443         multilibs for the Thumb.
15444
15445 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
15446
15447         PR c/6569.
15448         * varasm.c (mark_weak): New function.
15449         (merge_weak): Use it.  Do not call declare_weak.
15450         (declare_weak): Use merge_weak.
15451
15452 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
15453
15454         * cse.c (dead_libcall_p): Update counts.
15455         (delete_trivially_dead_insns): Update call of dead_libcall_p.
15456
15457 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
15458
15459         * cfglayout.c (function_tail_eff_head): Rename to ...
15460         (function_footer): ... this one.
15461         (unlink_insn_chain): New functions.
15462         (label_for_bb): Only call block_label and emit debug message.
15463         (record_effective_endpoints): Actually unlink the headers and footers.
15464         (fixup_reorder_cahin): Re-insert the unlinked sequences.
15465         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
15466         * cfglayout.h (struct reorder_block_def): New fields footer/header;
15467         remove eff_head/eff_end.
15468         * rtl.h (set_first_insn): Declare.
15469         * emit-rtl.c (set_first_insn): New function.
15470
15471         * cfglayout.c (fixup_reorder_chain): Dump duplicated
15472         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15473         cfg_layout_duplicate_bb): New global function.
15474         (duplicate_insn_chain): New static function.
15475         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15476         cfg_layout_duplicate_bb): Declare.
15477         (struct reorder_block_def): Add "original" field.
15478         * emit-rtl.c (emit_copy_of_insn_after): New function.
15479         * rtl.h (emit_copy_of_insn_after): Declare.
15480
15481         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
15482         (fixup_reorder_chain): properly handle edges to exit block.
15483
15484 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15485                                Jan Hubicka  <jh@suse.cz>
15486
15487         * basic-block.h (note_prediction_to_br_prob): declare.
15488         * c-semantics.c: Inlucde predit.h
15489         (expand_stmt): predict GOTO_STMT as not taken.
15490         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
15491         (cleanup_cfg): Do not free tail_recursion_list.
15492         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
15493         (flow_delete_block): Kill predictions past end of basic block.
15494         * output.h (delete_unreachable_blocks): Declare.
15495         * predict.c (predicted_by_p, process_note_predictions,
15496         process_note_prediction, last_block_p): New function.
15497         (estimate_probability): Bypass loop on PRED_CONTINUE;
15498         do not handle noreturn heuristics; kill PRED_RETURN; add
15499         PRED_EARLY_RETURN.
15500         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
15501         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
15502         * predict.h (IS_TAKEN): New constant.
15503         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
15504         * rtl.c (NOTE_INSN_PREDICTION): New.
15505         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
15506         New macro.
15507         (insn_note): add NOTE_INSN_PREDICTION.
15508         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
15509         CFG; free tail_recursion_label_list.
15510         * stmt.c: Include predict.h;
15511         (return_prediction): New.
15512         (expand_value_return): Use it.
15513         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
15514
15515 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
15516
15517         * config/mips/mips.md: Name the unspecs with define_constant.
15518         (*HILO_delay): Rename to 'hilo_delay' (no star).
15519         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
15520         (reload_outdi, reload_outsi): Likewise.
15521
15522 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
15523
15524         * toplev.c: Fix formatting.
15525
15526 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
15527
15528         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
15529         * configure.in (ac_rtlflag_checking): New.
15530         * doc/install.texi (--enable-checking): Document RTL flag checking.
15531
15532 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15533
15534         * c-common.c (c_common_init): Set options->unsigned_wchar.
15535         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
15536         group target dependencies.
15537         (init_builtins, cpp_handle_option): Update.
15538         * cpplex.c (cpp_interpret_charconst): Update.
15539         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
15540         signed_char to unsigned_char, group target dependencies.
15541         * defaults.h (WCHAR_UNSIGNED): Remove.
15542         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
15543 config:
15544         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
15545         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
15546         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
15547         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
15548         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
15549 doc:
15550         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
15551
15552 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
15553
15554         * fixinc/inclhack.def (windiss_math1): New fix.
15555         (windiss_math2): Likewise.
15556         (windiss_valist): Likewise.
15557         * fixinc/fixincl.x: Regenerated.
15558
15559 2002-05-07  Andreas Jaeger  <aj@suse.de>
15560
15561         * genautomata.c (output_internal_min_issue_delay_func): Add
15562         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
15563         (output_internal_trans_func): Likewise.
15564
15565 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
15566
15567         * pa.c (hppa_profile_hook): Use force_reg to get the address
15568         of the profile hook into an appropriate pseudo register.
15569
15570 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
15571
15572         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
15573         (LINK_START_SPEC): Handle it.
15574         (LINK_OS_SPEC): Likewise.
15575         (CPP_SPEC): Likewise.
15576         (STARTFILE_SPEC): Likewise.
15577         (LIB_SPEC): Likewise.
15578         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
15579         all platforms.
15580         (CRTSAVRES_DEFAULT_SPEC): New macro.
15581         (LIB_WINDISS_SPEC): New macro.
15582         (CPP_OS_WINDISS_SPEC): Likewise.
15583         (STARTFILE_WINDISS_SPEC): Likewise.
15584         (ENDFILE_WINDISS_SPEC): Likewise.
15585         (LINK_START_WINDISS_SPEC): Likewise.
15586         (LINK_OS_WINDISS_SPEC): Likewise.
15587         * config/rs6000/windiss.h: New file.
15588
15589 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
15590
15591         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
15592
15593 2002-05-06  David S. Miller  <davem@redhat.com>
15594
15595         * config/sparc/sparc.md (shift insns): Do not mask off
15596         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
15597         take care of it.
15598
15599 2002-05-06  Richard Henderson  <rth@redhat.com>
15600
15601         PR c++/6212
15602         * expr.c (highest_pow2_factor_for_type): New.
15603         (expand_assignment): Use it.
15604
15605 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
15606
15607         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
15608         unspec_volatile.
15609         ("altivec_mfvscr"): Same.
15610
15611 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
15612
15613         * rtl.h (struct rtx_def): Update comments.
15614         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
15615         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
15616         RTL_FLAG_CHECK macros with list of expected RTL codes.
15617         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
15618         (rtl_check_failed_flag): New.
15619         * reload1.c (reload): Use REG macro before changing rtx to MEM.
15620         (reload_cse_noop_set_p): Check rtx code before using access macro.
15621         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
15622         before using access macro.
15623
15624 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
15625
15626         * doc/rtl.texi (Flags): Update to reflect current usage.
15627
15628 2002-05-06  Roger Sayle  <roger@eyesopen.com>
15629
15630         PR opt/3995
15631         * fold-const.c (sign_bit_p): New function.
15632         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
15633         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
15634         Reapply fold when converting (A & C) == C into (A & C) != 0.
15635         (fold_binary_op_with_conditional_arg): Fix typo in comment.
15636
15637 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15638
15639         * c-common.c (warn_multichar): New.
15640         (c_common_init): Set CPP's warn_multichar.
15641         * c-common.h (warn_multichar): New.
15642         * c-decl.c (warn_multichar): Remove.
15643         * c-lex.c (lex_charconst): Update.
15644         * c-tree.h (warn_multichar): Remove.
15645         * cppexp.c (eval_token): Sign-extend charconst value.
15646         * cppinit.c (cpp_create_reader): Set warn_multichar.
15647         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
15648         each character.  Update prototype.  Sign-extend the result.
15649         * cpplib.h: Fix conditions.
15650         (struct cpp_options): Add new warning flag.
15651         (cpp_interpret_charconst): Update prototype.
15652 doc:
15653         * cpp.texi: Update documentation.
15654
15655 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
15656
15657         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15658         Fix typo in usage of allof instead of unit.
15659
15660 2002-05-06  Richard Henderson  <rth@redhat.com>
15661
15662         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
15663         and any jump or call for IN.
15664
15665 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
15666
15667         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
15668         -msse2.
15669         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
15670
15671 2002-05-06  Roger Sayle  <roger@eyesopen.com>
15672
15673         * fold-const.c (lshift-double): Cast the high word to an unsigned
15674         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
15675         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
15676         avoid compiler warning.  (fold): Remove redundant code from
15677         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
15678
15679 2002-05-06  Jeff Law  <law@redhat.com>
15680
15681         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
15682         * pa.c (pa_adjust_cost): Remove all true dependency cost
15683         adjustments.  Also remove support for non-DFA scheduling.
15684         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
15685         to adjust true dependency costs.  Update various comments.
15686         (7100lc, 7200, 7300 scheduling): Simplify by combining the
15687         FP ALU & MPY units into a single unit.
15688
15689 2002-05-06  Catherine Moore  <clm@redhat.com>
15690
15691         * config/v850/v850.c (compute_register_save_size): Make sure
15692         to count all of the registers that will be saved.
15693
15694 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
15695
15696         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
15697
15698 2002-05-06  David S. Miller  <davem@redhat.com>
15699
15700         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
15701         allow result to overlap input operands in memory.
15702
15703 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15704
15705 doc:
15706         * cpp.texi: Update multichar charconst docs.
15707
15708 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15709
15710         * cpplex.c (cpp_interpret_charconst): Sign-extend each
15711         character.  Don't ignore excess characters.  Treat
15712         multicharacter character constants as signed.
15713         (cpp_parse_escape): Clarify diagnostic.
15714
15715 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
15716
15717         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
15718         use add instead of shift.
15719         (ashldi3_sp64): Likewise.
15720         (ashlsi3_const1, ashldi3_const1): Remove.
15721         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
15722         * config/sparc/sparc.c (const1_operand): New.
15723
15724 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
15725
15726         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
15727
15728 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
15729
15730         PR target/6561
15731         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
15732
15733 2002-05-05  Richard Henderson  <rth@redhat.com>
15734
15735         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
15736         memory latency adjustments.
15737         (alpha_variable_issue): Remove.
15738         (alpha_use_dfa_pipeline_interface): New.
15739         (alpha_multipass_dfa_lookahead): New.
15740         * config/alpha/alpha.md: Remove define_function_unit scheduling;
15741         include new dfa scheduling.
15742         (attr type): Add none.
15743         (blockage): Use it.
15744         * config/alpha/ev4.md: New.
15745         * config/alpha/ev5.md: New.
15746         * config/alpha/ev6.md: New.
15747
15748 2002-05-05  David S. Miller  <davem@redhat.com>
15749
15750         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
15751
15752 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
15753
15754         * cse.c: Fix formatting.
15755         * emit-rtl.c: Likewise.
15756
15757 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
15758
15759         * genautomata.c (initiate_states): Add additional guard to
15760         initialize `units_array'.
15761
15762 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
15763
15764         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
15765         process_unit_to_form_the_same_automaton_unit_lists,
15766         form_the_same_automaton_unit_lists
15767         check_unit_distributions_to_automata): New prototypes and
15768         functions.
15769         (check_automata): Rename it into `check_automata_insn_issues'.
15770         (unit_decl): New fields `the_same_automaton_unit' and
15771         `the_same_automaton_message_reported_p'.
15772         (unit_decl_t): New typedef.
15773         (the_same_automaton_lists): New gloval variable.
15774         (unit_regexp, unit_set_el, units_array, units_cmp,
15775         output_get_cpu_unit_code_func): Use the typedef.
15776         (evaluate_max_reserv_cycles): Increment
15777         `description->max_insn_reserv_cycles'.
15778         (initiate_states): Don't increment `max_cycles_num'.
15779         (transform_insn_regexps): Move code around transformation of
15780         regexps from `generate'.
15781         (generate): Remove call of `transform_insn_regexps'.
15782         (expand_automata): Call `transform_insn_regexps' and
15783         `check_unit_distributions_to_automata'.  Check errors before
15784         `generate'.
15785
15786         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
15787         automaton `ultrasparc3_1'.
15788
15789 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
15790
15791         * c-common.c (c_common_init): Set up CPP arithmetic.
15792         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
15793         something reasonable for the host.
15794         (sanity_checks): Add checks.
15795         (cpp_read_main_file): Call sanity_checks() from here...
15796         (cpp_post_options): ... not here.
15797         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
15798         * cpplib.h (struct cpp_options): New member int_precision.
15799
15800 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15801
15802         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
15803
15804 2002-05-04  David S. Miller  <davem@redhat.com>
15805
15806         * config/sparc/linux.h, config/sparc/linux64.h
15807         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
15808
15809         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
15810         more RTX codes.
15811         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
15812
15813         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
15814         of SETs.
15815
15816 2002-05-05  Tim Josling  <tej@melbpc.org.au>
15817
15818         * treelang; New directory for new sample language treelang.
15819
15820 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15821
15822         * Makefile.in (c-lex.o): Update.
15823         * c-lex.c: Include target.h.
15824         (cb_register_builtins): New.
15825         (init_c_lex): Set builtins callback.
15826         * c-lex.h (cpp_define, cpp_assert): New prototypes.
15827         * cppinit.c (init_builtins): Use callback, including for
15828         GXX_WEAK.
15829         * cpplib.h (struct cpp_callbacks): New member.
15830         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
15831         (TARGET_INITIALIZER): Update.
15832         * target.h (struct gcc_target): New hook.
15833         * tree.c (default_register_cpp_builtins): New.
15834         * tree.h (default_register_cpp_builtins): New.
15835 doc:
15836         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
15837
15838 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15839
15840         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
15841         (cpp_post_options): Move sanity checks to...
15842         (sanity_checks): New.
15843         * cpplex.c (maybe_read_ucs): Fix prototype.
15844         (parse_string, cpp_parse_escape): Cast for %c format specifier.
15845         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
15846         if necessary.
15847
15848 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
15849
15850         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
15851         builtins.  Use V2DI patterns instead of TI for logical operations.
15852         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
15853         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
15854         (ix86_expand_builtins): Change the pattern used for movntdq.
15855         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
15856         sse2_nandv2di3): New patterns.
15857         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
15858         on operands.
15859         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
15860         (cvtdq2pd): Correct mode on operand 1.
15861         (sse2_umulsidi3): Describe without unspec.
15862         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
15863         machine modes.
15864         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
15865         (ashlv2di3): Likewise, from sse2_ashlv2di3.
15866         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
15867         ashlv4si3, ashlv2di3): Use SImode for shift count.
15868         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
15869         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
15870         New patterns.
15871         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
15872         New typedefs.
15873         (__m128i, __m128d): New macros.
15874         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
15875         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
15876         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
15877         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
15878         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
15879         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
15880         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
15881         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
15882         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
15883         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
15884         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
15885         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
15886         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
15887         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
15888         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
15889         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
15890         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
15891         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
15892         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
15893         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
15894         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
15895         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
15896         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
15897         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
15898         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
15899         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
15900         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
15901         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
15902         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
15903         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
15904         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
15905         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
15906         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
15907         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
15908         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
15909         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
15910         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
15911         functions.
15912         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
15913         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
15914
15915 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
15916
15917         * dwarf2out.c: Fix formatting.
15918         * varasm.c: Likewise.
15919
15920 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
15921
15922         PR c/6543
15923         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
15924         clobber and use result as temporary value.
15925
15926 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
15927
15928         * expr.c (force_operand): Use expand_simple_* to handle more
15929         cases.
15930
15931 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15932
15933         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
15934         and sign-extension.
15935         (lex_charconst): Update for change in prototype of
15936         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
15937         appropriately.
15938         * cpphash.h (BITS_PER_CPPCHAR_T): New.
15939         * cppinit.c (cpp_create_reader): Initialize them for no
15940         change in semantics.
15941         (cpp_post_options): Add sanity checks.
15942         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
15943         and truncation issues.  Calculate in type cppchar_t.
15944         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
15945         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
15946         run-time dependent precision correctly.  Return whether the
15947         result is signed or not.
15948         * cpplib.c (dequote_string): Use cppchar_t; update.
15949         * cpplib.h (cppchar_signed_t): New.
15950         struct cpp_options): New precision members.
15951         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
15952         * cppexp.c (eval_token): Update.
15953
15954 2002-05-03  David S. Miller  <davem@redhat.com>
15955
15956         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
15957         * config/sparc/sparc.c (sparc_rtx_costs): New function
15958         implementing RTX_COSTS and CONST_COSTS.
15959         * config/sparc/sparc.h (CONST_COSTS): Delete.
15960         (RTX_COSTS_CASES): Define.
15961         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
15962         the work.
15963
15964         * config/sparc/sparc.md (DFA schedulers): Split out...
15965         * config/sparc/cypress.md, config/sparc/hypersparc.md,
15966         config/sparc/sparclet.md, config/sparc/supersparc.md,
15967         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
15968
15969         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
15970         checks on it, always defined for SPARC.
15971
15972         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
15973         Tweak, and add more detailed comments.
15974
15975 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
15976
15977         * Re-apply patch accidentally reverted with
15978         DFA scheduler merge: remove all rules and variables to slurp
15979         source files out of libiberty and rebuild them with HOST_CC.
15980         ($(HOST_PREFIX_1)varray.o): New rule.
15981         (genattrtab rule): Word wrap.
15982
15983 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15984
15985         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
15986         (CPP_SUBTARGET_SPEC): Define.
15987         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
15988         cpp_subtarget specs.
15989         (CPP_SPEC): Redefine to include %(cpp_subtarget).
15990
15991 2002-05-03  David S. Miller  <davem@redhat.com>
15992
15993         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
15994         * target.h (struct gcc_target): Delete cycle_display member.
15995
15996         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
15997         (rtx_needs_barrier): Delete reference to cycle_display unspec.
15998         (ia64_sched_reorder2): Mention need for cycle display handling
15999         once such notes exist.
16000
16001 2002-05-03  Richard Henderson  <rth@redhat.com>
16002
16003         * real.c (etoasc): Strip most trailing zeros for clarity.
16004         * sched-vis.c: Include real.h.
16005         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
16006         * Makefile.in (sched-vis.o): Add real.h.
16007
16008 2002-05-03  David S. Miller  <davem@redhat.com>
16009
16010         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
16011         no longer needed.
16012
16013 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
16014
16015         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
16016         when we get an out of range literal.
16017         (altivec_expand_ternop_builtin): Same.
16018         (altivec_expand_unop_builtin): Same.
16019         (altivec_expand_builtin): Same, for dss.
16020         (altivec_expand_builtin): Use trees instead of rtl when
16021         determining literal argument validity.
16022
16023 2002-05-03  David S. Miller  <davem@redhat.com>
16024
16025         Delete cycle display scheduling hook.
16026         * config/ia64/ia64.c (ia64_cycle_display,
16027         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
16028         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
16029         and use emit_insn_before instead of ia64_emit_insn_before.
16030         * config/ia64/ia64.md (unspec usage): Delete cycle display.
16031         (cycle_display): Delete insn pattern.
16032         * config/sparc/sparc.md (unspec usage): Delete cycle display.
16033         (cycle_display): Delete insn pattern.
16034         * config/sparc/sparc.c (sparc_cycle_display,
16035         TARGET_SCHED_CYCLE_DISPLAY): Delete.
16036         * doc/md.texi (cycle_display): Don't mention.
16037         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
16038
16039 2002-05-03  Richard Henderson  <rth@redhat.com>
16040
16041         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
16042         * recog.h: Declare them.
16043
16044         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
16045         * config/sparc/sparc.md: Use store_data_bypass_p instead.
16046         * config/sparc/sparc-protos.h: Update.
16047
16048 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
16049
16050         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
16051         -D__arch64__.  Add -D_LP64.
16052         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
16053         from sparc.h.
16054         (CPP_ARCH64_SPEC): Likewise.
16055         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
16056         (NO_BUILTIN_SIZE_TYPE): Undef.
16057
16058 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
16059
16060         * genautomata.c (min_issue_delay_pass_states): Change return type
16061         in the prototype.
16062         (min_issue_delay_pass_states): Change the algorithm.
16063         (min_issue_delay): Set up min_insn_issue_delay for the state.
16064         (output_min_issue_delay_table): Interchange the nested loops and
16065         and initiate min_insn_issue_delay for states.
16066
16067 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
16068
16069         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
16070         jump is simplejump.
16071
16072 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
16073
16074         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
16075         sequence.
16076
16077 2002-05-03  Richard Henderson  <rth@redhat.com>
16078
16079         PR opt/6534
16080         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
16081         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
16082         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
16083         code before JUMP, not EARLIEST.
16084
16085 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16086
16087         * c-format.c (check_format_info_main): Don't check for presence of
16088         parameter for * width until after operand number has been read,
16089         and only check for it if format parameters are available.
16090         Fixes PR c/6547.
16091
16092 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
16093
16094         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
16095         (LINK_SPEC): Undef before defining.
16096
16097 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16098
16099         PR preprocessor/6489
16100         * tradcpp.c (fixup_newlines): New.
16101         (main, finclude): Use it.
16102
16103 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
16104
16105         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
16106         * config/mips/mips.c (mips_unique_section): Strip encoding from
16107         decl name.
16108
16109 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16110
16111         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
16112         mode.
16113
16114 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16115
16116         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
16117         (Specific): Removed buildstats references.
16118         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
16119         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
16120         Accomodate Solaris versions beyond 8.
16121         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
16122         (Specific, *-*-solaris2.8): Removed, obsolete.
16123
16124 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
16125
16126         PR target/6542
16127         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
16128         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
16129         fill leaf_reg_remap with identity.
16130         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
16131
16132 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
16133
16134         * config/h8300/crti.asm: Remove trailing spaces.
16135         * config/h8300/h8300.c: Likewise.
16136         * config/h8300/lib1funcs.asm: Likewise.
16137
16138 2002-05-02  Jason Merrill  <jason@redhat.com>
16139
16140         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
16141         * c-decl.c (c_init_decl_processing): Use it.
16142         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
16143         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
16144         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
16145
16146 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
16147
16148         * regrename.c: Fix formatting.
16149         * tree.c: Likewise.
16150
16151 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
16152
16153         * i386.md (attribute memory): Handle compares properly.
16154
16155 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
16156
16157         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
16158         to none.
16159
16160 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
16161
16162         * function.c: Fix formatting.
16163
16164 2002-05-02  Jan Hubicka  <jh@suse.cz>
16165
16166         * haifa-sched.c (schedule_insn): Print table of instructions and
16167         reservations.
16168         (sched_block): Do not print ready list at verbosity level 1.
16169         * sched-vis.c (print_insn): Make global.
16170         * sched-ebb.c (ebb_print_insn): Rename from...
16171         (print_insn): ... this one.
16172         * sched-int.h (print_insn): Declare
16173
16174 2002-05-02  Richard Henderson  <rth@redhat.com>
16175
16176         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
16177         emitted by cycle_display.
16178
16179 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
16180
16181         * doc/install.texi (*-*-freebsd*): Update to latest status.
16182
16183 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
16184
16185         PR target/6540
16186         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
16187         * config/float-sparc.h: Assume 128-bit long double if
16188         __LONG_DOUBLE_128__ is defined.
16189
16190 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
16191
16192         * genattrtab.c (write_function_unit_info): Add a dummy element
16193         when num_units == 0.
16194
16195 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16196
16197         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
16198         TYPE_MODE (double_type_node) instead of DFmode.
16199
16200 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
16201
16202         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
16203         jumps post reload.
16204         * toplev.c (rest_of_compilation): Revert Richard's patch.
16205
16206 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16207
16208         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
16209
16210 2002-05-02  Catherine Moore  <clm@redhat.com>
16211
16212         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
16213
16214 2002-05-02  Kazu Hirata  <kazu@hxi.com>
16215
16216         * combine.c: Fix comment typos.
16217         * expr.c: Likewise.
16218         * genautomata.c: Likewise.
16219         * stmt.c: Likewise.
16220         * tree.h: Likewise.
16221
16222 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16223
16224         * doc/install.texi: State GNAT version requirements.
16225
16226 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
16227
16228         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
16229         of the frame pointer or arg pointer register which strict register
16230         checking is not enabled.
16231
16232 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
16233
16234         * gcc.dg/altivec-8.c: New.
16235
16236         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
16237         PRE_INC and PRE_DEC for altivec modes.
16238
16239 2002-05-01  Bruce Korb  <bkorb@gnu.org>
16240
16241         * fixinc/check.tpl(set-writable): make sure the function exists first
16242         * fixinc/inclhack.def(alpha_assert): fix test_text
16243         * fixinc/tests/base/assert.h: add in missing result
16244
16245 2002-05-01  Jeff Law  <law@redhat.com>
16246
16247         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
16248         'T' constraint.
16249
16250 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
16251
16252         * dbxout.c (dbxout_type): Emit size information for range types,
16253         as well, but only when using GDB extensions.
16254
16255 2002-05-01  Richard Henderson  <rth@redhat.com>
16256
16257         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
16258         target-independent gnu binutils date test.
16259
16260 2002-05-01  Richard Henderson  <rth@redhat.com>
16261
16262         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
16263         info before expunging the block.
16264
16265 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
16266
16267         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
16268         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
16269         -M -or -MM is in effect.
16270
16271 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
16272
16273         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
16274         A29k configurations.
16275         * doc/install.texi: Update to match.
16276
16277 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16278
16279         PR bootstrap/6514
16280         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
16281         for duplicates. Always loop over whole list.
16282
16283 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16284
16285         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
16286
16287 2002-05-01      Joel Sherrill <joel@OARcorp.com>
16288
16289         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
16290         support routines.
16291
16292 2002-05-01      Joel Sherrill <joel@OARcorp.com>
16293
16294         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
16295
16296 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
16297
16298         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
16299         (nabs_nopower): Same.
16300         (floatdisf2): New pattern.
16301         (absdi2): Convert to define_insn_and_split.
16302         (nabsdi2): Same.
16303         (trunctfsf2): Same.
16304         (floatditf2): Same.
16305         (floatsitf2): Same.
16306         (fix_trunctfdi2): Same.
16307         (fix_trunctfsi2): Same.
16308
16309 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16310
16311         * doc/install.texi: Update Texinfo version requirement
16312         documentation.
16313
16314 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
16315
16316         PR target/6512, PR target/5628
16317         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
16318         when memory is not aligned.
16319         (movdf_insn_v9only_vis): Likewise.
16320         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
16321         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
16322         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
16323
16324 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
16325
16326         * gcc.dg/altivec-7.c: New.
16327
16328         * config/rs6000/altivec.h: Cleanup.
16329
16330 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
16331
16332         * doc/invoke.texi (Option Summary): Add -mvrsave=.
16333         (RS/6000 and PowerPC Options): Document -mvrsave=.
16334
16335         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
16336         (rs6000_altivec_vrsave_string): Same.
16337         (rs6000_override_options): Call rs6000_parse_vrsave_option.
16338         (rs6000_parse_vrsave_option): New.
16339         (rs6000_stack_info): Only generate vrsave instructions when
16340         TARGET_ALTIVEC_VRSAVE.
16341
16342         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
16343         (rs6000_altivec_vrsave_string): Define extern.
16344         (rs6000_altivec_vrsave): Same.
16345         (TARGET_ALTIVEC_VRSAVE): New.
16346
16347 2002-04-30  Richard Henderson  <rth@redhat.com>
16348
16349         PR opt/6516
16350         * toplev.c (rest_of_compilation): Don't run cross-jump before
16351         bb-reorder.
16352
16353 2002-04-30  Tom Rix  <trix@redhat.com>
16354
16355         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
16356         check which_alternative.
16357
16358 2002-04-30  Kazu Hirata  <kazu@hxi.com>
16359
16360         * cpplex.c: Fix comment formatting.
16361         * function.c: Likewise.
16362         * integrate.c: Likewise.
16363         * regrename.c: Likewise.
16364         * sibcall.c: Likewise.
16365         * simplify-rtx.c: Likewise.
16366         * tree-inline.c: Likewise.
16367
16368 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16369
16370         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
16371         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
16372         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
16373         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
16374         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
16375         * pa/x-ada: New file.  Define ADA_CFLAGS.
16376
16377 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
16378
16379         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
16380         from MMIX_LAST_REGISTER_FILE_REGNUM.
16381         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
16382         (struct machine_function): New member highest_saved_stack_register
16383         previously static variable in mmix.c.
16384         (MACHINE_DEPENDENT_REORG): Define.
16385         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
16386         (MMIX_OUTPUT_REGNO): New.
16387         (mmix_target_asm_function_prologue): Move calculation of last used
16388         saved-stack-register into...
16389         (mmix_machine_dependent_reorg): New function.  Update to also handle
16390         !TARGET_ABI_GNU.
16391         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
16392         register names, simplify somewhat by new variable regno.
16393         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
16394         register.
16395         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
16396         emitting register names.
16397         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
16398         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
16399         Remove fixed FIXME.
16400         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
16401         Declare.
16402
16403         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
16404
16405 2002-04-30  Richard Henderson  <rth@redhat.com>
16406
16407         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
16408         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
16409         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
16410         emit_tfmode_cvt): New.
16411         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
16412         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
16413         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
16414         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
16415         * config/sparc/sparc-protos.h: Update.
16416
16417 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
16418
16419         * install.texi (Final install): Add to the list of info to include
16420         in a report of a successful bootstrap, and add link to 3.1 list.
16421
16422 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
16423
16424         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
16425         (mode): Add vector modes
16426         (i387): Kill attribute.
16427         (unit): New attribute.
16428         (length_immediate): Grok new types.
16429         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
16430         (modrm): Use "unit".
16431         (memory): Handle MMX/SSE properly.
16432         (scheduling descriptions): Kill uses of fop1.
16433         (sse, mmx, fp patterns): Set type and mode properly.
16434
16435 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
16436
16437         * pa.c (override_options): Default to PA8000 scheduling.
16438         * doc/invoke.texi (HP-PA options): Mention newly added 7300
16439         scheduling parameter.
16440
16441         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
16442         handling of double precision multiplies.
16443
16444         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
16445         fpdiv and fpsqrt instructions.
16446         (7200 & 7300 scheduling): Fix typo in handling of
16447         store-load and store-store penalties.
16448
16449 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16450
16451         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
16452         mips.  Add two missing commas.
16453
16454 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
16455
16456         * doc/contrib.texi (Contributors): Update Paolo Carlini's
16457         and Benjamin Kosnik's entries.
16458
16459 2002-04-29  David S. Miller  <davem@redhat.com>
16460
16461         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
16462         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
16463         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
16464         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16465
16466 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16467
16468         * combine.c (find_split_point): Use gen_int_mode.
16469
16470 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
16471
16472         Merging code from dfa-branch:
16473
16474         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
16475
16476         * genautomata.c (output_reserv_sets): Fix typo.
16477
16478         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
16479
16480         * genautomata.c (output_reserv_sets): Remove
16481         next_cycle_output_flag.
16482
16483         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
16484
16485         * sched-rgn.c (init_ready_list): Make the DFA code handle
16486         USE/CLOBBER insns in the same way as the traditional
16487         scheduler.
16488         (new_ready): Similarly..
16489
16490         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
16491
16492         * haifa-sched.c (schedule_block): Change the DFA state only after
16493         issuing insn.
16494
16495         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
16496
16497         * pa.c (hppa_use_dfa_pipeline_interface): New function.
16498         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
16499         (override_options): Add PA7300 scheduling support.
16500         (pa_adjust_cost): Update various comments.  Properly
16501         handle anti and output dependencies when using the
16502         DFA scheduler.
16503         (pa_issue_rate): Add PA7300 scheduling support.
16504         (pa_can_combine_p): Call extract_insn before calling
16505         constrain_operands (taken from mainline tree).
16506         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
16507         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
16508         descriptions using DFA descriptions.  Add PA7300
16509         scheduling support.
16510
16511         2002-03-30  David S. Miller  <davem@redhat.com>
16512
16513         Add UltraSPARC-III DFA scheduling support.
16514         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
16515         Update FP conditional move on register insn patterns to use it, as
16516         appropriate.
16517         (define_attr cpu): Add ultrasparc3.
16518         (define_attr us3load_type): New, update integer load patterns to
16519         set it, as appropriate.
16520         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
16521         (rest): Add UltraSPARC3 scheduling description.
16522         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
16523         (PROCESSOR_ULTRASPARC3): New.
16524         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
16525         ({ASM,CPP}_CPU_SPEC): Likewise.
16526         (REGISTER_MOVE_COST): Likewise.
16527         (RTX_COSTS): Likewise.
16528         * config/sparc/sparc.c (sparc_override_options,
16529         sparc_initialize_trampoline, sparc64_initialize_trampoline,
16530         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16531         sparc_issue_rate): Likewise.
16532         * config/sparc/sol2.h: Likewise.
16533         * config/sparc/sol2-sld-64.h: Likewise.
16534         * config/sparc/linux64.h: Likewise.
16535
16536         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
16537
16538         * doc/md.texi: Add comments about usage the latency time for the
16539         different dependencies and about case when two or more conditions
16540         in different define_insn_reservations returns TRUE for an insn.
16541
16542         * doc/md.texi: Add reference for automaton based pipeline
16543         description.
16544
16545         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
16546
16547         * doc/passes.texi: Add missed information about genattrtab.
16548
16549         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
16550
16551         * genautomata.c (output_automata_list_transition_code): Check
16552         automata_list on NULL.
16553
16554         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
16555
16556         * genautomata.c (output_insn_code_cases,
16557         output_automata_list_min_issue_delay_code,
16558         output_automata_list_transition_code,
16559         output_automata_list_state_alts_code): Comment the functions.
16560
16561         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
16562
16563         * genautomata.c (automata_list_el_t): New typedef.
16564         (get_free_automata_list_el,free_automata_list_el,
16565         free_automata_list, automata_list_hash, automata_list_eq_p,
16566         initiate_automata_lists, automata_list_start, automata_list_add,
16567         automata_list_finish, finish_automata_lists,
16568         output_insn_code_cases, output_automata_list_min_issue_delay_code,
16569         output_automata_list_transition_code,
16570         output_automata_list_state_alts_code, add_automaton_state,
16571         form_important_insn_automata_lists): New functions and prototypes.
16572         (insn_reserv_decl): Add members important_automata_list and
16573         processed_p.
16574         (ainsn): Add members important_p.
16575         (automata_list_el): New structure.
16576         (first_free_automata_list_el, current_automata_list,
16577         automata_list_table): New global variables.
16578         (create_ainsns): Initiate member important_p.
16579         (output_internal_min_issue_delay_func): Generate the switch and
16580         call output_insn_code_cases.
16581         (output_internal_trans_func, output_internal_state_alts_func):
16582         Ditto.
16583         (generate): Call initiate_automata_lists.
16584         (automaton_states): New global variable.
16585         (expand_automata): Call form_important_insn_automata_lists.
16586         (write_automata): Call finish_automata_lists.
16587
16588         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
16589
16590         * genautomata.c (add_excls, add_presence_absence): Check that
16591         cpu units in the sets belong the same automaton.
16592
16593         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
16594         about that cpu units in the sets belong the same automaton.
16595
16596         * doc/md.texi: Ditto.
16597
16598         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
16599                     Nitin Gupta  <niting@noida.hcltech.com>
16600
16601         * config/sh/sh.c (sh_use_dfa_interface): New function.
16602
16603         (sh_issue_rate): New Function.
16604         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
16605         TARGET_SCHED_ISSUE_RATE: define.
16606
16607         * config/sh/sh.md: Add DFA based pipeline description for SH4.
16608
16609         (define_attr insn_class): New attribute used for DFA
16610          scheduling.
16611         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
16612         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
16613          cmpeqdi_t): Likewise.
16614
16615         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
16616          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
16617          ex_group.
16618         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
16619
16620         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
16621
16622         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
16623         break.
16624
16625         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
16626
16627         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
16628         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
16629         necessary.
16630         (output_dfa_start_func): Initiate new variable insn_codes_length,
16631         (write_automata): Output definition of the new variable.
16632
16633         2001-10-02  David S. Miller  <davem@redhat.com>
16634
16635         * haifa-sched.c (advance_one_cycle): New function.
16636         (schedule_block): Use it.
16637         (queue_to_ready): Use it, and also make sure to advance the DFA
16638         state on all stall cycles, not just those where insn_queue links
16639         are found.
16640
16641         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
16642
16643         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
16644         non-zero if the highest-priority instruction could be scheduled.
16645         (choose_ready): Remove last argument from max_issue call.
16646
16647         2001-09-28  David S. Miller  <davem@redhat.com>
16648
16649         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
16650         ultrasparc and 3 for other multi-issue sparcs.
16651
16652         2001-09-27  David S. Miller  <davem@redhat.com>
16653
16654         * config/sparc/sparc.md (cycle_display): New pattern.
16655         * config/sparc/sparc.c (sparc_cycle_display): New.
16656         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
16657
16658         2001-09-25  David S. Miller  <davem@redhat.com>
16659
16660         Convert all of SPARC scheduling to DFA
16661         * config/sparc/sparc.md: Kill all define_function_unit
16662         directives and replace with DFA equivalent.
16663         * config/sparc/sparc.c (ultrasparc_adjust_cost,
16664         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
16665         ultra_fpmode_conflict_exists, ultra_find_type,
16666         ultra_build_types_avail, ultra_flush_pipeline,
16667         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
16668         ultrasparc_variable_issue, ultrasparc_sched_init,
16669         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
16670         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
16671         ultra_cur_hist, ultra_cycles_elapsed): Kill.
16672         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16673         ultrasparc_store_bypass_p): New.
16674         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
16675         Declare.
16676
16677         2001-09-24  David S. Miller  <davem@redhat.com>
16678
16679         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
16680         ready->vec[foo] not ready[foo].
16681
16682         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
16683
16684         * doc/md.texi: Correct examples for define_insn_reservations
16685         `mult' and `div'.
16686
16687         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
16688
16689         * genautomata.c (create_automata): Print message about creation of
16690         each automaton.
16691         (generate): Remove printing meease about creation of
16692         automata.
16693
16694         2001-09-05  David S. Miller  <davem@redhat.com>
16695
16696         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
16697         * config/sparc/linux64.h: Likewise.
16698
16699         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
16700
16701         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
16702         schedule_block, sched_init, sched_finish): Add missed calls of
16703         use_dfa_pipeline_interface.
16704
16705         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
16706         Ditto.
16707
16708         * sched-vis.c (get_visual_tbl_length): Ditto.
16709
16710         2001-08-27  Richard Henderson  <rth@redhat.com>
16711
16712         * genattr.c (main): Emit state_t even when not doing scheduling.
16713
16714         2001-08-27  Richard Henderson  <rth@redhat.com>
16715
16716         * genautomata.c (expand_automata): Always create a description.
16717
16718         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
16719
16720         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
16721         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
16722         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
16723         RTL constructions.
16724
16725         * genattr.c (main): New variable num_insn_reservations.  Increase
16726         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
16727         pipeline hazard recognizer interface.
16728
16729         * genattrtab.h: New file.
16730
16731         * genattrtab.c: Include genattrtab.h.
16732         (attr_printf, check_attr_test, make_internal_attr,
16733         make_numeric_value): Move protypes into genattrtab.h.  Define them
16734         as external.
16735         (num_dfa_decls): New global variable.
16736         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
16737         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
16738         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
16739         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
16740
16741         * genautomata.c: New file.
16742
16743         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
16744
16745         * sched-int.h: (curr_state): Add the external definition for
16746         automaton pipeline interface.
16747         (haifa_insn_data): Add comments for members blockage and units.
16748
16749         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16750         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16751         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16752         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16753         TARGET_SCHED_DFA_POST_CYCLE_INSN,
16754         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16755         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
16756         macros.
16757         (TARGET_SCHED): Use the new macros.
16758
16759         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
16760         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
16761         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
16762         dfa_bubble): New members in gcc_target.sched.
16763
16764         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
16765         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
16766         (insn_queue): Redefine it as pointer to array.
16767         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
16768         INSN_QUEUE_SIZE.
16769         (max_insn_queue_index_macro_value): New variable.
16770         (curr_state, dfa_state_size, ready_try): New varaibles for
16771         automaton interface.
16772         (ready_element, ready_remove, max_issue): New function prototypes
16773         for automaton interface.
16774         (choose_ready): New function prototype.
16775         (insn_unit, blockage_range): Add comments.
16776         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
16777         FUNCTION_UNITS_SIZE == 0.
16778         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
16779         actual_hazard, potential_hazard): Add comments.
16780         (insn_cost): Use cost -1 as undefined value.  Remove
16781         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
16782         pipeline interface.
16783         (ready_element, ready_remove): New functions for automaton
16784         interface.
16785         (schedule_insn): Add new code for automaton pipeline interface.
16786         (queue_to_ready): Add new code for automaton pipeline interface.
16787         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
16788         (debug_ready_list): Print newline when the queue is empty.
16789         (max_issue): New function for automaton pipeline interface.
16790         (choose_ready): New function.
16791         (schedule_block): Add new code for automaton pipeline interface.
16792         Print ready list before scheduling each insn.
16793         (sched_init): Add new code for automaton pipeline interface.
16794         Initiate insn cost by -1.
16795         (sched_finish): Free the current automaton state and finalize
16796         automaton pipeline interface.
16797
16798         * sched-rgn.c: Include target.h.
16799         (init_ready_list, new_ready, debug_dependencies): Add new code for
16800         automaton pipeline interface.
16801
16802         * sched-vis.c: Include target.h.
16803         (get_visual_tbl_length): Add code for automaton interface.
16804         (target_units, print_block_visualization):  Add comments.
16805
16806         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
16807         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
16808         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
16809         (getruntime.o, genautomata.o): New entries.
16810         (genattrtab.o): Add new dependency file genattrtab.h.
16811         (genattrtab): Add new dependencies.  Link it with `libm.a'.
16812         (getruntime.o, hashtab.o): New entries for canadian cross.
16813
16814         * doc/md.texi: Description of automaton based model.
16815
16816         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
16817         Add comments.
16818         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16819         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16820         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16821         TARGET_SCHED_DFA_POST_CYCLE_INSN,
16822         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16823         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16824         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
16825         hook descriptions.
16826         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
16827         MAX_DFA_ISSUE_RATE): New macro descriptions.
16828
16829         * doc/contrib.texi: Add dfa based scheduler contribution.
16830
16831         * doc/gcc.texi: Add more information about genattrtab.
16832
16833 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16834
16835         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
16836         adjust_address_nv call.
16837
16838 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
16839
16840         * doc/install.texi (Testing): Provide additional information, and
16841         a stronger encouragement, for running the testsuites.
16842
16843 2002-04-29  DJ Delorie  <dj@redhat.com>
16844
16845         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16846         given in upper case.
16847
16848 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16849
16850         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
16851         Solaris 2 <widec.h> if missing.
16852         * fixinc/fixincl.x: Regenerate.
16853         * fixinc/tests/base/widec.h: New file.
16854
16855 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
16856
16857         * toplev.c (f_options): Add "profile" switch so that
16858         -fno-profile can be used to disable -p.
16859
16860 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
16861
16862         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
16863         UV2DImode.
16864         * tree.c (build_common_tree_nodes_2): Likewise.
16865         * tree.h (enum tree_index): Likewise.
16866         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
16867
16868         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
16869         entries.
16870         (init_mmx_sse_builtins): Initialize SSE2 builtins.
16871         (ix86_expand_builtin): Add support for SSE2 builtins.
16872         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
16873         (VALID_SSE_REG_MODE): Use it.
16874         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
16875         (enum ix86_builtins): Add SSE2 builtins.
16876         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
16877         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
16878         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
16879         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
16880         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
16881         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
16882         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
16883         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
16884         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
16885         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
16886         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
16887         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
16888         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
16889         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
16890         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
16891         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
16892         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
16893         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
16894         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
16895         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
16896         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
16897         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
16898         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
16899         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
16900         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
16901         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
16902         lfence_insn): New patterns.
16903         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
16904         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
16905
16906 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
16907
16908         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
16909
16910 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16911
16912         * doc/contrib.texi (Contributors): Add Paolo Carlini and
16913         Janis Johnson.
16914         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
16915         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
16916         and CPU instead of cpu.
16917
16918 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
16919
16920         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
16921         variables.
16922         (lang_independent_options): Add -fif-conversion, -fif-conversion2
16923         (rest_of_compilation): Do if conversion only when asked for.
16924         (parse_options_and_default_flags): Set new variables to 1 for -O1
16925         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
16926
16927 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
16928
16929         * i386.c (dbx64_register_map): Fix typo.
16930
16931 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
16932
16933         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
16934         real_one_half, real_bb_freq_max): New static variables.
16935         (debug_profile_bbauxs): Kill.
16936         (process_note_predictions): Kill unused variable.
16937         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
16938         volatile double.
16939         (propagate_freq): Use REAL_ARITHMETICS.
16940         (estimate_bb_frequencies): Likevise; init new static variables.
16941         * Makefile.in (predict.o): Add dependency on real.h
16942
16943 2002-04-28  David S. Miller  <davem@redhat.com>
16944
16945         PR target/6500
16946         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
16947         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
16948         several {reads,writes} instead.
16949         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
16950         Define.
16951
16952 2002-04-27  David S. Miller  <davem@redhat.com>
16953
16954         PR target/6494
16955         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
16956         of the stack bias.
16957
16958         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
16959         including signal.h and sys/ucontext.h, not needed.
16960
16961 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
16962
16963         * varasm.c (output_constant_def): Correct test for not calling
16964         ENCODE_SECTION_INFO for INTEGER_CST.
16965
16966 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16967
16968         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
16969         keep most cases as function eval_token.
16970         (eval_token): New function.
16971         (_cpp_parse_expr): Read token here for improved diagnostics.
16972         Don't use op_as_text.  Detect bad ':' here.
16973         (reduce): Don't detect bad ':' here.
16974         (op_as_text): Remove.
16975         * cpphash.h (_cpp_test_assertion): Change prototype.
16976         * cpplib.c (_cpp_test_assertion): Change prototype.
16977
16978 2002-04-28  Richard Henderson  <rth@redhat.com>
16979
16980         PR c/5154
16981         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
16982         (ggc_mark_rtx_children): New.
16983
16984 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16985
16986         PR target/6496
16987         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
16988         after call peepholes for UltraSPARC.
16989         (call + jump 64-bit peepholes): Remove.
16990
16991 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16992
16993         PR c/6497
16994         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
16995         result as temporary value.
16996
16997 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16998
16999         PR c++/6396
17000         * toplev.c (rest_of_compilation): Only run regrename and copy
17001         propagation if optimizing.
17002
17003 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
17004
17005         PR optimization/6475
17006         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
17007         register of REGNO_DECL (i).
17008         * Makefile.in (reload1.o): Add $(TREE_H).
17009
17010 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
17011
17012         * cppexp.c (lex): Update to use state.skip_eval.
17013         (struct op): Remove prio and flags members.
17014         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
17015         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
17016         (LEFT_ASSOC): New macro.
17017         (optab): New table of operator priorities and flags.
17018         (SHIFT): Update.
17019         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
17020         malloc-ed parser stack.
17021         (reduce): New; reduce the operator stack.
17022         (_cpp_expand_op_stack): Expand the operator stack as necessary.
17023         * cpphash.h (struct op): Predeclare.
17024         (struct cpp_reader): New members op_stack, op_limit.
17025         (struct lexer_state): New member skip_eval.
17026         (_cpp_parse_expr): Update.
17027         (_cpp_expand_op_stack): New.
17028         * cpplib.c (do_if): Update.
17029         * cppinit.c (cpp_create_reader): Create op stack.
17030         (cpp_destroy): And destroy it.
17031         * cpplib.h (CPP_LAST_CPP_OP): Correct.
17032         (TTYPE_TABLE): Correct.
17033
17034 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17035
17036         PR c/6343
17037         * c-decl.c (duplicate_decls): Call merge_weak.
17038         * c-pragma.c (apply_pragma_weak): Warn about misuse.
17039         * output.h (merge_weak): Prototype merge_weak.
17040         * varasm.c (merge_weak): New function.
17041         (declare_weak): Make sure we don't give an error on VAR_DECLs.
17042         Mark RTL with SYMBOL_REF_WEAK.
17043
17044 2002-04-27  Kurt Garloff <garloff@suse.de>
17045
17046         * tree-inline.c (inlinable_function_p): Improve heuristics
17047         by using a smoother function to cut down allowable inlinable size.
17048         * param.def: Add parameters max-inline-insns-single,
17049         max-inline-slope, min-inline-insns that determine the exact
17050         shape of the above function.
17051         * param.h: Likewise.
17052
17053 2002-04-26  Richard Henderson  <rth@redhat.com>
17054
17055         * c-parse.in (malloced_yyss, malloced_yyvs): New.
17056         (yyoverflow): Re-add.  Set them.
17057         (free_parser_stacks): New.
17058         * c-common.h: Declare it.
17059         * c-lex.c (c_common_parse_file): Call it.
17060
17061 2002-04-26  Richard Henderson  <rth@redhat.com>
17062
17063         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
17064         for fallthru search.
17065
17066 2002-04-26  Eric Christopher  <echristo@redhat.com>
17067
17068         PR optimization/3700
17069         * config/mips/mips.c (mips_issue_rate): Define.  New function.
17070         (TARGET_SCHED_ISSUE_RATE): Use.
17071
17072 2002-04-25  David S. Miller  <davem@redhat.com>
17073
17074         PR target/6422
17075         * reorg.c (optimize_skip): Do not allow exception causing
17076         instructions to be considered for delay slots.
17077         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
17078         (relax_delay_slots): Do not try to consider exception causing
17079         instructions as redundant.
17080
17081 2002-04-26  Richard Henderson  <rth@redhat.com>
17082
17083         PR c/5225
17084         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
17085
17086 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
17087
17088         PR bootstrap/6445
17089         * config/i386/i386.md (untyped_call): Return the value in a float
17090         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
17091         TARGET_80387.
17092
17093 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
17094
17095         * tree.c (tree_int_cst_lt): Compare constants whose types differ
17096         in unsigned-ness correctly.
17097
17098 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17099
17100         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
17101         portable runtime model.
17102
17103 2002-04-26  Richard Henderson  <rth@redhat.com>
17104
17105         * c-parse.in (yyoverflow): Revert.
17106
17107 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
17108             Richard Henderson  <rth@redhat.com>
17109
17110         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
17111         result as temporary value.
17112
17113 2002-04-26  Richard Henderson  <rth@redhat.com>
17114
17115         PR c/3581
17116         * c-common.c (fix_string_type): Split out of ...
17117         (combine_strings): ... here.  Take a varray, not a tree list.
17118         (c_expand_builtin_printf): Use fix_string_type.
17119         * c-common.h: Update decls.
17120         * c-parse.in (string): Remove.  Update all uses to use STRING
17121         instead, and not call combine_strings.
17122         (yylexstring): New.
17123         (_yylex): Use it.
17124         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
17125         (build_asm_stmt): Likewise.
17126         * objc/objc-act.c (my_build_string): Use fix_string_type.
17127         (build_objc_string_object): Build varray for combine_strings.
17128
17129 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
17130
17131         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
17132         x86-64.
17133
17134 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
17135
17136         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
17137         (HAVE_NO_R_OPERAND): Remove.
17138         (HAVE_VALUE): Remove.
17139         (op_to_prio): Update.
17140         (UNARY): Don't alter flags.
17141         (_cpp_parse_expr): want_value used to indicate whether
17142         a number or unary operator is expected next.  Distinguish
17143         unary and binary +/-.
17144         (op_as_text): Update for unary operators.
17145
17146 2002-04-25  Richard Henderson  <rth@redhat.com>
17147
17148         PR c/2161
17149         * c-parse.in (yyoverflow): New.
17150
17151 2002-04-25  Richard Henderson  <rth@redhat.com>
17152
17153         PR c/2098
17154         * c-common.c (shorten_compare): Simplfy conditions leading to
17155         the generation of a warning.
17156
17157 2002-04-25  Richard Henderson  <rth@redhat.com>
17158
17159         PR c/2035
17160         * expmed.c (extract_bit_field): Fall through to generic code rather
17161         than aborting on subreg special case.
17162
17163 2002-04-25  David S. Miller  <davem@redhat.com>
17164
17165         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
17166         for DECL being NULL.
17167
17168 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
17169
17170         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
17171
17172 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
17173
17174         * c-decl.c (grokdeclarator): Remove outdated ??? note
17175         on invalid declaration of flexible array members.
17176
17177 2002-04-25  Richard Henderson  <rth@redhat.com>
17178
17179         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
17180
17181 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
17182
17183         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
17184         needed by the compiler, even if they are used as global regs.
17185
17186 2002-04-25  Matt Hiller  <hiller@redhat.com>
17187
17188         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
17189         functions.
17190         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
17191         of the corresponding functions.
17192         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
17193         New prototypes.
17194
17195 2002-04-25  Matt Hiller  <hiller@redhat.com>
17196
17197         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
17198
17199         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
17200         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
17201         registers, adjust comment accordingly.
17202         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17203         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
17204         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
17205         for coprocessor registers.
17206         (ADDITIONAL_REGISTER_NAMES): Include
17207         ALL_COP_ADDITIONAL_REGISTER_NAMES.
17208
17209         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
17210         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
17211         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
17212         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
17213         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
17214
17215         (mips_char_to_class): Adjust comment to include coprocessor
17216         constraint letters.
17217
17218         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
17219         New functions.
17220         (mips_reg_names, mips_regno_to_class): Include coprocessor
17221         information.
17222         (mips_sw_reg_names): Ditto, make non-static.
17223         (mips_move_1word): Handle moves to and from coprocessor registers.
17224         (mips_move_2words): Handle moves to and from coprocessor
17225         registers.
17226         (mips_class_max_nregs, mips_register_move_cost): Handle
17227         coprocessor register classes.
17228         (override_options): Initialize mips_char_to_class and
17229         mips_hard_regno_mode_ok properly for coprocessor registers.
17230
17231         * config/mips/mips.md (movdi_internal, movdi_internal2,
17232         movsi_internal1, movsi_internal2): Add constraint-sets for
17233         coprocessor registers.
17234         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
17235         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
17236         isn't mips.
17237         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
17238         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
17239         isn't mips.
17240         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
17241         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
17242         isn't mips.
17243         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
17244         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
17245         isn't mips.
17246
17247         * doc/tm.texi: Document feature.
17248
17249 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
17250
17251         * integrate.c (function_attribute_inlinable_p): Simplify.
17252         Check the table pointer is not NULL.
17253
17254 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
17255
17256         * doc/c-tree.texi: Fix typo in introduction.
17257
17258 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
17259
17260         * c-common.h (c_common_parse_file): Update.
17261         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17262         * c-lex.c (YYDEBUG): Get from c-lex.h.
17263         (c_common_parse_file): Update.
17264         * c-lex.h (YYDEBUG, yydebug): New.
17265         * c-parse.in (YYDEBUG): Get from c-lex.h.
17266         (c_set_yydebug): Remove.
17267         * c-tree.h (c_set_yydebug): Remove.
17268         * langhooks-def.h (lhd_do_nothing_i): New.
17269         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
17270         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
17271         * langhooks.c  (lhd_do_nothing_i): New.
17272         (lhd_set_yydebug): Remove.
17273         * langhooks.h (struct lang_hooks): Update.
17274         * toplev.c (set_yydebug): New.
17275         (compile_file): Update call to parse_file hook.
17276         (decode_d_option): Update.
17277 objc:
17278         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17279
17280 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
17281
17282         * loop.c (load_mems): Don't change the interface of called functions.
17283
17284         * calls.c (expand_call): Take current_function_pretend_args_size
17285         into account when setting argblock for sibcalls.
17286
17287 2002-04-24  Matt Hiller  <hiller@redhat.com>
17288
17289         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
17290         * c-lex.c: Ditto.
17291
17292         * cpplex.c (skip_line_comment): Process comment one multibyte
17293         character at a time rather than one char at a time, if
17294         appropriate.
17295         (parse_string): Process string one multibyte character at a time
17296         rather than one char at a time, if appropriate.
17297         * c-lex.c (lex_string): Lex and copy multibyte strings
17298         appropriately.
17299         * cpplib.h (cppchar_t): Change to unsigned.
17300
17301 2002-04-24  Richard Henderson  <rth@redhat.com>
17302
17303         PR c/3467
17304         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
17305         for c99.
17306
17307 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
17308
17309         * sh.c (sh_va_arg): If argument was passed by reference,
17310         dereference the pointer.
17311
17312         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17313
17314         * sh.md (divsi3_i4_media): Use match_operand for input values
17315         rather than hard registers.
17316         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
17317         unnecessarily through hard registers.  Keep copies of pseudo
17318         registers outside of the libcall sequence.
17319
17320         * sh.md (casesi_shift_media): Add modes.
17321
17322         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
17323         values in memory.
17324
17325 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17326
17327         * attribs.c (c_common_attribute_table): Move table and handlers
17328         to c-common.c.
17329         (format_attribute_table, lang_attribute_table,
17330         lang_attribute_common): Remove.
17331         (init_attributes): Replace NULL pointers with pointers to the
17332         empty table.
17333         (handle_packed_attribute, handle_nocommon_attribute,
17334         handle_common_attribute, handle_noreturn_attribute,
17335         handle_noinline_attribute, handle_always_inline_attribute,
17336         handle_used_attribute, handle_unused_attribute,
17337         handle_const_attribute, handle_transparent_union_attribute,
17338         handle_constructor_attribute, handle_destructor_attribute,
17339         handle_mode_attribute, handle_section_attribute,
17340         handle_aligned_attribute, handle_weak_attribute,
17341         handle_alias_attribute, handle_visibility_attribute,
17342         handle_no_instrument_function_attribute, handle_malloc_attribute,
17343         handle_no_limit_stack_attribute, handle_pure_attribute,
17344         handle_deprecated_attribute, handle_vector_size_attribute,
17345         vector_size_helper): Move to c-common.c.
17346         * c-common.c (c_common_attribute_table,
17347         handle_packed_attribute, handle_nocommon_attribute,
17348         handle_common_attribute, handle_noreturn_attribute,
17349         handle_noinline_attribute, handle_always_inline_attribute,
17350         handle_used_attribute, handle_unused_attribute,
17351         handle_const_attribute, handle_transparent_union_attribute,
17352         handle_constructor_attribute, handle_destructor_attribute,
17353         handle_mode_attribute, handle_section_attribute,
17354         handle_aligned_attribute, handle_weak_attribute,
17355         handle_alias_attribute, handle_visibility_attribute,
17356         handle_no_instrument_function_attribute, handle_malloc_attribute,
17357         handle_no_limit_stack_attribute, handle_pure_attribute,
17358         handle_deprecated_attribute, handle_vector_size_attribute,
17359         vector_size_helper): Move from attribs.c.
17360         * c-common.h (c_common_attribute_table,
17361         c_common_format_attribute_table): New.
17362         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17363         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17364         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17365         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
17366         (LANG_HOOKS_INITIALIZER): Update.
17367         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
17368         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
17369         * target.h: Update comment.
17370         * tree.c (default_target_attribute_table): Remove.
17371         * tree.h (default_target_attribute_table, format_attribute_table,
17372         lang_attribute_table, lang_attribute_common): Remove.
17373 objc:
17374         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17375         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17376
17377 2002-04-24  Jason Merrill  <jason@redhat.com>
17378
17379         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
17380         * dwarf2out.c (dwarf_attr_name): Support it.
17381         (gen_array_type_die): Emit it.
17382         (lookup_type_die): No special handling for VECTOR_TYPE.
17383         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
17384
17385 2002-04-24  Richard Henderson  <rth@redhat.com>
17386
17387         * config/mips/mips.md (movdi_usd): Renumber.
17388
17389 2002-04-24  David S. Miller  <davem@redhat.com>
17390
17391         PR target/6420
17392         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
17393         32-bit SPARC and current_function_returns_struct is true.
17394
17395 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
17396
17397         * loop.c (canonicalize_condition): Use gen_int_mode.
17398
17399 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
17400
17401         * config/rs6000/altivec.h: Cleanup file.  Add non individual
17402         variants.
17403         (vec_vaddubm): New.
17404         (vec_vadduhm): New.
17405         (vec_vadduwm): New.
17406         (vec_vaddfp): New.
17407         (vec_vaddcuw): New.
17408         (vec_vaddubs): New.
17409         (vec_vaddsbs): New.
17410         (vec_vadduhs): New.
17411         (vec_vadduws): New.
17412         (vec_vaddsws): New.
17413         (vec_vand): New.
17414         (vec_vandc): New.
17415         (vec_vavgub): New.
17416         (vec_vavgsb): New.
17417         (vec_vavguh): New.
17418         (vec_vavgsh): New.
17419         (vec_vavguw): New.
17420         (vec_vavgsw): New.
17421         (vec_vrfip): New.
17422         (vec_vcmpbfp): New.
17423         (vec_vcmpequb): New.
17424         (vec_vcmpequh): New.
17425         (vec_vcmpequw): New.
17426         (vec_vcmpeqfp): New.
17427         (vec_vcmpgefp): New.
17428         (vec_vcmpgtub): New.
17429         (vec_vcmpgtsb): New.
17430         (vec_vcmpgtuh): New.
17431         (vec_vcmpgtsh): New.
17432         (vec_vcmpgtuw): New.
17433         (vec_vcmpgtsw): New.
17434         (vec_vcmpgtfp): New.
17435         (vec_vcmpgefp): New.
17436         (vec_vcfux): New.
17437         (vec_vcfsx): New.
17438         (vec_vctsxs): New.
17439         (vec_vctuxs): New.
17440         (vec_vexptefp): New.
17441         (vec_vrfim): New.
17442         (vec_lvx): New.
17443         (vec_lvebx): New.
17444         (vec_lvehx): New.
17445         (vec_lde): Add vector float variant.
17446         (vec_lvewx): New.
17447         (vec_lvxl): New.
17448         (vec_vlogefp): New.
17449         (vec_vmaddfp): New.
17450         (vec_vmhaddshs): New.
17451         (vec_vmaxub): New.
17452         (vec_vmaxsb): New.
17453         (vec_vmaxuh): New.
17454         (vec_vmaxsh): New.
17455         (vec_vmaxuw): New.
17456         (vec_vmaxsw): New.
17457         (vec_vmaxsw): New.
17458         (vec_vmaxfp): New.
17459         (vec_vmrghb): New.
17460         (vec_vmrghh): New.
17461         (vec_vmrghw): New.
17462         (vec_vmrglb): New.
17463         (vec_vmrglh): New.
17464         (vec_vmrglw): New.
17465         (vec_vminub): New.
17466         (vec_vminsb): New.
17467         (vec_vminuh): New.
17468         (vec_vminsh): New.
17469         (vec_vminuw): New.
17470         (vec_vminsw): New.
17471         (vec_vminfp): New.
17472         (vec_vmladduhm): New.
17473         (vec_vmhraddshs): New.
17474         (vec_msumubm): New.
17475         (vec_vmsummbm): New.
17476         (vec_vmsumuhm): New.
17477         (vec_vmsumshm): New.
17478         (vec_vmsumuhs): New.
17479         (vec_vmsumshs): New.
17480         (vec_vmuleub): New.
17481         (vec_vmulesb): New.
17482         (vec_vmuleuh): New.
17483         (vec_vmulesh): New.
17484         (vec_vmuloub): New.
17485         (vec_mulosb): New.
17486         (vec_vmulouh): New.
17487         (vec_vmulosh): New.
17488         (vec_vnmsubfp): New.
17489         (vec_vnor): New.
17490         (vec_vor): New.
17491         (vec_vpkuhum): New.
17492         (vec_vpkuwum): New.
17493         (vec_vpkpx): New.
17494         (vec_vpkuhus): New.
17495         (vec_vpkshss): New.
17496         (vec_vpkuwus): New.
17497         (vec_vpkswss): New.
17498         (vec_vpkshus): New.
17499         (vec_vpkswus): New.
17500         (vec_vperm): New.
17501         (vec_vrefp): New.
17502         (vec_vrlb): New.
17503         (vec_vrlh): New.
17504         (vec_vrlw): New.
17505         (vec_vrfin): New.
17506         (vec_vrsqrtefp): New.
17507         (vec_vsel): New.
17508         (vec_vslb): New.
17509         (vec_vslh): New.
17510         (vec_vslw): New.
17511         (vec_vsldoi): New.
17512         (vec_vsl): New.
17513         (vec_vslo): New.
17514         (vec_vspltb): New.
17515         (vec_vsplth): New.
17516         (vec_vspltw): New.
17517         (vec_vspltisb): New.
17518         (vec_vspltish): New.
17519         (vec_vspltisw): New.
17520         (vec_vsrb): New.
17521         (vec_vsrh): New.
17522         (vec_vsrw): New.
17523         (vec_vsrab): New.
17524         (vec_vsrah): New.
17525         (vec_vsraw): New.
17526         (vec_vsr): New.
17527         (vec_vsro): New.
17528         (vec_stvx): New.
17529         (vec_stvebx): New.
17530         (vec_stvehx): New.
17531         (vec_stvewx): New.
17532         (vec_stvxl): New.
17533         (vec_vsububm): New.
17534         (vec_vsubuhm): New.
17535         (vec_vsubuwm): New.
17536         (vec_vsubfp): New.
17537         (vec_vsubcuw): New.
17538         (vec_vsububs): New.
17539         (vec_vsubsbs): New.
17540         (vec_vsubuhs): New.
17541         (vec_vsubshs): New.
17542         (vec_vsubuws): New.
17543         (vec_vsubsws): New.
17544         (vec_vsum4ubs): New.
17545         (vec_vsum4sbs): New.
17546         (vec_vsum4shs): New.
17547         (vec_vsum2sws): New.
17548         (vec_vsumsws): New.
17549         (vec_vrfiz): New.
17550         (vec_vupkhsb): New.
17551         (vec_vupkhpx): New.
17552         (vec_vupkhsh): New.
17553         (vec_vupklsb): New.
17554         (vec_vupklpx): New.
17555         (vec_vupklsh): New.
17556         (vec_vxor): New.
17557
17558 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
17559
17560         PR c/5430
17561         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
17562         added literals from substracted literals.
17563         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
17564         (fold) [associate]: Preserve MINUS_EXPR if needed.
17565
17566 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
17567
17568         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
17569         are obsoleted.
17570
17571 2002-04-23  Tom Tromey  <tromey@redhat.com>
17572
17573         * gcc.c: Added --resource.  For PR java/6314.
17574
17575 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
17576
17577         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
17578         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
17579         these libraries.
17580
17581 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
17582
17583         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
17584
17585 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
17586
17587         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
17588         workaround.
17589         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
17590         (ix86_expand_clrstr): Fix typo.
17591         * loop.c (gen_load_of_final_value): New.
17592         (loop_givs_rescan, strength_reduce, check_dbra_loop):
17593         Use it.
17594
17595 2002-04-23  Roger Sayle  <roger@eyesopen.com>
17596
17597         * builtins.c (builtin_memset_gen_str): New function.
17598         (expand_builtin_memset): Optimize the case of constant length, but
17599         unknown value.
17600
17601 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
17602
17603         * config/rs6000/altivec.h (vec_step): Remove extraneous
17604         parentheses.
17605         (vec_ctu): Cast return.
17606
17607 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
17608
17609         PR target/6413
17610         * function.h: (struct function): Add profile_label_no field.
17611         (current_function_profile_label_no): Define.
17612         * function.c: (profile_label_no): New static var.
17613         (expand_function_start): Increment it, and copy to
17614         current_function_profile_label_no.
17615         * output.h (profile_label_no): Delete.
17616         * final.c (profile_label_no): Delete.
17617         (profile_function): Use current_function_profile_label_no.
17618         (final_end_function): Don't increment profile_label_no here.
17619         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
17620         profile_label_no with current_function_profile_label_no.
17621         * config/pa/pa.c (current_function_number): Delete.
17622         (pa_output_function_prologue): Don't output profile label here.
17623         (hppa_profile_hook): Use label_no param rather than
17624         current_function_number.
17625         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
17626         * config/pa/pa.h: .. here.
17627         (FUNCTION_PROFILER): Output profile label here.
17628
17629 2002-04-22  Eric Christopher  <echristo@redhat.com>
17630
17631         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
17632         patch of 2002-04-09 due to binutils issues.
17633         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
17634
17635 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
17636
17637         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
17638         constraint to 'o' for m=r and r=m alternatives.
17639         ("*movv8hi_internal1"): Same.
17640         ("*movv16qi_internal1"): Same.
17641         ("*movv4sf_internal1"): Same.
17642
17643 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
17644
17645         * rtl.h (RTX_FLAG): New macro.
17646         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
17647         * final.c (alter_subreg): Use macro to access rtx flag.
17648         * integrate.c (copy_rtx_and_substitute): Use new access macro.
17649         * print-rtl.c (print_rtx): Use new access macro.
17650
17651         * cse.c (insert): Check rtx code before accessing flag.
17652
17653         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
17654         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
17655         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
17656         convert_const_symbol_ref, make_canonical, make_alternative_compare,
17657         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
17658         simplify_test_exp, optimize_attrs, simplify_by_exploding,
17659         find_and_mark_used_attributes, unmark_used_attributes,
17660         add_values_to_cover, simplify_with_current_value,
17661         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
17662         copy_rtx_unchanging, main): Use new access macros.
17663
17664 2002-04-22  Tom Rix  <trix@redhat.com>
17665
17666         * expmed.c (init_expmed): Generate shifted constant once.
17667
17668 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
17669
17670         * c-lex.c (lex_charconst): Call convert to get constant in
17671         proper type; don't just smash the type field.
17672         Fixes PR c/6300.
17673
17674         * config.gcc: Add list of obsolete configurations.  Disallow
17675         building these without --enable-obsolete.
17676         * doc/install.texi: Document --enable-obsolete and obsoletion
17677         policy.  Mention obsoletion of individual targets in
17678         appropriate places.
17679
17680 2002-04-22  Richard Henderson  <rth@redhat.com>
17681
17682         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
17683
17684 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
17685
17686         PR f/6138.
17687         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
17688         (walk_fixup_memory_subreg): Likewise.
17689         (fixup_var_refs_insn): Adjust accordingly.
17690         (fixup_var_refs_1): Likewise.
17691
17692 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
17693
17694         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
17695         LIBPATH_ARCH64_SPEC): Define.
17696         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
17697         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
17698         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
17699         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
17700
17701 2002-04-22      Joel Sherrill <joel@OARcorp.com>
17702
17703         * gthr-rtems.h: Correct prototypes to remove warnings.
17704
17705 2002-04-22  Richard Henderson  <rth@redhat.com>
17706
17707         PR c/6344
17708         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
17709
17710         * gcse.c (free_insn_expr_list_list): New.
17711         (clear_modify_mem_tables): Use it.  Fix bit set usage.
17712         (canon_list_insert): Use EXPR_LISTs for expressions.
17713         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
17714
17715 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
17716
17717         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
17718         file change and include code to _cpp_pop_buffer.
17719         * cpphash.h (struct pending_option): Predeclare.
17720         (struct cpp_reader): New member next_include_file.
17721         (_cpp_pop_file_buffer): Update.
17722         (_cpp_push_next_buffer): Update, rename.
17723         * cppinit.c (cpp_destroy): Free include chain and pending here.
17724         (cpp_finish_options): Simplify.
17725         (_cpp_push_next_buffer): Rename and clean up.
17726         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
17727         Clarify.
17728         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
17729
17730 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
17731
17732         * config/rs6000/altivec.h (vec_xor): Add variant for both args
17733         being vector signed int.
17734         (vec_andc): Same.
17735         (vec_xor): Add variant for both args being vector signed char.
17736         Remove redundant variant.
17737         (vec_andc): Same.
17738
17739 2002-04-21  David S. Miller  <davem@redhat.com>
17740
17741         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
17742         compare mode in output RTL.
17743
17744 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
17745
17746         * config/rs6000/rs6000.c (rs6000_override_options): Correct
17747         style and formatting of previous patch.
17748
17749 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
17750
17751         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
17752         flag_pic for ABI_AIX.
17753
17754 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
17755
17756         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
17757         * cppfiles.c (read_include_file): Similarly.
17758         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
17759         uxstrdup ustrchr, ufputs): Similarly.
17760         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
17761         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
17762         cpp_ideq, parse_identifier, parse_number): Similarly.
17763         * cpplib.c (struct directive, dequote_string, D, run_directive,
17764         cpp_push_buffer): Similarly.
17765         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
17766         _cpp_create_definition, check_trad_stringification,
17767         cpp_macro_definition): Similarly.
17768
17769 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
17770
17771         * cppmacro.c (funlike_invocation_p): Don't step back
17772         over CPP_EOF.
17773
17774 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
17775
17776         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
17777         labelno.
17778
17779 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
17780
17781         * doc/invoke.texi: Remove Chill references.
17782         * doc/gcc.texi: Update last modified date.
17783
17784 2002-04-20  Kazu Hirata  <kazu@hxi.com>
17785
17786         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
17787         push and pop.  Replace add.l with add.w.
17788
17789 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17790
17791         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
17792         multiply instructions for H8/300H case.
17793
17794 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17795
17796         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
17797         Bum three instructions from each routine.
17798
17799 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17800
17801         * Makefile.in: Update.
17802         * decl.c (push_c_function_context, pop_c_function_context,
17803         mark_c_function_context): Rename for consistency.
17804         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
17805         * c-tree.h (push_c_function_context, pop_c_function_context,
17806         mark_c_function_context): Rename for consistency.
17807         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17808         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17809         * function.c (init_lang_status, save_lang_status,
17810         restore_lang_status, mark_lang_status, free_lang_status):
17811         Move to langhooks.h.
17812         (push_function_context_to, pop_function_context_from,
17813         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17814         Update.
17815         * function.h (init_lang_status, save_lang_status,
17816         restore_lang_status, mark_lang_status, free_lang_status):
17817         Move to langhooks.h.
17818         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
17819         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17820         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
17821         LANG_HOOKS_FUNCTION_INITIALIZER): New.
17822         (LANG_HOOKS_INITIALIZER): Update.
17823         (lhd_do_nothing_f): New.
17824         * langhooks.h (struct lang_hooks_for_functions): New.
17825         (struct lang_hooks): New hooks.
17826         * langhooks.c (lhd_do_nothing_f): New.
17827 objc:
17828         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17829         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17830
17831 2002-04-19  David S. Miller  <davem@redhat.com>
17832
17833         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
17834         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
17835
17836 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17837
17838         PR optimization/3756
17839         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
17840         x = ((int) y < 0) ? cst1 : cst2.
17841
17842 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17843
17844         PR c/6358
17845         * function.c: Reapply patch for c/6358.
17846         (expand_function_end): Copy decl_rtl's mode, not
17847         current_function_return_rtx mode.
17848
17849 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
17850
17851         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
17852         targets.
17853
17854 2002-04-19  Tom Tromey  <tromey@redhat.com>
17855
17856         * doc/install.texi (Specific): Update status of Solaris 2.8.
17857         For PR libgcj/6158.
17858
17859 2002-04-19  Andreas Schwab  <schwab@suse.de>
17860
17861         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
17862         (PUT_REAL): Restore old definition.
17863
17864 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
17865             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17866
17867         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
17868         binutils 2.11.2 and higher generate smaller binaries than Sun's
17869         native tools.
17870
17871 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
17872
17873         PR c++/6352
17874         * toplev.c (rest_of_compilation): Do not defer functions for which
17875         TREE_SYMBOL_REFERENCED has already been set.
17876
17877 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
17878
17879         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
17880         alternative.
17881
17882 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
17883
17884         * builtins.c: Include langhooks.h.
17885         (lang_type_promotes_to): Remove.
17886         (expand_builtin_va_arg): Use new hook.
17887         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
17888         (simple_type_promotes_to): Move to c-typeck.c.
17889         * c-common.h (simple_type_promotes_to): Remove.
17890         * c-decl.c (duplicate_decls, grokdeclarator): Update.
17891         * c-format.c: Include langhooks.h.
17892         (check_format_types): Update.
17893         * c-tree.h (c_type_promotes_to): New.
17894         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
17895         (type_lists_compatible_p): Update.
17896         * langhooks-def.h (lhd_type_promotes_to): New.
17897         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
17898         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17899         * langhooks.c (lhd_type_promotes_to): New.
17900         * langhooks.h (struct lang_hooks_for_types): New hook.
17901         * tree.h (lang_type_promotes_to): Remove.
17902 objc:
17903         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
17904
17905 2002-04-18  Richard Henderson  <rth@redhat.com>
17906
17907         * function.c: Revert patch for c/6358.
17908
17909 2002-04-18  Richard Henderson  <rth@redhat.com>
17910
17911         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
17912         blocks.  Handle multiple references to the TRAP block.  Handle
17913         non-adjacent THEN and OTHER blocks.
17914
17915 2002-04-18  Richard Henderson  <rth@redhat.com>
17916
17917         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
17918         crash with no type for by-mode libcalls.
17919
17920         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
17921
17922 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
17923
17924         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17925         __xtensa_nonlocal_goto): Use a syscall instructions to flush
17926         the register windows.
17927
17928 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
17929
17930         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
17931         appropriate.  Document need for extended precision even when
17932         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
17933         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
17934         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
17935         instead of relying on later syntax error when REAL_WIDTH > 5.
17936         * real.c: Define NE based only on whether or not we have a
17937         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
17938         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
17939         define GET_REAL and PUT_REAL as simple memcpy operations; no
17940         need to byteswap or round.
17941         Use #error instead of #ifdef-ing out the entire file, for
17942         prompt error detection.
17943
17944         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
17945
17946 2002-04-18  David S. Miller  <davem@redhat.com>
17947
17948         * config/sparc/sparc.h (BRANCH_COST): Define.
17949
17950         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
17951         does it.
17952
17953 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
17954
17955         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
17956         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
17957         propagate_block calls after relaxation loop using new variable
17958         stabilized_prop_flags.
17959
17960 2002-04-18  Richard Henderson  <rth@redhat.com>
17961
17962         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
17963         (ia64_va_arg): Expect variable sized types by reference.
17964         * config/ia64/ia64-protos.h: Update.
17965         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
17966         ia64_function_arg_pass_by_reference.
17967
17968 2002-04-18  Richard Henderson  <rth@redhat.com>
17969
17970         * ifcvt.c: Include except.h.
17971         (block_has_only_trap): Break out from find_cond_trap.
17972         (find_cond_trap): Use it.  Always delete the trap block.
17973         (merge_if_block): Allow then block null.  Be less simplistic about
17974         what insns can end a block.
17975         * Makefile.in (ifcvt.o): Depend on except.h.
17976
17977         * config/ia64/ia64.md (trap, conditional_trap): New.
17978
17979 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17980
17981         PR c/6358
17982         * function.c (assign_parms): Assign hard current_function_return_rtx
17983         register here...
17984         (expand_function_end): ...not here.
17985
17986 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
17987
17988         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17989         * c-tree.h (c_incomplete_type_error): New.
17990         * c-typeck.c (require_complete_type, build_component_ref): Update.
17991         (incomplete_type_error): Rename.
17992         * langhooks-def.h (lhd_incomplete_type_error): New.
17993         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
17994         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17995         * langhooks.c (lhd_incomplete_type_error): New.
17996         * langhooks.h (struct lang_hooks_for_types): New hook.
17997         * tree.c (size_in_bytes): Use new hook.
17998         * tree.h (incomplete_type_error): Remove.
17999 objc:
18000         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
18001
18002 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
18003
18004         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
18005         TARGET_FLOAT_FORMAT blocks.
18006
18007 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18008
18009         * doc/install.texi (Downloading the source): Do not mention Chill
18010         any longer, but mention Ada.
18011         (Configuration): Do not mention Chill any longer.
18012
18013 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
18014
18015         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
18016
18017 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
18018
18019         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
18020         in last patch.
18021
18022 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
18023
18024         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
18025         instead of unsigned_type.
18026
18027 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
18028
18029         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
18030         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
18031         later.
18032
18033 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
18034
18035         * attribs.c (vector_type_node_list): New static variable.
18036         (handle_vector_size_attribute): Use it to avoid generating a
18037         new type node each time we are called.
18038
18039         * combine.c (subst): Avoid trying to make a vector mode subreg of
18040         an integer constant.
18041         (gen_lowpart_for_combine): Likewise.
18042
18043 2002-04-18  Roger Sayle  <roger@eyesopen.com>
18044             Jakub Jelinek  <jakub@redhat.com>
18045
18046         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
18047         for integer constant c (if x has unsigned type or sign bit is not
18048         set in c).  This folds the zero/sign extension into the bit-wise and
18049         operation.
18050
18051 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
18052
18053         PR middle-end/6205
18054         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
18055         otherwise xorps.
18056
18057 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
18058
18059         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
18060
18061 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
18062
18063         * gcc.c (read_specs): Detect and fail if an attempt is made to
18064         rename a spec string to an already existing string.
18065
18066 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
18067
18068         * config/s390/s390.c (legitimize_pic_address): Do not generate
18069         illegal address constant without CONST.
18070
18071 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18072
18073         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
18074         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18075
18076 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
18077
18078         PR optimization/6305
18079         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
18080         to make sure previous reloads are taken into account.  Generate
18081         better code if one operand is an in-range immediate constant.
18082
18083 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
18084
18085         * doc/install.texi (Building): libgcj requires GNU make.
18086
18087 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
18088
18089         PR bootstrap/6315
18090         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
18091         even if hard quad and register is not floating.
18092         (movtf reg<-mem split): Disallow splitting if hard quad and
18093         register is floating.
18094         (movtf mem<-reg split): Likewise.
18095         * config/sparc/sparc.c (fp_register_operand): New predicate.
18096         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
18097
18098 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
18099
18100         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
18101         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
18102         (unprotoize.o): Ditto.  Build from protoize.c.  Define
18103         UNPROTOIZE on command line.
18104         * protoize.c: Include cppdefault.h.  Delete include_defaults.
18105         (in_system_include_dir): Use cpp_include_defaults (defined in
18106         cppdefault.o).
18107         * unprotoize.c: Delete file.
18108
18109 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
18110
18111         * config/rs6000/altivec.h (vec_ld): Add array variants.
18112         (vec_lde): Same.
18113         (vec_ldl): Same.
18114
18115 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
18116             Aldy Hernandez <aldyh@redhat.com>
18117
18118         * config/rs6000/altivec.h: Define __ALTIVEC__.
18119         (bool): New.
18120         (__pixel): New.
18121         (pixel): New.
18122         (vec_cfux): New.
18123         (vec_vmaddfp): New.
18124         (vec_vsldoi): New.
18125         Add parentheses to all macro arguments.
18126
18127 2002-04-16  Richard Henderson  <rth@redhat.com>
18128
18129         PR c++/6320
18130         * except.c (remove_eh_handler): Insert inner regions at beginning
18131         of sibling chain.  Refactor expressions.
18132
18133 2002-04-16  Richard Henderson  <rth@redhat.com>
18134
18135         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
18136         * config/sparc/sol2-gas-bi.h: New file.
18137         * config.gcc (sparc*-solaris): Add it as needed.
18138         * configure.in (AS_SPARC64_FLAG): Remove check.
18139         * config.in, configure: Regenerate.
18140
18141         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
18142
18143 2002-04-16  Richard Henderson  <rth@redhat.com>
18144
18145         * config/mips/mips.c (override_options): Don't override N32 for
18146         a 64-bit ISA.
18147
18148         PR 6202
18149         * config/mips/mips.md (can_delay): Split out of existing define_delays.
18150         (HILO_delay): Set can_delay false.
18151
18152 2002-04-16  Dale Johannesen <dalej@apple.com>
18153
18154         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
18155         instruction addresses.
18156         (rs6000_output_function_epilogue): Likewise.
18157
18158 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
18159
18160         * c-parse.in (poplevel, compstmt_start,
18161         compstmt_primary_start): Add ending ';', in accordance
18162         with POSIX.
18163
18164 2002-04-16  Richard Henderson  <rth@redhat.com>
18165
18166         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
18167         Adjust tm_file order to get TARGET_DEFAULT set properly.
18168         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
18169         * doc/install.texi (sparc-solaris): Update.
18170
18171 2002-04-16  Dale Johannesen <dalej@apple.com>
18172
18173         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
18174         comparison operands do not match each other or if modes of
18175         conditions do not match result.
18176
18177 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
18178
18179         PR target/6305
18180         * config/s390/s390.md (mulsidi3): Set both subregs of the
18181         multiword register.
18182
18183 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
18184
18185         * config/rs6000/altivec.h (vec_addc): Type check.
18186
18187 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
18188
18189         PR middle-end/6279
18190         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
18191
18192         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
18193
18194 2002-04-15  Richard Henderson  <rth@redhat.com>
18195
18196         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
18197         call_really_used_regs too.
18198
18199 2002-04-15  Richard Henderson  <rth@redhat.com>
18200
18201         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
18202
18203 2002-04-15  David S. Miller  <davem@redhat.com>
18204
18205         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
18206         as being CLOBBERed.
18207
18208 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
18209
18210         PR c/6290
18211         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
18212         CONST_VECTOR is { 0, ... 0 }.
18213
18214 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
18215
18216         * doc/install.texi (Installing GCC: Configuration): Clarify
18217         the only supported ways to configure gcc.
18218
18219 2002-04-15  Roland McGrath  <roland@frob.com>
18220
18221         * config.gcc (alpha*-*-gnu*): New target configuration.
18222         * config/alpha/gnu.h: New file for it.
18223         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
18224
18225 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
18226
18227         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
18228         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
18229         * tree.h (expand_start_stmt_expr): Update prototype.
18230         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
18231         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
18232         on the STMT_EXPR created for the inline function.
18233
18234 2002-04-15  Richard Henderson  <rth@redhat.com>
18235
18236         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
18237         config/i386/linux-aout.h, config/i386/linux-oldld.h,
18238         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
18239         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
18240         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
18241         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
18242         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
18243         Define __gnu_linux__, not gnu_linux.
18244         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
18245
18246 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
18247
18248         Remove Chill front end.
18249         * gcc.c (default_compilers): Remove Chill entries.
18250         * ch: Remove directory.
18251         * doc/frontends.texi: Remove information about Chill.
18252         * doc/sourcebuild.texi: Likewise.
18253         * doc/standards.texi: Likewise.
18254
18255 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
18256
18257         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
18258         (LONGLONG_STANDALONE): Define.
18259
18260 2002-04-15  David S. Miller  <davem@redhat.com>
18261
18262         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
18263         Call emit_library_call with LCT_NORMAL.
18264         (sparc_initialize_trampoline): Use LCT_foo instead of
18265         magic constant in emit_library_call invocations.
18266         (sparc64_initialize_trampoline): Likewise.
18267         (sparc_profile_hook): Likewise.
18268         * config/sparc/sparc.md: Likewise.
18269
18270         * config/sparc/sparc.c (sparc_extra_constraint_check):
18271         Fix type of argument 'c'.
18272         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
18273         Likewise.
18274
18275 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
18276
18277         * diagnostic.h (output_buffer_state): Redefine.
18278         (output_format_decoder): New macro.
18279         (output_prefixing_rule): Likewise.
18280         (output_line_cutoff): Likewise.
18281         (diagnostic_format_decoder): Adjust.
18282         (diagnostic_prefixing_rule): Likewise.
18283         (diagnostic_line_cutoff): Likewise.
18284         (diagnostic_state): Likewise.
18285         (diagnostic_kind_count): Likewise.
18286         (diagnostic_buffer): Now a macro.
18287
18288         * diagnostic.c (diagnostic_buffer): Remove definition.
18289         (output_is_line_wrapping): Adjust.
18290         (set_real_maximum_length): Likewise.
18291         (output_set_maximum_length): Likewise.
18292         (init_output_buffer): Likewise.
18293         (lhd_print_error_function): Likewise.
18294         (output_do_verbatim): Likewise.
18295
18296 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
18297
18298         * cpperror.c (print_location): Don't print include chain
18299         if line == 0.
18300         (cpp_begin_message): Update to use DL_ macros.
18301         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18302         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18303         cpp_notice, cpp_notice_from_errno): Remove.
18304         (cpp_error, cpp_error_with_line): Update to take a diagnostic
18305         level.
18306         (cpp_errno): New.
18307         * cppexp.c (CPP_ICE): Remove.
18308         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
18309         lex, integer_overflow, _cpp_parse_expr): Update.
18310         * cppfiles.c (read_include_file, find_include_file,
18311         handle_missing_header, _cpp_read_file, remap_filename): Update.
18312         * cpphash.h (enum error_type): Remove.
18313         (_cpp_begin_message): Update.
18314         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
18315         cpp_handle_option, cpp_post_options): Update.
18316         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
18317         skip_whitespace, parse_identifier, parse_slow, parse_string,
18318         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
18319         cpp_interpret_charconst): Update.
18320         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
18321         lex_macro_node, do_undef, glue_header_name, parse_include,
18322         do_include_common, read_flag, do_line, do_linemarker, do_ident,
18323         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
18324         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
18325         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
18326         _cpp_pop_buffer, do_diagnostic): Update.
18327         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
18328         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
18329         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18330         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18331         cpp_notice, cpp_notice_from_errno): Remove.
18332         (cpp_error, cpp_error_with_line): Update to take a diagnostic
18333         level.
18334         (cpp_errno): New.
18335         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
18336         collect_args, enter_macro_context, save_parameter, parse_params,
18337         _cpp_create_definition, check_trad_stringification,
18338         cpp_macro_definition): Update.
18339         * cppmain.c (cpp_preprocess_file): Update.
18340         * fix-header.c (read_scan_file): Update.
18341
18342 2002-04-14  Andreas Schwab  <schwab@suse.de>
18343
18344         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
18345
18346 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
18347
18348         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
18349
18350 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
18351
18352         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
18353         not gnu_hurd.
18354
18355 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
18356
18357         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
18358
18359 2002-04-13      Joel Sherrill <joel@OARcorp.com>
18360
18361         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
18362         sparc-elf and sparc-rtems targets.
18363
18364 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
18365
18366         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
18367         defined, and __gnu_hurd__ wherever __GNU__ is defined.
18368         * arm/linux-elf.h: Likewise.
18369         * cris/aout.h: Likewise.
18370         * cris/linux.h: Likewise.
18371         * i370/linux.h: Likewise.
18372         * i386/gnu.h: Likewise.
18373         * i386/linux-aout.h: Likewise.
18374         * i386/linux-oldld.h: Likewise.
18375         * i386/linux.h: Likewise.
18376         * i386/linux64.h: Likewise.
18377         * ia64/linux.h: Likewise.
18378         * m68k/linux-aout.h: Likewise.
18379         * m68k/linux.h: Likewise.
18380         * mips/linux.h: Likewise.
18381         * pa/pa-linux.h: Likewise.
18382         * pj/linux.h: Likewise.
18383         * rs6000/sysv4.h: Likewise.
18384         * s390/linux.h: Likewise.
18385         * sh/linux.h: Likewise.
18386         * sparc/linux-aout.h: Likewise.
18387         * sparc/linux.h: Likewise.
18388         * sparc/linux64.h: Likewise.
18389         * xtensa/linux.h: Likewise.
18390
18391 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
18392
18393         * stmt.c (check_unique_operand_names): Expect operand names to
18394         be strings rather than identifiers.  Use simple_cst_equal to
18395         compare them.
18396         (resolve_operand_name_1): Make same identifier to string change here.
18397         * c-parse.in (asm_operand): Convert a named operand into a string.
18398         * cp/parse.y (asm_operand): Likewise.
18399
18400 2002-04-13  Andreas Schwab  <schwab@suse.de>
18401
18402         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
18403
18404 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
18405
18406         Revert these changes:
18407
18408         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
18409
18410         PR c++/5571
18411         * stor-layout.c (layout_decl): Reset the RTL for the decl.
18412
18413 2002-04-12  Richard Henderson  <rth@redhat.com>
18414
18415         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
18416         (sparc*-*-solaris): Clean up header files.
18417         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
18418         and plan on generating 64-bit code.
18419         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
18420         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
18421         * config/sparc/sol2-sld-64.h: Rename ...
18422         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
18423         for AS_SPARC64_FLAG not defined.
18424         * config/sparc/sol2-gld-bi.h: New.
18425         * config/sparc/sol2-sld.h: Remove.
18426         * config/sparc/sol26-sld.h: New.
18427         * config/sparc/sol2.h: Tidy comments.
18428         * doc/install.texi: Document sparc-solaris configury changes.
18429
18430 2002-04-12  Richard Henderson  <rth@redhat.com>
18431
18432         * recog.c (offsettable_address_p): Match the logic in adjust_address.
18433
18434         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
18435         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
18436
18437 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18438
18439         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
18440
18441 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
18442
18443         * pa.c (pa_can_combine_p): Call extract_insn before calling
18444         constrain_operands.
18445
18446 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
18447
18448         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
18449         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
18450         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
18451         (CPP_PREDEFINES): Handle __declspec.
18452         * config/i386/t-interix (USER_H): Remove.
18453
18454 2002-04-12  DJ Delorie  <dj@redhat.com>
18455
18456         * integrate.c (compare_blocks): Make comparisons safe for when
18457         sizeof(int) < sizeof(char *).
18458         (find_block): Likewise.
18459
18460 2002-04-12  Jan Hubicka  <jh@suse.cz>
18461             David Edelsohn  <edelsohn@gnu.org>
18462
18463         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
18464         registers.
18465         (symbol_ref_operand): New.
18466         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
18467         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
18468
18469 2002-04-12  Andreas Schwab  <schwab@suse.de>
18470
18471         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
18472         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
18473         overrides the definition in config/svr4.h.
18474
18475 2002-04-12      Eric Norum <eric.norum@usask.ca>
18476
18477         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
18478         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
18479         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
18480         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
18481         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
18482         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
18483         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
18484         definitions to config/rtems.h and make the targets more similar.
18485
18486 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18487
18488         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
18489         POINTERS_EXTEND_UNSIGNED.
18490         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
18491         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
18492
18493         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
18494         not specified.
18495
18496 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
18497
18498         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
18499         depends on TARGET_SHMEDIA, not TARGET_SH5.
18500
18501 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
18502
18503         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
18504         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
18505
18506 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
18507
18508         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
18509         no r0 clobber.
18510
18511 2002-04-12  Andreas Schwab  <schwab@suse.de>
18512
18513         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
18514
18515 2002-04-12  Richard Henderson  <rth@redhat.com>
18516
18517         PR bootstrap/4191
18518         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
18519
18520         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
18521         modes spanning multiple hard regs.
18522
18523         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
18524
18525 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18526
18527         * pa.c (pa_output_function_prologue): Don't accumulate the total
18528         number of code bytes when using TARGET_64BIT, or gas, SOM and not
18529         the portable runtime.
18530         (output_deferred_plabels): Handle 64bit plabels.
18531         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
18532         generating pic code using the GAS assembler for object formats that
18533         are not SOM (ie., ELF32 and ELF64).
18534         (output_millicode_call): Check attribute type if attribute length is 28.
18535         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
18536         dbr_sequence_length once.
18537         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
18538         dbr_sequence_length once.
18539         * pa.h (TARGET_SOM): Define if not defined.
18540         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
18541         with GAS and not SOM.
18542         (jump, call_internal_reg, call_value_internal_reg): Likewise.
18543         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
18544
18545 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18546
18547         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
18548         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
18549         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
18550         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
18551         elfos.h and dbxelf.h values are fine now.
18552         * config/i386/freebsd.h, config/alpha/freebsd.h
18553         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
18554
18555 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18556
18557         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
18558         or set Acpu or Amachine.  Reformat.
18559         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18560         define.
18561         (LINK_SPEC): Do not need to undef.
18562         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
18563         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
18564         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18565         define.
18566         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
18567         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
18568         (LINK_SPEC): Do not need to undef.
18569         (DONT_USE_BUILTIN_SETJMP): Do not define.
18570         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
18571         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
18572         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
18573         Remove trailing spaces.
18574         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
18575         __ELF__, or set Acpu or Amachine.  Reformat.
18576         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18577         define.
18578
18579 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18580
18581         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
18582         all other *-*-freebsd* targets.
18583
18584 2002-04-11  Richard Henderson  <rth@redhat.com>
18585
18586         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
18587
18588 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
18589
18590         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
18591         Include {cpu}/{cpu}.h thru tm_file.
18592         (alpha*-*-linux*ecoff): Remove target.
18593         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
18594         (LINK_SPEC): Remove, is not OS independent.
18595         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
18596         (LINK_SPEC): Do not need to #undef any longer.
18597         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
18598         any longer.
18599         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
18600         __ELF__.
18601         (LINK_SPEC): Moved here from alpha/elf.h.
18602         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
18603         SUB_CPP_PREDEFINES.
18604         * config/alpha/linux-ecoff.h: Remove.
18605         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
18606         (CPP_SPEC): Define _POSIX_SOURCE as needed.
18607         (CPP_SUBTARGET_SPEC): Do not define.
18608         (LINK_SPEC): Do not need to #undef any longer.
18609         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
18610         * config/alpha/vms.h: Likewise.
18611
18612 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
18613
18614         * doc/extend.texi: Remove old claim that typedefs cannot have
18615         an alignment attribute.
18616
18617 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
18618
18619         PR optimization/6177
18620         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
18621         bitpos is 0 and bitsize CONCAT size.
18622
18623 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
18624
18625         PR c/6223
18626         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
18627
18628 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
18629
18630         * config/alpha/freebsd.h: Minor reformatting.
18631         (CPP_SPEC): Define ELF and add cpp_subtarget.
18632         (ASM_SPEC): No longer needed.
18633
18634 2002-04-11  Richard Henderson  <rth@redhat.com>
18635
18636         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
18637         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
18638         (dimode mem/zero splitter): New.
18639
18640 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
18641
18642         * config/cris/cris.c (cris_override_options): Tweak error message
18643         for PIC not implemented.
18644
18645         * config/cris/cris.h: Tweak comments related to parameter-passing.
18646
18647         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
18648
18649 2002-04-10  Richard Henderson  <rth@redhat.com>
18650
18651         * except.c (add_ehl_entry): Allow duplicates after landing pad
18652         creation.
18653
18654 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
18655
18656         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
18657
18658 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
18659
18660         * c-decl.c (c_init_decl_processing): Move generation of
18661         decls for g77_integer_type_node and friends from here ...
18662         * c-common.c (c_common_nodes_and_builtins): ... to here.
18663
18664 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
18665
18666         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
18667         is only used as frame pointer when frame_pointer_needed is true.
18668
18669 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
18670
18671         PR target/817
18672         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
18673         for the fact that the pool entry uses two words.
18674         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
18675         1k bytes.
18676         (movdf_soft_insn): Similarly.
18677         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
18678         for the fact that the pool entry uses three words.
18679
18680 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
18681
18682         * config/mips/mips.c (mips_va_arg): When using the struct version
18683         of the EABI va_list, allow arguments in the register save area to
18684         take up less room than a stack argument.
18685
18686 2002-04-10  Richard Henderson  <rth@redhat.com>
18687
18688         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
18689         if EXPAND_INITIALIZER.
18690
18691 2002-04-09  Richard Henderson  <rth@redhat.com>
18692
18693         * config/alpha/alpha.md (movdi_er_maybe_g): New.
18694         * config/alpha/alpha.c (alpha_expand_mov): Use it.
18695
18696 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
18697
18698         PR optimization/6233
18699         * rtlanal.c (pure_call_p): New function.
18700         * rtl.h (pure_call_p): Declare.
18701         * loop.c (prescan_loop): Use it to set has_nonconst_call.
18702         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
18703
18704 2002-04-09  Eric Christopher  <echristo@redhat.com>
18705
18706         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
18707         information to .comm directive.
18708
18709 2002-04-09  Richard Henderson  <rth@redhat.com>
18710
18711         PR c/5078
18712         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
18713
18714 2002-04-09  Richard Henderson  <rth@redhat.com>
18715
18716         * basic-block.h (flow_delete_block_noexpunge): Declare.
18717         (expunge_block_nocompact): Declare.
18718         * cfg.c (expunge_block_nocompact): Split out from ...
18719         (expunge_block): ... here.
18720         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
18721         (flow_delete_block_noexpunge): Split out from ...
18722         (flow_delete_block): ... here.
18723         * cfgcleanup.c (delete_unreachable_blocks): Compact while
18724         removing dead blocks.
18725         * except.c (exception_handler_labels): Remove.
18726         (exception_handler_label_map): New.
18727         (struct eh_region): Add aka member.
18728         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
18729         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
18730         (for_each_eh_label, for_each_eh_label_1): New.
18731         (init_eh): Register exception_handler_label_map.
18732         (free_eh_status): Use free_region.
18733         (find_exception_handler_labels): Use the map, not the list.
18734         (remove_exception_handler_label): Likewise.
18735         (maybe_remove_eh_handler): Likewise.
18736         (remove_eh_handler): Use the region aka bitmap.
18737         * except.h (exception_handler_labels): Remove.
18738         (for_each_eh_label): Declare.
18739         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
18740         * loop.c (invalidate_loops_containing_label): New.
18741         (find_and_verify_loops): Use it.  Use for_each_eh_label.
18742         * sched-rgn.c (is_cfg_nonregular): Use
18743         current_function_has_exception_handlers.
18744
18745 2002-04-09  Richard Henderson  <rth@redhat.com>
18746
18747         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
18748         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
18749         Do not return changed status.
18750         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
18751         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
18752         New functions that do return changed status.
18753         * sbitmap.h: Update decls.
18754         * gcse.c, lcm.c: Use _cg functions as needed.
18755
18756 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
18757
18758         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
18759         (sh64-*-elf*, sh-*-rtemself*): Likewise.
18760         * config/sh/embed_bb.c: New file.
18761         * config/sh/embed-elf.h: New file.
18762         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
18763         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
18764         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18765         __PTRDIFF_TYPE__ .
18766         (SUBTARGET_CPP_PTR_SPEC): Don't define.
18767         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
18768         Add subtarget_asm_endian_spec.
18769         (ASM_SPEC): Use subtarget_asm_endian_spec.
18770         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
18771         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
18772         (WCHAR_UNSIGNED): Define.
18773         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
18774         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18775         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
18776         Fix value.
18777         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
18778         (sh_adjust_cost): Likewise.
18779         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18780         __PTRDIFF_TYPE__ .
18781         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
18782         (WCHAR_TYPE_SIZE): Likewise.
18783         (ASM_SPEC): Use subtarget_asm_endian_spec.
18784         (SH_ELF_WCHAR_TYPE): #undef/ #define.
18785         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
18786         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
18787         (MAX_WCHAR_TYPE_SIZE): Don't #define .
18788         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
18789         (USER_LABEL_PREFIX): Don't #undef /#define .
18790         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18791         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
18792         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
18793         (ASM_SPEC): Likewise.
18794         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
18795         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
18796         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
18797         (LIB2FUNCS_EXTRA): Define.
18798         * t-sh64 (LIB2FUNCS_EXTRA): Define.
18799         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
18800         (LIB1ASMFUNCS_CACHE): Define.
18801         (LIB2FUNCS_EXTRA): Redefine empty.
18802
18803 2002-04-08  Richard Henderson  <rth@redhat.com>
18804
18805         * reorg.c (get_branch_condition): Use reversed_comparison_code.
18806
18807 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18808
18809         * config/m68hc11/larith.asm (__map_data_section): Fix condition
18810         and optimize for size.
18811         (__do_global_ctors): Fix pointer comparison.
18812         (__do_global_dtors): Likewise.
18813
18814 2002-04-09  David S. Miller  <davem@redhat.com>
18815
18816         * config/sparc/sparc.c (sparc_extra_constraint_check): New
18817         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
18818         allow reloading pseudos.
18819         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
18820         * config/sparc/sparc-protos.h: Declare it.
18821
18822         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
18823         unsigned comparison warning.
18824         (output_restore_regs): Mark leaf_function as unused.
18825
18826 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18827
18828         * expr.c (is_aligning_offset): New function.
18829         (expand_expr, case COMPONENT_EXPR): Call it.
18830
18831 2002-04-08  David S. Miller  <davem@redhat.com>
18832
18833         PR target/6082
18834         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
18835
18836         Make init_priority work on SPARC when using GNU ld.
18837         * config/sparc/linux.h, config/sparc/linux64.h,
18838         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
18839         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
18840         * config/sparc/sol2-gld.h: New file to do the same.
18841         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
18842         sparc/sol2-gld.h to tm_file.
18843
18844         PR optimization/4328
18845         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
18846         * doc/md.texi: Document it.
18847         * config/sparc/sparc.md (movdi_insn_sp64_novis,
18848         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
18849         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
18850         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
18851         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
18852
18853 2002-04-08  Andreas Jaeger  <aj@suse.de>
18854
18855         * stmt.c (expand_asm_operands): Revert last patch from Richard
18856         Henderson.
18857
18858 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18859
18860         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
18861         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
18862
18863 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18864
18865         * doc/contrib.texi (Contributors): Add David O'Brien.
18866
18867 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
18868
18869         * configure.in (auto-build.h): Use target_alias and build_alias
18870         when running configure.
18871         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
18872         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
18873         * configure: Regenerate.
18874
18875 2002-04-07  David S. Miller  <davem@redhat.com>
18876
18877         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
18878
18879 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18880
18881         PR 5933
18882         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
18883         generating 32-bit pic code.
18884
18885 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
18886
18887         * cppinit.c (cpp_create_reader): Initialize
18888         discard_comments_in_macro_exp.
18889         (COMMAND_LINE_OPTIONS): Add "-CC" option.
18890         (cpp_handle_option): Handle "-CC" option.
18891         * cpplex.c (save_comment): If saving a C++ comment in
18892         a directive, convert it to a C comment.
18893         (_cpp_lex_direct): Pass second comment start character to
18894         save_comment to indicate comment type.
18895         * cpplib.c (_cpp_handle_directive): If processing
18896         a "#define" directive and discard_comments_in_macro_exp
18897         is false,  re-enable saving of comments.
18898         (lex_macro_node): If discard_comments_in_macro_exp is false,
18899         discard any comments before the macro identifier.
18900         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
18901         member.
18902         * cppmacro.c (cpp_get_token): If expanding a macro while
18903         processing a directive, discard any comments we might encounter.
18904         (parse_params): If discard_comments_in_macro_exp is false,
18905         ignore comments in the macro parameter list.
18906         * gcc.c (cpp_unique_options): Add "-CC" option.
18907         (option_map): Map "--comments-in-macros" to "-CC".
18908         * doc/cppopts.texi: Document "-CC" option.
18909         * f/lang-specs.h: Add "-CC" option.
18910         * testsuite/gcc.dg/cpp/maccom1.c: New test.
18911         * testsuite/gcc.dg/cpp/maccom2.c: New test.
18912         * testsuite/gcc.dg/cpp/maccom3.c: New test.
18913         * testsuite/gcc.dg/cpp/maccom4.c: New test.
18914         * testsuite/gcc.dg/cpp/maccom5.c: New test.
18915         * testsuite/gcc.dg/cpp/maccom6.c: New test.
18916
18917 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18918
18919         PR middle-end/6180
18920         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
18921
18922 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
18923
18924         PR c++/5571
18925         * stor-layout.c (layout_decl): Reset the RTL for the decl.
18926
18927         PR opt/5120
18928         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
18929         RTX_UNCHANGING_P for the functions arguments when a tail call
18930         is made.
18931
18932 2002-04-06  Jason Merrill  <jason@redhat.com>
18933
18934         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
18935         (parse_options_and_default_flags): Set them appropriately.
18936         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
18937
18938 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
18939
18940         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
18941         here.
18942
18943         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
18944         semicolon.
18945
18946         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
18947         types come in by-reference.  Fix typo in comment.
18948
18949 2002-04-05  David S. Miller  <davem@redhat.com>
18950
18951         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
18952         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
18953         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
18954         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
18955
18956 2002-04-05  David S. Miller  <davem@redhat.com>
18957
18958         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
18959         are not going to emit return instructions, emit at least a nop
18960         for the sake of sane backtraces.
18961
18962 2002-04-05  Richard Henderson  <rth@redhat.com>
18963
18964         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18965
18966 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
18967
18968         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
18969
18970 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
18971
18972         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
18973         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
18974         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
18975
18976 2002-04-05  Andreas Schwab  <schwab@suse.de>
18977
18978         * c-convert.c: Include c-common.h.
18979         * Makefile.in (c-convert.o): Updated.
18980
18981 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18982
18983         * mklibgcc.in: Use separate libgcc.map for each multilib.
18984         * Makefile.in (distclean): Don't remove libgcc.map here.
18985
18986 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18987
18988         * Makefile.in (s-mlib): Handle --disable-multilib by separate
18989         genmultilib invocation.
18990
18991 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
18992
18993         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
18994         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
18995         to num_gprs for symmetry.
18996         * config/mips/mips.c: Adjust accordingly.
18997
18998 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
18999
19000         * c-common.c (truthvalue_conversion): Rename, update.
19001         * c-common.h (c_common_truthvalue_conversion): New.
19002         * c-convert.c (convert): Update.
19003         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19004         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
19005         * c-typeck.c (build_binary_op, build_unary_op,
19006         build_conditional_expr): Update.
19007         * fold-const.c (constant_boolean_node, fold): Use langhook.
19008         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
19009         * langhooks.h (struct lang_hooks): New hook.
19010         * stmt.c (expand_decl_cleanup): Use langhook.
19011         * tree.h (truthvalue_conversion): Remove.
19012 objc:
19013         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19014
19015 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
19016
19017         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
19018         Add rules to make null object file.
19019
19020 2002-04-04  Jim Blandy  <jimb@redhat.com>
19021
19022         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
19023         macro formal parameter names.
19024
19025 2002-04-04  David S. Miller  <davem@redhat.com>
19026
19027         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
19028
19029 2002-04-04  Richard Henderson  <rth@redhat.com>
19030
19031         PR middle-end/5099
19032         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
19033         Support copies into and out of memory.  Don't accept allows_reg
19034         and allows_mem as gospel.
19035
19036 2002-04-04  Richard Henderson  <rth@redhat.com>
19037
19038         PR opt/6165
19039         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
19040         (write_dependence_p): Likewise.
19041
19042 2002-04-04  Richard Henderson  <rth@redhat.com>
19043
19044         * predict.c (estimate_bb_frequencies): Do frequency calculation
19045         with a volatile temporary.
19046
19047 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
19048
19049         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
19050
19051 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19052
19053         PR c++/6119
19054         * final.c (final_start_function): Don't bump profile_label_no here...
19055         (final_end_function): ...but here.
19056
19057 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19058
19059         * config/sparc/sparc.md (pic): New attribute.
19060         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
19061         into stack slots.
19062         (split after do_builtin_setjmp_setup): New.
19063
19064 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19065
19066         PR fortran/6106
19067         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
19068         change.
19069
19070 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
19071
19072         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
19073         UNITS_PER_WORD for zero sized aggregates.
19074
19075 2002-04-03  David S. Miller  <davem@redhat.com>
19076
19077         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
19078         one-character spec for this, just use %(link_gcc_c_sequence).
19079
19080 2002-04-03  David S. Miller  <davem@redhat.com>
19081
19082         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
19083         handling.
19084
19085 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19086
19087         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
19088         (DWARF_FRAME_RETURN_COLUMN): Move.
19089         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
19090         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
19091         * pa.c (except.h, predict.h): Include.
19092         (FRP): Delete.
19093         (store_reg_modify, set_reg_plus_d): Revise prototypes.
19094         (output_ascii): Add cast.
19095         (store_reg_modify): Revise to add frame notes.
19096         (set_reg_plus_d): Likewise.
19097         (compute_frame_size): Include space for eh data registers in frame if
19098         the current function calls eh_return.
19099         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
19100         function calls eh_return.  Save eh data registers if the current
19101         function calls eh_return.  Fix code to add frame notes.  Emit
19102         blockage to prevent insns with frame notes being scheduled in the
19103         delay slot of calls.
19104         (hppa_expand_epilogue): Restore eh data registers and do final stack
19105         adjustment if the current function calls eh_return.  Don't add frame
19106         notes.
19107         (output_call): Revise for change in length of call insn.  Don't do
19108         return pointer adjustment for an unconditional jump in the delay slot
19109         of a call when using frame notes.
19110         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
19111         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
19112         (ARG_POINTER_CFA_OFFSET): Define.
19113         * pa.md (return_external_pic): New pattern.
19114         (prologue): Correct formatting.  Use return_external_pic if current
19115         function calls eh_return.
19116         (call_internal_symref, call_value_internal_symref,
19117         sibcall_internal_symref, sibcall_value_internal_symref): Change default
19118         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
19119         respectively.
19120         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
19121
19122         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
19123         list of targets to check using "nop" insn.
19124         * configure: Rebuilt.
19125
19126 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
19127
19128         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
19129
19130 2002-04-03  David S. Miller  <davem@redhat.com>
19131
19132         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
19133         library sequence passed to the linker.
19134         (LINK_COMMAND_SPEC): Use it.
19135         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
19136         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
19137         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19138
19139 2002-04-03  Jason Merrill  <jason@redhat.com>
19140
19141         * except.c (struct eh_status): Remove protect_list.
19142         (begin_protect_partials, end_protect_partials): Remove.
19143         (add_partial_entry): Remove.
19144         * except.h: Remove prototypes.
19145
19146         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
19147         expand_decl_cleanup_eh.
19148
19149         PR c++/5636
19150         * tree.h (CLEANUP_EH_ONLY): New macro.
19151         * stmt.c (expand_decl_cleanup_eh): New fn.
19152         (expand_cleanups): Check CLEANUP_EH_ONLY.
19153         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
19154         Use expand_decl_cleanup_eh.
19155         (expand_stmt): Adjust.
19156         * c-common.h: Adjust prototype.
19157
19158 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
19159
19160         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
19161         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
19162         (cris_target_asm_function_epilogue): Ditto.
19163         (cris_initial_frame_pointer_offset): Ditto.
19164         (cris_simple_epilogue): Ditto.
19165         (cris_expand_builtin_va_arg): Variable-size types come in
19166         by-reference.
19167
19168 2002-04-03  David S. Miller  <davem@redhat.com>
19169
19170         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
19171         little-endian.
19172         (set_fast_math): Correct 'fsr' type.
19173
19174 2002-04-03  Richard Henderson  <rth@redhat.com>
19175
19176         PR opt/3569
19177         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
19178         * toplev.c (check_global_declarations): Use it.
19179         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
19180         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19181         (LANG_HOOKS_DECLS): Add it.
19182         * langhooks.c (lhd_warn_unused_global_decl): New.
19183         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19184         * c-objc-common.c (c_warn_unused_global_decl): New.
19185         * c-tree.h (c_warn_unused_global_decl): Declare.
19186         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19187
19188 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19189
19190         * langhooks-def.h (lhd_set_decl_assembler_name,
19191         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
19192         (LANG_HOOKS_INITIALIZER): Update.
19193         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
19194         * langhooks.h (struct lang_hooks): New hook.
19195         * tree.c (set_decl_assembler_name): Move to langhooks.c.
19196         (lang_set_decl_assembler_name): Remove.
19197         (init_obstacks): Don't set hook.
19198         (decl_assembler_name): New function.
19199         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
19200         (decl_assembler_name): New.
19201         (lang_set_decl_assembler_name): Remove.
19202
19203 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
19204
19205         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
19206         works properly with .hidden symbols.
19207         * configure: Rebuilt.
19208         * config.in: Rebuilt.
19209         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
19210         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
19211         properly with .hidden symbols.
19212
19213 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
19214
19215         PR middle-end/6102
19216         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
19217         USE argument.
19218
19219 2002-04-03  Richard Henderson  <rth@redhat.com>
19220
19221         PR opt/4120
19222         * sched-rgn.c (sets_likely_spilled): New.
19223         (sets_likely_spilled_1): New.
19224         (add_branch_dependences): Use it.
19225
19226 2002-04-02  Richard Henderson  <rth@redhat.com>
19227
19228         PR opt/4311
19229         * loop.h (LOOP_FIRST_PASS): New.
19230         * loop.c (strength_reduce): Mind it when deciding to unroll.
19231         * toplev.c (rest_of_compilation): Set it.
19232
19233 2002-04-02  David S. Miller  <davem@redhat.com>
19234
19235         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
19236         mems_ok_for_ldd_peep when the order of the loads being examined
19237         is reversed.
19238         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
19239         existing comment to increase comprehension of this situation.
19240
19241 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
19242
19243         * config/sh/sh.md: Don't use union real_extract.
19244
19245 2002-04-02  Richard Henderson  <rth@redhat.com>
19246
19247         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
19248
19249 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
19250
19251         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
19252         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
19253         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
19254         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
19255         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
19256         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
19257         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
19258         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
19259         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
19260         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
19261         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
19262         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
19263         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
19264         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
19265         Include as many configury headers via tm_file as possible.  This
19266         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
19267         * config/openbsd-oldgas.h: New file.
19268         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
19269         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
19270         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
19271         config/i386/i386-coff.h, config/i386/i386-interix.h,
19272         config/i386/iscdbx.h, config/i386/linux-aout.h,
19273         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
19274         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
19275         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
19276         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
19277         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
19278         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
19279         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
19280         config/i386/vxi386.h: Do not directly include configury headers.
19281         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
19282         Directly include configury headers that are no longer automatically
19283         included by the above headers.
19284         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
19285         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
19286         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
19287         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
19288         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
19289         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
19290         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
19291         (TARGET_VERSION): Define.
19292         * config/i386/beos-elf.h, config/i386/freebsd.h,
19293         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
19294         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
19295         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
19296         config/i386/sco5.h, config/i386/sysv4.h
19297         (TARGET_VERSION): Do not need to protect.
19298         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
19299         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
19300         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
19301         config/i386/i386-interix.h, config/i386/linux-aout.h,
19302         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
19303         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
19304         (YES_UNDERSCORES): Do not define - not needed.
19305         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
19306         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19307         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
19308         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
19309         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19310         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
19311         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
19312         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
19313
19314 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
19315             Richard Henderson  <rth@redhat.com>
19316
19317         PR c/5484
19318         * function.c (assign_temp): Accept either type or decl argument.
19319         Detect variables whose size is too large to fit into an integer.
19320         * stmt.c (expand_decl): Pass the decl, not the type.
19321
19322 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
19323
19324         * protoize.c: Match include directory usage with cppdefault.c.
19325
19326 2002-04-03  Jeffrey A Law  (law@redhat.com)
19327             Hans-Peter Nilsson  <hp@bitrange.com>
19328
19329         * combine.c (simplify_comparison): Avoid narrowing a comparison
19330         with a paradoxical subreg when doing so would drop signficant bits.
19331
19332 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
19333
19334         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
19335         if POINTERS_EXTEND_UNSIGNED is defined.
19336
19337 2002-04-02  Richard Henderson  <rth@redhat.com>
19338
19339         PR opt/3967
19340         * local-alloc.c (contains_replace_regs): LO_SUM may contain
19341         replace regs.
19342
19343 2002-04-02  Richard Henderson  <rth@redhat.com>
19344
19345         * doc/standards.texi: Document required freestanding libc entry points.
19346
19347 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
19348
19349         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
19350         associated splitter.  Remove MQ constraint.
19351         (ctrdi_internal4): Correct CCmode clobber.
19352
19353 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19354
19355         * milli64.S ($$dyncall): New function.
19356         * t-linux (LIB1ASMFUNCS): Revise module list.
19357         (LIB1ASMSRC): Use pa/milli64.S.
19358
19359 2002-04-02  Richard Henderson  <rth@redhat.com>
19360
19361         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
19362         rename solaris_sys_varargs_h.
19363
19364 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19365
19366         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
19367         the same mode as its component.
19368
19369 2002-04-02  Richard Henderson  <rth@redhat.com>
19370
19371         PR opt/190
19372         * final.c (this_is_asm_operands): Export.
19373         * output.h (this_is_asm_operands): Declare.
19374         * config/i386/i386.c (print_operand): Error odd asm operands.
19375
19376 2002-04-02  Richard Henderson  <rth@redhat.com>
19377
19378         PR opt/420
19379         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
19380
19381 2002-04-01  Richard Henderson  <rth@redhat.com>
19382
19383         PR target/1538
19384         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
19385         * fixinc/fixincl.x: Rebuild.
19386
19387 2002-04-01  Richard Henderson  <rth@redhat.com>
19388
19389         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
19390         (atomic_alloc, atomic_free): New.
19391         (SIZE, MASK_FOR, PTR_IN): New.
19392         (emergency_reg_state, emergency_reg_state_free): New.
19393         (emergency_labeled_state, emergency_labeled_state_free): New.
19394         (reg_state_alloced, labeled_state_alloced): New.
19395         (alloc_reg_state, free_reg_state): New.
19396         (alloc_label_state, free_label_state, free_label_states): New.
19397         (push, pop, dup_state_stack, free_state_stack): Use them.
19398         (desc_label_state): Likewise.
19399         (uw_frame_state_for): Free label states and state stack.
19400         (uw_update_reg_address): Eliminate warnings.
19401
19402 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
19403
19404         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
19405         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
19406
19407 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19408
19409         * c-decl.c (grokdeclarator): Update.
19410         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19411         * c-tree.h (c_mark_addressable): New.
19412         * c-typeck.c (default_function_array_conversion, build_unary_op,
19413         build_array_ref, convert_for_assignment): Update.
19414         (mark_addressable): Rename.
19415         * calls.c (try_to_integrate, expand_call): Use langhook.
19416         * expr.c (expand_expr): Use langhook.
19417         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
19418         * langhooks.h (struct lang_hooks): New hook.
19419         * stmt.c (expand_asm_operands): Use langhook.
19420         * tree.h (mark_addressable): Remove.
19421 objc:
19422         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19423
19424 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
19425
19426         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
19427         in previous change.
19428
19429 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
19430
19431         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
19432         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
19433
19434 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19435
19436         * c-common.c (unsigned_conversion_warning, convert_and_check,
19437         unsigned_type, signed_type, shorten_compare,
19438         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
19439         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
19440         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
19441         New.
19442         * c-decl.c (grokdeclarator): Update.
19443         * c-format.c (check_format_types): Update.
19444         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19445         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19446         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
19447         * convert.c (convert_to_integer): Use new hooks.
19448         * expmed.c (make_tree): Use new hooks.
19449         * expr.c (store_expr): Use new hooks.
19450         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
19451         all_ones_mask_p, unextend, fold): Use new hooks.
19452         * langhooks.h (struct lang_hooks_for_types): New hooks.
19453         * tree.h (signed_or_unsigned_type, signed_type,
19454         unsigned_type): Remove.
19455 objc:
19456         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19457         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19458
19459 2002-03-31  Richard Henderson  <rth@redhat.com>
19460
19461         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
19462         (desc_frgr_mem): Fix reference to f16-f31.
19463
19464 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19465
19466         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
19467         RTVEC_ELT): Const-ify.
19468         * varray.h (VARRAY_CHECK): Const-ify.
19469         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
19470         ggc_mark_rtvec, ggc_mark): Const-ify.
19471
19472 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
19473
19474         * diagnostic.c: Include langhooks-def.h.
19475         * Makefile.in (diagnostic.o): Update.
19476
19477 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
19478
19479         * c-common.c (c_unsafe_for_reeval): Rename.
19480         * c-common.h (c_unsafe_for_reeval): Rename.
19481         * c-decl.c (finish_incomplete_decl): Rename.
19482         (c_init_decl_processing): Don't set langhook.
19483         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19484         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19485         * c-objc-common.c (c_objc_common_init): Don't set langhook.
19486         * c-tree.h (finish_incomplete_decl): Rename.
19487         * langhooks-def.h (lhd_unsafe_for_reeval): New.
19488         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
19489         (LANG_HOOKS_INITIALIZER): Update.
19490         * langhooks.c (lhd_unsafe_For_reeval): New.
19491         * langhooks.h (struct langhooks): New hooks.
19492         * toplev.c (incomplete_decl_finalize_hook): Remove.
19493         (wrapup_global_declarations): Update.
19494         * tree.c (lang_unsafe_for_reeval): Remove.
19495         (unsafe_for_reeval): Update.
19496         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
19497         Remove.
19498 objc:
19499         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19500         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19501
19502 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
19503
19504         * diagnostic.c (print_error_function): Remove.
19505         (default_print_error_function): Rename.
19506         (report_error_function): Update.
19507         * diagnostic.h (print_error_function): Remove.
19508         (default_print_error_function): Remove.
19509         * langhooks-def.h (struct diagnostic_context): Predeclare.
19510         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
19511         (LANG_HOOKS_INITIALIZER): Update.
19512         * langhooks.h (struct diagnostic context): Predeclare.
19513         (struct lang_hooks): New hook.
19514
19515 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19516
19517         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
19518         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
19519         !flag_pic.
19520         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
19521         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
19522         of PIC_OFFSET_TABLE_REGNUM thruout.
19523         * config/rs6000/rs6000.md: Likewise.
19524         * config/rs6000/darwin.h: Likewise.
19525
19526 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19527
19528         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
19529         unsigned HOST_WIDE_INT, not unsigned int.
19530
19531 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19532
19533         PR middle-end/6096, middle-end/6098, middle-end/6099
19534         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
19535         CODE_LABELs.
19536         (fill_slots_from_thread): Likewise.
19537
19538 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19539
19540         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
19541         floating fields in float regs.
19542         (function_arg_record_value_2): Likewise.
19543
19544 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
19545
19546         * config/mmix/mmix.md (define_constants): Remove misleading
19547         FIXME.  Add MMIX_fp_rO_OFFSET.
19548         ("nonlocal_goto_receiver"): Don't have stack-frame address of
19549         saved rO as part of the pattern.  Remove FIXME.
19550         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
19551         here, at output-time.
19552
19553 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
19554
19555         PR middle-end/6100
19556         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
19557         REG_BR_PRED.
19558         (output_v9branch): Likewise.
19559
19560 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
19561
19562         * gcc.c: Revert previous patch for now.
19563         * config/i386/djgpp.h: Likewise.
19564
19565 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
19566
19567         * config/mmix/crti.asm (_init): Register _fini with atexit.
19568         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
19569
19570 2002-03-31  Richard Henderson  <rth@redhat.com>
19571
19572         PR target/3997
19573         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
19574         (ASM_OUTPUT_DEF_FROM_DECLS): New.
19575
19576 2002-03-31  Richard Henderson  <rth@redhat.com>
19577
19578         * libgcc2.c (__bb_exit_func): Make static.
19579
19580         * config/alpha/alpha.md (trap): New.
19581
19582 2002-03-31  Richard Henderson  <rth@redhat.com>
19583
19584         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
19585         promoted argument types; build trap.
19586         (expand_builtin_trap): New.
19587         (expand_builtin): Use it.
19588         * stmt.c (expand_nl_goto_receivers): Likewise.
19589         * expr.h (expand_builtin_trap): Declare.
19590         * libfuncs.h (LTI_abort, abort_libfunc): New.
19591         * optabs.c (init_optabs): Init abort_libfunc.
19592
19593 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
19594
19595         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
19596         (LINK_COMMAND_SPEC): ... from here.
19597         (init_gcc_specs): Duplicate it here too, omitting
19598         shared_name in the second copy.
19599         (init_spec): Test for duplicate
19600         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
19601
19602 2002-03-30  David S. Miller  <davem@redhat.com>
19603
19604         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19605         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
19606
19607 2002-03-30  Roger Sayle <roger@eyesopen.com>
19608             Richard Henderson  <rth@redhat.com>
19609
19610         * regmove.c (combine_stack_adjustments_for_block): Avoid
19611         emitting a stack adjustment of zero bytes.  Let delete_insn
19612         update bb->head.
19613
19614 2002-03-30  Richard Henderson  <rth@redhat.com>
19615
19616         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
19617         (sparc_emitting_epilogue): New.
19618         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
19619         * config/sparc/sparc-protos.h: Update.
19620         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
19621         (TARGET_SWITCHES): Update.
19622         * config/sparc/sparc.md (return): Remove.
19623         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
19624         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
19625         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
19626         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
19627         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
19628         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
19629         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
19630         Remove MASK_EPILOGUE.
19631         * doc/invoke.texi: Update.
19632
19633 2002-03-30  Daniel Berlin  <dan@dberlin.org>
19634
19635         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
19636         CPP will start the file for us.
19637
19638 2002-03-30  Richard Henderson  <rth@redhat.com>
19639
19640         PR target/5446
19641         * config/ia64/ia64.c (group_barrier_needed_p): Special case
19642         prologue_allocate_stack.
19643         (ia64_single_set): Use insn codes for recognition of special
19644         cases, not rtl matching.
19645         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
19646
19647 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
19648
19649         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
19650
19651 2002-03-30  Richard Henderson  <rth@redhat.com>
19652
19653         PR target/6032
19654         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
19655         or -fomit-frame-pointer with profiling.
19656         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19657         (FUNCTION_PROFILER): Do nothing.
19658         (PROFILE_HOOK): New.
19659         * config/sparc/sparc.c (sparc_override_options): Don't check
19660         code models for profiling.
19661         (sparc_function_profiler): Remove.
19662         (sparc_profile_hook): New.
19663         * config/sparc/sparc-protos.h: Update.
19664
19665 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
19666
19667         PR optimization/6086
19668         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
19669         of SUBREG of volatile MEM or because the MEM was mode dependent,
19670         return CLOBBER instead of unmodified SUBREG.
19671
19672 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
19673
19674         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
19675         when not optimizing.
19676
19677         * toplev.c (rest_of_compilation): Cann mark_constant_function
19678         only when optimizing.
19679
19680         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
19681         are NULL.
19682
19683         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
19684         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
19685         (try_optimize_cfg): clear all AUX fields.
19686
19687         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19688         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19689         (ix86_address_cost): Be prepared for SUBREGed registers.
19690         (legitimate_address_p): Accept SUBREGed registers.
19691
19692 2002-03-29  Richard Henderson  <rth@redhat.com>
19693
19694         PR target/5672
19695         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
19696
19697 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19698
19699         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
19700         for aggregate and TFmode types.
19701
19702 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
19703
19704         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
19705
19706 2002-03-29  Richard Henderson  <rth@redhat.com>
19707
19708         PR target/5886
19709         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
19710         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
19711
19712 2002-03-29  Richard Henderson  <rth@redhat.com>
19713
19714         PR target/6041
19715         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
19716         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
19717         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
19718         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
19719         conditional.
19720         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
19721
19722 2002-03-29  Dale Johannesen <dalej@apple.com>
19723
19724         * loop.c (combine_movables): Do allow combination of pseudos.
19725
19726 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
19727
19728         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
19729         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
19730         No functional change except ...
19731         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
19732         * doc/install.texi (*-*-freebsd*): Document port configuration.
19733
19734 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
19735
19736         * Makefile.in (convert.o, calls.o, expmed.o): Update.
19737         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
19738         Use new hooks.
19739         * builtin-types.def (BT_PTRMODE): Update.
19740         * c-common.c (type_for_size): Rename c_common_type_for_size.
19741         (type_for_mode): Similarly.
19742         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
19743         Use new hook.
19744         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
19745         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
19746         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
19747         Redefine.
19748         * c-typeck.c (common_type, comptypes, default_conversion):
19749         Use new hooks.
19750         * calls.c: Include langhooks.h.
19751         (emit_library_call_value_1): Use new hooks.  Avoid redundant
19752         calls.
19753         * convert.c: Include langhooks.h
19754         (convert_to_pointer, convert_to_integer): Use new hooks.
19755         * except.c (init_eh): Similarly.
19756         * expmed.c: Include langhooks.h.
19757         (expand_mult_add): Use new hooks.
19758         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
19759         try_casesi): Similarly.
19760         * fold-const.c (optimize_bit_field_compare, make_range,
19761         decode_field_reference, fold_truthop, fold): Similarly.
19762         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
19763         put_var_into_stack): Similarly.
19764         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
19765         LANG_HOOKS_TYPE_FOR_SIZE): New.
19766         (LANG_HOOKS_TYPES_INITIALIZER): Update.
19767         * langhooks.h (lang_hooks_for_types): New hooks.
19768         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
19769         * tree.c (get_unwidened, get_narrower): Similarly.
19770         * tree.h (type_for_mode, type_for_size): Remove.
19771         * varasm.c (force_const_mem): Use new hooks.
19772         * utils2.c (nonbinary_modular_operation): Update.
19773 objc:
19774         * objc-act.c (handle_impent): Update.
19775         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
19776         Redefine.
19777
19778 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
19779
19780         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
19781         * config/ia64/ia64.c (basereg_operand): New.
19782         * config/ia64/ia64-protos.h (basereg_operand): Declare.
19783         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
19784
19785 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
19786
19787         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
19788         unwind information when frame_pointer_needed.
19789         (mmix_assemble_integer): Tweak wording in comment.
19790
19791 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
19792
19793         * Makefile.in (except.o): Update.
19794         * except.c: Include langhooks.h.
19795         (init_eh): Use langhook.
19796         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
19797         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
19798         (LANG_HOOKS_INITIALIZER): Update.
19799         * langhooks.h (lang_hooks_for_types): New.
19800         (struct lang_hooks): Add it.
19801         * tree.c (make_lang_type_fn, make_lang_type): Remove.
19802         * tree.h (make_lang_type_fn, make_lang_type): Remove.
19803 config:
19804         * alpha/alpha.c: Include langhooks.h.
19805         (alpha_build_va_list): Use langhook.
19806         * d30v/d30v.c: Include langhooks.h.
19807         (d30v_build_va_list): Use langhook.
19808         * i386/i386.c: Include langhooks.h.
19809         (ix86_build_va_list): Use langhook.
19810         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
19811         * s390/s390.c: Include langhooks.h.
19812         (s390_build_va_list): Use langhook.
19813         * stormy16/stormy16.c: Include langhooks.h.
19814         (stormy16_build_va_list): Use langhook.
19815
19816 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19817
19818         PR c++/5964
19819         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
19820         attributes.
19821         (length): Compute variable length for branches/calls/jumps here.
19822         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
19823         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
19824         define branch_type attribute.
19825         (divsi3_sp32): Maximum length is 6 not 7.
19826         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
19827         call_address_untyped_struct_value_sp32,
19828         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
19829         * config/sparc/sparc.c (empty_delay_slot): New function.
19830         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
19831         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
19832
19833 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19834
19835         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
19836         nonzero_bits if not needed.
19837         (nonzero_bits) [XOR]: Likewise.
19838         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
19839         reg_last_set_mode and mode are both MODE_INT, but not equal.
19840         (record_value_for_reg): Compute reg_last_set_nonzero_bits
19841         in nonzero_bits_mode for MODE_INT modes.
19842
19843 2002-03-28  Richard Henderson  <rth@redhat.com>
19844
19845         PR target/5715
19846         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
19847         to GAS.  Correct drift between alternatives.
19848
19849 2002-03-28  Richard Henderson  <rth@redhat.com>
19850
19851         PR target/6087
19852         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
19853
19854 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
19855
19856         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
19857         emulation to the linker.
19858
19859 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
19860
19861         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
19862         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19863
19864 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
19865
19866         * combine.c (simplify_and_const_int): Make sure to apply mask
19867         when force_to_mode returns a constant integer.  PR3311.
19868
19869 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19870
19871         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
19872
19873 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19874
19875         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
19876         and Objective-C Dialect Options.
19877
19878 2002-03-28  Richard Henderson  <rth@redhat.com>
19879
19880         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
19881         comparison should be done vs !=0 not >0 return code.  Tidy cases.
19882
19883 2002-03-28  Richard Henderson  <rth@redhat.com>
19884
19885         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
19886         on to c_expand_body.
19887         * c-tree.h (finish_function): Update decl.
19888         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
19889
19890 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
19891
19892         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
19893
19894 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
19895
19896         * rtlanal.c: Include flags.h
19897         (may_trap_p): Do not mark FP operations if trapping
19898         if !flag_trapping_math
19899         * Makefile.in (rtlanal.o): Add dependency on flag.h
19900         * ifcvt.c (noce_operand_ok): Avoid the lameness.
19901
19902 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
19903
19904         * mips.md: Use dconst1, not 1.0, as first argument of
19905         REAL_VALUE_LDEXP.  Don't use union real_extract.
19906
19907 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
19908
19909         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
19910         rather than $target.  Heed program_prefix and
19911         program_transform_name.  Search for gas in cross-compiler case too.
19912         "test -x" rather than "test -f".
19913         (gcc_cv_ld): Likewise.
19914         (gcc_cv_nm): Heed program_prefix and program_transform_name.
19915         (gcc_cv_objdump): Likewise.
19916         * configure: Regenerate.
19917
19918 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19919
19920         * Makefile.in (attribs.o): Update.
19921         * attribs.c: Include langhooks.h.
19922         (decl_attributes): Use langhook.
19923         * c-decl.c (insert_default_attributes): Rename.
19924         * c-tree.h (c_insert_default_attributes): New.
19925         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
19926         (LANG_HOOKS_INITIALIZER): Update.
19927         * langhooks.h (struct lang_hooks): New hook.
19928         * tree.h (insert_default_attributes): Remove.
19929 objc:
19930         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
19931
19932 2002-03-27  Andreas Schwab  <schwab@suse.de>
19933
19934         * config/i386/i386.c (classify_argument): Also check for
19935         QUAL_UNION_TYPE.
19936
19937 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19938
19939         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
19940         any more.
19941
19942 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
19943
19944         * i960.md (ret): Set PC.
19945         (nonlocal_goto): Fix expander.
19946         * builtins.c (epxand_builin_longjmp): Check that we've emitted
19947         some jump or call.
19948
19949 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
19950
19951         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
19952         of libcall regions.
19953
19954 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19955
19956         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
19957         assigning to BLOCK_FOR_INSN directly.
19958
19959 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19960
19961         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
19962
19963 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19964
19965         * c-common.c (c_expand_expr): Fix prototype.
19966         * c-common.h (c_expand_expr): Always declare, update.
19967         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19968         * c-objc-common.c (c_objc_common_init): No global hook.
19969         * expr.c (expand_expr): Use langhook.
19970         * expr.h (enum expand_modifier): Conditionally declare.
19971         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
19972         (LANG_HOOKS_INITIALIZER): Update.
19973         * langhooks.c (lhd_expand_expr): New.
19974         * langhooks.h (struct lang_hooks): New hook.
19975         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
19976         (lang_independent_init): Don't default hook.
19977 objc:
19978         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19979
19980 2002-03-27  Richard Henderson  <rth@redhat.com>
19981
19982         PR target/6054
19983         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
19984         TARGET_CONST_GP.  Simplify conditions.
19985
19986 2002-03-27  Richard Henderson  <rth@redhat.com>
19987
19988         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19989         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
19990         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
19991
19992 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
19993
19994         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
19995         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
19996         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
19997         Remove unnecessary masks.
19998         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
19999         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
20000         -mwindows, -mdll switches and their negations.
20001
20002 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20003
20004         * gcc-common.c (lang_mark_false_label_stack): Remove.
20005         * ggc.h (lang_mark_false_label_stack): Similarly.
20006
20007 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
20008
20009         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
20010
20011         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
20012         or __rtems_ is defined.
20013
20014 2002-03-26  Richard Henderson  <rth@redhat.com>
20015
20016         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
20017         if a non-trivial load was emitted.
20018         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
20019         in high+extra+low case.
20020
20021 2002-03-26  Richard Henderson  <rth@redhat.com>
20022
20023         * config.gcc (sparc*-solaris): Use float_format=sparc.
20024
20025 2002-03-26  Richard Henderson  <rth@redhat.com>
20026
20027         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20028         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
20029         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
20030         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
20031         (WINT_TYPE_SIZE): Fix at 32.
20032
20033 2002-03-26  Richard Henderson  <rth@redhat.com>
20034
20035         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
20036         until after eh landing pad generation.
20037         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
20038         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
20039
20040 2002-03-26  Richard Henderson  <rth@redhat.com>
20041
20042         * expr.h (ADD_PARM_SIZE): One more convert for INC.
20043
20044 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
20045
20046         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
20047         and warning switches.
20048         (cc1_options):  Likewise.
20049
20050 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
20051
20052         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
20053         Restore more of the signal context.  Set no_reg_stack_frame.
20054         * config/ia64/unwind-ia64.c (unw_state_record):
20055         Add no_reg_stack_frame, comments.
20056         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
20057         (uw_update_context): Adjust bsp when unwinding from leaf,
20058         but not signal frame.
20059
20060 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
20061
20062         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
20063
20064 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
20065
20066         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
20067
20068 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
20069
20070         PR target/5621
20071         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
20072         "Add a pool_range attribute", which was lost during the ARM/Thumb
20073         merge.
20074
20075 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
20076
20077         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
20078         a register into the MAC16 accumulator.
20079
20080 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
20081
20082         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
20083         (Warning Options): Document -Wswitch-enum.
20084         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
20085         -Wswitch.
20086         (warn_switch_enum): Define variables.
20087         * flags.h (warn_switch_enum): Declare variables.
20088         * stmt.c (expand_end_case_type): When warn_switch_enum /
20089         -Wswitch-enum, perform switch checks.
20090         Fix PR c/5044.
20091
20092 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
20093
20094         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
20095         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
20096         (reload_muladdsi_compare0_scratch): Delete.
20097
20098 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
20099
20100         * doc/install.texi (*-*-freebsd*): Update.
20101
20102 2002-03-26  Richard Henderson  <rth@redhat.com>
20103
20104         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
20105         (SUB_PARM_SIZE): Cast DEC to ssizetype.
20106
20107         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
20108         types from the normal argument frame.
20109
20110         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
20111         variable sized objects by reference.
20112         (sparc_va_arg): Receive them by reference too.
20113
20114 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
20115
20116         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
20117         code to not restoring global registers.
20118
20119 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
20120
20121         * Makefile.in (ggc-common.o): Update.
20122         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
20123         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20124         * c-tree.h (c_mark_tree): New.
20125         * ggc-common.c: Include langhooks.h.
20126         (gcc_mark_trees): Use new langhook.
20127         * ggc-callbacks.c: Delete file.
20128         * ggc.h (lang_mark_tree): Remove.
20129         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
20130         (LANG_HOOKS_INITIALIZER): Update.
20131         * langhooks.h (struct lang_hooks): New hook.
20132 objc:
20133         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20134
20135 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
20136
20137         * doc/cpp.texi: Exclude entire Top node from printed manual.
20138         Move option index after directive index.  Insert page breaks
20139         before GFDL and concept index.  Index environment variables
20140         with command line options.
20141         * doc/cppenv.texi: Use @vtable for environment variable list.
20142         Add paragraph explaining semantics of empty elements in path
20143         variables.  Exclude a cross-reference to Fishkill from the
20144         manpage.  Remove an unnecessary cross-reference of the entry
20145         right above the referer.  Don't use @anchor in text that goes
20146         into manpage.
20147         * doc/cppopts.texi: Cross-reference the environment variables
20148         section, not the specific environment variable, for consistency.
20149
20150 2002-03-25  Richard Henderson  <rth@redhat.com>
20151
20152         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
20153         anywhere in the block.  Don't refer to insns that have been
20154         removed from the chain.  Iterate backward through the new insns.
20155         Don't refer to edges that have been removed.
20156
20157 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
20158
20159         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
20160         test for overflow of constant.
20161
20162 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
20163
20164         PR target/2623
20165         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
20166         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
20167         these patterns on arm_archv4.
20168
20169 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
20170
20171         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
20172         int".
20173
20174 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
20175
20176         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
20177         float_handled, float_handler, float_signal, set_float_handler,
20178         and do_float_handler.  Set handler for SIGFPE to crash_signal.
20179         * toplev.h: Don't prototype do_float_handler.
20180
20181         * c-lex.c: Fold parse_float into lex_number.  Make warning
20182         about portability of hex float constants more informative, and
20183         don't issue it on top of a syntax error.
20184         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
20185         their callers.
20186         * real.h: Define REAL_VALUE_ABS here...
20187         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
20188         simplify_unary_real, simplify_binary_real, and
20189         simplify_binary_is2orm1 into their callers.
20190         * tree.c: Fold build_real_from_int_cst_1 into caller.
20191
20192         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
20193
20194         * tsystem.h: Include float.h here...
20195         * libgcc2.c: ... not here.
20196
20197 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
20198
20199         Fixes for: PR bootstrap/3591, target/5676
20200         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
20201         defined.  Do not disable exceptions or rtti.
20202         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
20203         mcore.h.  Disable exceptions and rtti, since they are not
20204         supported by EPOC.
20205
20206 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
20207
20208         * c-decl.c (maybe_build_cleanup): Remove.
20209         * expr.c (expand_expr): Use langhook.
20210         * langhooks-def.h (lhd_return_null_tree,
20211         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
20212         (LANGHOOKS_INITIALIZER): Update.
20213         * langhooks.c (lhd_return_null_tree): New.
20214         * langhooks.h (struct lang_hooks): New hook.
20215         * tree-inline.c (initialize_inlined_parameters): Use langhook.
20216         * tree.h (maybe_build_cleanup): Remove.
20217
20218 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20219
20220         * regrename.c (build_def_use): Move recog_memoized
20221         before extract_insn.
20222
20223 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20224
20225         PR target/6043
20226         * expr.c (emit_group_store): Handle storing into CONCAT.
20227
20228 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
20229
20230         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
20231         corresponding MATCH_DUP.
20232
20233 2002-03-24  Richard Henderson  <rth@redhat.com>
20234
20235         * unroll.c (unroll_loop): Zero label_map.
20236
20237         * gcse.c: Include except.h.
20238         * Makefile.in (gcse.o): Update.
20239
20240 2002-03-24  Richard Henderson  <rth@redhat.com>
20241
20242         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
20243         Do resolve_unique_section before shared data clause.
20244
20245 2002-03-24  Richard Henderson  <rth@redhat.com>
20246
20247         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
20248
20249 2002-03-24  Richard Henderson  <rth@redhat.com>
20250
20251         * recog.c (peephole2_optimize): Split blocks when EH insns are
20252         generated in the middle of a block.  Do global life update if
20253         zapped EH edges.
20254
20255 2002-03-24  Richard Henderson  <rth@redhat.com>
20256
20257         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
20258
20259 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20260
20261         preprocessor/3951
20262         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
20263         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
20264         (init_dependency_output): Don't make no_output decision here.
20265
20266 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
20267
20268         * stmt.c (check_for_full_enumeration_handling): Remove tests of
20269         warn_switch.  Update description.
20270         (expand_end_case_type): Call check_for_full_enumeration_handling
20271         when warn_switch.
20272
20273 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20274
20275         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
20276         (m68hc11_split_move): Call it to see if the source and destination
20277         operands use the same direction auto inc/dec mode, otherwise make the
20278         source an offsetable memory operand and generate an add.
20279
20280 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20281
20282         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
20283         register for operand 2.
20284         ("*subsi3_zero_extendqi"): Likewise.
20285         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
20286         bits so that it is compatible with a pop.
20287         ("*andhi3_gen"): Likewise.
20288         ("xorhi3"): Likewise.
20289
20290 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20291
20292         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
20293         -pedantic here...
20294         (cpp_post_options): ... not here.
20295
20296 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20297             Aldy Hernandez  <aldyh@redhat.com>
20298
20299         Removal of separate preprocessor cpp0.
20300
20301         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
20302         cpp0, install-common): Update.
20303         * c-common.c (flag_preprocess_only): New.
20304         (c_common_init): Preprocess for -E.
20305         * c-common.h (flag_preprocess_only): New.
20306         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
20307         * c-objc-common.c (c_init_decl_processing): Exit quickly
20308         for NULL return from c_common_init.
20309         * cpplib.h (cpp_preprocess_file): New.
20310         * cppmain.c (main, general_init, pfile, progname): Remove.
20311         (do_preprocessing): Rename cpp_preprocess_file, don't call
20312         cpp_finish.  Don't close stdout here.
20313         (setup_callbacks): Update prototype.
20314         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
20315         Update.
20316         * tradcpp.c (main): Ignore -quiet.
20317 objc:
20318         * lang-specs.h (default_compilers): Preprocess with cc1obj.
20319
20320 2002-03-24  Richard Henderson  <rth@redhat.com>
20321
20322         PR optimization/5742
20323         * machmode.def: Add inner mode field to complex modes.
20324         * config/mips/mips.c (mips_function_value): Always define.  Add
20325         new argument to handle libcalls.
20326         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
20327         (FUNCTION_VALUE): Likewise.
20328         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
20329         * config/mips/mips-protos.h: Update.
20330
20331 2002-03-23  Richard Henderson  <rth@redhat.com>
20332
20333         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
20334         * config/sparc/sparc-protos.h: Update.
20335         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
20336
20337 2002-03-23  Richard Henderson  <rth@redhat.com>
20338
20339         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
20340         _start or _init begins the text segment.
20341
20342 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
20343
20344         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
20345         not HOST_WIDEST_INT.
20346         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
20347
20348 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
20349
20350         PR java/5489
20351         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
20352         operand argument to output_return_instruction.
20353         * arm.c (arm_print_operand, case 'd'): If the operand is
20354         const_true_rtx then just return.
20355         (arm_print_operand, case 'D'): If the operand is const_true_rtx
20356         then abort.
20357
20358 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
20359
20360         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
20361         (Warning Options): Document -Wswitch-default.
20362         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
20363         -Wswitch.
20364         (warn_switch_default): Define variable.
20365         (warn_switch): Update comment.
20366         * flags.h (warn_switch_default): Declare variable.
20367         (warn_switch): Update comment.
20368         * stmt.c (expand_end_case): Check for and, when
20369         warn_switch_no_default, warn of a missing default case.
20370
20371 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
20372
20373         * real.h (N): Special case 128 bit doubles.
20374
20375         * combine.c (simplify_comparison): When widening modes, ignore
20376         sign extension on CONST_INTs.
20377
20378 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
20379
20380         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
20381         passed to adjust_address.  Fix comment formatting.
20382
20383
20384 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
20385
20386         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
20387         Always make REAL_VALUE_TYPE a struct containing an array of
20388         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
20389         big it is.  Don't declare or use union real_extract.
20390
20391         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
20392         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
20393         (print_operand), config/arm/arm.c (output_move_double),
20394         config/arm/arm.md (consttable_4, consttable_8),
20395         config/romp/romp.c (output_fpops), config/s390/s390.h
20396         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
20397         (xtensa_output_literal): Don't use union real_extract.
20398
20399         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
20400         (sfmode_constant_to_ulong), config/ns32k/merlin.h
20401         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
20402         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
20403         (PRINT_OPERAND): Don't use local version of union
20404         real_extract.
20405
20406         * config/convex/convex.c (check_float_value), config/vax/vax.c
20407         (vax_float_literal), config/m88k/m88k.md (divdf3),
20408         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
20409         config/pdp11/pdp11.c (output_move_quad): Don't do host
20410         arithmetic on target floating point quantities.
20411
20412         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
20413         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
20414
20415         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
20416         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
20417
20418         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
20419         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
20420         INFINITY.
20421         * print-rtl.c (print_rtx): Disable code which needs
20422         floating-point emulator.
20423         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
20424         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
20425         depending on HOST_FLOAT_FORMAT to be defined properly.
20426
20427         * config/1750a/1750a.c (get_double, float_label): Delete.
20428         (print_operand): Delete huge commented-out chunk.  Use
20429         REAL_VALUE_TO_DECIMAL.
20430         * config/1750a/1750a-protos.h: Delete prototypes of deleted
20431         functions.
20432         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
20433         IEEE_FLOAT_FORMAT.
20434         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
20435         Use REAL_VALUE_TO_DECIMAL as ELF version does.
20436         * config/m88k/m88k.c (real_power_of_2_operand,
20437         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
20438         real_extract out of the union; run the input through
20439         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
20440         from that into the union.
20441         * config/pdp11/pdp11.c (output_move_double): Rearrange
20442         parentheses to make automatic indenter happy.
20443
20444         * doc/tm.texi (Cross-compilation): Rename node to "Floating
20445         Point" and rewrite to describe current situation.  Also adjust
20446         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
20447         match code.
20448         * doc/rtl.texi: Adjust cross reference.
20449
20450 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
20451
20452         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
20453         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
20454         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
20455         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
20456         prevent use of sp as a reload register.
20457         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
20458         non_acc_reg_operand.
20459         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
20460         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
20461         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
20462         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
20463
20464 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
20465
20466         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
20467         * cpplex.c (unterminated): Delete.
20468         (parse_string): No string literal may extend over multiple
20469         lines.  Suppress the error when preprocessing assembly.
20470         * cppmain.c (scan_translation_unit): Strings are single-line.
20471
20472         * doc/cpp.texi: Update to match.
20473
20474 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
20475
20476         PR optimization/5854
20477         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
20478         Shut up warnings.
20479         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
20480         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
20481         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
20482         const0 if scratch register was not allocated.
20483         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
20484         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
20485         with GEN_INT (...).
20486         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
20487         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
20488         with GEN_INT (...) everywhere.  Remove constraints in define_split
20489         patterns.
20490         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
20491         require scratch register for setting 0 into regs/non-pushable memory.
20492
20493 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
20494
20495         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
20496         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
20497
20498 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
20499
20500         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
20501         * cppinit.c (cpp_create_reader):  On by default.
20502         (cpp_handle_option):  Handle -W[no-]endif-labels.
20503         (cpp_post_options):  Also enable if -pedantic.
20504         * cpplib.c (do_else):  Use it.
20505         (do_endif):  Likewise.
20506         * doc/cppopts.texi:  Document new option.
20507         * doc/invoke.texi:  Document new option.
20508
20509 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
20510
20511         * config/i386/i386.c, config/i386/i386.md: Change all occurences
20512         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
20513
20514 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
20515
20516         * flow.c (calculate_global_regs_live): Clear aux fields of
20517         ENTRY and EXIT.
20518
20519 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
20520
20521         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
20522         REG or MEM subregs, pass rtx * instead of rtx to it.
20523         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
20524         rtx * instead of rtx to alter_subreg.
20525         * config/m32r/m32r.c (gen_split_move_double): Likewise.
20526         * config/pj/pj.c (pj_output_rval): Likewise.
20527
20528 2002-03-22  Richard Henderson  <rth@redhat.com>
20529
20530         PR target/3177
20531         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
20532         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
20533         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
20534         (ia64_expand_prologue): Look at int_regs, not words, for number
20535         of incomming int regs.
20536
20537 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
20538
20539         * expr.c (expand_expr): A RESULT_DECL is part of a call.
20540
20541 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
20542
20543         * toplev.c (flag_loop_optimize, flag_crossjumping):
20544         New static variables.
20545         (rest_of_compilation): Conditionalize crossjumping and
20546         loop optimizer.
20547         (parse_options_and_default_flags): Default loop_optimize and
20548         crossjumping.
20549         (lang_independent_options): Add -fcrossjumping and -floop-optimize
20550         * invoke.texi (crossjumping, loop-optimize): Document.
20551
20552 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20553
20554         * real.c (eiisneg): Move outside #ifdef NANS.
20555
20556 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
20557
20558         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
20559         frequencies match; avoid match on different loop depths.
20560         (try_crossjump_to_bb): Kill tests that no longer brings time
20561         savings.
20562         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
20563         updating code.
20564         (split_edge): Likewise.
20565
20566         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
20567         variable.
20568
20569         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
20570         * cfgrtl.c: Include insn-config.h
20571         (split_block) Dirtify block in presence of conditional execution
20572
20573 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20574
20575         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
20576         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
20577         (function_arg): Constify CUMULATIVE_ARGS.
20578         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
20579         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
20580         (UNITS_PER_DOUBLE): New macro.
20581         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
20582         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
20583         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
20584         fp_regs and stack_words.
20585         (EABI_FLOAT_VARARGS_P): New macro.
20586         * config/mips/mips.c (struct mips_arg_info): New.
20587         (mips_arg_info): New function.
20588         (function_arg_advance): Use it.  Add adjustment instructions here
20589         rather than in function_arg.
20590         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
20591         for VOIDmode at the beginning of the function.
20592         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
20593         (function_arg_pass_by_reference): Likewise.
20594         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
20595         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
20596         (mips_va_start): Likewise.  Use the new stack_words field of
20597         CUMULATIVE_ARGS to set up overflow area.  Reformat.
20598         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
20599         doubles and other types, aligning the overflow pointer for non-doubles
20600         too.  Remove some code duplication.  Replace hard-coded constants.
20601
20602 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
20603
20604         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
20605         (CLASS_UNITS): Undefine.
20606         (CLASS_MAX_NREGS): Use FP_INC.
20607         * config/mips/mips.c (compute_frame_size): Likewise.
20608         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
20609
20610 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
20611
20612         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
20613         prototype, and handle lexing numbers and identifiers.
20614         (parse_identifier): Update to new form of parse_slow.
20615         (parse_number): Fast path only, use parse_slow otherwise.
20616         (_cpp_lex_direct): Update calls to parse_number.
20617
20618 2002-03-21  DJ Delorie  <dj@redhat.com>
20619
20620         * bb-reorder.c (make_reorder_chain_1): Protect against
20621         when redundant edges are omitted.
20622         * predict.c (dump_prediction): Likewise.
20623
20624 2002-03-21  Richard Henderson  <rth@redhat.com>
20625
20626         PR target/5996
20627         * fixinc/inclhack.def (solaris_stdio_tag): New.
20628         * fixinc/fixincl.x: Regenerate.
20629
20630 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
20631
20632         PR c/5597
20633         * c-typeck.c (process_init_element): Flag non-static
20634         initialization of a flexible array member as illegal.
20635
20636 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
20637
20638         * config/rs6000/t-linux64: New.
20639         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
20640         t-ppccomm.  Use t-rs6000 and t-linux64.
20641         (powerpc64-*-gnu* <tmake_file>): Likewise.
20642         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
20643         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
20644         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
20645
20646 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
20647
20648         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
20649         flag_really_no_inline instead of optimize == 0.
20650
20651         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
20652
20653         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
20654
20655         * flags.h (flag_really_no_inline): New.
20656
20657         * c-common.c (c_common_post_options): Initialize
20658         flag_really_no_inline.
20659
20660         * toplev.c (flag_really_no_inline): New.
20661
20662 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
20663
20664         * config/avr/avr.md (length): Fix length computation for
20665         conditional branches.
20666
20667 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
20668
20669         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
20670         sdbout.o, profile.o): Update.
20671         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
20672         langhook.
20673         * c-common.h (gettags): Move here from tree.h.
20674         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
20675         insert_block, getdecls, kept_level_p, global_bindings_p): New.
20676         * dbxout.c (dbxout_init): Use getdecls langhook.
20677         * expr.c (expand_expr): Use insert_block langhook.
20678         * fold-const.c: Include langhooks.h.
20679         (fold_range_test, fold_binary_op_with_conditional_arg,
20680         fold): Use global_bindings_p langhook.
20681         * integrate.c (expand_inline_function): Use insert_block langhook.
20682         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
20683         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
20684         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
20685         LANG_HOOKS_GETDECLS): New.
20686         (LANG_HOOKS_INITIALIZER): Update.
20687         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
20688         langhook.
20689         * langhooks.h (struct lang_hooks_for_decls): New.
20690         (struct lang_hooks): Update.
20691         * profile.c: Include langhooks.h.
20692         (output_func_start_profiler): Use new langhooks.
20693         * sdbout.c: Include langhooks.h.
20694         (sdbout_init, sdbout_finish): Use getdecls langhook.
20695         * stmt.c: Include langhooks.h.
20696         (expand_fixup, fixup_gotos): Use new langhooks.
20697         * stor-layout.c: Include langhooks.h.
20698         (variable_size): Use global_bindings_p langhook.
20699         * toplev.c (compile_file): Use getdecls langhook.
20700         * tree-inline.c (remap_block): Use insert_block langhook.
20701         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
20702         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
20703
20704 2002-03-21  Richard Henderson  <rth@redhat.com>
20705
20706         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
20707         constants in .data when -fpic.
20708
20709 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20710
20711         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
20712         where appropriate.
20713
20714 2002-03-21  Tom Tromey  <tromey@redhat.com>
20715
20716         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
20717
20718 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20719
20720         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
20721
20722         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
20723
20724 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
20725             Richard Henderson  <rth@redhat.com>
20726
20727         PR c/5354
20728         * c-common.c (c_expand_expr): Preserve result of a statement
20729         expression if needed.
20730
20731 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
20732
20733         PR bootstrap/4195
20734         * genrecog.c (maybe_both_true_mode): Remove.
20735         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
20736         * machmode.def (Pmode): Likewise.
20737
20738 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
20739
20740         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
20741         (nonlocal_mentioned_p_1): New function.
20742         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
20743         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
20744         (mark_constant_function): Recognize pure functions.
20745         * rtl.h (global_reg_mentioned_p): New prototype.
20746         * rtlanal.c (global_reg_mentioned_p,
20747         global_reg_mentioned_p_1): New function.
20748
20749 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20750
20751         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
20752         UNIX assert.h.
20753         * fixinc/fixincl.x: Regenerate.
20754
20755 2002-03-20  Jason Merrill  <jason@redhat.com>
20756
20757         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
20758
20759 2002-03-20  Michael Meissner  <meissner@redhat.com>
20760
20761         * doc/invoke.texi (Optimize Options): Document that -O2 sets
20762         -fstrict-aliasing.
20763
20764 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
20765
20766         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
20767         ".literal_position" directive before the constant pool.
20768
20769 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20770
20771         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
20772         Add Craig Rodrigues.
20773         Add Brad Lucier to testers.
20774
20775 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20776
20777         PR target/4792
20778         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
20779         to if_then_else.
20780         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
20781         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
20782         instead of insn_extract.
20783
20784 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20785
20786         PR bootstrap/4192
20787         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
20788
20789         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
20790         stmt if some case has been output.
20791
20792 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
20793
20794         PR c/5972
20795         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
20796         movsfcc_1, movdfcc_1): Add %O2.
20797         * config/i386/i386.c (print_operand): Handle %ON.
20798         Print . before float condition codes in Sun as cmov syntax.
20799         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
20800         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
20801         no longer true.
20802
20803 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
20804
20805         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
20806         return instruction if PC was popped.
20807
20808 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
20809
20810         * config/xtensa/xtensa.md: Remove unused type attributes.
20811         (adddi_carry, subddi_carry): Change type attribute to "multi".
20812
20813 2002-03-19  Dale Johannesen  <dalej@apple.com>
20814
20815         PR optimization/5999, middle-end/5731
20816         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
20817         multiplications by reciprocals.
20818
20819 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20820
20821         * Makefile.in: Update.
20822         * c-common.c: Include langhooks.h.
20823         (inline_forbidden_p): Use new hook.
20824         * diagnostic.c: Include langhooks.h.
20825         (format_with_decl, announce_function,
20826         default_print_error_function): Use new hook.
20827         * dwarf2out.c (dwarf2_name): Use new hook.
20828         * function.c: Include langhooks.h.
20829         (init_function_start): Use new hook.
20830         * langhooks-def.h (lhd_decl_printable_name): New.
20831         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
20832         (LANGHOOKS_INITIALIZER): Update.
20833         * langhooks.c (lhd_decl_printable_name): New.
20834         * langhooks.h (struct lang_hooks): New hook.
20835         * toplev.c (decl_name, decl_printable_name): Remove.
20836         (open_dump_file): Use new hook.
20837         (process_options): Remove old hook.
20838         * tree.h (decl_printable_name): Remove.
20839 objc:
20840         * objc-act.c (objc_init): Remove old hook.
20841         (objc_printable_name): Export.
20842         * objc-act.h (objc_printable_name): New.
20843         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20844
20845 2002-03-19  Jim Blandy  <jimb@redhat.com>
20846
20847         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
20848         the start_source_file debug hook, not the current line number.
20849
20850 2002-03-19  Richard Henderson  <rth@redhat.com>
20851
20852         * flow.c (EH_USES): Provide default.
20853         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
20854         * doc/tm.texi (EH_USES): New.
20855
20856         * config/ia64/ia64.c (ia64_eh_uses): New.
20857         * config/ia64/ia64-protos.h: Update.
20858         * config/ia64/ia64.h (EH_USES): New.
20859
20860 2002-03-19  Richard Henderson  <rth@redhat.com>
20861
20862         * varasm.c (output_constant_def): Fix stupid typo.
20863
20864 2002-03-19  Richard Henderson  <rth@redhat.com>
20865
20866         PR 5879
20867         * except.c (current_function_has_exception_handlers): New.
20868         * except.h: Declare it.
20869         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
20870         Combine tests that disable all sibcalls for the function.
20871
20872 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
20873
20874         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
20875         for INTEGER_CST.
20876
20877 2002-03-19  Richard Henderson  <rth@redhat.com>
20878
20879         PR 5977, 5991
20880         * config/ia64/ia64.c: Revert 2002-03-01 patch.
20881         * config/ia64/ia64.h (INIT_EXPANDERS): New.
20882
20883 2002-03-19  Jim Blandy  <jimb@redhat.com>
20884
20885         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
20886         name, even if the replacement list contains no tokens, as required
20887         by Dwarf.
20888
20889 2002-03-19  Jason Merrill  <jason@redhat.com>
20890
20891         * varasm.c (globalize_decl): Get the name from the RTL, not
20892         DECL_ASSEMBLER_NAME.
20893
20894         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
20895
20896 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
20897
20898         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
20899         subdi_carry): Define.
20900
20901 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20902
20903         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
20904         about -fpic/-fPIC if extra_warnings set.
20905
20906 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20907
20908         * expr.c (expand_expr): Sign-extend CONST_INT generated from
20909         TREE_STRING_POINTER.
20910         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
20911
20912 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20913
20914         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
20915         in favor of SP if FRAME_POINTER_REQUIRED is false.
20916
20917 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
20918
20919         * emit-rtl.c (gen_int_mode): New function.
20920         * rtl.h: Prototype for it.
20921         * combine.c (make_extraction, simplify_comparison), expmed.c
20922         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
20923         (convert_modes, store_field), optabs.c (expand_fix),
20924         simplify-rtx.c (neg_const_int, simplify_unary_real),
20925
20926         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
20927         Use it instead of GEN_INT (trunc_int_for_mode (...)).
20928
20929 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
20930
20931         PR c/5656
20932         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
20933         convert_parm_for_inlining.
20934         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
20935         Define.
20936         * langhooks-def.h: Likewise.
20937         * objc/objc-lang.c: Likewise.
20938         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
20939         function.
20940         * tree-inline.c (initialize_inlined_parameters):
20941         Call convert_parm_for_inlining lang hook if needed.
20942         * c-typeck.c (c_convert_parm_for_inlining): New function.
20943         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
20944
20945 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
20946
20947         * calls.c (precompute_arguments): Do not assume that temporaries
20948         can be destroyed after expanding the argument.
20949         (expand_call): Likewise.
20950
20951 2002-03-15  Eric Christopher  <echristo@redhat.com>
20952
20953         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
20954         Fix register preference on last change.
20955         * config/mips/mips.c (mips_return_in_memory): New function.
20956         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
20957         * config/mips/mips-protos.h: Declare.
20958         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
20959         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
20960
20961 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
20962
20963         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
20964         a register too.
20965         (anddi3, iorsi3): Likewise.
20966
20967         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
20968         use %gprel for symbols that are going to be placed in linkonce
20969         sections.
20970
20971         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
20972         RETURN_ADDRESS_POINTER_REGNUM to $ra.
20973         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
20974         not needed.  Disregard leaf_function_p().
20975         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
20976         mips16 frame pointer.
20977         * config/mips/mips.md (store ra): Only to small SP offsets.
20978         2001-08-22  Graham Stott  <grahams@redhat.com>
20979         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
20980         return a REG rtx for the return address register.
20981
20982 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
20983
20984         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
20985         constant-pool addresses as "mode-dependent".
20986         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
20987
20988 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
20989
20990         PR target/5740
20991         * expr.c (emit_group_load): Use extract_bit_field if
20992         needed for CONCAT arguments.
20993
20994 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
20995
20996         PR target/4863
20997         * arm.md (tablejump): Make this a define_expand.  For PIC add the
20998         offset to the base of the table.
20999         (thumb_tablejump): Matcher for Thumb tablejump insn.
21000         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
21001         as the difference of two labels.
21002         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21003         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
21004         tables in the code.
21005         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
21006         * arm.c (get_jump_table_size): If the table is not in the text
21007         section, return zero.
21008
21009 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
21010
21011         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
21012         of gen_rtx_SUBREG.
21013         (arm_reload_out_hi): Use gen_lowpart instead of
21014         gen_rtx_SUBREG to access QImode components.
21015         * config/arm/arm.md: Disable zero_extend split for QImode
21016         subregs in BIG_ENDIAN mode.
21017         (storehi_bigend): Match use of least significant byte.
21018         (storeinthi): Remove extraneous SUBREG.
21019         Add missing construction of operands[2].
21020         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
21021         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
21022         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
21023
21024 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
21025
21026         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
21027         any_operand.
21028
21029 2002-03-17  Richard Henderson  <rth@redhat.com>
21030
21031         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
21032         explicitly.
21033
21034 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
21035
21036         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
21037         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
21038
21039 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21040
21041         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
21042
21043         * predict.c (estimate_bb_frequencies): Delete unused variables.
21044
21045 2002-03-17  Richard Henderson  <rth@redhat.com>
21046
21047         * config/ia64/ia64.c (ia64_attribute_table): Move before
21048         targetm definition.  Make static.
21049
21050 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
21051
21052         * c-common.h (yyparse, c_common_parse_file): New.
21053         * c-lang.c: Include c-common.h.
21054         (LANG_HOOKS_PARSE_FILE): Redefine.
21055         * c-lex.c: Include c-common.h.
21056         (yyparse): Rename c_common_parse_file.  Call yyparse.
21057         * c-parse.in (yyparse): Remove macro.
21058         * c-tree.h (yyparse_1): Remove.
21059         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
21060         (LANG_HOOKS_INITIALIZER): Update.
21061         * langhooks.h (struct lang_hoooks): New hook parse_file.
21062         * toplev.c (compile_file): Use parse_file hook.
21063         * tree.h (yyparse): Remove.
21064         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
21065
21066 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
21067
21068         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
21069         float_truncate, not fix.
21070         ("*truncdfsf2_real"): Ditto.
21071         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
21072
21073         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
21074
21075 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
21076
21077         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
21078         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
21079         where appropriate.  Make the second reference to
21080         leaf_function_p a function call, as intended.  Reindented.
21081
21082         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
21083         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
21084
21085         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
21086         add register to non-constant into sp.
21087
21088         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
21089         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
21090         (mips16_gp_pseudo_rtx): Lose.
21091         (INIT_EXPANDERS): Deleted.
21092         * config/mips/mips.c (mips_init_machine_status): New.
21093         (mips_free_machine_status): New.
21094         (mips_mark_machine_status): New.
21095         (override_options): Set them.
21096         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
21097         (struct machine_function): ... new.  Replaced all references.
21098         (mips_add_gc_roots): Don't mark them.
21099         (embedded_pic_fnaddr_reg): New, extracted from...
21100         (embedded_pic_offset): ... here.
21101         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
21102         (movsi): Likewise.
21103
21104 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
21105
21106         * cppinit.c: Revert -MD removal.
21107
21108 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21109
21110         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
21111         soft registers by default for 68HC12.
21112         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
21113         when compiling with -fomit-frame-pointer.
21114         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
21115         (expand_epilogue): Likewise.
21116         (m68hc11_gen_rotate): Use exg when rotating by 8.
21117
21118 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21119
21120         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
21121         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
21122         (splits): Remove unused add splits.
21123         ("*addhi3_68hc12"): Tune constraints.
21124         ("addhi_sp"): Try to use X instead of Y in all cases and if the
21125         constant fits in 8-bits and D is dead use abx/aby instructions.
21126         ("*addhi3"): Remove extern declaration of ix_reg.
21127         ("*subsi3"): Optimize and provide new split.
21128         ("subhi3"): Cleanup.
21129         ("*subhi3_sp"): Avoid saving X if we know it is dead.
21130         (arith splits): For 68hc12 save the address register on the stack
21131         and do the arithmetic operation with a pop.
21132
21133 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21134
21135         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
21136         allocating QImode in address registers.
21137         ("*movqi_m68hc11"): Likewise.
21138
21139 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
21140
21141         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
21142
21143 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
21144
21145         * cppinit.c (print_help): Display -MD and -MMD.
21146         Don't display usage string.  Update assertion syntax and
21147         typo.
21148         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
21149         (cpp_handle_option): Update.
21150
21151 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
21152
21153         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
21154         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
21155         and define it so that regardless of target CPU size,
21156         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
21157         of "int" rather than "long."
21158
21159 2002-03-15  Richard Henderson  <rth@redhat.com>
21160
21161         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
21162         size as a tree.
21163
21164 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21165
21166         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
21167         ("tstqi" split): Avoid using memory for tstqi on address register.
21168         (splits): Remove constraints.
21169         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
21170         ("cmpdf", "cmpsf"): Remove since not used.
21171         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
21172         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
21173
21174 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21175
21176         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
21177         ("neghi2"): Tighten constraints.
21178         ("one_cmplsi2"): Optimize and simplify split.
21179         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
21180
21181 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21182
21183         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
21184         and split of AND operation to clear the upper bits.
21185         ("*logicalsi3_zextqi"): Likewise.
21186         ("*logicallhi3_zexthi_ashift8"): Likewise.
21187         ("*logicalsi3_silshr16"): Likewise.
21188         ("logicalsi3_silshl16"): Likewise.
21189         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
21190
21191 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21192
21193         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
21194         (m68hc11_indirect_p): New function.
21195         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
21196         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
21197         TARGET_M6812.
21198         (asm_print_register): Likewise.
21199         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
21200         (m68hc11_indirect_p): Declare.
21201         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
21202         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
21203         (TARGET_SWITCHES): New option -mrelax.
21204         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
21205         destination.
21206         ("iorsi3", "xorsi3"): Likewise.
21207         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
21208         ("*andhi3_mem"): New to handle destination in memory with bclr
21209         and a scratch register.
21210         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
21211         ("*andhi3_const"): New when operand2 is constant.
21212         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
21213         ("*andhi3_gen"): Cleanup of the old "andhi3".
21214         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
21215         ("xorqi3"): Update constraints.
21216
21217 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21218
21219         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
21220         for reg_equiv_memory_loc when the operand is a register that does
21221         not get a hard register (stack location).
21222         (tst_operand): After reload, accept all memory operand.
21223         (symbolic_memory_operand): Fix detection of symbolic references.
21224         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
21225         accept symbols and any constant.
21226
21227 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21228
21229         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
21230         note on the insn that sets the soft frame register.
21231         (must_parenthesize): ix and iy are also reserved names.
21232         (print_operand_address): One more place where parenthesis are required
21233         to avoid confusion with register names.
21234         (m68hc11_gen_movhi): Allow push of stack pointer.
21235         (m68hc11_check_z_replacement): Fix handling of parallel with a
21236         clobber.
21237         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
21238         the replacement register is.
21239         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
21240         and D8_REGS classes.
21241         (MODES_TIEABLE_P): All modes are tieable except QImode.
21242
21243 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21244
21245         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
21246         (___subdi3): Likewise.
21247         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
21248         (__map_data_section): Optimize 68hc11 case.
21249
21250 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
21251
21252         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
21253         than a shift to avoid adding a register with itself.
21254         (m68hc11_memory_move_cost): Take into account NO_REGS.
21255         (m68hc11_register_move_cost): Update and use memory move cost
21256         for soft registers.
21257         (m68hc11_address_cost): Make cost of valid offset not 0 so that
21258         it gives more opportunities to cse to optimize.
21259         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
21260         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
21261
21262 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
21263
21264         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
21265         * c-common.def (CLEANUP_STMT): New tree node.
21266         * c-common.h (CLEANUP_DECL): New macro.
21267         (CLEANUP_EXPR): Likewise.
21268         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
21269         * expr.c (expand_expr): Tidy.
21270         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
21271         * tree-inline.c (initialize_inlined_parameters): Clean up
21272         new local variables.
21273
21274 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
21275
21276         PR bootstrap/4128
21277         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
21278         before movrXX only, use reg_overlap_mentioned_p.
21279         Only special case NE if just one insn can be generated.
21280
21281 2002-03-15  Jason Merrill  <jason@redhat.com>
21282
21283         * varasm.c (assemble_variable): Call resolve_unique_section before
21284         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
21285         of error_mark_node.
21286
21287 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
21288
21289         PR target/5170
21290         * arm.md (split pattern for thumb shiftable immediates): Add comment
21291         explaining non-obvious test.
21292
21293 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
21294
21295         PR target/5712
21296         * arm.md (movaddr, movaddr_insn): Delete.
21297
21298 2002-03-15  Jason Merrill  <jason@redhat.com>
21299
21300         * toplev.c (wrapup_global_declarations): Clarify variable handling.
21301         -fkeep-static-consts doesn't apply to comdats.
21302
21303 2002-03-14  Richard Henderson  <rth@redhat.com>
21304
21305         * c-decl.c: Include c-pragma.h.
21306         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
21307         (finish_function): Tidy.
21308         * c-pragma.c: Include c-common.h.
21309         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
21310         (handle_pragma_weak): Use them.
21311         (init_pragma): Register pending_weaks.
21312         * c-pragma.h (maybe_apply_pragma_weak): Declare.
21313         * print-tree.c (print_node): Print DECL_WEAK.
21314         * varasm.c (mark_weak_decls): Remove.
21315         (remove_from_pending_weak_list): Remove.
21316         (add_weak): Remove.
21317         (asm_emit_uninitialised): Call globalize_decl for weak commons.
21318         (weak_decls): Make a tree_list.
21319         (declare_weak): Cons weak_decls directly.
21320         (globalize_decl): Remove weak_decls elements directly.
21321         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
21322         symbols.  Don't pretend to handle aliases.
21323         (init_varasm_once): Update weak_decls registry.
21324         * Makefile.in: Update dependencies.
21325
21326 2002-03-14  Richard Henderson  <rth@redhat.com>
21327
21328         PR target/5312
21329         * config/ia64/ia64.c: Include tm_p.h last.
21330         (gen_nop_type): Remove duplicate definition.
21331         (cycle_end_fill_slots): Set sched_data for second L slot.
21332         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
21333         (nop_cycles_until): Fix typos.
21334
21335 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
21336
21337         PR optimization/5891
21338         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
21339
21340 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
21341
21342         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
21343           descriptors correctly.
21344
21345 2002-03-14  Michael Meissner  <meissner@redhat.com>
21346
21347         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
21348         100, allowing MAX_UNROLLED_INSNS to be overridden.
21349
21350         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
21351         --param.
21352
21353         * unroll.c (params.h): Include.
21354         (MAX_UNROLLED_INSNS): Delete, now in params.h.
21355
21356         * doc/invoke.texi (--param max-unroll-insns): Document.
21357
21358         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
21359
21360 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
21361
21362         * arm.md: Fix warnings about constraints in peepholes and splits.
21363
21364 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
21365
21366         * cpphash.h (struct lexer_state): Remove line_extension member.
21367         * cpplib.c (dequote_string, do_linemarker): New functions.
21368         (linemarker_dir): New data object.
21369         (DIRECTIVE_TABLE): No longer need to interpret #line in
21370         preprocessed source.  Delete obsolete comment about return
21371         values of handlers.
21372         (end_directive, directive_diagnostics, _cpp_handle_directive):
21373         Don't muck with line_extension.
21374         (directive_diagnostics): No need to issue warnings for
21375         linemarkers here.
21376         (_cpp_handle_directive): Issue warnings for linemarkers here,
21377         when appropriate.  Dispatch linemarkers to do_linemarker, not
21378         do_line.
21379         (do_line): Code to handle linemarkers split out to do_linemarker.
21380         Convert escape sequences in filename argument, both places.
21381
21382         * cppmacro.c (quote_string): Rename cpp_quote_string and
21383         export.  All callers changed.
21384         * cpplib.h (cpp_quote_string): Prototype.
21385         * cppmain.c (print_line): Call cpp_quote_string on to_file
21386         before printing it.
21387
21388         * doc/cpp.texi: Document that escapes are now interpreted in
21389         #line and in linemarkers, and that non-printing characters are
21390         converted to octal escapes when linemarkers are generated.
21391
21392 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
21393
21394         * emit-rtl.c (try_split): Use delete_insns.
21395         * recog.c (split_all_insns): Fix terminating condition.
21396
21397 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
21398             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
21399
21400         PR target/5828
21401         * arm.c (arm_output_epilogue): Fix floating-point register save
21402         adjustment when using a frame pointer.
21403
21404 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
21405
21406         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
21407         * config/mips/mips.c (compute_frame_size): Retrofit them here.
21408         (save_restore_insns, mips_expand_epilogue): And here.
21409         (build_mips16_call_stub): And here.
21410         (mips_function_value): Use the new macros to decide whether a single
21411         or complex float can be returned in floating-point registers.  Return
21412         a parallel rtx in the complex case.
21413
21414 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
21415
21416         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
21417         call after liveness analysis.
21418
21419         * recog.c (split_insn): Use delete_insn_and_edges.
21420
21421         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
21422         instructions to have branch prediction notes.
21423         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
21424
21425 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
21426
21427         * configure.in: Don't pass -Wno-long-long to a ADA compiler
21428         that doesn't support it.
21429         * configure: Regenerate.
21430
21431 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21432
21433         PR target/5626
21434         * config/sparc/sparc.md (normal_branch, inverted_branch,
21435         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
21436         inverted_fp_branch): Adjust calls to output_cbranch.
21437         Set length attribute.
21438         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
21439         output_v9branch.  Set length attribute.
21440         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
21441         predicates.
21442         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
21443         (output_cbranch): Likewise.  Handle far branches.
21444         (output_v9branch): Handle far branches.
21445         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
21446         Adjust prototypes.
21447         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
21448         noov_compare64_op predicates.
21449
21450 2002-03-13  Jason Merrill  <jason@redhat.com>
21451
21452         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
21453         into the function and constify it.
21454         * gthr-dce.h, gthr-solaris.h: Likewise.
21455
21456 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
21457
21458         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
21459         * config/rs6000/rs6000.c (rs6000_va_arg): Use
21460         std_expand_builtin_va_arg if not ABI_V4.
21461
21462 2002-03-13  Jason Merrill  <jason@redhat.com>
21463
21464         * varasm.c (globalize_decl): New fn.
21465         (assemble_start_function): Use it.
21466         (asm_emit_uninitialized): Use it.
21467         (assemble_alias): Use it.
21468         (assemble_variable): Use it.
21469
21470 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
21471
21472         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
21473         2002-03-12 internal visibility change.
21474         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
21475         visibility into SYMBOL_REF_FLAG.
21476
21477 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
21478
21479         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
21480         VOIDmode operand.  Add compile-time optimization for constant results.
21481
21482 2002-03-12  Jason Merrill  <jason@redhat.com>
21483
21484         * c-typeck.c (convert_for_assignment): Don't allow conversions
21485         between pointers and references.  Only allow lvalues to convert to
21486         reference.
21487
21488 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
21489
21490         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
21491         before prologue, to avoid scheduling problems.
21492
21493 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21494
21495         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
21496         (ELIMINABLE_REGS): Add sfp->sp.
21497         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
21498
21499 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21500
21501         PR optimization/5892
21502         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
21503
21504 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
21505
21506         * loop.c (basic_induction_var): Don't call convert_modes if mode
21507         classes are different.
21508
21509 2002-03-12  Richard Henderson  <rth@redhat.com>
21510
21511         PR optimization/5901
21512         * function.c (reposition_prologue_and_epilogue_notes): Position
21513         the markers after/before the last/first insn not deleted.
21514
21515 2002-03-12  Richard Henderson  <rth@redhat.com>
21516
21517         PR optimization/5878
21518         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
21519         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
21520         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
21521
21522         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
21523         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
21524         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
21525
21526         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
21527         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
21528         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
21529         also.  Don't set it if not flag_pic.
21530         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
21531         to be INVALID_REGNUM when not used.
21532
21533 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
21534
21535         * expmed.c (store_bit_field): Reset alias set for memory.
21536         (extract_bit_field): Same.
21537
21538 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21539
21540         * c-common.c (c_tree_code_type, c_tree_code_length,
21541         c_tree_code_name, add_c_tree_codes): Delete.
21542         * c-common.h (add_c_tree_codes): Delete.
21543         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
21544         Define.
21545         * c-objc-common.c (c_objc_common_init): Don't call
21546         add_c_tree_codes, instead set lang_unsafe_for_reeval.
21547         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21548         objc_tree_code_name, add_objc_tree_codes): Delete.
21549         (objc_init): Don't call add_objc_tree_codes.
21550         * objc/objc-lang.c (tree_code_type, tree_code_length,
21551         tree_code_name): Define.
21552         * toplev.c (lang_independent_init): Don't set
21553         tree_code_length[IDENTIFIER_NODE].
21554         * tree.c (tree_code_type, tree_code_length, tree_code_name):
21555         Delete definitions, moved to language front-ends.
21556         * tree.def (IDENTIFIER_NODE): Hardwire the length.
21557         * tree.h (tree_code_type, tree_code_length, tree_code_name):
21558         Const-ify.
21559         (tree_code_length): Change type to unsigned char.
21560
21561 2002-03-12  Richard Henderson  <rth@redhat.com>
21562
21563         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
21564         internal visibility change.
21565
21566 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21567
21568         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
21569         validize_mem() instead of change_address to avoid clobbering
21570         memory attributes.
21571
21572 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
21573
21574         * c-lex.h (position_after_whitespace): Remove.
21575
21576 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
21577
21578         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
21579         (lex_string): Use unsigned char pointers.
21580
21581 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
21582
21583         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
21584         is not a valid memory_operand.
21585
21586 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21587
21588         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
21589         * config/xtensa/lib1funcs.asm: Fix copyright to include
21590         special case for libgcc files.
21591         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
21592         (__divsi3): Likewise.
21593         (__umodsi3): Likewise.
21594         (__modsi3): Likewise.
21595         * config/xtensa/lib2funcs.S: Fix copyright to include
21596         special case for libgcc files.
21597
21598 2002-03-12  Tom Rix  <trix@redhat.com>
21599
21600         * collect2.c (resolve_lib_name): Move outside of
21601         OBJECT_FORMAT_COFF ifdef.
21602         (ignore_library): Same.
21603
21604 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21605
21606         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
21607
21608 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
21609
21610         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
21611         to function_section before writing out the constant pool.
21612
21613 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
21614
21615         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
21616         zero_constant.
21617         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
21618
21619 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
21620
21621         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
21622         (adddi3): Likewise.
21623         (movdf): Likewise.
21624         (movdi): Likewise.
21625         (cmpsi splitter): Likewise.
21626         (modsi3): Fail if <= 0.
21627         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
21628         redundant test when HOST_BITS_PER_WIDE_INT != 32.
21629         (reg_or_sub_cint64_operand): Likewise.
21630         (num_insns_constant_wide): Optimize sign extension.
21631         (rs6000_legitimize_address): Likewise.
21632
21633 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
21634
21635         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21636         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21637
21638 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
21639
21640         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
21641         address calculation.
21642
21643 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
21644
21645         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
21646         scratch register to DImode / TImode.
21647         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
21648         register used does not overlap the target.
21649
21650 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21651
21652         * Makefile.in (debug.o): Depend on debug.h.
21653         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
21654         * debug.c (do_nothing_debug_hooks): Likewise.
21655         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
21656         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
21657         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
21658         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
21659         * dwarfout.c (dwarf_debug_hooks): Likewise.
21660         * integrate.c (output_inline_function): Likewise.
21661         * objc/objc-act.c (synth_module_prologue): Likewise.
21662         * sdbout.c (sdb_debug_hooks): Likewise.
21663         * toplev.c (debug_hooks): Likewise.
21664         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21665
21666 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21667
21668         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
21669         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
21670         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
21671         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
21672         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
21673         * defaults.h (POINTER_SIZE): Define.
21674         * doc/tm.texi (POINTER_SIZE): Document default.
21675
21676 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21677
21678         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
21679
21680 2002-03-11  Richard Henderson  <rth@redhat.com>
21681
21682         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
21683         if rebuild_label_notes_after_reload.
21684
21685 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
21686
21687         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
21688         emit pic register load if "internal" visibility.
21689         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
21690         (cris_expand_builtin_va_arg): Do all computations on trees.
21691
21692 2002-03-11  Richard Henderson  <rth@redhat.com>
21693
21694         * rtlanal.c: Include recog.h.
21695         (keep_with_call_p): Fix thinko.
21696         * Makefile.in (rtlanal.o): Update dependencies.
21697
21698 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
21699
21700         * genflags.c (gen_insn): Use IS_VSPACE.
21701         * genoutput.c (output_insn_data): Likewise.
21702         (process_template): Likewise.
21703
21704 2002-03-11  Richard Henderson  <rth@redhat.com>
21705
21706         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
21707
21708 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
21709
21710         * Makefile.in: Update.
21711         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
21712         Update documentation.
21713         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
21714         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
21715
21716 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
21717
21718         * Makefile.in: Give texi2pod its input file as a command line
21719         argument, not on stdin.
21720
21721 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
21722             Daniel Berlin  <dan@dberlin.org>
21723
21724         C++ alias analysis improvement.
21725         * alias.c (record_component_aliases): Record aliases for base
21726         classes too.
21727
21728 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
21729
21730         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
21731
21732 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
21733
21734         * toplev.c (vms_fopen): Remove, not needed.
21735
21736         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
21737
21738         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
21739
21740         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
21741         for FP, already done later.
21742
21743         * toplev.c (debug_args): Add entry for VMS_DEBUG.
21744         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
21745
21746 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
21747
21748         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
21749         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
21750         LARGEST_EXPONENT_IS_NORMAL for the given mode.
21751         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
21752         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
21753         (ediv, emul, eldexp, esqrt): Likewise.
21754         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
21755         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
21756         (saturate): New function.
21757         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
21758         (make_nan): Use a saturation value instead of a NaN if
21759         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
21760         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
21761         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
21762         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
21763         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
21764         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
21765         !ROUND_TOWARDS_ZERO.
21766         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
21767         (ROUND_TOWARDS_ZERO): Document.
21768
21769 2002-03-11  Andreas Jaeger  <aj@suse.de>
21770
21771         * cfg.c (dump_flow_info): Remove unused variable.
21772
21773 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
21774
21775         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
21776         computations on trees.
21777
21778 2002-03-10  Richard Henderson  <rth@redhat.com>
21779
21780         PR 5693:
21781         * reload.c (copy_replacements_1): New.
21782         (copy_replacements): Use it to recurse through the rtx.
21783
21784 2002-03-10  Richard Henderson  <rth@redhat.com>
21785
21786         * loop.c (strength_reduce): Compute number of iterations as
21787         unsigned HOST_WIDE_INT.
21788
21789 2002-03-10  Richard Henderson  <rth@redhat.com>
21790
21791         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
21792         to move away from the end of the block.
21793
21794 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
21795
21796         PR preprocessor/5899
21797         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
21798
21799 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21800
21801         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
21802
21803         * attribs.c (decl_attributes): Fix signed/unsigned warning.
21804
21805 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
21806
21807         * config/mmix/mmix.c: Improve comments.
21808         (mmix_target_asm_function_prologue): Drop variable
21809         empty_stack_frame.  Don't allocate unused slot above fp.
21810         (mmix_target_asm_function_epilogue): Mirror prologue changes.
21811         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
21812         brace in first column.
21813         (enum reg_class): Ditto.
21814         (FIRST_PARM_OFFSET): Now 0.
21815         (USER_LABEL_PREFIX): Remove #if 0:d definition.
21816
21817 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21818
21819         * combine.c (make_extraction): Fix error in last change.
21820
21821 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21822
21823         * c4x.c (c4x_fp_reglist): Const-ify.
21824         * cris.c (cris_print_operand): Likewise.
21825         * i386.c (ix86_va_arg): Likewise.
21826         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
21827         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
21828         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
21829         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
21830         * mcore.h (regno_reg_class): Likewise.
21831         * mips.c (gen_int_relational): Likewise.
21832         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
21833         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
21834         * pdp11.c (move_costs): Likewise.
21835         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
21836         * s390.c (s390_branch_condition_mnemonic, regclass_map):
21837         Likewise.
21838         * s390.h (regclass_map): Likewise.
21839         * sh.c (shift_amounts): Likewise.
21840         * sh.md (rotlsi3): Likewise.
21841
21842 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21843
21844         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
21845         (ne0+5): Use new clobber to generate proper shift pattern.
21846         Patch by Michael Matz <matz@kde.org>.
21847
21848 2002-03-09  Andreas Schwab  <schwab@suse.de>
21849
21850         * gcc.c (validate_all_switches): Also handle `%W{...}'.
21851
21852 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21853
21854         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
21855
21856 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
21857
21858         PR middle-end/5877
21859         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
21860         even for non-representable constants.
21861
21862 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21863
21864         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
21865         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
21866         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
21867         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
21868         (pop_function_context): Compute MAY_SHARE parameter for
21869         fixup_var_refs.
21870         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
21871         (gen_mem_addressof): Call fixup_var_refs with new parm.
21872
21873         * combine.c (make_extraction): Don't make extension of CONST_INT.
21874
21875 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21876
21877         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
21878         in o32 and o64 ABIs.
21879         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
21880         but getting fixed-size structs passed in registers regardless of
21881         padding in o32 and o64 ABIs.
21882
21883         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
21884         offset before loading address of argument passed by transparent
21885         reference.
21886
21887 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21888
21889         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
21890
21891 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21892
21893         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
21894         marker such that registers after it are saved.
21895
21896 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21897
21898         * sparc.c (arith_4096_operand): Fix error in last change.
21899
21900 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21901
21902         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
21903         defaults for MEABI.
21904
21905 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21906
21907         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
21908         vectors.
21909
21910 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21911
21912         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
21913
21914 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
21915
21916         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
21917         removed; fix return value.
21918         * combine.c (combine_instructions): Dirtify blocks where we failed to
21919         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
21920         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
21921
21922 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21923
21924         * gcse.c (insert_insn_end_bb): Fix typo in last change.
21925
21926 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
21927
21928         * recog.c (peephole2_optimize): Re-distribute EH edges.
21929
21930 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
21931
21932         * expr.c (expand_expr): Use unsave lang hook.
21933         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
21934         (LANG_HOOKS_INITIALIZER): Update.
21935         * langhooks.h (struct lang_hooks): New hook unsave.
21936         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
21937         (unsave_expr_1): Remove unused lang_unsave_expr_now.
21938         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
21939         (unsave_expr_now): Remove.
21940         * tree.h (unsave_expr_now, lang_unsave,
21941         lang_unsave_expr_now): Remove.
21942         (lhd_unsave): New.
21943
21944 2002-03-08  Andreas Jaeger  <aj@suse.de>
21945
21946         * flow.c (propagate_block_delete_insn): Remove unused variable.
21947
21948 2002-03-08  Kazu Hirata  <kazu@hxi.com>
21949
21950         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
21951         insn length for memory load/store.
21952
21953 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21954
21955         * doc/install.texi (--with-libiconv-prefix): Document.
21956
21957 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
21958
21959         * doc/sourcebuild.texi: Fix typo.
21960
21961 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
21962
21963         PR c/3711
21964         * builtins.c (std_expand_builtin_va_arg): Do all computations on
21965         trees.
21966
21967 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21968
21969         * rtl.c (copy_most_rtx): Move from here ...
21970         * emit-rtl.c (copy_most_rtx): ... to here.
21971
21972 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21973
21974         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
21975         SUBTARGET_CPP_SIZE_SPEC.
21976         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
21977
21978         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
21979
21980 2002-03-07  Matt Hiller  <hiller@redhat.com>
21981
21982         * gensupport.c (first_dir_md_include): Renamed from include;
21983         change all references.
21984         (last_dir_md_include): Renamed from last_include; change all
21985         references.
21986         (init_md_reader): Unconditionally initialize base_dir whether or
21987         not filename is a relative path.
21988
21989 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
21990
21991         * config/fp-bit.c (_unord_f2): Compile it in even if
21992         US_SOFTWARE_GOFAST is enabled.
21993
21994         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
21995         NULL_RTX.  Set all HFmode operations as NULL_RTX.
21996         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
21997         NULL_RTX, try reversing the comparison and the operands.
21998
21999 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
22000
22001         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
22002         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
22003         and MATCH_OP_DUP.
22004
22005 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
22006
22007         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
22008
22009 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
22010
22011         * basic-block.h (fixup_abnormal_edges): Declare.
22012         * reload1.c (fixup_abnormal_edges): New function.
22013         * reg-stack.c (convert_regs): Use it.
22014
22015         * gcse.c (insert_insn_end_bb): Handle trapping insns.
22016
22017         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
22018
22019 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
22020
22021         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
22022         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
22023         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
22024         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
22025         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
22026         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
22027         unless x and y could be infinite.
22028         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
22029         Check that the common type of both arguments is a real, even for
22030         targets without unordered comparisons.  Allow an integer argument
22031         to be compared against a real.
22032         (expand_tree_builtin): Use expand_unordered_cmp.
22033         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
22034         * cse.c (fold_rtx): Likewise.  Fix indentation.
22035         * fold-const.c (fold_real_zero_addition_p): New.
22036         (fold): Use it, and the new HONOR_... macros.
22037         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
22038         * jump.c (reversed_comparison_code_parts): After searching for
22039         the true comparison mode, use HONOR_NANS to decide whether it
22040         can be safely reversed.
22041         (reverse_condition_maybe_unordered): Remove IEEE check.
22042         * simplify-rtx.c (simplify_binary_operation): Use the new macros
22043         to decide which simplifications are valid.  Allow the following
22044         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
22045         and (a - -b) to (a + b).
22046         (simplify_relational_operation): Use HONOR_NANS.
22047         * doc/tm.texi: Document the MODE_HAS_... macros.
22048
22049 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
22050
22051         * combine.c (simplify_comparison): If simplifying a logical shift
22052         right and compare with constant, force the comparison to unsigned.
22053
22054 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
22055
22056         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
22057
22058         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
22059         -mabi=no-altivec
22060         (alt_reg_names): Remove % for vrsave.
22061
22062 2002-03-06  Richard Henderson  <rth@redhat.com>
22063
22064         PR optimization/5844
22065         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
22066         if used indicates we've already emitted one copy of an operand.
22067         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
22068         (gen_split): Supply a non-null used.
22069
22070 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
22071
22072         * reload1.c (reload): Unshare all rtl after reload is done.
22073
22074         * simplify-rtx.c (simplify_plus_minus): Do not abort,
22075         but simply fail if the expression is too complex to simplify.
22076         (simplify_gen_binary): Handle simplify_plus_minus failures.
22077
22078 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
22079
22080         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
22081         consistently call delete_trivially_dead_insns after CSE and GCSE;
22082         fix DFI_life dumping; do jump threading after liveness; do crossjumping
22083         after liveness2; update comment in last crossjumping.
22084         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
22085
22086 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
22087
22088         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
22089         after completing fast dead code elimination.
22090
22091         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
22092         COMPARE operator.
22093
22094 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
22095
22096         * version.c:  Fix misplaced leading blanks on first line.
22097
22098 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
22099
22100         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
22101
22102 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
22103
22104         * cfgcleanup.c (mentions_nonequal_regs): New function.
22105         (thread_jump): Use it.
22106         * toplev.c (rest_of_compilation): Run jump threading after
22107         liveness.
22108
22109 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
22110
22111         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
22112         patch.
22113
22114 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
22115
22116         * predict.c (estimate_bb_frequencies): Do not reload the
22117         frequencies from notes.
22118
22119 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
22120
22121         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
22122         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
22123
22124         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
22125         delete_noop_moves): Return indeger.
22126         * flow.c (ndead): New variable.
22127         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
22128         BB argument; update callers.
22129         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
22130         (life_analysis): Do not call purge_all_dead_edges.
22131         (update_life_info): Return number of deleted insns; print statistics.
22132         (update_life_info_in_dirty_blocks): likewise.
22133         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
22134         return number of insns deleted.
22135
22136         * cse.c: Include timevar.h
22137         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
22138         iterate until stabilizes; print statistics; return number of killed
22139         insns.
22140         * Makefile.in: (cse.o): Add timevar.h dependency
22141         * rtl.h (delete_trivially_dead_insns): New.
22142         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
22143         * toplev.c (rest_of_compilation): Update callers.
22144
22145         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
22146         (try_optimize_cfg): Do not update liveness.
22147         (cleanup-cfg): Loop until try_optimize_cfg and dead code
22148         removal stabilizes; use delete_trivially_dead_insns.
22149
22150         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
22151
22152 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
22153
22154         * cppmain.c (setup_callbacks): Disable #pragma and #ident
22155         callbacks when processing assembly language.
22156
22157 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22158
22159         * pa.h (ASM_FILE_END): Define.
22160         * som.h (ASM_FILE_END): Delete.
22161
22162         * pa.c (function_arg): Don't pass floats in general registers in
22163         indirect calls if TARGET_ELF32.
22164
22165 2002-03-05  Richard Henderson  <rth@redhat.com>
22166
22167         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
22168
22169 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
22170
22171         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
22172
22173 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22174
22175         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
22176         -r command line.  Don't hide any symbols if not building
22177         shared libgcc.
22178
22179 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
22180
22181         * cfg.c (dump_flow_info): Warn about profile mismatches.
22182         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
22183         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
22184
22185 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22186
22187         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
22188         wide volatile memory by parts.
22189
22190 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
22191
22192         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
22193         is NULL.
22194
22195 2002-03-05  Richard Henderson  <rth@redhat.com>
22196
22197         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
22198
22199 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
22200
22201         * toplev.c (documented_lang_options): Document more
22202         language-specific options.
22203         * doc/invoke.texi (Warning Options): Correct documentation for
22204         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
22205         * c-decl.c (c_decode_option): Use a table to handle warning options.
22206
22207 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
22208
22209         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
22210         parameter to mmix_encode_section_info.
22211         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
22212         relocatably.  Always produce ELF, not mmo if linking relocatably.
22213         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
22214         first is non-zero, don't add symbol prefix.
22215         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
22216         prototype accordingly.
22217
22218 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
22219
22220         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
22221
22222 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
22223
22224         * configure.in: Increase required makeinfo version to 4.1.
22225         * configure: Regenerate.
22226
22227 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
22228
22229         * .cvsignore: Remove *.info* and genrtl*; these files are generated
22230         elsewhere now.
22231
22232 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
22233
22234         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
22235         * doc/invoke.texi: Fix @math uses.
22236
22237 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
22238
22239         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
22240         removal
22241
22242 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
22243
22244         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
22245         (powerpc-*-eabisimaltivec*): Same.
22246
22247         * config/rs6000/t-ppcendian: New.
22248
22249 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22250
22251         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
22252         nonimmediate_src_operand and nonimmediate_lsrc_operand to
22253         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
22254
22255 2002-03-03  Richard Henderson  <rth@redhat.com>
22256
22257         * toplev.c (rest_of_decl_compilation): Revert last two changes.
22258
22259 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
22260
22261         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
22262         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
22263         tree.c, config/m68k/m68k.c:
22264         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
22265         REAL_ARITHMETIC blocks unconditional.  Delete some further
22266         #ifdef blocks predicated on REAL_ARITHMETIC.
22267         * flags.h, toplev.c: Delete remaining references to
22268         flag_pretend_float.
22269
22270         * doc/invoke.texi: Remove documentation of -fpretend-float.
22271         * doc/tm.texi: Describe the various REAL_* macros as provided by
22272         real.h, not by the target configuration files.
22273
22274         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
22275         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
22276         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22277         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
22278         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
22279         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
22280         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
22281         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
22282         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22283         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
22284         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22285         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
22286         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
22287         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
22288         config/xtensa/xtensa.h:
22289         Do not define, undefine, or mention in comments any of
22290         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
22291         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
22292         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
22293         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
22294         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
22295         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
22296         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
22297         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
22298         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
22299
22300 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22301
22302         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
22303         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
22304         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
22305         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
22306         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
22307         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
22308         Delete.
22309         * defaults.h (BITS_PER_WORD): Define.
22310         * doc/tm.texi (BITS_PER_WORD): Document default value.
22311
22312         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
22313         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
22314         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
22315
22316 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22317
22318         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
22319         lieu of explicit sizeof/sizeof.
22320         * i386.c (override_options, ix86_init_mmx_sse_builtins,
22321         ix86_expand_builtin): Likewise.
22322         * mips.c (mips_add_gc_roots): Likewise.
22323         * mmix.c (mmix_output_condition): Likewise.
22324         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
22325         altivec_init_builtins): Likewise.
22326         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
22327         * cppexp.c (Nsuff, parse_number): Likewise.
22328         * cppinit.c (builtin_array_end): Likewise.
22329         * gcc.c (n_default_compilers, process_command): Likewise.
22330         * genpreds.c (output_predicate_decls): Likewise.
22331         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
22332         * lcm.c (N_ENTITIES): Likewise.
22333         * stor-layout.c (set_sizetype): Likewise.
22334
22335 2002-03-03  Richard Henderson  <rth@redhat.com>
22336
22337         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
22338         for types or labels.
22339
22340 2002-03-03  Richard Henderson  <rth@redhat.com>
22341
22342         * c-decl.c (start_decl): Initialized variables are not common.
22343
22344 2002-03-02  Per Bothner  <per@bothner.com>
22345
22346         * gcc.c (option_map):  Suport new --bootclasspath option.
22347         --CLASSPATH is now just an alias for --classpath.
22348
22349 2002-03-02  Richard Henderson  <rth@redhat.com>
22350
22351         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
22352         load if "internal" visibility.
22353         * doc/extend.texi: Document visibility meanings.
22354
22355 2002-03-02  Richard Henderson  <rth@redhat.com>
22356
22357         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
22358         to functions as well.
22359
22360 2002-03-02  Richard Henderson  <rth@redhat.com>
22361
22362         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
22363         (handle_visibility_attribute): Don't call assemble_visibility.
22364         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
22365         without asmspec.  Invoke assemble_alias when needed.
22366         * varasm.c (maybe_assemble_visibility): New.
22367         (assemble_start_function, assemble_variable, assemble_alias): Use it.
22368
22369 2002-03-02  Richard Henderson  <rth@redhat.com>
22370
22371         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
22372         invoke ENCODE_SECTION_INFO with first call flag.
22373
22374         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
22375         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
22376         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
22377         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
22378         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
22379         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
22380         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
22381         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
22382         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
22383         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
22384         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
22385         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
22386         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
22387         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
22388         config/mcore/mcore-protos.h, config/mcore/mcore.c,
22389         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
22390         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
22391         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
22392         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
22393         config/sh/sh.h, config/sparc/sparc.h,
22394         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
22395         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
22396         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
22397         FIRST argument.  As needed, examine it and do nothing.
22398
22399         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
22400         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22401         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
22402
22403         * config/arm/t-pe (pe.o): Add dependencies.
22404
22405 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22406
22407         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
22408         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
22409         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
22410         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
22411         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
22412         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
22413         * defaults.h (BITS_PER_UNIT): Define.
22414         * doc/tm.texi (BITS_PER_UNIT): Document default value.
22415
22416 2002-03-02  Kazu Hirata  <kazu@hxi.com>
22417
22418         * config/h8300/h8300-protos.h: Add a prototype for
22419         compute_a_shift_length.
22420         * config/h8300/h8300.c (h8300_asm_insn_count): New.
22421         (compute_a_shift_length): Likewise.
22422         (h8300_adjust_insn_length): Do not adjust insn length of shift
22423         insns.
22424         * config/h8300/h8300.md (anonymous shift patterns): Use
22425         compute_a_shift_length.
22426
22427 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22428
22429         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
22430         trunc_int_for_mode.
22431
22432         * emit-rtl.c (offset_address): Call update_temp_slot_address.
22433
22434 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22435
22436         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
22437         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
22438         * flags.h (flag_zero_initialized_in_bss): Declare.
22439         * toplev.c (flag_zero_initialized_in_bss): New flag.
22440         (lang_independent_options): Add flag_zero_initialized_in_bss.
22441         * tree.c (initializer_zerop): New function.
22442         * tree.h (initializer_zerop): Declare.
22443         * varasm.c (assemble_variable): If we can emit bss, put zero
22444         initializers in the bss section.
22445
22446 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
22447
22448         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
22449         like more than one symbol per .weak directive.
22450
22451 2002-03-01  Richard Henderson  <rth@redhat.com>
22452
22453         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
22454         adjust argument_pointer by pretend_args_size.
22455         (ia64_va_start): Adjust va_start address by -pretend_args_size.
22456
22457 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22458
22459         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
22460
22461 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
22462
22463         * toplev.c (rest_of_compilation): Delete dead jumptables before
22464         loop.
22465         * flow.c (delete_dead_jumptables): Make global.
22466         * rtl.h (delete_dead_jumptables): Declare.
22467
22468 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
22469
22470         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
22471         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
22472         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
22473
22474 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22475
22476         * config/h8300/h8300-protos.h: Fix formatting.
22477         * config/h8300/h8300.c: Likewise.
22478         * config/h8300/h8300.h: Likewise.
22479
22480 2002-03-01  Kazu Hirata  <kazu@hxi.com>
22481
22482         * config/h8300/h8300.c (print_operand): Support 16-bit
22483         constant addresses.
22484         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
22485
22486 2002-02-28  Richard Henderson  <rth@redhat.com>
22487
22488         * expmed.c (store_bit_field): Prevent generation of CONCATs;
22489         pun complex values as integers; use gen_lowpart instead of
22490         gen_rtx_SUBREG.
22491         (extract_bit_field): Likewise.
22492
22493 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
22494             David Edelsohn  <edelsohn@gnu.org>
22495
22496         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
22497         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
22498         (SUPPORTS_WEAK): Likewise.
22499         * output.h (add_weak): Add tree param.
22500         * varasm.c (add_weak): Likewise.  Save decl.
22501         (struct weak_syms): Add decl field.
22502         (mark_weak_decls): New function.
22503         (init_varasm_once): ggc_add_root mark_weak_decls.
22504         (assemble_start_function): Use ASM_WEAKEN_DECL.
22505         (assemble_variable): Likewise.
22506         (assemble_alias): Likewise.
22507         (declare_weak): Pass decl to add_weak.
22508         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
22509         (remove_from_pending_weak_list): Declare and define for
22510         ASM_WEAKEN_DECL.
22511         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
22512         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
22513         * defaults.h (SUPPORTS_WEAK): Likewise.
22514         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22515         .weak for code sym.  Do emit .size for descriptor sym.
22516         (ASM_DECLARE_FUNCTION_SIZE): Define.
22517         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
22518         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
22519         .lglobl unless TARGET_XCOFF.  Formatting fixes.
22520         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22521         .weak for code sym.
22522         (HANDLE_PRAGMA_WEAK): Remove.
22523         (ASM_WEAKEN_LABEL): Remove.
22524         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
22525
22526 2002-03-01  Jason Merrill  <jason@redhat.com>
22527
22528         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
22529         (TARGET_EXPR_CLEANUP): New macro.
22530
22531 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
22532
22533         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
22534         to take ptr_extend into account as third type of extension.
22535         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
22536         fields used by SUBREG_PROMOTED_UNSIGNED_P.
22537         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
22538         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
22539         * calls.c (precompute_arguments): Use new macro.
22540         (expand_call): Ditto.
22541         * combine.c (nonzero_bits): Ditto.
22542         (record_promoted_value): Ditto.
22543         * expr.c (store_expr): Ditto.
22544         (expand_expr): Ditto.
22545         * function.c (assign_parms): Ditto.
22546
22547 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
22548
22549         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
22550         override -shared and -shared-libgcc.
22551
22552 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
22553
22554         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
22555         of "ultrasparc".
22556         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
22557         to be broken.
22558
22559 2002-02-28  Richard Henderson  <rth@redhat.com>
22560
22561         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
22562         4 cycle latency from MM producers.
22563         (ia64_internal_sched_reorder): Likewise with pipeline flush.
22564
22565 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
22566
22567         * mklibgcc.in: Don't use GNU make extension.
22568
22569 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
22570
22571         * c-parse.in (STATIC): New terminal.
22572         (scspec): New non-terminal.  Update productions accordingly.
22573         (program): Remove bogus ifc / end ifc.
22574         (array_declarator): Simplify production using STATIC.
22575
22576 2002-02-28  Jim Meyering  <meyering@lucent.com>
22577
22578         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
22579         \a still means TARGET_BELL.
22580
22581 2002-02-28  Richard Henderson  <rth@redhat.com>
22582
22583         * haifa-sched.c (sched_emit_insn): New.
22584         (schedule_block): Use last_scheduled_insn to track last insn.
22585         * sched-int.h (sched_emit_insn): Prototype.
22586         * config/ia64/ia64.c (last_issued): Remove.
22587         (ia64_variable_issue): Don't set it.
22588         (nop_cycles_until): Use sched_emit_insn.
22589
22590 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
22591
22592         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
22593         extended constants.
22594
22595 2002-02-28  Kazu Hirata  <kazu@hxi.com>
22596
22597         * config/h8300/h8300.c: Fix formatting.
22598         * config/h8300/h8300.h: Likewise.
22599
22600 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
22601
22602         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
22603         which may overwrite the high byte of the frame pointer.
22604
22605 2002-02-28  Bo Thorsen  <bo@suse.de>
22606
22607         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
22608         (STARTFILE_SPEC): Add 64 bit files.
22609         (ENDFILE_SPEC): Likewise.
22610
22611 2002-02-28  Jason Merrill  <jason@redhat.com>
22612
22613         * c-decl.c (finish_function): Only warn about missing return
22614         statement with -Wreturn-type.
22615
22616 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
22617
22618         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
22619
22620         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
22621         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
22622
22623 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
22624
22625         * basic-block.h (BB_REACHABLE): Renumber.
22626         (BB_DIRTY, BB_NEW): New flags.
22627         (clear_bb_flags): Declare.
22628         (update_life_info_in_dirty_blocks): Declare.
22629         * cfg.c (clear_bb_flags): New function.
22630         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
22631         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
22632         reorder_insns, emit_insn_after): Mark block as dirty.
22633         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
22634         (update_life_info_in_dirty_blocks): New function.
22635         * recog.c (apply_change_group): Dirtify block.
22636
22637         * cse.c (cse_insn): Reorder emitting of jump insn to keep
22638         cfg consistent.
22639         * gcse.c (delete_null_pointer_checks): Likewise.
22640
22641         * toplev.c (dump_file_index): Move cse2 after bp,
22642         add DFI_null
22643         (dump_file_info): Similary.
22644         (rest_of_compilation): Avoid most of CFG rebuilds;
22645         do first if converision after null pointer checks, do cse2
22646         after branch prediction; avoid full liveness rebuild after
22647         initializing subregs.
22648         * invoke.texi (-d options): Document -du, renumber.
22649
22650         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
22651         (notice_new_block): Do not set BB_UPDATE_LIFE.
22652         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
22653          merge_blocks_move_successor_nojumps, merge_blocks,
22654          try_crossjump_to_edge): Likewise.
22655         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
22656         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
22657         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
22658         (merge_of_block): Do not use life_data_ok.
22659         (find_if_case_1): Do not use SET_UPDATE_LIFE.
22660         (if_convert): Use BB_DIRTY mechanizm to update life.
22661         * lcm.c (optimize_mode_switching): Update
22662         update_life_info_in_dirty_blocks
22663
22664 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
22665
22666         * Makefile.in (integrate.o): Update.
22667         * c-decl.c (copy_lang_decl): Rename.
22668         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22669         * integrate.c: Include langhooks.h.
22670         (copy_decl_for_inlining): Update to use langhook.
22671         * langhooks-def.h (lhd_do_nothing_t,
22672         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
22673         (LANG_HOOKS_INITIALIZER): Update.
22674         * langhooks.c (lhd_do_nothing_t): New.
22675         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
22676         * tree.h (copy_lang_decl): Remove.
22677 objc:
22678         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22679
22680 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
22681
22682         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
22683         POST_DEC, and POST_MODIFY.
22684
22685 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22686
22687         * c-typeck.c (digest_init): Remove unused parameter; all
22688         callers changed.
22689
22690 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
22691
22692         * expmed.c (expand_shift): Correctly test for low part of a
22693         subreg.
22694
22695 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
22696
22697         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
22698         insn UIDs with insn addresses.
22699
22700 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22701
22702         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
22703         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
22704         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
22705         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
22706         gcc.c, toplev.c: Delete code implementing -traditional mode.
22707
22708         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
22709         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
22710         Document removal of -traditional mode for compilation, and
22711         remove documentation only relevant to that mode.
22712
22713         * config/nextstep.h, config/ptx4.h, config/svr4.h,
22714         config/convex/convex.h, config/d30v/d30v.h,
22715         config/i386/dgux.h, config/i386/osf1elf.h,
22716         config/i386/osfelf.h, config/i386/osfrose.h,
22717         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
22718         config/m68k/hp310.h, config/m88k/dgux.h,
22719         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
22720         config/m88k/m88k.h, config/m88k/openbsd.h,
22721         config/mips/abi64.h, config/mips/osfrose.h,
22722         config/mips/svr4-5.h, config/mips/svr4-t.h,
22723         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
22724         config/stormy16/stormy16.h: Remove all references to
22725         -traditional from target specs.  Delete all mention of the
22726         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
22727         delete a couple of commented-out definitions of
22728         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
22729         to -traditional.
22730
22731         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
22732         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
22733
22734 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
22735
22736         * mklibgcc.in: Don't use \n in a line subject to
22737         interpretation by echo.
22738
22739 2002-02-27  Graham Stott  <grahams@redhat.com>
22740
22741         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
22742         Constify NAME.
22743
22744         * loop.c (prescan_loop): Handle PARALLEL.
22745
22746         * unroll.c (loop_iterations): Return 0 if the add_val for
22747         a BIV is REG.
22748
22749         * final.c (output_operand_lossage): Constify PFX_STR.
22750
22751         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
22752
22753 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
22754
22755         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
22756         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
22757
22758 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
22759
22760         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22761
22762 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
22763
22764         * cpplex.c (_cpp_lex_token): Handle directives in macro
22765         arguments.
22766         * cpplib.c (_cpp_handle_directive): Save and restore state
22767         if parsing macro args when entering a directive.
22768         * cppmacro.c (collect_args): No need to handle directives
22769         in macro arguments.
22770         (enter_macro_context, replace_args): Use the original macro
22771         definition in case it was redefined whilst collecting arguments.
22772 doc:
22773         * cpp.texi: Update.
22774
22775 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
22776
22777         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
22778         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
22779         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
22780         method on AIX.
22781         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
22782         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
22783         (load_toc_v4_PIC_2): Same.
22784
22785 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
22786
22787         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
22788
22789 2002-02-26  Richard Henderson  <rth@redhat.com>
22790
22791         * config/alpha/alpha.md (ashldi_se): Re-enable.
22792
22793 2002-02-26  Richard Henderson  <rth@redhat.com>
22794
22795         * config/alpha/alpha.c (alpha_encode_section_info): Examine
22796         MODULE_LOCAL_P; improve commentary.
22797
22798 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
22799
22800         * doc/cpp.texi: Clarify documentation of relationship between
22801         #line and #include.
22802
22803 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22804
22805         * config/h8300/h8300-protos.h: Update the prototype for
22806         compute_logical_op_length.  Add the prototype for
22807         compute_logical_op_cc.
22808         * config/h8300/h8300.c (compute_logical_op_length): Figure out
22809         code from operands.
22810         (compute_logical_op_cc): New.
22811         * config/h8300/h8300.md: Combine all the logical op patterns
22812         in HImode and SImode.  Use compute_logical_op_cc.
22813
22814 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
22815
22816         * config/i386/i386.c (print_operand): Don't append ATT-style
22817         length suffixs to x87 opcodes when in Intel mode.
22818
22819 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
22820
22821         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
22822         (init_emit_once): Update calls.
22823         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
22824         (init_syntax_once): Prototype.
22825
22826 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22827
22828         * pa-linux.h (LIB_SPEC): Update definition.
22829         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22830
22831 2002-02-26  Richard Henderson  <rth@redhat.com>
22832
22833         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
22834         if we emitted a stop bit.
22835
22836 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22837
22838         * configure.in (libgcc_visibility): Substitute.
22839         * configure: Rebuilt.
22840         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
22841         defined symbols .hidden.
22842
22843 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22844
22845         * attribs.c (c_common_attribute_table): Add visibility.
22846         (handle_visibility_attribute): New function.
22847         * varasm.c (assemble_visibility): New function.
22848         * output.h (assemble_visibility): Add prototype.
22849         * tree.h (MODULE_LOCAL_P): Define.
22850         * crtstuff.c (__dso_handle): Use visibility attribute.
22851         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
22852         for MODULE_LOCAL_P symbols too.
22853         * config/ia64/ia64.c (ia64_encode_section_info): Handle
22854         MODULE_LOCAL_P symbols the same way as local symbols.
22855         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
22856         into .sdata/.sbss by the user.
22857         * doc/extend.texi (Function Attributes): Document visibility
22858         attribute.
22859
22860 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22861
22862         PR debug/5770
22863         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
22864         STRING_CST initializer spanning the whole variable without
22865         embedded zeros.
22866         If expand_expr returned MEM, don't use it.
22867
22868 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
22869
22870         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
22871         generate a die for the lexical block.
22872
22873 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22874
22875         * config/h8300/h8300-protos.h: Add a prototype for
22876         compute_logical_op_length.
22877         * config/h8300/h8300.c (compute_logical_op_length): New.
22878         * config/h8300/h8300.md (anonymous logical patterns): Use
22879         compute_logical_op_length for length.
22880
22881 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22882
22883         * dwarf2out.c (modified_type_die): Do not call type_main_variant
22884         for vectors.
22885         (gen_type_die): Same.
22886
22887         * attribs.c (handle_vector_size_attribute): Set debug information.
22888
22889 2002-02-26  Daniel Egger  <degger@fhm.edu>
22890
22891         * config/rs6000/rs6000.md: Swap define_insn attributes to
22892         fix incorrect generation of merge high instructions instead
22893         of merge low.
22894
22895 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22896
22897         * c-typeck.c (really_start_incremental_init): Use
22898         bitsize_zero_node for vectors.
22899
22900 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22901
22902         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
22903         ("*set_vrsave_internal"): Same.
22904
22905 2002-02-25  Richard Henderson  <rth@redhat.com>
22906
22907         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
22908         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
22909
22910 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
22911
22912         PR target/5755
22913         * config/i386/i386.c (ix86_return_pops_args): Only pop
22914         fake structure return argument if it was passed on the stack.
22915
22916 2002-02-25  Jason Merrill  <jason@redhat.com>
22917
22918         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
22919         RESULT_DECL.
22920
22921 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22922
22923         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
22924         link with shared_name only.
22925         * doc/invoke.texi (Link Options): Document new behavior.
22926
22927 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22928
22929         * c-typeck.c (push_init_level): Handle vectors.
22930
22931 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22932
22933         * config/sparc/sparc.c (const64_high_operand): Zero-extend
22934         operands of SPARC_SETHI_P.
22935         (input_operand): Likewise.
22936         (sparc_emit_set_const32): Likewise.
22937         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
22938         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
22939         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
22940         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
22941         (movdi_insn_sp64_vis): Likewise.
22942         (movdi split, movdf split): Use SETHI32.
22943         * doc/md.texi: Document SPARC constraints L, M and N.
22944
22945 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22946
22947         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
22948         ("*set_vrsave_internal"): use mfspr for Darwin.
22949
22950         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
22951         gen_get_vrsave_internal.
22952
22953 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22954
22955         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
22956
22957 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
22958
22959         * cpplex.c (cpp_interpret_charconst): Get signedness or
22960         otherwise of wide character constants correct.
22961         * cppexp.c (lex): Get signedness of wide charconsts correct.
22962
22963 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22964
22965         * optabs.c (widen_operand): Only call convert_modes for
22966         promoted SUBREG if signedness matches.
22967         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
22968
22969 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22970
22971         * cpplib.c (glue_header_name): Use local buffer to build up
22972         header name.
22973
22974 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22975
22976         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
22977
22978 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22979
22980         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
22981         H8/300[HS] separately.
22982         * config/h8300/h8300.md: Remove the early clobber constraint
22983         from bit field patterns.
22984
22985 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22986
22987         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22988         register_operand.
22989         (mulhisi3): Likewise.
22990         (umulqisi3): Likewise.
22991         (umulhisi3): Likewise.
22992
22993 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22994
22995         * cppinit.c (output_deps): Correct test for stdout output.
22996         (init_dependency_output): Cure warning.
22997
22998 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22999
23000         * expr.c (store_expr): When converting expression to promoted
23001         equivalent type, allow using SUBREG_REG of TARGET as the target
23002         of the expansion of EXP.
23003         * loop.c (basic_induction_var, case SUBREG): Always look inside.
23004         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
23005         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
23006         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
23007         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
23008
23009 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
23010
23011         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
23012         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
23013         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
23014
23015 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
23016
23017         PR optimization/5747
23018         * loop.c (scan_loop): Update reg info if move_movables created new
23019         pseudos.
23020
23021 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
23022
23023         * gcc.c (init_gcc_spec): Revert last change.
23024
23025 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
23026
23027         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
23028         gpc_reg_operand constraint.
23029
23030 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
23031
23032         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
23033         Simplify comparison of `low'.
23034         (add_operand): Fix formatting.
23035         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
23036         (mask_operand): Disallow mask to wrap in 64-bit mode.
23037         (rs6000_stack_info): Remove redundant test setting push_p.
23038         (output_toc): Fix formatting.
23039         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
23040         cc_reg_not_cr0_operand constraint.
23041         (booldi3, boolcdi3 splitters): Same.
23042
23043 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
23044
23045         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
23046
23047 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
23048
23049         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
23050         gcc invoked with -shared-libgcc.
23051
23052 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
23053
23054         PR c++/5748
23055         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
23056         decl if any of elements was TREE_USED.
23057
23058 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
23059
23060         * config/sparc/sol2.h: Don't include sys/mman.h.
23061         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
23062         (arith_4096_operand): Don't throw high bits away.
23063         (const64_operand): Take sign extension of CONST_INTs into account.
23064         (const64_high_operand, sparc_emit_set_const32): Likewise.
23065         (GEN_HIGHINT64): Likewise.
23066         (sparc_emit_set_const64_quick1): Likewise.
23067         (const64_is_2insns): Likewise.
23068         (print_operand): Use trunc_int_for_mode for sign extension.
23069         * config/sparc/sparc.h (SMALL_INT32): Likewise.
23070         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
23071         chars.  Assume CONST_INT is already properly sign-extended.
23072         (movdi split): Sign-extend each SImode part.
23073         (andsi3 split): Don't mask high bits off, so that result
23074         remains properly sign-extend.
23075         (iorsi3 split): Likewise.
23076         (xorsi3 split): Likewise.
23077
23078 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
23079
23080         * fold-const.c (fold): Fix typo in comments.
23081
23082 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
23083
23084         * Makefile.in (langhooks.o): Update dependencies.
23085
23086 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
23087
23088         * langhooks.c: Include flags.h.
23089
23090 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
23091
23092         * testsuite/gcc.dg/attr-alwaysinline.c: New.
23093
23094         * c-common.c (c_common_post_options): Set inline trees by
23095         default.
23096
23097         * doc/extend.texi (Function Attributes): Document always_inline
23098         attribute.
23099         Update documentation about inlining when not optimizing.
23100
23101         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
23102
23103         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
23104         unless DECL_ALWAYS_INLINE.
23105
23106         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
23107         unless DECL_ALWAYS_INLINE.
23108         (c_disregard_inline_limits): Disregard if always_inline set.
23109
23110         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
23111         Disregard if always_inline set.
23112         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
23113         unless DECL_ALWAYS_INLINE.
23114
23115         * attribs.c (handle_always_inline_attribute): New.
23116         (c_common_attribute_table): Add always_inline.
23117
23118         * config/rs6000/altivec.h: Add prototypes for builtins
23119         requiring the always_inline attribute.
23120
23121 2002-02-21  Eric Christopher  <echristo@redhat.com>
23122
23123         * expmed.c (store_bit_field): Try to simplify the subreg
23124         before generating a new one when when the mode size of
23125         value is less than maxmode.
23126
23127 2002-02-21  Richard Henderson  <rth@redhat.com>
23128
23129         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
23130         than gen_rtx_PLUS to form the sum.
23131         * explow.c (force_reg): Rearrange to not allocate new pseudo
23132         when force_operand returns a register.
23133         * expr.c (expand_assignment): Allow offset_rtx expansion to
23134         return a sum.  Do not force addresses into registers.
23135         (expand_expr): Likewise.
23136         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
23137         to canonicalize arithmetic that didn't simpify.
23138         (simplify_plus_minus): New argument force; update
23139         all callers.  Don't split CONST unless we can do something with it,
23140         and wouldn't lose the constness of the operands.
23141
23142         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
23143         that we generated earlier.
23144
23145 2002-02-21  Tom Tromey  <tromey@redhat.com>
23146
23147         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23148         (output_line_info): Use constant `1', with a long explanatory
23149         comment.
23150         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
23151
23152 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
23153
23154         * jump.c (redirect_jump): If old label has no UID, don't try to
23155         delete it.
23156
23157 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
23158
23159         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
23160         If input is constant, do shifts at compile time.
23161
23162 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
23163
23164         * doc/extend.texi: Fix some more overfull hboxes.
23165
23166 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23167
23168         PR optimization/4994
23169         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
23170         register moves.
23171
23172 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23173
23174         PR c++/4574
23175         * expr.h (expand_and): Add mode argument.
23176         * expmed.c (expand_and): Add mode argument.
23177         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
23178         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
23179         * except.c (expand_builtin_extract_return_addr): Likewise.
23180         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
23181         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
23182         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
23183         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
23184         * config/c4x/c4x.md: Use GEN_INT (x) instead of
23185         gen_rtx (CONST_INT, VOIDmode, x).
23186
23187 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
23188
23189         PR c/4697:
23190         * stmt.c (warn_if_unused_value): Move side effects test once more.
23191
23192 2002-02-20  Torbjorn Granlund  <tege@swox.com>
23193
23194         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
23195         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
23196
23197 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
23198
23199         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
23200         SUBREG or ZERO_EXTEND.
23201
23202 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
23203
23204         * sh.h (current_function_anonymous_args): Remove.
23205         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
23206         of current_function_varargs and current_function_stdarg is set.
23207         * sh.c (sh_expand_prologue): Check current_function_varargs /
23208         current_function_stdarg / TARGET_SH5 instead of
23209         current_function_anonymous_args.
23210
23211         * sh64.h (TARGET_VERSION): Define.
23212
23213 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
23214
23215         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
23216         VRSAVE_REGNO on TARGET_ALTIVEC.
23217
23218 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
23219
23220         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
23221         bits of SImode const_int.
23222         (includes_rshift_p): Likewise.
23223         (print_operand): Call mask_operand and mask64_operand with correct
23224         mode.
23225         (rs6000_output_function_epilogue): Pad traceback table to word.
23226         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
23227         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
23228         mask64_operand with correct mode.
23229         (FUNCTION_ARG_REGNO_P): Correct parentheses.
23230
23231 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23232
23233         PR debug/4461
23234         * varasm.c (get_pool_constant_mark): New.
23235         * rtl.h (get_pool_constant_mark): Add prototype.
23236         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
23237         be represented if it has not been output.
23238
23239 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
23240
23241         * combine.c (do_SUBST): Sanity check substitutions of
23242         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
23243         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
23244         CONST_INT into its operand.
23245         (known_cond): Likewise, for ZERO_EXTEND.
23246         * simplify-rtx.c (simplify_unary_operation): Fix condition to
23247         allow for simplification of wide modes.  Reject CONST_INTs in
23248         ZERO_EXTEND when their actual mode is not given.
23249
23250 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
23251
23252         * c-decl.c (pushdecl): If no global declaration is found for an
23253         extern declaration in block scope, try a limbo one.
23254
23255 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23256
23257         PR c++/4401
23258         * c-common.c (pointer_int_sum): Moved from...
23259         * c-typeck.c (pointer_int_sum): ...here.
23260         * c-common.h (pointer_int_sum): Add prototype.
23261
23262 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
23263
23264         PR c++/5713
23265         * c-decl.c (duplicate_decls): Return 0 if issued error about
23266         redeclaration.
23267
23268 2002-02-20  Roger Sayle  <roger@eyesopen.com>
23269             Jakub Jelinek  <jakub@redhat.com>
23270
23271         PR c/4389
23272         * tree.c (host_integerp): Ensure that the constant integer is
23273         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
23274         when pos is zero or non-zero respectively.  Clarify comment.
23275         * c-format.c (check_format_info_recurse): Fix host_integerp
23276         usage; the pos argument should be zero when assigning to a
23277         signed HOST_WIDE_INT.
23278
23279 2002-02-20  Richard Henderson  <rth@redhat.com>
23280
23281         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
23282         of the operand, rather than assuming TImode.
23283         (ix86_expand_binop_builtin): Cope with commutative patterns
23284         using nonimmediate_operand for both operands.
23285         (ix86_expand_timode_binop_builtin): Likewise.
23286         (ix86_expand_store_builtin): Validate operand 1.
23287         (ix86_expand_unop1_builtin): Likewise.
23288
23289 2002-02-20  Philip Blundell  <philb@gnu.org>
23290
23291         PR 5705
23292         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
23293
23294 2002-02-20  Richard Henderson  <rth@redhat.com>
23295
23296         PR c/5615
23297         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
23298
23299 2002-02-20  Tom Tromey  <tromey@redhat.com>
23300
23301         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23302         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23303         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23304         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23305         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
23306         unconditionally.
23307
23308 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
23309
23310         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
23311           for (const_int 0) in X not just INTVAL.
23312
23313 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
23314
23315         * doc/extend.texi: Avoid or reduce overfull hboxes.
23316
23317 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
23318
23319         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
23320         operations if the field does not start at a mode boundary.
23321
23322 2001-02-20      Joel Sherrill <joel@OARcorp.com>
23323
23324         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
23325         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
23326         Also done for -Acpu and -Amachine.
23327
23328 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
23329
23330         * cppinit.c (init_dependency_output): Take deps output file
23331         from -o if none given with -MF.  Suppress normal output.
23332         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
23333         * doc/cpp.texi, doc/invoke.texi: Update.
23334
23335 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
23336
23337         * toplev.c (output_quoted_string): Write unprintable
23338         characters with octal escapes.
23339
23340 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
23341
23342         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
23343         really_call_used[VRSAVE_REGNO] if not Altivec.
23344
23345 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
23346
23347         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
23348         MODE_MASK.
23349         (constant_pool_expr_1): Fix formatting.
23350         (rs6000_legitimize_reload_address): Likewise.
23351
23352 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23353
23354         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
23355         now that we have one.
23356
23357 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
23358
23359         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
23360         end of first block of bitfields (which was only seven bits);
23361         rename dummy to unused_1; remove comment which is no longer true.
23362
23363 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
23364
23365         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
23366
23367 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
23368
23369         PR 5399
23370         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
23371         if generating PIC.
23372
23373         PR 5054
23374         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
23375         arm_is_longcall_p rather than inspecting call-type cookie
23376         directly.
23377         (call_value_insn) [TARGET_THUMB]: Likewise.
23378
23379 2002-02-19  Graham Stott  <grahams@redhat.com>
23380
23381         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
23382
23383 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
23384
23385         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
23386         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
23387         (FP_SAVE_INLINE): Delete.
23388
23389         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
23390         * config/rs6000/eabi.asm: Remove ABI save restore routines.
23391         * config/rs6000/t-ppccomm: Build crtsavres.o.
23392         * config/rs6000/crtsavres.asm: New file.
23393
23394 2002-02-19  Philip Blundell  <philb@gnu.org>
23395
23396         * config/arm/arm.c (use_return_insn): Don't reject interrupt
23397         functions.
23398         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
23399         (output_return_instruction): Allow interrupt functions to return with
23400         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
23401         (arm_expand_prologue): Subtract 4 before stacking LR in an
23402         interrupt function.
23403
23404 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
23405
23406         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
23407         decl, not just FUNCTION_DECL.
23408         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
23409         (arm_assemble_integer): Likewise.
23410         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
23411         marked local.
23412
23413 2002-02-19  matthew green  <mrg@eterna.com.au>
23414
23415         * config.gcc (sparc-*-netbsdelf*): Enable target.
23416         (sparc64-*-netbsd*): New target.
23417         * config/sparc/netbsd-elf.h: New file.
23418         * config/sparc/t-netbsd64: New file.
23419
23420 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
23421
23422         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
23423
23424 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
23425
23426         * doc/invoke.texi: explicitly list the style guidelines that
23427         -Weffc++ checks for.
23428
23429 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
23430
23431         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
23432
23433 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
23434
23435         PR other/5718
23436         * gcc.c (cpp_unique_options): Treat -o as indicating object file
23437         only if not -E.  If -E, pass -o through to the preprocessor.
23438
23439 2002-02-19  Kazu Hirata  <kazu@hxi.com>
23440
23441         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
23442         register number with an appropriate macro.
23443
23444 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
23445
23446         * doc/rtl.texi (Constants): Close @code tag.
23447
23448 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
23449
23450         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
23451         ("mmx_uavgv4hi3"): Same.
23452         ("pmulhrwv4hi3"): Same.
23453
23454         * tree-inline.c (walk_tree): Handle vectors.
23455
23456         * c-common.c (constant_expression_warning): Handle vectors.
23457         (overflow_warning): Same.
23458
23459         * sched-deps.c (sched_analyze_2): Handle vectors.
23460
23461         * rtlanal.c (rtx_unstable_p): Handle vectors.
23462         (rtx_varies_p): Same.
23463         (count_occurrences): Same.
23464         (regs_set_between_p): Same.
23465         (modified_between_p): Same.
23466         (modified_in_p): Same.
23467         (volatile_insn_p): Same.
23468         (volatile_refs_p): Same.
23469         (side_effects_p): Same.
23470         (may_trap_p): Same.
23471         (inequality_comparisons_p): Same.
23472         (replace_regs): Same.
23473         (computed_jump_p_1): Same.
23474
23475         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
23476         argument.
23477         (inner_mode_array): New.
23478         (copy_rtx): Handle vectors.
23479         (copy_most_rtx): Same.
23480         (rtx_equal_p): Same.
23481         (get_mode_alignment): Adjust for vectors.
23482
23483         * resource.c (mark_referenced_resources): Handle vectors.
23484         (mark_set_resources): Same.
23485
23486         * reload1.c (eliminate_regs): Handle vectors.
23487         (elimination_effects): Same.
23488         (scan_paradoxical_subregs): Same.
23489
23490         * reload.c (subst_reg_equivs): Handle vectors.
23491
23492         * regrename.c (scan_rtx): Handle vectors.
23493
23494         * regclass.c (reg_scan_mark_refs): Handle vectors.
23495
23496         * recog.c (find_single_use_1): Handle vectors.
23497
23498         * local-alloc.c (equiv_init_varies_p): Handle vectors.
23499         (contains_replace_regs): Same.
23500         (memref_referenced_p): Same.
23501
23502         * integrate.c (copy_rtx_and_substitute): Handle vectors.
23503         (subst_constants): Same.
23504
23505         * genattrtab.c (attr_copy_rtx): Handle vectors.
23506         (encode_units_mask): Same.
23507         (clear_struct_flag): Same.
23508         (count_sub_rtxs): Same.
23509
23510         * gcse.c (want_to_gcse_p): Handle vectors.
23511         (oprs_unchanged_p): Same.
23512         (hash_expr_1): Same.
23513         (oprs_not_set_p): Same.
23514         (expr_killed_p): Same.
23515         (compute_transp): Same.
23516         (store_ops_ok): Same.
23517
23518         * function.c (purge_addressof_1): Do not allow paradoxical subregs
23519         of vectors.
23520         (fixup_var_refs_1): Same.
23521         (instantiate_virtual_regs_1): Same.
23522
23523         * fold-const.c (operand_equal_p): Handle vectors.
23524         (fold): Same.
23525         (rtl_expr_nonnegative_p): Same.
23526
23527         * flow.c (mark_used_regs): Handle vectors.
23528
23529         * df.c (df_uses_record): Handle vectors.
23530
23531         * cselib.c (cselib_subst_to_values): Handle vectors.
23532         (cselib_mem_conflict_p): Same.
23533         (hash_rtx): Same.
23534
23535         * cse.c (canon_reg): Handle vectors.
23536         (fold_rt): Same.
23537         (cse_process_notes): Same.
23538         (count_reg_usage): Same.
23539         (canon_hash): Same.
23540
23541         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
23542
23543         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
23544
23545         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
23546         (gen_rtx): Handle CONST_VECTOR.
23547         (gen_const_vector_0): New.
23548         (copy_rtx_if_shared): CONST_VECTORs can be shared.
23549         (reset_used_flags): Same.
23550         (copy_insn_1): Same.
23551         (initializer_constant_valid_p): Handle VECTOR_CST.
23552
23553         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
23554
23555         * doc/rtl.texi (Constants): Document const_vector.
23556         (CONST0_RTX): Update for vectors.
23557         (RTL sharing): Same.
23558
23559         * print-tree.c (print_node): Add case for VECTOR_CST.
23560
23561         * tree.h (TREE_VECTOR_CST_ELTS): New.
23562         (struct tree_vector): New.
23563         (union tree_node): Add vector node.
23564         (build_vector): Add prototype.
23565
23566         * tree.def (VECTOR_CST): New.
23567
23568         * tree.c (build_vector): New.
23569
23570         * expmed.c (make_tree): Handle CONST_VECTOR.
23571
23572         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
23573         (CONST_VECTOR_ELT): New.
23574         (CONST_VECTOR_NUNITS): New.
23575
23576         * machmode.h (GET_MODE_INNER): New.
23577         (DEF_MACHMODE): Accept 8th arg.
23578
23579         * machmode.def: Add 8th argument for vector inner mode.
23580         Add inner vector modes for vectors.
23581
23582         * rtl.def (VEC_CONST): Remove.
23583         (CONST_VECTOR): New.
23584
23585         * expr.c (clear_storage): Allow vectors.
23586         (is_zeros_p): Handle VECTOR_CST.
23587
23588         * varasm.c (output_constant_pool): Handle vectors.
23589         (rtx_const): Add veclo and vechi fields.
23590         (kind): Add RTX_VECTOR.
23591         (decode_rtx_const): Add case for vector.
23592
23593         * config/rs6000/rs6000-protos.h: Add zero_constant.
23594
23595         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
23596         constants.  Force easy vector constants into memory.
23597         (easy_vector_constant): New.
23598         (emit_easy_vector_constant): New.
23599         (rs6000_legitimize_reload_address): Do not generate bad reloads on
23600         darwin.
23601
23602         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
23603         instruction does.
23604         ("altivec_lvxl"): Same.
23605         (altivec_lvebx): Same.
23606         (altivec_lvehx): Same.
23607         (altivec_lvewx): Same.
23608         ("*movv4si_const0"): New.
23609         ("*movv4sf_const0"): New.
23610         ("*movv8hi_const0"): New.
23611         ("*movv16qi_const0"): New.
23612
23613 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23614
23615         * config/h8300/h8300.c (notice_update_cc): Use
23616         cc_status.value2.
23617
23618 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23619
23620         * config/h8300/h8300.md (divmod patterns): Change the
23621         constraints for operands[1] to register_operand.
23622
23623 2002-02-18  Kazu Hirata  <kazu@hxi.com>
23624
23625         * config/h8300/h8300-protos.h: Remove the prototype for
23626         p_operand.
23627         * config/h8300/h8300.c (p_operand): Remove.
23628         * config/h8300/h8300.md: Replace p_operand with
23629         const_int_operand.
23630
23631 2002-02-18 Philip Blundell <pb@nexus.co.uk>
23632
23633         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
23634         comment.
23635         (output_return_instruction): Allow use of LDR to unstack
23636         return addresss even for interrupt handlers or when
23637         interworking.  If compiling for ARMv5, use interworking-safe
23638         return instructions by default.  Remove duplicated code and
23639         lengthy "strcat" sequences.
23640
23641 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
23642
23643         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
23644         (LINK_EH_SPEC): Define.
23645         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
23646
23647 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
23648
23649         * config/s390/s390.c (s390_emit_prologue): Do not set the
23650         frame_related flag for call-clobbered registers.
23651
23652 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
23653
23654         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
23655         (construct_container): Fix handling of SSE operands.
23656         (ix86_expand_builtin): Fix handling of 64bit pointers.
23657         (mmx_maskmovq_rex): New pattern.
23658
23659 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
23660
23661         * regrename.c (kill_set_value): Handle subregs properly.
23662
23663 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
23664
23665         * objc/objc-act.c (handle_impent): Remove leading '*'
23666         from objc_class_name.
23667
23668 2002-02-17  Richard Henderson  <rth@redhat.com>
23669
23670         * config/alpha/alpha.c (some_small_symbolic_operand,
23671         some_small_symbolic_operand_1, split_small_symbolic_operand,
23672         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
23673         Handle small SYMBOL_REFs anywhere, not just inside memories.
23674         * config/alpha/alpha-protos.h: Update.
23675         * config/alpha/alpha.h (PREDICATE_CODES): Update.
23676         * config/alpha/alpha.md (small symbolic operand splitter): Update.
23677
23678 2002-02-17  Roland McGrath  <roland@frob.com>
23679
23680         * config.gcc (powerpc-*-gnu-gnualtivec*,
23681         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
23682         * config/rs6000/gnu.h: New file.
23683         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
23684         Grok "gnu" in rs6000_abi_name.
23685         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
23686         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
23687         Grok -mcall-gnu analogous to -mcall-linux et al.
23688         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23689         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
23690         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
23691
23692 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
23693
23694         PR c/3444:
23695         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
23696         shortening.
23697
23698 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23699
23700         * config/cris/cris.h: Undefine STARTFILE_SPEC and
23701         ENDFILE_SPEC before (re)defining them.
23702
23703 2002-02-17  Kazu Hirata  <kazu@hxi.com>
23704
23705         * config/h8300/h8300.c: Fix formatting.
23706         * config/h8300/h8300.h: Likewise.
23707
23708 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23709
23710         * doc/tm.texi: Explain why empty strings should not be
23711         marked for translation.
23712
23713 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23714
23715         * final.c (output_operand_lossage): Changed to accept
23716         printf style arguments. Change calls where necessary.
23717         * output.h (output_operand_lossage): Change declaration
23718         accordingly. Update copyright.
23719         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
23720         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
23721         Update copyright date where necessary.
23722
23723         * config/i386/i386.c (print_operand): Likewise. Remove use of
23724         sprintf.
23725
23726         * config/cris/cris.c (cris_operand_lossage): Likewise.
23727         Rename parameter so that exgettext recognizes it as
23728         translatable message.
23729         (LOSE_AND_RETURN): Rename parameter to msgid.
23730
23731 2002-02-17  Kazu Hirata  <kazu@hxi.com>
23732
23733         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
23734         hard coded register number with an appropriate macro.
23735         (HARD_REGNO_MODE_OK): Likewise.
23736         (ARG_POINTER_REGNUM): Likewise.
23737         (STATIC_CHAIN_REGNUM): Likewise.
23738         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
23739         * config/h8300/h8300.md (define_constants): Define more
23740         register numbers.
23741
23742 2002-02-17  Philipp Thomas  <pthomas@suse.de>
23743
23744         * config/i386/i386.h: Don't mark empty strings for translation.
23745
23746 2002-02-16  H.J. Lu <hjl@gnu.org>
23747
23748         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
23749
23750 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
23751
23752         * cppinit.c (merge_include_chains): Check for brack being
23753         NULL before attempting to merge it with qtail.
23754
23755 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
23756
23757         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
23758         DBX_DEBUG.
23759
23760 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23761
23762         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
23763
23764 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23765
23766         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
23767         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
23768         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
23769
23770 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23771
23772         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
23773         now only if !TARGET_FIX.
23774         (*movsi_nt_vms_fix): New pattern.
23775
23776 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
23777
23778         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
23779         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
23780         (alpha_sa_mask, alpha_sa_size): Reflect above change.
23781         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
23782         (alpha_start_function, alpha_expand_epilogue): Likewise.
23783         (unicosmk_gen_dsib): Likewise.
23784
23785 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23786
23787         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
23788
23789 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
23790
23791         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
23792         check_and_change_labels, s390_final_chunkify): Delete.
23793         (s390_split_branches, s390_chunkify_pool): New functions.
23794         (s390_function_prologue): Call them.
23795
23796         * config/s390/s390.h (S390_REL_MAX): Delete.
23797         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
23798
23799         * config/s390/s390.md (cjump, icjump, jump): Fix length
23800         attribute calculation.
23801
23802
23803 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
23804
23805         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
23806         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
23807
23808 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23809
23810         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
23811         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
23812         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
23813
23814 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23815
23816         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
23817
23818 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23819
23820         * reload.c (find_dummy_reload): Check that an output register
23821         is valid for its mode.
23822
23823 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
23824
23825         * combine.c (known_cond): After replacing the REG of a SUBREG, try
23826         to simplify it.
23827
23828         * function.c (assign_parms): Demote promoted argument passed by
23829         transparent reference.
23830
23831 2001-02-14      Joel Sherrill <joel@OARcorp.com>
23832
23833         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
23834         -Acpu() and -Amachine() to eliminate warnings.
23835
23836 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
23837
23838         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
23839
23840 2002-02-14  Kazu Hirata  <kazu@hxi.com>
23841
23842         * config/h8300/h8300-protos.h: Update the prototype for
23843         const_costs.
23844         * config/h8300/h8300.c (const_costs): Treat SET as a little
23845         more expensive operation.
23846         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
23847         reference to const_costs.
23848
23849 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
23850
23851         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
23852
23853 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
23854
23855         PR c/5503:
23856         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
23857         use arguments from newtype.
23858
23859 2002-02-13  Eric Christopher  <echristo@redhat.com>
23860
23861         * config/mips/mips.c (override_options): Add check for march/mipsX
23862         on the same command line. Fix error message in cpu processing.
23863         Remove architecture and ISA checks.
23864
23865 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23866
23867         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
23868
23869         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
23870
23871 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23872
23873         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
23874         alternatives.
23875         ("*movv8hi_internal1"): Same.
23876         ("*movv16qi_internal1"): Same.
23877         ("*movv4sf_internal1"): Same.
23878
23879         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
23880         not push_reload for altivec modes.
23881
23882 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
23883
23884         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
23885         all RTEMS targets including removal of #includes from config/*/rtems*.h
23886         file and adding them to tm_file setting. Added xm_defines=POSIX to
23887         many targets.
23888         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
23889         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
23890         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
23891         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
23892         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
23893         config/m68k/rtemself.h: Ditto.
23894         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
23895         config/mips/rtems64.h: Ditto.
23896         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
23897         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
23898         Ditto.
23899         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
23900         config/sparc/rtemself.h: Ditto.
23901         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
23902         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
23903         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
23904         more like arm-elf.
23905         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
23906         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
23907         target made more similar to i386-elf.
23908         * config/i386/t-rtems-i386: Added soft float support and multilibs.
23909         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
23910         be similar to config/m68k/t-m68kelf.
23911         * gthr-rtems.h: Encapsulate with extern "C" for C++.
23912
23913 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
23914
23915         * regmove.c (kill_value): Handle subregs.
23916
23917 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
23918
23919         * i386.md (mul patterns): Allow memory operand to be first;
23920         add expanders where needed; fix constraints.
23921         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
23922         Allow memory operand to be the first.
23923
23924         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
23925         operands.
23926
23927 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23928
23929         PR c/5681:
23930         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
23931         GET_MODE (x).
23932
23933 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23934
23935         PR optimization/5547:
23936         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
23937         all valid IA-32 address modes involving non-scaled %ebx and
23938         GOT/GOTOFF as displacement.
23939
23940 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
23941
23942         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
23943         after emitting ltorg insns.
23944
23945         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
23946         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
23947         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
23948         *abssf2): Fix "op_type" attribute.
23949
23950 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
23951
23952         * mkconfig.sh: Avoid using a subshell redirect.
23953         ($output.T): Change to $(output)T.
23954         (ENABLE_NLS): Remove unneeded undef.
23955
23956         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
23957         * config/alpha/x-vms (libsubdir): Define.
23958
23959         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
23960         register frame procedures. Optimize retrieving context.
23961
23962         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
23963         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
23964         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
23965
23966 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23967
23968         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
23969         Make same change as for find_base_value.
23970
23971 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23972
23973         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
23974         of QImode and SImode.
23975
23976 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23977
23978         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
23979         length computation of movsi.
23980         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
23981
23982 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23983
23984         * config/h8300/h8300.md (subqi3): Tighten the predicate for
23985         operands[2] to register_operand.
23986
23987 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
23988
23989         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
23990
23991 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
23992
23993         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
23994         for altivec_lvx* and altivec_stvx*.
23995         ("*movv4si_internal"): Add constraint for loading from GPRs.
23996         ("*movv8hi_internal1"): Same.
23997         ("*movv16qi_internal1"): Same.
23998         ("*movv4sf_internal1"): Same.
23999
24000         * config/rs6000/rs6000.c (altivec_register_operand): New.
24001
24002         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
24003         altivec_register_operand.
24004
24005 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
24006
24007         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
24008         handle SYMBOL_REF.
24009
24010 2002-02-13  Stan Shebs  <shebs@apple.com>
24011
24012         * c-typeck.c (digest_init): Handle vectors.
24013         (really_start_incremental_init): Same.
24014         (pop_init_level): Same.
24015         (process_init_element): Same.
24016
24017         * varasm.c (output_constant): Same.
24018
24019         * expr.c (clear_storage): Same.
24020         (store_constructor): Same.
24021
24022 2002-02-12  Eric Christopher  <echristo@redhat.com>
24023
24024         * explow.c (hard_function_value): Add comment explaining
24025         signed/unsigned comparison.
24026
24027 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
24028
24029         * jump.c (never_reached_warning): Add finish argument.
24030         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
24031         real insn after end.
24032         * rtl.h (never_reached_warning): Adjust prototype.
24033         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
24034         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
24035         never_reached_warning.
24036
24037 2002-02-12  Graham Stott  <grahams@redhat.com>
24038
24039         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
24040
24041 2002-02-12  Kazu Hirata  <kazu@hxi.com>
24042
24043         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
24044         logical shifts on H8/300.
24045         (shift_alg_si): Improve several shifts on H8/300.
24046         (get_shift_alg): Likewise.
24047
24048 2002-02-12  Graham Stott  <grahams@redhat.com>
24049
24050         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
24051
24052 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24053
24054         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
24055         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
24056
24057 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
24058
24059         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
24060         non-CONST_INT through default_assemble_integer.
24061         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
24062         <case 8>: Abort for CONST_DOUBLE.
24063
24064 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24065
24066         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
24067         is specified.
24068         * config/pa/pa-linux.h (LIB_SPEC): Delete.
24069         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
24070
24071 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
24072
24073         * config/stormy16/stormy16.md (zero_extendqihi2): New.
24074
24075 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
24076
24077         * regrename.c (regrename_optimize): Don't accept a
24078         part-clobbered register if the replaced register is not part
24079         clobbered.
24080
24081         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
24082         take padding into account when computing the argument value.
24083
24084         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
24085
24086         * combine.c (try_combine): Apply substitutions in
24087         CALL_INSN_FUNCTION_USAGE too.
24088
24089 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
24090
24091         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
24092         __builtin_altivec_abs*.
24093         (bdesc_abs): New.
24094
24095         * config/rs6000/rs6000.h (rs6000_builtins): Add
24096         ALTIVEC_BUILTIN_ABS*.
24097
24098         * config/rs6000/altivec.h: Use const char for builtins expecting
24099         literals.
24100         (vec_abs): New versions for C and C++.
24101         (vec_abss): Same.
24102
24103 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24104
24105         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
24106         using Pmode.
24107
24108 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24109
24110         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
24111         constant definition from h8300.md.
24112         (FRAME_POINTER_REGNUM): Likewise.
24113         * config/h8300/h8300.md (define_constants): Add FP_REG.
24114
24115 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24116
24117         * config/h8300/h8300.c (print_operand): Remove redundant code.
24118
24119 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24120
24121         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
24122         * config/h8300/h8300.c (byte_reg): Make it static.
24123
24124 2002-02-10  Richard Henderson  <rth@redhat.com>
24125
24126         PR c/5623
24127         * c-typeck.c (incomplete_type_error): Handle flexible array members.
24128
24129 2002-02-10  Richard Henderson  <rth@redhat.com>
24130
24131         PR c++/5624
24132         * tree.c (append_random_chars): Don't abort if main_input_filename
24133         does not exist.
24134
24135 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
24136
24137         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
24138
24139 2002-02-10  Kazu Hirata  <kazu@hxi.com>
24140
24141         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
24142         (pushhi1): Likewise.
24143
24144 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24145
24146         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
24147         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
24148
24149 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
24150
24151         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
24152         remove MASK_VIS.
24153         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
24154
24155 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24156
24157         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
24158         a half of an SImode register on H8/300.
24159
24160 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
24161
24162         * i386.md (movdi_2): Add missing '!'.
24163
24164 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24165
24166         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
24167         definitions.
24168
24169 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24170
24171         * config/h8300/h8300.md (length): Correct the distance valid
24172         for the short branch.
24173
24174 2002-02-09  Kazu Hirata  <kazu@hxi.com>
24175
24176         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
24177
24178 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
24179
24180         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
24181         registers in SImode.
24182         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
24183         part-clobbered.
24184
24185         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
24186         patch.
24187
24188         Contribute sh64-elf.
24189         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
24190         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
24191         (sh_cannot_modify_jumps_p): New function.
24192         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
24193         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
24194         (sh_ms_bitfield_layout_p): New function.
24195         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
24196                     Zack Weinberg  <zack@codesourcery.com>
24197         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
24198         expand_simple_binop instead of expand_binop.
24199         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
24200         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
24201         use of .quad and .uaquad.
24202         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
24203         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
24204         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24205         * config/sh/sh.md (movdi_const, movdi_const_32bit,
24206         movdi_const_16bit): Make sure all CONSTs have modes.
24207         (sym2PIC): Ditto, but by adjusting all callers.
24208         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
24209         if the prologue calls the SHmedia argument decoder or register
24210         saver.
24211         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
24212         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
24213         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
24214         (sh_expand_epilogue): Don't emit USE of return target register.
24215         (prepare_move_operands): Legitimize DImode PIC addresses.
24216         (sh_media_register_for_return): Skip tr0, used to initialize the
24217         PIC register.
24218         (sh_expand_prologue): Remove explicit USE of return register.
24219         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
24220         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
24221         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
24222         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
24223         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
24224         EXTRA_CONSTRAINT_T.
24225         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
24226         (MOVI_SHORI_BASE_OPERAND_P): New.
24227         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
24228         (EXTRA_CONSTRAINT_T): Define in terms of them.
24229         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
24230         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
24231         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
24232         alternatives supporting TARGET_REGS.
24233         (UNSPEC_GOTPLT): New constant.
24234         (movdi split): Move incrementing of LABEL_NUSES...
24235         (movdi_const, movdi_const_32bit): Here.  Use
24236         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
24237         (movdi_const_16bit): New.
24238         (call, call_value) [flag_pic]: Use GOTPLT.
24239         (call_pop, call_value_pop): New expands.
24240         (call_pop_compact, call_pop_rettramp): New insns.
24241         (call_value_pop_compact, call_value_pop_rettramp): New insns.
24242         (sibcall) [flag_pic]: Use GOT.
24243         (builtint_setjmp_receiver): Remove bogus, unused expand.
24244         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
24245         (*pt, *ptb, ptrel): New insns.
24246         (sym2GOT): Handle DImode GOT.
24247         (sym2GOTPLT, symGOTPLT2reg): New expands.
24248         (sym2PIC): New expand.
24249         (shcompact_return_tramp): Use GOTPLT to return trampoline.
24250         (shcompact_return_tramp_i): Use return register explicitly.
24251         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
24252         disable flag_reorder_blocks.
24253         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
24254         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
24255         clobbers, for clarity.
24256         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
24257         restoring of r0 in macl as MAYBE_DEAD.
24258         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
24259         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
24260         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
24261         alter_subreg all over.
24262         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
24263         reload, instead of emitting instructions that would require
24264         reloading.
24265         (casesi_load_media): Add missing modes.
24266         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
24267         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
24268         as used if the argument decoder is called.
24269         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
24270         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
24271         Pmode, then extend it to DImode if necessary.
24272         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
24273         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
24274         constants in FPU-enabled SHmedia, let them be loaded from memory.
24275         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
24276         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
24277         Adjust whitespace in assembly output templates.
24278         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
24279         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
24280         mode of if_then_else.
24281         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
24282         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
24283         sh.h.
24284         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
24285                     Joern Rennecke <amylaar@redhat.com>
24286         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
24287         (SUBTARGET_CPP_PTR_SPEC): New.
24288         (SUBTARGET_CPP_SPEC): Remove.
24289         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
24290         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24291         Fix typo in previous checkin.
24292         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
24293         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
24294         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
24295                     Alexandre Oliva  <aoliva@redhat.com>
24296         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
24297         what single FP register can hold for SHmedia target.
24298         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
24299                     Alexandre Oliva  <aoliva@redhat.com>
24300         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24301         Do not split into SUBREG.
24302         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
24303         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
24304         and added new functions as specified in SH5 ABI r9.
24305         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
24306         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
24307         8-byte boundary.
24308         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
24309         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
24310         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
24311         and consttable_window_ends.
24312         2001-06-03  Graham Stott  <grahams@redhat,com>
24313         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
24314         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
24315         * config/sh/sh.c (print_operand): Handle floating-point pair,
24316         vector and matrix registers.
24317         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
24318         vector modes into account.
24319         * config/sh/sh.md (movv2sf): Split move between registers into
24320         movdf.
24321         (movv4sf, movv16sf): Introduce insns that get split only after
24322         reload.
24323         * config/sh/shmedia.h: Fix Copyright dates.
24324         * config/sh/ushmedia.h: Likewise.  Move loop counter
24325         declarations into conditionals that uses them.
24326         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
24327         loop boundary.
24328         * config/sh/sshmedia.h: Fix Copyright dates.
24329         (sh_media_PUTCFG): Fix constraints.
24330         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
24331         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
24332         ptrmemfunc_vbit_in_delta for SH5.
24333         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
24334         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
24335         * invoke.texi: Likewise.
24336         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
24337         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
24338         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
24339         GCC_pop_shmedia_regs_nofpu): New global symbols.
24340         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
24341         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
24342         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
24343         compact function with nonlocal labels.
24344         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
24345         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
24346         (initial_elimination_offset): Account for their stack space.
24347         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
24348         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
24349         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
24350         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
24351         least one of the operands to be a register.
24352         (movv2sf): Likewise.  Renamed to movv2sf_i.
24353         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
24354         prepare_move_operands() before emitting SHmedia insns.
24355         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
24356         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
24357         Don't save nor initialize r12.  Don't mis-align the stack.
24358         Pad the code with a nop.
24359         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
24360         stack.
24361         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
24362         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
24363         [__SHMEDIA__]: Implement.
24364         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
24365         * config/sh/sh.md: Set latency of `pt' closer to reality.
24366         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
24367         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
24368         Set move, load and store type attributes.
24369         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
24370         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
24371         profiling.
24372         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
24373         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
24374         * config/sh/sh.c (sh_media_register_for_return): New function.
24375         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
24376         branch-target register.
24377         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
24378         * config/sh/sh.md (return_media_i): Use any call-clobbered
24379         branch-target register.
24380         (return_media): If r18 wasn't copied in the prologue, copy it
24381         here.
24382         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
24383         Clear class FP0_REGS.
24384         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
24385         from elf.h.
24386         2001-03-08  DJ Delorie  <dj@redhat.com>
24387         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
24388         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
24389         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
24390         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
24391         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
24392         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
24393         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
24394         return value correctly for call_cookie.
24395         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
24396         * config/sh/crt1.asm (start): Modified so as to call
24397         ___setup_argv_and_call_main.
24398         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
24399         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
24400         SHmedia mode.
24401         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
24402         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
24403         (STRIP_NAME_ENCODING): Use it.
24404         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
24405         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
24406         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
24407         prepare_scc_operands().
24408         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
24409         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
24410         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
24411         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
24412         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
24413         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
24414         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
24415         used in shcompact_incoming_args.
24416         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
24417         change.
24418         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
24419         mode.
24420         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
24421         Adjust accordingly.
24422         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
24423         Simplify.  Adjust.  Add sanity check.
24424         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
24425         FPU_SINGLE_BIT.
24426         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
24427         TARGET_SHCOMPACT.
24428         (udivsi3, divsi3): Use them.
24429         (force_mode_for_call): New insn.
24430         (call, call_value, sibcall_value): Emit it before SHcompact
24431         calls.
24432         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
24433         * config/sh/sh.md (call, call_value, sibcall): Make sure the
24434         call cookie is non-NULL before taking its value.
24435         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
24436         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
24437         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
24438         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
24439         block.
24440         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
24441         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
24442         temporary for stack adjusts.  Use MACL and MACH to pass
24443         arguments to shcompact_incoming_args.
24444         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
24445         clobber r1.
24446         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
24447         (nested_trampoline): Load static chain address into r1.
24448         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
24449         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
24450         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
24451         fp_arith_reg_operand().
24452         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
24453         * config/sh/sh.md (casesi): Sign-extend the first two operands,
24454         and use signed compares for them.
24455         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
24456         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
24457         ones properly aligned.
24458         (find_barrier): Account for extra alignment needed for 8-byte wide
24459         constants.
24460         (machine_dependent_reorg): Require a label for the second 4-byte
24461         constant after an 8-byte one.
24462         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
24463         change.
24464         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
24465         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
24466         last_float when switching float modes.
24467         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
24468         auto-increment for general-purpose registers.
24469         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
24470         result.
24471         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
24472         for stack adjust.
24473         * config/sh/sh.c (sh_builtin_saveregs): Support using all
24474         registers for varargs.
24475         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
24476         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
24477         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
24478         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
24479         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
24480         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
24481         call_cookie accordingly.
24482         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
24483         (SHCOMPACT_BYREF): Likewise.
24484         (SHCOMPACT_FORCE_ON_STACK): New macro.
24485         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
24486         (sh_builtin_saveregs): Likewise.
24487         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24488         shcompact_incoming_args): Use new shift values.  Support
24489         sequences of consecutive and non-consecutive pushes/pops.
24490         * config/sh/sh.md (return): Don't explicitly use PR_REG.
24491         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
24492         * config/sh/sh.h (TEXT_SECTION): Define.
24493         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
24494         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
24495         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
24496         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
24497         return values on FPU-enabled SHmedia.
24498         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
24499         FPU-enabled SHmedia.
24500         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
24501         value is returned in a non-FP reg and is not returned by
24502         reference.
24503         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
24504         jump_ind.
24505         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
24506         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
24507         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
24508         quad-aligned to be passed by callee-copy reference.
24509         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
24510         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
24511         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
24512         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
24513         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
24514         copying low-numbered FP regs to r7 and r8.
24515         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
24516         FP regs to general-purpose regs only if the copy was passed on the
24517         stack.
24518         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
24519         copying FP reg to r9.
24520         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
24521         copy FP regs to general-purpose regs only in outgoing calls.
24522         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
24523         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
24524         HOST_WIDE_INT.
24525         * config/sh/sh.h (struct sh_args): Document all fields.
24526         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
24527         passed partially on the stack should not consider making
24528         sibcalls.
24529         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
24530         stack_regs only for incoming calls.  When passing FP args,
24531         make sure there are FP regs available before modifying
24532         call_cookie.
24533         (SHCOMPACT_BYREF): Pass double args in general-purpose
24534         registers by reference.
24535         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
24536         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
24537         attempt to generate sibcalls if the caller got any arguments
24538         by reference.
24539         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
24540         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
24541         to 8-byte boundaries.
24542         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
24543         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
24544         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
24545         stored in the stack.
24546         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
24547         for the offsets to have the ISA bit set.
24548         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
24549         invocation.  Use beq instead of bgt to mark end of sequence of
24550         loads.
24551         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
24552         bgt to mark end of sequence of stores.
24553         * config/sh/sh.c (arith_operand): Don't check whether
24554         CONST_OK_FOR_J for now.
24555         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
24556         instead of long for conversion.
24557         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
24558         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
24559         before passing it to fprintf.
24560         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
24561         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
24562         Call set_fpscr before reading/writing SR.
24563         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
24564         Call set_fpscr.
24565         * config/sh/lib1funcs.asm: Add `.align 2' directives before
24566         SHmedia code.
24567         (FMOVD_WORKS): Define on SH5 with FPU.
24568         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
24569         setting.
24570         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
24571         _fpscr_values.
24572         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
24573         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
24574         address.
24575         (ia_main_table): Ditto.
24576         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
24577         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
24578         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
24579         the definitions from sh.h.
24580         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
24581         TARGET_SH5.
24582         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
24583         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
24584         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24585         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
24586         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
24587         Increment LABEL_NUSES.
24588
24589         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
24590         TARGET_SH5.
24591         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
24592         defined.
24593         * config/sh/elf.h (SIZE_TYPE): Likewise.
24594         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24595         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24596         shcompact_incoming_args): Load switch table addresses using
24597         datalabel.
24598         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24599         (NO_BUILTIN_SIZE_TYPE): Define.
24600         (SIZE_TYPE): Don't define.
24601         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24602         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
24603         definition of __SH5__=32 for -m5-compact-nofpu.
24604         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
24605         ADDR_DIFF_VEC.
24606         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
24607         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
24608         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
24609         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
24610         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
24611         (INSN_LENGTH_ALIGNMENT): Likewise.
24612         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24613         * config/sh/sh.md (call, call_value, sibcall): Simplify
24614         copying of non-branch-target register.
24615         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24616         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
24617         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
24618         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
24619         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
24620         floating-point values as structs.
24621         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
24622         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
24623         general-purpose register.
24624         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
24625         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
24626         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
24627         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
24628         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
24629         (ENCODE_SECTION_INFO): Enclose variables and constants in
24630         DATALABEL unspecs.
24631         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
24632         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
24633         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
24634         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
24635         only for LABEL_REFs.  For SYMBOL_REFs, prepend
24636         SH_DATALABEL_ENCODING to the symbol name.
24637         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
24638         convert_mode().
24639         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
24640         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
24641         UNSPEC_DATALABEL.
24642         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
24643         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
24644         (DATALABEL_REF_P): Don't require CONST.
24645         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
24646         REL label.
24647         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
24648         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
24649         right.
24650         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
24651         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
24652         Use shallow_copy_rtx and PUT_MODE to change the mode of
24653         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
24654         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
24655         on SHmedia using GENERAL_REGs.
24656         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24657         bltu_media_i): Fix reversion of conditions.
24658         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
24659         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
24660         * config/sh/sh.c (output_far_jump): Save r13 in macl.
24661         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
24662         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
24663         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
24664         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
24665         (GCC_nested_trampoline): Likewise.
24666         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
24667         * config/sh/sh.c (gen_datalabel_ref): Define.
24668         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
24669         (INITIALIZE_TRAMPOLINE): Likewise.
24670         (TRAMPOLINE_ADJUST_ADDRESS): Define.
24671         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
24672         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
24673         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
24674         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
24675         (ic_invalidate): Adjust for SH5.
24676         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
24677         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
24678         _nested_trampoline.
24679         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
24680         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
24681         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
24682         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
24683         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
24684         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
24685         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
24686         * config/sh/sh.c (target_reg_operand): Match only target-branch
24687         registers and pseudos that aren't virtual registers.
24688         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24689         Copy operands that don't match target_reg_operand to pseudos.
24690         (call_media, call_value_media, sibcall_media): Use
24691         target_reg_operand instead of target_operand.
24692         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
24693         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
24694         * config/sh/sh.c (target_reg_operand): Match hardware registers
24695         other than branch-target registers.
24696         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
24697         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
24698         (fpscr_values) [SH5 == 32]: Define.
24699         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
24700         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24701         Handle function addresses coming in SUBREGs.
24702         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
24703         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24704         shcompact_return_trampoline): Use datalabel where appropriate.
24705         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
24706         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
24707         general-purpose register to copy one branch-target register to
24708         another.
24709         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
24710         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
24711         SYMBOL_REFs with VOIDmode.
24712         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24713         bltu_media_i): New insns.
24714         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
24715         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
24716         (INIT_CUMULATIVE_ARGS): Likewise.
24717         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
24718         * machmode.def (V16SFmode): New mode.
24719         * c-common.c (type_for_mode): Support V2SF and V16SF.
24720         * tree.c (build_common_tree_nodes_2): Likewise.
24721         * tree.h (tree_index): Likewise.
24722         * calls.c (emit_call_1): Take args_so_far.  Adjust all
24723         callers.  Introduce CALL_POPS_ARGS.
24724         * tm.texi (CALL_POPS_ARGS): Document.
24725         * config/sh/crt1.asm: Implement in SHmedia mode.
24726         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
24727         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
24728         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
24729         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
24730         Implement divsi and udivsi in SHmedia mode.  Introduce
24731         SHcompact trampolines.
24732         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
24733         only in SHmedia64.
24734         (regno_reg_class): Rewrite.
24735         (fp_reg_names): Remove.
24736         (sh_register_names, sh_additional_register_names): New.
24737         (print_operand): Added `u'.  Support SUBREGs in addresses.
24738         Add parentheses around shifted CONSTs.
24739         (output_file_start): Output .mode and .abi directives.
24740         (shiftcosts, addsubcosts, multcosts): Adjust.
24741         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
24742         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
24743         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
24744         bytes, not registers.  Take into account the need for the
24745         SHcompact incoming args trampoline.  Adjust all callers.
24746         (sh_expand_prologue): Take stack_regs into account.  Call
24747         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
24748         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
24749         stack aligned as per SH5 ABI.
24750         (sh_builtin_saveregs): Support SH5 ABI.
24751         (sh_build_va_list, sh_va_start): Likewise.
24752         (initial_elimination_offset): Take alignment into account.
24753         Compute location of PR according to the SH5 stack frame.
24754         (arith_reg_operand): Reject branch-target registers.
24755         (shmedia_6bit_operand): New.
24756         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
24757         (target_reg_operand): Match DImode only.  Accept SUBREGs.
24758         (target_operand): New.
24759         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
24760         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
24761         SIBCALL_REGS for SHmedia.
24762         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
24763         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
24764         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
24765         (TARGET_SWITCHES): New SH5 flags.
24766         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
24767         VALID_REGISTER_P to disable unsupported registers.
24768         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
24769         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
24770         (FUNCTION_ARG_PADDING): Define.
24771         (FASTEST_ALIGNMENT): Adjust.
24772         (SH_REGISTER_NAMES_INITIALIZER): New.
24773         (sh_register_names): Declare.
24774         (DEBUG_REGISTER_NAMES): Define.
24775         (REGISTER_NAMES): Define based on sh_register_names.
24776         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
24777         (sh_additional_register_names): Declare.
24778         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
24779         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
24780         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
24781         (REGISTER_NATURAL_MODE): Define.
24782         (FIRST_PSEUDO_REGISTER): Adjust.
24783         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
24784         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
24785         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
24786         (VECTOR_MODE_SUPPORTED_P): Define.
24787         (REG_CLASS_CONTENTS): Adjust.
24788         (SMALL_REGISTER_CLASSES): Adjust.
24789         (REG_ALLOC_ORDER): Adjust.
24790         (INDEX_REG_CLASS): Adjust.
24791         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
24792         (CONST_OK_FOR_LETTER_P): Adjust.
24793         (PREFERRED_RELOAD_CLASS): Adjust.
24794         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
24795         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
24796         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
24797         (FIRST_FP_PARM_REG): Adjust.
24798         (CALL_POPS_ARGS): Define.
24799         (FUNCTION_ARG_REGNO_P): Adjust.
24800         (struct sh_args): New fields.
24801         (GET_SH_ARG_CLASS): Adjust.
24802         (INIT_CUMULATIVE_ARGS): Adjust.
24803         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
24804         (FUNCTION_ARG_ADVANCE): Adjust.
24805         (FUNCTION_ARG): Adjust.
24806         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
24807         (FUNCTION_ARG_CALLEE_COPIES): Define.
24808         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
24809         (STRICT_ARGUMENT_NAMING): Define.
24810         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
24811         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
24812         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
24813         (SETUP_INCOMING_VARARGS): Adjust.
24814         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
24815         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
24816         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
24817         (SUBREG_OK_FOR_INDEX_P): Adjust.
24818         (EXTRA_CONSTRAINT_S): Update.
24819         (EXTRA_CONSTRAINT_T): New.
24820         (EXTRA_CONSTRAINT): Adjust.
24821         (GO_IF_LEGITIMATE_INDEX): Adjust.
24822         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
24823         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
24824         (MOVE_MAX): Adjust.
24825         (MAX_MOVE_MAX): Define.
24826         (Pmode): Adjust.
24827         (CONST_COSTS): Adjust.
24828         (REGISTER_MOVE_COST): Adjust.
24829         (BRANCH_COST): Adjust.
24830         (TEXT_SECTION_ASM_OP): Adjust.
24831         (DBX_REGISTER_NUMBER): Adjust.
24832         (ASM_OUTPUT_DOUBLE_INT): New.
24833         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
24834         (PREDICATE_CODES): Adjust.
24835         (PROMOTE_MODE): Adjust.
24836         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
24837         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
24838         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
24839         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
24840         (DR0_REG, DR2_REG, DR4_REG): Renumber.
24841         (TR0_REG, TR1_REG, TR2_REG): New.
24842         (XD0_REG): Renumber.
24843         (UNSPEC_COMPACT_ARGS): New.
24844         (type): Added pt and ptabs.
24845         (length): Default to 4 on SHmedia.  Default pt length to 12
24846         and     20 on SHmedia32 and SHmedia64, respectively.
24847         (pt): New function unit.
24848         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
24849         Add whitespace between operands of SHmedia instructions.
24850         (movdicc): Fix.
24851         (adddi3_media, addsi3_media): Adjust constraints.
24852         (subsi3) [SHmedia]: Force operand 1 into a register.
24853         (udivsi3_i1_media, udivsi3_i4_media): New.
24854         (udivsi3): Support SHmedia.
24855         (divsi3_i1_media, divsi3_i4_media): New.
24856         (divsi3): Support SHmedia.
24857         (anddi3, iordi3, xordi3): Adjust constraints.
24858         (zero_extendhidi2, zero_extendqidi2): New.
24859         (extendsidi2, extendhidi2, extendqidi2): New.
24860         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
24861         (pop_e, pop_fpul, pop_4): Likewise.
24862         (movsi_media): Support FP and BT registers.
24863         (movsi_media_nofpu): New.  Adjust splits to DImode.
24864         (lduw, ldub): Renamed to zero_extend* above.
24865         (movqi_media): Fix typo.
24866         (movdi_media): Support FP and BT registers.
24867         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
24868         (movdi_const_32bit): New.
24869         (shori_media): Require immediate operand.  Use `u' for output.
24870         (movdf_media, movsf_media): Simplified.
24871         (movdf_media_nofpu, movsf_media_nofpu): New.
24872         (movdf, movsf): Adjust
24873         (movv2sf, movv2sf, movv16sf): New.
24874         (beq_media, beq_media_i): Adjust constraints.  Don't use
24875         scratch BT register.
24876         (bne_media, bne_media_i): Likewise.
24877         (bgt_media, bgt_media_i): Likewise.
24878         (bge_media, bge_media_i): Likewise.
24879         (bgtu_media, bgtu_media_i): Likewise.
24880         (bgeu_media, bgeu_media_i): Likewise.
24881         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
24882         bunordered): Emit jump insn.  Force operands to registers when
24883         needed.
24884         (jump_media, jump): Simplify.
24885         (call_compact, call_compact_rettramp): New.
24886         (call_value_compact, call_value_compact_rettramp): New.
24887         (call_media, call_value_media): Simplify.
24888         (sibcall_compact, sibcall_media): New.
24889         (call, call_value): Adjust for SHmedia and SHcompact.
24890         (sibcall, sibcall_value, untyped_call): Likewise.
24891         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
24892         (indirect_jump): Adjust for SHmedia.
24893         (casesi_jump_media): New.
24894         (nop): Re-enable for SHmedia.
24895         (call_site): Restrict to SH1.
24896         (casesi): Adjust for SHmedia.
24897         (casesi_shift_media, casesi_load_media): New.
24898         (return): Explicitly use PR register.  Call return trampoline
24899         on SHcompact.
24900         (return_i): Explicitly use PR register.
24901         (shcompact_return_tramp, shcompact_return_tramp_i): New.
24902         (return_media): Adjust.
24903         (shcompact_incoming_args): New.
24904         (epilogue): Adjust.
24905         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24906         (movstrsi): Disable on SH5.
24907         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
24908         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
24909         (subsf3, subsf3_media): Likewise.
24910         (mulsf3, mulsf3_media, mac_media): Likewise.
24911         (divsf3, divsf3_media): Likewise.
24912         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
24913         (floatsisf2, fux_truncsfsi2): Likewise.
24914         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
24915         constraints.
24916         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
24917         (cmpunsf_media, cmpsf): Likewise.
24918         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
24919         (abssf2, abssf2_media): Likewise.
24920         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
24921         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
24922         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
24923         (floatsidf2, fix_truncdfsi2): Likewise.
24924         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
24925         constraints.
24926         (cmpeqdf_media, cmpgtdf_media): Likewise.
24927         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
24928         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
24929         (absdf2, absdf2_media): Likewise.
24930         (extendsfdf2, extendsfdf2_media): Likewise.
24931         (truncsfdf2, truncsfdf2_media): Likewise.
24932         * config/sh/sh64.h: New file.
24933         * config/sh/t-sh64: New file.
24934         * config/sh/shmedia.h: New file.
24935         * config/sh/ushmedia.h: New file.
24936         * config/sh/sshmedia.h: New file.
24937         * configure.in: Added sh64-*-elf.
24938         * configure: Rebuilt.
24939         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
24940         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
24941         (reg_class_from_letter): Use `b' for TARGET_REGS.
24942         (print_operand): Support `%M', `%m', `AND' and
24943         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
24944         (andcosts): Adjust for SHmedia.
24945         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
24946         Likewise.
24947         (target_reg_operand): New function.
24948         * config/sh/sh-protos.h (target_reg_operand): Declare.
24949         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
24950         FP registers on SH5.
24951         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
24952         on SH4.
24953         (TARGET_REGISTER_P): New macro.
24954         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
24955         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
24956         (EXTRA_CONSTRAINT_S): New macro.
24957         (EXTRA_CONSTRAINT): Adjust.
24958         (FLOAT_TYPE_SIZE): Define to 32.
24959         (Pmode): DImode on SHmedia.
24960         (CONST_COSTS): Adjust for SHmedia literals.
24961         (PREDICATE_CODES): Added target_reg_operand.
24962         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
24963         * config/sh/sh.md: Remove all attrs from SHmedia insns.
24964         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
24965         (cmpdi): Accept SHmedia.
24966         (movdicc_false, movdicc_true): New insns.
24967         (movdicc): New expand.
24968         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
24969         no_new_pseudos.
24970         (addsi3_media): Match `S' constraint.
24971         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
24972         (negdi2): Expand for SHmedia.
24973         (one_cmpldi2): New expand.
24974         (zero_extendsidi2): Change from expand to insn.
24975         (extendsidi2): Add constraints.
24976         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
24977         LD/ST address.  Fix SI immediate loading split.
24978         (movhi_media, movqi_media, lduw, ldub): New insns.
24979         (movhi, movqi): Accept SHmedia.
24980         (shori_media, movdi_media): Relax input constraints.  Split
24981         symbolic constants.
24982         (movdf_media, movsf_media): New insn.  New split to movdi.
24983         (movdf, movsf): Match on SHmedia.
24984         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
24985         bgeu_media): New insns and splits.  New insns with `_i' suffix.
24986         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
24987         (bunordered): New expand.
24988         (jump_compact): Renamed from `jump'.
24989         (jump_media): New insn.
24990         (jump): New expand.
24991         (call_media, call_value_media): New insns.
24992         (call, call_value): Adjust.
24993         (indirect_jump_compact): Renamed from `indirect_jump'.
24994         (indirect_jump_media): New insn.
24995         (indirect_jump): New expand.
24996         (untyped_call, return): Accept SHmedia.
24997         (return_media): New insn.
24998         (prologue, epilogue, blockage): Accept SHmedia.
24999         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
25000         (sunordered): New expand.
25001         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
25002         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
25003         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
25004         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
25005         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
25006         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
25007         abssf2_media): New insns.
25008         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
25009         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
25010         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
25011         floatdidf2, floatsidf2_media, fix_truncdfdi2,
25012         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
25013         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
25014         absdf2_media): New insns.
25015         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
25016         (extendsfdf2_media, truncdfsf2_media): New insns.
25017         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
25018         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
25019         * config/sh/sh.h (CONST_OK_FOR_J): Document.
25020         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
25021         * config/sh/sh.md (adddi3): New expand.
25022         (adddi3_media, adddi3z_media): New insns.
25023         (adddi3_compact): Renamed from adddi3.
25024         (addsi3_media): Use add.l r63 to add constant zero.
25025         (subdi3): New expand.
25026         (subdi3_media): New insn.
25027         (subdi3_compact): Renamed from subdi3.
25028         (mulsidi3): New expand.
25029         (mulsidi3_media): New insn.
25030         (mulsidi3_compact): Renamed from mulsidi3.
25031         (umulsidi3): New expand.
25032         (umulsidi3_media): New insn.
25033         (umulsidi3_compact): Renamed from umulsidi3.
25034         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
25035         (ashlsi3, ashrsi3, lshrsi3): Use them.
25036         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
25037         (ashldi3, ashrdi3, lshrdi3): Use them.
25038         (zero_extendsidi2): New expand.
25039         (extendsidi2): New insn.
25040         (movsi_media): New insn.  Split to movdi to load constants.
25041         (movsi): Enable for shmedia.
25042         (movdi_media): New insn.  Use shori_media to load wide constants.
25043         (short_media): New insn.
25044         (movdi): Enable for shmedia.
25045         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
25046         * config/sh/sh.h (CPP_SPEC): Added `m5'.
25047         (SUBTARGET_CPP_SPEC): Added `!m5'.
25048         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
25049         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
25050         to all other SH variants.
25051         (TARGET_DEFAULT): Set to SH1_BIT.
25052         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
25053         (BITS_PER_WORD): Raise to 64 on shmedia.
25054         (MAX_BITS_PER_WORD): Change to 64.
25055         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
25056         (INT_TYPE_SIZE): Keep as 32.
25057         (UNITS_PER_WORD): Raise to 8 on shmedia.
25058         (MIN_UNITS_PER_WORD): Keep as 4.
25059         (POINTER_SIZE): Raise to 64 on shmedia.
25060         (CONST_OK_FOR_J): New macro.
25061         (CONST_OK_FOR_LETTER_P): Use it.
25062         (processor_type): Add PROCESSOR_SH5.
25063         * config/sh/sh.md: Conditionalize all expands, insns and
25064         splits to TARGET_SH1.
25065         (cpu): Added sh5.
25066         (addsi3_compact): Renamed from...
25067         (addsi3): Now an expand.
25068         (addsi3_media, subsi3_media): New insns.
25069         (subsi3): Don't negate constants with SHmedia.
25070
25071         * hooks.c: New file.
25072         * hooks.h: New file.
25073         * Makefile.in (HOOKS_H): New.
25074         (TARGET_DEF_H): Added $(HOOKS_H).
25075         (OBJS): Added hooks.o.
25076         (cfgcleanup.o, bb-reorder.o): Added target.h.
25077         (hooks.o): Added dependencies.
25078         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
25079         (TARGET_INITIALIZER): this.
25080         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
25081         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
25082         * bb-reorder.c: Include target.h.
25083         (reorder_basic_blocks): Skip if cannot modify jumps.
25084         * cfgcleanup.c: Include target.h.
25085         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
25086
25087 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
25088
25089         * config/mips/mips.md (casesi_internal, casesi_internal_di):
25090         Protect jump delay slot instructions with .set noreorder and
25091         .set nomacro.
25092
25093 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
25094
25095         * config/mips/mips.md (casesi_internal_di): Calculate
25096         the index into the target offset table correctly.
25097
25098 2002-02-08  Richard Henderson  <rth@redhat.com>
25099
25100         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
25101         * final.c (output_addr_const): Accept and discard SUBREG.
25102         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
25103         mark them unknown instead.
25104         (simplify_subtraction): Handle RTX_UNKNOWN.
25105         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
25106
25107 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
25108
25109         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
25110
25111 2002-02-08  Richard Henderson  <rth@redhat.com>
25112
25113         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
25114
25115 2002-02-08  Andreas Jaeger  <aj@suse.de>
25116
25117         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
25118         * config/i386/t-linux64: New file.
25119
25120 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
25121
25122         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
25123         * c-parse.in (compstmt): Clear last_expr_type.
25124
25125 2002-02-07  Richard Henderson  <rth@redhat.com>
25126
25127         * loop.c (strength_reduce): Sink final_value when not
25128         eliminating a biv.
25129
25130 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
25131
25132         * config/sparc/freebsd.h: Fix mismatched spec {.
25133
25134 2002-02-07  Richard Henderson  <rth@redhat.com>
25135
25136         * cfgrtl.c: Include recog.h and insn-config.h.
25137         (keep_with_call_p): Fix general_operand invocation.
25138         * Makefile.in (cfgrtl.o): Update dependencies.
25139
25140 2002-02-07  Kazu Hirata  <kazu@hxi.com>
25141
25142         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
25143         comment.  Accept HImode only if TARGET_H8300.
25144
25145 2002-02-07  Eric Christopher  <echristo@redhat.com>
25146
25147         * config/mips/crtn.asm: Cleanup #ifdefs.
25148
25149 2002-02-07  Eric Christopher  <echristo@redhat.com>
25150
25151         * config/mips/crti.asm: Add changes for mips16. mips16 uses
25152         register 7 as RA instead of $31.
25153         * config/mips/crtn.asm: Ditto.
25154         * config/mips/mips.c (mips_move_2words): Add case for
25155         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
25156         (compute_frame_size): Fix typo.
25157         (save_restore_insns): Ditto.  Make documentation about using
25158         register $7 as return register more precise.
25159         (mips_expand_epilogue): Fix comment. Add code to work around not
25160         being able to add to the stack pointer directly.
25161         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
25162         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
25163         epilogue.
25164
25165 2002-02-07  Tom Rix  <trix@redhat.com>
25166
25167         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
25168         immediates in ldu and stdu DS opcode field.
25169         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
25170         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
25171         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
25172
25173 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
25174
25175         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
25176         offset for stack bias.
25177
25178 2002-02-07  H.J. Lu <hjl@gnu.org>
25179
25180         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
25181
25182 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
25183
25184         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
25185
25186 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
25187
25188         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
25189         * i386.c (x86_order_regs_for_local_alloc): New global function.
25190         * i386.h (REG_ALLOC_ORDER): CLeanup.
25191         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
25192
25193 2002-02-07  Richard Henderson  <rth@redhat.com>
25194
25195         PR optimization/2463
25196         * alias.c (find_base_value): Recall base values for fixed hard regs.
25197         * loop.c (loop_regs_update): Don't use single_set on non-insns.
25198
25199 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
25200
25201         * config/mips/mips.md (define_delay) [mips16]: Adjust required
25202         length.
25203
25204 2002-02-06  Richard Henderson  <rth@redhat.com>
25205
25206         PR c/5609
25207         * stmt.c (resolve_operand_name_1): Take more care with mixed
25208         named and unnamed operands.
25209
25210 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
25211             Jan Hubicka  <jh@suse.cz>
25212
25213         * loop.c (remove_constant_addition): Avoid clobbering a shared
25214         CONST expression.
25215
25216 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
25217
25218         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
25219         * config/s390/t-linux64: New file.
25220         * config/s390/libgcc-glibc.ver: New file.
25221
25222 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
25223
25224         * config/s390/linux64.h: Delete file.
25225         * config/s390/s390x.h: New file.
25226         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
25227         as target header file.
25228         * config/s390/linux.h (TARGET_VERSION): Define depending on
25229         DEFAULT_TARGET_64BIT.
25230         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
25231         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
25232         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
25233         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
25234         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
25235         (EXTRA_SPEC): New define.
25236         * config/s390/s390.h (TARGET_VERSION): Define depending on
25237         DEFAULT_TARGET_64BIT.
25238         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
25239
25240 2002-02-06  Jason Merrill  <jason@redhat.com>
25241
25242         * c-decl.c (finish_function): Warn about a non-void function with
25243         no return statement and no abnormal exit.
25244         (current_function_returns_abnormally): New variable.
25245         (start_function): Clear it.
25246         (struct c_language_function): Add returns_abnormally.
25247         (push_c_function_context): Save it.
25248         (pop_c_function_context): Restore it.
25249         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
25250         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
25251         an explicit return type.
25252         * c-tree.h: Declare current_function_returns_abnormally.
25253         (C_FUNCTION_IMPLICIT_INT): New macro.
25254         * c-typeck.c (build_function_call): Set it.
25255         (c_expand_return): Set current_function_returns_value even if the
25256         value is erroneous.
25257
25258 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
25259
25260         PR c/5420:
25261         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
25262         unsafe for reevaluation.
25263
25264 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
25265
25266         PR c/5482:
25267         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
25268         EXPR_STMT, but COMPOUND_STMT, recurse into it.
25269
25270 2002-02-06  Richard Henderson  <rth@redhat.com>
25271
25272         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
25273         be a general_operand.  Dest for function value must be a pseudo.
25274
25275 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
25276
25277         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
25278         as SYMBOL_REFs from the constant pool.
25279
25280 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
25281
25282         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
25283         passed by invisible reference.
25284
25285 2002-02-05  Richard Henderson  <rth@redhat.com>
25286
25287         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
25288
25289 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
25290
25291         Implement using "base addresses" in insn operands as default.
25292         * config/mmix/mmix.c (mmix_conditional_register_usage): if
25293         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
25294         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
25295         used to read the rtx value.
25296         (mmix_target_asm_function_epilogue): Fix spacing.
25297         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
25298         (mmix_legitimate_address): Ditto.
25299         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
25300         should be loaded with a GETA insn.  Don't allocate needless extra
25301         char for nul termination and fix misleading comment.
25302         (mmix_print_operand_address): Handle constants if
25303         TARGET_BASE_ADDRESSES.
25304         (mmix_output_register_setting): Use base addressing if
25305         TARGET_BASE_ADDRESSES and the number of insns is 3.
25306         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
25307         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
25308         to use R as constraint, add LDA to match s.
25309         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
25310         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
25311         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
25312         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
25313         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
25314         order with other fixed registers.
25315         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
25316         other parameter/call-clobbered registers.
25317         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
25318         -mbase-addresses, -mno-base-addresses.
25319         (MMIX Options): Ditto.
25320
25321 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25322
25323         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
25324
25325 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
25326
25327         * config/rs6000/altivec.h: Change elem to _S_elem.
25328
25329 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
25330
25331         * config/netbsd.h (WCHAR_TYPE): Define.
25332         (WCHAR_TYPE_SIZE): Ditto.
25333         (WINT_TYPE): Ditto.
25334         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
25335         (WCHAR_UNSIGNED): Ditto.
25336         (WCHAR_TYPE_SIZE): Ditto.
25337         (WINT_TYPE): Ditto.
25338         * config/arm/netbsd.h: Likewise.
25339         * config/i386/netbsd-elf.h: Likewise.
25340         * config/i386/netbsd.h: Likewise.
25341         * config/m68k/netbsd-elf.h: Likewise.
25342         * config/m68k/netbsd.h: Likewise.
25343         * config/ns32k/netbsd.h: Likewise.
25344         * config/sparc/netbsd.h: Likewise.
25345         * config/vax/netbsd.: Likewise.
25346
25347 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
25348
25349         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
25350         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
25351         (TARGET_INITIALIZER): this.
25352         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
25353         (BITFIELD_NBYTES_LIMITED): Markup fix.
25354         * tree.h (default_ms_bitfield_layout_p): Declare.
25355         (record_layout_info): Added prev_field.
25356         * tree.c (default_ms_bitfield_layout_p): New fn.
25357         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
25358         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
25359         * stor-layout.c: Include target.h.
25360         (start_record_layout): Initialize prev_field.
25361         (place_field): Handle MS bit-field layout, and disregard
25362         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
25363         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
25364         * Makefile.in (stor-layout.o): Adjust dependencies.
25365
25366 2002-02-05  Jason Merrill  <jason@redhat.com>
25367
25368         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
25369
25370 2002-02-05  Andreas Jaeger  <aj@suse.de>
25371
25372         * crtstuff.c: Fix comments.
25373
25374 2002-02-05  Richard Henderson  <rth@redhat.com>
25375
25376         PR fortran/3393
25377         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
25378         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
25379
25380         PR fortran/3392
25381         * config/mips/mips.c (function_arg): Handle TImode.
25382         (function_arg_advance): Likewise.
25383
25384 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25385
25386         * config/rs6000/altivec.h (vec_step_help): Rename to
25387         __vec_step_help.
25388
25389 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25390
25391         * config/rs6000/altivec.h: Fix typos.
25392
25393 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
25394
25395         * config/arm/netbsd.h: Correct a comment.
25396
25397 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25398
25399         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
25400         building void typed builtins.
25401
25402         * config/rs6000/altivec.h (vec_ld*): Fix typos.
25403         (vec_step): Implement for C++.
25404
25405 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25406
25407         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
25408
25409 2002-02-04  Richard Henderson  <rth@redhat.com>
25410
25411         * combine.c (nonzero_bits): Re-introduce special case for
25412         sp/fp/ap wrt REGNO_POINTER_ALIGN.
25413
25414 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
25415
25416         * doc/extend.texi: Warn about unsupported usage of altivec
25417         builtins.
25418
25419         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
25420         (altivec_predicate_*): New.
25421
25422         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
25423         Add C++ version of vec_*() functions.
25424
25425         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
25426         (bdesc_2arg): Remove altivec predicates.
25427         (altivec_expand_builtin): Handle predicates.
25428         (altivec_init_builtins): Handle predicates.
25429         (altivec_expand_predicate_builtin): New.
25430
25431 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25432
25433         * pa.c (DO_FRAME_NOTES): Move forward.
25434         (store_reg): Revise handling of frame notes.
25435         (load_reg): Likewise.
25436         (set_reg_plus_d): Likewise.
25437         (hppa_expand_prologue): Likewise.
25438         (hppa_expand_epilogue): Likewise.
25439
25440 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25441
25442         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
25443
25444 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25445
25446         PR c/4475, c++/3780:
25447         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
25448         * c-common.h (SWITCH_TYPE): Define.
25449         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
25450         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
25451         Rename spareness variable to sparseness.
25452         (expand_end_case_type): Renamed from expand_end_case, use orig_type
25453         if non-NULL instead of TREE_TYPE (orig_index).
25454         * tree.h (expand_end_case_type): Renamed from expand_end_case.
25455         (expand_end_case): Define using expand_end_case_type.
25456         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
25457         to expand_end_case_type.
25458         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
25459
25460 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25461
25462         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
25463         (BIGGEST_ALIGNMENT): Change to 128.
25464
25465 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25466
25467         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
25468
25469 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25470
25471         * pa.md (call_internal_reg_64bit): Remove unused variable.
25472
25473 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
25474
25475         * config/arm/arm.h (machine_function): Add uses_anonymous_args
25476         field.
25477         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
25478         * config/arm/arm.c (current_function_anonymous_args): Delete,
25479         replace uses with cfun->machine->uses_anonymous_args.
25480         (arm_reorg): Do not reset uses_anonymous_args.
25481
25482         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
25483         any geenral register.
25484
25485 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
25486
25487         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
25488         the entry block.
25489
25490 2002-02-04  Richard Henderson  <rth@redhat.com>
25491
25492         * combine.c (force_to_mode): Remove STACK_BIAS code.
25493         (nonzero_bits): Likewise.  Replace sp/fp special case with
25494         REGNO_POINTER_ALIGN.
25495
25496         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
25497         (HARD_FRAME_POINTER_REGNUM): New.
25498         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
25499         (FIXED_REGS, CALL_USED_REGS): Update.
25500         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
25501         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
25502         (HARD_REGNO_NREGS): Update for SFP.
25503         (STACK_POINTER_OFFSET): Include bias here ...
25504         (FIRST_PARM_OFFSET): ... not here.
25505         (STACK_BIAS): Remove.
25506         (INIT_EXPANDERS): New.
25507         (STARTING_FRAME_OFFSET): Do not include bias.
25508         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
25509         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
25510         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
25511         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
25512         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
25513         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
25514         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
25515         (MUST_SAVE_REGISTER): Likewise.
25516         (sparc_flat_function_prologue): Likewise.
25517         (sparc_flat_function_epilogue): Likewise.
25518         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
25519         (sparc_init_modes): SFP is GENERAL_REGS.
25520         (sparc_builtin_saveregs): SFP does not have bias applied.
25521
25522 2002-02-04  Richard Henderson  <rth@redhat.com>
25523
25524         * config/alpha/alpha.c (current_function_is_thunk): Don't check
25525         current_function_is_thunk.
25526         (alpha_sa_mask): Distinguish between current_function_is_thunk
25527         called from ASM_OUTPUT_MI_THUNK and not.
25528         (alpha_does_function_need_gp): Thunks always need gp.
25529         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25530         (alpha_output_mi_thunk_osf): New.
25531         * config/alpha/alpha-protos.h: Update.
25532         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
25533
25534 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
25535
25536         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
25537         function types, not when they're taken away.
25538
25539 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
25540
25541         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
25542         CODE_LABEL and jump table when replacing a table jump with a
25543         simple jump.
25544
25545 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
25546
25547         * config/s390/s390-protos.h (legitimize_la_operand,
25548         s390_secondary_input_reload_class, s390_plus_operand,
25549         s390_expand_plus_operand): Add prototypes.
25550
25551         config/s390/s390.c (s390_secondary_input_reload_class,
25552         s390_plus_operand, s390_expand_plus_operand): New functions.
25553
25554         (struct s390_address): New member 'pointer'.
25555         (s390_decompose_address): Compute it.
25556         (legitimate_la_operand_p): Use it.
25557         (legitimize_la_operand): New function.
25558         (movti, movdi, movdf splitters): Call it.
25559
25560         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
25561         (PREDICATE_CODES): Add s390_plus_operand.
25562
25563         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
25564         (la_ccclobber): Allow GENERAL_REGS as output operand.
25565
25566         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
25567         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
25568         (*la_64, *la_31, reload_indi, reload_insi): ... these.
25569
25570 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
25571
25572         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
25573         register names for regular asm () construct.
25574
25575 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25576
25577         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
25578         registers.
25579
25580 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
25581
25582         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
25583         pat for recog.
25584
25585 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
25586
25587         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
25588         constant pool to be identical by string address and index.
25589
25590 2002-02-04  Anthony Green  <green@redhat.com>
25591
25592         * output.h (SECTION_OVERRIDE): Define.
25593         * varasm.c (named_section): Obey SECTION_OVERRIDE.
25594
25595 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
25596
25597         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
25598         by existing arm*-*-netbsd* (a.out) target.
25599         (ns32k-*-netbsdelf*): Likewise.
25600         (sparc-*-netbsdelf*): Likewise.
25601         (vax-*-netbsdelf*): Likewise.
25602
25603 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
25604
25605         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
25606         headers and libobjc headers.
25607
25608 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
25609
25610         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
25611         (_mingw.h): Remove duplicate include.
25612
25613 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
25614
25615         * config.gcc: Set cpu_type to m68k for 68010, as well.
25616         (m68010-*-netbsdelf*): New...
25617         (m68k*-*-netbsdelf*): ...targets.
25618         * config/m68k/netbsd-elf.h: New file.
25619
25620 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25621
25622         * config/h8300/h8300.c (hand_list): Move inside function_arg.
25623
25624 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25625
25626         * config/h8300/h8300.c (h8_push_ops): Move inside
25627         h8300_init_once.
25628         (h8_pop_ops): Likewise.
25629         (h8_move_ops): Likewise.
25630
25631 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25632
25633         * config/h8300/h8300.c (os_task): Make it static.
25634         (monitor): Likewise.
25635         (pragma_saveall): Likewise.
25636
25637 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
25638
25639         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
25640         constant is a valid sign-extension for Pmode.
25641
25642 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25643
25644         * config/h8300/h8300.c: Fix formatting.
25645
25646 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25647
25648         * config/h8300/h8300.md: Fix formatting.
25649
25650 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25651
25652         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
25653         predicates of operands[1].  Split the patterns for each
25654         processor variant.
25655
25656 2002-02-02  Kazu Hirata  <kazu@hxi.com>
25657
25658         * config/h8300/h8300.md (xor patterns): Tighten the predicates
25659         of operands[1] to register_operand.
25660
25661 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
25662
25663         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
25664         * cpphash.c (_cpp_init_hashtable): Similarly.
25665         * cppinit.c (cpp_create_reader): Default the signed_char flag.
25666         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
25667         (COMMAND_LINE_OPTIONS): Recognize -f{un,}signed-char.
25668         (cpp_handle_option): Handle the new options.
25669         * cpplex.c (cpp_interpret_charconst): Use new flag.
25670         * cpplib.h (struct cpp_options): New member signed_char.
25671         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
25672         (cpp_options): Handle -fsigned-char and -funsigned-char.
25673         (static_specs): Remove signed_char_spec.
25674         (do_spec1): Don't handle %c.
25675         * system.h: Poison SIGNED_CHAR_SPEC.
25676         * tradcif.y (yylex): Use flag_signed_char.
25677         * tradcpp.h (flag_signed_char): New.
25678         * tradcpp.c (flag_signed_char): New.
25679         (main): Handle new command-line options.
25680         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
25681 config:
25682         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
25683         * avr/avr.h: Remove old comments.
25684         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
25685         (CC1_SPEC): Pass -fsigned-char if -mic*.
25686         (SIGNED_CHAR_SPEC): Remove.
25687 doc:
25688         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
25689
25690 2002-02-01  Eric Christopher  <echristo@redhat.com>
25691
25692         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
25693         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
25694         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
25695         (ASM_OUTPUT_REG_POP): Ditto.
25696
25697 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
25698
25699         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
25700         patch.
25701
25702 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
25703
25704         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
25705
25706 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
25707
25708         PR c/5304:
25709         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
25710         unconditionally.
25711
25712 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
25713
25714         * cfganal.c: Include tm_p.h.
25715         (keep_with_call_p): Fix the test that determines if a register holds
25716         the return value of a call.
25717
25718 2002-02-01  DJ Delorie  <dj@redhat.com>
25719
25720         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
25721         we are given conflicting registers, switch to the other one we
25722         had allocated for us.
25723         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
25724         as TImode so we know when the "other" register is available.
25725
25726 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
25727
25728         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
25729         sparc/sparc_bi.h.
25730
25731 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
25732
25733         * cfganal.c (keep_with_call_p): New function.
25734         (flow_call_edges_add): Prevent splitting a block between a call and
25735         a single-set instruction that should be kept in the same block.
25736
25737 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25738
25739         * doc/install.texi (avr): Update outdated URL.
25740
25741 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
25742
25743         * config/stormy16/stormy16.md (pushqi): New.
25744         (popqi): New.
25745         (pushhi): New.
25746         (pophi): New.
25747         (movhi): Remove stack operands.
25748         (movqi): Likewise.
25749         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
25750         nonimmediate_nonstack_operand.
25751         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
25752         New.
25753         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
25754         New.
25755
25756 2002-01-31  Jason Merrill  <jason@redhat.com>
25757
25758         * Makefile.in (c-parse.c): Handle .output file.
25759         * objc/Make-lang.in (objc-parse.c): Likewise.
25760
25761 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
25762
25763         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
25764         the -me[lb] option is given.  Don't output the default flag
25765         twice.
25766
25767 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
25768
25769         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
25770         the primary source file; this has not been done yet.
25771         * c-decl.c (c_expand_body): Reset input_filename from
25772         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
25773
25774 2002-01-31  Kazu Hirata  <kazu@hxi.com>
25775
25776         * rtlanal.c (subreg_regno_offset): Do not use
25777         SUBREG_REGNO_OFFSET.
25778         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
25779         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
25780
25781 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
25782
25783         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
25784         version rather than GNATS version in --version output.
25785
25786 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
25787
25788         * ifcvt.c (noce_process_if_block): Make a copy of the destination
25789         when copying back from a temporary.
25790
25791 2002-01-30  Richard Henderson  <rth@redhat.com>
25792
25793         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
25794         and new_dest are the same.
25795
25796 2002-01-30  Richard Henderson  <rth@redhat.com>
25797
25798         PR opt/5076
25799         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
25800         * rtl.c (note_insn_name): Update.
25801         * emit-rtl.c (remove_unnecessary_notes): Kill it.
25802         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
25803         to perform loop rotation.
25804         (expand_exit_loop_top_cond): New.
25805         * tree.h (expand_exit_loop_top_cond): Declare it.
25806         * c-semantics.c (genrtl_while_stmt): Use it.
25807         (genrtl_for_stmt): Likewise.
25808
25809 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
25810
25811         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
25812         arguments to 64-bit boundaries on 64-bit ABIs.
25813
25814 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
25815
25816         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
25817
25818 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
25819
25820         * c-decl.c (grokdeclarator): Handle type being a typedef for an
25821         invalid type.
25822
25823 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
25824
25825         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
25826         * config/sparc/sparc_bi.h: Remove file.
25827         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
25828
25829 2002-01-30  Richard Henderson  <rth@redhat.com>
25830
25831         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
25832
25833 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
25834
25835         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
25836
25837 2002-01-30  Jason Merrill  <jason@redhat.com>
25838
25839         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
25840         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
25841         (reg_save): Use DW_CFA_offset_extended_sf instead.
25842
25843         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
25844
25845 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25846
25847         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
25848         in cselib_lookup.
25849
25850 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
25851
25852         * rs6000.md ("*call_value_local32"): Remove constraints.
25853         ("*call_value_local64"): Same.
25854         ("*call_value_indirect_nonlocal_aix32"): Same.
25855         ("*call_value_nonlocal_aix32"): Same.
25856         ("*call_value_indirect_nonlocal_aix64"): Same.
25857         ("*call_value_nonlocal_aix64"): Same.
25858         ("*call_value_nonlocal_sysv"): Same.
25859
25860 2002-01-29  Richard Henderson  <rth@redhat.com>
25861
25862         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
25863
25864 2002-01-29  Richard Henderson  <rth@redhat.com>
25865
25866         * expr.c (force_operand): Ignore flag_pic for detecting pic
25867         address loads.
25868         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
25869         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
25870         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
25871         instead of open-coded loop.
25872         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
25873         be fixed when in use.
25874
25875 2002-01-29  Richard Henderson  <rth@redhat.com>
25876
25877         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
25878         * sched-rgn.c (propagate_deps): Update them.
25879         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
25880         clobbers list when either gets too long.
25881
25882 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25883
25884         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
25885         and INDEX_REGS the same as GENERAL_REGS.
25886         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
25887
25888 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
25889
25890         * tree.c (build_nonstandard_integer_type): Correct prototype.
25891
25892 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
25893
25894         * config/s390/s390.md (movstrsico, movstrdix_64,
25895         movstrsix_31): Remove, replace by ...
25896         (movstrdi_short, movstrsi_short, movstrdi_long,
25897         movstrsi_long): ... these.  New.
25898         (movstrdi, movstrsi): Adapt.
25899
25900         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
25901         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
25902         Remove unnecessary CC clobber.
25903         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
25904         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
25905
25906         (divmoddi4): Don't partially initialize TImode register.
25907
25908 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
25909
25910         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
25911
25912 2002-01-29  Richard Henderson  <rth@redhat.com>
25913
25914         * flow.c (print_rtl_and_abort): Remove.
25915         (print_rtl_and_abort_fcn): Remove.
25916         (verify_local_live_at_start): Use dump_bb instead.
25917         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
25918         (verify_wide_reg_1): Return 2 on mode test failure.
25919
25920 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
25921
25922         PR c/3325, c/3326, c/2511, c/3347
25923         * c-decl.c (enum_decl_context): Remove BITFIELD.
25924         (grokdeclarator): Take bitfield width as an input.
25925         Ensure bitfields are given the correct type.  Perform
25926         bitfield width validation with build_bitfield_integer_type
25927         rather than waiting for finish_struct.
25928         (grok_typename, grok_typename_in_parm_context, start_decl,
25929         push_parmdecl, grokfield, start_function): Update calls to
25930         grokdeclarator.
25931         (build_bitfield_integer_type): New function.
25932         (finish_struct): Move bitfield validation to grokdeclarator
25933         and build_bitfield_integer_type.
25934         * tree.c (build_nonstandard_integer_type): New function.
25935         * tree.h (build_nonstandard_integer_type): New prototype.
25936 objc:
25937         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
25938
25939 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25940
25941         PR other/1502:
25942         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
25943         don't ignore unrecognized -W* options.
25944         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
25945         * cpplib.h (cpp_handle_option): Adjust prototype.
25946         * c-decl.c (c_decode_options): Pass 0 as last argument to
25947         cpp_handle_option.
25948
25949         PR c/2896:
25950         * gcc.c (cpp_unique_options): Split from cpp_options.
25951         (cpp_options): Source cpp_unique_options.
25952         (default_compilers): Use cpp_unique_options instead of cpp_options
25953         when used together with cc1_options.
25954         (static_specs): Add cpp_unique_options.
25955         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
25956         when used together with cc1_options.
25957
25958 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25959
25960         * config/h8300/h8300-protos.h: Update the prototype of
25961         output_a_shift.
25962         * config/h8300/h8300.c (output_a_shift): Remove an unused
25963         argument 'insn'.  Remove redundant code.
25964         * config/h8300/h8300.md: Adust to the new prototype of
25965         output_a_shift.
25966
25967 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25968
25969         * config/h8300/h8300-protos.h: Update the prototypes of
25970         emit_a_rotate and expand_a_rotate.
25971         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
25972         first argument to 'enum rtx_code'.
25973         (expand_a_rotate): Likewise.
25974
25975 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25976
25977         * config/h8300/h8300-protos.h: Update the prototype of
25978         output_simode_bld.
25979         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
25980         'log2'.
25981         * config/h8300/h8300.md: Adjust to the new prototype.
25982
25983 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25984
25985         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
25986         redundant code.
25987
25988 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25989
25990         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
25991         is a fixed register before returning pic_offset_table_rtx.
25992         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
25993         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
25994
25995 2002-01-28  Jason Merrill  <jason@redhat.com>
25996
25997         * dwarf2.h: Sync with src version.
25998
25999 2002-01-28  Paul Koning  <pkoning@equallogic.com>
26000
26001         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
26002         BT_FN_VOID_PTR_VAR.
26003         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
26004         * doc/extend.texi (__builtin_prefetch): Update documentation:
26005         first argument is now const void ptr.
26006
26007 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26008
26009         * config/h8300/h8300-protos.h: Remove an unused prototype.
26010
26011 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
26012
26013         * toplev.c (lang_independent_init): Round up identifier size.
26014
26015 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
26016
26017         * config.gcc: Revert previous change.
26018
26019 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
26020
26021         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
26022
26023 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
26024
26025         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
26026         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
26027         other non-elf netbsd config frags.
26028         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
26029         collect2 will does that.
26030         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
26031         shared-lib frobbing will work.
26032
26033 2002-01-28  Kazu Hirata  <kazu@hxi.com>
26034
26035         * config/h8300/h8300.h: Fix formatting.
26036         * config/h8300/h8300.md: Likewise.
26037
26038 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
26039
26040         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
26041         the old, removed AAA_standards fix.
26042         * fixinc/fixincl.x: Rebuilt.
26043
26044 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
26045
26046         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
26047         atexit call in crtbegin, hooked in after call to frame_dummy;
26048         register EH before registering __fini__start.
26049
26050 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
26051
26052         * config/rs6000/altivec.h: Remove spurious semicolons.
26053
26054 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26055
26056         * config/h8300/h8300.md: Replace dead bit extraction patterns
26057         with ones that work.
26058
26059 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26060
26061         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
26062         if not STRICT_ALIGNMENT.
26063         * rtl.h (MEM_ALIGN): Likewise.
26064
26065 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26066
26067         * doc/invoke.texi (-fdump-translation-unit): Revert this
26068         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26069
26070 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26071
26072         * config/h8300/h8300.md (define_constants): New.
26073         (anonymous patterns) Use defined constants appropriately.
26074
26075 2002-01-27  Kazu Hirata  <kazu@hxi.com>
26076
26077         * config/h8300/h8300.c (function_arg): Remove redundant code.
26078
26079 2002-01-26  Richard Henderson  <rth@redhat.com>
26080
26081         * sched-deps.c (reg_pending_uses_head): New.
26082         (reg_pending_barrier): Rename from reg_pending_sets_all.
26083         (find_insn_list): Don't mark inline.
26084         (find_insn_mem_list): Remove.
26085         (add_dependence_list, add_dependence_list_and_free): New.
26086         (flush_pending_lists): Replace only_write param with separate
26087         for_read and for_write parameters.  Update all callers.  Use
26088         add_dependence_list_and_free.
26089         (sched_analyze_1): Do not add reg dependencies here; just set
26090         the pending bits.  Use add_dependence_list.
26091         (sched_analyze_2): Likewise.
26092         (sched_analyze_insn): Replace schedule_barrier_found with
26093         reg_pending_barrier.  Add all dependencies for pending reg
26094         uses, sets, and clobbers.
26095         (sched_analyze): Don't add reg dependencies for calls, just
26096         set pending bits.  Use regs_invalidated_by_call.  Treat
26097         sched_before_next_call as a normal list, not a fake insn.
26098         (init_deps): No funny init for sched_before_next_call.
26099         (free_deps): Free pending mems lists.  Don't zero reg_last.
26100         (init_deps_global): Init reg_pending_uses.
26101         (finish_deps_global): Free it.
26102         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
26103         (find_insn_mem_list): Remove.
26104         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
26105         (propagate_deps): Use them.  Zero temp mem lists.
26106
26107 2002-01-26  Richard Henderson  <rth@redhat.com>
26108
26109         * Makefile.in (CRTSTUFF_CFLAGS): New.
26110         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
26111         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
26112         crtstuff.c instead of alpha assembly version.
26113         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
26114         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
26115         not FORCE_{INIT,FINI}_SECTION_ALIGN.
26116         (__do_global_dtors_aux): Mark used.
26117         (frame_dummy, __do_global_ctors_aux): Mark used.
26118         (fini_dummy, init_dummy): Remove.
26119
26120         * config/alpha/crtbegin.asm: Remove file.
26121         * config/alpha/crtend.asm: Remove file.
26122         * config/alpha/t-crtbe: Remove file.
26123         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
26124         (LINK_EH_SPEC): New.
26125
26126         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
26127         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
26128         calling constructors.
26129         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
26130
26131         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
26132         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
26133         CRT_END_INIT_DUMMY hack.
26134         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
26135         FORCE_{INIT,FINI}_SECTION_ALIGN.
26136
26137         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
26138         FORCE_{INIT,FINI}_SECTION_ALIGN.
26139
26140         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
26141         invocation sequence.
26142         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
26143
26144         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
26145         (FORCE_CODE_SECTION_ALIGN): New.
26146
26147 2002-01-26  Richard Henderson  <rth@redhat.com>
26148
26149         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
26150
26151 2002-01-26  Richard Henderson  <rth@redhat.com>
26152
26153         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
26154         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
26155
26156 2002-01-26  Kazu Hirata  <kazu@hxi.com>
26157
26158         * config/h8300/h8300.md: Remove bit extraction patterns that
26159         cannot be triggered.
26160         Restrict each bit extraction pattern to a variant on which the
26161         pattern is tested.
26162
26163 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
26164
26165         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
26166
26167 2002-01-26  Kazu Hirata  <kazu@hxi.com>
26168
26169         * config/h8300/h8300.md: Remove bit test patterns that cannot
26170         be triggered.
26171         Restrict each bit test pattern to a variant on which the
26172         pattern is tested.
26173
26174 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26175
26176         * builtins.c (expand_builtin_strncat): Remove redundant check for
26177         INTEGER_CST.
26178
26179 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
26180
26181         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
26182         default setting.
26183         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
26184         existing setting.
26185
26186 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
26187
26188         * dbxout.c (dbxout_init): Use assemble_name rather than just
26189         stripping off the first character.
26190         (dbxout_source_file): Likewise.
26191
26192 2002-01-25  DJ Delorie  <dj@redhat.com>
26193
26194         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
26195         using rtx_equal_p, not by comparing pointers.
26196
26197 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
26198
26199         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
26200         for PIC_OFFSET_TABLE_REGNUM.
26201         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
26202
26203 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
26204
26205         * config.gcc (x86_64-*-freebsd*): New target.
26206         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
26207         value.
26208         (i[34567]86-*-freebsd*): Don't include svr4.h.
26209         * config/i386/freebsd64.h: New file.
26210
26211 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
26212
26213         * config/alpha/x-vms (version): Make static.
26214
26215         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
26216         in previous checkin.
26217
26218         * Makefile.in (install-headers-cp): New target.
26219         * config.gcc (alpha-dec-*vms*): Install headers with
26220         install-headers-cp
26221
26222 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
26223
26224         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
26225         avoid it's copies.
26226
26227 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26228
26229         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
26230         of compare_tree_int.
26231         (expand_builtin_strncat): Likewise.
26232         * c-decl.c (finish_struct): Use tree_low_cst.
26233         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
26234         * tree.c (compare_tree_int): Likewise.
26235
26236 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
26237
26238         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
26239         adjustments even if they are implemented by more than two insns.
26240
26241 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
26242
26243         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
26244         * df.h (struct ref): Kill B.
26245         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
26246
26247         * basic-block.h (PROP_EQUAL_NOTES): New flag.
26248         * flow.c (propagate_one_insn): Use it.
26249         (mark_used_regs): Handle NIL.
26250
26251 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
26252
26253         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
26254         to help folding.
26255
26256 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
26257
26258         * rs6000.md (prefetch): Make address V4SI mode so that the address
26259         is restricted to legitimate form for instruction.
26260
26261 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
26262
26263         * doc/install.texi (xtensa-*-elf): New target.
26264         (xtensa-*-linux*): New target.
26265         * doc/contrib.texi: Add myself.
26266
26267 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
26268
26269         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
26270         purpose register to hold an SImode (or smaller) value.
26271
26272 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
26273
26274         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
26275         registry only.
26276         * crtstuff.c: Likewise.
26277
26278 2002-01-25  Kazu Hirata  <kazu@hxi.com>
26279
26280         * config/h8300/h8300.md (negation patterns): Tighten
26281         predicates to register_operand.
26282
26283 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
26284
26285         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
26286         mode, not Pmode.
26287
26288         * builtins.c (expand_builtin_prefetch): Same.
26289
26290 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26291
26292         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
26293         modes.
26294
26295 2002-01-24  Kazu Hirata  <kazu@hxi.com>
26296
26297         * config/h8300/h8300.c (print_operand): Remove support for
26298         operand character 'A'.
26299         * config/h8300/h8300.md (three anonymous patterns): Replace
26300         operand character 'A' with either 'T' or 'S'.
26301
26302 2002-01-24  Kazu Hirata  <kazu@hxi.com>
26303
26304         * config/h8300/h8300.c (print_operand): Remove support for
26305         operand character 'U'.
26306
26307 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
26308
26309         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
26310
26311 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
26312
26313         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
26314         values to be assigned to the stack pointer.
26315
26316 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
26317
26318         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
26319         to const_double needs to be done right for big-endian systems.
26320
26321 2002-01-24  Jason Merrill  <jason@redhat.com>
26322
26323         PR c++/2432
26324         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
26325         to can_throw_internal.
26326
26327 2002-01-23  Richard Henderson  <rth@redhat.com>
26328
26329         * fold-const.c (fold): Change UINT_MAX test to check vs precision
26330         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
26331
26332 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26333
26334         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
26335         (symGOT2reg): Use them, then set as GOT value as unchanging.
26336         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
26337         as a temporary, if possible.
26338         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
26339         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
26340
26341 2002-01-23  Kazu Hirata  <kazu@hxi.com>
26342
26343         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
26344         accept to accept 0x80 as operands[2].
26345
26346 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
26347
26348         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
26349
26350 2002-01-23  Richard Henderson  <rth@redhat.com>
26351
26352         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
26353
26354 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
26355
26356         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
26357         (parmlist_or_identifiers_1): Verify that only a parmlist follows
26358         an attribute.
26359
26360 2002-01-23  Richard Henderson  <rth@redhat.com>
26361
26362         * expr.c (move_by_pieces_1): Extend size before negation.
26363
26364         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
26365         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
26366         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
26367         * config/m68k/t-m68kelf: Likewise.
26368
26369 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
26370
26371         * config/xtensa/elf.h: New file.
26372         * config/xtensa/lib1funcs.asm: New file.
26373         * config/xtensa/lib2funcs.S: New file.
26374         * config/xtensa/linux.h: New file.
26375         * config/xtensa/t-xtensa: New file.
26376         * config/xtensa/xtensa-config.h: New file.
26377         * config/xtensa/xtensa-protos.h: New file.
26378         * config/xtensa/xtensa.c: New file.
26379         * config/xtensa/xtensa.h: New file.
26380         * config/xtensa/xtensa.md: New file.
26381         * config.gcc (xtensa-*-elf*): New target.
26382         (xtensa-*-linux*): New target.
26383         * cse.c (canon_hash): Compare rtx pointers instead of register
26384         numbers.  This is required for the Xtensa port.
26385         * integrate.c (copy_insn_list): Handle case where the static
26386         chain is in memory and the memory address has to be copied to
26387         a register.
26388         * doc/invoke.texi (Option Summary): Add Xtensa options.
26389         (Xtensa Options): New node.
26390         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
26391
26392 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
26393
26394         * diagnostic.c (internal_error): Do ICE suppression only
26395         when ENABLE_CHECKING is not defined.
26396
26397         * c-typeck.c (require_complete_type): Return error_mark_node
26398         if type is error_mark_node.
26399
26400 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
26401
26402         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
26403         -Os and issue a warning.
26404
26405 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
26406
26407         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
26408         current (lack of) need for host configuration by hand.
26409
26410         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
26411         references.  Documentation of some target macros moved from
26412         hostconfig.texi to tm.texi.
26413
26414 2002-01-23  Will Cohen  <wcohen@redhat.com>
26415
26416         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
26417         defined.
26418
26419 2002-01-23  Kazu Hirata  <kazu@hxi.com>
26420
26421         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
26422         operand[3].
26423
26424 2002-01-23  Jason Merrill  <jason@redhat.com>
26425
26426         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
26427
26428         * function.c (assign_parms): Don't put args of inline functions
26429         into registers when not optimizing.
26430
26431 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
26432
26433         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
26434         (prologue_use): New pattern.
26435         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
26436         preference to gen_rtx_USE.
26437         (thumb_expand_prologue): Use gen_prologue_use in preference to
26438         gen_rtx_USE.
26439         (thumb_expand_epilogue): Use gen_prologue_use in preference to
26440         gen_rtx_USE.
26441
26442 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
26443
26444         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
26445
26446 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
26447
26448         PR c/3504
26449         * doc/extend.texi: Correct documentation of __alignof__.
26450
26451 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
26452
26453         * params.h: Rename arguments of DEFPARAM so that it will be
26454         recognized as a translation keyword.
26455
26456 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26457
26458         * extend.texi: Document altivec functions.
26459         Fix N-bit adjectives in X86 builtin documentation.
26460
26461 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
26462
26463         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
26464         auto_inc_dec values.
26465
26466 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
26467
26468         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
26469         after backslash.
26470         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
26471
26472 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
26473
26474         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
26475
26476 2002-01-22  Richard Henderson  <rth@redhat.com>
26477
26478         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
26479         copy_insn not copy_rtx.
26480
26481 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
26482
26483         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
26484         "nonzero" as that might add "1" bits.  Ensure "constop" is
26485         properly sign extened.
26486         (force_to_mode): Tweak for sign extended constop.
26487
26488 2002-01-22  Richard Henderson  <rth@redhat.com>
26489
26490         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
26491         for_each_rtx instead of assuming we're already looking at the MEM.
26492         (split_small_symbolic_mem_operand): Likewise.
26493         * config/alpha/alpha.h (PREDICATE_CODES): Update.
26494         * config/alpha/alpha.md (small symbolic memory splitters): Update.
26495
26496 2002-01-22  Richard Henderson  <rth@redhat.com>
26497
26498         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
26499         sequence number for the literal.
26500         (divmoddi_internal_er): Likewise.
26501
26502 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26503
26504         PR java/4972
26505         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
26506         in LIBICONV variable.
26507         * configure: Regenerated.
26508
26509 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
26510
26511         * dependence.c (build_def_use): Remove array_idx.
26512
26513         * dwarfout.c (last_filename): Remove.
26514         (output_compile_unit_die): Remove last_filename.
26515
26516 2002-01-22  Roger Sayle  <roger@eyesopen.com>
26517             Richard Henderson  <rth@redhat.com>
26518
26519         PR opt/3640
26520         * fold-const.c (fold): Optimize unsigned comparisons against
26521         UINT_MAX (and similar unsigned constants).
26522
26523 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
26524
26525         * Makefile.in (loop.o): Depend on OPTABS_H.
26526         * loop.c (emit_prefetch_instructions): Check the prefetch operand
26527         against the predicate.
26528
26529         PR target/5379
26530         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
26531         for the address operand.
26532
26533 2002-01-22  Richard Henderson  <rth@redhat.com>
26534
26535         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
26536
26537 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26538
26539         PR other/5450
26540         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
26541         preprocessor flags.
26542
26543 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
26544
26545         * config.gcc (x86_64-*-netbsd*): New target.
26546         * config/i386/netbsd64.h: New file.
26547
26548 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26549
26550         * regrename.c (kill_value): Fix typo.
26551
26552 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
26553
26554         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
26555
26556         * config/rs6000/rs6000.h: Same.
26557
26558         * function.c (instantiate_virtual_regs): Remove
26559         STARTING_FRAME_PHASE.
26560         (assign_stack_local_1): Same.
26561         Calculate frame phase.
26562
26563 2002-01-22  Nick Clifton  <nickc@redhat.com>
26564
26565         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
26566         variable declaration to outer scope in order to simplify
26567         future extensions.
26568         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
26569         arm_hard_regno_mode_ok.
26570         * config/arm/arm-protos.h: Add a prototype for
26571         arm_hard_regno_mode_ok.
26572         * config/arm/arm.c (soft_df_operand): Remove now redundant
26573         check for DImode values using IP_REGNUM.
26574         (nonimmediate_soft_df_operand): Remove now redundant check for
26575         DImode values using IP_REGNUM.
26576         (arm_hard_regno_mode_ok): New function. New check: make sure
26577         that DImode values are not stored in IP_REGNUM.
26578
26579         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
26580         note with a USE.
26581         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
26582
26583 2002-01-22  Jason Merrill  <jason@redhat.com>
26584
26585         * c-semantics.c (genrtl_compound_stmt): Only check nesting
26586         consistency if this COMPOUND_STMT is scoped.
26587
26588 2002-01-22  Kazu Hirata  <kazu@hxi.com>
26589
26590         * predict.c: Fix formatting.
26591         * print-tree.c: Likewise.
26592         * protoize.c: Likewise.
26593         * real.h: Likewise.
26594         * rtl.h: Likewise.
26595         * sbitmap.h: Likewise.
26596         * scan.c: Likewise.
26597         * sched-deps.c: Likewise.
26598         * sched-vis.c: Likewise.
26599         * sdbout.c: Likewise.
26600         * sibcall.c: Likewise.
26601         * ssa.c: Likewise.
26602         * ssa-ccp.c: Likewise.
26603         * ssa-dce.c: Likewise.
26604         * stmt.c: Likewise.
26605         * stor-layout.c: Likewise.
26606         * system.h: Likewise.
26607
26608 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26609
26610         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
26611         if fits in bounds of base type.
26612
26613         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
26614         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
26615         (add_bound_info, default): If can't find a context, make a
26616         SAVE_EXPR.
26617         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
26618
26619 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
26620
26621         * c-typeck.c (parser_build_binary_op): If result from
26622         build_binary_op is ERROR_MARK just return error_mark_node without
26623         further processing.
26624
26625 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
26626
26627         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
26628         Split a.out-specific bits into...
26629         * config/netbsd-aout.h: ...this.
26630         * config/netbsd-elf.h: New file.
26631         * config/alpha/netbsd-elf.h: Remove.
26632         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
26633         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
26634         (STARTFILE_SPEC): Remove redundant definition.
26635         (ENDFILE_SPEC): Likewise.
26636         (LINK_SPEC): Likewise.
26637         (CPP_SPEC): Likewise.
26638         (ASM_SPEC): Likewise.
26639         (LIB_SPEC): Likewise.
26640         (SWITCH_TAKES_ARG): Likewise.
26641         (TARGET_MEM_FUNCTIONS): Likewise.
26642         (CPP_PREDEFINES): Redefine.
26643         (ASM_FINAL_SPEC): Remove redefinition.
26644         (ASM_COMMENT_START): Redefine.
26645         (FUNCTION_PROFILER): Define.
26646         (TARGET_VERSION): Redefine.
26647         Comment and formatting cleanup.
26648         * config/i386/netbsd.h: Include <netbsd-aout.h>.
26649         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
26650         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
26651         big- or little-endian.
26652         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
26653         * config.gcc (*-*-netbsd*): Add definitions common to all
26654         NetBSD configs.
26655         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
26656         gnu_ld definitions.  Add netbsd-elf.h to and remove
26657         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
26658         tmake_file, and don't lose previous tmake_file contents.
26659         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
26660         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
26661         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
26662         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
26663         (mipsel-*-netbsd*): Rename this to...
26664         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
26665         mips/little.h to tm_file for mips*el-*.
26666         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
26667         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
26668         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
26669
26670 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26671
26672         * pa-protos.h (reg_before_reload_operand): New function prototype.
26673         * pa.c (reg_before_reload_operand): New function implementation.
26674         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
26675         contraints to "*m".
26676
26677 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26678
26679         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
26680
26681 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26682
26683         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
26684         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
26685         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
26686         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
26687         (ENDFILE_SPEC): Undefine.
26688         (STARTFILE_SPEC): Redefine for PA.
26689
26690 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26691
26692         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
26693
26694 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
26695
26696         * config.gcc: Add entries to supported PowerPC --with-cpu
26697         types.
26698
26699 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
26700
26701         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
26702         true for 64-bit mode only SSE registers in 32-bit mode.
26703
26704 2002-01-21  Kazu Hirata  <kazu@hxi.com>
26705
26706         * unwind-dw2.c: Fix formatting.
26707         * unwind-dw2-fde.c: Likewise.
26708         * unwind-dw2-fde.h: Likewise.
26709         * unwind-pe.h: Likewise.
26710         * varasm.c: Likewise.
26711         * varray.h: Likewise.
26712
26713 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
26714
26715         Remove workaround for register stack overwrite bug in mmix.
26716         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
26717         support for TARGET_REG_STACK_FILL_BUG.
26718         * config/mmix/mmix.h: Remove member has_call_without_parameters.
26719         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
26720         Delete.
26721         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
26722         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
26723         -mno-reg-stack-fill-bug-workaround.
26724         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
26725         machine member has_call_without_parameters.
26726         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
26727         -mreg-stack-fill-bug-workaround and
26728         -mno-reg-stack-fill-bug-workaround.
26729         (MMIX Options): Ditto.
26730
26731 2002-01-21  Kazu Hirata  <kazu@hxi.com>
26732
26733         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
26734         as appropriate.
26735         Remove redundant code.
26736
26737 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
26738
26739         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
26740         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
26741         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
26742         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
26743         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
26744         out target macro definitions and non-target-specific comments
26745         mostly taken from old versions of the manual.
26746
26747 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26748
26749         * config/h8300/h8300.h: Fix comment formatting.
26750         * config/ia64/aix.h: Likewise.
26751         * config/ia64/ia64-protos.h: Likewise.
26752         * config/ia64/ia64.c: Likewise.
26753         * config/ia64/ia64.h: Likewise.
26754         * config/ia64/ia64intrin.h: Likewise.
26755         * config/ia64/linux.h: Likewise.
26756         * config/ia64/unwind-aix.c: Likewise.
26757         * config/ia64/unwind-ia64.c: Likewise.
26758
26759 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26760
26761         * config/h8300/h8300.c: Revise comments about shift code.
26762
26763 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26764
26765         * config/h8300/h8300.c (function_arg): Update a comment.
26766
26767 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26768
26769         * config/h8300/h8300.md: Update the comments at the beginning
26770         of the file.
26771
26772 2002-01-20  Kazu Hirata  <kazu@hxi.com>
26773
26774         * config/i370/i370.c: Fix comment formatting.
26775         * config/i370/i370.h: Likewise.
26776         * config/i370/i370.md: Likewise.
26777         * config/i370/linux.h: Likewise.
26778
26779 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26780
26781         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
26782
26783         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
26784         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
26785         in incomplete case.
26786
26787 2002-01-20  Graham Stott  <grahams@redhat.com>
26788
26789         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
26790
26791 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26792
26793         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
26794
26795 2002-01-19  Tom Rix  <trix@redhat.com>
26796
26797         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
26798
26799 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
26800
26801         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
26802
26803         * function.c (assign_stack_local_1): Adjust x_frame_offset with
26804         STARTING_FRAME_PHASE.
26805         (STARTING_FRAME_PHASE): New.
26806         (instantiate_virtual_regs): Check saneness of
26807         STARTING_FRAME_PHASE.
26808
26809         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
26810
26811 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
26812
26813         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
26814
26815 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26816
26817         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
26818         be used for bootstrapping GCC 3.0.
26819
26820 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26821
26822         * config/h8300/h8300.md: Fix an insn length.
26823
26824 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26825
26826         * bitmap.h: Fix comment formatting.
26827         * combine.c: Likewise.
26828         * cppfiles.c: Likewise.
26829         * c-pragma.h: Likewise.
26830         * c-typeck.c: Likewise.
26831         * df.c: Likewise.
26832         * dwarf2out.c: Likewise.
26833         * function.c: Likewise.
26834         * gcc.c: Likewise.
26835         * genattrtab.c: Likewise.
26836         * gthr-win32.h: Likewise.
26837         * haifa-sched.c: Likewise.
26838         * predict.c: Likewise.
26839         * rtlanal.c: Likewise.
26840         * rtl.h: Likewise.
26841         * unwind-dw2-fde.h: Likewise.
26842         * unwind-pe.h: Likewise.
26843         * vmsdbgout.c: Likewise.
26844
26845 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26846
26847         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
26848         if type_required and passed decl.
26849
26850 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
26851
26852         * config.gcc (cpu_type): Include altivec.h in powerpc
26853         extra_headers.
26854         Same for darwin.
26855
26856         * config/rs6000/altivec.h: New.
26857
26858 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
26859
26860         * doc/install.texi (*-ibm-aix*): Update assembler and exception
26861         handling information.
26862         * doc/trouble.texi (Interoperation): Add libstdc++ information
26863         for AIX.
26864         (Misunderstandings): Add template instantiation and static template
26865         member information for AIX.
26866
26867 2002-01-17  Jason Merrill  <jason@redhat.com>
26868
26869         * dbxout.c (dbxout_type): Support const and volatile.
26870
26871         * except.c (add_partial_entry): Remove backwards compatibility code.
26872         (end_protect_partials): Likewise.
26873
26874 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
26875
26876         * config/ia64/ia64.md (prologue_use): New.
26877         * config/ia64/ia64.c (ia64_expand_prologue): Use
26878         gen_prologue_use instead of gen_rtx_USE.
26879         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
26880         as CODE_FOR_pred_rel_mutex.
26881         (ia64_sched_reorder2): Likewise.
26882
26883 2002-01-16  Eric Christopher  <echristo@redhat.com>
26884
26885         * config/mips/r3900.h: Reformat.
26886         (SUBTARGET_CPP_SIZE_SPEC): Remove.
26887         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
26888         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
26889         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
26890         * config/mips/t-elf: Remove mips3 multilib.
26891
26892 2002-01-16  H.J. Lu <hjl@gnu.org>
26893
26894         * config/mips/linux.h: Include "mips/abi64.h".
26895
26896 2002-01-16  H.J. Lu <hjl@gnu.org>
26897
26898         * config/mips/t-linux: New.
26899
26900         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
26901
26902         * config/mips/linux.h: Don't include "gofast.h".
26903         (INIT_SUBTARGET_OPTABS): Removed.
26904
26905 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26906
26907         * config/h8300/h8300-protos.h: Replace emit_a_shift with
26908         output_a_shift.
26909         * config/h8300/h8300.c: Likewise.
26910         * config/h8300/h8300.md: Likewise.
26911
26912 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26913
26914         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
26915         spaces after an opcode name.
26916         (pushqi1_h8300hs): Likewise.
26917         (pushhi1_h8300hs): Likewise.
26918
26919 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26920
26921         * doc/extend.texi: Replace "option" with "attribute"
26922         appropriately.
26923
26924 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26925
26926         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
26927         (and:DI () (const_int -8)).
26928         (split_small_symbolic_mem_operand): Split
26929         (mem (and:DI () (const_int -8)).
26930
26931 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26932
26933         PR target/5309:
26934         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
26935         same way as TYPE_IMUL.
26936         (ultrasparc_sched_reorder): Likewise.
26937         * config/sparc/sparc.md (type): Add comment to update
26938         ultrasparc_sched_reorder when making changes.
26939
26940 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26941
26942         * doc/invoke.texi: Change the dump file name of block
26943         reordering pass from 28.bbro to 29.bbro.
26944         Mention -dk option.
26945
26946 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
26947
26948         * i386.md (minsf splitter): Fix pasto.
26949
26950 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26951
26952         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
26953         to frame pointer initialisation instruction.
26954         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
26955         initialisation instruction.
26956         (soft_df_operand): Do not accept the IP register.
26957         (nonimmediate_soft_df_operand): Do not accept the IP register.
26958
26959 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26960
26961         PR target/5357:
26962         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
26963         MASK_V8 being both set.
26964
26965 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
26966
26967         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
26968         insn for GOT register; add REG_MAYBE_DEAD notes instead.
26969         config/s390/s390.md (call, call_value): Add GOT register to
26970         CALL_INSN_FUNCTION_USAGE where needed.
26971         (call_exp, call_value_exp): New.
26972
26973 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26974
26975         * config/arm/arm.c: General formatting tidy up.
26976
26977 2002-01-16  Graham Stott  <grahams@redhat.com>
26978
26979         * calls.c (try_to_integrate): Use "(size_t)" intermediate
26980         cast and when casting an integer literal to "rtx" pointer.
26981         (expand_call): Likewise.
26982         * flow.c (try_pre_increment): Likewise.
26983         (find_use_as_address): Likewise.
26984         * integrate.c (expand_iline_function): Likewise.
26985         * regmove.c (try_auto_increment): Likewise.
26986
26987 2002-01-16  Graham Stott  <grahams@redhat.com>
26988
26989         * sched-rgn.c (passed): Use sbitmap_free.
26990         (header): Likewise.
26991         (inner): Likewise.
26992         (in_queue): Likewise.
26993         (in_stack): Likewise.
26994
26995 2002-01-15  Eric Christopher  <echristo@redhat.com>
26996
26997         * flow.c (propagate_one_insn): Change to use fatal_insn.
26998
26999 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27000
27001         * expmed.c (extract_fixed_bit_field): Remove unused code.
27002         * system.h: Poison SLOW_ZERO_EXTEND.
27003         * doc/tm.texi: Remove.
27004         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
27005         * config/arm/arm.h: Likewise.
27006         * config/avr/avr.h: Likewise.
27007         * config/clipper/clipper.h: Likewise.
27008         * config/convex/convex.h: Likewise.
27009         * config/d30v/d30v.h: Likewise.
27010         * config/dsp16xx/dsp16xx.h: Likewise.
27011         * config/elxsi/elxsi.h: Likewise.
27012         * config/fr30/fr30.h: Likewise.
27013         * config/h8300/h8300.h: Likewise.
27014         * config/i370/i370.h: Likewise.
27015         * config/i386/i386.h: Likewise.
27016         * config/m68k/m68k.h: Likewise.
27017         * config/mips/mips.h: Likewise.
27018         * config/ns32k/ns32k.h: Likewise.
27019         * config/pdp11/pdp11.h: Likewise.
27020         * config/pj/pj.h: Likewise.
27021         * config/s390/s390.h: Likewise.
27022         * config/sh/sh.h: Likewise.
27023         * config/stormy16/stormy16.h: Likewise.
27024         * config/v850/v850.h: Likewise.
27025         * config/vax/vax.h: Likewise.
27026         * config/we32k/we32k.h: Likewise.
27027
27028 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
27029
27030         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
27031         (altivec_lvsl): Change constraint to b.
27032         (altivec_lvsr): Same.
27033         (altivec_lvebx): Same.
27034         (altivec_lvehx): Same.
27035         (altivec_lvewx): Same.
27036         (altivec_lvxl): Same.
27037         (altivec_lvx): Same.
27038         (altivec_stvx): Add parallel.
27039         (altivec_stvxl): Same.
27040         (altivec_stvehx): Same.
27041         (altivec_stvebx): Same.
27042         (altivec_stvebx): Same.
27043
27044 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
27045
27046         * config.gcc: Change altivec.h to altivec-defs.h.
27047
27048         * config/rs6000/altivec.h: Delete.
27049
27050         * config/rs6000/altivec-defs.h: Add.
27051
27052 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27053
27054         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
27055         and UMOD modes.
27056
27057         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
27058         less than or equal to eight bytes.
27059
27060         * vax.md (andsi3): Remove constraints and change SET destination
27061         operand type to nonimmediate_operand.
27062         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
27063         when it is a CONST_INT.
27064
27065 2002-01-15  Jason Merrill  <jason@redhat.com>
27066
27067         * c-common.def (FILE_STMT): New code.
27068         * c-common.c (statement_code_p): It's a statement.
27069         * c-common.h (stmt_tree_s): Add x_last_filename.
27070         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
27071         (last_expr_filename): New macro.
27072         * c-semantics.c (begin_stmt_tree): Initialize it.
27073         (add_stmt): If the filename changed, also insert a
27074         FILE_STMT.
27075         (expand_stmt): Handle seeing one.
27076
27077 2002-01-15  Eric Christopher  <echristo@redhat.com>
27078
27079         * flow.c (propagate_one_insn): Add error message and print out
27080         insn for debugging.
27081
27082 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
27083
27084         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
27085         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
27086         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
27087         TRAMPOLINE_ALIGNMENT.
27088         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
27089         to be in bits.
27090         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
27091         PCC_BITFIELD_TYPE_MATTERS.
27092         * config/interix.h (STDC_VALUE): Remove.  Use
27093         STDC_0_IN_SYSTEM_HEADERS.
27094         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
27095         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
27096         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
27097
27098 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27099
27100         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
27101         not work on this platform currently.
27102
27103 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
27104
27105         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
27106         readonly_warning in _().
27107
27108 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
27109
27110         * gcc.c (delete_if_ordinary): Backout previous change.
27111
27112 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27113
27114         * config/h8300/h8300.c (print_operand): Remove support for
27115         unused operand characters.
27116
27117         * read-rtl.c: Fix formatting.
27118         * real.c: Likewise.
27119         * recog.c: Likewise.
27120         * regclass.c: Likewise.
27121         * regmove.c: Likewise.
27122         * reg-stack.c: Likewise.
27123         * reload1.c: Likewise.
27124         * rtlanal.c: Likewise.
27125
27126 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27127
27128         * config/i386/i386.c: Fix formatting.
27129
27130 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
27131
27132         * c-typeck.c (process_init_element): Don't save_expr
27133         COMPOUND_LITERAL_EXPR if just its initializer will be used.
27134
27135 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
27136
27137         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
27138         emit optional traceback table if optimize_size or TARGET_ELF.
27139         * config/rs6000/rs6000.md (prefetch): New.
27140
27141 2002-01-15  Andreas Jaeger  <aj@suse.de>
27142
27143         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
27144
27145 2002-01-15  Kazu Hirata  <kazu@hxi.com>
27146
27147         * mips-tfile.c: Fix formatting.
27148
27149 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
27150
27151         * unroll.c (final_reg_note_copy): Fix previous commit.
27152
27153 2002-01-14  Kazu Hirata  <kazu@hxi.com>
27154
27155         * config/h8300/h8300-protos.h: Remove the prototype for
27156         eq_operator.
27157         * config/h8300/h8300.c (eq_operator): Remove.
27158
27159 2002-01-14  Richard Henderson  <rth@redhat.com>
27160
27161         * config/i386/i386.md (prefetch): Tidy.
27162         (prefetch_3dnow): Fix locality operand.
27163
27164 2002-01-14  Richard Henderson  <rth@redhat.com>
27165
27166         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
27167         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
27168
27169 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
27170
27171         * reload1.c (reload_combine): Pass reg_sum replacement through
27172         copy_rtx in loop performing multiple changes.
27173
27174 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
27175
27176         * except.c (remove_unreachable_regions): New.
27177         (free_eh_status): Clear exception_handler_labels.
27178         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
27179         (find_exception_handler_labels): Don't add the same label more than
27180         once.
27181         (remove_exception_handler_label): Don't die if
27182         find_exception_handler_labels hasn't been called for the current
27183         function yet.
27184
27185 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
27186
27187         * toplev.c (rest_of_compilation): Rebuild jump labels after
27188         gcse.
27189
27190 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
27191
27192         * doc/extend.texi: Move documentation of X86 built-in functions
27193         here.
27194         * doc/invoke.texi: From here.
27195         * doc/sourcebuild.texi: Document location of documentation for
27196         machine built-in functions.
27197
27198 2002-01-13  Christopher Faylor  <cgf@redhat.com>
27199
27200         * cppfiles.c (TEST_THRESHOLD): New macro.
27201         (SHOULD_MMAP): Ditto.
27202         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
27203         be used.
27204
27205 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
27206
27207         * unroll.c (final_reg_note_copy): Properly handle
27208         REG_LABEL
27209         (unroll_loops): Fix LOOP_CONDITION heuristics.
27210
27211 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
27212
27213         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
27214         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
27215
27216 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
27217
27218         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
27219         threaded loop.
27220
27221 2002-01-14  Tom Rix  <trix@redhat.com>
27222
27223         * config/rs6000/rs6000.md: Fix typo with sradi.
27224
27225 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
27226
27227         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
27228         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
27229         (clrstrdi, clrstrsi): Adapt callers.
27230
27231         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
27232
27233         (movti splitter): Never use register 0 as base register.
27234
27235 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
27236
27237         * combine.c (simplify_shift_const): Always generate new rtx
27238         for shift expression instead of reusing given expression.
27239
27240 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27241
27242         * config/alpha/alpha.c (alpha_expand_mov): Don't call
27243         alpha_legitimize_address unless mode is Pmode.
27244
27245 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
27246
27247         * doc/md.texi (Modifiers): Document the '*' constraint for the
27248         user.
27249
27250         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
27251         * doc/extend.texi (Function Attributes): 'interrupt' is valid
27252         for xstormy16 too.
27253
27254 2002-01-13  Richard Henderson  <rth@redhat.com>
27255
27256         * reload.c (find_reloads): Use a hard reg destination as reload reg
27257         for an input reload of the source.
27258
27259 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
27260
27261         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
27262         more generic.
27263
27264 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
27265
27266         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27267         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27268
27269         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
27270
27271 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27272
27273         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
27274
27275 2002-01-12  Tom Rix  <trix@redhat.com>
27276
27277         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
27278         TARGET_POWERPC64.
27279
27280 2002-01-12  Richard Henderson  <rth@redhat.com>
27281
27282         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
27283
27284         * doc/invoke.texi: Update Alpha options.
27285
27286         * doc/invoke.texi: Update i386 built-in function lists.
27287
27288 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
27289
27290         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
27291         referencing outside.
27292
27293 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27294
27295         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
27296         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
27297         offsets, and change line folding.
27298         * optabs.c (expand_binop): Remove warnings.
27299         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
27300
27301 2002-01-12  Graham Stott <grahams@redhat.com>
27302
27303         * attribs.c (handle_deprecated_attribute): constify WHAT.
27304         * diagnostic.c (warn_deprecated_use): Add braces, fixes
27305         dangling else warning and constify WHAT.
27306         * except.h (struct function, struct inline_remap): Move
27307         struct tag forward defs before all prototypes.
27308         (duplicate_eh_regions): Whitespace.
27309
27310 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
27311
27312         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27313         MODE_BASE_REG_CLASS.
27314         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
27315
27316 2002-01-12  Richard Henderson  <rth@redhat.com>
27317
27318         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
27319         (ix86_expand_vector_move): New.
27320         (bdesc_2arg): Remove andps, andnps, orps, xorps.
27321         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
27322         Remove old prefetch builtins.  Special case the logicals removed above.
27323         (ix86_expand_builtin): Likewise.
27324         (safe_vector_operand): Use V4SFmode, not TImode.
27325         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
27326         (ix86_expand_timode_binop_builtin): New.
27327         * config/i386/i386-protos.h: Update.
27328         * config/i386/i386.h (enum ix86_builtins): Update.
27329         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
27330         Use ix86_expand_vector_move in vector move expanders.
27331         (movti_internal, movti_rex64): Add xorps alternative.
27332         (sse_clrv4sf): Rename and adjust from sse_clrti.
27333         (prefetch): Don't work so hard.
27334         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
27335         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
27336         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
27337
27338 2002-01-11  Richard Henderson  <rth@redhat.com>
27339
27340         * config/i386/mmintrin.h: New file.
27341         * config/i386/xmmintrin.h: New file.
27342         * config.gcc (i?86-*-*): Add extra_headers.
27343         * simplify-rtx.c (simplify_unary_operation): Handle saturating
27344         truncation codes.
27345         (simplify_binary_operation): Handle saturating arithmetic codes.
27346         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
27347         not the lowpart subreg.
27348         (ix86_expand_builtin): Return a TImode dummy register instead of 0
27349         on error.
27350         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
27351
27352 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27353
27354         * conflict.c (conflict_graph_compute): Free regsets when finished.
27355         * ssa.c (compute_coalesced_reg_partition): Likewise.
27356
27357 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27358
27359         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
27360         every where we allocate a register.
27361
27362 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27363
27364         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
27365         * lcm.c (compute_earliest, compute_farthest): Likewise.
27366
27367 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
27368
27369         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
27370
27371 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
27372
27373         * doc/rtl.texi (Insns): Fix 2 typos.
27374
27375 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
27376
27377         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
27378         options.  Use @table @gcctabopt for MMIX options.  Add index
27379         entries for MMIX options.  Start new paragraph with first
27380         heading of the machine-dependent options.
27381
27382 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27383
27384         PR other/5299
27385         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
27386         * combine.c (force_to_mode): Same.
27387         * reload1.c (clear_reload_reg_in_use): Same.
27388
27389 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
27390
27391         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
27392         and 'subtargets'.
27393
27394 2002-01-11  Andreas Jaeger  <aj@suse.de>,
27395             Brad Lucier <lucier@math.purdue.edu>
27396
27397         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
27398         mcpu.
27399
27400 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
27401
27402         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
27403         Protect with IN_LIBGCC.
27404         (LINK_EH_SPEC): Add required trailing space.
27405
27406 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
27407
27408         * c-tree.h: Move function declarations so that they are listed
27409         under the filename which contains them.
27410         (check_identifier, finish_decl_top_level,
27411         lookup_name_current_level_global, shadow_record_fields): Remove.
27412
27413 2002-01-11  Andreas Jaeger  <aj@suse.de>
27414
27415         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
27416         march.
27417
27418 2002-01-10  Richard Henderson  <rth@redhat.com>
27419
27420         * config/alpha/alpha.c (print_operand): Add 'J'.
27421         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
27422         new operand with the sequence number for the lituse.  When splitting
27423         the insns, use gen_movdi_er_high_g and generate a sequence number.
27424         (gen_movdi_er_high_g): Print the sequence number if non-zero.
27425
27426 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
27427
27428         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
27429         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
27430         stvxl.
27431         (altivec_expand_builtin): Same.
27432         (altivec_expand_stv_builtin): New.
27433
27434         * config/rs6000/rs6000.h (rs6000_builtins): Same.
27435
27436         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
27437         ("altivec_lvehx"): New.
27438         ("altivec_lvewx"): New.
27439         ("altivec_lvxl"): New.
27440         ("altivec_lvx"): New.
27441         ("altivec_stvx"): New.
27442         ("altivec_stvebx"): New.
27443         ("altivec_stvehx"): New.
27444         ("altivec_stvewx"): New.
27445         ("altivec_stvxl"): New.
27446
27447 2002-01-10  Richard Henderson  <rth@redhat.com>
27448
27449         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
27450         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
27451         care not to delete instructions twice.
27452
27453 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
27454
27455         * toplev.c: Don't declare environ (it's not used anywhere).
27456         * configure.in: Don't check for declaration of environ.
27457         * config/i386/xm-mingw32.h: Don't #define environ.
27458         * config.in, configure: Regenerate.
27459
27460 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
27461
27462         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
27463         * configure: Regenerate.
27464
27465         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
27466         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
27467         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
27468         alpha/xm-vms.h.
27469         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
27470         LIMITS_H_TEST here, not in m68k/x-next.
27471         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
27472         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
27473
27474         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
27475         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
27476         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
27477
27478         * config/i386/x-djgpp: Renamed i386/t-djgpp.
27479         * config/m88k/x-dolph: Renamed m88k/t-dolph.
27480         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
27481         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
27482         replacement of quadlib.asm with quadlib.c.
27483
27484         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
27485         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
27486         config/rs6000/xm-beos.h: Delete file.
27487
27488         * config.gcc: Update to match above changes.
27489
27490 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27491
27492         * config/h8300/h8300.h: Fix comment typos.
27493         * config/h8300/h8300.md: Likewise.
27494         * config/h8300/lib1funcs.asm: Likewise.
27495
27496 2002-01-10  Dale Johannesen  <dalej@apple.com>
27497
27498         PR optimization/5269
27499         * unroll.c (precondition_loop_p): Make *increment be the correct
27500         sign when n_iterations known, to avoid confusing caller.
27501
27502 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27503
27504         * doc/extend.texi (deprecated): Fix a typo.
27505
27506 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
27507
27508         * basic-block.h (update_br_prob_note): Declare.
27509         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
27510         (try_forward_edges): Care negative frequencies and update note.
27511         (outgoing_edges_match): Tweek conditional merging heuristics.
27512         (try_crossjump_to_edge): use update_br_prob_note.
27513         * cfglayout.c (fixup_reorder_chain): Likewise.
27514         * cfrtl.c (update_br_prob_note): New.
27515         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
27516
27517         * i386.c (ix86_decompose_address): Return -1 if address contains
27518         shift.
27519         (legitimate_address_p): Require ix86_decompose_address to return 1.
27520
27521         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
27522         (cprop_insn): Likewise.
27523
27524 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27525
27526         * toplev.c: Fix formatting.
27527         * tree.c: Likewise.
27528         * tree-dump.c: Likewise.
27529         * unroll.c: Likewise.
27530         * unwind-dw2.c: Likewise.
27531         * unwind-dw2-fde.c: Likewise.
27532         * unwind-dw2-fde-glibc.c: Likewise.
27533         * unwind-sjlj.c: Likewise.
27534
27535 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
27536
27537         * doc/invoke.texi: Document PDP-11 options.
27538
27539 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27540
27541         * config/h8300/h8300.h: Fix formatting.
27542
27543 2002-01-10  Ira Ruben   <ira@apple.com>
27544
27545         Add __attribute__ ((deprecated)).
27546         * extend.texi: Document __attribute__ ((deprecated)).
27547         * invoke.texi: Document -Wno-deprecated-declarations.
27548         * testsuite/g++.dg/other/deprecated.C: New C++ test.
27549         * testsuite/gcc.dg/deprecated.c: New C test.
27550         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
27551         (c_common_attribute_table): Add "deprecated" entry.
27552         (handle_deprecated_attribute): New function.
27553         * c-decl.c (deprecated_states): New enum.
27554         deprecated_state: State of "deprecated" handling.
27555         (start_decl): Set deprecated_state based on attributes.
27556         (grokdeclarator): Test for deprecated uses, propagate attribute.
27557         * c-typeck.c (build_component_ref): Test for deprecated fields.
27558         (build_external_ref): Test for deprecated primaries.
27559         * diagnostic.c (warn_deprecated_use) New function to issue
27560         warnings about __attribute__ ((depricated)) references.
27561         * flags.h (warn_deprecated_decl): Extern declared for
27562         -W[no-]deprecated-declarations option.
27563         * print-tree.c (print_node): Show deprecated flag status.
27564         * toplev.c (warn_deprecated_decl): Defined.
27565         (W_options): Added "deprecated-declaration".
27566         * toplev.h (warn_deprecated_use): Extern declared.
27567         * tree.h (struct tree_common): Define deprecated_flag.
27568         (TREE_DEPRECATED): New macro to access flag.
27569         * cp/call.c (build_call): Test for deprecated calls.
27570         * cp/class.c (add_implicitly_declared_members): Set global
27571         flag to tell grokdeclarator to not issue deprecated warnings.
27572         * cp/cp-tree.h: Add extern for adding_implicit_members.
27573         * cp/decl.c (deprecated_states): New enum.
27574         (start_decl): Set deprecated_state based on attributes.
27575         (grokdeclarator): Test for deprecated uses, propagate attribute.
27576         * cp/lex.c (do_identifier): Test for deprecated primaries.
27577         * cp/typeck.c (build_component_ref): Test for deprecated fields.
27578
27579 2002-01-10  Ira Ruben   <ira@apple.com>
27580
27581         Fix to assign attributes to inline member functions.
27582         * cp/decl.c (start_method): Handle attrlist.
27583
27584 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27585
27586         * combine.c (expand_field_assignment): Use subreg_lsb().
27587
27588 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
27589
27590         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
27591         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
27592         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
27593         Recurse for any operand of AND as long as constant is non-zero.
27594
27595 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27596
27597         * config/h8300/h8300.md: Remove constraints from expanders.
27598
27599 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27600
27601         * varasm.c: Fix formatting.
27602         * varray.c: Likewise.
27603         * vmsdbgout.c: Likewise.
27604         * xcoffout.c: Likewise.
27605
27606 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
27607
27608         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
27609         update edge probabilities to match.
27610
27611 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
27612
27613         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
27614         dependencies.
27615         * doc/languages.texi, doc/sourcebuild.texi: New files.
27616         * doc/configfiles.texi: Make a subsubsection.  Update.
27617         * doc/configterms.texi: Add @node.  Remove warning that this isn't
27618         instructions for building GCC.
27619         * doc/makefile.texi: Make a subsection.
27620         * doc/gccint.texi: Update.
27621
27622 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
27623
27624         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
27625
27626 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
27627
27628         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
27629
27630 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
27631
27632         * optabs.c (expand_fix): Look for wider integer modes first.
27633
27634         * i386.md (mov?f): Avoid the fake const double trick for medium
27635         memory model.
27636         (min?f*/max?f*): Prohibit memory operands for i387 variant.
27637         (fop_df_4): Disable for SSE compilation.
27638
27639 2002-01-10  Graham Stott  <grahams@redhat.com>
27640
27641         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
27642         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
27643
27644 2002-01-10  Richard Henderson  <rth@redhat.com>
27645
27646         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
27647
27648 2002-01-10  Richard Henderson  <rth@redhat.com>
27649
27650         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
27651         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
27652
27653 2002-01-10  Kazu Hirata  <kazu@hxi.com>
27654
27655         * combine.c (can_combine_p): Fix a comment typo.
27656
27657 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
27658
27659         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
27660         empty list correctly.  Change loop index $t to $f for
27661         consistency with rest of Makefile.
27662
27663 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
27664
27665         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
27666         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27667
27668         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
27669         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
27670         (altivec_init_builtins): Same.
27671         (altivec_expand_unop_builtin): Return NULL_RTX on error.
27672         (altivec_expand_binop_builtin): Same.
27673         (altivec_expand_ternop_builtin): Same.
27674         (bdesc_dst): New.
27675
27676         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
27677         ("altivec_vctuxs"): Fix typo.
27678         ("altivec_vnmsubfp"): Same.
27679         ("altivec_dssall"): New.
27680         ("altivec_mfvscr"): New.
27681         ("altivec_dss"): New.
27682         ("altivec_lvsl"): New.
27683         ("altivec_lvsr"): New.
27684         ("altivec_dstt"): New.
27685         ("altivec_dstst"): New.
27686         ("altivec_dststt"): New.
27687         ("altivec_dst"): New.
27688
27689         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
27690         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27691
27692 2002-01-09  Richard Henderson  <rth@redhat.com>
27693
27694         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
27695
27696 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
27697
27698         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
27699         function.
27700         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
27701         prototype.
27702         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
27703
27704 2002-01-09  Kazu Hirata  <kazu@hxi.com>
27705
27706         * read-rtl.c: Fix formatting.
27707         * real.c: Likewise.
27708         * regclass.c: Likewise.
27709         * regrename.c: Likewise.
27710         * reg-stack.c: Likewise.
27711         * reload1.c: Likewise.
27712         * reload.c: Likewise.
27713         * rtl.c: Likewise.
27714
27715 2002-01-09  Kazu Hirata  <kazu@hxi.com>
27716
27717         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
27718         to extract items in the expr_list chain.
27719
27720 2002-01-09  Richard Henderson  <rth@redhat.com>
27721
27722         * config/vax/vax.c (vax_rtx_cost): Never abort.
27723
27724         * config/vax/vax.h (REAL_ARITHMETIC): Define.
27725
27726 2002-01-09  Jan Hubicka  <jh@suse.cz>
27727
27728         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
27729
27730 2002-01-09  Richard Henderson  <rth@redhat.com>
27731
27732         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
27733         Unify code from various alternatives.
27734
27735 2002-01-09  Richard Henderson  <rth@redhat.com>
27736
27737         * regrename.c (copy_value): Ignore the copy if the source register
27738         is present in the value chain with a narrower mode.
27739
27740 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
27741
27742         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
27743         for the c4x target. Also improve layout.
27744
27745 2002-01-09  Richard Henderson  <rth@redhat.com>
27746
27747         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
27748         * config/m32r/m32r.md (and ior xor splitters): Swap operands
27749         to match insn patterns.
27750
27751 2002-01-09  Richard Henderson  <rth@redhat.com>
27752
27753         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
27754         (copyprop_hardreg_forward_1): Likewise.
27755
27756 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27757
27758         * pa.md (decrement_and_branch_until_zero): Change predicate for
27759         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
27760
27761 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
27762
27763         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
27764         gets undefined. For Darwin.
27765
27766 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27767
27768         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
27769
27770 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
27771
27772         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
27773
27774 2002-01-08  Richard Henderson  <rth@redhat.com>
27775
27776         * regrename.c (copy_value): Ignore overlapping copies.
27777
27778 2002-01-08  Richard Henderson  <rth@redhat.com>
27779
27780         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
27781         as needed to avoid shared structure.
27782
27783 2002-01-08  Kazu Hirata  <kazu@hxi.com>
27784
27785         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
27786         H8/300H and H8S.
27787
27788 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27789
27790         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
27791         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
27792         documentation of obsolete macros.
27793         * system.h: Poison these macros.
27794         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
27795         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
27796         config/c4x/c4x.h, config/clipper/clipper.h,
27797         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
27798         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
27799         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
27800         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
27801         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
27802         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
27803         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
27804         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
27805         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
27806         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
27807         config/sparc/sparc.h, config/stormy16/stormy16.h,
27808         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
27809         definitions and commented out definitions of obsolete macros.
27810         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
27811         of MAX_INT_TYPE_SIZE.
27812
27813 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
27814
27815         * config/s390/s390.c (s390_preferred_reload_class): Never
27816         return ADDR_REGS if it isn't a subset of the given class.
27817         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
27818         FP_REGS, but all superclasses as well.
27819
27820         * config/s390/s390.c (s390_function_profiler): Fix thinko.
27821
27822         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
27823         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
27824         must not be a const_int.
27825
27826 2002-01-08  Richard Henderson  <rth@redhat.com>
27827
27828         * Makefile.in (toplev.o): Depend on options.h.
27829         (gcc.o): Depend on specs.h.
27830
27831 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
27832
27833         * expr.c (store_expr): Convert VOIDmode constants back to target's
27834         mode.
27835
27836 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
27837
27838         * doc/invoke.texi: Markup gcc as @command.  Refer to
27839         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
27840         of http://gcc.gnu.org/thanks.html.
27841
27842 2002-01-08  Dale Johannesen  <dalej@apple.com>
27843
27844         * config/rs6000/rs6000.md: Add missing int register
27845         target case to movdf_low.
27846
27847 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
27848
27849         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
27850         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
27851         (cppinit.o): Depend on except.h.
27852         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
27853         s-specs): New rules.
27854
27855         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
27856         Don't create specs.h/options.h/gencheck.h here.  Remove
27857         unnecessary variable settings from last argument of AC_OUTPUT.
27858         * config.in, configure: Regenerate.
27859         * intl.c: Hardcode package name as "gcc".
27860
27861         * cppinit.c: Include except.h.
27862         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
27863         appropriate.
27864         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
27865         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
27866         (!)USING_SJLJ_EXCEPTIONS.
27867         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
27868
27869 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27870
27871         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
27872         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
27873         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
27874         documentation of obsolete macros.
27875         * system.h: Poison these macros.
27876         * config/d30v/d30v.h, config/ns32k/encore.h,
27877         config/stormy16/stormy16.h: Remove definitions and commented out
27878         definitions of obsolete macros.
27879
27880 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
27881
27882         * objc/objc-act.c (handle_class_ref): Mark the declaration of
27883         %sobjc_class_ref_%s as used - to prevent unwanted compiler
27884         warnings.
27885
27886 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
27887
27888         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
27889         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
27890         to insn adjusting stack/frame pointer.
27891         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
27892         accept operands that cause the insn to be non-splittable.
27893
27894 2002-01-08  Graham Stott  <grahams@redhat.com>
27895
27896         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
27897         (C_TYPE_FIELDS_VOLATILE): Likewise.
27898         (C_TYPE_BEING_DEFINED): Likewise.
27899         (C_IS_RESERVED_WORD): Likewise.
27900         (C_TYPE_VARIABLE_SIZE): Likewise.
27901         (C_DECL_VARIABLE_SIZE): Likewise.
27902         (C_MISSING_PROTOTYPE_WARNED): Likewise.
27903         (C_SET_EXP_ORIGINAL_CODE): Likewise.
27904         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
27905         parenthesis.
27906         (C_DECL_ANTICIPATED): Likewise.
27907         (c_build_type_variant): Add parenthesis.
27908
27909 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27910
27911         * gcc.c (option_map): Remove --version.
27912         (process_command): Handle -fversion following the GNU Coding
27913         Standards.  Partially addresses PR other/704.
27914
27915 2002-01-08  Graham Stott  <grahams@redhat.com>
27916
27917         * combine.c (combine_instructions): Fix typo.
27918
27919 2002-01-08  Graham Stott  <grahams@redhat.com>
27920
27921         * debug.h: Use "tree" and "rtx" throughout.
27922
27923         * debug.c: Likewise.
27924
27925 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
27926
27927         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
27928         constant pool, use the pool's version of the symbol instead.
27929
27930 2002-01-07  Richard Henderson  <rth@redhat.com>
27931
27932         * regrename.c (find_oldest_value_reg): Ignore the value chain if
27933         the original register was copied in a mode with a fewer number of
27934         hard registers than the desired mode.
27935         (copyprop_hardreg_forward_1): Likewise.
27936         (debug_value_data): Fix loop test.
27937         * toplev.c (parse_options_and_default_flags): Reenable
27938         -fcprop-registers at -O1.
27939
27940 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27941
27942         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
27943         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
27944
27945         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
27946         predicates.
27947
27948         * config/rs6000/rs6000.md: Add altivec predicate patterns.
27949
27950 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27951
27952         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
27953         (pa_output_function_prologue): Output local label at the beginning of
27954         the prologue when profiling.
27955         (hppa_profile_hook): Use the local label rather than the function label.
27956         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
27957
27958 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27959
27960         * config/rs6000/rs6000.c (print_operand): Remove extra space.
27961         (altivec_expand_unop_builtin): Fix thinko.
27962         (altivec_expand_binop_builtin): Same.
27963         (altivec_expand_ternop_builtin): Same.
27964         (altivec_expand_builtin): Same.
27965
27966 2002-01-07  Richard Henderson  <rth@redhat.com>
27967
27968         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
27969
27970 2002-01-07  Jason Merrill  <jason@redhat.com>
27971
27972         * unwind-dw2.c (execute_cfa_program): Use < again.
27973
27974 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27975
27976         * predict.c (combine_predictions_for_insn): Avoid division by zero.
27977
27978 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27979
27980         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
27981         Don't allow -1 - x -> ~x simplifications in the first pass.
27982
27983 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27984
27985         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
27986         arguments.
27987         (altivec_expand_binop_builtin): Same.
27988         (altivec_expand_unop_builtin): Same.
27989         (print_operand): Fix typo.
27990         (bdesc_1arg): Add vupk* variants.
27991
27992         * rs6000.h (rs6000_builtins): Add vupk* enums.
27993
27994         * rs6000.md: Add altivec_vupk* variants.
27995
27996 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
27997
27998         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
27999         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
28000         and last update dates.
28001
28002 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
28003
28004         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
28005
28006 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
28007
28008         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
28009         * config/avr/avr.h (CPP_SPEC): Likewise.
28010         (LINK_SPEC): Likewise.
28011         (CRT_BINUTILS_SPECS): Likewise.
28012         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
28013         * doc/invoke.texi (AVR Options): Document them.
28014
28015 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
28016
28017         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
28018         LABEL_NUSES.
28019
28020 2002-01-07  Graham Stott  <grahams@redhat.com>
28021
28022         * config/i386/i386.h: Update copyright date.
28023         (HALF_PIC_PTR): Add parenthesis.
28024         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
28025         (CONSTANT_ALIGNMENT): Add parenthesis.
28026         (DATA_ALIGNMENT): Likewise.
28027         (LOCAL_ALIGNMENT): Likewise.
28028         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
28029         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
28030         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
28031         (HARD_REGNO_NREGS): Add paranethesis.
28032         (VALID_SSE_REG_MODE): Whitespace.
28033         (VALID_MMX_REG_MODE): Whitespace.
28034         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
28035         (ix86_hard_regno_mode_ok): Add parenthesis.
28036         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
28037         (RETURN_IN_MEMORY): Whitespace.
28038         (N_REG_CLASSES): Add parenthesis.
28039         (INTEGER_CLASS_P): Add parenthesis and wrap.
28040         (FLOAT_CLASS_P): Likewise.
28041         (SSE_CLASS_P): Likewise.
28042         (MMX_CLASS_P): Likewise.
28043         (MAYBE_INTEGER_CLASS_P): Likewise.
28044         (MAYBE_FLOAT_CLASS_P): Likewise.
28045         (MAYBE_SSE_CLASS_P): Likewise.
28046         (MAYBE_MMX_CLASS_P): Likewise.
28047         (Q_CLASS_P): Likewise.
28048         (GENERAL_REGNO_P): Uppercase macro parameter.
28049         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
28050         (FP_REGNO_P): Likewise.
28051         (ANY_FP_REGNO_P): Uppercase macro parameter.
28052         (SSE_REGNO_P): Likewise.
28053         (SSE_REGNO): Likewise.
28054         (SSE_REG_P): Likewise.
28055         (SSE_FLOAT_MODE_P): Likewise.
28056         (MMX_REGNO_P): Likewise.
28057         (MMX_REG_P):Likewise.
28058         (STACK_REG_P): Likewise.
28059         (NON_STACK_REG_P): Likewise.
28060         (STACK_TOP_P): Likewise.
28061         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
28062         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
28063         (SECONDARY_MEMORY_NEEDED): Likewise.
28064         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
28065         (MD_ASM_CLOBBERS): Whitespace and wrap.
28066         (MUST_PASS_IN_STACK): Whitespace and wrap.
28067         (RETURN_POPS_ARGS): Add parenthesis.
28068         (INIT_CUMULATIVE_ARGS): Likewise.
28069         (FUNCTION_ARG): Likewise.
28070         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
28071         (SETUP_INCOMING_VARARGS): Likewise.
28072         (BUILD_VA_LIST_TYPE):  Add parenthesis.
28073         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
28074         parenthsis.
28075         (EXPAND_BUILTIN_VA_ARG): Likewise.
28076         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
28077         (INITIALIZE_TRAMPOLINE): Add parenthesis.
28078         (INITIAL_ELIMINATION_OFFSET): Likewise.
28079         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
28080         (REGNO_OK_FOR_BASE_P): Likewise.
28081         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
28082         (REGNO_OK_FOR_DIREG_P): Likewise.
28083         (REG_OK_FOR_INDEX_P): Whitespace.
28084         (REG_OK_FOR_BASE_P): Whitespace.
28085         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
28086         parenthesis.
28087         (FIND_BASE_TERM): Fix typo.
28088         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
28089         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
28090         (SYMBOLIC_CONST; Whitespace.
28091         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
28092         (ENCODE_SECTION_INFO): Whitespace.
28093         (FINALIZE_PIC): Remove do { ... } while (0).
28094         (PROMOTE_MODE): Wrap in do { ... } while (0).
28095         (CONST_COSTS): Whitespace.
28096         (RTX_COSTS): Add paramethesis, whitespace and wrap.
28097         (REGISTER_MOVE_COST): Add parenthesis.
28098         (MEMORY_MOVE_COST): Likewise.
28099         (EXTRA_CC_MODES): Whitespace.
28100         (SELECT_CC_MODE): Add parenthesis and whitespace.
28101         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
28102         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
28103         (ASM_OUTPUT_LABEL): Add paramethesis.
28104         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
28105         (ASM_OUTPUT_REG_POP): Likewise.
28106         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
28107         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
28108
28109         * config/i386/i386.c: Update copyright.
28110         (CHECK_STACK_LIMIT): Add parenthesis.
28111         (AT_BP): Uppercase macro parameter.
28112         (x86_64_int_parameter_registers): Constify.
28113         (x86_64_int_return_registers): Likewise.
28114         (ix86_compare_op0): Use rtx.
28115         (construct_container): Constify INTREG parameter.
28116         (function_arg): Use rtx.
28117
28118         * diagnostic.h: Update copyright date.
28119         (output_buffer_state): Add parenthesis.
28120         (output_buffer_format_args): Likewise.
28121
28122         * combine.c (combine_instructions): Replace XEXP (links, 0)
28123         with link.
28124
28125 2002-01-06  H.J. Lu <hjl@gnu.org>
28126
28127         * cfgcleanup.c (thread_jump): Fix 2 typos.
28128
28129 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
28130
28131         * config.gcc: Add support for --enable-altivec.
28132
28133 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28134
28135         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
28136
28137 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
28138
28139         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
28140         __objc_class_name_*.
28141
28142 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28143
28144         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
28145
28146 2002-01-06  Richard Henderson  <rth@redhat.com>
28147
28148         * reorg.c (emit_delay_sequence): Remove death notes, not merely
28149         nop them out.  Increment label reference count for REG_LABEL.
28150         (fill_slots_from_thread): Frob label reference count around
28151         delete_related_insns.
28152
28153 2002-01-05  Richard Henderson  <rth@redhat.com>
28154
28155         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
28156         jump threading.
28157
28158 2002-01-05  Richard Henderson  <rth@redhat.com>
28159
28160         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
28161         * integrate.c (output_inline_function): Likewise.
28162         * toplev.c (rest_of_compilation): Do it here instead.  Move call
28163         to remove_unnecessary_notes after emitting abstract instance.
28164         Force an emitted nested function to have its parent emited as well.
28165         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
28166         for null.
28167         (rtl_for_decl_location): Do not look at reload data structures
28168         before reload has run.
28169
28170 2002-01-05  Kazu Hirata  <kazu@hxi.com>
28171
28172         * cse.c: Fix formatting.
28173         * dwarf2asm.c: Likewise.
28174         * dwarf2out.c: Likewise.
28175         * explow.c: Likewise.
28176         * expmed.c: Likewise.
28177         * function.c: Likewise.
28178         * gcov.c: Likewise.
28179         * gencheck.c: Likewise.
28180         * genrecog.c: Likewise.
28181         * ggc-common.c: Likewise.
28182         * ggc-page.c: Likewise.
28183         * global.c: Likewise.
28184
28185 2002-01-05  Kazu Hirata  <kazu@hxi.com>
28186
28187         * combine.c: Fix formatting.
28188
28189 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
28190
28191         PR middle-end/1557
28192         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
28193
28194 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
28195
28196         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
28197         as 1 for __powerpc64__ as well.
28198
28199         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
28200
28201         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
28202         return it.
28203
28204 2002-01-05  Daniel Berlin  <dan@dberlin.org>
28205
28206         * lcm.c: Revert change, due to performance regression it causes on
28207         SPEC because it's slightly more conservative (sigh, I hate
28208         edge-based LCM).
28209
28210 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
28211
28212         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
28213
28214 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
28215
28216         * doc/cppinternals.texi: Update.
28217
28218 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
28219
28220         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
28221         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
28222         negatives.
28223         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
28224         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
28225         kludge for pre-october-14th mmix versions to handle new-found bug
28226         with PUSHJ/PUSHGO and the register stack.
28227         * config/mmix/mmix.h (struct machine_function): Rename member
28228         has_call_value_without_parameters to has_call_without_parameters.
28229         All referers changed.
28230         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
28231         TARGET_MASK_BRANCH_PREDICT): New macros.
28232         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
28233         -mno-reg-stack-fill-bug-workaround.
28234         * config/mmix/mmix.md ("call"): Set struct machine member
28235         has_call_without_parameters.
28236
28237 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
28238
28239         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
28240
28241 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
28242
28243         * cfgcleanup.c: Include tm_p.h
28244         (mark_effect): Fix handling of hard register; fix handling of SET
28245
28246 2002-01-04  Kazu Hirata  <kazu@hxi.com>
28247
28248         * config/h8300/h8300.md (anonymous patterns): Check that
28249         operands are registers before using REGNO on them.
28250
28251 2002-01-03  Roland McGrath  <roland@frob.com>
28252
28253         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
28254
28255 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
28256
28257         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
28258         * c-common.h (genrtl_expr_stmt_value): Likewise.
28259         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
28260         (expand_expr_stmt_value): Add maybe_last argument.
28261         Don't warn about statement with no effect if it is the last statement
28262         in expression statement.
28263         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
28264         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
28265         expand_expr_stmt_value.
28266         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
28267         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
28268         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
28269         as maybe_last to expand_expr_stmt_value.
28270
28271 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
28272
28273         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
28274         be passed in, do not build it.
28275         (c_begin_if_stmt): New function.
28276         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28277         * c-common.h (c_expand_start_cond): Update prototype.
28278         (c_begin_if_stmt): Prototype new function.
28279         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28280         * c-parse.in (if_prefix): Use c_begin_if_stmt,
28281         c_begin_while_stmt and c_finish_while_stmt_cond.
28282
28283 2002-01-04  William Cohen  <wcohen@redhat.com>
28284
28285         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
28286         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28287         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28288         * config/pa/som.h (ASM_FILE_START): Likewise.
28289
28290 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
28291
28292         * lcm.c: Include df.h.
28293         Add available_transfer_function prototype.
28294         (compute_available): Rework to use iterative dataflow framework.
28295         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
28296         with bb_info in df.h
28297         (available_transfer_function): New function.
28298
28299         * Makefile.in (lcm.o): add df.h to dependencies.
28300
28301 2002-01-04  Richard Henderson  <rth@redhat.com>
28302
28303         * config/alpha/alpha.c (some_operand): Accept HIGH.
28304         (input_operand): Likewise; accept simple references to globals.
28305         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
28306         (alpha_const_double_ok_for_letter_p): Likewise.
28307         (alpha_extra_constraint): Likewise.
28308         (alpha_preferred_reload_class): Likewise.  Do not force
28309         symbolic constants to memory.
28310         (alpha_legitimate_address_p): Accept simple references
28311         to small_symbolic_operand.
28312         (alpha_legitimize_address): New arg scratch.  Be prepared to be
28313         called when no_new_pseudos.  Emit simple symbolic references.
28314         Split integers into low, high, and rest.
28315         (alpha_expand_mov): Use alpha_legitimize_address.
28316         (some_small_symbolic_mem_operand): New.
28317         (split_small_symbolic_mem_operand): New.
28318         * config/alpha/alpha-protos.h: Update.
28319         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
28320         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
28321         (EXTRA_CONSTRAINT): Likewise.
28322         (PREFERRED_RELOAD_CLASS): Likewise.
28323         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
28324         (PREDICATE_CODES): Update.
28325         * config/alpha/alpha.md: New post-reload splitters to convert
28326         simplfied symbolic operands to the form that references $29.
28327         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
28328         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
28329
28330 2002-01-03  Richard Henderson  <rth@redhat.com>
28331
28332         * local-alloc.c (function_invariant_p): Update commentary.
28333
28334 2002-01-04  H.J. Lu <hjl@gnu.org>
28335
28336         * toplev.c (rest_of_compilation): Fix a typo when calling
28337         cleanup_cfg.
28338
28339 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28340
28341         * c-common.c: Fix formatting.
28342         * diagnostic.c: Likewise.
28343         * doloop.c: Likewise.
28344         * dwarf2out.c: Likewise.
28345
28346 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28347
28348         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
28349         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
28350
28351 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
28352
28353         * cpperror.c: Update comments and copyright.
28354         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
28355         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
28356
28357 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
28358
28359         * collect2.c (main): Use strcmp when testing for "-shared".
28360
28361 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
28362
28363         * cppmacro.c: Don't include intl.h.  Update comments.
28364         (new_number_token): Allocate enough buffer for 64-bit unsigned
28365         integers; update prototype.
28366         * cppmain.c: Update comments.
28367
28368 2002-01-03  William Cohen  <wcohen@redhat.com>
28369
28370         * function.h (struct function): Add profile.
28371         (current_function_profile): New.
28372         doc/extend.texi: Update documentation.
28373         * final.c (final_start_function): Use current_function_profile
28374         instead of profile_flag.
28375         (profile_after_prologue): Likewise.
28376         * function.c (expand_function_start): Likewise.
28377         (expand_function_start): Likewise.
28378         * config/alpha/alpha.c (direct_call_operand):
28379         (alpha_does_function_need_gp): Likewise.
28380         (alpha_expand_prologue): Likewise.
28381         * config/arm/arm.c (arm_expand_prologue): Likewise.
28382         thumb_expand_prologue: Likewise.
28383         * config/d30v/d30v.c (d30v_stack_info): Likewise.
28384         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
28385         (fr30_expand_prologue): Likewise.
28386         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
28387         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
28388         * config/i386/i386.h (FINALIZE_PIC): Likewise.
28389         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
28390         * config/i960/i960.c (i960_output_function_prologue): Likewise.
28391         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
28392         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
28393         (m32r_expand_prologue): Likewise.
28394         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
28395         (m88k_expand_prologue): Likewise.
28396         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
28397         * config/mips/mips.c (compute_frame_size): Likewise.
28398         (mips_expand_prologue): Likewise.
28399         (mips_can_use_return_insn): Likewise.
28400         * config/pa/elf.h (ASM_FILE_START): Likewise.
28401         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28402         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28403         * config/pa/som.h (ASM_FILE_START): Likewise.
28404         * config/romp/romp.c (romp_using_r14): Likewise.
28405         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
28406         (rs6000_stack_info): Likewise.
28407         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
28408         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
28409         * config/v850/v850.c (compute_register_save_size): Likewise.
28410
28411 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
28412
28413         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
28414         gen_lowpart_common fails, use gen_lowpart_SUBREG.
28415
28416 2002-01-03  Turly O'Connor  <turly@apple.com>
28417
28418         * darwin.c (machopic_output_possible_stub_label): Don't generate
28419         stub routines for pseudo-stubs which we've just defined.
28420
28421 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28422
28423         * builtins.c: Fix formatting.
28424         * c-typeck.c: Likewise.
28425         * combine.c: Likewise.
28426         * expr.c: Likewise.
28427         * loop.c: Likewise.
28428
28429 2002-01-03  Andreas Schwab  <schwab@suse.de>
28430
28431         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
28432         and return true if _cpp_push_next_buffer pushed a new include
28433         file.
28434         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
28435         _cpp_pop_file_buffer did not push a new file.
28436         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
28437
28438 2002-01-02  Eric Christopher  <echristo@redhat.com>
28439
28440         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
28441         FIND_REG_INC_NOTE call. Update copyright.
28442         * loop.c (canonicalize_condition): Ditto.
28443         * reorg.c (delete_scheduled_jump): Ditto.
28444
28445 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28446
28447         * gcse.c: Fix formatting.
28448
28449 2002-01-03  Graham Stott  <grahams@redhat.com>
28450
28451         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
28452         forward defs for struct tags rtx_def, union_tree, rtvec_def
28453         also output corresponding typedefs for rtx, tree, and rtvec.
28454
28455         * system.h: Move forward defs for struct tags rtx_def, union_tree,
28456         rtvec_def along with corresponding typedefs for rtx, tree, and
28457         rtvec to config.h, hconfig.h, tconfig.h.
28458
28459 2002-01-03  Graham Stott  <grahams@redhat.com>
28460
28461         * tree.h: Update copyright date.
28462         (IS_EXPR_CODE_CLASS): Add parenthesis.
28463         (TREE_SET_CODE): Add whitespace.
28464         (TREE_CHECK): Add parenthesis.
28465         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
28466         (CST_OR_CONSTRUCTOR_CHECK):
28467         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
28468         (TREE_SYMBOL_REFERENCED): Whitespace.
28469         (INT_CST_LT): Likewise.
28470         (INT_CST_LT_UNSIGNED): Likewise.
28471         (tree_real_cst): Unwrap comment.
28472         (tree_string): Likewise.
28473         (tree_complex): Likewise.
28474         (IDENTIFIER_POINTER): correct cast.
28475         (SAVE_EXPR_CONTEXT): Whitespace.
28476         (EXPR_WFL_FILENAME_NODE): Likewise.
28477         (EXPR_WFL_FILENAME): Remove parenthesis.
28478         (DECL_ORIGIN): Add parenthesis.
28479         (DECL_FROM_INLINE): Use NULL_TREE.
28480         (build_int_2): Whitespace.
28481         (build_type_variant): Add parenthesis.
28482
28483         * gcc/jcf-parse.c: Update copyright date.
28484         (yyparse): Constify resource_filename.
28485
28486 2002-01-03  Graham Stott  <grahams@redhat.com>
28487
28488         * rtl.h: Update copyright date.
28489         (RTL_CHECK1): Wrap long line.
28490         (RTL_CHECK2): Likewise.
28491         (RTL_CHECKC1): Wrap long line and whitespace.
28492         (RTL_CHECKC2): Likewise.
28493         (XWINT): Whitespace.
28494         (XINT): Likewise.
28495         (XSTR): Likewise.
28496         (XEXP): Likewise.
28497         (XVEC): Likewise.
28498         (XMODE): Likewise.
28499         (XBITMAP): Likewise.
28500         (XTREE): Likewise.
28501         (XBBDEF): Likewise.
28502         (XTMPL): Likewise.
28503         (X0WINT): Likewise.
28504         (X0INT):Likewise.
28505         (X0UINT): Likewise.
28506         (X0STR): Likewise.
28507         (X0EXP): Likewise.
28508         (X0VEC): Likewise.
28509         (X0MODE): Likewise.
28510         (X0BITMAP): Likewise.
28511         (X0TREE): Likewise.
28512         (X0BBDEF): Likewise.
28513         (X0ADVFLAGS): Likewise.
28514         (X0CSELIB): Likewise.
28515         (X0MEMATTR): Likewise.
28516         (XCWINT): Likewise.
28517         (XCINT): Likewise.
28518         (XCUINT): Likewise.
28519         (XCSTR): Likewise.
28520         (XCEXP): Likewise.
28521         (XCVEC): Likewise.
28522         (XCMODE): Likewise.
28523         (XCBITMAP): Likewise.
28524         (XCTREE): Likewise.
28525         (XCBBDEF): Likewise.
28526         (XCADVFLAGS): Likewise.
28527         (XCCSELIB): Likewise.
28528         (XC2EXP): Likewise.
28529         (INSN_UID): Likewise.
28530         (PREV_INSN): Likewise.
28531         (PATTERN): Likewise.
28532         (INSN_CODE): Likewise.
28533         (PUT_REG_NOTE_KIND): Likewise.
28534         (CODE_LABEL_NUMBER): Likewise.
28535         (NOTE_SOURCE_FILE): Likewise.
28536         (NOTE_BLOCK): Likewise.
28537         (NOTE_EH_HANDLER): Likewise.
28538         (NOTE_RANGE_INFO): Likewise.
28539         (NOTE_LIVE_INFO): Likewise.
28540         (NOTE_BASIC_BLOCK): Likewise.
28541         (NOTE_EXPECTED_VALUE): Likewise.
28542         (NOTE_LINE_NUMBER): Likewise.
28543         (LABEL_NAME): Likewise.
28544         (LABEL_NUSES): Likewise.
28545         (LABEL_ALTERNATE_NAME): Likewise.
28546         (ADDRESSOF_DECL): Likewise.
28547         (JUMP_LABEL): Likewise.
28548         (LABEL_NEXTREF): Likewise.
28549         (REGNO): Likewise.
28550         (ORIGINAL_REGNO: Likewise.
28551         (HARD_REGISTER_NUM_P): Add parenthesis.
28552         (SUBREG_REG): Whitespace.
28553         (SUBREG_BYTE): Likewise.
28554         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
28555         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
28556         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
28557         (ASM_OPERANDS_INPUT_VEC): Likewise.
28558         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
28559         (ASM_OPERANDS_INPUT): Likewise.
28560         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
28561         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
28562         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
28563         (ASM_OPERANDS_INPUT_MODE): Likewise.
28564         (ASM_OPERANDS_SOURCE_FILE): Likewise.
28565         (ASM_OPERANDS_SOURCE_LINE): Likewise.
28566         (MEM_SET_IN_STRUCT_P): Minor reformat.
28567         (TRAP_CONDITION): Whitespace.
28568         (TRAP_CODE): Likewise.
28569         (COND_EXEC_TEST): Likewise.
28570         (COND_EXEC_CODE): Likewise.
28571         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
28572         (PHI_NODE_P): Add parenthesis.
28573         (plus_constant): Whitespace and add parenthesis.
28574
28575 2002-01-03  Kazu Hirata  <kazu@hxi.com>
28576
28577         * config/avr/avr.c: Fix comment typos.
28578         * config/c4x/c4x.md: Likewise.
28579         * config/dsp16xx/dsp16xx.h: Likewise.
28580         * config/dsp16xx/dsp16xx.md: Likewise.
28581         * config/i386/i386.md: Likewise.
28582         * config/ia64/ia64.c: Likewise.
28583         * config/m32r/m32r.h: Likewise.
28584         * config/m68hc11/m68hc11.md: Likewise.
28585         * config/mmix/mmix.c: Likewise.
28586         * config/mn10200/mn10200.c: Likewise.
28587         * config/romp/romp.c: Likewise.
28588         * config/sh/sh.c: Likewise.
28589         * config/stormy16/stormy16.c: Likewise.
28590         * config/stormy16/stormy16.h: Likewise.
28591         * config/stormy16/stormy16.md: Likewise.
28592
28593 2002-01-03  Graham Stott  <grahams@redhat.com>
28594
28595         * loop.h: Update copyright date.
28596         (LOOP_MOVABLES): Fix typo.
28597         (LOOP_REGS): Likewise.
28598         (LOOP_IVS): Likewise.
28599
28600 2002-01-03  Graham Stott  <grahams@redhat.com>
28601
28602         * cppinit.c: Update copyright date.
28603         Don't include output.h
28604         * Makefile.in: Update copyright date.
28605         Update dependency.
28606
28607 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
28608
28609         PR c/5226
28610         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
28611         (-pthread) Add to RS/6000 options.
28612
28613 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28614
28615         * except.c: Fix comment typos.
28616         * loop.c: Likewise.
28617         * varasm.c: Likewise.
28618         * doc/tm.texi: Fix a typo.
28619
28620 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
28621
28622         * c-typeck.c (output_init_element): Allow initializing static storage
28623         duration objects with compound literals.
28624
28625 2002-01-02  Richard Henderson  <rth@redhat.com>
28626
28627         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
28628         after abusing it.
28629
28630 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28631
28632         * gcc.c (default_compilers): Const-ify.
28633         * mips-tdump.c (stab_names): Likewise.
28634         * mips-tfile.c (map_coff_types, map_coff_storage,
28635         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
28636         pseudo_ops_t, pseudo_ops): Likewise.
28637         * protoize.c (default_include): Likewise
28638
28639         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
28640         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
28641         Add array size in declaration.
28642         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
28643         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
28644         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
28645         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
28646         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
28647         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
28648         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
28649         emtens, make_nan): Const-ify.
28650         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
28651         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
28652
28653 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
28654
28655         * config.gcc (ia64-*-*): Set extra_headers.
28656         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
28657         * config/alpha/t-osf: Remove.
28658         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
28659
28660 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
28661
28662         * config/rs6000/t-aix43: Revert previous change.
28663
28664 2002-01-02  Jason Merrill  <jason@redhat.com>
28665
28666         * c-decl.c (c_expand_body): Call outlining_inline_function when
28667         emitting an inline function out of line.
28668
28669 2002-01-02  Richard Henderson  <rth@redhat.com>
28670
28671         * dwarf2out.c (limbo_die_node): Add created_for member.
28672         (new_die): New argument created_for.  Update all callers.
28673         (mark_limbo_die_list): New.
28674         (dwarf2out_init): Register limbo_die_list as a root.
28675         (dwarf2out_finish): Force insert limbo dies into their function
28676         context.
28677
28678 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
28679
28680         PR c++/5089
28681         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
28682
28683 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28684
28685         * config/h8300/fixunssfsi.c: Update copyright.
28686         Fix comment typos.
28687         Fix formatting.
28688         * config/h8300/h8300.c: Update copyright.
28689         Eliminate warnings.
28690
28691 2002-01-02  Kazu Hirata  <kazu@hxi.com>
28692
28693         * config/romp/romp.c: Fix comment formatting.
28694         * config/romp/romp.h: Likewise.
28695         * config/romp/romp.md: Likewise.
28696         * config/s390/s390.c: Likewise.
28697         * config/stormy16/stormy16.c: Likewise.
28698         * config/stormy16/stormy16.h: Likewise.
28699
28700 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
28701
28702         * c-common.h (genrtl_expr_stmt_value): Declare.
28703         * c-semantics.c (genrtl_goto_stmt): Redirect to...
28704         (genrtl_goto_stmt_value): ... this new function.  Pass new
28705         argument down to expand_expr_stmt_value, taking
28706         TREE_ADDRESSABLE into account.
28707         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
28708         STMT_EXPR as addressable, i.e., one whose result we want.
28709         * expr.c (expand_expr): Don't save expression statement value
28710         of labeled_blocks or loop_exprs.
28711         * stmt.c (expand_expr_stmt): Redirect to...
28712         (expand_expr_stmt_value): ... this new function.  Use new
28713         argument to tell whether to save expression value.
28714         (expand_end_stmt_expr): Reset last_expr_type and
28715         last_expr_value if we don't have either.
28716         * tree-inline.c (declare_return_variable): Mark its use
28717         statement as addressable.
28718         * tree.h: Document new use of TREE_ADDRESSABLE.
28719         (expand_expr_stmt_value): Declare.
28720
28721 2002-01-01  Tom Rix  <trix@redhat.com>
28722
28723         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
28724         rs6000_emit_allocate_stack.
28725
28726 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
28727
28728         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
28729         ${srcdir}/ginclude/ to every entry in extra_headers.
28730         * configure: Regenerate.
28731         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
28732         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
28733         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
28734         * ginclude/proto.h: Rename to config/convex/proto.h.
28735
28736 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28737
28738         * attribs.c (handle_vector_size_attribute): Use host_integerp
28739         and tree_int_cst; remove warnings.
28740         * caller-save.c (insert_restore): Add cast to get rid of warning.
28741         (insert_save): Likewise.
28742         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
28743         * regmove.c (find_matches): Add temporary var to kill a warning.
28744
28745 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
28746
28747         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
28748         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
28749         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
28750         (vms-dwarf2eh.o): Add Makefile rule.
28751         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
28752         * config/alpha/vms-dwarf2eh.asm: New file.
28753
28754         * gcc.c (delete_if_ordinary): Delete all versions.
28755
28756 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
28757
28758         * config/mmix/mmix.md: Update FIXME to not mention
28759         define_constants.
28760         (MMIX_rJ_REGNUM): New define_constants constant.
28761         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
28762         "*movdicc_real"): Adjust contraints formatting.
28763         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
28764         for branch prediction.
28765         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
28766         output template.
28767         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
28768         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
28769         number.  Delete related FIXMEs.
28770         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
28771         from number to MMIX_rJ_REGNUM.
28772         (TARGET_MASK_BRANCH_PREDICT): New.
28773         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
28774         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
28775         value.  Add -mbranch-predict and -mno-branch-predict.
28776         (TARGET_VERSION): Drop date.
28777         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
28778         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
28779         for finding out global symbols.
28780         (mmix_asm_output_labelref): Revert condition for global symbol.
28781         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
28782         (mmix_print_operand_punct_valid_p): A '+' is valid.
28783
28784 See ChangeLog.6 for earlier changes.