* lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
[official-gcc.git] / gcc / ChangeLog
blob3efb6a15c8483d613532d86e36d64923a1b67c65
1 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
3         * lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
4         SHmedia code.
6         * sh.md (cmpgtudi_media): Remove spurious @.
8         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
9         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
11         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
12         * sh-protos.h (sh_initialize_trampoline): Declare.
13         * sh.c (sh_initialize_trampoline): New function.
14         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
15         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
16         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
17         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
18         * sh.md (initialize_trampoline, double_shori): New patterns.
19         (initialize_trampoline_compact): Likewise.
20         (shmedia32_initialize_trampoline_big): Remove.
21         (shmedia32_initialize_trampoline_little): Likewise.
23         * sh-protos.h (binary_float_operator): Remove declaration.
24         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
25         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
26         (unary_float_operator, sh_expand_unop_v2sf): New functions.
27         (sh_expand_binop_v2sf): Likewise.
28         (zero_vec_operand): Delete.
29         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
30         all non-shared ones.
31         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
32         Enable nsb and byterev.
33         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
34         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
35         in general regs.
36         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
37         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
38         immediate operands.
39         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
40         Add DF_HI_REGS.
41         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
42         lowpart fp regs - only for big endian for now.
43         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
44         when FPU is in use.
45         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
46         (LOAD_EXTEND_OP): NIL for SImode.
47         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
48         general and fp registers is 4.
49         PREDICATE_CODES: Amend binary_float_operator entry.
50         Remove zero_vec_operand.  Add unary_float_operator.
51         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
52         subreg SET_DEST.
53         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
54         (truncdiqi2): Do sign extension.
55         (movsi_media, movdi_media): Allow to use r63 to an fp register.
56         (movdf_media, movsf_media): Likewise.
57         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
58         Collapse to one define_insn_and_split.  Allow immediate sources.
59         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
60         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
61         (movv4sf): Allow immediate sources.
62         (movsf_media_nofpu+1): Don't split moves to FP registers.
63         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
64         (movv8qi_i+3): Check against CONST0_RTX.
65         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
66         for input and output operands.  Fix argument 3 to gen_mextr_rl.
67         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
68         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
69         (mshf0_w, fipr, ftrv): Likewise.
70         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
72 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
74         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
75         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
76         * arm.c: Similarly.
78 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
80         * config/mips/mips-protos.h (mips_sign_extend): Declare.
81         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
82         (TARGET_SWITCHES): Remove debugh.
83         (ISA_HAS_TRUNC_W): New macro.
84         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
85         (PREDICATE_CODES): Remove se_nonimmediate_operand.
86         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
87         any SImode move_operand.
88         (se_nonimmediate_operand): Remove.
89         (mips_sign_extend): New.
90         (mips_move_2words): Use it for sign-extended source operands.
91         (override_options): Allow integers to be put into single FPRs.
92         (mips_secondary_reload_class): Handle integers in float registers.
93         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
94         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
95         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
96         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
97         (fix_truncdfdi2): Provide only a single alternative, in which the
98         integer is in a float register.  Depend on TARGET_FLOAT64 rather
99         than TARGET_64BIT.
100         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
101         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
102         (movdi_internal2): Don't allow the source operand to be sign-extended.
103         Add alternatives for float registers.
104         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
105         allows sign-extension.
106         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
107         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
108         float registers.  Remove TARGET_DEBUG_H_MODE test.
109         (movhi_internal1): Rename to movhi_internal.  Don't check
110         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
111         (movqi_internal1): Rename to movqi_internal and remove
112         TARGET_DEBUG_H_MODE dependency.
113         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
115 2002-07-16  Jim Wilson  <wilson@redhat.com>
117         * toplev.c (lang_dependent_init): Create function context for
118         init_expr_once.
120 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
122         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
123         --gc-sections if -r.
124         * config/cris/cris.h: Ditto.
126 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
128         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
129         the comparison directly gives a mask suppress addition when cf is
130         zero by complementing the mask.
132 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
134         * Makefile.in: Delete references to enquire.
135         * enquire.c: Move to contrib.
137 2002-07-16  Stan Shebs  <shebs@apple.com>
139         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
140         config/rs6000/darwin.h.
141         (ASM_OUTPUT_SKIP): Ditto.
142         (TEXT_SECTION_ASM_OP): Ditto.
143         (DATA_SECTION_ASM_OP): Ditto.
144         (ASM_APP_ON): Define.
145         (ASM_APP_OFF): Define.
146         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
147         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
149         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
150         (machopic_function_base_name): Declare result to be const.
151         (machopic_non_lazy_ptr_name): Ditto.
152         (machopic_stub_name): Ditto.
153         * config/darwin-protos.h: Ditto for the prototypes.
155 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
157         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
159 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
161         * i386.md (prefetch): Fix for 64bit mode.
162         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
164 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
166         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
167         * i386.c (x86_machine_dependent_reorg): New function.
168         * i386-protos.h (x86_machine_dependent_reorg): Declare.
170 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
172         * builtins.c (std_expand_builtin_va_start): Remove unused
173         first argument.
174         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
175         std_expand_builtin_va_start with just two arguments.
176         * expr.h: Update prototypes.
178         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
179         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
180         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
181         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
182         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
183         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
184         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
185         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
186         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
187         argument from all implementations of EXPAND_BUILTIN_VA_START
188         and all uses of std_expand_builtin_va_start.
190 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
192         * regrename.c (copy_value): Don't record high part copies.
194 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
196         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
197         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
198         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
200 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
202         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
204         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
205         into addsi3 using register class "x" and "y".
207         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
208         "earlyclobber" constraint modifier for some alternative.
210         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
211         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
212         unordered.
213         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
215         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
216         (TARGET_SWITCHES): Add -mieee-compare option.
217         (OVERRIDE_OPTIONS): 32332 is a subset of
218         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
219         (TARGET_SWITCHES): Fix description of bitfield option.
220         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
221         -mieee-compare option. Remove 32332 flag.
223 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
225         * explow.c (convert_memory_address): Remove special handling
226         when POINTERS_EXTEND_UNSIGNED < 0.
227         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
228         (movedi_symbolic): Fix typo.
229         (load_fptr): Remove mode restriction so it works for SI and DI.
230         (load_fptr_internal1): Ditto.
231         (load_gprel): Ditto.
232         (load_symptr_internal1): Ditto.
233         (call_pic): Ditto.
234         * config/ia64.c (call_operand): Modify mode check.
235         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
236         (ia64_expand_move): Ditto.
237         (ia64_assemble_integer): Handle SImode function pointers.
238         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
239         (ia64_expand_op_and_fetch): Ditto.
240         (ia64_expand_compare_and_swap): Ditto.
241         (ia64_expand_lock_test_and_set): Ditto.
242         (ia64_expand_lock_release): Ditto.
244 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
246         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
248 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
249             Richard Earnshaw  <rearnsha@arm.com>
251         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
252         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
254 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
256         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
257         understands to be a memory clobber.
258         * arm.c (arm_expand_prologue): Use it.
260 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
262         * ra-rewrite.c: #include reload.h, insn-config.h
263         * ra-build.c: #include reload.h
264         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
265         depend on reload.h, insn-config.h.
267 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
269         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
270         the same size as a word.
272         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
273         BYTES_BIG_ENDIAN into account.
275 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
277         * i386.md (prefetch): Fix for 64bit mode.
278         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
280         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
282 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
284         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
286 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
288         * ginclude/varargs.h: Replace with stub which issues #error.
289         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
290         __builtin_va_start.
292         * builtins.def (BUILT_IN_VARARGS_START): Delete.
293         (BUILT_IN_VA_START): New.
294         * builtins.c (expand_builtin_va_start): Eliminate first
295         argument and code to implement pre-ISO varargs.
296         (std_expand_builtin_va_start): Ignore first argument; it is
297         always 1.
298         (expand_builtin): Handle BUILT_IN_VA_START and
299         BUILT_IN_STDARG_START identically.  Delete
300         BUILT_IN_VARARGS_START case.
302         * function.c (assign_parms): Delete hide_last_arg and all
303         its uses.
304         (mark_varargs): Delete function.
305         * function.h (struct function): Delete 'varargs' bit.
306         (current_function_varargs): Delete macro.
307         * tree.h: Don't declare mark_varargs.
309         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
310         (c_expand_body): Don't call mark_varargs.
311         * c-objc-common.c: Handle BUILT_IN_VA_START and
312         BUILT_IN_STDARG_START identically.  Delete
313         BUILT_IN_VARARGS_START case.
314         * c-tree.h: Don't declare c_mark_varargs.
315         * c-parse.in: Remove grammar rules for '&...' (which has been
316         commented out since before 2.7.2) and for '...' in K+R
317         argument declarations.
319         * builtins.c, function.c, integrate.c, sibcall.c,
320         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
321         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
322         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
323         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
324         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
325         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
326         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
327         config/stormy16/stormy16.c: Delete all references to
328         current_function_varargs, and code predicated on that flag.
330         * config/alpha/alpha.c (alpha_va_start),
331         config/arc/arc.c (arc_va_start),
332         config/i386/i386.c (ix86_va_start),
333         config/mips/mips.c (mips_va_start),
334         config/mn10300/mn10300.c (mn10300_va_start),
335         config/rs6000/rs6000.c (rs6000_va_start),
336         config/s390/s390.c (s390_va_start),
337         config/sh/sh.c (sh_va_start),
338         Ignore first argument; it is always 1.
340         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
341         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
342         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
343         Delete m68hc11_va_start.
344         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
345         No need to define EXPAND_BUILTIN_VA_START.
347         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
348         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
350 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
352         PR optimization/7153
353         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
354         dies in more than one insn.
356 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
358         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
360 2002-07-15  Michael Matz  <matz@suse.de>,
361             Daniel Berlin  <dberlin@dberlin.org>,
362             Denis Chertykov  <denisc@overta.ru>
364         Add a new register allocator.
366         * ra.c: New file.
367         * ra.h: New file.
368         * ra-build.c: New file.
369         * ra-colorize.c: New file.
370         * ra-debug.c: New file.
371         * ra-rewrite.c: New file.
373         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
374         (ra-rewrite.o): New .o files for libbackend.a.
375         (GTFILES): Add basic-block.h.
377         * toplev.c (flag_new_regalloc): New.
378         (f_options): New option "new-ra".
379         (rest_of_compilation): Call initialize_uninitialized_subregs()
380         only for the old allocator.  If flag_new_regalloc is set, call
381         new allocator, instead of local_alloc(), global_alloc() and
382         friends.
384         * doc/invoke.texi: Document -fnew-ra.
385         * basic-block.h (FOR_ALL_BB): New.
386         * config/rs6000/rs6000.c (print_operand): Write small constants
387         as @l+80.
389         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
390         (df_reg_table_realloc): Make size at least as large as max_reg_num().
391         (df_insn_table_realloc): Size argument now is absolute, not relative.
392         Changed all callers.
394         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
395         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
397         2002-06-20  Michael Matz  <matz@suse.de>
399         * df.h (struct ref.id): Make unsigned.
400         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
402         2002-06-13  Michael Matz  <matz@suse.de>
404         * df.h (DF_REF_MODE_CHANGE): New flag.
405         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
406         involving subregs with invalid mode changes, when
407         CLASS_CANNOT_CHANGE_MODE is defined.
409         2002-05-07  Michael Matz  <matz@suse.de>
411         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
413         2002-05-03  Michael Matz  <matz@suse.de>
415         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
417         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
419         * regclass.c (regclass): Work with all regs which have sets or
420         refs.
421         (reg_scan_mark_refs): Count regs inside (clobber ...).
423         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
425         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
426         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
427         add new refs.
428         (df_bb_refs_update): Don't clear insns_modified here, ...
429         (df_analyse): ... but here.
431         * sbitmap.c (dump_sbitmap_file): New.
432         (debug_sbitmap): Use it.
434         * sbitmap.h (dump_sbitmap_file): Add prototype.
436         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
438         * df.c (df_insn_modify): Grow the UID table if necessary, rather
439         than assume all emits go through df_insns_modify.
441         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
443         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
444         increase REG_N_REFS (like flow does), so that regclass doesn't
445         think a reg is useless, and thus, not calculate a class, when it
446         really should have.
448         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
450         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
451         dataflow analysis.
453 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
455         PR middle-end/7245
456         * config/i386/i386.c (const_int_1_31_operand): New.
457         * config/i386/i386.h (PREDICATE_CODES): Add it.
458         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
459         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
460         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
462 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
464         PR target/7282
465         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
466         (floatunssidf2): Likewise.
467         (floatsidf_ppc64): New insn_and_split.
468         (floatunssidf_ppc64): Likewise.
470 2002-07-14  Andreas Jaeger  <aj@suse.de>
472         * config.gcc (sh64): Remove unused
473         target_requires_64bit_host_wide_int.
475 2002-07-12  Roger Sayle  <roger@eyesopen.com>
477         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
478         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
479         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
480         whether clear_by_pieces should be used to clear storage.
481         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
483         * doc/tm.texi: Document these two new target macros.
485 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
487         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
488         the scratch register.
489         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
490         of it, forbid reload to use it.
492 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
494         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
495         usage on 64-bit hosts, return value was truncated to 32 bits.
497 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
499         * simplify-rtx.c (simplify_subreg): Handle floating point
500         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
501         the element mode is requested, compute a subreg with an
502         integer mode of the same size as the element mode first.
504 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
506         * combine.c (try_combine): When converting a paradoxical subreg
507         to an extension, take LOAD_EXTEND_OP into account.
509 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
511         * config.gcc (mips-sgi-irix6*o32): New configuration.
513         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
514         configurations.
515         * configure: Regenerate.
517         * config/mips/iris6-o32-as.h: New file.
518         * config/mips/iris6-o32.h: New file.
520         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
521         (NM_FLAGS): Define.
522         (HAVE_AS_SHF_MERGE): Undefine.
524         * config/mips/t-iris5-as: New file.
525         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
527         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
528         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
529         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
530         dp-bit.c, fp-bit.c): Move ...
531         * config/mips/t-iris5-6: ... here.
532         New file, shared by IRIX 5 and IRIX 6.
533         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
534         mips-sgi-irix5*): Use it.
536         * config/mips/iris6.h: Remove duplicate comment.
538         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
539         !TARGET_IRIX6]: Define.
540         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
542         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
544 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
546         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
547         and delete code to force constant to register.
548         * pa-protos.h (adddi3_operand): Add prototype.
549         * pa.c (adddi3_operand): New function.
551 2002-07-11  Roger Sayle  <roger@eyesopen.com>
553         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
554         non-ANSI builtin functions.
556 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
558         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
559         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
560         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
561         (gen_const_vector_0): Use it.
563 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
565         * pa.md (adddi3): For 32-bit targets, force constants to a register
566         if they don't fit in an 11-bit immediate.  Change insn predicate to
567         arith11_operand.  Remove comment.
568         * pa.c (cint_ok_for_move): Fix comment.
569         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
570         targets.
572 2002-07-11  Tim Josling  <tej@melbpc.org.au>
574         Remove front end hard coding from gengtype.c.
576         * Makefile.in
577         (STAGESTUFF): add gtyp-gen.h
578         (GTFILES): Remove front end specific files.
579         (GTFILES_FILES_LANGS): New, from configure..
580         (GTFILES_FILES_FILES): Likewise.
581         (GTFILES_LANG_DIR_NAMES): Likewise.
582         (GTFILES_SRCDIR): Likewise.
583         (gtyp-gen.h): Build from configure information.
584         (s-gtype): Remove command line parameters from gengtype.
585         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
586         (mostlyclean): Delete files generated by and for gengtype.
588         * c-config-lang.in: New file.
590         * configure.in (all_gtfiles_files_langs): New. Accumulate files
591         for each language.
592         (all_gtfiles_files_files): New. Accumulate language for each file
593         accumulated.
594         (gtfiles): Pick up value for C.
595         (srcdir): AC-SUBST this variable.
596         (all_gtfiles_files_langs): AC-SUBST this variable.
597         (all_gtfiles_files_files): AC-SUBST this variable.
599         * configure: Regenerate.
601         * gengtype-lex.l (parse_file): Make parameter const.
603         * gengtype.c (toplevel): include gtyp-gen.h.
604         (BASE_FILE_<language> unnamed enum): Delete.
605         (lang_names): Delete (replaced by gtyp-gen.h)
606         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
607         all references.
608         (NUM_GT_FILES): New.
609         (NUM_LANG_FILES): New.
610         (srcdir_len): New.
611         (NUM_BASE_FILES): Change calculation.
612         (open_base_files): Change prototype to avoid warning.
613         (startswith): Delete.
614         (get_file_basename): Iterate through generated language list not
615         hard coded list.
616         (get_base_file_bitmap): Use generated list of files and languages.
617         (close_output_files): Add prototype to rmove warning.
618         (main): Iterate through list of generated files from gtyp-gen.h
619         rather than command line paramaters.  Ignore duplicated file
620         names.
622         * gengtype.h (parse_file): Amend prototype for const parameter.
624         * doc/sourcebuild.texi: Document gtfiles variable.
626         * doc/gty.texi: Document changes to gtfiles variable for front
627         ends.
629         * objc/config-lang.in (gtfiles): Add files needed for objc front
630         end.
632 2002-07-10  Roger Sayle  <roger@eyesopen.com>
634         PR c/2454
635         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
636         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
638 2002-07-10  Roger Sayle  <roger@eyesopen.com>
639             Zack Weinberg <zack@codesourcery.com>
641         * builtins.def: Make the argument types of abort and exit
642         independent of the front-end.
644 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
646         * config/rs6000/linux64.h (ASM_SPEC): Define.
648 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
650         * config/rs6000/rs6000.c (emit_frame_save): New.
651         (rs6000_frame_related): Replace reg2 before reg.
652         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
653         and eh_return registers.
655 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
657         Revert all patches for optimization of Complex .op. Real.
658         * complex_part_zero_p: Remove
659         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
660         with x.
661         * expand_cmplxdiv_wide: Ditto.
662         * expand_binop: Ditto.
664 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
666         * config/avr/avr.md: Fix two 0x80000000 constants to make them
667         negative also on 64-bit hosts.
669         Default to -fno-reorder-blocks when optimizing for size.
670         * config/avr/avr-protos.h (avr_optimization_options): Declare.
671         * config/avr/avr.c (avr_optimization_options): New function.
672         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
674         Optimize returning from simple functions.
675         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
676         * config/avr/avr.c (avr_simple_epilogue): New function.
677         * config/avr/avr.md (return): New insn.
679 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
681         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
682         HAS_INIT_SECTION to protection.
684 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
686         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
687         deprecated.
689 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
691         * combine.c (gen_lowpart_for_combine): Handle vector modes.
692         Supply non-VOID mode to simplify_gen_subreg.
694 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
696         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
698 2002-07-10  Jeffrey A Law  <law@redhat.com>
700         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
701         as appropriate.
703         * mn10200.c (expand_epilogue): Fix test to determine which scratch
704         register to use.
706 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
708         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
709         Get mode from dest.
710         If simplify_gen_subreg fails, try next equivalent.
712 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
714         * diagnostic.h: #include location.h
715         (location_t): Move definition to..
716         * location.h: ... here.  New file.
717         * tree.h: #include location.h
718         (DECL_SOURCE_LOCATION): New macro.
719         (DECL_SOURCE_FILE): Use.
720         (DECL_SOURCE_LINE): Likewise.
721         (struct tree_decl): REplace filename and linenum with locus.
722         * Makefile.in (TREE_H): add location.h
723         (diagnostic.o): Depends on gt-location.h
724         (gt-location.h): Depends on s-gtype
726 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
728         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
729         TARGET_OS_CPP_BUILTINS.
730         * config/rs6000/aix31.h: Likewise.
731         * config/rs6000/aix41.h: Likewise.
732         * config/rs6000/aix43.h: Likewise.
733         * config/rs6000/aix51.h: Likewise.
734         * config/rs6000/beos.h: Likewise.
735         * config/rs6000/darwin.h: Likewise.
736         * config/rs6000/eabi.h: Likewise.
737         * config/rs6000/eabisim.h: Likewise.
738         * config/rs6000/linux.h: Likewise.
739         * config/rs6000/linux64.h: Likewise.
740         * config/rs6000/lynx.h: Likewise.
741         * config/rs6000/mach.h: Likewise.
742         * config/rs6000/rtems.h: Likewise.
743         * config/rs6000/sysv4.h: Likewise.
744         * config/rs6000/vxppc.h: Likewise.
746 2002-07-09 Devang Patel <dpatel@apple.com>
747         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
748         Do not allow ObjC objects as a parameter type for Objective-C methods.
749         My previous patch restricted  'struct' also.
751 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
753         * cpperror.c (cpp_error): Default to directive_line within
754         directives here.
755         * cppexp.c (cpp_interpret_integer): Only use traditional
756         number semantics in directives.
757         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
758         (do_include_common): Similarly.
759         * cpptrad.c (scan_out_logical_line): Implement accurate
760         quoting of <> in #include.
761         * doc/cpp.texi: Update.
763 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
764                           J"orn Rennecke <joern.rennecke@superh.com>
766         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
767         * sh.md (attribute issues): Replace with:
768         (attribute pipe_model).  All users changed.
769         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
770         All users changed.
771         (function units sh5issue, sh5fds): New.
772         (attribute is_mac_media): New.
773         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
774         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
775         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
776         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
777         (call_media, call_value_media, sibcall_media): Likewise.
778         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
779         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
780         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
781         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
782         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
783         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
784         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
785         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
786         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
787         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
788         (truncdfsf2_media): Likewise.
789         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
790         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
792 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
794         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
795         * sh.c (general_extend_operand, inqhi_operand): New functions.
796         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
797         alternatives using 'N' modifier.  Add type.
798         (adddi3z_media): Likewise.  Enable generator function generation.
799         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
800         exact predicates / constraints.  Add type.
801         (subsi3): Allow 0 for SHMEDIA.
802         (udivsi3_i4_media): Use match_operand for input values
803         rather than hard registers.
804         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
805         unnecessarily through hard registers.  Keep copies of pseudo
806         registers outside of the libcall sequence.
807         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
808         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
809         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
810         (extendhidi2, extendqidi2): Likewise.
811         (andsi3_compact): Name.
812         (andcdi3): Enable generator function generation.
813         (zero_extendhisi2, zero_extendqisi2): Rename to
814         (zero_extendhisi2_compact, zero_extendqisi2_compact).
815         (extendhisi2, extendqisi2): Rename to
816         (extendhisi2_compact, extendqisi2_compact).
817         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
818         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
819         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
820         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
821         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
822         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
823         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
824         (shmedia32_initialize_trampoline_big): Likewise.
825         (shmedia32_initialize_trampoline_little): Likewise.
826         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
827         (negdi2): Remove spurious T clobber.
828         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
829         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
830         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
831         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
832         (ic_invalidate_line_media): Write back data cache before invalidating
833         instruction cache.  Add type.
834         (movsf_media): Sign-extend when the destination is a general
835         purpose register.  Add type.
836         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
837         (casesi_worker_0+1): Only increment ref count for proper label.
838         (casesi_worker_0+2): Likewise.
840 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
842         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
844 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
846         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
847         from Pmode to ptr_mode.
848         (get_exception_pointer): Ditto.
849         (connect_post_landing_pads): Ditto.
850         (dw2_build_landing_pads): Ditto.
852 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
853         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
854         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
855         (handle_pragma_redefine_extname): Change to use new function.
857 2002-07-08  Roger Sayle  <roger@eyesopen.com>
859         * combine.c (combine_simplify_rtx): Add an explicit cast
860         to avoid signed/unsigned comparison warning.
861         (simplify_if_then_else): Likewise.
862         (extended_count): Likewise.
863         (simplify_shift_const): Likewise.
864         (simplify_comparison): Likewise.
866 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
868         * config/mips/mips.md: Add imadd type.  Update scheduler description
869         to use imadd as well as imul.
870         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
871         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
872         (*mul_sub_si): Likewise for first alternative.  Change second
873         alternative from imul to multi.
875 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
877         * c-common.c (c_common_post_options): Update prototype;
878         don't init backends if preprocessing only.
879         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
880         * langhooks.h (struct lang_hooks): Update post_options to
881         return a boolean.
882         * toplev.c (parse_options_and_default_flags, do_compile,
883         lang_independent_init): Update prototypes.  Allow the
884         front end to specify that there is no need to initialize
885         the back end.
886         (general_init): Move call to hex_init here...
887         (toplev_main): ...from here.  Pass flag for back end init
888         suppression.
890 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
892         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
893         (PREDICATE_CODES): Add entries for equality_comparison_operator,
894         greater_comparison_operator and less_comparison_operator.
895         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
896         more operators.
897         (equality_comparison_operator): New function.
898         (greater_comparison_operator, less_comparison_operator): Likewise.
899         * sh.md (beq_media_i): Disable generator function generation.
900         Use match_operator to handle a whole class of comparisons.  Add
901         modifier in output template to provide branch prediction.  Add type.
902         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
903         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
904         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
905         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
907 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
909         Emit MMIX function prologue and epilogue as rtl.
910         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
911         not unprototyped get_hard_reg_initial_val.
912         ("call_value", "nonlocal_goto_receiver"): Ditto.
913         ("return"): Make define_expand.  Move real insn to...
914         ("*expanded_return"): New pattern.
915         ("prologue", "epilogue"): New define_expands.
916         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
917         (struct machine_function): New member in_prologue.
918         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
919         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
920         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
921         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
922         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
923         (LOCAL_REGNO): Define.  Adjust comment.
924         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
925         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
926         leaf_function_p.
927         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
928         the prologue.
929         (mmix_target_asm_function_prologue): Make static.  Just mark that
930         the prologue is being emitted.  Move guts to...
931         (mmix_expand_prologue): New function.  Adjust for emitting
932         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
933         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
934         \n.  Move guts to...
935         (mmix_expand_epilogue): New function.  Adjust for emitting
936         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
937         (mmix_target_asm_function_end_prologue): Mark that the prologue
938         has ended.
939         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
940         (mmix_conditional_register_usage): Improve comments.
941         (mmix_local_regno): New function.
942         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
943         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
944         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
945         (mmix_get_hard_reg_initial_val): Ditto.
947 2002-07-06  Andreas Jaeger  <aj@suse.de>
949         * toplev.c (set_fast_math_flags): Don't use ISO C style function
950         definitions.
951         * gengtype.c (open_base_files): Likewise.
952         (close_output_files): Likewise.
953         * tracer.c (find_best_predecessor): Likewise.
954         (find_best_successor): Likewise.
955         (ignore_bb_p): Likewise.
957 2002-07-05  Roger Sayle  <roger@eyesopen.com>
959         PR c++/7099
960         * builtin-attrs.def: Define new attribute lists for use in
961         builtins.def.
962         * builtins.def [DEF_BUILTIN]: Modify to take an additional
963         ATTRS argument, an enumerated value defined in builtin-attrs.def
964         that represents the attribute list for the builtins.  Modify
965         all builtin functions to pass an appropriate attribute list.
966         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
967         their required noreturn attributes.
968         * tree.h (enum_builtin_function): Ignore the additional parameter
969         to DEF_BUILTIN.
970         * builtins.c (built_in_names): Likewise.
971         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
972         argument with a tree representing the functions attribute list.
973         Pass this "attrs" argument to builtin_function.  No longer handle
974         the noreturn_p processing manually.
975         (built_in_attributes): Move the definitions from builtin-attrs.def
976         before c_common_nodes_and_builtins.
977         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
978         DEF_BUILTIN, passing it to both builtin_function and the changed
979         builtin_function_2.
981         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
982         __builtin__exit and __builtin__Exit.
984 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
986         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
987         QI mode registers in soft registers.
988         ("zero_extendqihi2"): Do not take into account soft registers
989         for register allocation (use '*' constraint).
991 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
993         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
994         it is dead.
995         ("*ashrsi3"): Likewise.
996         ("*lshrsi3"): Likewise.
998 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
1000         * genautomata.c (output_max_insn_queue_index_def): Take latencies
1001         into account.
1003 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1005         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1006         address computation and memory moves.
1008 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
1010         PR c++/6706
1011         * dwarfout.c (output_reg_number): Fix warning message.
1012         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1013         before using it.
1015 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1017         * gcc/gcc.c (asm_debug): Move initialization ...
1018         (init_spec): ... here.
1020 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1022         * c-parse.in (extdef): Append ';'.
1023         (old_style_parm_decls): Append ';'.
1025 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
1027         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1028         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1029         to gcc_cv_as_gstabs_flag.
1030         * configure: Rebuilt.
1032 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
1034         * ggc.h (ggc_add_root): Document as obsolete.
1036 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
1038         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1039         (mshflo_w): Likewise.
1041 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1043         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1044         vector mode subregs of constants to finding integer mode
1045         subregs of constants.
1046         * cse.c (cse_insn): Use simplify_gen_subreg.
1047         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1048         From a vector mode expression of different size than the
1049         target mode.
1051 2002-07-03  Eric Christopher  <echristo@redhat.com>
1053         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1054         * config/mips/mips.h: Remove deprecated -m<processor> options
1055         and cc1_cpu_spec associated.
1056         (CONSTANT_ADDRESS_P): Fix last patch.
1057         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1058         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1059         sunge_sf): Remove.
1061 2002-07-03  Stan Shebs  <shebs@apple.com>
1063         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1064         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1065         (CPP_SPEC): Remove insertion of APPLE_CC definition.
1067 2002-07-03  Roger Sayle  <roger@eyesopen.com>
1069         * combine.c (struct_undo): Change types of recorded substitutions
1070         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1071         (do_SUBST_INT): Change types of the substitution from unsigned int
1072         to int, to avoid compilation warning from SUBST_INT's only caller.
1074         (make_extraction): Add cast to avoid compilation warning.
1075         (force_to_mode): Remove cast to avoid compilation warning.
1077 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
1078             Jeff Law  <law@redhat.com>
1080         * i386.md (length_immediate attribute): Fix typo.
1081         (length_address attribute): Likewise.
1082         (modrm attribute): Set it to 0 for immediate call instructions.
1083         (jcc_1 pattern): Set modrm attribute to 0.
1084         (jcc_2 pattern ): Likewise.
1085         (jump pattern): Likewise.
1086         (doloop_end_internal pattern): Explicitly set length.
1087         (leave pattern): Fix typo.
1088         (leave_rex64 pattern): Likewise.
1090 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
1092         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1093         in FPR as preference.
1094         (fctiwz): Same.
1095         (floatdidf2, fix_truncdfdi2): Same.
1096         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1097         (floatditf2): Same.
1098         (floatsitf2, fix_trunctfsi2): SImode in GPR.
1099         (ctrdi): Remove FPR alternative and splitter.
1101 2002-07-03  Will Cohen  <wcohen@redhat.com>
1103         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1105 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
1107         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1108         than UNITS_PER_WORD, unless this is little endian and the first unit
1109         in this word.  Let extract_bit_field decide how to load an element.
1110         Force arguments to matching mode.
1111         (expand_vector_unop): Likewise.
1113         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1114         consist of word_mode elements.
1115         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1116         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1117         (build_unary_op): Allow vector types for BIT_NOT_EPR.
1118         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1119         CONST_VECTOR.
1120         * optabs.c (expand_vector_binop): Try to perform operation in
1121         smaller vector modes with same inner size.  Add handling of AND, IOR
1122         and XOR.  Reject expansion to inner-mode sized scalars when using
1123         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
1124         (expand_vector_unop): Try to perform operation in smaller vector
1125         modes with same inner size.  Add handling of one's complement.
1126         When there is no vector negate operation, try a vector subtract
1127         operation.  Use simplify_gen_subreg on constants.
1128         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1129         constants into smaller vectors with same inner mode, and to
1130         integer CONST_DOUBLEs.
1132 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1134         * c-parse.in (parsing_iso_function_signature): New variable.
1135         (extdef_1): New, copied from...
1136         (extdef): ... here.  Reset parsing_iso_function_signature.
1137         (old_style_parm_decls):  Reset parsing_iso_function_signature.
1138         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1139         Warn about ISO C style function definitions.
1140         (nested_function, notype_nested_function): Reset
1141         parsing_iso_function_signature.
1142         (parmlist_2): Set parsing_iso_function_signature.
1144         * doc/invoke.texi (-Wtraditional): Document new behavior.
1146 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
1148         * config.gcc (mips*el-*-*): Use tm_defines to set
1149         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1150         * config/mips/little.h: Remove.
1152 2002-07-02 Devang Patel <dpatel@apple.com>
1154         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1155         object as parameter. Prevent something like 'NSObject' to be
1156         used as the type for a method argument.
1158 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
1160         * cpptrad.c: Update comment.
1162 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1164         * doc/cpp.texi: Update for traditional preprocessing changes.
1165         * goc/cppopts.texi: Similarly.
1167 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
1169         * c-parse.in (designator): Enable designated initializers if ObjC.
1170         (objcmessageexpr): Remove references to objc_receiver_context.
1171         * objc/objc-act.h (objc_receiver_context): Remove decl.
1172         * objc/objc-act.c (objc_receiver_context): Remove.
1173         (lookup_objc_ivar): Test objc_method_context instead of
1174         objc_receiver_context.
1176 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
1178         * sh.c (print_operand, case 'N'): Allow zero vector.
1179         (arith_reg_or_0_operand): Likewise.
1180         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1181         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
1182         IOR, XOR, PLUS and SET and take their respective constant
1183         ranges into account.
1184         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1185         * sh.md (subdi3, subdi3_media): Allow zero operand.
1186         (movv8qi_i+3): Only vector that is not split is the zero vector.
1187         Fix operand 3 to simplify_subreg.
1188         (movv2si_i): Split alternative 1.
1189         (mshfhi_l_di_rev+1): New splitter.
1191 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1193         PR preprocessor/7029
1194         * cppinit.c (cpp_handle_option):  Suppress warnings with an
1195         implicit "-w" for "-M" and "-MM".
1196         * doc/cppopts.texi: Update.
1198 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1200         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1201         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
1202         builtin_function.
1204 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1206         * README.Portability: Fix typos.
1208 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
1210         PR target/7177
1211         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1212         of indirections for register inside sign-extended mem part.
1214 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1216         * tree.h:  Modify builtin_function interface to take an extra
1217         argument ATTRS, which is a tree representing an attribute list.
1219         * c-decl.c (builtin_function): Accept additional parameter.
1220         * objc/objc-act.c (builtin_function): Likewise.
1221         * f/com.c (builtin_function): Likewise.
1222         * java/decl.c (builtin_function): Likewise.
1223         * ada/utils.c (builtin_function): Likewise.
1224         * cp/decl.c (builtin_function): Likewise.
1225         (builtin_function_1): Likewise.
1227         * c-common.c (c_common_nodes_and_builtins): Pass an additional
1228         NULL_TREE argument to builtin_function.  (builtin_function_2):
1229         Likewise.
1230         * cp/call.c (build_java_interface_fn_ref): Likewise.
1231         * objc/objc-act.c (synth_module_prologue): Likewise.
1232         * java/decl.c (java_init_decl_processing): Likewise.
1233         * f/com.c (ffe_com_init_0): Likewise.
1235         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1236         NULL_TREE argument to builtin_function.
1237         * config/arm/arm.c (def_builtin): Likewise.
1238         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1239         * config/i386/i386.c (def_builtin): Likewise.
1240         * config/ia64/ia64.c (def_builtin): Likewise.
1241         * config/rs6000/rs6000.c (def_builtin): Likewise.
1243 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
1245         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1246         * config/mips/t-isa3264: Likewise.
1247         * config/mmix/t-mmix: Likewise.
1249 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1251         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1253 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1255         PR opt/4046
1256         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1257         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1258         B are truth values.
1260 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1262         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1264 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
1266         * README.Portability (Function prototypes): Give an example of
1267         declaring and defining a function with no arguments.
1269         * README.Portability (Function prototypes): Document new
1270         variable-argument function macros.
1272 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
1274         * sh.c (langhooks.h): Include.
1275         (sh_init_builtins, sh_media_init_builtins): New functions.
1276         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1277         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1278         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1279         (builtin_description): New struct tag.
1280         (signature_args, bdesc): New arrays.
1281         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1282         (print_operand): Add 'N' modifier.
1283         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1284         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1285         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1286         (CONST_COSTS): Add special case for SHmedia AND.
1287         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1288         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1289         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1290         target_operand can also be const or unspec.
1291         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1292         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1293         (attribute type): Add new types.
1294         (anddi3): Add splitter.
1295         (movdi_const_16bit+1): Add code to handle vector constants and
1296         bitmasks efficiently.
1297         (shori_media): Have generator function made.
1298         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1299         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1300         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1301         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1302         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1303         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1304         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1305         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1306         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1307         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1308         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1309         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1310         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1311         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1312         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1313         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1314         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1315         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1316         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1317         (ftrv): Likewise.
1319         (fpu_switch+1, fpu_switch+2): Remove constraint.
1321 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
1323         * tree.c (build_function_type_list): Update function comment.
1324         Rename first argument to return_type.
1326 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1328         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1329         tradcif.y and related files.
1331 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1333         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1335 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1337         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1339 2002-06-30  Devang Patel  <dpatel@apple.com>
1341         * objc/objc-act.c (finish_file): Avoid finish_objc() if
1342         -fsyntax-only.
1344 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
1345                           Frank Ch. Eigler  <fche@redhat.com>
1346                           Matthew Green  <mrg@redhat.com>
1347                           Richard Henderson <rtl@redhat.com>
1348                           Dave Hudson  <dave.hudson@ubicom.com>
1349                           Jeff Johnston  <jjohnstn@redhat.com>
1350                           Alan Lehotsky <apl@alum.mit.edu>
1351                           Bernd Schmidt  <bernds@redhat.com>
1352                           Graham Stott  <grahams@redhat.com>
1354         * doc/extend.texi: Add ip2k port to description of attribute
1355         naked.
1356         * doc/install.texi (Specific): Add ip2k description.
1357         * doc/install-old.texi (Configurations): Add ip2k to possible
1358         cpu types.
1359         * doc/md.texi: Document ip2k constraints.
1360         * config/ip2k/crt0.S: New file.
1361         * config/ip2k/ip2k-protos.h: New file.
1362         * config/ip2k/ip2k.c: New file.
1363         * config/ip2k/ip2k.h: New file.
1364         * config/ip2k/ip2k.md: New file.
1365         * config/ip2k/libgcc.S: New file.
1366         * config/ip2k/t-ip2k: New file.
1368 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
1370         * config/mmix/mmix.md ("return"): New pattern.
1371         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1372         (TARGET_USE_RETURN_INSN): New macros.
1373         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1374         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1375         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1376         (MMIX_POP_ARGUMENT): New macro.
1377         (mmix_target_asm_function_prologue): When no epilogue is executed,
1378         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
1379         (mmix_print_operand) <case '.'>: New case.
1380         (mmix_print_operand_punct_valid_p): Match '.'.
1381         (mmix_use_simple_return): New function.
1382         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1383         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1384         -msingle-exit, -mno-single-exit.
1385         (MMIX Options): Ditto.
1387 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
1389         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1391 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1393         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1395 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
1397         * unroll.c (loop_iterations): Handle EQ loops.
1399 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
1401         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1402         constraint in define_expand, not splitter.
1403         Formatting.
1405 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
1407         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1408         build_function_type_list instead of build_function_type.
1410         * config/ia64/ia64.c (ia64_init_builtins): Same.
1412         * config/alpha/alpha.c (alpha_init_builtins): Same.
1414         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1416         * config/arm/arm.c (arm_init_builtins): Same.
1418         * tree.h: Add build_function_type_list prototype.
1420         * tree.c (build_function_type_list): New.
1422 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1424         * collect2.c (scan_prog_file): Fix typo in message.
1426 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
1428         * fold-cont.c: Remove unused CHARMASK.
1430 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
1432         PR preprocessor/7150
1433         * cppmain.c (scan_translation_unit_trad): Simplify.
1434         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1436 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1438         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1439         Don't use CPP_PREDEFINES.
1440         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1441         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1442         * config/i386/djgpp.h, config/i386/i386-coff.h,
1443         config/i386/i386-interix.h, config/i386/i386-interix3.h,
1444         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1445         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1446         config/i386/uwin.h: Similarly.
1448 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1450         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1451         flag_inline_trees to enable inlining.
1453 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
1455         * configure.in (gcc_gxx_include_dir):  Change to match versioned
1456         C++ headers if --enable-version-specific-runtime-libs is used.
1457         * configure:  Regenerate.
1459 2002-06-28  Jan Hubicka  <jh@suse.cz>
1461         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1463 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
1465         * combine.c (combine_simplify_rtx): Pass the mode of the
1466         shift count, not the shift operation when trying to simplify
1467         a shift on a SHIFT_COUNT_TRUNCATED target.
1469 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1471         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1472         avoid the auto increment addressing modes.
1473         ("*subsi3"): Likewise.
1474         (split for add/sub on address): For 68HC12 push the value on
1475         the stack and do the operation with a pop.
1477 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1479         * cpplib.c (_cpp_handle_directive): Move #define-specific
1480         code to the #define handler...
1481         (do_define): ...here.
1482         (lex_macro_node): No longer a need to check for comments here.
1484 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1486         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1487         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1488         Declare.
1489         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1490         do not reorder basic blocks at the end when optimizing for size.
1492 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1494         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1495         (m68hc11_make_autoinc_notes): New function.
1496         (m68hc11_split_move): Be very cautious when spliting a move with
1497         auto increment/decrement modes because this may result in incompatible
1498         directions; add REG_INC notes to the resulting insn for CSE reg.
1500 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
1502         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1503         can be a valid address.
1505 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
1507         * config/rs6000/rs6000.c: Remove unusued variables from last
1508         patch.
1510 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1512         Revert:
1513         * config/rs6000/rs6000.c (rs6000_override_options): Move
1514         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1516 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1518         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1519         lvx/stv/dst builtins...
1520         (altivec_expand_ld_builtin): ...to here.
1521         (altivec_expand_st_builtin): ...here.
1522         (altivec_expand_dst_builtin): ...and here (respectively).
1524 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
1526         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1528 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
1530         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1531         subregs.
1532         * recog.c (general_operand, register_operand): Disallow them.
1534 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1536         PR preprocessor/7138
1537         * cpplib.c (_cpp_handle_directive): Do traditional
1538         preparation after setting state.angled_headers.
1539         * cpptrad.c (scan_out_logical_line): Fix potential
1540         quote bug.
1542 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1544         * config/rs6000/rs6000.c (rs6000_override_options): Move
1545         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1547 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
1549         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1550         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1551         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1553 2002-06-27  Roger Sayle  <roger@eyesopen.com>
1555         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1556         * config/stormy16/stormy16.h: Likewise.
1558         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1559         with #define.
1561 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1563         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
1564         Hitachi entry.  Make punctuation more consistent.
1566 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
1568         * doc/install.texi: Change ` bit' to `-bit'.
1569         * doc/md.texi: Change `-bits' to `-bit'.
1570         * doc/tm.texi: Change `-bits' to ` bits'.
1572 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
1574         * gcse.c (hoist_code): Rewrite to only get list of dominated
1575         blocks once per BB. Also fix reversed test (by removing need for
1576         the test at all).
1578 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1580         * cpphash.h (_cpp_set_trad_context): Remove.
1581         * cpplib.c (prepare_directive_trad): Do nothing for #define.
1582         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1583         * cpptrad.c: Update comments.
1584         (_cpp_read_logical_line_trad): Let scan_logical_line handle
1585         updating the current context.
1586         (scan_logical_line): Update the current context.
1587         (_cpp_create_trad_definition): Similarly.
1588         (_cpp_set_trad_context): Remove.
1590 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1592         PR preprocessor/7070
1593         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1595 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
1597         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1598         config/xtensa/xtensa.c (xtensa_return_addr): New function.
1599         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1600         config/xtensa/xtensa.md (fix_return_addr): New pattern.
1602 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1604         * mips.c (coprocessor_operand, coprocessor2_operand,
1605         symbolic_operand): Move prototypes from here...
1606         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1607         symbolic_operand): ...to here.
1609 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1611         * config/sh/crt1.asm: remove _stack label definition
1612         and sentinel value.
1614 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1616         * varasm.c: Include real.h before output.h.
1618 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
1620         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1621         check for TARGET_ALTIVEC.
1623 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1625         * config.gcc (vax-*-vms*): Make obselete.
1627 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1629         * gcc.c (warn_std): Delete.
1631 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
1633         * doc/extend.texi: Fix formatting of last checkin.
1635 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1637         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1638         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1640 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
1642         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1643         discrepancies from motorola's documentation.
1645 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
1647         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1648         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
1650         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
1651         produce a 32 bit result before normalization, then normalize with a
1652         left shift.  Compute approximative error of 2nd reciprocal
1653         approximation in 2's complement.  Fix mask generation from upper
1654         longword of second divide stage result.
1655         For large divisor, fix shift count used to truncate first stage
1656         divide result; make decision if to adjust upwards based on comparison
1657         of higher parts of normalized values.
1658         (udivdi): Likewise.  Undo normalization of result for large divisor
1659         case.
1661 2002-06-25  David S. Miller  <davem@redhat.com>
1663         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1665 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
1667         * cpplib.c (do_include_common): Revert to correct line number
1668         if -traditional.
1669         * cpptrad.c (scan_out_logical_line): Treat null directive as
1670         white space.  Invlidate MI optimization for non-whitespace
1671         text outside a directive.
1673 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1675         * Makefile.in (SHELL): Set to @SHELL@.
1676         * fixinc/Makefile.in (SHELL): Likewise.
1678         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1679         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1680         initialization.
1682 2002-06-24  Jeff Law <law@redhat.com>
1684         * flow.c (propagate_one_insn): When removing an insn
1685         with a REG_LIBCALL note but not the entire libcall sequence,
1686         delete the associated REG_RETVAL note.
1688 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
1690         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1691         (udivsi3): Likewise.  Rewrite SH1 implementation.
1692         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1693         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1694         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1695         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1696         (_moddi3): Likewise.
1698         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
1700         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1701         arguments into account for stack_regs.
1703 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
1705         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
1706         in examples.
1708 2002-06-24  Art Haas  <ahaas@neosoft.com>
1710         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
1711         * doc/tm.texi (Frame Layout): Likewise.
1713 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
1715         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
1716         Set float_format to i128.
1718 2002-06-24  David S. Miller  <davem@redhat.com>
1720         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
1721         32-bit ABI libfuncs to NULL.
1723         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
1724         strings instead of quoted strings for code blocks.
1726         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1727         optabs if op1 is const0_rtx.
1729         * Makefile.in (GTFILES): Add basic-block.h
1730         * basic-block.h (label_value_list, tail_recursion_label_list):
1731         Mark with GTY.
1733 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
1735         * cpptrad.c (scan_out_logical_line): Check recursing only when
1736         we know we have a macro invocation in the function-like case.
1737         Only call _cpp_handle_directive if we know we have a good
1738         directive, or we want to reject a bad directive.
1740 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
1742         * doloop.c (doloop_valid_p): Correct comment.
1743         (doloop_modify_runtime <abs_inc != 1>): Simplify.
1744         (doloop_modify_runtime <do-while>): Don't emit code when NE.
1746 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
1748         * config.gcc: Add support for ip2k.
1750 2002-06-23  Jan Hubicka  <jh@suse.cz>
1751             Jeff Law <law@redhat.com>
1753         * function.h (struct emit_status): Clarify potential contents
1754         of regno_reg_rtx array.
1755         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
1756         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
1758         * reg-stack.c (convert_regs_exit): Push the registers to stack in
1759         proper order.
1761 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1763         PR middle-end/6963
1764         * function.c (assign_stack_temp_for_type): Do not return
1765         the same MEM rtx for multiple uses of a stack slot.
1767 2002-06-22  David S. Miller  <davem@redhat.com>
1769         PR target/6841 target/6770 target/6719
1770         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1771         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1772         GENERAL_OR_EXTRA_FP_REGS.
1774 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
1776         * cpptrad.c (struct fun_macro): Add line number.
1777         (scan_out_logical_line): Set it, and use it to report unterminated
1778         macro invocations.
1780 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1782         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
1783         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
1784         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
1785         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
1786         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
1787         REGEXP_ONEOF, check_name): Const-ify.
1789 2002-06-21  Matt Thomas  <matt@3am-software.com>
1791         * config/vax/vax.c (vax_output_function_prologue): Use
1792         REGISTER_PREFIX.  Fix some indentation.
1793         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
1794         (VAX_ISTREAM_SYNC): Define.
1795         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
1796         i-stream sync to the end.
1797         (REGISTER_PREFIX): Define as "".
1798         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
1800 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
1802         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
1803         configurations.
1805 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1807         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
1808         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
1810 2002-06-21  Matt Thomas  <matt@3am-software.com>
1812         * config/vax/netbsd.h: Adjust a comment.
1813         (TARGET_DEFAULT): Redefine as 0.
1815 2002-06-21  Richard Henderson  <rth@redhat.com>
1817         * bb-reorder.c (make_reorder_chain_1): Search harder for the
1818         vax casesi fallthru edge.
1819         * cfglayout.c (cleanup_unconditional_jumps): Use
1820         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
1821         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
1822         block after ADDR_VEC.
1824 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1826         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1828 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
1830         * cpperror.c (cpp_error): For traditional CPP, default to
1831         diagnostics on pfile->line.
1832         * cpplib.c (prepare_directive_trad): Set line number for
1833         diagnostics for #define too.
1834         * cpptrad.c (skip_whitespace): Skip comments properly.
1835         (_cpp_expansions_different_trad): Initialize quote2.
1837 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
1839         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
1840         * config/mmix/mmix.h: Ditto.
1841         * config/mmix/mmix-protos.h: Ditto.
1842         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
1843         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
1844         comment.  Comment extra CC modes.
1846 2002-06-20 Jan Hubicka  <jh@suse.cz>
1848         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
1849         (scope_to_insns_finalize): Do not call set_block_levels; handle
1850         sequences.
1851         (choose_inner_scope): New.
1852         * rtl.h (choose_inner_scope): Declare.
1854 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1856         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
1857         HOST_WIDE_INT.
1858         * pa.c (pa_asm_output_mi_thunk): Likewise.
1859         (n_deferred_plabels): Change type to size_t.
1860         (output_deferred_plabels, output_call): Use size_t instead of int.
1862 2002-06-20  Richard Henderson  <rth@redhat.com>
1864         PR target/4041
1865         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
1866         pattern and adjust constraints for coldfire.
1868 2002-06-20  Richard Henderson  <rth@redhat.com>
1870         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
1872 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
1874         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
1876 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
1878         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
1880 2002-06-20  Stan Shebs  <shebs@apple.com>
1882         * dominance.c: Include errors.h instead of error.h.
1884 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
1886         * cppexp.c (cpp_interpret_integer): Don't force traditional
1887         numbers to be unsigned.
1888         * cpplib.c (prepare_directive_trad): Set line number for
1889         diagnostics.
1890         * cpptrad.c (scan_out_logical_line): Continue scanning out
1891         at start of buffer.
1892         * gcc.c (trad_capable_cpp): Use cc1 always.
1894 2002-06-20  Jeffrey Law  <law@redhat.com>
1896         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
1897         elimination in leaf functions by default yet.
1899 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
1901         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
1903 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1905         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
1906         multilibs.
1907         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1908         Fixes PR other/6836.
1910 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
1911                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1913         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
1915         * basic-block.h: Do not include et-forest.h
1916         (dominance_info): Declare as struct dominance-info.
1917         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
1918         deleting block.
1919         * dominance.c (struct dominance_info): Define.
1920         (BB_NODE, SET_BB_NODE): New macros.
1921         (bb_hash_func, bb_eq_func): Kill.
1922         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
1923         nearest_common_dominator, dominated_by_p, recount_dominator,
1924         add_to_dominance_info, delete_from_dominance_info): update for new
1925         representation.
1926         (get_dominated_by, redirect_immediate_dominators): Rewrite using
1927         enumerate_sons.
1928         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
1929         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
1930         structure.
1932         * et-forest.h: Update copyright; revamp all function to operate on
1933         nodes
1934         (et_forest_value): Kill.
1935         (et_forest_enumerate_sons, et_forest_node_value): New.
1936         * et-forest.c: Update copyright.
1937         * et-forest.h: Update copyright; revamp all function to operate on
1938         nodes
1939         (et_forest_value): Kill.
1940         (et_forest_enumerate_sons, et_forest_node_value): New.
1942         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
1944         * basic-block.h: Inlude et-forest.h
1945         (basic_block_def): Kill dominator.
1946         (dominance_info): New type.
1947         (loops): Use dominace_info.
1948         (dominace handling functions): Take dominace_info as argument
1949         instead of bitmaps.
1950         (create_preheader): Likewise.
1951         * cfg.c (entry_exit_blocks): Kill dominator.
1952         (dump_flow_info): Do not dump dominators.
1953         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
1954         dominators.
1955         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
1956         (flow_loops_pre_header_scan, make_forwarder_block,
1957         canonicale_loop_headers, flow_loops_find): Likewise.
1958         * dominance.c: Include error.h
1959         (idoms_to_doms): Kill.
1960         (bb_hash_func, bb_eq_func): New static functions.
1961         (debug_dominace_info): New global function.
1962         (calculate_dominance_info): Use new et forest structure.
1963         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
1964         get_dominated_by, redirect_immediate_dominators,
1965         nearest_common_dominator, dominated_by_p, verify_dominators,
1966         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
1967         delete_from_dominance_info): New global functions.
1968         * gcse.c (domnators): CHange to dominance_info.
1969         (alloc_hoist_mem): Do not alloc dominators
1970         (free_code_hoist_mem): Use free_dominance_info.
1971         (compute_code_hoist_data): Use dominance_info.
1972         (hoist_code): Likewise.
1973         * ifcvt.c (post_dominators): Likewise.
1974         (find_if_case_2, if_convert): Likewise.
1975         * predict.c (process_note_predictions, process_note_prediction,
1976         estimate-probability): Likewise.
1977         * sched-rgn.c (find_rgns, init_regions): Likewise.
1978         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
1979         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
1980         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
1981         find_evaluations, convert_to_ssa): Likewise.
1982         * ssa.h (compute_dominance_frontiers): Likewise.
1984         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1986         * Makefile.in (et-forest.c): Add.
1987         * et-forest.c: New file.
1988         * at-forest.h: New file.
1990 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1992         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
1993         array size calculation.
1994         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
1995         Likewise.
1997         * diagnostic.c (diagnostic_kind_text): Const-ify.
1998         * gengtype.c (lang_names): Likewise.
2000 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
2002         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2004 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2006         * config/sol2.h: New file.
2007         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2008         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2009         (sparc-*-chorusos*): Likewise.
2010         (sparc-*-elf*): Likewise.
2011         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2012         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2013         (sparc-hal-solaris2*): Likewise.
2014         (sparc-*-solaris2*): Likewise.
2015         (sparclite-*-elf*): Likewise.
2016         (sparc86x-*-elf*): Likewise.
2017         (sparc64-*-elf*): Likewise.
2019         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2020         config/sol2.h.
2021         (ASM_SPEC): Override config/sol2.h version for now.
2022         Removed obsolete GAS_REJECTS_MINUS_S variant.
2023         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2024         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2025         (TARGET_OS_CPP_BUILTINS): Likewise.
2026         Assert system=unix.
2027         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2028         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2029         config/sol2.h.
2030         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2031         (ASM_CPU_SPEC): Define.
2032         (SUBTARGET_EXTRA_SPECS): Define.
2034         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2035         in config/sparc/sol2.h.
2036         (ASM_SPEC): Moved to config/sol2.h.
2037         (CPP_CPU_SPEC): Simplified.
2038         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2039         consistency.
2040         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2041         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2042         STARTFILE_ARCH64_SPEC.
2043         (STARTFILE_SPEC): Moved to config/sol2.h
2044         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2045         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2046         (LINK_ARCH64_SPEC): Simplified.
2047         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2048         (LINK_SPEC): Moved to config/sol2.h
2050         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2051         config/sol2.h.
2052         Use BITS_PER_WORD for size.
2053         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2054         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2055         (CPP_PREDEFINES): Removed OS-specific part handled by
2056         TARGET_OS_CPP_BUILTINS.
2057         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2058         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2059         (ASM_SPEC): Moved to config/sol2.h.
2060         (PREFERRED_DEBUGGING_TYPE): Likewise.
2061         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2062         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2063         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2064         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2066         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2067         * config/i386/sol2gas.h: Removed.
2069 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2071         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2073 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
2075         * gcc.c-torture/execute/simd-1.c: New.
2077         * gcc.dg/simd-1.c: New.
2079         * doc/extend.texi (Vector Extensions): Document that we can
2080         specify simd types not specifically supported by the hardware.
2081         Document that simd types can be used as function arguments.
2082         Document that signness does make a difference in SIMD types.
2083         Misc cleanups and revisions to the vector extensions section.
2085         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2086         constants.
2088         * expr.c (vector_mode_valid_p): New.
2090         * expr.h: Add vector_mode_valid_p.
2092         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2094         * c-common.c (type_for_mode): Always build vector nodes regardless
2095         of VECTOR_MODE_SUPPORTED_P.
2096         (handle_mode_attribute): Error if we can't emulate a nonexisting
2097         vector mode.
2098         (handle_vector_size_attribute): Same.
2100         * optabs.c (expand_binop): Open-code vector operations.
2101         (expand_unop): Open-code vector unops.
2102         (expand_vector_binop): New.
2103         (expand_vector_unop): New.
2105         * c-typeck.c (build_binary_op): Allow vectors in binops.
2106         Allow vectors in conditional operatiors.
2107         (build_unary_op): Allow vectors in unary minus.
2109         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2110         TARGET_ALTIVEC.
2112 2002-05-20  Richard Henderson  <rth@redhat.com>
2114         * c-common.c (c_common_get_alias_set): Correctly handle characters.
2115         Rearrange order of expressions; don't handle vectors here.
2116         * alias.c (get_alias_set): Let vectors match their components.
2118 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
2120         * config/mips/mips.c (mips_emit_prefetch): Use hints which
2121         match desired locality.
2123 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
2125         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2126         (h8300_insert_attributes): New.
2128 2002-06-19  Akim Demaille  <akim@epita.fr>
2130         * c-parse.in (initelt: identifier ':' initval): Add an empty
2131         action to fix a type clash.
2132         (aliasdecl, classdef): Add the missing closing `;'.
2133         Whitespace changes.
2134         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2135         $$ = $1 type clashes.
2137 2002-06-19  Eric Christopher  <echristo@redhat.com>
2139         * config/mips/mips.c (symbol_operand): New function.
2140         (mips_emit_prefetch): Ditto.
2141         * config/mips/mips-protos.h: Define.
2142         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2143         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2144         (LEGITIMIZE_ADDRESS): Ditto.
2145         * config/mips/mips.md (prefetch, prefetch_si_address,
2146         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2148 2002-06-19  Eric Christopher  <echristo@redhat.com>
2150         * config/fp-bit.h: Add unordered defines for gofast.
2152 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
2154         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2155         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2156         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2157         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2158         checking and without it.
2159         (decl_name, decl_mode_check_failed, regexp_name,
2160         regexp_mode_check_failed): New functions.
2161         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2162         gen_presence_set, gen_absence_set, gen_automaton,
2163         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2164         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2165         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2166         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
2167         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2168         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
2169         (decl_hash, decl_eq_p): Use the macros.
2170         (find_decl): Ditto.  Set up mode of work_decl.
2171         (process_excls, process_presence_absence, process_decls,
2172         check_automaton_usage, process_regexp, process_regexp_decls,
2173         check_usage, loop_in_regexp, check_loops_in_regexps,
2174         process_regexp_cycles, add_advance_cycle_insn_decl,
2175         initiate_states, initiate_excl_sets,
2176         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2177         transform_2): Use the macros.
2178         (transform_3): Ditto.  Check mode before making transformations of
2179         ALLOF.
2180         (regexp_transform_func, transform_insn_regexps,
2181         process_unit_to_form_the_same_automaton_unit_lists,
2182         form_the_same_automaton_unit_lists_from_regexp,
2183         form_the_same_automaton_unit_lists,
2184         process_seq_for_forming_states, process_alts_for_forming_states,
2185         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2186         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2187         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2188         units_to_automata_heuristic_distr, create_ainsns,
2189         units_to_automata_distr, create_automata): Use the macros.
2190         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
2191         (longest_path_length, min_issue_delay_pass_states,
2192         output_dead_lock_vect, output_tables, output_insn_code_cases,
2193         output_internal_insn_latency_func, output_print_reservation_func,
2194         output_description, output_automaton_units, generate): Use the
2195         macros.
2196         (make_insn_alts_attr): Ditto.  Check case when there are not
2197         alternatives in the reservation.
2198         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2199         make_bypass_attr, form_important_insn_automata_lists,
2200         expand_automata): Use the macros.
2202 2002-06-20  Tim Josling  <tej@melbpc.org.au>
2204         * Makefile.in: Clean up code to check for misspecified languages
2205         in enable-languages.
2207 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
2209         * cpptrad.c (_cpp_replacement_text_len): initialize len.
2211 2002-06-19  Jason Merrill  <jason@redhat.com>
2213         * Makefile.in (unstrap, restrap): New targets.
2214         (bootstrap): Mention restrap.
2216 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
2218         * except.c (ehl_free): Remove.
2220         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2221         builtin_define and builtin_define_std.
2223 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2225         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2226         (sCOND): Restrict operand class so that gcc knows how to reload them.
2227         (bitfield_set): Merge two unnamed insn's using alternatives.
2228         (call_value): Remove constraint on unused uperand.
2229         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2230         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2232         * longlong.h (count_trailing_zeros): Escape newline and beautify.
2234 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
2236         * Makefile.in (QMTEST_DIR): Simplify definition.
2238 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
2240         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2241         #define.
2243 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
2245         * cpphash.h (struct cpp_reader): Make date and time strings.
2246         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2247         _cpp_replacement_text_len): New.
2248         * cppinit.c (cpp_create_reader): Update.
2249         (init_builtins): Register appropriate builtins for -traditional-cpp.
2250         * cppmacro.c (new_number_token): Remove.
2251         (_cpp_builtin_macro_text): New.
2252         (builtin_macro): Use it.
2253         (cpp_macro_definition): Update to handle traditional macros.
2254         * cppmain.c (cb_line_change): Don't do column positioning for
2255         traditional output.
2256         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
2257         state ls_fun_close.
2258         (skip_whitespace): Fix.
2259         (maybe_start_funlike): Don't set state.parsing_args.
2260         (scan_out_logical_line): Remove duplicate error.  Use lex_state
2261         rather than state.parsing_args.
2262         (push_replacement_text): Handle builtins.
2263         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2265 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2266             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2268         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2269         attribute __always_inline__.
2271 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
2273         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2274         when generating the call to _mcount.
2275         (NO_PROFILE_COUNTERS): Define.
2277 2002-06-18  Richard Henderson  <rth@redhat.com>
2279         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2280         2002-06-02 change.
2282 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
2284         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2285         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2286         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2287         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2289         * sh-protos.h (sh_pr_interrupt): Declare.
2290         * sh.c (sh_pr_interrupt): New function.
2291         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2292         (sh_hard_regno_rename_ok): Likewise.
2293         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2295 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
2297         * rtl.def (DEFINE_AUTOMATON): Add description of new options
2298         `time' and `v'.  Fix incorrect description of option `w'.
2300         * doc/md.texi: Ditto.
2302         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2303         (gen_automata_option): Process the new options.
2304         (transform_2, transform_3): Initialize some variables.
2305         (initiate_automaton_gen): Use the new macros.
2307 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
2309         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2310         (mips_set_return_address, mips_restore_gp): Declare.
2311         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2312         (current_frame_info): Remove.
2313         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2314         * config/mips/mips.c: Remove uses of current_frame_info.
2315         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
2316         (struct machine_function): Add 'frame' and 'insns_len'.
2317         (current_frame_info, zero_frame_info): Remove.
2318         (mips_restore_gp, mips_set_return_address): New.
2319         (mips_initial_elimination_offset): New.
2320         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2321         (eh_return define_split): Use mips_set_return_address.
2323 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2325         * cpplib.c (dtable): Update.
2326         (end_directive): Decrement expansion prevention count.
2327         Clear state.in_expression.
2328         (prepare_directive_trad): Set state.in_expression.
2329         Increment expansion prevention count.
2330         * cpptrad.c (enum ls): New.
2331         (_cpp_overlay_buffer): Set overlaid_buffer.
2332         (_cpp_remove_overlay): Use overlaid_buffer.
2333         (_cpp_read_logcial_line_trad): Update buffer when it might
2334         have changed.
2335         (scan_out_logical_line): Handle state transitions for assertions
2336         and defined() in #if, and for funlike invocations including the
2337         directive case.  Handle '<' and '>' as a quote mechanism in
2338         #include.  Warn about unterminated macro invocations.
2339         * cpphash.h (struct lexer_state): New member in_expression.
2340         (struct cpp_reader): New member overlaid buffer.
2342 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2344         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2345         __always_inline__.
2347 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
2349         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2351         * doloop.c (doloop_optimize): Extract pattern from insn.
2353 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
2355         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2357 2002-06-17  Jeff Law <law@redhat.com>
2359         * libgcc2.c: Do not include symcat.h or machmode.h.
2361 2002-06-17  Richard Henderson  <rth@redhat.com>
2363         PR target/6922
2364         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2366 2002-06-17  Tom Tromey  <tromey@redhat.com>
2368         * dwarfout.c: Include function.h.
2370 2002-06-17  Andreas Schwab  <schwab@suse.de>
2372         * print-rtl.c (print_rtx): Print space before vector, not after.
2373         (debug_rtx): Clear sawclose before printing.
2374         (debug_rtx_list): Print newline after each list element.
2375         (debug_rtx_range): Likewise.
2377 2002-06-17  Richard Henderson  <rth@redhat.com>
2379         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2380         (current_function_funcdef_no): Similarly.
2381         * function.c (funcdef_no): Similarly.
2382         (prepare_function_start): Set current_function_funcdef_no.
2383         (expand_function_start): Don't set current_function_profile_label_no.
2384         * dwarf2out.h (current_funcdef_number): Remove.
2385         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
2386         current_function_funcdef_no throughout.
2387         * dwarfout.c, vmsdbgout.c: Similarly.
2388         * except.c (sjlj_funcdef_number): Remove.
2389         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2390         (output_function_exception_table): Likewise.
2391         * final.c (profile_function): Use current_function_funcdef_no
2392         instead of current_function_profile_label_no.
2394 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
2396         * sched-ebb.c (init_ready_list): Check INSN_P first.
2398 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
2400         * sh.md (divsi3): Update way how to find insns in a sequence.
2402         * reload1.c (merge_assigned_reloads): Don't change reloads
2403         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2404         to RELOAD_OTHER when there are conflicting input reloads.
2406 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
2408         * function.c (epilogue_done): Correctly build a sequence of insns for
2409         a sibcall epilogue.
2411 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
2413         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2414         #define.
2416         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2418 2002-06-16  Richard Henderson  <rth@redhat.com>
2420         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2421         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2423 2002-06-16  Richard Henderson  <rth@redhat.com>
2425         PR opt/6722
2426         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2428 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2430         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2431         * config/i386/i386-aout.h, config/i386/i386elf.h,
2432         config/i386/sysv4.h: Remove CPP_PREDEFINES.
2433         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2434         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2435         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2436         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2437         CPP_PREDEFINES and part of CPP_SPEC.
2438         * config/i386/sysv4-cpp.h: New.
2440 2002-06-16  Richard Henderson  <rth@redhat.com>
2442         PR c/7030
2443         * dwarf2out.c (modified_type_die): Don't assign the qualified die
2444         to the unqualified type.
2446 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
2448         * i386-protos.h (x86_field_alignment): Declare.
2449         * i386.c (x86_field_alignment): Define.
2450         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2451         (BIGGEST_FIELD_ALIGNMENT): Kill.
2453 2002-06-16  Richard Henderson  <rth@redhat.com>
2455         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
2457 2002-06-16  Richard Henderson  <rth@redhat.com>
2459         * c-common.c (flag_ms_extensions): Move from c++ front end.
2460         * c-common.h (flag_ms_extensions): Declare.
2461         * c-decl.c (c_decode_option): Add -fms-extensions.
2462         (grokfield): Don't accept anonymous structures in ISO C mode;
2463         accept only unnamed anonymous structures in GNU C mode; accept
2464         Plan 9 extensions in MS mode.
2465         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2466         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2467         (extension): Clear flag_iso.
2468         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2470 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
2472         PR target/7042
2473         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2474         early if current_function_epilogue_delay_list is non-empty.
2475         * config/cris/cris.md ("return"): Add sanity check asserting that
2476         current_function_epilogue_delay_list is empty.
2478 2002-06-16  Jeff Law <law@redhat.com>
2480         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2481         sharing of hard registers.
2483         * toplev.c (rest_of_compilation): Remove redundant conditional.
2485         * toplev.c (rest_of_compilation): Perform a simpler, less costly
2486         cleanup of the CFG when not optimizing.
2488 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
2490         * gcc.c (main): Correct startfile_prefix_spec check.
2492 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
2494         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
2495         include both darwin.o and rs6000-c.o.
2497 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2499         * expr.c (compare_from_rtx): Call simplify_relational_operation
2500         on all comparisons, not just those between integer constants,
2501         with the correct (possibly unsigned) comparison code.
2502         (do_compare_rtx_and_jump): Likewise.
2504 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2506         * Makefile.in (tm_defines): New configuration variable.
2507         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2508         Pass tm_defines in TM_DEFINES.
2509         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
2510         * config.gcc (tm_defines): New configuration variable.
2511         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2512         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
2513         * configure.in: Substitute tm_defines.
2514         * configure: Rebuilt.
2515         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
2516         * doc/install.texi: Update.
2517         * pa/pa-700.h: Delete file.
2518         * pa/pa-7100.h: Delete file.
2520 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2522         * fold-const.c (comparison_to_compcode): New function to convert
2523         an comparison TREE CODE into a bit-based representation.
2524         (compcode_to_comparison): New function to convert from this bit
2525         based representation back to a comparison TREE CODE.
2526         (fold_truthop): Simplify (x<y) && (x==y) and related composite
2527         comparisons.
2529 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
2531         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2533         * stor-layout.c (compute_record_mode): Remove check for
2534         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2535         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
2536         MEMBER_TYPE_FORCES_BLK.
2538         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2540         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2542 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
2544         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2546 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
2548         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2549         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2550         * configure, config.in: Regenerate.
2552 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2554         * loop.c (check_final_value): Use v->always_executed
2555         instead of v->always_computable.
2556         * unroll.c (final_giv_value): Don't calculate the final
2557         value as a function of the biv if the giv is not computed
2558         for every loop iteration.
2560 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2562         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2564 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2566         PR c/6677
2567         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2568         the truncation down when the target type is signed.
2569         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2570         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2571         the conversion if the target type is a smaller type.
2573 2002-06-14  Richard Henderson  <rth@redhat.com>
2575         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2576         earlier.  Re-factor comparisons vs extrema.
2578 2002-06-14  Richard Henderson  <rth@redhat.com>
2580         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2582 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2584         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2585         * sched-deps.c (add_dependence): Likewise.
2586         (group_leader): Likewise.
2587         * sched-rgn.c (init_ready_list): Likewise.
2588         * doc/rtl.texi: Adjust accordingly.
2590 2002-06-13  Jeffrey Law  <law@redhat.com>
2592         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2593         null pointer checks were eliminated.  Update prototype.
2594         (delete_null_pointer_checks): Similarly.
2595         * rtl.h (delete_null_pointer_checks): Update prototype.
2596         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2597         delete_null_pointer_checks deletes one or more null
2598         pointer checks.  Do not run cleanup_cfg before gcse, the
2599         CFG is accurate and optimized at that point..
2601         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2602         of hard registers.
2604 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
2606         * Makefile.in (libgcc.mk): Depend on specs.
2608 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
2610         * sh.md (mulsi3): Update way how to find insns in a sequence.
2612 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
2614         * sh.h: Define HARD_REGNO_RENAME_OK
2615         * sh.c: sh_hard_regno_rename_ok: New. If current function has
2616         interrupt_handler attribute, only registers saved on stack are OK.
2617         * sh-protos.h: Declare sh_hard_regno_rename_ok.
2619 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2621         * config/sh/sh.md (jump): Emit jump insn.
2622         (call_pcrel): Get pattern of the result of gen_call_site.
2623         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2625 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2627         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2628         * cpptrad.c: Update comments.
2629         (skip_whitespace, copy_comment): Take a new parameter.
2630         (skip_escaped_newlines): Don't duplicate escaped newline test.
2631         (copy_comment): Different location for CUR, decide here how
2632         to copy / replace the comment.
2633         (skip_whitespace): Copy whitespace.
2634         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2635         (scan_out_logical_line): Let copy comment handle keeping or
2636         replacing comments.
2637         (scan_parameters, _cpp_create_trad_definition): Update.
2639 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
2641         * reload.c (get_secondary_mem,find_reloads_address,
2642         find_reloads_address_1): Pass reference to MEM to find_reloads_address
2643         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
2645 2002-06-13  Jessica Han  <jessica@cup.hp.com>
2647         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2648         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2649         * doc/tm.texi: Document them.
2650         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2651         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2652         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2653         (ASM_OUTPUT_FDESC): Likewise.
2655 2002-06-13  Eric Christopher  <echristo@redhat.com>
2657         * diagnostic.c (output_format): Fix thinko.
2659 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2661         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2662         (DWARF2_UNWIND_INFO): Define to 0.
2664         * config/sh/sh.c (calc_live_regs): Don't use initial_value
2665         optimization for PR_MEDIA_REG.
2667 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2669         * cpphash.h (_cpp_lex_identifier_trad): Remove.
2670         * cpplib.c (end_directive): Don't skip, always remove overlay
2671         apart from #define.
2672         (prepare_directive_trad): Handle NULL pfile->directive.
2673         (_cpp_handle_directive): Always call prepare_directive_trad
2674         if traditional.
2675         * cppmain.c (check_multiline_token): Rename account_for_newlines,
2676         generalize inputs.
2677         (scan_translation_unit_trad): Use it.
2678         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2679         output, get escaped newline in comment close correct.
2680         (check_output_buffer, skip_whitespace): Update.
2681         (_cpp_lex_identifier_trad): Remove.
2682         (scan_out_logical_line): Handle -C and comments in directives
2683         properly.
2685 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2687         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2688         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2689         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2690         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2691         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2692         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2693         (SELECT_SH5_COMPACT_NOFPU): Likewise.
2694         (TARGET_SWITCHES): Use them.
2695         (TARGET_CPU_DEFAULT): Define if not already defined.
2696         (TARGET_DEFAULT): Use it.
2697         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2698         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2699         * config/sh/t-monolib: New file.
2701 2002-06-13  Roger Sayle  <roger@eyesopen.com>
2703         * toplev.c (rest_of_compilation): Simplify (and correct) the
2704         logic of the first delete-null-pointer-checks pass.
2706 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
2708         * i386.c (ix86_expand_movstr):  Fix pasto.
2710 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
2712         * reload.c (find_valid_class):  Fix thinko in my previous patch.
2714 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
2716         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
2717         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
2718         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
2719         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
2721 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
2723         * tree-inline.c (expand_call_inline): Don' mess with _DECL
2724         fields.
2726 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
2728         * diagnostic.c (output_format): Recognize "%H" as a format
2729         specifier for a location_t.
2730         (text_specifies_location): New function.
2731         (diagnostic_set_info): Use it.
2733 2002-06-13  Jeffrey Law  <law@redhat.com>
2735         * emit-rtl.c (static_regno_reg_rtx): Define.
2736         (init_emit_once): Initialize static_regno_reg_rtx.
2737         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
2738         of building new hard reg objects once per function.
2739         (gen_rtx_REG): Try to share hard regs.
2740         * regclass.c (init_fake_stack_mems): New function broken out from
2741         init_regs.
2742         * rtl.h (init_fake_stack_mems): Declare.
2743         * toplev.c (lang_independent_init): Call init_regs before
2744         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
2746         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
2748         * alias.c (argument_registers): Remove.
2749         (init_alias_once): Initialize static_reg_base_value here.  Remove
2750         initialization of argument_registers.
2751         (init_alias_once_per_function): Remove.
2752         (init_alias_analysis): Copy all the entries from static_reg_base_value
2753         into new_reg_base_value all at once.
2754         * rtl.h (init_alias_once_per_function): Remove declaration.
2755         * function.c (prepare_function_start): Do not call
2756         init_alias_once_per_function.
2758         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
2759         starting a sequence and emitting an INSN.
2761 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
2763         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
2765 2002-06-13  David S. Miller  <davem@redhat.com>
2767         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
2769 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2771         * cpplib.c (end_directive): Handle line skipping.  Only remove
2772         the rest of the line if the directive was valid.
2773         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
2774         expanding a traditional macro.
2775         * cpptrad.c (recursive_macro): New.
2776         (read_logical_line_trad): Handle skipping.
2777         (scan_out_logical_line): Continue after a successful directive.
2778         Don't expand macros whilst skipping, or if recursing.
2779         (_cpp_create_trad_definition): scan_out_logical_line now sets
2780         the output current position.
2782 2002-06-12  Eric Christopher  <echristo@redhat.com>
2784         From Chris Demetriou  <cgd@broadcom.com>
2785         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
2786         comment.
2787         (ISA_HAS_MADD_MSUB): Ditto.
2788         (ISA_HAS_NMADD_NMSUB): Ditto.
2790 2002-06-12  Eric Christopher  <echristo@redhat.com>
2792         * config.gcc: Consolidate little endian handling and
2793         little/big endian targets.
2794         * config/mips/elfl.h: Remove file.
2795         * config/mips/elfl64.h: Ditto.
2796         * config/mips/ecoffl.h: Ditto.
2797         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
2799 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
2801         * gengtype.h (xvasprintf): New prototype.
2802         (xasprintf): New prototype.
2803         (struct outf): New.
2804         (get_output_file): Return an outf_p.
2805         (header_file): Is now an outf_p.
2806         (base_files): Now are outf_p.
2807         (oprintf): New.
2808         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
2809         rather than stdio operations.  Use xasprintf in a few places,
2810         when appropriate.
2811         (xvasprintf): New.
2812         (xasprintf): New.
2813         (struct filemap): Delete.
2814         (files): Delete.
2815         (output_files): New.
2816         (oprintf): New.
2817         (create_file): Create an outf_p.  Add parameter to indicate output
2818         file name, change all callers.
2819         (open_base_files): Create gtype-desc.c here.
2820         (get_output_file_with_visibility): Rewrite.
2821         (get_output_file_name): Just look at 'name' field in struct outf.
2822         (close_output_files): Rewrite.
2824 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
2826         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
2827         (MASK_G_FLOAT): Define.
2828         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
2829         (TARGET_SWITCHES): Likewise.
2830         (TARGET_DEFAULT): Likewise.
2832 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
2834         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
2835         * config/mips/mips.c (mips_output_filename): Don't print a
2836         ".file" directive if we are using DWARF-2.
2837         (mips_output_function_prologue): Do not emit source file
2838         name for TARGET_GAS.
2840 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
2842         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
2843         decide whether emit the short opcode.
2844         * i386.h (x86_shift1): Declare.
2845         (TARGET_SHIFT1): New macro.
2846         * i386.c (x86_shift1): New global variable.
2848         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
2849         unconditionally; make loop to rebuild CFG; kill unnecesary
2850         find_basic_block calls; kill compute_bb_for_insn call.
2851         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
2852         * haifa-sched.c (sched_init): Likewise.
2853         * ssa-ccp.c (ssa_const_prop): Likewise.
2854         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2856 2002-06-11  David S. Miller  <davem@redhat.com>
2858         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
2859         active_insn_p.
2861 2002-06-11  Richard Henderson  <rth@redhat.com>
2863         * c-common.c (builtin_define_type_max): New.
2864         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
2865         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
2867         From Joseph S. Myers:
2868         * glimits.h: Rewrite to expect the double underscore definitions
2869         from the compiler.
2871         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
2872         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
2873         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
2874         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
2875         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
2876         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
2877         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
2878         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
2880 2002-06-11  Richard Henderson  <rth@redhat.com>
2882         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
2883         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
2884         (code_for_builtns): Update.
2885         (alpha_init_builtins): Add __builtin_thread_pointer and
2886         __builtin_set_thread_pointer.
2887         (alpha_expand_builtin): Handle void builtins.
2888         * doc/extend.texi (Alpha Built-in Functions): Update.
2890 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
2892         PR target/6997
2893         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
2895 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
2897         * config.gcc: Make the name of the extra-modes file adjustable
2898         by target stanzas.
2899         (s390x, strongarm, xscale stanzas): Use this facility.
2900         * configure.in: Update to match.
2901         * configure: Regenerate.
2903 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
2905         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
2906         max/mins as unsigned GE compares.
2908 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
2910         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
2911         * config/vax/bsd.h: New file.
2912         * config/vax/netbsd.h: Add missing notice.
2913         (CPP_PREDEFINES): Remove.
2914         (TARGET_OS_CPP_BUILTINS): Define.
2915         (CPP_SPEC): Use NETBSD_CPP_SPEC.
2916         * config/vax/openbsd.h: Update copyright years.
2917         (CPP_PREDEFINES): Remove.
2918         (TARGET_OS_CPP_BUILTINS): Define.
2919         * config/vax/ultrix.h: Likewise.
2920         * config/vax/vaxv.h: Likewise.
2921         * config/vax/vms.h: Likewise.
2922         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
2923         (CPP_PREDEFINES, CPP_SPEC): Remove.
2925 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
2927         * i386.md (addqi_1_slp, subqi_1_slp
2928         (andqi_ext0, testqi_ext0): Remove unnecesary check.
2929         (addhi*, addqi*): Simplify "dec" condition.
2930         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
2931         (and, or, xor to QImode splitters): New.
2932         (iorqi_ext*): New.
2933         (xorqi_ext_0): New.
2934         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
2935         (andqi_ext_1_rex64): New.
2936         (ashrqi*_slp): New.
2937         (ashlqi*_slp): New.
2938         (lshlqi*_slp): New.
2939         (rotrqi3*_slp): New.
2940         (rotlqi3*_slp): New.
2942 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
2944         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
2945         softfloat.h.
2946         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
2947         (CPP_ENDIAN_LITTLE_SPEC): Delete.
2948         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
2949         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
2950         __LONG_DOUBLE_128__ setting, _CALL_* setting.
2951         (CPP_DEFAULT_SPEC): Delete.
2952         (CPP_FLOAT_DEFAULT_SPEC): Delete.
2953         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
2954         (CPP_SYSV_DEFAULT_SPEC): Delete.
2955         (CPP_ENDIAN_BIG_SPEC): Delete.
2956         (CPP_ENDIAN_LITTLE_SPEC): Delete.
2957         (CPP_ENDIAN_SPEC): Delete.
2958         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
2959         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
2960         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
2961         cpp_longdouble_default.
2962         * config/rs6000/softfloat.h: Delete.
2963         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
2964         (EXTRA_SPECS): Delete cpp_cpu.
2965         (TARGET_CPU_CPP_BUILTINS): New.
2966         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
2967         prototype.
2968         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
2969         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
2970         (CPP_DEFAULT_SPEC): Delete.
2971         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
2972         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
2973         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
2974         (CPP_DEFAULT_SPEC): Delete.
2975         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2976         (CPLUSPLUS_CPP_SPEC): Likewise.
2977         (CPP_CPU_SPEC): Delete.
2978         (CPP_DEFAULT_SPEC): Delete.
2979         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2980         (CPLUSPLUS_CPP_SPEC): Likewise.
2981         (CPP_CPU_SPEC): Delete.
2982         (CPP_DEFAULT_SPEC): Delete.
2983         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
2984         (CPP_DEFAULT_SPEC): Delete.
2985         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
2986         (CPP_DEFAULT_SPEC): Delete.
2988         * doc/gty.texi: Small updates.
2990 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
2992         * objc/objc-act.c (warn_with_ivar): Adjust calls to
2993         diagnostic_count_error.
2994         (warn_with_method): Likewise.
2996         * diagnostic.h (warnings_are_errors_message): New field of
2997         diagnostic_context.
2998         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
2999         match semantics.
3000         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3001         (diagnostic_count_diagnostic): Make aware of other kinds of
3002         diagnostics.
3003         (diagnostic_initialize): Initialize warnings_are_errors_message field.
3005 2002-06-11  Tom Tromey  <tromey@redhat.com>
3007         For PR java/6520:
3008         * fold-const.c (fold_convert): Don't modify existing tree's type.
3010 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
3012         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3014 2002-06-11  Richard Henderson  <rth@redhat.com>
3016         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3018 2002-06-11  Richard Henderson  <rth@redhat.com>
3020         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3021         DWARF2_UNWIND_INFO is false.
3023 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
3025         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3027         * config/s390/s390.c (emit_prologue): gen_store_multiple
3028         returns an insn now, not a pattern.
3030 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3032         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3033         $(TEXI2DVI) -o.
3035 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
3037         * i386.c (x86_promote_QImode): Set for Athlon
3038         (x86_fast_prefix): New global variable.
3039         (x86_arch_always_fancy_math_387): Fix formating.
3040         * i386.h (x86_fast_prefix): Declare
3041         (TARGET_FAST_PREFIX): define.
3042         * i386.md (and to strict_low_part, HI to SI
3043         promoting splitter): Use new macro.
3045         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3047 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
3049         * Makefile.in (distclean): Delete junk left in testsuite
3050         directory, too.
3052 2002-06-11  Jeffrey Law <law@redhat.com>
3054         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3055         last insn created by the splitter.
3057         * caller-save.c (init_caller_save): Move creation of SAVEINSN
3058         and RESTINSN into into the scope of the sequence.
3060         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3061         RETURN insns.
3063         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3065         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3066         not the pattern.  So extract the pattern from the insn.
3068         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3070 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3072         * config/s390/s390.md (movsi): Only use floating point
3073         register alternatives when operands are already fprs.
3074         (movdi_31, movdi_64): Likewise.
3076 2002-06-11  David S. Miller  <davem@redhat.com>
3078         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3079         Only run RTX equality checks on INSN_P rtl.
3081 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3083         * config/s390/s390.md (reload_base, ltorg): Remove.
3084         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3085         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3086         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3087         s390_asm_output_pool_prologue): Likewise.
3088         * s390.h (s390_pool_start_insn): Likewise.
3090         * s390.c (s390_output_symbolic_const): Remove support for
3091         old-style pool chunks.
3092         (s390_function_epilogue): Likewise.
3093         (s390_output_constant_pool): Likewise.  Also, fix incorrect
3094         alignment for 64-bit literal pools.
3095         (print_operand_address): Remove 'y' and 'Y' format flags.
3096         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3097         old-style pool chunks.
3098         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3099         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3100         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3102         * s390.c (consttable_operand): New function.
3103         * s390-protos.h (consttable_operand): Declare it.
3104         * s390.h (PREDICATE_CODES): Add consttable_operand.
3105         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3106         consttable_sf, consttable_df, pool_start_31, pool_end_31,
3107         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3108         * s390.c (struct constant, struct constant_pool): New data types.
3109         (constant_modes, gen_consttable): New variables.
3110         (s390_start_pool, s390_end_pool, s390_add_pool,
3111         s390_dump_pool, s390_free_pool): New functions.
3112         (s390_chunkify_pool): Completely reimplement literal pool
3113         overflow handling.
3115         * s390.c (s390_pool_overflow): New variable.
3116         * s390.h (s390_pool_overflow): Declare it.
3117         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3118         jumps in literal pool overflow situations.
3120         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3121         (s390_frame_info): Account for possible use of RETURN_REGNUM
3122         by new literal pool overflow code.
3123         (s390_emit_prologue): Likewise.
3125 2002-06-05  David S. Miller  <davem@redhat.com>
3127         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3128         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3129         emit_insns_before_scope, emit_insns_after,
3130         emit_insns_after_scope): Delete declaration.
3131         * ada/misc.c (insert_code_for): Use emit_insn* instead of
3132         emit_insns_foo.
3133         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3134         (alpha_set_memflags): Fix comment.
3135         (set_frame_related_p): Use get_insns instead of gen_sequence.
3136         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3137         emitting no insns.
3138         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3139         gen_sequence.
3140         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3141         * config/fr30/fr30.c (fr30_move_double): Likewise.
3142         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3143         Likewise.
3144         * config/ia64/ia64.c (spill_restore_mem): Likewise.
3145         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3146         no insns.
3147         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3148         instead of gen_sequence.
3149         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3150         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3151         * config/sh/sh.c (sh_need_epilogue): Likewise.
3152         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3153         attributes.
3154         (setjmp pattern and split): Use them to avoid splitter which emits
3155         no RTL.
3156         * genattrtab.c (main): Emit include of function.h
3157         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3158         get_insns instead of gen_sequence.
3159         * config/cris/cris.c (cris_split_movdx): Likewise.
3160         * emit-rtl.c (emit_insns*): Kill.
3161         (try_split): Expect insn list instead of SEQUENCE.
3162         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3163         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3164         Make them abort if a SEQUENCE is given and RTL checking is
3165         enabled.
3166         (emit_*_scope): Don't forget to set scope on final insn.
3167         (gen_sequence): Move from here...
3168         * ssa.c (gen_sequence): To here as private function.
3169         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3170         comments.
3171         (expand_builtin_return, expand_builtin_mathfn): Likewise.
3172         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3173         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3174         (expand_builtin_expect_jump): Use get_insns and fix comments.
3175         * calls.c (try_to_integrate): Use emit_insn_foo.
3176         (expand_call, emit_library_call_value_1): Likewise.
3177         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3178         (emit_move_insn_1): Use get_insns instead of gen_sequence.
3179         (expand_expr): Use emit_insn_foo.
3180         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3181         * except.c (build_post_landing_pads): Likewise.
3182         * flow.c (attempt_auto_inc): Likewise.
3183         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3184         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3185         * function.c (fixup_var_refs_insn): Use get_insns instead of
3186         gen_sequence.
3187         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3188         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3189         (fixup_stack_1, purge_addressof_1, expand_main_function,
3190         get_arg_pointer_save_area): Likewise.
3191         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3192         expand_function_end): Use emit_insn_foo.
3193         (record_insns, keep_stack_depressed): Work with insn list instead
3194         of SEQUENCE, fix comments.
3195         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3196         noce_try_store_flag_constants, noce_try_store_flag_inc,
3197         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3198         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3199         (noce_process_if_block): Use get_insns instead of gen_sequence.
3200         * optabs.c (add_equal_note): Work with insn list, fix comments.
3201         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3202         (expand_unop, expand_complex_abs, expand_unop_insn,
3203         expand_no_conflict_block): Likewise.
3204         (gen_move_insn): Use get_insns instead of gen_sequence.
3205         (gen_cond_trap): Likewise.
3206         * integrate.c (copy_rtx_and_substitute): Likewise.
3207         (emit_initial_value_sets): Use emit_insn_foo.
3208         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3209         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3210         now that RTL generators give insn lists.
3211         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3212         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3213         instead of gen_sequence.
3214         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3215         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3216         instead of gen_sequence.
3217         * loop.c (move_movables, emit_prefetch_instructions,
3218         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3219         Likewise.
3220         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3221         (product_cheap_p): Likewise, and add commentary about RTL wastage
3222         here.
3223         * lcm.c (optimize_mode_switching): Use get_insns instead of
3224         gen_sequence.
3225         * profile.c (gen_edge_profiler): Likewise.
3226         * regmove.c (copy_src_to_dest): Likewise.
3227         * reg-stack.c (compensate_edge): Likewise and fix comment.
3228         * gcse.c (process_insert_insn): Likewise.
3229         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3230         * jump.c (delete_prior_computation): Update comment.
3231         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3232         of gen_sequence, update comments to match.
3233         * recog.c (peephole2_optimize): Work with insn lists instead of
3234         SEQUENCE rtl.
3235         * sched-vis.c (print_pattern): Abort on SEQUENCE.
3236         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3237         Use get_insns instead of gen_sequence.
3238         (copy_loop_body): Likewise and don't emit dummy NOTE.
3239         * genrecog.c: Don't mention SEQUENCE rtl in comments.
3240         * combine.c (try_combine): Expect insn lists from split generator.
3241         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3242         hand.
3244 2002-06-11  Roger Sayle  <roger@eyesopen.com>
3245             Andreas Jaeger <aj@suse.de>
3247         * cfgbuild.c: Update copyright years.
3249 2002-06-11  Andreas Schwab  <schwab@suse.de>
3251         * config/m68k/m68k.h (PREDICATE_CODES): Define.
3253 2002-06-11  Eric Christopher  <echristo@redhat.com>
3255         * doc/tm.texi (Run-time Target): Add comment about flag_iso
3256         and strict ANSI.
3257         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3258         * config/mips/ecoffl.h: Ditto.
3259         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3260         (CPP_PREDEFINES): Ditto.
3261         * config/mips/elfl64.h: Ditto.
3262         * config/mips/elfl.h: Ditto.
3263         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3264         out until irix header consolidation.
3265         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3266         with SUBTARGET_OS_CPP_BUILTINS.
3267         * config/mips/iris6.h: Ditto.
3268         (CPLUSPLUS_CPP_SPEC): Remove.
3269         * config/mips/linux.h: Ditto.
3270         * config/mips/netbsd.h: Ditto.
3271         * config/mips/openbsd.h: Ditto.
3272         * config/mips/rtems.h: Ditto.
3273         * config/mips/rtems64.h: Ditto.
3274         * config/mips/sni-svr4.h: Ditto.
3275         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3276         ISA_MIPS32, ISA_MIPS64): New defines.
3277         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3278         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3279         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3280         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3281         (TARGET_CPU_CPP_BUILTINS): Define.
3282         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3283         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3284         (movdicc): Remove check for ISA_MIPS32.
3285          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3286         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3287         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3288         sunge_sf, sunle_df, sunle_sf): New patterns.
3290 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3292         * Makefile.in: Update cppmain.o.
3293         * cpphash.h (struct cpp_reader): Move some members to a
3294         nested structure.
3295         (trad_line): Rename saved_line.
3296         (_cpp_read_logical_line_trad): Update.
3297         (_cpp_remove_overlay): New.
3298         * cppinit.c (cpp_create_reader): No need to set saved_line.
3299         (cpp_destroy): Update.
3300         (cpp_read_main_file): Only overlay if compiling.
3301         * cpplex.c (continue_after_nul): Return false if in directive.
3302         * cpplib.c (EXPAND): New.
3303         (directive_table, SEEN_EOL): Update.
3304         (end_directive): Remove overlay if traditional; don't skip
3305         line in traditional #define.
3306         (prepare_directive_trad): New.
3307         (_cpp_handle_directive, run_directive): Update for traditional
3308         directives.
3309         (lex_macro_node): Simplify, don't use lex_identifier_trad.
3310         * cpplib.h (struct options): Add preprocess_only.
3311         * cppmain.c: Don't include intl.h.
3312         (cpp_preprocess_file): Set options->preprocess_only.
3313         (scan_translation_unit_trad): Fix, and print line numbers.
3314         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3315         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3316         save_replacement_text, _cpp_create_trad_definition): Update for
3317         variable renaming.
3318         (_cpp_overlay_buffer): Save line number.
3319         (_cpp_remove_overlay): Rename from restore_buff, restore line.
3320         (_cpp_read_logical_line_trad): Don't handle overlays here.
3321         (scan_out_logical_line): Process directives.
3323 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
3325         * gthr-win32.h: Wrap functions in extern "C".
3326         (__gthread_key_t): Typedef as unsigned long,
3327         not win32 DWORD.
3328         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3329         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3330         (__gthr_win32_once, __gthr_win32_key_create,
3331         __gthr_win32_key_delete, __gthr_win32_getspecific,
3332         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3333         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3334         __gthr_win32_mutex_unlock): Declare.
3335         (__gthread_once,__gthread_key_create,
3336         __gthread_key_delete, __gthread_getspecific,
3337         __gthread_setspecific, __gthread_mutex_init_function,
3338         __gthread_mutex_lock,__gthread_mutex_trylock,
3339         __gthread_mutex_unlock): Call corresponding
3340         __gthr_win32_* extern implementations if #defined
3341         __GTHREAD_HIDE_WIN32API.
3342         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3343         $(srcdir)/config/i386/gthr-win32.c
3344         * config/i386/gthr-win32.c: New implementation file.
3345         (__gthr_win32_once, __gthr_win32_key_create,
3346         __gthr_win32_key_delete, __gthr_win32_getspecific,
3347         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3348         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3349         __gthr_win32_mutex_unlock): New functions, based on
3350         static inlines in gthr-win32.h.
3352 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
3354         * config/xtensa/xtensa.c (override_options): Don't warn about
3355         using -fpic or -fPIC when PIC is enabled by default.
3357 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3359         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3361 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3363         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3364         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3365         exists, substitute its pathname as @extra_modes_file@, define
3366         EXTRA_MODES_FILE to be an appropriate string to #include it
3367         with, and define EXTRA_CC_MODES to 1.
3369         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
3370         it's defined.  Get rid of redundancy in calling sequence for
3371         CC; don't use it to define CCmode, to avoid a warning.
3372         * libgcc2.c: Include symcat.h for the sake of machmode.def.
3374         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3375         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3376         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3377         New files.
3378         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3379         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3381         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3382         defining extra CC modes.
3384 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3385             Andreas Jaeger <aj@suse.de>
3387         * cfgrtl.c (create_basic_block_structure):  Remove index argument
3388         and use last_basic_block++ instead.  (create_basic_block): Update.
3389         * cfgbuild.c (find_basic_blocks_1): Likewise.
3391         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3392         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3393         * sched-ebb.c (schedule_ebbs): Likewise.
3394         * sched-rgn.c (schedule_insns): Likewise.
3395         * ssa-ccp.c (ssa_const_prop): Likewise.
3396         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3397         * toplev.c (rest_of_compilation): Likewise.
3398         * config/ia64/ia64.c (ia64_reorg): Likewise.
3400 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3402         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3403         of matching registers.
3405 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3407         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3408         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3410 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
3412         * config/mmix/mmix.h: Improve comments.
3413         (CPP_SPEC, CPP_PREDEFINES): Don't define.
3414         (TARGET_CPU_CPP_BUILTINS): Define.
3415         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3416         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3417         unused predicate.
3418         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3419         compiler warning.
3420         (mmix_constant_address_p): Remove another
3421         redundant test before case.
3422         (mmix_canonicalize_comparison): Remove unused function.
3423         (mmix_print_operand_address): Don't test and adjust for operand in
3424         non-canonical format.
3425         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3426         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3428 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3430         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3431         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3432         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3433         (gen_compare): Use CCmode unconditionally.
3435 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3437         PR optimization/6759
3438         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3439         the REQ_EQUAL note.
3441 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3443         PR c/6660
3444         * c-decl.c (grokfield): Allow user defined types if they declare
3445         structs or unions for unnamed fields.
3447 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3449         PR c/6809
3450         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3452 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3454         PR optimization/6842
3455         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3456         operand subreg cannot be simplified.
3458 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3460         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3461         (compare_constant): Likewise.
3462         (output_addressed_constants): Likewise.
3464 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3466         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3467         merge bb with itself.
3469 2002-06-10  Richard Henderson  <rth@redhat.com>
3471         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3472         (builtin_zapnot): Likewise.
3474         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3475         reservation.
3477 2002-06-10  Eric Christopher  <echristo@redhat.com>
3479         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3480         prototype and function.
3481         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3482         (call_insn_operand): Remove half pic references.
3483         (legitimate_address_p): Ditto.
3484         * config/i386/i386.h: Remove half pic defines.
3486 2002-06-10  Eric Christopher  <echristo@redhat.com>
3488         * doc/extend.texi (Return Address): Add note explaining the side-
3489         effects of inlining on __builtin_return_address.
3491 2002-06-10  Tom Tromey  <tromey@redhat.com>
3493         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3494         (c-common.o): Depend on langhooks.h.
3496 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3498         * cpphash.h (_cpp_read_logical_line_trad,
3499         _cpp_expansions_different_trad): Update prototypes.
3500         * cpplex.c (continue_after_nul): New.
3501         * cppmain.c: Include cpphash.h.
3502         (scan_translation_unit_trad): New.
3503         (cpp_preprocess_file): Call it.
3504         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3505         overlay.
3506         (_cpp_expansions_different_trad): Update prototype.
3508 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3510         Fix cfi generation for SH[1-4]:
3512         * sh.c (frame_insn): New function.
3513         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
3514         (push): Now returns rtx.  Use frame_insn.
3515         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3516         of a DF register.
3517         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3519 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3521         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3522         and gtype-desc.c.
3523         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3524         (distclean): ... not here.  But do delete all testsuite/*.log,
3525         testsuite/*.sum files here.  Delete mkheaders.  Delete
3526         po/*.gmo and the testsuite directory in a split tree build.
3528 2002-06-10  Jeffrey Law  <law@redhat.com>
3530         * alias.c (static_reg_base_value): New to hold RTL for
3531         items allocated once per function for the aliasing code.
3532         (init_alias_once_per_function): Initialize static_reg_base_value.
3533         (init_alias_analysis): Avoid throw-away allocations of RTL by
3534         using pre-computed values in static_reg_base_value.
3535         * function.c (prepare_function_start): Call
3536         init_alias_once_per_function appropriately.
3537         * rtl.h (init_alias_once_per_function): Declare.
3538         * caller-save (init_caller_save): Restructure slightly to
3539         avoid lots of silly RTL generation.
3540         * expr.c (init_expr_once): Likewise.
3541         * reload1.c (reload_cse_regs_1): Allocate throw-away register
3542         RTL object here.  Pass it into children.
3543         (reload_cse_simplify_operands): Use passed-in register RTL
3544         object.
3545         (reload_cse_simplify): Pass through throw-away register
3546         RTL object.
3548 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
3550         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3552 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
3554         * gcc.c (process_command): Avoid assignment to read-only location.
3555         Fix sizeof calculation.
3557 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3559         * cpphash.h (struct cpp_macro): Put comments on their own lines.
3560         (_cpp_expansions_different_trad): New.
3561         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3562         * cpptrad.c (canonicalize_text): New.
3563         (scan_out_logical_line): Handle no arguments correctly.
3564         (save_replacement_text): Commit memory when finished.
3565         (_cpp_expansions_different_trad): New.
3567 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3569         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3570         TREELANG and COBOL.
3571         (lang_names): Add treelang and cobol.
3572         (get_file_basename): Add code to support treelang and cobol as
3573         4th and 5th users of c-common.c.
3575 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
3577         * Makefile.in (install-driver): Install driver as
3578         $(target_alias)-gcc-$(version).
3579         * gcc.c (spec_version): Make const.
3580         (process_command): Handle -V and -b by using exec.
3581         * doc/invoke.texi (Target Options): Restore -V option,
3582         update docs for -b option.
3584 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3586         * configure.in (remaining_languages_check):
3587         Added check that all languages specified were found.
3588         Exit if not found. Previous behaviour was silent failure.
3589         * configure: Regenerated.
3591 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3593          First steps to making treelang documentation compliant, based on
3594          instructions in sourcebuild.texi. Also add to gcc.c list of
3595          default languages.
3597         * doc/contrib.texi: Add self as contributor of treelang.
3599         * doc/frontends.texi: Add mention of treelang.
3601         * doc/invoke.texi (Overall Options): Add mention of treelang.
3603         * doc/standards.texi:  Add mention of treelang.
3605 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
3607         * config/cris/cris.c: Include ggc.h
3609 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3611         * cpphash.h (_cpp_push_text_context): Update.
3612         (_cpp_arguments_ok): New.
3613         * cppmacro.c (_cpp_arguments_ok): New, split out from...
3614         (collect_args): ...here.
3615         (_cpp_push_text_context): Change inputs.
3616         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3617         replace_args_and_push): New.
3618         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3619         Don't use IS macros directly.
3620         (scan_out_logical_line): Handle function-like macro argument
3621         collection.
3622         (push_replacement_text): Update.
3623         (replacement_length): Remove.
3624         (_cpp_create_trad_definition): Don't skip whitespace before
3625         checking for '('.
3627 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3629         * config/avr/avr.c (avr_mcu_types): Update for new devices.
3630         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3631         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3632         * config/avr/avr.md ("type" and "length" attributes): New type
3633         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
3634         output a single "call" or "rcall" insn depending on device size.
3635         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3637 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
3639         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3640         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
3641         assembler option.
3642         (CPP_CPU_SPEC): Add power3 and power4.
3643         (PROCESSOR_DEFAULT): Change to 604e.
3644         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3645         (CPP_CPU_SPEC): Similar additions.
3646         (enum process_type): Add POWER4.
3647         (RTX_COSTS): Add POWER4.
3648         (CPP_CPU_SPEC): Similar additions.
3649         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
3650         (PROCESSOR_DEFAULT64): Define.
3651         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3652         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3653         branch adjustment.
3654         (rs6000_issue_rate): Add Power4.
3655         * config/rs6000/rs6000.md (cpu attr): Add power4.
3656         (iu compare): Remove 604, 604e, 620, 630.
3657         Add basic Power4 scheduling information.
3658         (mfcr/mtcrf): Change type attribute to cr_logical.
3660 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3662         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
3663         ATTRIBUTE_PRINTF_2.
3664         * gengtype-lex.l: Fix format specifier warning.
3666         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
3667         not isspace.
3668         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3669         lieu of isspace/IDchar.
3670         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3671         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
3672         ISSPACE.
3674 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
3676         * Makefile.in (LIBCPP_OBJS): Take out version.o.
3677         * cpphash.h (cpp_reader): Take out print_version member.
3678         * cppinit.c: (cpp_handle_option): Don't do anything with
3679         -version.  Just set help_only for --version, --target-help.
3680         Just set verbose option for -v.
3681         (cpp_post_options): Don't print a version string.
3683 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3685         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3686         (avr_section_type_flags): New, handle .noinit* sections.
3688 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3690         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3691         and include netbsd_entry_point.
3692         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3693         (NETBSD_ENTRY_POINT): Define.
3695 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3697         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3698         if not already defined.
3699         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3701 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3703         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
3704         in a noreturn function.
3705         (avr_output_function_prologue, avr_output_function_epilogue):
3706         Correct function size calculation.  Do not crash on empty function.
3707         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
3709 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3711         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3712         netbsd_link_spec and netbsd_entry_point.
3713         (LINK_SPEC): Use %(netbsd_link_spec).
3714         (NETBSD_ENTRY_POINT): Define.
3716 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3718         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
3719         linker emulation.
3720         (LINK_ARCH64_SPEC): Likewise.
3721         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
3722         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
3724 2002-06-08  Marc Espie  <espie@openbsd.org>
3726         * lists.c (free_list):  Fix typo in comment.
3728 2002-06-08  Andreas Jaeger  <aj@suse.de>
3730         * lcm.c (optimize_mode_switching): Add unused attribute for
3731         variable.
3733         * sched-deps.c (sched_analyze): Remove unused variable.
3735 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
3737         * diagnostic.def: Don't capitalize diagnostict descriptors.
3739 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3741         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
3742         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3743         (NETBSD_ENTRY_POINT): Define.
3745 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3747         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
3748         NETBSD_LINK_SPEC_ELF.
3749         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
3750         (NETBSD_ENTRY_POINT): Define.
3751         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
3752         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
3753         netbsd_entry_point.
3754         (NETBSD_ENTRY_POINT): Define.
3756 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3758         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3759         netbsd_link_spec and netbsd_entry_point.
3760         (LINK_SPEC): Use %(netbsd_link_spec).
3761         (NETBSD_ENTRY_POINT): Define.
3763 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3765         * config/netbsd-elf.h (LINK_SPEC): Rename to...
3766         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
3767         to specify program entry point.
3769 2002-06-07  Jeff Law <law@redhat.com
3771         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
3772         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
3773         than creating a new register.
3774         (distribute_notes): Likewise.
3775         * df.c (df_reg_use_gen): Likewise.
3776         (df_reg_clobber_gen): Likewise.
3777         (df_ref_record): Likewise.
3778         * expr.c (use_regs): Likewise.
3779         * flow.c (propagate_one_insn): Likewise.
3780         (mark_set_1): Likewise.
3781         (mark_used_reg): Likewise.
3782         * reload.c (emit_reload_insns): Likewise.
3784 2002-06-07  Roger Sayle  <roger@eyesopen.com>
3786         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
3787         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
3788         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
3789         comparison code comp can be reversed.
3791 2002-06-07  Roger Sayle  <roger@eyesopen.com>
3793         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
3794         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
3795         equivalent x > -1.0 when -ffast-math.
3797 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
3799         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
3800         * config/mips/t-netbsd: New file.
3802 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
3804         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
3805         options their own entries.
3806         (parse_option): Clarify comment.
3807         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
3808         special case.  Replace if/strcmp chain for -W options with
3809         use of new OPT_* entries for them.
3810         (cpp_handle_options): Update to match.
3811         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
3812         * c-decl.c: Update call to cpp_handle_option.
3814 2002-06-07  Akim Demaille  <akim@epita.fr>
3816         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
3817         Whitespace changes.
3819 2002-06-07  Jeffrey Law  <law@redhat.com>
3821         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
3822         on empty lists.
3824 2002-06-07  H.J. Lu  (hjl@gnu.org)
3826         * configure.in: Add --enable-__cxa_atexit.
3827         * configure: Regenerated.
3828         * config.in: Likewise.
3830         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
3831         not defined.
3833 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
3835         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
3837 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
3839         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
3841 2002-06-07  Jason Merrill  <jason@redhat.com>
3843         * cppexp.c (num_equality_op): Use a temporary variable to work
3844         around gcc 3.0.4 bug.
3846 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
3848         * diagnostic.c (diagnostic_build_prefix): Tidy.
3850 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3852         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
3853         scan_parameters, save_replacement_text, replacement_length): New.
3854         (scan_out_logical_line): Take a macro and save parameters if
3855         non-NULL.
3856         (_cpp_logical_line_trad): Update.
3857         (_cpp_create_trad_definition): Update to handle function-like
3858         macros.
3859         * cpplex.c (new_buff): Update.
3860         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
3861         * cpphash.h: ...here.
3862         (CPP_ALIGN2, _cpp_save_parameter): New.
3863         * cppmacro.c (save_parameter): Rename, export.
3864         (parse_params): Update.
3866 2002-06-07  Andreas Jaeger  <aj@suse.de>
3868         * config/mmix/mmix.c: Remove extra broken prototype for
3869         mmix_init_machine_status.
3871 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
3873         * gengtype.c: Add comments before all the routines.
3875 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
3877         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
3878         from and add t-sh64 to ${tmake_file}.
3879         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
3880         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
3881         * config/sh/t-netbsd-sh5-32: Remove.
3882         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
3883         MULTILIB_ENDIAN.
3884         (MULTILIB_DIRNAMES): Define.
3886 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
3888         * i386.md (and promoting splitters): Disable QI to SImode promoting
3889         when doing so changes immediate to be 32bit.
3891         * rtl.h (emit_*_scope): Declare.
3892         * emit-rtl.c (emit_*_scope): New global functions.
3893         (try_split): Copy scope.
3894         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3895         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3896         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3897         noce_process_if_block, find_cond_trap): Copy scopes.
3898         * recog.c (peephole2_optimize): likewise.
3900 2002-06-06  Jeffrey Law  <law@redhat.com>
3902         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
3904 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3906         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
3908 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3910         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
3911         ($(docdir)/gccinstall.info): New target.
3912         (info): Depend on it.
3913         (gccinstall.dvi): New target.
3914         (dvi): Depend on it.
3915         * doc/.cvsignore: Ignore new info files.
3916         * doc/install.texi (@setfilename): Reflect new info filename.
3918 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
3920         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
3921         on an UNSPEC.
3923 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3925         PR objc/6834
3926         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
3927         c_common_get_alias_set.
3928         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
3930 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3932         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
3933         functions.
3934         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
3935         * avr/avr.c (avr_output_function_epilogue): Use above to determine
3936         function size.
3937         * pa/pa.c (pa_output_function_prologue): Likewise.
3939 2002-06-05  David S. Miller  <davem@redhat.com>
3941         * integrate.c (subst_constants): Handle 'B' RTL format.
3943 2002-06-05  Eric Christopher  <echristo@redhat.com>
3945         * varasm.c (make_decl_rtl): Fix comment for removed
3946         halfpic.c.
3948 2002-06-05  Eric Christopher  <echristo@redhat.com>
3950         * Makefile.in: Remove missed halfpic bits.
3952 2002-06-05  Eric Christopher  <echristo@redhat.com>
3954         * toplev.c: Remove half-pic.
3955         * config/mips/mips.c: Ditto.
3956         * config/mips/mips.h: Ditto. Remove unused defines.
3957         * config/mips/openbsd.h: Update comment to reflect above.
3958         * config/mips/mips.md: Remove half-pic constraints.
3959         * halfpic.h: Delete.
3960         * halfpic.c: Ditto.
3962 2002-06-05  Jeffrey Law  <law@redhat.com>
3964         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
3965         rejects (mem (lo_sum (reg) (unspec))), but will allow
3966         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
3968 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3970         * cpphash.h (_cpp_create_definition): Update prototype.
3971         (_cpp_push_text_context, _cpp_create_trad_definition): New.
3972         ( cpp_lex_identifier_trad): New.
3973         (_cpp_set_trad_context): New.
3974         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
3975         * cpplib.c (SEEN_EOL): Update.
3976         (lex_macro_node): Update for -traditional.
3977         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
3978         * cppmacro.c (_cpp_create_definition): Split into
3979         create_iso_definition() and _cpp_create_trad_definition().
3980         (warn_of_redefinition): Update prototype; handle traditional
3981         macros.
3982         (_cpp_push_text_context): New.
3983         * cpptrad.c (skip_whitespace, push_replacement_text): New.
3984         (lex_identifier): Call ht_lookup with correct start.
3985         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
3986         _cpp_set_trad_context): New.
3987         (scan_out_logical_line): Update to handle changing contexts.
3989 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
3991         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
3992         (shl*-*-elf*): Add.
3993         * config/sh/t-be (MULTILIB_ENDIAN): Set.
3994         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
3995         * t-sh (MULTILIB_ENDIAN): Set.
3996         (MULTILIB_OPTIONS): Use it.
3997         * t-sh64 (MULTILIB_OPTIONS): Likewise.
3998         (MULTILIB_DIRNAMES): Likewise.
4000 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
4002         * toplev.h (report_error_function): Remove.
4004         * diagnostic.h (location_t): New datatype.
4005         (text_info): Likewise.
4006         (diagnostic_info): Likewise.
4007         (output_prefix): New macro.
4008         (diagnostic_last_function_changed): Likewise.
4009         (diagnostic_set_last_function): Likewise.
4010         (diagnostic_last_module_changed): Likewise.
4011         (diagnostic_set_last_module): Likewise.
4012         (report_diagnostic): Now macro.
4013         (diagnostic_set_info): Declare.
4015         * diagnostic.c (report_problematic_module): Rename to
4016         diagnostic_repor_current_module.
4017         (set_diagnostic_context): Remove.
4018         (count_error): Rename to diagnostic_error_count.
4019         (error_function_changed): Remove.
4020         (record_last_error_function): Likewise.
4021         (error_module_changed): Likewise.
4022         (record_last_error_module): Likewise.
4023         (context_as_prefix): Rename to diagnostic_build_prefix.
4024         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4025         (diagnostic_set_info): New function.
4027         * objc/objc-act.c: #include diagnostic.h
4028         (error_with_ivar): Adjust call to count_error.
4029         (warn_with_method): Likewise.
4030         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4032 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
4034         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4035         lang_hooks.types.make_type instead of make_node; set up
4036         __va_list_tag type decl.
4037         (xtensa_builtin_saveregs): Remove broken use of
4038         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4039         for saved registers; add varargs alias set.
4041 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4043 config:
4044         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4045         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4046         CPP_PREDEFINES and part of CPP_SPEC.
4047         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4048         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4050 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
4052         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4054 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
4056         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4058 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
4060         * gengtype-yacc.y: Make sure all rules end with a semicolon.
4062 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
4064         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4065         typo in function prototype and include "ggc.h" header.
4067 2002-06-04  Richard Henderson  <rth@redhat.com>
4069         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4070         (print_operand) ['U']: Likewise.
4071         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4072         (alpha_expand_unaligned_store_words): Likewise.
4073         (alpha_expand_builtin_vector_binop): Fix typo.
4074         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4075         umulh, and cix insns.
4076         (one_arg_builtins): Add cix builtins.
4077         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4078         (alpha_expand_builtin): Fix typo in arity.
4079         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4080         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4081         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4082         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4083         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4084         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4085         builtin_ctlz, builtin_ctpop): New.
4086         * doc/extend.texi (Alpha Built-in Functions): Update.
4088 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
4090         * gengtype.c (write_gc_root): Don't unnecessarily prevent
4091         global variable-length arrays being roots.
4093         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4094         * configure.in (config_gtfiles): New variable.
4095         (all_gtfiles): Initialise from config_gtfiles.
4096         * configure: Regenerate.
4098 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4100 config/i386:
4101         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4102         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4103         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4104         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4105         win32.h (CPP_SPEC): Remove cpp_cpu.
4106         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4107         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4109 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
4111         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4113 2002-06-04  Jeff Law <law@redhat.com.
4114             David Edelsohn <edelsohn@gnu.org>
4115             Michael Matz <matz@kde.org>
4117         * sched-int.h (struct deps): New field libcall_block_tail_insn.
4118         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4119         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4120         is set, then mark the current insn as being part of a libcall
4121         scheduling group.
4122         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4124         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4125         insns against the issue rate.
4127 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
4129         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4130         * final.c (final_scan_insn): Likewise.
4131         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4132         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4133         * haifa-sched.c (unlink_other_notes): Likeewise.
4134         (reemit_notes): Likewise.
4135         * print-rtl.c (print_rtx): Likewise.
4136         * sched-deps (sched-analyze): Likewise.
4137         * rtl.c (note_insn_name): Likewise.
4138         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4139         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4140         (RANGE_*): Kill.
4142 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
4144         * varasm.c (mark_constants): Handle RTX format 'B'.
4146 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4148         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4149         (struct cpp_context): Add traditional fields.
4150         * cppmacro.c (paste_all_tokens, push_ptoken_context,
4151         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4152         * cpptrad.c (skip_comment, lex_identifier,
4153         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4155 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
4157         * gbl-ctors.h: Fix formatting.
4158         * gcc.c: Likewise.
4159         * gccspec.c: Likewise.
4160         * gcov.c: Likewise.
4161         * gcov-io.h: Likewise.
4162         * gcse.c: Likewise.
4163         * ggc-common.c: Likewise.
4164         * ggc.h: Likewise.
4165         * ggc-page.c: Likewise.
4166         * ggc-simple.c: Likewise.
4167         * global.c: Likewise.
4168         * graph.h: Likewise.
4169         * gthr-dce.h: Likewise.
4170         * gthr.h: Likewise.
4171         * gthr-posix.h: Likewise.
4172         * gthr-rtems.h: Likewise.
4173         * gthr-solaris.h: Likewise.
4174         * gthr-win32.h: Likewise.
4176 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
4178         Merge from pch-branch:
4180         * gengtype.h (UNION_OR_STRUCT_P): New macro.
4181         * gengtype.c (write_gc_structure_fields): Use it.
4182         (write_gc_root): Use it here too.
4184         * gengtype.c (write_gc_structure_fields): Assume that lengths
4185         of typenames fit into an 'int'; don't pass a size_t to "%d" in
4186         printf.
4187         (write_gc_marker_routine_for_structure): Likewise.
4188         (write_gc_types): Likewise.
4189         (write_gc_root): Likewise.
4191         * varray.h (VARRAY_CLEAR): New.
4192         (varray_clear): Prototype.
4193         * varray.c (varray_clear): New.
4194         * cselib.c (reg_values_old): New.
4195         (used_regs_old): New.
4196         (cselib_init): Use cached varrays if available to avoid
4197         generating large amounts of garbage.
4198         (cselib_finish): Don't throw away old varrays.
4200         * final.c (insn_addresses_): Move out of ifdef.
4202         * varray.c (uses_ggc): Make more varray kinds GCable.
4203         * varray.h (union varray_data_tag): Let gengtype see
4204         fields 'generic' and 'te'.
4205         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4206         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4207         (reg_to_stack): Don't call VARRAY_FREE.
4208         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4209         (insn_addresses_): Use gengtype to mark.
4210         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4211         pointers; handle generic pointers in unused union fields.
4212         (get_output_file_with_visibility): Include cselib.h,
4213         insn-addr.h in gtype-desc.c.
4214         * function.c (prologue): Use gengtype to mark.
4215         (epilogue): Likewise.
4216         (sibcall_epilogue): Likewise.
4217         * dependence.c: Include gt-dependence.h, ggc.h.
4218         (struct def_use): Use gengtype to mark.
4219         (struct loop): Likewise.
4220         (struct induction): Likewise.
4221         (struct dependence): Likewise.
4222         (def_use_chain): Likewise.
4223         (dep_chain): Likewise.
4224         (loop_chain): Likewise.
4225         (induction_chain): Likewise.
4226         (init_dependence_analysis): Don't free anything, just clear pointers.
4227         (build_def_use): Use GGC to allocate def_use.
4228         (add_loop): Use GGC to allocate loop.
4229         (find_induction_variable): Use GGC to allocate induction.
4230         (check_node_dependence): Use GGC to allocate induction, dependence.
4231         (dump_node_dependence): Don't free varrays.
4232         (end_dependence_analysis): Likewise.
4233         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4234         (struct elt_loc_list): Likewise.
4235         (struct elt_list): Likewise.
4236         * cselib.c: Don't include obstack.h.
4237         (hash_table): Use gengtype to mark.
4238         (reg_values): Use gengtype to mark.
4239         (used_regs): Use gengtype to mark.
4240         (cselib_obstack): Delete.
4241         (cselib_startobj): Delete.
4242         (empty_vals): Mark as deletable.
4243         (empty_elt_lists): Mark as deletable.
4244         (empty_elt_loc_lists): Mark as deletable.
4245         (new_elt_list): Use GGC to allocate struct elt_list.
4246         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4247         (clear_table): Don't delete obstack; don't unnecessarily clear
4248         deletable variables.
4249         (new_cselib_val): Use GGC to allocate struct cselib_val.
4250         (cselib_init): Don't set up obstacks.  Use GGC to allocate
4251         hash table.
4252         (cselib_finish): Just clear variables, don't free anything.
4253         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4254         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4255         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4256         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4257         (gt-reg-stack.h): New rule.
4258         (gt-dependence.h): New rule.
4259         (gtype-desc.o): Add cselib.h, insn-addr.h.
4261         * varray.c: Use only necessary headers.
4262         (element_size): New.
4263         (uses_ggc): New.
4264         (varray_init): Take type, not size.  Use GGC if appropriate.
4265         (varray_grow): Update for change to struct varray_head_tag.
4266         Use GGC if appropriate.
4267         * varray.h (struct const_equiv_data): Use gengtype.
4268         (enum varray_data_enum): New.
4269         (union varray_data_tag): Use gengtype.
4270         (struct varray_head_tag): Use gengtype.  Replace size field with
4271         enum varray_data_enum.
4272         (varray_init): Update prototype.
4273         (VARRAY_SCHED_INIT): Delete.
4274         (VARRAY_*_INIT): Update for change to varray_init.
4275         (VARRAY_SCHED): Delete.
4276         (VARRAY_PUSH_SCHED): Delete.
4277         (VARRAY_TOP_SCHED): Delete.
4278         * tree.h: Update for change to length specifier.
4279         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4280         (clone_body): Likewise.
4281         * ssa.h (ssa_definition): Use gengtype to mark.
4282         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4283         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4284         * rtl.h (struct rtvec_def): Update for change to length specifier.
4285         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4286         (struct initial_value_struct): Update for change to length specifier.
4287         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4288         (ggc_add_tree_varray_root): Delete prototype.
4289         (ggc_mark_rtx_varray): Delete prototype.
4290         (ggc_mark_tree_varray): Delete prototype.
4291         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4292         (ggc_add_tree_varray_root): Delete.
4293         (ggc_mark_rtx_varray): Delete.
4294         (ggc_mark_tree_varray): Delete.
4295         (ggc_mark_rtx_varray_ptr): Delete.
4296         (ggc_mark_tree_varray_ptr): Delete.
4297         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4298         (create_varray): Delete prototype.
4299         * gengtype.c (varrays): Delete.
4300         (create_varray): Delete.
4301         (adjust_field_type): Detect array of string pointers.
4302         (process_gc_options): Remove code to handle varray_type option.
4303         (set_gc_used_type): Remove TYPE_VARRAY case.
4304         (output_escaped_param): New.
4305         (write_gc_structure_fields): Use output_escaped_param on all
4306         parameters.  Handle 'skip' with 'use_param' option.  Handle
4307         arrays of strings.  Remove TYPE_VARRAY handling.
4308         (write_gc_roots): Use boolean to detect 'length' option.
4309         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4310         (struct_fields): Call adjust_field_type on array fields.
4311         (type): Remove VARRAY_TYPE case.
4312         (type_option): Likewise.
4313         * gengtype-lex.l: Don't consider varray_type a keyword.
4314         * function.h: Update for change to length specifier.
4315         (free_eh_status): Delete prototype.
4316         * function.c (free_after_compilation): Don't call free_eh_status.
4317         (reorder_blocks): Don't use VARRAY_FREE.
4318         * except.c (struct eh_status): Update for change to length specifier.
4319         remove varray_type specifier.
4320         (free_eh_status): Delete.
4321         * dwarf2out.c: Include gt-dwarf2out.h.
4322         (used_rtx_varray): Use gengtype to mark, move
4323         outside ifdefs.
4324         (incomplete_types): Likewise.
4325         (decl_scope_table): Likewise.
4326         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4327         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4328         * c-tree.h (struct lang_type): Update for change to length specifier.
4329         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4330         * c-objc-common.c: Include gt-c-objc-common.h.
4331         (deferred_fns): Mark for gengtype.
4332         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4333         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4334         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4335         (gtype-desc.o): Update dependencies.
4336         (dwarf2out.o): Add gt-dwarf2out.h.
4337         (varray.o): Update dependencies.
4338         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4339         (gt-c-objc-common.h): New rule.
4340         (gt-dwarf2out.h): New rule.
4341         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4343         * doc/gty.texi (GTY Options): Correct spelling.
4344         (GGC Roots): Likewise.
4345         * Makefile.in (TEXI_CPP_FILES): New.
4346         (TEXI_GCC_FILES): New.
4347         (TEXI_GCCINT_FILES): New.
4348         (TEXI_CPPINT_FILES): New.
4349         ($(docdir)/cpp.info): Use new macros.
4350         ($(docdir)/gcc.info): Likewise.
4351         ($(docdir)/gccint.info): Likewise.
4352         ($(docdir)/cppinternals.info): Likewise.
4353         (cpp.dvi): Likewise.
4354         (gcc.dvi): Likewise.
4355         (gccint.dvi): Likewise.
4356         (cppinternals.dvi): Likewise.
4358         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4359         * doc/gccint.texi (Top): Include gty.texi.
4360         * doc/gty.texi: New file.
4362         * bitmap.c: Include ggc.h, gt-bitmap.h.
4363         (bitmap_ggc_free): New.
4364         (bitmap_elem_to_freelist): New.
4365         (bitmap_element_free): Use bitmap_elem_to_freelist.
4366         (bitmap_element_allocate): Allow use of GGC.
4367         (bitmap_clear): Use bitmap_elem_to_freelist.
4368         (bitmap_copy): Update for change to bitmap_element_allocate.
4369         (bitmap_set_bit): Likewise.
4370         (bitmap_operation): Update for changes elsewhere.
4371         (bitmap_initialize): Allow to create bitmaps that will use GGC.
4372         * bitmap.h (struct bitmap_element_def): Use gengtype.
4373         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
4374         (bitmap_initialize): Add extra parameter.
4375         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4376         (BITMAP_ALLOCA): Delete.
4377         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4378         (BITMAP_GGC_ALLOC): New.
4379         * Makefile.in (gtype-desc.o): Add bitmap.h.
4380         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4381         (GTFILES): Add bitmap.c.
4382         (gt-bitmap.h): New rule.
4383         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4384         * basic-block.h: Update for changes to bitmap_initialize.
4385         * except.c (exception_handler_label_map): Move into...
4386         (struct eh_status): Here.
4387         (struct eh_region): Make 'aka' GCable.
4388         (free_eh_status): Don't need to specially handle
4389         exception_handler_label_map.
4390         (add_ehl_entry): Update for changes to exception_handler_label_map.
4391         (find_exception_handler_labels): Likewise.
4392         (remove_exception_handler_label): Likewise.
4393         (maybe_remove_eh_handler): Likewise.
4394         (for_each_eh_label): Likewise.
4395         (remove_eh_handler): Allocate 'aka' using GGC.
4396         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4397         to list of includes.
4399         * gengtype.c (write_gc_marker_routine_for_structure): Name
4400         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4401         (write_gc_types): Arrange for the tests with NULL to be inlined.
4402         (write_gc_roots): Update uses of procedure pointers.
4403         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4405         * Makefile.in (explow.o): Add dependency on gt-explow.h.
4406         (sdbout.o): Add dependency on gt-sdbout.h.
4408         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4409         (mem_attrs_htab): Likewise.
4410         (init_emit_once): Don't call ggc_add_deletable_htab.
4411         * fold-const.c (size_htab): Use gengtype to clear unused entries.
4412         (size_int_type_wide): Don't call ggc_add_deletable_htab.
4413         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4414         parameters, use them, change callers.
4415         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4416         (write_gc_roots): Handle 'if_marked' option.
4417         (main): Don't need to call set_gc_used_type any more.
4418         * ggc.h (ggc_htab_marked_p): Delete.
4419         (ggc_htab_mark): Delete.
4420         (struct ggc_cache_tab): New.
4421         (gt_ggc_cache_rtab): New declaration.
4422         * ggc-common.c (struct d_htab_root): Delete.
4423         (d_htab_roots): Delete.
4424         (ggc_add_deletable_htab): Delete.
4425         (ggc_htab_delete): Handle new htab-deleting mechanism.
4426         (ggc_mark_roots): Use new htab-deleting mechanism.
4427         * tree.c (type_hash_table): Use gengtype to clear unused entries.
4428         Make static.
4429         (init_obstacks): Don't call ggc_add_deletable_htab.
4431         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4432         (struct hashed_entry): Likewise.
4433         (nst_method_hash_list): Likewise.
4434         (cls_method_hash_list): Likewise.
4435         (HASH_ALLOC_LIST_SIZE): Delete.
4436         (ATTR_ALLOC_LIST_SIZE): Delete.
4437         * objc/objc-act.c (hash_init): Use ggc to allocate
4438         nst_method_hash_list, cls_method_hash_list.
4439         (hash_enter): Use ggc to allocate; allocate one entry at a time.
4440         (hash_add_attr): Likewise.
4441         (ggc_mark_hash_table): Delete.
4442         (objc_act_parse_init): Delete.
4443         (objc_init): Delete reference to objc_act_parse_init.
4444         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
4445         obstack.h.  Replace references to 'struct hash_table' with htab_t.
4446         (struct symbol_hash_entry): Replace hash header with key field.
4447         (struct file_hash_entry): Replace hash header with key field.
4448         (struct demangled_hash_entry): Replace hash header with key field.
4449         (hash_string_eq): New.
4450         (hash_string_hash): New.
4451         (symbol_hash_newfunc): Delete.
4452         (symbol_hash_lookup): Modify to use htab_t.
4453         (file_hash_newfunc): Delete.
4454         (file_hash_lookup): Modify to use htab_t.
4455         (demangled_hash_newfunc): Delete.
4456         (demangled_hash_lookup): Modify to use htab_t.
4457         (tlink_init): Modify to use htab_t.
4458         * hash.h: Delete.
4459         * hash.c: Delete.
4460         * ggc.h: Delete forward structure declarations.
4461         Delete prototypes for deleted functions.
4462         * ggc-common.c: Don't include hash.h.
4463         (ggc_add_tree_hash_table_root): Delete.
4464         (ggc_mark_tree_hash_table_entry): Delete.
4465         (ggc_mark_tree_hash_table): Delete.
4466         (ggc_mark_tree_hash_table_ptr): Delete.
4467         * gengtype.c (write_gc_structure_fields): Allow param_is option.
4468         (write_gc_marker_routine_for_structure): Use visibility of
4469         the parameter if there is one.
4470         * function.c: Replace hash.h with hashtab.h.  Replace references
4471         to 'struct hash_table *' with htab_t.
4472         (struct insns_for_mem_entry): Include a plain key.
4473         (fixup_var_refs_insns_with_hash): Update to use htab_t.
4474         (insns_for_mem_newfunc): Delete.
4475         (insns_for_mem_hash): Update to use htab_t.
4476         (insns_for_mem_comp): Likewise.
4477         (insns_for_mem_walk): Likewise.
4478         * c-lang.c: Include ggc.h.
4479         * Makefile.in (OBJS): Remove hash.o.
4480         (c-lang.o): Add GGC_H.
4481         (COLLECT2_OBJS): Remove hash.o.
4482         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4483         (ggc-common.o): Remove hash.h.
4484         (function.o): Remove hash.h, add HASHTAB_H.
4485         (genautomata.o): Remove hash.h, add HASHTAB_H.
4487         * varasm.c (mark_const_str_htab_1): Delete.
4488         (mark_const_str_htab): Delete.
4489         (const_str_htab_del): Delete.
4490         (const_str_htab): Use gengtype to mark.
4491         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
4492         allocate them.
4493         * tree.c (mark_tree_hashtable_entry): Delete.
4494         (mark_tree_hashtable): Delete.
4495         * tree.h (mark_tree_hashtable): Delete prototype.
4496         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4497         (ggc_mark): Likewise.
4498         (ggc_calloc): New.
4499         (htab_create_ggc): New.
4500         * ggc-common.c (ggc_calloc): New.
4501         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4502         (struct type): Add param_struct structure.
4503         * gengtype.c (param_structs): New.
4504         (adjust_field_type): Handle param_is option.
4505         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4506         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4507         (write_gc_structure_fields): Add new PARAM parameter.  Update
4508         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
4509         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4510         Use it to generate function name.  Update callers.
4511         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
4512         Process them.
4513         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
4514         option.
4515         (main): Define PTR as pointer-to-scalar.  Don't specially
4516         mark deferred_string or ehl_map_entry.
4517         * gengtype-yacc.y (PARAM_IS): Add new token.
4518         (externstatic): Use adjust_field_type.
4519         (type_option): Add PARAM_IS.
4520         * gengtype-lex.l: Add rule for typedef of function pointers.
4521         Add rule for PARAM_IS.
4522         (IWORD): Add size_t.
4523         * except.c (exception_handler_label_map): Use gengtype to mark.
4524         (type_to_runtime_map): Likewise.
4525         (mark_ehl_map_entry): Delete.
4526         (mark_ehl_map): Delete.
4527         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4528         (t2r_mark_1): Delete.
4529         (t2r_mark): Delete.
4530         * Makefile.in (gtype-desc.o): Correct dependencies.
4531         (GTFILES): Add hashtab.h.
4532         (genautomata.o): Actually uses hashtab.h.
4534         * Makefile.in (stringpool.o): Add $(GGC_H).
4535         (dwarf2asm.o): Likewise.
4536         (GTFILES): Add hashtable.h.
4537         * c-common.h (struct c_common_identifier): Use gengtype.
4538         * c-decl.h (c_mark_tree): Delete.
4539         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4540         * c-tree.h (struct lang_identifier): Use gengtype.
4541         (union lang_tree_node): New.
4542         (c_mark_tree): Delete prototype.
4543         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4544         dwarf2_debug_hooks.
4545         * gengtype-lex.l (IWORD): Allow 'bool'.
4546         (ptr_alias): Match.
4547         * gengtype-yacc.y (ALIAS): New token.
4548         (type_option): New rule.
4549         (option): Use type_option.
4550         * gengtype.c (process_gc_options): New.
4551         (set_gc_used_type): Use it.
4552         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4553         Add new variable 't' to hold the type of the field being processed.
4554         Add more error checking.  Use UNION_P when looking at 'desc' option.
4555         Handle language-specific structures containing other
4556         language-specific structures.
4557         (write_gc_types): Handle 'ptr_alias' option.
4558         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4559         * ggc-common.c (ggc_pending_trees): Delete.
4560         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4561         (ggc_mark_trees): Delete.
4562         (gt_ggc_m_tree_node): Delete.
4563         * ggc.h (ggc_pending_trees): Delete.
4564         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4565         * hashtable.h (ht_identifier): Use gengtype.
4566         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4567         * langhooks.h (struct lang_hooks): Delete mark_tree.
4568         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4569         anyway.
4570         * system.h: Poison LANG_HOOKS_MARK_TREE.
4571         * tree.c (tree_node_structure): New.
4572         * tree.h (struct tree_common): Use gengtype.
4573         (struct tree_int_cst): Likewise.
4574         (struct tree_real_cst): Likewise.
4575         (struct tree_string): Likewise.
4576         (struct tree_complex): Likewise.
4577         (struct tree_vector): Likewise.
4578         (struct tree_identifier): Likewise.
4579         (struct tree_list): Likewise.
4580         (struct tree_vec): Likewise.
4581         (struct tree_exp): Likewise.
4582         (struct tree_block): Likewise.
4583         (struct tree_type): Likewise.
4584         (struct tree_decl): Likewise.
4585         (enum tree_structure_enum): New.
4586         (union tree_node): Use gengtype, with an alias.
4587         (tree_node_structure): Prototype.
4588         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4590         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
4591         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
4592         to LANG_HOOKS_FUNCTION_FINAL.
4593         * Makefile.in (GTFILES): Add bitmap.h.
4594         * except.c (struct eh_region): Mark field 'aka' to be skipped.
4596         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4597         (alpha_init_machine_status): Give proper type.
4598         * Makefile.in (c-lang.o): Depend on gtype-c.h.
4599         (optabs.o): Depend on gt-optabs.h.
4600         (GTFILES): Add optabs.o.
4601         (gt-optabs.h): Add rule.
4602         * optabs.c: Include gt-optabs.h.
4604         * gengtype.c (set_gc_used_type): Correct some errors in last change.
4605         (write_gc_structure_fields): If a field which should be NULL is
4606         not, abort.
4607         * c-pragma.c: Move struct align_stack and variable alignment_stack
4608         out from the ifdef.
4610         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4611         * config/xtensa/xtensa.c: Include gt-cris.h.
4612         (struct machine_function): Use gengtype to mark.
4613         * config/mmix/mmix.h (struct machine_function): Use gengtype
4614         to mark.
4615         * config/cris/t-cris: Add dependencies for gt-cris.h.
4616         * config/cris/cris.c: Include gt-cris.h.
4617         (struct machine_function): Use gengtype to mark.
4618         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4619         to mark.
4620         * doc/tm.texi (Per-Function Data): Delete references to
4621         mark_machine_status.
4622         * config/ia64/ia64.c (ia64_override_options): Don't set
4623         mark_machine_status.
4624         * config/i386/i386.c (override_options): Likewise.
4625         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4626         * config/arm/arm.c (arm_init_expanders): Likewise.
4627         * config/alpha/alpha.c (override_options): Likewise.
4628         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
4629         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4630         (write_gc_structure_fields): Don't handle 'really' option.
4631         Handle 'maybe_null' option.
4632         (write_gc_types): Handle 'maybe_null' option.
4633         * function.h (struct function): Don't use "really".
4634         (mark_machine_status): Delete declaration.
4635         (mark_lang_status): Delete declaration.
4636         (gt_ggc_mr_machine_function): Delete prototype.
4637         (gt_ggc_mr_language_function): Delete prototype.
4638         * function.c (mark_machine_status): Delete.
4639         (mark_lang_status): Delete.
4640         (gt_ggc_mr_machine_function): Delete.
4641         (gt_ggc_mr_language_function): Delete.
4642         * c-tree.h (mark_c_function_context): Delete prototype.
4643         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4644         * c-decl.c (struct language_function): Rename from struct
4645         c_language_function.  Update uses.  Use gengtype to mark.
4646         (mark_c_function_context): Delete.
4647         * c-common.h (struct c_language_function): Rename from struct
4648         language_function.
4649         (mark_stmt_tree): Delete prototype.
4650         (c_mark_lang_decl): Delete prototype.
4651         (mark_c_language_function): Delete prototype.
4652         * c-common.c (mark_stmt_tree): Delete.
4653         (c_mark_lang_decl): Delete.
4654         (mark_c_language_function): Delete.
4656         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4657         (lang_bitmap): New typedef.  Use where appropriate.
4658         (struct type): Add gc_used field, lang_struct field.
4659         (UNION_P): New macro.
4660         (new_structure): New prototype.
4661         (find_structure): Remove 'pos' parameter.  Change all callers.
4662         * gengtype-lex.l: Update for changes to find_structure.
4663         * gengtype-yacc.y (typedef_struct): Use new_structure.
4664         (yacc_ids): Suppress warning.
4665         (type): Use new_structure.
4666         * gengtype.c (string_type): Update for changes to struct type.
4667         (find_structure): Just find a structure, don't worry about
4668         creating one.
4669         (new_structure): New.
4670         (note_yacc_type): Use new_structure.
4671         (set_gc_used_type): New.
4672         (set_gc_used): New.
4673         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4674         (write_gc_types): Handle TYPE_LANG_STRUCT.
4675         (write_gc_marker_routine_for_structure): New.
4676         (main): Call set_gc_used.  Add some calls to set_gc_used_type
4677         for places where GCC doesn't use gengtype properly yet.
4678         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4679         (gt_ggc_m_tree_node): Likewise.
4681         * varasm.c (copy_constant): Call expand_constant if we hit
4682         something we can't recognise.
4684         * ggc-common.c (ggc_mark_rtvec_children): Delete.
4685         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4686         (lang_mark_false_label_stack): Delete.
4687         * rtl.h (struct rtvec_def): Use gengtype to mark.
4688         * ggc.h (ggc_mark_rtvec): Delete.
4689         (gt_ggc_m_rtvec_def): Delete.
4690         (ggc_mark_nonnull_tree): Delete.
4691         (ggc_mark_rtvec_children): Delete prototype.
4692         (lang_mark_false_label_stack): Delete declaration.
4694         * gengtype.h (note_yacc_type): Add prototype.
4695         * gengtype.c (note_yacc_type): New function.
4696         * gengtype-lex.l: Add lexer support for yacc files.
4697         * gengtype-yacc.y (start): Extract union from yacc files.
4698         (yacc_union): New rule.
4699         (yacc_typematch): New rule.
4700         (yacc_ids): New rule.
4701         (enum_items): Tweak for efficiency.
4702         (optionseq): Likewise.
4704         * c-common.h (struct language_function): Use gengtype.
4705         (struct c_lang_decl): Likewise.
4706         * c-tree.h (struct lang_decl): Likewise.
4707         (struct lang_type): Likewise.
4708         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
4709         tree language substructures.
4711         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
4712         ggc_mark_tree.
4713         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
4715         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
4717         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
4718         mark. Remove 'data.block.cleanup_ptr' field.
4719         (struct stmt_status): Use usual technique to mark struct nesting.
4720         (gt_ggc_mr_nesting_cond): Delete.
4721         (gt_ggc_mr_nesting_loop): Delete.
4722         (gt_ggc_mr_nesting_block): Delete.
4723         (gt_ggc_mr_nesting_case_stmt): Delete.
4724         (expand_start_cond): Set discriminator.
4725         (expand_start_loop): Likewise.
4726         (expand_start_null_loop): Likewise.
4727         (expand_start_bindings_and_block): Set discriminator.  Don't set
4728         deleted fields.
4729         (expand_decl_cleanup): Replace 'cleanup_ptr' with
4730         &thisblock->data.block.cleanups.
4731         (expand_start_case): Set discriminator.
4732         (expand_start_case_dummy): Set discriminator.
4734         * ggc-callbacks.c: Remove.
4736         * gengtype.h (struct type): Add 'u.s.bitmap' field.
4737         (find_structure): Add 'pos' parameter.
4738         * gengtype-lex.l: Update callers to find_structure.
4739         * gengtype-yacc.y: Likewise.
4740         * gengtype.c (find_structure): Allow for structures to be defined
4741         in multiple language backends.
4742         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
4743         (counter): Rename to gc_counter.
4744         (write_gc_structure_fields): Fail when writing out fields for
4745         an incomplete structure.  Ignore arrays of scalars.  Handle
4746         'tree_vec' special.
4747         (write_gc_types): Reset counter for each procedure written.
4749         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
4750         (free_case_nodes): Delete.
4751         (expand_end_case_type): Delete call to free_case_nodes.
4753         * Makefile.in (cselib.o): Include gt-<filename>.h.
4754         (gcse.o): Likewise.
4755         (profile.o): Likewise.
4756         (alias.o): Likewise.
4757         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
4758         alphabetize backend files.
4759         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
4760         * alias.c: Use gengtype for roots.
4761         * c-common.h (struct stmt_tree_s): Use gengtype.
4762         * c-decl.c: Use gengtype for roots.
4763         * cselib.c: Use gengtype for roots.
4764         * expr.c: Use gengtype for roots.
4765         * fold-const.c: Use gengtype for roots.
4766         * gcse.c: Use gengtype for roots.
4767         * gengtype-lex.l: Handle typedefs of function types.
4768         Allow for empty array bounds.
4769         Allow processing to stop on initialisers.
4770         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
4771         (semiequal): New rule.
4772         * gengtype.c (create_file): Tidy output files.
4773         (get_output_file_with_visibility): Fix paren warning.  Fix bug
4774         involving multiple input files mapping to one output file.
4775         (write_gc_structure_fields): Skip arrays of scalars.
4776         (write_gc_types): Tidy output files.
4777         (write_gc_root): New function.
4778         (write_gc_roots): Fix bugs, add support for roots that are
4779         structures.
4780         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
4781         (ggc_mark_tree_ptr): Delete.
4782         (ggc_add_rtx_root): Delete.
4783         (ggc_add_tree_root): Delete.
4784         (ggc_del_root): Delete.
4785         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
4786         allocate struct initial_value_struct.
4787         * profile.c: Use gengtype for roots.
4788         * sdbout.c: Use gengtype for roots.
4789         * varasm.c (mark_weak_decls): Delete unused prototype.
4790         (mark_const_hash_entry): Delete unused function.
4791         * config/darwin-protos.h: Use gengtype for roots.
4792         (machopic_add_gc_roots): Delete.
4793         * config/arm/arm.c: Use gengtype for roots.
4794         * config/arm/arm.h: Use gengtype for roots.
4795         * config/c4x/c4x-protos.h: Use gengtype for roots.
4796         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
4797         * config/d30v/d30v-protos.h: Use gengtype for roots.
4798         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
4799         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
4800         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
4801         * config/ia64/ia64-protos.h: Use gengtype for roots.
4802         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
4803         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
4804         * config/m68hc11/m68hc11.c (z_reg): Make global.
4805         (z_reg_qi): Make global.
4806         (m68hc11_add_gc_roots): Delete.
4807         * config/mcore/mcore-protos.h: Use gengtype for roots.
4808         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
4809         * config/mips/mips.c (mips_add_gc_roots): Delete.
4810         * config/mips/mips.h: Use gengtype for roots.
4811         * config/mmix/mmix.c (override_options): Use gengtype for roots.
4812         * config/mmix/mmix.h: Use gengtype for roots.
4813         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
4814         * config/mn10200/mn10200.h: Use gengtype for roots.
4815         * config/pa/pa.c: Use gengtype for roots, marking.
4816         (struct deferred_plabel): Use GGC, gengtype.
4817         (pa_add_gc_roots): Delete.
4818         (mark_deferred_plabels): Delete.
4819         * config/pj/pj-protos.h: Use gengtype for roots.
4820         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
4821         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
4822         machopic_add_gc_roots.
4823         * config/rs6000/rs6000.h: Use gengtype for roots.
4824         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
4825         (gt-darwin.h): Add rule.
4826         * config/sh/sh.c: Use gengtype for roots.
4827         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
4828         (gt-sh.h): Add rule.
4829         * config/sparc/sparc.c: Use gengtype for roots.
4830         (sparc_add_gc_roots): Delete.
4831         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
4832         (mark_ultrasparc_pipeline_state): Delete.
4833         * config/sparc/sparc.h: Use gengtype for roots.
4835         * Makefile.in (c-parse.o): Update dependencies.
4836         (c-common.o): Likewise.
4837         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
4838         Add dependencies for the files they generate.
4839         * c-common.c: Replace ggc_add_* uses with GTY annotations.
4840         * c-common.h: Likewise.
4841         * c-decl.c: Likewise.
4842         (gt_ggc_mp_binding_level): Delete.
4843         * c-lang.c: Include gtype-c.h.
4844         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
4845         gt-c-parse.h.
4846         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
4847         (gt_ggc_mp_align_stack): Delete.
4848         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
4849         * function.c: Replace ggc_add_* uses with GTY annotations.
4850         (gt_ggc_mp_function): Delete.
4851         * function.h: Replace ggc_add_* uses with GTY annotations.
4852         * gengtype.c (lang_names): New.
4853         (NUM_BASE_FILES): New.
4854         (open_base_files): Create language base files.
4855         (startswith): New.
4856         (get_file_basename): New.
4857         (get_base_file_bitmap): New.
4858         (get_output_file_with_visibility): Rename from get_output_file.
4859         Add more mappings for various C/Objc filenames.
4860         (finish_root_table): New.
4861         (write_gc_roots): Handle dependencies and scoping properly.
4862         * gengtype.h: Add prototypes for new functions.
4863         * ggc-common.c (struct deletable_root): Delete.
4864         (deletables): Delete.
4865         (ggc_add_deletable_root): Delete.
4866         (ggc_mark_roots): No need to deal with deleted functionality.
4867         * ggc.h (ggc_add_deletable_root): Delete prototype.
4868         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
4869         (gtype-objc.h): Add rule to create.
4870         * objc/config-lang.in (gtfiles): New.
4871         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
4872         ggc_add_* with GTY markers.  Include gtype-objc.h.
4873         (ggc_mark_imp_list): Delete.
4874         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
4875         * objc/objc-lang.c: Random Whitespace Change.
4877         * except.h (exception_handler_labels): Delete.
4878         (get_exception_handler_labels): New.
4879         * except.c (exception_handler_labels): Delete.
4880         (struct eh_status): Add exception_handler_labels field.
4881         (doing_eh): Don't add exception_handler_labels as root.
4882         (free_eh_status): Don't need to free exception_handler_labels.
4883         (get_exception_handler_labels): New.
4884         (find_exception_handler_labels): Update for move of
4885         exception_handler_labels.
4886         (remove_exception_handler_label): Likewise.
4887         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
4888         * jump.c (rebuild_jump_labels): Likewise.
4889         * loop.c (find_and_verify_loops): Likewise.
4890         * sched-rgn.c (is_cfg_nonregular): Likewise.
4892         * gengtype.c (write_gc_structure_fields): Handle variable-length
4893         TYPE_ARRAYs.
4895         * varasm.c (struct weak_syms): Use GGC, gengtype.
4896         (mark_weak_decls): Delete.
4897         (weak_decls): Likewise.
4898         (add_weak): Likewise.
4899         (remove_from_pending_weak_list): Likewise.
4900         (init_varasm_once): Likewise.
4902         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
4903         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
4904         stor-layout.c, regclass.c, and lists.c.
4905         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
4906         gt-regclass.h and gt-lists.h on s-gtype.
4907         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
4908         * except.c: Use gengtype for roots.
4909         * explow.c: Use gengtype for roots.  Include gt-explow.h.
4910         * expr.h (init_stor_layout_once): Delete prototype.
4911         * function.c: Use gengtype for roots.
4912         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
4913         * gengtype-yacc.y (start): Can also be an externstatic.
4914         (externstatic): New production.
4915         (struct_fields): Correct array bounds inversion for 2-d arrays.
4916         * gengtype.c (variables): New variable.
4917         (note_variable): New function.
4918         (get_output_file): Include libfuncs.h into gtype-desc.c.
4919         (get_output_file_name): New function.
4920         (write_gc_structure_fields): Suppress warnings.
4921         (write_gc_types): Make static.
4922         (put_mangled_filename): New function.
4923         (write_gc_roots): New function.
4924         (main): Call write_gc_roots.
4925         * gengtype.h (note_variable): Prototype.
4926         (get_output_file_name): Prototype.
4927         (write_gc_types): Delete prototype.
4928         * ggc.h: Clean up unnecessary structure predefinitions.
4929         (struct ggc_root_tab): Define.
4930         (gt_ggc_m_rtx_def): Make function, not macro.
4931         (gt_ggc_m_tree_node): Likewise.
4932         * libfuncs.h: Use gengtype for roots.
4933         * lists.c: Use gengtype for roots.  Include gt-lists.h.
4934         (init_EXPR_INSN_LIST_cache): Delete.
4935         * optabs.c: Use gengtype for roots.
4936         (gt_ggc_mp_optab): Delete.
4937         * optabs.h: Use gengtype for roots.
4938         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
4939         * rtl.h: Use gengtype for roots.
4940         (init_EXPR_INSN_LIST_cache): Delete prototype.
4941         * stor-layout.c: Use gengtype for roots.
4942         Include gt-stor-layout.h.
4943         (init_stor_layout_once): Delete.
4944         * toplev.c: Use gengtype for roots.  Delete calls to deleted
4945         routines.
4946         * tree.c: Use gengtype for roots.
4947         * tree.h: Use gengtype for roots.
4948         * varasm.c: Use gengtype for roots.
4950         * Makefile.in (GTFILES): Add @all_gtfiles@.
4951         * configure: Regenerate.
4952         * configure.in: Construct all_gtfiles from the gtfiles definitions
4953         in config-lang.in.
4954         * gengtype-yacc.y (type): Warn about duplicate structure names.
4955         * gengtype.c (get_output_file): Handle .c files in language
4956         subdirectories.
4958         * Makefile.in (GTFILES): Run gengtype on all the config files
4959         and on the target .c file.
4960         * except.c (mark_eh_region): Delete.
4961         (init_eh_for_function): Use GGC on struct eh_status.
4962         (mark_eh_status): Delete.
4963         (free_eh_status): Use GGC.
4964         (expand_eh_region_start): Use GGC to
4965         (collect_eh_region_array): Allocate last_region_number using GGC.
4966         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
4967         (remove_eh_handler): Let GGC free struct eh_region.
4968         (add_call_site): Use GGC to reallocate call_site_record array.
4969         * function.c (init_machine_status): Update calling sequence.
4970         (mark_machine_status): Likewise.
4971         (mark_lang_status): Likewise.
4972         (prepare_function_start): Update init_machine_status call.
4973         (mark_function_status): Delete.
4974         (maybe_mark_struct_function): Delete.
4975         (ggc_mark_struct_function): Delete.
4976         (gt_ggc_mp_function): New.
4977         (gt_ggc_mr_machine_function): New.
4978         (gt_ggc_mr_language_function): New.
4979         (init_function_once): Use canonical names.
4980         * function.h (struct function): Use gengtype.
4981         (init_machine_status): Return the structure.
4982         (mark_machine_status): Take a 'void *'.
4983         (mark_lang_status): Likewise.
4984         * ggc-common.c (ggc_mark_trees): Use canonical name for
4985         ggc_mark_struct_function.
4986         * tree.h (ggc_mark_struct_function): Delete prototype.
4987         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
4988         (alpha_init_machine_status): Likewise.
4989         (override_options): Use canonical name for alpha_mark_machine_status.
4990         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
4991         * config/arm/arm.h (struct machine_function): Use gengtype.
4992         * config/arm/arm.c (arm_mark_machine_status): Delete.
4993         (arm_init_machine_status): Update calling sequence.
4994         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
4995         * config/cris/cris.c (cris_init_machine_status): Update
4996         calling sequence.
4997         * config/d30v/d30v.h (struct machine_function): Use gengtype.
4998         * config/d30v/d30v.c (d30v_init_machine_status): Update
4999         calling sequence.
5000         (d30v_mark_machine_status): Delete.
5001         * config/i386/i386.c: Include gt-i386.h.
5002         (struct machine_function): Use gengtype.
5003         (ix86_init_machine_status): Update calling sequence.
5004         (ix86_mark_machine_status): Delete.
5005         (override_options): Use canonical namke for ix86_mark_machine_status.
5006         * config/ia64/ia64.h (struct machine_function): Use gengtype.
5007         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5008         sequence.
5009         (ia64_mark_machine_status): Delete.
5010         (ia64_override_options): Use canonical name for
5011         ia64_mark_machine_status.
5012         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5013         sequence.
5014         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5015         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5016         * gengtype.c (get_output_file): Fix warning.
5017         (main): Add prototype to suppress warning.
5018         * tree.c: Remove tree_hash_mark prototype.
5020         * tree.h (init_stmt): Delete prototype.
5021         * toplev.c (lang_independent_init): Don't call init_stmt.
5022         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5023         (stmt_obstack): Delete.
5024         (POPSTACK): No need to free 'struct nesting'.
5025         (gt_ggc_mr_nesting_cond): Use canonical names.
5026         (gt_ggc_mr_nesting_loop): Use canonical names.
5027         (gt_ggc_mr_nesting_block): Use canonical names.
5028         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5029         (mark_stmt_status): Delete.
5030         (init_stmt): Delete.
5031         (clear_last_expr): Clear both last_expr_type and last_expr_value.
5032         Use it everywhere that last_expr_type was cleared.
5033         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5034         (zap_lists): Delete.
5035         * ggc.h (ggc_add_deletable_root): Prototype.
5036         (mark_stmt_status): Remove prototype.
5037         * ggc-common.c (ggc_add_deletable_root): New.
5038         (ggc_mark_roots): Handle deletable roots.
5039         * function.c (ggc_mark_struct_function): Use canonical name
5040         for mark_stmt_status.
5041         * emit-rtl.c (free_sequence_stack): New.
5042         (start_sequence): Use a freelist for sequences.
5043         (end_sequence): Likewise.
5044         (init_emit_once): Add free_sequence_stack as a deleteable root.
5045         * c-pragma.c Include gt-c-pragma.h.
5046         (struct align_stack): Use gengtype.
5047         (push_alignment): Use GGC for struct align_stack.
5048         (mark_align_stack): Delete.
5049         (gt_ggc_mp_align_stack): New.
5050         (init_pragma): Use canonical name for mark_align_stack.
5051         * c-decl.c: Include gt-c-decl.h.
5052         (struct binding_level): Use gengtype.
5053         (make_binding_level): Use GGC; handle the freelist here.
5054         (pop_binding_level): New.
5055         (pushlevel): Move code into make_binding_level.
5056         (push_label_level): Likewise.
5057         (poplevel): Move code into pop_binding_level.
5058         (pop_label_level): Likewise.
5059         (mark_binding_level): Delete.
5060         (gt_ggc_mp_binding_level): New.
5061         (c_init_decl_processing): Use canonical name for mark_binding_level.
5062         Add free_binding_level as deletable root.
5063         (mark_c_function_context): Use canonical name for mark_binding_level.
5064         * Makefile.in (c-decl.o): Add gt-c-decl.h.
5065         (c-pragma.o): Add gt-c-pragma.h.
5066         (GTFILES): Add c-decl.c and c-pragma.c.
5067         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5069         * tree.c (struct type_hash): Use gengtype.
5070         (init_obstacks): Use canonical name for type_hash_mark.
5071         (type_hash_mark): Delete.
5072         Include gt-tree.h.
5073         * rtl.h (struct mem_attrs): Use gengtype.
5074         * optabs.h (struct optab): Use gengtype.
5075         * optabs.c (expand_binop): Squish signed/unsigned warning.
5076         (mark_optab): Make local, use canonical name, use autogenerated
5077         marker procedure.
5078         (init_optabs): Use canonical name for mark_optab.
5079         (new_optab): Use GGC to allocate optabs.
5080         * ggc.h: Delete mark_optab prototype.
5081         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5082         mem_attrs marker procedure.
5083         * gengtype.c (get_output_file): Include headers in gtype-desc.c
5084         explicitly rather than deducing them from file names.
5085         (write_gc_structure_fields): Handle arrays of structures.
5086         (main): Return non-zero exit code if errors occur during output.
5087         * emit-rtl.c (mem_attrs_mark): Delete.
5088         (init_emit_once): Use canonical name for mem_attrs marker procedure.
5089         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5090         (tree.o): Depend on gt-tree.h.
5091         (GTFILES): Add rtl.h, optabs.h, tree.c.
5092         (gt-tree.h): Add it to s-gtype rule.
5094         * .cvsignore: Ignore gengtype flex/bison generated files.
5095         * Makefile.in (GGC_H): Add gtype-desc.h.
5096         (OBJS): Add gtype-desc.o.
5097         (GEN): Add gengtype.
5098         (STAGESTUFF): Add gengtype.
5099         (varasm.o): Add gt-varasm.h.
5100         (stmt.o): Add gt-stmt.h.
5101         (except.o): Add gt-except.h.
5102         (integrate.o): Add gt-integrate.h.
5103         (GTFILES): New.
5104         Add new rules for new files.
5105         * configure: Regenerate.
5106         * configure.in: Correct defaults.h paths.
5107         * emit-rtl.c (mark_sequence_stack): Delete.
5108         (mark_emit_status): Delete.
5109         (start_sequence): Allocate sequence structures using GGC.
5110         (end_sequence): Allocate sequence structures using GGC.
5111         * except.c: Use gengtype for various structures.  Include
5112         gt-except.h.
5113         * expr.c (mark_expr_status): Delete.
5114         * function.c: Use gengtype for various structures.  Include
5115         gt-function.h.
5116         (mark_function_status): Use standard gt_ggc names for marker functions.
5117         (ggc_mark_struct_function): Likewise.
5118         * function.h: Use gengtype for various structures.
5119         * gengtype-lex.l: New file.
5120         * gengtype-yacc.y: New file.
5121         * gengtype.c: New file.
5122         * gengtype.h: New file.
5123         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
5124         the standard names.  Remove some now-unnecessary prototypes.
5125         * integrate.c: Use gengtype for various structures.  Include
5126         gt-integrate.h.
5127         (mark_hard_reg_initial_vals): Delete.
5128         * integrate.h (mark_hard_reg_initial_vals): Delete.
5129         * stmt.c: Use gengtype for various structures.  Include
5130         gt-stmt.h.
5131         (mark_case_node): Delete.
5132         (mark_goto_fixup): Delete.
5133         (mark_stmt_status): Use standard gt_ggc names for marker functions.
5134         * system.h: Define GTY to empty.   In flex/bison files,
5135         don't poison malloc or realloc, instead just define them to
5136         xmalloc and xrealloc.
5137         * varasm.c: Use gengtype for various structures.  Include
5138         gt-varasm.h.  Use standard gt_ggc names for marker functions.
5139         (mark_pool_constant): Delete.
5140         (mark_varasm_status): Delete.
5141         (decode_rtx_const): #if 0 out non-typesafe hack.
5143         * function.h (free_lang_status): Mark as obsolete.
5144         * function.c (free_lang_status): Mark as obsolete.
5145         * c-decl.c (push_c_function_context): Use GC to allocate and free
5146         struct language_function.
5147         (pop_c_function_context): Likewise.
5148         * c-common.c (mark_c_language_function): Mark struct
5149         language_function.
5151         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5152         Document that the machine_function structures must be allocated
5153         using GC.  Update mark_machine_status documentation.
5154         * function.h: Don't declare free_machine_status.
5155         * function.c (free_machine_status): Don't define.
5156         (free_after_compilation): Don't call free_machine_status.
5157         (ggc_mark_struct_function): Mark f->machine.  Call
5158         mark_machine_status only on non-NULL pointers.
5159         * system.h: Poison free_machine_status.
5160         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5161         struct machine_function.
5162         (xtensa_free_machine_status): Delete.
5163         (override_options): Don't set free_machine_status.
5164         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5165         free_machine_status.
5166         (rs6000_init_machine_status): Use GC on struct machine_function.
5167         (rs6000_free_machine_status): Delete.
5168         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5169         machine_function.
5170         (ia64_mark_machine_status): Likewise.
5171         (ia64_free_machine_status): Delete.
5172         (ia64_override_options): Don't set free_machine_status.
5173         * config/i386/i386.c (override_options): Don't set
5174         free_machine_status.
5175         (ix86_init_machine_status): Use GC on struct machine_function.
5176         (ix86_mark_machine_status): Likewise.
5177         (ix86_free_machine_status): Delete.
5178         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5179         machine_function.
5180         (d30v_mark_machine_status): Likewise.
5181         (d30v_free_machine_status): Delete.
5182         (d30v_init_expanders): Don't set free_machine_status.
5183         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5184         machine_function.
5185         (arm_init_machine_status): Likewise.
5186         (arm_free_machine_status): Delete.
5187         (arm_init_expanders): Don't set free_machine_status.
5188         * config/alpha/alpha.c (override_options): Don't set
5189         free_machine_status.
5190         (alpha_init_machine_status): Use GC on struct machine_function.
5191         (alpha_mark_machine_status): Likewise.
5192         (alpha_free_machine_status): Delete.
5194         * varasm.c (compare_constant): Fix typo.
5196         * varasm.c: Don't include obstack.h.
5197         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5198         (struct rtx_const): Give substructures names, improve formatting.
5199         (struct constant_descriptor): Delete.
5200         (struct constant_descriptor_tree): New, based on constant_descriptor.
5201         (const_hash_table): Is a hash table of trees.
5202         (mark_const_hash_entry): Is used for hashes of trees.  Mark
5203         constant_descriptor_tree structure.
5204         (mark_const_str_htab_1): Mark deferred_string structure.
5205         (compare_constant): Rewrite to compare trees.
5206         (compare_constant_1): Delete.
5207         (record_constant): Delete.
5208         (record_constant_1): Delete.
5209         (output_constant_def): Use struct constant_descriptor_tree.
5210         Don't duplicate trees twice.
5211         (struct constant_descriptor_rtx): New.
5212         (struct pool_constant): Used for rtx constants.
5213         (init_varasm_status): Update for change to struct varasm_status.
5214         (mark_varasm_status): Likewise.
5215         (free_varasm_status): Delete.
5216         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5217         (record_constant_rtx): Likewise.
5218         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5219         (force_const_mem): Likewise.
5220         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5221         * function.c (free_after_compilation): Don't use free_varasm_status.
5222         * function.h: Don't prototype free_varasm_status.
5224         * ggc-common.c (ggc_realloc): Handle X being NULL.
5226         * ggc-common.c (ggc_realloc): New function.
5227         * ggc.h: Prototype it.
5228         * emit-rtl.c (free_emit_status): Delete.
5229         (init_emit): Allocate emit subarrays using GC.
5230         (gen_reg_rtx): Reallocate subarrays using GC.
5231         (init_emit): Use GC to allocate 'struct emit_status' and its
5232         subarrays.
5233         (mark_emit_status): Mark structure and its subarrays.
5234         * stmt.c (free_stmt_status): Delete.
5235         * expr.c (free_expr_status): Delete.
5236         * function.h: Remove prototypes for deleted functions.
5237         * function.c (free_after_compilation): Don't use deleted functions.
5238         Don't call free() on x_parm_reg_stack_loc.
5239         (free_after_parsing): Don't use free_stmt_status.
5240         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5241         (mark_function_status): Mark x_parm_reg_stack_loc.
5243         * varasm.c (init_varasm_status): Use GC to allocate
5244         'struct varasm_status' and its fields x_const_rtx_hash_table
5245         and x_const_rtx_sym_hash_table.
5246         (mark_varasm_status): Mark them.
5247         (free_varasm_status): Use GC to free them.
5248         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5249         (mark_expr_status): Mark the structure itself.
5250         (free_expr_status): Use GC to free the structure.
5251         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5252         (mark_stmt_status): Mark the 'struct stmt_status' itself.
5253         (init_stmt_for_function): Allocate the structure for GC.
5255         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5256         (equate_type_number_to_die): Likewise.
5257         * tree.h (TYPE_SYMTAB_DIE): New macro.
5258         (struct die_struct): Predeclare.
5259         (struct tree_type): Add field symtab.die.   Add a tag
5260         to the union type of field symtab.
5262         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5263         'struct rtvec_def *', not 'struct rtvec_def'.
5265         * function.h (original_arg_vector): Make a real rtvec.
5266         * function.c (ggc_mark_struct_function): Adjust.
5267         * integrate.c (expand_inline_function): Adjust.
5269 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5271         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5272         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5273         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5274         (TARGET_VERSION_CPU): Define according to the
5275         default target.
5276         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5277         TARGET_VERSION_CPU.
5278         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5279         if TARGET_SHMEDIA64.
5280         (LINK_DEFAULT_CPU_EMUL): Define according to the
5281         default target.
5282         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5283         (SUBTARGET_LINK_SPEC): Define.
5284         (LINK_SPEC): Use SH_LINK_SPEC.
5285         (ASM_SPEC): Remove.
5286         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5287         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5288         and TARGET_SHMEDIA64 which abort, for now.
5289         * config/sh/t-netbsd-sh5: New file.
5290         * config/sh/t-netbsd-sh5-32: New file.
5291         * config/sh/t-netbsd-sh5-64: New file.
5293 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5294             Richard Henderson  <rth@redhat.com>
5296         * config/alpha/alpha.c (reg_or_const_int_operand): New.
5297         (some_operand, input_operand): Accept CONST_VECTOR.
5298         (alpha_extra_constraint): Add 'W'.
5299         (alpha_expand_zap_mask): New.
5300         (alpha_expand_builtin_vector_binop): New.
5301         (enum alpha_builtin): New.
5302         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5303         (alpha_init_builtins, alpha_expand_builtin): New.
5304         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5305         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5306         (PREDICATE_CODES): Update.
5307         * config/alpha/alpha-protos.h: Update.
5308         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5309         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5310         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5311         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5312         (movv2si, movv2si_fix, movv2si_nofix): New.
5313         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5314         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5315         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5316         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5317         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5318         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5319         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5320         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5321         builtin_unpkbw, unpkbw): New.
5322         * doc/extend.texi (Alpha Built-in Functions): New.
5324 2002-06-03  Richard Henderson  <rth@redhat.com>
5326         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5327         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5329 2002-06-03  Richard Henderson  <rth@redhat.com>
5331         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5333         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5334         (const0_operand): New.
5335         (reg_or_fp0_operand, fp0_operand): Remove.
5336         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5337         * config/alpha/alpha-protos.h: Update.
5338         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5339         and fp0_operand with reg_or_0_operand and const0_operand.
5341 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
5343         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5345 2002-06-03  Roger Sayle  <roger@eyesopen.com>
5347         * gcse.c (cprop_jump): Use single_set to get the pattern
5348         from the setcc argument.
5350 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
5352         * diagnostic.h (diagnostic_count): Move from output_buffer to
5353         diagnostic_context.
5354         (diagnostic_kind_count): Adjust definition.
5356 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
5358         * except.c (except.c): Do not rebuild CFG.
5359         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5360         optimization.
5362 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
5364         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5365         * toplev.c: Include cfglahout.h
5366         * Makefile.in (toplev.c): Add dependnecy.
5368 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5370         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5371         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5372         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5374 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5376         * config/ns32k/netbsd.h: Update copyright years.
5377         (TARGET_OS_CPP_BUILTINS): Define.
5378         (CPP_PREDEFINES): Remove.
5379         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5380         (TARGET_CPU_CPP_BUILTINS): Define.
5382 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5384         * emit-rtl.c: Fix formatting.
5385         * errors.h: Likewise.
5386         * except.c: Likewise.
5387         * explow.c: Likewise.
5388         * expmed.c: Likewise.
5389         * expr.c: Likewise.
5390         * expr.h: Likewise.
5392 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5394         * config/h8300/elf.h: Fix formatting.
5395         * config/h8300/rtems.h: Likewise.
5397 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5399         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5401 2002-06-02  Tom Tromey  <tromey@redhat.com>
5403         * fixinc/fixincl.x: Rebuilt.
5404         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5406 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5408 config/i370:
5409         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5410         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5411         * mvs.h: Similarly.
5412         * oe.h: Similarly.
5414 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
5416         * final.c (final):  Allow notes to not have computed addresses;
5417         kill no longer needed STACK_REGS ifdef.
5419 2002-06-02  Richard Henderson  <rth@redhat.com>
5421         * gcse.c (bypass_conditional_jumps): Fix typo last change.
5423 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
5425         * loop.c (emit_prefetch_instructions): Properly place the address
5426         computation.
5428 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
5430         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5431         (set_block_for_insn): Turn into macro.
5432         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5433         * cfglayout.c (insn_scopes): Kill.
5434         (scope_to_insns_initialize): Do not use insn_scopes.
5435         (scope_to_insns_finalize): Likewise.
5436         (duplicate_insn_chain): Likewise.
5437         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5438         * cfgrtl.c (basic_block_for_insn): Kill.
5439         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5440         (create_basic_block_structure): Use reorder_insns.
5441         (compute_bb_for_insn): Do not use basic_block_for_insn.
5442         (merge_blocks_nomove): Likewise.
5443         (update_bb_for_insn): Likewise.
5444         (verify_flow_info): Likewise.
5445         (set_block_for_insn): Kill.
5446         * combine.c (try_combine): Update gen_rtx_INSN call.
5447         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5448         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5449         scopes and BBs.
5450         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5451         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5452         Clear BB.
5453         (emit_insns_after): Simplify.
5454         (emit_copy_of_insn_after): Copy scope.
5455         * final.c (final_start_function): Lower scopes.
5456         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5457         * integrate.c (copy_insn_list): Cope scopes.
5458         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5459         * loop.c (loop_optimize): Do not care block notes.
5460         * print-rtl.c (print_rtx): Print BB.
5461         * recog.c (apply_change_group): Simplify.
5462         * rtl.c (copy_rtx): Handle 'B'.
5463         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5464         * rtl.h (Field accessors): Update indexes.
5465         * sched-ebb.c (schedule_ebbs): Do not lower notes.
5466         * sched-rgn.c (schedule_insns): Likewise.
5467         * toplev.c (rest_of_compilation): Lower notes.
5468         * unroll.c (unroll_loop): Do not care scoping notes.
5469         (copy_loop_body): Copy scopes.
5471 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5473 config/h8300:
5474         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5475         SUBTARGET_SPEC.
5476         * rtems.h: Similarly.
5477         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5478         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5479         (TARGET_CPU_CPP_BUILTINS): Use.
5481 2002-06-02  Richard Henderson  <rth@redhat.com>
5483         * alias.c: Include target.h.
5484         (mark_constant_function): Use targetm.binds_local_p instead
5485         of checking TREE_PUBLIC ourselves.
5486         * Makefile.in (alias.o): Add TARGET_H.
5488 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5490         * c-lex.c: Update copyright and file description.
5492 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5494         * config/fr30/fr30.h: Update to new CPP macros.
5496 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5498         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5500 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5501             Zack Weinberg <zack@codesourcery.com>
5503         * c-common.c (c_common_init): Override cpplib's default
5504         warn_long_long setting.
5505         * c-lex.c (lex_number): Replace with interpret_integer,
5506         interpret_float, narrowest_unsigned_type and
5507         narrowest_signed_type, taking advantage of the new
5508         cpplib functionality.
5509         * cpperror.c (_cpp_begin_message): If a warning is turned
5510         into an error, avoid printing "warning:".
5511         * cppexp.c (cpp_num_sign_extend): New.
5512         * cppinit.c: Update comment.
5513         * cpplib.h (cpp_num_sign_extend): New.
5514         * tree.h: Update comment.
5516 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5518         * diagnostic.h (struct diagnostic_context):  Add new member
5519         internal_error.
5520         (internal_error_function): Remove declaration.
5521         * diagnostic.c (internal_error_function): Remove definition..
5522         (internal_error): Adjust use.
5524 2002-06-02  Richard Henderson  <rth@redhat.com>
5526         * rtl.h (CC0_P): New.
5527         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
5528         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
5529         (bypass_block): Save old dest block for dump text.
5530         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5531         Allow only true SET insns, not single_set.
5533 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5535         * diagnostic.c (diagnostic_finish): Rename to output_flush.
5536         (clear_disgnostic_info): Rename to output_clear_data.  Use false
5537         instead of 0 for boolean value.
5538         Adjust function call throughout.
5540 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5542         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5543         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5545 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5547         * d30v.h (CPP_PREDEFINES): Replace with
5548         (TARGET_CPU_CPP_BUILTINS): New.
5550 2002-06-02  Roger Sayle  <roger@eyesopen.com>
5552         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5554 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
5556         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5558 2002-06-02  Richard Henderson  <rth@redhat.com>
5560         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5562 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5564         Support for C++ constructors/destructors.
5565         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5566         instead of looping if main() returns.
5567         (asm_file_start): Output global symbols that cause .data and .bss
5568         initialization code to be linked in, unconditionally for now.
5569         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5570         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5571         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5572         (LIBSTDCXX): New.
5573         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5574         (__tablejump__): New.
5575         (__do_copy_data, __do_clear_bss): New.
5576         (__do_global_ctors, __do_global_dtors): New.
5577         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5578         _ctors, _dtors.
5580 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5582         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5583         (CPP_SPEC, CPP_PREDEFINES): Kill.
5584         * c4x/rtems.h (CPP_PREDEFINES): Kill.
5585         (TARGET_OS_CPP_BUILTINS): New.
5587 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
5589         * Makefile.in (tracer.o): New.
5590         * params.def (TRACER_*): New options.
5591         * rtl.h (tracer): Declare.
5592         * timevar.def (TV_TRACER): New.
5593         * toplev.c (dump_file_index): Add DFI_tracer.
5594         (dump_file_info): Add tracer.
5595         (flag_tracer): New.
5596         (lang_indepdenent_options): Add tracer.
5597         (rest_of_compilation): Call tracer.
5598         * tracer.c: New file.
5599         * invoke.texi (-ftracer): Document.
5600         (--param tracer-*): Document.
5602 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
5604         * tree-inline.c (expand_call_inline): Make the statement
5605         expression we generate have a COMPOUND_STMT.
5607 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5609         * gcse.c (cprop_cc0_jump): Function deleted.
5610         (cprop_jump): Take an additional argument which is the possibly
5611         NULL cc setting insn immediately before the conditional jump.
5612         When a MODE_CC set is present, substitute it into the JUMP_INSN
5613         before attempting the constant propagation.
5614         (cprop_insn):  Recognize cc setters followed by conditional jumps
5615         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
5616         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
5617         (find_bypass_set): New function based upon find_avail_set used by
5618         cprop, but finds constant expressions available at the end of
5619         basic blocks.
5620         (bypass_block): New function.  Given a basic block that begins
5621         with a conditional jump and multiple incoming edges, perform
5622         the jump bypass optimization.
5623         (bypass_conditional_jumps): New function.  Call bypass_block with
5624         each suitable basic block in the CFG using a simple single pass.
5626 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5628         * tree.c (real_minus_onep): New function to test for -1.0.
5629         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
5631 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5633         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5634         and "!p && !q" into "(p|q) == 0" under suitable conditions.
5636 2002-06-01  Andreas Jaeger  <aj@suse.de>
5638         * cppexp.c (cpp_classify_number): Cast precission to int for
5639         correct printf format.
5641 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5643         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5644         expected, but don't really exist: atmega83, atmega85, attiny10.
5645         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5646         emulations for all devices.
5647         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5648         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5650 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
5652         * config/h8300/h8300-protos.h: Add a prototype for
5653         h8300_shift_needs_scratch_p.
5654         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5655         * config/h8300/h8300.h (OK_FOR_R): New.
5656         (OK_FOR_S): Likewise.
5657         (OK_FOR_T): Likewise.
5658         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5659         * config/h8300/h8300.md (anonymous shift patterns): Use
5660         constraints R, S, and T.
5662 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5664         * basic-block.h (struct basic_block_def): New field loop_father.
5665         (BB_VISITED): New flag.
5666         (struct loop): New field pred, removed field shared.
5667         (struct loops): New field parray.
5668         (LOOP_EXITS_DOMS): Removed.
5669         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5670         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5671         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5672         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5673         verify_loop_structure): Declare.
5674         * cfg.c (entry_exit_blocks): Initialize loop_father field.
5675         * cfganal.c (dfs_enumerate_from): New function.
5676         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5677         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5678         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5679         flow_loop_dump, flow_loops_dump, flow_loops_free,
5680         flow_loop_tree_node_add, flow_loop_level_compute,
5681         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5682         flow_loop_outside_edge_p): Modified for new infrastructure.
5683         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5684         redirect_edge_with_latch_update, flow_loop_free): New static functions.
5685         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5686         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5687         find_common_loop, verify_loop_structure, loop_latch_edge,
5688         loop_preheader_edge): New functions.
5689         (flow_loops_cfg_dump): Do not show dominators, as this information
5690         does not remain up to date long.
5691         (flow_loops_find): Store results in new format.
5692         * predict.c (propagate_freq, estimate_probability,
5693         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5694         infrastructure.
5696 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
5698         * except.c (nothrow_function_p): Walk epilogue delay list
5699         checking the insn, not the chain for potential throws.
5701 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
5703         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
5704         (install): Refer to install-cpp directly.
5705         (uninstall-cpp): Folded into uninstall rule.
5706         * configure.in: Delete all code relating to --disable-cpp.
5707         * configure: Regenerate.
5708         * config/t-install-cpp: Delete.
5710 2002-05-31  Richard Henderson  <rth@redhat.com>
5712         * configure.in (HAVE_AS_TLS): Add alpha tests.
5713         * configure: Rebuild.
5714         * config/alpha/alpha.c (TARGET_AS_TLS): New.
5715         (alpha_tls_size, alpha_tls_size_string): New.
5716         (overide_options): Set it.  Always install machine_status hooks.
5717         (input_operand): Accept got tls predicates.
5718         (local_symbol_p): Merge into ...
5719         (local_symbolic_operand): ... here.  Reject tls symbols.
5720         (global_symbolic_operand): Likewise.
5721         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
5722         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
5723         (tp16_symbolic_operand, tp32_symbolic_operand): New.
5724         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
5725         (alpha_encode_section_info): Handle TLS symbols.
5726         (alpha_strip_name_encoding): Likewise.
5727         (alpha_legitimate_address_p): Likewise.
5728         (alpha_legitimize_address): Likewise.
5729         (alpha_expand_mov): Early exit to avoid nop moves.
5730         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
5731         (alpha_init_machine_status, alpha_mark_machine_status,
5732         alpha_free_machine_status): Always define.
5733         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5734         (print_operand, print_operand_address): Add TLS relocs.
5735         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
5736         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
5737         (TARGET_SWITCHES): Add -mtls-kernel.
5738         (alpha_tls_size, alpha_tls_size_string): New.
5739         (TARGET_OPTIONS): Add -mtls-size=.
5740         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
5741         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
5742         (ASM_OUTPUT_LABELREF): Skip %.
5743         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
5744         (PREDICATE_CODES): Update.
5745         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
5746         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
5747         UNSPEC_TP, UNSPECV_SET_TP): New.
5748         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
5749         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
5750         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
5751         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
5752         (call_value_osf_2_er): Accept anything as op4.
5753         * config/alpha/alpha-protos.h: Update.
5754         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
5756 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
5758         * cppinit.c (append_include_chain): Always pay attention to
5759         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
5760         marker on argument.
5762 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
5764         * target.h: Fix formatting.
5765         * timevar.h: Likewise.
5766         * tlink.c: Likewise.
5767         * toplev.c: Likewise.
5768         * toplev.h: Likewise.
5769         * tree.c: Likewise.
5770         * tree-dump.h: Likewise.
5771         * tree.h: Likewise.
5772         * tree-inline.h: Likewise.
5773         * unroll.c: Likewise.
5774         * unwind-dw2.c: Likewise.
5775         * unwind-dw2-fde.c: Likewise.
5776         * unwind-dw2-fde-glibc.c: Likewise.
5777         * unwind-dw2-fde.h: Likewise.
5778         * unwind.h: Likewise.
5779         * unwind-sjlj.c: Likewise.
5780         * varasm.c: Likewise.
5781         * varray.h: Likewise.
5782         * vmsdbg.h: Likewise.
5783         * vmsdbgout.c: Likewise.
5784         * xcoffout.h: Likewise.
5786 2002-05-31  Igor Shevlyakov <igor@microunity.com>
5788         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
5789         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
5791 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
5793         * gcc.c (cpp_unique_options): Remove "-d" options.
5794         (cpp_debug_options): New spec string.
5795         (default_compilers): Use it.
5796         * objc/lang-specs.h: Likewise.
5798 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
5800         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5801         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
5802         * gcc/mklibgcc.in: Likewise.
5803         * gcc/config/arc/t-arc: Likewise.
5804         * gcc/configure.in: Likewise.
5805         * gcc/configure: Regenerate.
5807 2002-05-31  Stan Shebs  <shebs@apple.com>
5808             Turly O'Connor  <turly@apple.com>
5810         * c-decl.c (struct binding_level): Change int field n_incomplete
5811         to tree list incomplete_list.
5812         (clear_binding_level): Init field with NULL.
5813         (pushdecl): Add incomplete type to list.
5814         (mark_binding_level): Mark the incomplete list.
5815         (finish_struct): Scan the incomplete list for types instead
5816         of all decls in the current binding level.
5818 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5820         * pa.c (output_millicode_call): Add missing '%' characters.
5821         (output_call): Likewise.
5823 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
5825         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
5826         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5828 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
5830         * varasm.c (mark_constant_pool): Walk epilogue delay list
5831         checking the insn, not the chain for potential constants.
5833 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
5835         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
5837 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
5839         * i386.c (classify_argument): Properly handle base types.
5841         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
5842         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
5843         registers.
5845 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
5847         * gcse.c (gcse_emit_move_after): New.
5848         (pre_delete, hoist_store): Use it.
5850         * reload1.c (emit_input_reload_insns): Use constrain_operands
5851         instead of constraint_accepts_reg_p to verify optimization.
5852         (constraint_accepts_reg_p): Kill
5854         * reload1.c (reload_cse_delete_noop_set): Kill.
5855         (reload_cse_simplify): use delte_insn_and_edges.
5857 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5859         * cfgloop.c (flow_loops_find): Initialize first and last fields
5860         correctly.
5862 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5864         * c-common.c (builtin_define_std): Correct logic.
5866 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5868         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
5869         (output_call): Likewise.
5871 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5873         * pa.c: Move output.h include after tree.h include.
5874         (pa_asm_output_mi_thunk): Constify identifier lab.
5876 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
5878         * config/ns32k/ns32k.h: Define named constants for the
5879         bits in target_flags and use them.
5880         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
5882 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5884         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
5885         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
5886         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
5887         default scheduling model.
5888         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
5889         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
5890         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
5891         * doc/install.texi (hppa*-*-*): Document default scheduling.
5893 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5895         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
5897 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
5899         * config.gcc (ns32k-*-netbsd*): Set tm_file to
5900         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
5901         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
5902         netbsd.h, or netbsd-aout.h.
5904 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
5906         * longlong.h (count_trailing_zeros): Add missing \, and clean up
5907         whitespace in __ns32000__ case.
5909 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
5911         * expr.c (expand_expr): Output partially zeroed out vectors with
5912         output_constant_def.
5914 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5916         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
5917         (sh-*-netbsdelf*)
5918         (shl*-*-netbsdelf*): New targets.
5919         * config/sh/netbsd-elf.h: New file.
5920         * config/sh/t-netbsd: New file.
5922 2002-05-30  Richard Henderson  <rth@redhat.com>
5923             Eric Botcazou  <ebotcazou@multimania.com>
5925         PR optimization/6822
5926         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
5927         to unsigned int for op1 comparisons.  Use gen_int_mode.
5929 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
5931         * expmed.c (const_mult_add_overflow_p): New.
5932         * expr.h: Declare it.
5933         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
5934         Don't eliminate the biv if the giv has a constant multiplier and
5935         the rhs argument of the comparison does satisfy the predicate.
5936         Use expand_mult_add to compute the replacement constant.
5938 2002-05-30  Osku Salerma  <osku@iki.fi>
5940         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
5941         (c_common_get_alias_set): Handle it.
5942         * doc/extend.texi: Document it.
5944 2002-05-30  Richard Henderson  <rth@redhat.com>
5946         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5947         * toplev.c (process_options): Don't check it.
5948         * doc/tm.texi: Don't document it.
5949         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
5950         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5951         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
5952         frame pointer optimization if current_function_profile.
5954 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
5956         * langhooks.c: Fix formatting.
5957         * langhooks.h: Likewise.
5958         * lcm.c: Likewise.
5959         * libgcc2.c: Likewise.
5960         * lists.c: Likewise.
5961         * local-alloc.c: Likewise.
5962         * loop.c: Likewise.
5963         * loop.h: Likewise.
5965 2002-05-30  Marc Espie <espie@openbsd.org>
5967         * config.gcc (sparc64-*-openbsd*): New.
5968         * config/sparc/openbsd1-64.h: New.
5969         * config/sparc/openbsd64.h: New.
5971 2002-05-30  Jeff Law <law@redhat.com>
5973         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
5974         a dead insn with a REG_RETVAL note when the entire libcall is not
5975         dead and remove the associated REG_LIBCALL note at the same time.
5977 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
5979         * lcm.c (output.h): #include.
5980         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
5981         as an ordinary block.
5982         (optimize_mode_switching): Don't pretend that the exit block is
5983         an ordinary block, or handle sucessors of entry block specially.
5984         Instead, split edges from entry block and to exit block, and
5985         put a computing definition on the thus gained post-entry-block,
5986         and a need on the pre-exit-block.
5988 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
5990         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
5991         * rtl.texi: Document 'B'
5993 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5995         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
5996         at run-time.
5997         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
5999 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
6001         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6002         const0_rtx instead of NULL_RTX when in error.
6003         (altivec_expand_abs_builtin): Same.
6004         (rs6000_expand_binop_builtin): Same.
6005         (altivec_expand_predicate_builtin): Same.
6006         (altivec_expand_stv_builtin): Same.
6007         (rs6000_expand_ternop_builtin): Same.
6008         (altivec_expand_builtin): Same.
6010 2002-05-29  David S. Miller  <davem@redhat.com>
6012         * rtl.h (clear_emit_caches): Delete.
6013         * integrate.c (output_inline_function): Don't call it.
6014         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6015         (clear_emit_caches): Delete definition.
6016         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6018 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
6020         * config/mmix/mmix.c: Include real.h.
6021         (mmix_constant_address_p): Remove redundant test before switch.
6023 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6025         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6026         only if not already defined.
6028 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6030         * config/h8300/h8300-protos.h: Remove prototypes for
6031         ok_for_bclr and small_power_of_two.
6032         * config/h8300/h8300.c (small_power_of_two): Remove.
6033         (ok_for_blcr): Likewise.
6034         (fix_bit_operand): Make WHAT deal with an integer instead of a
6035         constraint character.
6036         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6037         (CONST_OK_FOR_P): Likewise.
6038         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6039         CONST_OK_FOR_P any more.
6040         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6041         of fix_bit_operand.
6042         (iorqi3): Likewise.
6043         (xorqi3): Likewise.
6045 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6047         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6048         (CPP_PREDEFINES): Make sure this is undefined.
6049         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6050         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
6051         or -U__MIPSEB__ before defining one or the other.  Instead,
6052         use %(subtarget_endian_default) if neither -EB nor -EL are
6053         specified.
6054         (SUBTARGET_EXTRA_SPECS): Define.
6055         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
6056         %(netbsd_cpp_spec).
6058 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6060         * doc/md.texi (Patterns): Note pattern condition pitfall
6061         for unnamed insn.
6063 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
6065         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6066         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
6067         ternary operations from here...
6068         (rs6000_expand_builtin): ...to here.
6069         New argument expandedp.
6070         Change all instances of altivec_expand_binop_builtin to
6071         rs6000_expand_binop_builtin.
6072         (altivec_expand_unop_builtin): Rename to
6073         rs6000_expand_unop_builtin.
6074         (altivec_expand_binop_builtin): Rename to
6075         rs6000_expand_binop_builtin.
6076         (altivec_expand_ternop_builtin): Rename to
6077         rs6000_expand_ternop_builtin.
6079 2002-05-29  Richard Henderson  <rth@redhat.com>
6081         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6082         (TARGET_BI_ARCH): Likewise.
6083         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6084         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6085         (TARGET_64BIT_DEFAULT): Default to 0.
6086         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6088 2002-05-29  Richard Henderson  <rth@redhat.com>
6090         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6091         (get_pc_thunk_name): New.
6092         (output_set_got): Use it.
6093         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6094         into linkonce sections.
6096 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6098         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6099         (CPP_PREDEFINES): Make sure this is undefined.
6100         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6101         (CPP_SUBTARGET_SPEC): Don't provide different versions for
6102         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
6103         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6104         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
6105         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6106         (CPP_PREDEFINES): Make sure this is undefined.
6107         (SUBTARGET_EXTRA_SPECS): Define.
6108         (CPP_SPEC): Use %(netbsd_cpp_spec).
6110 2002-05-29  Jeff Law <law@redhat.com>
6112         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6114         * flow.c (propagate_one_insn): Do not remove a dead insn if it
6115         contains a REG_RETVAL note.
6117         * haifa-sched (sched_analyze): Remove another useless clearing
6118         of SCHED_GROUP_P I missed yesterday.
6120         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6121         * pa.c (pa_asm_output_mi_thunk): New function.
6122         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6124 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6125             Marek Michalkiewicz  <marekm@amelek.gda.pl>
6127         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6128         (avr_asm_only_p): Make non-static.
6129         (enum avr_arch): Remove.
6130         (avr_arch_types): New.
6131         (avr_mcu_types): Update.
6132         (avr_override_options): Use avr_arch_types table instead of switch.
6133         * avr.h (CPP_PREDEFINES): Die.
6134         (avr_base_arch_macro, avr_extra_arch_macro): New.
6135         (TARGET_CPU_CPP_BUILTINS): New.
6136         (CPP_SPEC, EXTRA_SPECS): Simplify.
6137         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6138         CPP_AVR5_SPEC): Die.
6140 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6142         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6143         NETBSD_OS_CPP_BUILTINS_AOUT.
6144         (SUBTARGET_EXTRA_SPECS): Define.
6145         (CPP_SPEC): Use %(netbsd_cpp_spec).
6147 2002-05-29  Richard Henderson  <rth@redhat.com>
6149         * config/i386/i386.c (ix86_output_function_epilogue): New.
6150         (TARGET_ASM_FUNCTION_EPILOGUE): New.
6151         (pic_label_name): Remove.
6152         (pic_labels_used): New.
6153         (ix86_asm_file_end): Emit one pc load stub for each register used.
6154         (output_set_got): Generate deep pc load to any register.
6155         (ix86_select_alt_pic_regnum): New.
6156         (ix86_save_reg): Don't save pic register if we can find a valid
6157         call-clobbered replacement.
6158         (ix86_expand_prologue): If we found a valid replacement, renumber
6159         pic_offset_table_rtx.
6160         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6161         pic_offset_table_rtx after reload.
6162         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6163         * config/i386/i386.md (set_got): Make insn, not expander.
6164         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6166 2002-05-29  Richard Henderson  <rth@redhat.com>
6168         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6169         alignment for alloca.
6171 2002-05-29  Richard Henderson  <rth@redhat.com>
6173         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6174         (print_operand_address): Only add rip for symbolic addresses
6175         for which we do not have another relocation type.
6177 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6179         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6180         (EXTRA_SPECS): Add netbsd_cpp_spec.
6181         (CPP_SPEC): Use %(netbsd_cpp_spec).
6182         (CPP_PREDEFINES): Remove.
6183         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6184         (EXTRA_SPECS): Define.
6185         (CPP_SPEC): Use %(netbsd_cpp_spec).
6186         (CPP_PREDEFINES): Remove.
6188 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6190         PR preprocessor/6844
6191         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6192         NUL.
6194 2002-05-29  Eric Christopher  <echristo@redhat.com>
6196         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6197         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6199 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
6201         * config/fr30/fr30.md: Remove previous restriction on splits.
6202         Enforce conformance through gen_lowpart and cont_int_operand.
6203         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6204         as the assembler does not support ".bss".
6206 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6208         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6209         (CPP_PREDEFINES): Remove.
6210         (SUBTARGET_EXTRA_SPECS): Define.
6211         (CPP_SPEC): Use %(netbsd_cpp_spec).
6212         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6213         (CPP_PREDEFINES): Remove.
6214         (SUBTARGET_EXTRA_SPECS): Define.
6215         (CPP_SPEC): Use %(netbsd_cpp_spec).
6216         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6217         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6218         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6219         Add netbsd_cpp_spec.
6220         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6222 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6223             Zack Weinberg <zack@codesourcery.com>
6225         * cppexp.c (cpp_num): Move to cpplib.h.
6226         (CPP_ERROR): Remove.
6227         (interpret_float_suffix, interpret_int_suffix): New.
6228         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6229         (cpp_classify_number, cpp_interpret_integer): New.
6230         (interpret_number): Remove.
6231         (eval_token): Update to use new routines.
6232         * cpphash.h (cpp_num_part): Move to cpplib.h.
6233         * cppinit.c (cpp_post_options): Set warn_long_long.
6234         * cpplib.h (struct cpp_options): Add warn_long_long.
6235         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6236         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6237         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6238         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6239         cpp_interpret_integer): New.
6241 2002-05-29  Joel Sherrill <joel@OARcorp.com>
6243         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6245 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6247         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6248         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6249         (CPP_SUBTARGET_SPEC): Define.
6250         (SUBTARGET_EXTRA_SPECS): Define.
6251         (CPP_SPEC): Remove.
6253 2002-05-29  Chris Lattner  <sabre@nondot.org>
6255         * ssa.c (rename_insn_1): Rename uses of undefined registers to
6256         prevent confusion if/when the register is defined.
6258 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6260         PR target/6838
6261         * config/cris/cris.md: Fix typos and thinkos in comments.
6262         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6263         second alternative.
6264         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6265         ("*mov_sideqi_mem"): Similar, but for operand 3.
6266         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6267         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6268         Remove spurious mode specifier on operand 2.
6270 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6272         * config/h8300/h8300-protos.h: Remove the prototype for
6273         o_operand.
6274         Add prototypes for single_one_operand and single_zero_operand.
6275         * config/h8300/h8300.c (o_operand): Remove.
6276         (single_one_operand): New.
6277         (single_zero_operand): Likewise.
6278         (print_operand): For 'V' operand, and the operand with 0xff.
6279         For 'V' and 'W' operands, do not and the bit position with 7.
6280         * config/h8300/h8300.md (various anonymous patterns): Replace
6281         use of exact_log2 with single_one_operand/single_zero_operand.
6283 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6285         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6287 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6289         * config/s390/s390.c (legitimate_pic_operand_p): Do not
6290         accept symbolic LARL operands.
6291         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6292         epilogue insns.
6294 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
6296         * config/s390/s390.md (cmpstr_64/31): Mark whole
6297         input registers as used.
6299 2002-05-28  Richard Henderson  <rth@redhat.com>
6301         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6302         not current_function_uses_pic_offset_table and
6303         current_function_uses_const_pool; examine current_function_profile.
6304         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
6305         input to blockage if needed.
6306         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6307         (legitimize_pic_address): Likewise.  Set regs_ever_live for
6308         pic_offset_table_rtx when invoked during reload.
6309         * config/i386/i386.h (FINALIZE_PIC): Remove.
6310         * config/i386/i386.md (tablejump): Reformat.  Do not set
6311         current_function_uses_pic_offset_table.
6312         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6313         (blockage): Accept anything as operand 0.
6315 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6317         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6318         common CPP built-ins for all NetBSD a.out targets.
6319         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6320         common CPP built-ins for all NetBSD ELF targets.
6321         * config/netbsd.h: Add missing notice.
6322         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6323         for all NetBSD targets.
6324         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6325         for all NetBSD targets using an LP64 code model.
6326         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6327         NetBSD targets.
6329 2002-05-28  Richard Henderson  <rth@redhat.com>
6331         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6332         update if UPDATE_LIFE_LOCAL.
6334 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6336         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6338 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6339                           Jason R. Thorpe <thorpej@wasabisystems.com>
6341         config/sh reorganization to factor out endianness and coff:
6343         * config/sh/little.h: New file.
6344         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6345         defined, define to 0 to select big-endian.
6346         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6347         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6348         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6349         * config/sh/t-be: New file.
6350         * config/sh/t-le: New file.
6352         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6353         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6354         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6355         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6356         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6357         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6358         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6359         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6360         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6361         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6362         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6363         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6364         (LINK_SPEC): Define to SH_LINK_SPEC.
6365         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6366         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6367         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6368         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6369         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6370         * config/sh/coff.h: New file.
6371         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6372         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6373         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6374         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6375         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6376         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6377         (PTRDIFF_TYPE): Likewise.
6378         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6379         (CPP_PREDEFINES): Don't define.
6380         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6381         (LINK_SPEC): Define to SH_LINK_SPEC.
6382         (LINK_EMUL_PREFIX): Redefine.
6383         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6384         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6385         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6386         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6387         (TARGET_OS_CPP_BUILTINS): Define.
6388         (TARGET_DEFAULT): Redefine.
6389         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6390         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6391         (LINK_SPEC): Don't redefine.
6392         (LINK_DEFAULT_CPU_EMUL): Redefine.
6393         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6394         * sh.c (sh_asm_named_section): Don't declare / define.
6395         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6396         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6397         (sh64-*-elf* tm_file): Likewise.
6398         (sh-*-rtemself* tm_file): Likewise.
6399         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
6400         (sh-*-linux* tmake_file): Add sh/t-le.
6401         (sh-*-rtems* tm_file): Add sh/coff.h
6402         (sh-*-* tm_file): Likewise.
6404 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6406         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6407         CONSTANT_POOL_ADDRESS_P.
6409         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6411 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
6412             Jeff Law <law@redhat.com>
6414         * optabs.c (expand_binop): Fix nwords sign warnings.
6415         generate pseudo for add_optab.
6417         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6418         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6420 2002-05-28      Marc Espie <espie@openbsd.org>
6422         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
6423         inherited from gas.h.
6424         (ASM_QUAD):  Undef.  OpenBSD does not support it.
6426 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
6428         * doc/install.texi (binaries): Change mingw binaries
6429         link to www.mingw.org.
6431 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6433         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6435 2002-05-28  Richard Henderson  <rth@redhat.com>
6437         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6438         bottom alignment for leaf functions.
6440 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6442         * config/pa/milli32.S, config/pa/lib1funcs.asm,
6443         config/sparc/sol2-g1.asm: Delete unused files.
6445 2002-05-28  Richard Henderson  <rth@redhat.com>
6447         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6449         * flow.c (calculate_global_regs_live): Rename call_used to
6450         invalidated_by_call.  Initialize from regs_invalidated_by_call
6451         instead of call_used_regs.
6453         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6454         DECL_EXTERNAL.
6456 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6458         * tree.h: Don't include real.h.
6459         Forward-declare struct realvaluetype.
6460         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6461         contain it.
6462         (TREE_REAL_CST_PTR): New accessor.
6463         (TREE_REAL_CST): Update.
6464         * real.h: Include machmode.h.
6465         (realvaluetype): Make it struct realvaluetype, not a typedef.
6466         (build_real): Prototype here.
6468         * tree.c: Include real.h.
6469         (build_real): Allocate the REAL_VALUE_TYPE as a separate
6470         object in GC memory, set TREE_REAL_CST_PTR to point to it.
6471         (build_real_from_int_cst): Use build_real.
6472         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6473         REAL_CST.
6475         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6476         fold-const.c, print-tree.c, real.c: Include real.h.
6477         * Makefile.in: Update dependency lists.
6479 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6481         * basic-block.h (last_basic_block): Declare.
6482         (expunge_block_nocompact): Declaration removed.
6483         (compact_blocks): Declare.
6484         * cfg.c (last_basic_block): New variable.
6485         (expunge_block_nocompact): Removed.
6486         (expunge_block): Do not compact basic blocks.
6487         (compact_blocks): New.
6488         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6489         longer change.
6490         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6491         last_basic_block.
6492         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6493         real positions of blocks.
6494         (delete_unreachable_blocks): Simplified -- quadratic behavior now
6495         cannot occur.
6496         (cleanup_cfg): Compact blocks.
6497         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6498         basic_block_info varray.
6499         (flow_delete_block): Comment update.
6500         (back_edge_of_syntactic_loop_p): Modify position check code.
6501         (verify_flow_info): Update checking.
6502         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6503         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6504         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6505         indices no longer change.
6506         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6507         last_basic_block.
6508         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6509         * profile.c (branch_prob): Compact blocks.
6510         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6511         last_basic_block.
6513 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
6515         * config/h8300/h8300.md (two anonymous patterns): New.
6517 2002-05-28  David S. Miller  <davem@redhat.com>
6519         * config/sparc/sparc.md (cpu): Tidy.
6520         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6521         'trap'.
6522         (in_call_delay): Delete reference to 'return' type.
6523         (eligible_for_return_delay, in_return_delay, define_delay
6524         referencing those): Delete.
6525         (rest of file): Use new type attributes as appropriate.
6526         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6527         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6528         * config/sparc/ultra1_2.md (us1_single): New reservation.
6529         (us1_ialuX): Likewise.
6530         * config/sparc/ultra3.md (us3_single): Likewise.
6531         (us3_ialuX): Likewise.
6532         (us3_imul, us3_idiv): Tweak.
6534 2002-05-28  Richard Henderson  <rth@redhat.com>
6536         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6537         STRING_CST.
6539 2002-05-28  Richard Henderson  <rth@redhat.com>
6541         * config.gcc: Obsolete mn10200.
6543 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6545         * cppexp.c (interpret_number): Optimize for single-digit
6546         and less-than-half-precision cases.
6547         (num_trim, num_positive, num_div_op): Cast constants.
6549 2002-05-27  Bo Thorsen  <bo@suse.de>
6551         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6552         3.1 branch. The file was made by Jakub Jelinek.
6553         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6554         support so multilib doesn't break. And don't define this at all
6555         when -Dinhibit_libc is used.
6556         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6557         * config/i386/t-linux64: Implement full multilib support. Patch
6558         originally done by Andreas Jaeger and Jakub Jelinek.
6560 2002-05-27  Roger Sayle  <roger@eyesopen.com>
6562         * c-common.c: Add support for __attribute__((nothrow)) to specify
6563         that a function cannot throw an exception (using TREE_NOTHROW).
6564         (handle_nothrow_attribute): New function to process this attribute.
6566         * doc/extend.texi: Document the new nothrow function attribute.
6568 2002-05-27  H.J. Lu  (hjl@gnu.org)
6570         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6571         (num_positive): Likewise.
6572         (num_div_op): Likewise.
6574 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6576         * c-common.c (c_common_init): Always use intmax_t.
6578 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6580         * c-common.c (c_common_init): Use intmax_t for now.
6582 2002-05-24  Andrew Haley  <aph@redhat.com>
6584         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6585         if T is a boolean type.
6587 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6589         * basic-block.h (last_basic_block): Defined as synonym for
6590         n_basic_blocks.
6591         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6592         flow_depth_first_order_compute, flow_preorder_transversal_compute,
6593         flow_dfs_compute_reverse_init): Replaced relevant occurences of
6594         n_basic_blocks with last_basic_block.
6595         * cfgbuild.c (make_edges): Likewise.
6596         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6597         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6598         * combine.c (combine_instructions): Likewise.
6599         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6600         iterative_dataflow_bitmap): Likewise.
6601         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6602         calc_idoms, idoms_to_doms): Likewise.
6603         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6604         Likewise.
6605         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6606         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6607         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6608         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6609         delete_null_pointer_checks, compute_code_hoist_vbeinout,
6610         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6611         compute_store_table, build_store_vectors): Likewise.
6612         * haifa-sched.c (sched_init): Likewise.
6613         * ifcvt.c (if_convert): Likewise.
6614         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6615         pre_edge_lcm, compute_available, compute_nearerout,
6616         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6617         Likewise.
6618         * predict.c (estimate_probability, process_note_prediction,
6619         note_prediction_to_br_prob): Likewise.
6620         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6621         * recog.c (split_all_insns, peephole2_optimize): Likewise.
6622         * regrename.c (copyprop_hardreg_forward): Likewise.
6623         * resource.c (init_resource_info): Likewise.
6624         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6625         init_regions, schedule_insns): Likewise.
6626         * ssa-ccp.c (ssa_const_prop): Likewise.
6627         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6628         * ssa.c (compute_dominance_frontiers,
6629         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6631         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6632         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6633         sizes consistently.
6635 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6637         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6638         new.
6639         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6640         hoist_insn_after, hoist_insn_to_edge): New.
6642 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
6644         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6645         (PROP_FINAL): Include.
6646         * flow.c (life_analysis, update_life_info,
6647         init_propagate_block_info, mark_set_1, mark_used_rgs):
6648         Support SCAN_DEAD_STORE.
6650 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6652         * c-common.c (c_common_init): Set CPP arithmetic precision.
6653         * cppexp.c (cpp_num_part): Move typedef ...
6654         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6655         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6656         (sanity_checks): Update.
6658 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
6660         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6661         (mkheaders): New rule.
6662         (install-mkheaders): New rule.
6663         * configure.in (all_outputs): Add mkheaders.
6664         * configure: Regenerate.
6665         * mkheaders.in: New file.
6667 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
6669         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6671 2002-05-26  Andreas Jaeger  <aj@suse.de>
6673         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6675 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6677         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6678         right_shift): Remove.
6679         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6680         HIGH_PART): New.
6681         (struct op): Use cpp_num.
6682         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6683         num_part_mul, num_unary_op, num_binary_op, num_negate,
6684         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6685         num_div_op, num_lshift, num_rshift, append_digit): New.
6686         (interpret_number, parse_defined, eval_token, reduce): Update
6687         for two-integer arithmetic.
6688         (binary_handler): New typedef.
6689         (optab): Update.
6690         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6691         (_cpp_parse_expr, reduce): Update to handle two-integers.
6692         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6694 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6696         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6697         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6698         branch insn into account, do not assume 1.
6699         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
6700         over single word insn.  Handle upper half of I/O space too.
6701         * config/avr/avr.md (*sbrx_branch): Use it.
6702         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6703         (*sbix_branch, *sbix_branch_bit7): Likewise.
6704         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
6705         Use RTL peepholes to optimize register operand sign tests.
6707 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6709         * config/avr/avr.c (avr_asm_only_p): New variable.
6710         (avr_override_options): Set it here if AVR1.
6711         (asm_file_start): Test it here, report an error if set.
6713 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
6715         * alias.c: Fix formatting.
6716         * attribs.c: Likewise.
6717         * bb-reorder.c: Likewise.
6718         * bitmap.c: Likewise.
6719         * bitmap.h: Likewise.
6720         * builtins.c: Likewise.
6722 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
6724         * reload.c (find_valid_class): Accept new argument DEST,
6725         choose class accordingly.
6726         (push_reload): Update callers.
6728 2002-05-26  Andreas Jaeger  <aj@suse.de>
6730         * combine.c (combine_instructions): Do not indent #if for
6731         traditional C.
6733 2002-05-25  Richard Henderson  <rth@redhat.com>
6735         * c-pragma.c (apply_pragma_weak): Convert value identifier to
6736         string for decl_attributes.
6737         (handle_pragma_weak): Call assemble_alias if we're modifying
6738         an existing decl.
6740 2002-05-25  Richard Henderson  <rth@redhat.com>
6742         PR target/6788
6743         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
6744         using rtl instead of fprintf.
6745         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
6746         * config/sparc/sparc-protos.h: Update.
6748 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6750         * Makefile.in (C_COMMON_H): Fix.
6751         Update other targets.
6752         * c-common.c: Don't include c-lex.h.
6753         (builtin_define_with_value): Make static and prototype.
6754         (builtin_define_std): Move from c-lex.h.
6755         * c-common.h (init_c_lex): Move from c-lex.h.
6756         * c-decl.c: Don't include c-lex.h.
6757         (make_pointer_declarator): Move from c-parse.in.
6758         * c-lex.c: Don't include c-lex.h.
6759         * c-lex.h: Remove.
6760         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
6761         (make_pointer_declarator): Move to c-decl.c.
6762         * c-pragma.c: Don't include c-lex.h.
6763         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
6764         * c-tree.h (make_pointer_declarator): New.
6765 doc:
6766         * passes.texi, tm.texi: Update.
6767 objc:
6768         * Make-lang.in: Update and correct.
6769         * objc-act.c: Don't include c-lex.h or cpplib.h.
6770 treelang:
6771         * treetree.c: Don't include c-lex.h.
6772 config:
6773         * darwin-c.c: Don't include c-lex.h.
6774         * c4x/c4x-c.c: Don't include c-lex.h.
6775         * c4x/t-c4x: Update.
6776         * i370/i370-c.c: Don't include c-lex.h.
6777         * i370/t-i370: Update.
6778         * i960/i960-c.c: Don't include c-lex.h.
6779         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
6780         * i960/t-960bare: Update.
6781         * i960/t-vxworks: Update.
6782         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
6783         * rs6000/t-darwin: Update.
6784         * rs6000/t-rs6000-c-rule: Update.
6785         * v850/v850-c.c: Don't include c-lex.h.
6786         * v850/v850.c: Don't include c-lex.h or cpplib.h.
6789 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
6791         * tree.def: Fix typos.
6792         * doc/install.texi: Likewise.
6794 2002-05-25  Richard Henderson  <rth@redhat.com>
6796         * configure.in (HAVE_AS_TLS): Add ia64 test.
6797         * configure: Rebuild.
6798         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
6799         (override_options): Set it.
6800         (TARGET_HAVE_TLS): New.
6801         (sdata_symbolic_operand): Look for 's'.
6802         (tls_symbolic_operand): New.
6803         (ia64_expand_load_address): Abort for tls symbols.
6804         (gen_tls_get_addr): New.
6805         (gen_thread_pointer): New.
6806         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
6807         (rtx_needs_barrier): Add new unspecs.
6808         (ia64_encode_section_info): Handle tls symbols.
6809         (ia64_strip_name_encoding): Strip two encoding chars.
6810         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
6811         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
6812         (TARGET_OPTIONS): Add tls-size.
6813         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
6814         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
6815         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
6816         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
6817         (movsf, movdf): Likewise.
6818         (movdi_symbolic): Use match_scratch.  Don't split if we won't
6819         have a scratch availiable.
6820         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
6821         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
6822         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
6823         * config/ia64/ia64-protos.h: Update.
6824         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
6825         sdata_symbolic_operand.
6826         (ASM_OUTPUT_LABELREF): Strip two characters.
6828 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
6830         * combine.c (simplify_set): Remove an unnecessary subreg.
6832 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6834         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
6836         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
6838 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
6840         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
6842 2002-05-25  Roger Sayle  <roger@eyesopen.com>
6844         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
6845         (cond (compare x y) 0) into the equivalent (cond x y).
6847 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
6849         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
6851 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
6853         * config.gcc: Remove all stanzas for previously obsoleted
6854         systems.  Where necessary, add explicit error stanzas to
6855         prevent removed systems from being misidentified as something
6856         else.  Begin a fresh obsoletions list, with the systems that
6857         were reprieved last round.
6858         * doc/install.texi: Remove all mention of dead targets.
6859         * fixinc/mkfixinc.sh: Likewise.
6861         * config/arm/arm.h: Bit 31 of target_flags is no longer
6862         reserved.
6864         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
6865         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
6866         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
6867         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
6868         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
6869         config/alpha/osf12.h, config/alpha/osf2or3.h,
6870         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
6871         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
6872         config/clipper/clipper-protos.h, config/clipper/clipper.c,
6873         config/clipper/clipper.h, config/clipper/clipper.md,
6874         config/clipper/clix.h, config/convex/convex-protos.h,
6875         config/convex/convex.c, config/convex/convex.h,
6876         config/convex/convex.md, config/convex/fixinc.convex,
6877         config/convex/proto.h, config/elxsi/elxsi-protos.h,
6878         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
6879         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
6880         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
6881         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
6882         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
6883         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
6884         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
6885         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
6886         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
6887         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
6888         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
6889         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
6890         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
6891         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
6892         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
6893         config/m68k/altos3068.h, config/m68k/apollo68.h,
6894         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
6895         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
6896         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
6897         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
6898         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
6899         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
6900         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
6901         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
6902         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
6903         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
6904         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
6905         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
6906         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
6907         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
6908         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
6909         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
6910         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
6911         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
6912         config/mips/dec-osf1.h, config/mips/elflorion.h,
6913         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
6914         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
6915         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
6916         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
6917         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
6918         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
6919         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
6920         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
6921         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
6922         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
6923         config/ns32k/sequent.h, config/ns32k/tek6000.h,
6924         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
6925         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
6926         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
6927         config/sparc/rtems.h, config/we32k/we32k-protos.h,
6928         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
6929         Delete file.
6931 2002-05-24  Richard Henderson  <rth@redhat.com>
6933         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
6934         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
6935         * config/i386/i386.c (tls_model_chars): Add leading space.
6936         (tls_symbolic_operand): Don't bias by 1.
6937         (legitimize_address): Don't unbias by 1.
6939 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6941         * lcm.c (optimize_mode_switching): Change bb used as indices
6942         to bb->index.
6944 2002-05-24  Richard Henderson  <rth@redhat.com>
6946         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
6947         of update_life_info_in_dirty_blocks.
6949 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
6951         PR other/6782
6952         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
6954 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6956         PR preprocessor/6780
6957         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
6959 2002-05-24  Jim Blandy  <jimb@redhat.com>
6961         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
6962         entry with a type code of zero, marking the end of the compilation
6963         unit's macro info.
6965 2002-05-24  Richard Henderson  <rth@redhat.com>
6967         * varasm.c (asm_output_bss): Always output one byte.
6968         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6970 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6972         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
6973         namespace.
6975 2002-05-24  Andreas Jaeger  <aj@suse.de>
6977         * ggc-page.c (alloc_page): Cast variables of type size_t to
6978         unsigned long, adjust printf format string.
6979         (ggc_alloc): Likewise.
6980         (ggc_print_statistics): Likewise.
6981         (ggc_print_statistics): Correct printf format string for SCALE to
6982         use unsigned long.
6984 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
6986         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
6988 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
6989             Zack Weinberg     <zack@codesourcery.com>
6991         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
6992         quoted strings.
6993         * dwarf2out.c (lookup_filename): Properly quote filename in .file
6994         directive in assembly file.
6995         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6996         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6997         * config/pj/pj.h (ASM_FILE_START): Likewise.
6998         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6999         * config/avr/avr.c (asm_file_end): Likewise.
7000         * toplev.c (output_quoted_string): Handle possibly signed plain
7001         char.
7002         * toplev.h (output_clean_symbol_name): Declare
7003         * toplev.c (output_clean_symbol_name): Define.
7004         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7005         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7007 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
7009         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7011 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
7013         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7014         of size of unsigned.
7016 2002-05-23  Richard Henderson  <rth@redhat.com>
7018         * configure.in (HAVE_AS_TLS): New test.
7019         * config.in, configure: Rebuild.
7020         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7021         (ix86_tls_dialect_string, ix86_tls_dialect): New.
7022         (override_options): Set it.
7023         (tls_model_chars, tls_symbolic_operand): New.
7024         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7025         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7026         (local_exec_symbolic_operand): New.
7027         (get_pic_label_name): Merge into output_set_got.
7028         (ix86_asm_file_end): Emit pic_label_name if defined.
7029         (legitimate_constant_p, constant_address_p): New.
7030         (legitimate_pic_operand_p): New.
7031         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7032         (legitimate_address_p): Likewise.
7033         (ix86_encode_section_info): Rename from i386_; handle tls decls.
7034         (ix86_strip_name_encoding): New.
7035         (get_thread_pointer): New.
7036         (legitimize_address): Handle tls symbols.
7037         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7038         Remove UNSPEC_PLT.
7039         (struct machine_function): Add some_ld_name.
7040         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7041         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
7042         (output_addr_const_extra): New.
7043         (maybe_get_pool_constant): New.
7044         (ix86_split_to_parts): Use it.
7045         (ix86_expand_move): Handle tls symbols.
7046         (ix86_tls_get_addr): New.
7047         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7048         (TARGET_OPTIONS): Add tls-dialect.
7049         (CONSTANT_ADDRESS_P): Use new out-of-line function.
7050         (LEGITIMATE_CONSTANT_P): Likewise.
7051         (LEGITIMATE_PIC_OPERAND_P): Likewise.
7052         (TARGET_STRIP_NAME_ENCODING): New.
7053         (ASM_OUTPUT_LABELREF): New.
7054         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7055         (OUTPUT_ADDR_CONST_EXTRA): New.
7056         (PREDICATE_CODES): Update.
7057         (ix86_tls_dialect, ix86_tls_dialect_string): New.
7058         * config/i386/i386.md: Regroup and renumber unspec constants.
7059         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7060         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7061         (tls_global_dynamic, tls_local_dynamic_base): New.
7062         (tls_local_dynamic_once): New.
7063         * config/i386/i386-protos.h: Update.
7065 2002-05-23  Richard Henderson  <rth@redhat.com>
7067         * genemit.c (gen_insn): Print file:lineno comment before function.
7068         (main): likewise.
7069         * gensupport.c (struct queue_elem): Add filename member.
7070         (queue_pattern): Initialize it; update all callers.
7071         (process_include): Don't free filename.
7072         (read_md_rtx): Set read_rtx_filename.
7074 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
7076         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7078 2002-05-23  Richard Henderson  <rth@redhat.com>
7080         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7082 2002-05-23  Richard Henderson  <rth@redhat.com>
7084         * doc/extend.texi (C++98 Thread-Local Edits): Update with
7085         commentary from Mark.
7087 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7089         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7090         Use FOR_EACH_BB macros to iterate over basic block chain.
7091         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7092         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7093         Likewise.
7094         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7095         find_unreachable_blocks, create_edge_list, verify_edge_list,
7096         remove_fake_edges, add_noreturn_fake_exit_edges,
7097         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7098         Likewise.
7099         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7100         find_sub_basic_blocks): Likewise.
7101         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7102         Likewise.
7103         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7104         Likewise.
7105         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7106         Likewise.
7107         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7108         commit_edge_insertions, commit_edge_insertions_watch_calls,
7109         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7110         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7111         * conflict.c (conflict_graph_compute): Likewise.
7112         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7113         df_modified_p, df_refs_unlink, df_dump): Likewise.
7114         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7115         * final.c (compute_alignments): Likewise.
7116         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7117         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7118         count_or_remove_death_notes): Likewise.
7119         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7120         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7121         classic_gcse, compute_transp, cprop, compute_pre_data,
7122         compute_transpout, invalidate_nonnull_info,
7123         delete_null_pointer_checks_1, delete_null_pointer_checks,
7124         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7125         compute_store_table, build_store_vectors, store_motion): Likewise.
7126         * global.c (global_conflicts, mark_elimination): Likewise.
7127         * graph.c (print_rtl_graph_with_bb): Likewise.
7128         * haifa-sched.c (sched_init): Likewise.
7129         * ifcvt.c (if_convert): Likewise.
7130         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7131         compute_available, compute_nearerout, compute_rev_insert_delete,
7132         optimize_mode_switching): Likewise.
7133         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7134         * predict.c (estimate_probability, note_prediction_to_br_prob,
7135         propagate_freq, counts_to_freqs, expensive_function_p,
7136         estimate_bb_frequencies): Likewise.
7137         * profile.c (instrument_edges, get_exec_counts,
7138         compute_branch_probabilities, compute_checksum, branch_prob,
7139         find_spanning_tree): Likewise.
7140         * recog.c (split_all_insns, peephole2_optimize): Likewise.
7141         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7142         Likewise.
7143         * regclass.c (scan_one_insn, regclass): Likewise.
7144         * regmove.c (mark_flags_life_zones, regmove_optimize,
7145         record_stack_memrefs): Likewise.
7146         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7147         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7148         * resource.c (find_basic_block): Likewise.
7149         * sched-ebb.c (schedule_ebbs): Likewise.
7150         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7151         find_single_block_region, find_rgns, schedule_insns)
7152         * sibcall.c (optimize_sibling_and_tail_recursive_call)
7153         * ssa-ccp.c (optimize_unexecutable_edges,
7154         ssa_ccp_df_delete_unreachable_insns): Likewise.
7155         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7156         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7157         rename_block, convert_to_ssa, compute_conservative_reg_partition,
7158         compute_coalesced_reg_partition, rename_equivalent_regs,
7159         convert_from_ssa): Likewise.
7160         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7161         process_for_unwind_directive): Likewise.
7163         * df.c (FOR_ALL_BBS): Removed.
7164         * gcse.c (struct null_pointer_info): Type of current_block field
7165         changed.
7166         (struct reg_avail_info): Type of last_bb field changed.
7167         * config/ia64/ia64.c (block_num): Removed.
7168         (need_copy_state): Type changed.
7169         (last_block): New.
7171 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7173         * cppinit.c (mark_named_operators): Split out from init_builtins.
7174         (cpp_finish_options): Call it from here instead.
7176 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7178         * builtin-attrs.def: Update copyright years.
7179         (ATTR_NONNULL): New attribute identifier.
7180         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7181         attribute tree lists.
7182         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7183         format operand.
7184         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7185         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7186         attribute lists.  Chain the appropriate nonnull attribute.
7187         * c-format.c (check_format_arg): Remove null format string
7188         warning.
7189         * testsuite/gcc.dg/format/null-1.c: New test.
7191 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7193         * Makefile.in (ADAC): Define.
7194         (SYSLIBS): Define.
7195         (.SUFFIXES): Move before language makefile fragments.
7196         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7198 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
7200         * varasm.c (make_decl_rtl): Don't allow weak variables to be
7201         placed in common.
7203 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7205         * cfg.c (dump_flow_info): Print results of
7206         maybe_hot/probably_never_executed predicates.
7207         * toplev.c (open_dump_file): Print function frequency.
7209 2002-05-23  David S. Miller  <davem@redhat.com>
7211         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7212         regsets.
7214 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7216         * c-common.c (warn_nonnull): Declare.
7217         (c_common_attribute_table): Add "nonnull" attribute.
7218         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7219         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7220         check_function_arguments_recurse): New functions.
7221         * c-common.h (warn_nonnull): Declare extern.
7222         (check_function_arguments, check_function_arguments_recurse): New
7223         prototypes.
7224         * c-decl.c (c_decode_option): Add -Wnonnull option.
7225         * c-format.c (set_Wformat): Set warn_nonnull if enabling
7226         format checking.
7227         (format_check_context): New structure.
7228         (check_format_info_recurse): Remove recursion and rename to...
7229         (check_format_arg): ...this.  Update comment.
7230         (check_format_info): Use check_function_arguments_recurse.
7231         * c-typeck.c (build_function_call): Call check_function_arguments
7232         instead of check_function_format.
7233         * doc/extend.texi: Document "nonnull" attribute.
7234         * doc/invoke.texi: Docuemnt -Wnonnull option.
7235         * testsuite/gcc.dg/nonnull-1.c: New test.
7236         * testsuite/gcc.dg/nonnull-2.c: New test.
7238 2002-05-23  David S. Miller  <davem@redhat.com>
7240         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7241         * cfgcleanup.c (cleanup_cfg): If it is set do not
7242         attempt to delete trivially dead insns.
7243         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7244         * toplev.c (rest_of_compilation): Document non-trivial aspect
7245         the RTL before optimize_save_area_alloca is run.
7247 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7249         * c-lex.c (indent_level): Remove.
7250         (cb_file_change, c_lex): Remove indent level handling.
7251         * c-lex.h (indent_level): Remove.
7252         * input.h (struct file_stack): Remove indent_level.
7253         * toplev.c (push_srcloc): Remove indent_level handling.
7255 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7257         PR target/6753
7258         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7259         of x in constraints for clarity.
7260         (sse_mov?fcc split): abort if op2 == op3.
7261         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7262         sse_movsfcc_const0_4): Add earlyclobber.
7263         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7264         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
7265         Use Y instead of x in constraints.
7267 2002-05-23  Richard Henderson  <rth@redhat.com>
7269         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7270         (C++98 Thread-Local Edits): New subsection.
7272         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7273         (ix86_arch): Set type to enum processor_type.
7275         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7276         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7278 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7280         * configure.in: Fix as version test for binutils 2.12.1 releases
7281         (without dates).
7282         * configure: Rebuilt.
7284 2002-05-23  Richard Henderson  <rth@redhat.com>
7286         * config/i386/i386.c (get_pic_label_name): New.
7287         (load_pic_register): Remove.
7288         (output_set_got): New.
7289         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7290         * config/i386/i386.md (UNSPEC_SET_GOT): New.
7291         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7292         (prologue_set_got, prologue_get_pc): Remove.
7293         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7294         (builtin_setjmp_receiver): Use gen_set_got.
7295         * config/i386/i386-protos.h: Update.
7297 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
7299         * gcse.c (hash_expr): Do not use alias set for hashing.
7301 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
7303         * dbxout.c (dbxout_class_name_qualifiers): New function.
7304         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7306 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7308         * cpperror.c (_cpp_begin_message): No special casing
7309         of CPP_FATAL_LIMIT.
7310         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7311         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7312         * cpplib.c (do_include_common): Use DL_ERROR.
7313         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7314         (DL_ICE): Renumber.
7315         * fix-header.c (read_scan_file): Update.
7317 2002-05-22  Richard Henderson  <rth@redhat.com>
7319         * config/i386/i386.c (ix86_expand_call): New function, extracted
7320         from md call patterns.  Add pic_offset_table_rtx to
7321         CALL_INSN_FUNCTION_USAGE when needed.
7322         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7323         (call_value_pop, call_value, untyped_call): Likewise.
7324         (call_exp, call_value_exp): Remove.
7325         * config/i386/i386-protos.h: Update.
7327 2002-05-22  Richard Henderson  <rth@redhat.com>
7329         * varasm.c (default_section_type_flags): Check for VAR_DECL
7330         before using DECL_THREAD_LOCAL.
7332 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
7334         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7335         (STARTFILE_SPEC): Delete PE crt0.o.
7336         * config/rs6000/aix51.h: Same.
7337         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7338         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7339         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
7340         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7341         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7343 2002-05-22  Richard Henderson  <rth@redhat.com>
7345         * varasm.c (default_section_type_flags): Handle tls data and
7346         default sections.
7347         (default_unique_section): Handle tls sections.
7349 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
7351         * configure.in (CROSS): Define NATIVE_CROSS.
7352         * configure: Regenerate.
7353         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7354         (startfile_prefix_spec): New var.
7355         (static_specs): Add startfile_prefix_spec.
7356         (do_spec_2): Split out from..
7357         (do_spec): ..here.
7358         (main): Process startfile_prefix_spec.
7359         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7360         dynamic linker.
7361         (STARTFILE_PREFIX_SPEC): Define.
7362         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7363         absolute paths.
7365 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7367         * cpperror.c: Fix formatting.
7368         * cppexp.c: Likewise.
7369         * cppfiles.c: Likewise.
7370         * cpphash.c: Likewise.
7371         * cpphash.h: Likewise.
7372         * cppinit.c: Likewise.
7373         * cpplex.c: Likewise.
7374         * cpplib.c: Likewise.
7375         * cppmacro.c: Likewise.
7376         * cppmain.c: Likewise.
7377         * cppspec.c: Likewise.
7379 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7381         * combine.c (force_to_mode): Use gen_int_mode.
7382         Don't clear CONST_INT bits outside of mode.
7384 2002-05-22  Richard Henderson  <rth@redhat.com>
7386         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7387         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7389 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7391         PR c/6643
7392         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7393         if DECL_SIZE_UNIT is INTEGER_CST.
7395 2002-05-22  Richard Henderson  <rth@redhat.com>
7397         * flow.c (life_analysis): Delete broken reg_label check.
7399 2002-05-22  Richard Henderson  <rth@redhat.com>
7401         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7402         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7404 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7406         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7407         (embed-bb.c): New rule.
7408         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7409         * config/sh/embed_bb.c: Delete.
7411 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7413         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7415 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7417         * config/h8300/h8300.md (*andorqi3): New.
7419 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7421         PR preprocessor/6517
7422         * Makefile.in: Update.
7423         * c-common.c (c_common_post_options): Add preprocessor
7424         errors to the error count.
7425         * c-lang.c (c_post_options): Kill.
7426         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7427         * hooks.h: Add header guards.
7428         * langhooks-def.h: Include hooks.h.
7429         (LANG_HOOKS_POST_OPTIONS): Update.
7430         * langhooks.h (struct lang_hooks): Update post_options.
7431         * toplev.c (parse_options_and_default_flags): Update.
7432 objc:
7433         * objc-lang.c (objc_post_options): Kill.
7434         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7436 2002-05-21  Bruce Korb  <bkorb@gnu.org>
7438         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7439         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7440         * fixinc/fixincl.x: regen.
7442 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
7444         * cfgbuild.c: Fix formatting.
7445         * cfg.c: Likewise.
7446         * cfgcleanup.c: Likewise.
7447         * cfglayout.c: Likewise.
7448         * cfgloop.c: Likewise.
7449         * cfgrtl.c: Likewise.
7451 2002-05-21  Richard Henderson  <rth@redhat.com>
7453         * c-common.h (enum rid): Add RID_THREAD.
7454         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7455         (grokdeclarator): Grok __thread.
7456         * c-parse.in (reswords): Add __thread.
7457         (rid_to_yy): Add RID_THREAD.
7459         * tree.h (DECL_THREAD_LOCAL): New.
7460         (struct tree_decl): Add thread_local_flag.
7461         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7462         * tree.c (staticp): TLS variables are not static.
7464         * target-def.h (TARGET_HAVE_TLS): New.
7465         * target.h (have_tls): New.
7466         * output.h (SECTION_TLS): New.
7467         * varasm.c (assemble_variable): TLS variables can't be common for now.
7468         (default_section_type_flags): Handle .tdata and .tbss.
7469         (default_elf_asm_named_section): Handle SECTION_TLS.
7470         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7472         * flags.h (flag_tls_default): Declare.
7473         * toplev.c (flag_tls_default): Define.
7474         (display_help): Display help for it.
7475         (decode_f_option): Set it.
7477         * doc/extend.texi (Thread-Local): New node describing language-level
7478         thread-local storage.
7479         * doc/invoke.texi (-ftls-model): Document.
7481         * fixinc/inclhack.def (thread_keyword): New.
7482         * fixinc/fixincl.x: Rebuild.
7484 2002-05-21  Jeffrey A Law  <law@redhat.com>
7486         * optabs.c (expand_binop): For double-word integer multiplies,
7487         do not compute intermediate results into something that is
7488         not a register (such as a SUBREG or MEM).
7490         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7491         (ix86_sched_reorder): Make sure to initialize scheduling
7492         data even when there's only one insn in the ready queue.
7494 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7496         * genautomata.c (reserv_sets_hash_value): Fix a typo.
7498 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7500         * genautomata.c (reserv_sets_hash_value): Define hash_value as
7501         set_el_t.  Transform the hash value into unsigned.
7502         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7503         (transform_3): Add code to process `(A,B)+(D,E)'.
7505 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
7507         * reload1.c (do_output_reload): Run delete_output_reload
7508         only if optimizing.
7510 2002-05-21  Roger Sayle  <roger@eyesopen.com>
7512         PR middle-end/6600
7513         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7514         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
7515         (can_store_by_pieces): ... and here to limit the largest mode used.
7516         Add a comment to document this function.
7518 2002-05-21  Richard Henderson  <rth@redhat.com>
7520         * flow.c (life_analysis): Fix test for deleted label.
7522 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7524         * doc/tm.texi: Fix typo.
7526 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
7528         * c-common.c (c_common_init): Set options->unsigned_char from
7529         flag_signed_char.
7530         (cb_register_builtins): Define __STRICT_ANSI__ and
7531         __CHAR_UNSIGNED__ here...
7532         * cppinit.c (init_builtins): Not here.
7533         (cpp_create_reader): unsigned_char option defaults to 0, not
7534         !DEFAULT_SIGNED_CHAR.
7535         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7536         and -funsigned-char.
7538         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7539         * cpphash.c (_cpp_init_hashtable): Don't set it.
7540         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7541         directly.  Clarify comment.
7543 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7545         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7546         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
7547         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
7548         BASIC_BLOCK (n_basic_blocks - 1).
7549         * cfganal.c (can_fallthru, flow_call_edges_add,
7550         flow_preorder_transversal_compute): Too.
7551         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7552         find_sub_basic_blocks): Too.
7553         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7554         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7555         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7556         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7557         * combine.c (this_basic_block): Type changed to basic_block.
7558         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7559         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7560         get_last_value, distribute_notes, distribute_links): Too.
7561         * final.c (compute_alignments): Too.
7562         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7563         * function.c (thread_prologue_and_epilogue_insns): Too.
7564         * gcse.c (compute_code_hoist_vbeinout): Too.
7565         * global.c (build_insn_chain): Too.
7566         * ifcvt.c (find_if_block, find_cond_trap): Too.
7567         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7568         * regmove.c (regmove_optimize): Too.
7569         * resource.c (find_basic_block): Too.
7570         * sched-ebb.c (schedule_ebbs): Too.
7571         * ssa-dce.c (find_control_dependence, find_pdom): Too.
7573 2002-05-21  Andreas Jaeger  <aj@suse.de>
7575         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7577 2002-05-21  Richard Henderson  <rth@redhat.com>
7579         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7580         unspec names, not numbers.
7582 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7584         * doc/sourcebuild.texi: Mention snapshot-README and
7585         snapshot-index.html as needing updating for new front ends.
7587 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7589         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7590         disabling checking, and avoid multiple evaluation of RTX.
7592 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
7594         * bitmap.c (bitmap_find_bit): Return early if we have the correct
7595         element cached.
7597 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7599         * profile.c (gen_edge_profiler):  Set alias set before the memory is
7600         used.
7602 2002-05-20  David S. Miller  <davem@redhat.com>
7604         * cselib.c (max_value_regs): New.
7605         (cselib_lookup, cselib_invalidate_regno): Initialize it when
7606         adding new entries to the REG_VALUES table and we are dealing with
7607         a hard register.
7608         (clear_table): Initialize it.
7609         (cselib_invalidate_regno): Use it to determine which hard
7610         registers to scan when mode is not VOIDmode.
7612 2002-05-20  Duraid Madina   <duraid@fl.net.au>
7614         * tradcpp.c (fixup_newlines): Use old-style function header.
7616 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
7618         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7620 2002-05-20  H.J. Lu  (hjl@gnu.org)
7622         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7624         * config/mips/mips.h (DFMODE_NAN): Defined.
7625         (SFMODE_NAN): Likewise.
7627 2002-05-20  Dale Johannesen  <dalej@apple.com>
7629         * combine.c (cant_combine_insn_p):  Back out my
7630         previous patch.
7632 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
7634         * params.c: Fix formatting.
7635         * params.h: Likewise.
7636         * predict.c: Likewise.
7637         * prefix.c: Likewise.
7638         * print-rtl.c: Likewise.
7639         * print-tree.c: Likewise.
7640         * profile.c: Likewise.
7642 2002-05-20  H.J. Lu  (hjl@gnu.org)
7644         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7646 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
7648         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7649         switches straight on to the assembler, do not abbreviate them.
7650         * config/arm/elf.h (ASM_SPEC): As above.
7651         * config/arm/semi.h (ASM_SPEC): As above.
7652         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7653         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7654         -mcpu=xscale on to the assembler by default.
7655         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7657 2002-05-20  Richard Henderson  <rth@redhat.com>
7659         * cse.c (canon_hash): Reorder do_not_record test.  Always
7660         allow pic_offset_table_rtx.
7662 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
7664         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7665         (expand_binop): Ditto (3 times).
7667 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
7669         * Makefile.in (distclean): Remove QMTest stuff.
7670         (QMTEST_PATH): New variable.
7671         (QMTESTFLAGS): Likewise.
7672         (QMTESTRUNFLAGS): Likewise.
7673         (QMTEST): Likewise.
7674         (QMTEST_GPP_TESTS): Likewise.
7675         (QMTEST_DIR): Likewise.
7676         (QMTEST_DIR/context): New target.
7677         (qmtest-g++): Likeise.
7678         (qmtest-gui): Likewise.
7679         (QMTEST_DIR/gpp-expected.qmr): Likewise.
7681 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
7683         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7684         an altivec register if TARGET_ALTIVEC.
7686         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7687         to ALTIVEC_VECTOR_MODE.
7688         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7689         (rs6000_va_arg): Vectors may go in registers if they are not
7690         altivec vectors.
7692 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
7694         * protoize.c: Fix formatting.
7696 2002-05-19  Richard Henderson  <rth@redhat.com>
7698         * gensupport.c (init_include_reader): Merge into ...
7699         (process_include): ... here.  Simplify composite path creation.
7700         Plug memory leaks.  Fix file/line number tracking.  Do not
7701         process_define_cond_exec.  Return void.
7702         (process_rtx): Don't check process_include return value.
7704 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7706         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
7707         fields.
7708         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7709         traversing basic block chain.
7710         (create_basic_block_structure, create_basic_block): Declaration changed.
7711         (link_block, unlink_block): Declare.
7712         * cfg.c (entry_exit_blocks): Initialize new fields.
7713         (link_block, unlink_block): New.
7714         (expunge_block_nocompact): Unlink basic block.
7715         (dump_flow_info): Print prev_bb/next_bb fields.
7716         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
7717         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
7718         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
7719         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7720         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
7721         (verify_flow_info): Check that list agrees with numbering.
7723 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7725         * c-common.c (preprocessing_asm): New macro.
7726         * c-lex.h (builtin_define, builtin_assert): Use pfile.
7727 doc:
7728         * tm.texi: Update.
7729 config/alpha:
7730         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
7731         (CPP_SPEC): Simplify.
7732         (TARGET_CPU_CPP_BUILTINS): Update.
7733         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
7734         (CPP_SPEC): Simplify.
7735         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
7736         (TARGET_OS_CPP_BUILTINS): Update.
7737         * osf.h (CPP_XFLOAT_SPEC): Kill.
7738         (TARGET_OS_CPP_BUILTINS): Update.
7739         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
7740         * osf5.h (CPP_XFLOAT_SPEC): Kill.
7741         * vms.h (CPP_SUBTARGET_SPEC): Kill.
7742         (TARGET_OS_CPP_BUILTINS): Update.
7744 2002-05-19  Richard Henderson  <rth@redhat.com>
7746         * varasm.c (default_binds_local_p): Fix typo.
7748 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7750         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
7751         CONST_INT operand to the correct mode after adding 1 to it.
7753 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
7755         * config.gcc (powerpc-wrs-windiss*): New target.
7757 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7759         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
7760         (ashrdi3): Use it.
7762 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
7764         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
7765         alphasort.
7766         * config.in: Regenerated.
7767         * configure: Regenerated.
7769 2002-05-19  Richard Henderson  <rth@redhat.com>
7771         * target-def.h (TARGET_BINDS_LOCAL_P): New.
7772         * target.h (struct gcc_target): Move boolean fields to the end.
7773         Add binds_local_p.
7774         * varasm.c (default_binds_local_p): New.
7775         * output.h: Declare it.
7777         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
7778         * config/cris/cris.c (cris_encode_section_info): Likewise.
7779         * config/i386/i386.c (i386_encode_section_info): Likewise.
7780         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7781         * config/sh/sh.c (sh_encode_section_info): Likewise.
7783         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
7784         (TARGET_BINDS_LOCAL_P): New.
7786 2002-05-19  Richard Henderson  <rth@redhat.com>
7788         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
7789         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
7790         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
7792         * toplev.c (display_help): Kill -a -ax help.
7794         * config/1750a/1750a.h, config/alpha/alpha.h,
7795         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
7796         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
7797         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
7798         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
7800         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
7801         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
7803         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
7804         (ix86_output_function_block_profiler): Kill.
7805         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
7806         (m68hc11_function_block_profiler): Kill.
7807         * config/m68hc11/m68hc11-protos.h: Update.
7808         * config/m88k/m88k.c (output_block_profiler): Kill.
7809         (output_function_block_profiler): Kill.
7810         * config/m88k/m88k-protos.h: Update.
7812 2002-05-19  Richard Henderson  <rth@redhat.com>
7814         * system.h (STRIP_NAME_ENCODING): Poison it.
7815         * output.h (STRIP_NAME_ENCODING): Remove.
7816         (default_strip_name_encoding): Declare.
7817         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
7818         * target.h (strip_name_encoding): New.
7819         * varasm.c (default_strip_name_encoding): New.
7821         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
7822         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
7823         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
7824         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
7825         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
7826         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
7827         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
7828         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
7829         config/v850/v850.h: Use the hook, not the macro.
7831         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7832         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
7833         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
7834         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
7835         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
7836         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
7837         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7838         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
7839         config/v850/v850.c, config/v850/v850.h:
7840         Move STRIP_NAME_ENCODING to out-of-line function and add
7841         TARGET_STRIP_NAME_ENCODING.
7843         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
7844         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
7845         with TARGET_STRIP_NAME_ENCODING referencing existing function;
7846         make function static.
7848         * xcoffout.c: Include target.h
7849         * Makefile.in (xcoffout.o): Update.
7851         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
7852         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
7853         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
7854         reloc argument unused.
7855         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
7857         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
7858         STRIP_NAME_ENCODING docs.
7860 2002-05-19  Andreas Jaeger  <aj@suse.de>
7862         * gengenrtl.c: Add prototype for excluded_rtx.
7864         * real.h: Add prototype for exact_real_truncate.
7866 2002-05-18  Richard Henderson  <rth@redhat.com>
7868         * system.h (ENCODE_SECTION_INFO): Poison it.
7869         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
7870         * target.h (encode_section_info): New.
7871         * varasm.c (make_decl_rtl, output_constant_def): Use it.
7872         * hooks.c (hook_tree_int_void): New.
7873         * hooks.h: Declare it.
7875         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7876         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
7877         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
7878         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
7879         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
7880         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
7881         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7882         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
7883         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7884         config/mcore/mcore-protos.h, config/mcore/mcore.c,
7885         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
7886         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
7887         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
7888         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
7889         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
7890         referencing existing function.  Make function static.
7892         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
7893         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
7894         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
7895         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
7896         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
7897         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
7898         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
7899         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
7900         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
7901         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
7902         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
7903         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
7904         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
7905         Move ENCODE_SECTION_INFO to out-of-line function and add
7906         TARGET_ENCODE_SECTION_INFO.
7908         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
7909         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7911         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
7912         from SUBTARGET_*
7913         (switch_to_section): Replace in_rdata case with in_readonly_data.
7915         * config/h8300/h8300.c (h8300_encode_label): Make static.
7916         * config/h8300/h8300-protos.h: Update.
7918         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
7919         from rs6000_encode_section_info; make static.
7920         (rs6000_xcoff_encode_section_info): New.
7922         * config/v850/v850.c (v850_encode_data_area): Make static.
7923         * config/v850/v850-protos.h: Update.
7925         * config/vax/vax.c: Include flags.h.
7926         (vms_select_section): Fix typo.
7928         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
7929         ENCODE_SECTION_INFO docs.
7931 2002-05-18  Richard Henderson  <rth@redhat.com>
7933         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
7934         REGISTER_TARGET_PRAGMAS.
7935         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
7937         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
7939 2002-05-18  Richard Henderson  <rth@redhat.com>
7941         * system.h (SELECT_RTX_SECTION): Poison.
7942         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
7943         * target.h (select_rtx_section): New.
7944         * varasm.c (output_constant_pool): Use it.
7945         (default_select_rtx_section, default_elf_select_rtx_section): New.
7946         * output.h: Declare them.
7948         * config/darwin.h (SELECT_RTX_SECTION): Move ...
7949         * config/darwin.c (machopic_select_rtx_section): ... here.
7950         * config/darwin-protos.h: Update.
7952         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
7953         * config/nextstep.c (machopic_select_rtx_section): ... here.
7954         (nextstep_select_section): Rename variable to avoid macro clash.
7955         * config/nextstep-protos.h: Update.
7957         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
7958         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
7959         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
7960         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
7961         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
7962         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
7963         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
7964         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
7965         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
7966         (SELECT_RTX_SECTION): Remove.
7968         * config/darwin.h, config/elfos.h, config/nextstep.h,
7969         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
7970         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
7971         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
7972         config/sparc/lynx.h, config/xtensa/xtensa.c
7973         (TARGET_ASM_SELECT_RTX_SECTION): New.
7975         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
7976         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
7977         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
7978         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
7979         (ia64_aix_select_rtx_section): New.
7980         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
7981         redefining.
7982         * config/mips/mips.c (mips_select_rtx_section): Make static.
7983         Support ELF SHF_MERGE features.
7984         * config/mips/mips-protos.h: Update.
7985         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
7986         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
7987         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
7988         make static, fall back to default_elf_select_rtx_section.
7989         * config/rs6000/rs6000-protos.h: Update.
7990         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
7991         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
7992         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
7993         * config/romp/romp.c (romp_select_rtx_section): New.
7994         * config/s390/s390.c (s390_select_rtx_section): New.
7995         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
7996         declarations before target macro definition.
7997         (xtensa_emit_call): Use static buffer.
7998         (xtensa_select_rtx_section): New.
7999         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8000         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8001         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8003         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8004         SELECT_RTX_SECTION docs.
8006 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
8008         * i386.md (movsi/movdi): Fix template.
8009         (sse2 patterns): Set attributes consistently.
8011         * i386.md (pushqi2, ashrqi_*): Fix constraint.
8013 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
8015         * optabs.c (complex_part_zero_p): New.
8016         * (expand_cmplxdiv_straight): Use it.
8017         * (expand_cmplxdiv_wide): Ditto.
8018         * (expand_binop): Ditto.
8020 2002-05-18  Richard Henderson  <rth@redhat.com>
8022         * final.c (HAVE_READONLY_DATA_SECTION): New.
8023         (shorten_branches): Use it instead of ifdefs.
8024         * varasm.c (enum in_section): Add in_readonly_data.
8025         (text_section, data_section): Tidy.
8026         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8028         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8029         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8030         (READONLY_DATA_SECTION): Don't undef.
8032         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8033         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8034         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8036         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8037         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8038         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8039         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8041         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8042         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8043         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8044         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8045         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8046         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8047         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8048         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8049         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8051         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8052         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8053         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8054         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8055         config/pa/pa64-hpux.h, config/sparc/litecoff.h
8056         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8058         * config/elfos.h, config/netware.h, config/svr3.h,
8059         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8060         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8061         config/h8300/h8300.h, config/i386/i386-interix.h,
8062         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8063         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8065         * config/elfos.h, config/netware.h, config/svr3.h,
8066         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8067         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8068         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8069         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8071         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8072         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8073         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8074         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8075         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8076         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8077         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8078         config/rs6000/sysv4.h, config/v850/v850.h
8079         (EXTRA_SECTIONS): Remove in_const/in_rdata.
8080         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8082         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8083         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8084         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8085         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8086         * config/alpha/alpha.c (alpha_start_function): Likewise.
8087         (alpha_write_linkage): Likewise.
8088         * config/m32r/m32r.c (m32r_select_section): Likewise.
8089         * config/m88k/m88k.c (m88k_select_section): Likewise.
8090         * config/mips/mips.c (mips_select_rtx_section): Likewise.
8091         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8092         (rs6000_elf_select_section): Likewise.
8093         * config/v850/v850.c (v850_select_section): Likewise.
8095         * config/1750a/1750a.h, config/i860/sysv3.h
8096         (READONLY_DATA_SECTION_ASM_OP): New.
8097         READONLY_DATA_SECTION_ASM_OP.
8098         * config/i386/interix.c, config/i386/winnt.c
8099         (i386_pe_unique_section): Always use .rdata prefix.
8100         * config/pa/som.h (readonly_data): Always switch to read-only section.
8101         (READONLY_DATA_SECTION): Predicate on flag_pic.
8102         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8103         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8104         (READONLY_DATA_SECTION): Update.
8106 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
8108         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8109         is used without -Wformat.
8110         * c-common.h (warn_format_zero_length): Declare extern.
8111         * c-decl.c (warn_options): Add "format-zero-length".
8112         * c-format.c (warn_format_zero_length): Declare.
8113         (set_Wformat): Set warn_format_zero_length for -Wformat.
8114         (check_format_info): Only warn about zero-length formats if
8115         warn_format_zero_length is true.  Include the format type
8116         name in the warning message.
8117         * doc/invoke.texi: Document -Wformat-zero-length.
8118         * testsuite/gcc.dg/format/zero-length-1.c: New test.
8120 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
8122         * timevar.c: Fix formatting.
8123         * tlink.c: Likewise.
8124         * toplev.c: Likewise.
8125         * tree-dump.c: Likewise.
8126         * tree-inline.c: Likewise.
8128 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8130         * cppinit.c (cpp_post_options): If preprocessed, turn off
8131         traditional.  If traditional, turn off column numbers.
8132         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8133         * cpptrad.c (handle_newline): Update line_base.
8134         (skip_comment): Handle -Wcomment.
8136 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
8138         * cppinit.c (struct builtin): Remove unused fields.
8139         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8140         (operator_array): New - was second half of builtin_array.
8141         (init_builtins): Simplify loop over builtin_array/operator_array.
8143 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8145         * defaults.h (UNIQUE_SECTION): Remove.
8146         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8148 2002-05-17  Richard Henderson  <rth@redhat.com>
8150         * expr.c (init_expr_once): Don't use start/end_sequence.
8151         Use rtx_alloc instead of emit_insn.
8152         * toplev.c (lang_dependent_init): Run init_expr_once here ...
8153         (lang_independent_init): ... not here.
8155 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
8157         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8159 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8161         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
8162         for fixed registers, possibly used for global register variables.
8163         (initial_elimination_offset, avr_output_function_prologue,
8164         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
8166 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8168         * Makefile.in: Update for cpptrad.c.
8169         * cpphash.h (struct cpp_buffer): New members for buffer
8170         overlays.
8171         (struct cpp_reader): New members for traditional output.
8172         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8173         * cppinit.c (cpp_create_reader): Set trad_line.
8174         (cpp_destroy): Free trad_out_base if used.
8175         (cpp_read_main_file): Overlay an empty buffer if traditional.
8176         (cpp_finish_options): Don't do builtins.
8177         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8178         (cpp_handle_option): Handle it.
8179         * cpplex.c (continue_after_nul): New.
8180         (_cpp_lex_direct): Use handle_nul.
8181         * cpplib.h (struct cpp_options): New traditional option.
8182         * cpptrad.c: New file.
8184 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8186         * c-common.c (c_common_init_options): Use C89 for Objective-C,
8187         and set the options flag.
8188         * cppinit.c (lang_flags): Remove objc.
8189         (lang_defaults): Remove OBJC and OBJCXX.
8190         (set_lang): Update.
8191         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8192         (cpp_handle_option): Remove -+ and -lang-objc++.
8193         For ObjC, just set a flag.
8194         (print_help): Update.
8195         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8197 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8199         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8200         bootstrap with -mips3.
8202 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
8204         * final.c: Fix formatting.
8205         * fix-header.c: Likewise.
8206         * flow.c: Likewise.
8207         * fold-const.c: Likewise.
8208         * function.c: Likewise.
8210 2002-05-17  David S. Miller  <davem@redhat.com>
8212         PR c/6689, PR optimization/6615
8213         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8214         and make it a pointer to rtx.  Update comments.
8215         (update_equiv_regs): When scanning for equivalences, record
8216         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
8217         it while making the equiv replacements.
8219 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8221         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8223 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8225         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8226         when encoding visibility into SYMBOL_REF_FLAG.
8228 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
8230         * expr.c (force_operand): Fix reversed move.
8232 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
8234         * doc/install.texi (Testing): Mention two common DejaGnu warnings
8235         that can be ignored.
8237 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8239         * doc/install.texi (Final install): Recommend to install into a
8240         "clean" target directory.
8242 2002-05-17  Richard Henderson  <rth@redhat.com>
8244         * config/ia64/ia64.md: Use braced strings instead of quoted strings
8245         for code blocks.  Tidy whitespace.
8247 2002-05-17  Richard Henderson  <rth@redhat.com>
8249         * hooks.c (hook_tree_bool_false): New.
8250         * hooks.h: Declare it.
8251         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8252         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8253         * target.h (select_section, unique_section): New.
8254         (in_small_data_p): New.
8255         * varasm.c (resolve_unique_section): Use hooks instead of macros.
8256         (variable_section, output_constant_def_contents): Likewise.
8257         (default_select_section, default_unique_section): New.
8258         (categorize_decl_for_section, default_elf_select_section): New.
8259         * output.h: Declare them.
8261         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8262         (TARGET_ASM_SELECT_SECTION): New.
8263         (SELECT_SECTION): Move ...
8264         * config/darwin.c (machopic_select_section): ... here.
8265         * config/darwin-protos.h: Update.
8267         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8268         (SELECT_SECTION): Move ...
8269         * config/nextstep.c (nextstep_select_section): ... here.
8270         * config/nextstep-protos.h: Update.
8272         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8273         (TARGET_ASM_SELECT_SECTION): New.
8274         * config/svr3.h (SELECT_SECTION): Remove.
8276         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8277         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8278         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8279         (alpha_encode_section_info): Use it.
8280         * config/alpha/alpha-protos.h: Update.
8281         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8282         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8283         (TARGET_ASM_SELECT_SECTION): New.
8284         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8286         * config/arm/pe.h (UNIQUE_SECTION): Remove.
8287         (TARGET_ASM_UNIQUE_SECTION): New.
8289         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8290         (avr_unique_section): Rename from unique_section; make static.
8291         * config/avr/avr-protos.h: Update.
8292         * config/avr/avr.h (UNIQUE_SECTION): Remove.
8294         * config/c4x/c4x.h (SELECT_SECTION): Remove.
8296         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8297         (TARGET_ASM_UNIQUE_SECTION): New.
8298         * config/i386/i386-interix.h: Likewise.
8299         * config/i386/win32.h: Likewise.
8300         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8301         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8302         * config/i386/sco5.h (SELECT_SECTION): Remove.
8303         (TARGET_ASM_SELECT_SECTION): New.
8304         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8306         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8307         instead of SELECT_SECTION.
8308         * config/m68k/dpx2.h: Likewise.
8309         * config/rs6000/lynx.h: Likewise.
8311         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8312         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8313         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8314         (ia64_in_small_data_p): New.
8315         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
8316         (ia64_aix_select_section, ia64_aix_unique_section): New.
8317         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8318         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8320         * config/m32r/m32r.h (SELECT_SECTION): Remove.
8321         (TARGET_ASM_SELECT_SECTION): New.
8322         * config/m32r/m32r.c (m32r_select_section): Take align argument.
8323         * config/m32r/m32r-protos.h: Update.
8325         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8326         (SELECT_SECTION): Move ...
8327         * config/m88k/m88k.c (m88k_select_section): ... here.
8329         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8330         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8331         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8332         (mcore_unique_section): Make static.
8333         * config/mcore/mcore-protos.h: Update.
8335         * config/mips/elf.h (UNIQUE_SECTION): Remove.
8336         (TARGET_ASM_UNIQUE_SECTION): New.
8337         * config/mips/elf64.h: Likewise.
8338         * config/mips/iris6gld.h: Likewise.
8339         * config/mips/linux.h: Likewise.
8340         * config/mips/mips-protos.h: Update.
8341         * config/mips/mips.c (mips_select_section): Add align argument.
8342         * config/mips/mips.h (SELECT_SECTION): Remove.
8343         (TARGET_ASM_SELECT_SECTION): New.
8345         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8346         * config/mmix/mmix.c (mmix_select_section): Remove.
8347         (mmix_unique_section): Remove.
8348         * config/mmix/mmix-protos.h: Update.
8350         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8351         (SELECT_SECTION): Move ...
8352         * config/pa/pa.c (pa_select_section): ... here.
8353         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8355         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8356         from rs6000_select_section and make static.
8357         (rs6000_elf_unique_section): Similarly.
8358         (rs6000_xcoff_select_section): From xcoff.h.
8359         (rs6000_xcoff_unique_section): Likewise.
8360         * config/rs6000/rs6000-protos.h: Update.
8361         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8362         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8363         * config/rs6000/xcoff.h: Likewise.
8365         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8366         (SELECT_SECTION): Move ...
8367         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8369         * config/v850/v850.h (SELECT_SECTION): Move ...
8370         * config/v850/v850.c (v850_select_section): ... here.
8371         (TARGET_ASM_SELECT_SECTION): New.
8373         * config/vax/vms.h (SELECT_SECTION): Move ...
8374         * config/vax/vax.c (vms_select_section): ... here.
8375         (TARGET_ASM_SELECT_SECTION): New.
8377         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8378         for the target hooks.
8380 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
8382         * config/arm/arm.c (emit_multi_reg_push): Do not set
8383         RTX_FRAME_RELATED_P on the SEQUENCE.
8385 2002-05-16  Richard Henderson  <rth@redhat.com>
8387         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8388         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
8390 2002-05-16  Richard Henderson  <rth@redhat.com>
8392         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8394         * config/ia64/ia64.c (saveable_obstack): Do not declare.
8396 2002-05-16  Richard Henderson  <rth@redhat.com>
8398         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8399         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8400         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8401         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8402         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8403         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8404         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8405         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8406         Revert "Basic block renumbering removal", and two followup patches.
8408 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8410         * lcm.c (optimize_mode_switching): Revert previous change.
8412 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8414         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8415         with only extant block numbers.
8417 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8419         * lcm.c (optimize_mode_switching): Fix typo.
8421 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8423         * flow.c (calculate_global_regs_live): Queue blocks in program order.
8425 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8427         * doc/install.texi (Configuration): Document PWDCMD.
8429 2002-05-16  Dale Johannesen  <dalej@apple.com>
8431         * combine.c (cant_combine_insn_p):  Reenable combinations
8432         involving hard regs unless CLASS_LIKELY_SPILLED_P.
8434 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8436         * c-common.c (cb_register_builtins): Handle more built-ins
8437         here rather than in gcc.c specs.
8438         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8439         (cpp_options): Pass -O flags even when only preprocessing.
8440         * toplev.c (set_fast_math_flags): New prototype.
8441         (fast_math_flags_set_p): New.
8442         (set_no_fast_math_flags): Remove.
8443         (decode_f_option): Update.
8444         * toplev.h (set_fast_math_flags): Update.
8445         (fast_math_flags_set_p): New.
8446         (set_no_fast_math_flags): Remove.
8447 config:
8448         * c4x/c4x.c (c4x_override_options): Update.
8450 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
8452         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8453         Default-define here.
8454         (builtin_define_with_value): Can now wrap the expansion in
8455         quotation marks if such is wanted.
8456         (cb_register_builtins): Update calls to builtin_define_with_value.
8457         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8458         here.
8459         (c_common_init): Set options->stdc_0_in_system_headers.
8460         * c-lex.h: Update prototype of builtin_define_with_value.
8461         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8462         and REGISTER_PREFIX.
8464         * cppinit.c (VERS, ULP, C, X): Kill.
8465         (builtin_array): Remove entries for __VERSION__,
8466         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8467         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
8468         a constant.
8469         (init_builtins): Kill off a bunch of now-dead code.
8470         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8471         -fno-leading-underscore.
8472         (cpp_handle_option): Remove code to set user_label_prefix.
8473         (cpp_post_options): Likewise.
8475         * cpplib.h (struct cpp_options): Remove user_label_prefix.
8476         (stdc_0_in_system_headers): New.
8477         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8478         stdc_0_in_system_headers) too to decide the value of __STDC__.
8480         * tradcpp.c (user_label_prefix): Kill.
8481         (main): Remove code handling -f(no-)leading-underscore.
8482         (initialize_builtins): Don't define __REGISTER_PREFIX__
8483         or __USER_LABEL_PREFIX__.
8484         (install_value): Wrap compound statement in dummy loop so the
8485         macro works properly in an if statement.
8488 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
8490         * loop.h (struct loop_info): Add member has_prefetch.
8491         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8492         (prescan_loop): Initialize has_prefetch.
8493         (struct prefetch_info): Change prefetch_in_loop and
8494         prefetch_before_loop from bit fields to ints.
8495         (emit_prefetch_instructions): Several small fixes.
8496         (check_dbra_loop): Don't reverse loop that uses prefetch.
8498 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8500         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8501         * configure.in: Likewise.
8502         * fixinc/check.tpl: Likewise.
8503         * fixinc/fixinc.dgux: Likewise.
8504         * fixinc/fixinc.svr4: Likewise.
8505         * fixinc/fixinc.winnt: Likewise.
8506         * fixinc/fixincl.sh: Likewise.
8507         * fixproto: Likewise.
8508         * configure: Regenerate.
8510 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8512         Basic block renumbering removal:
8513         * basic_block.h (struct basic_block_def): Renamed index to sindex,
8514         added prev_bb and next_bb fields.
8515         (n_basic_blocks): Renamed to num_basic_blocks.
8516         (last_basic_block): New, index of last basic block.
8517         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8518         traversing basic block chain.
8519         (BLOCK_NUM): index -> sindex.
8520         (create_basic_block_structure, create_basic_block): Declaration changed.
8521         (debug_num2bb): Declare.
8522         (expunge_block_nocompact): Declaration removed.
8523         (link_block, unlink_block, compact_blocks): Declare.
8524         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8525         * cfg.c (entry_exit_blocks): Initialize new fields.
8526         (clear_edges, alloc_block, expunge_block, cached_make_edge,
8527         redirect_edge_pred, dump_flow_info, dump_edge_info,
8528         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8529         free_aux_for_edges): Modified.
8530         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8531         (expunge_block_nocompact): Removed.
8532         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8533         find_unreachable_blocks, create_edge_list, print_edge_list,
8534         verify_edge_list, flow_edge_list_print, remove_fake_successors,
8535         remove_fake_edges, flow_reverse_top_sort_order_compute,
8536         flow_depth_first_order_compute, flow_preorder_transversal_compute,
8537         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8538         flow_dfs_compute_reverse_execute): Modified.
8539         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8540         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8541         Modified.
8542         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8543         merge_blocks_move_predecessor_nojumps,
8544         merge_blocks_move_successor_nojumps, merge_blocks,
8545         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8546         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8547         * cfglayout.c (skip_insns_after_block, label_for_bb,
8548         record_effective_endpoints, scope_to_insns_finalize,
8549         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8550         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8551         cfg_layout_duplicate_bb): Modified.
8552         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8553         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8554         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8555         flow_loops_find, flow_loop_outside_edge_p): Modified.
8556         * cfgrtl.c (create_basic_block_structure, create_basic_block,
8557         flow_delete_block, compute_bb_for_insn, split_block,
8558         try_redirect_by_replacing_jump, redirect_edge_and_branch,
8559         force_nonfallthru_and_redirect, tidy_fallthru_edge,
8560         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8561         commit_edge_insertions, commit_edge_insertions_watch_calls,
8562         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8563         purge_all_dead_edges): Modified.
8564         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8565         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8566         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8567         Modified.
8568         * conflict.c (conflict_graph_compute): Modified.
8569         * df.c (FOR_ALL_BBS): Removed.
8570         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8571         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8572         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8573         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8574         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8575         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8576         * final.c (compute_alignments, final_scan_insn): Modified.
8577         * flow.c (verify_local_live_at_start, update_life_info,
8578         update_life_info_in_dirty_blocks, free_basic_block_vars,
8579         delete_noop_moves, calculate_global_regs_live,
8580         initialize_uninitialized_subregs, allocate_bb_life_data,
8581         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8582         mark_used_reg, count_or_remove_death_notes): Modified.
8583         * function.c (thread_prologue_and_epilogue_insns): Modified.
8584         * gcse.c (struct null_pointer_info): Change typo of current_block
8585         to basic_block.
8586         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8587         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8588         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8589         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8590         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8591         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8592         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8593         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8594         pre_delete, one_pre_gcse_pass, compute_transpout,
8595         invalidate_nonnull_info, delete_null_pointer_checks_1,
8596         free_code_hoist_mem, compute_code_hoist_vbeinout,
8597         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8598         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8599         compute_store_table, build_store_vectors, insert_insn_start_bb,
8600         insert_store, replace_store_insn, free_store_memory, store_motion):
8601         Modified.
8602         * global.c (global_alloc, global_conflicts, mark_elimination,
8603         build_insn_chain): Modified.
8604         * graph.c (print_rtl_graph_with_bb): Modified.
8605         * haifa-sched.c (sched_init): Modified.
8606         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8607         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8608         if_convert): Modified.
8609         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8610         compute_insert_delete, pre_edge_lcm, compute_available,
8611         compute_farthest, compute_nearerout, compute_rev_insert_delete,
8612         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8613         Modified.
8614         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8615         * loop.c (loop_dump_aux): Modified.
8616         * predict.c (combine_predictions_for_insn, estimate_probability,
8617         last_basic_block_p, process_note_prediction, process_note_predictions,
8618         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8619         expensive_function_p, estimate_bb_frequencies,
8620         compute_function_frequency): Modified.
8621         * print-rtl.c (print_rtx): Modified.
8622         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8623         get_exec_counts, compute_branch_probabilities, compute_checksum,
8624         branch_prob, find_spanning_tree): Modified.
8625         * recog.c (split_all_insns, peephole2_optimize): Modified.
8626         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8627         convert_regs_1, convert_regs_2, convert_regs): Modified.
8628         * regclass.c (scan_one_insn, regclass): Modified.
8629         * regmove.c (mark_flags_life_zones, regmove_optimize,
8630         combine_stack_adjustments): Modified.
8631         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8632         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8633         * reorg.c (dbr_schedule): Modified.
8634         * resource.c (find_basic_block, init_resource_info): Modified.
8635         * sbitmap.c (sbitmap_intersection_of_succs,
8636         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8637         sbitmap_union_of_preds): Modified.
8638         * sched-deps.c (init_dependency_caches): Modified.
8639         * sched-ebb.c (schedule_ebbs): Modified.
8640         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8641         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8642         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8643         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8644         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8645         ssa_const_prop): Modified.
8646         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8647         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8648         * ssa.c (remove_phi_alternative, find_evaluations,
8649         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8650         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8651         make_regs_equivalent_over_bad_edges,
8652         make_equivalent_phi_alternatives_equival,
8653         compute_conservative_reg_partition,
8654         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8655         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8656         Modified.
8658 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
8660         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8662 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
8664         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8665         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8666         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8667         calling CONSTANT_POOL_ADDRESS_P.
8668         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8669         to decide whether to define __arm__ or __thumb.
8670         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
8671         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8673 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8675         * config/arc/arc.h (CPP_PREDEFINES): Remove.
8676         (CPP_SPEC): Update.
8677         (TARGET_CPU_CPP_BUILTINS): New.
8679 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8681         * cpphash.h (cpp_macro): Move here, and make expansion a union.
8682         * cppmacro.c (cpp_macro): Remove.
8683         (enter_macro_context, replace_args, warn_of_redefinition,
8684         _cpp_create_definition, cpp_macro_definition): Update.
8686 2002-05-16  Jason Merrill  <jason@redhat.com>
8688         * config/mips/mips.c (mips_output_external): Don't do sdata
8689         optimization for a variable with DECL_COMDAT set.
8691 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
8693         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8694         Cleanups for accepting modifiers on pointers.
8695         Fix predicate typos.
8696         Allow long pointers as well as int pointers.
8698 2002-05-15  Richard Henderson  <rth@redhat.com>
8700         * varasm.c (merge_weak): Remove special case for extern and common.
8702 2002-05-15  Matt Hiller  <hiller@redhat.com>
8704         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
8705         XFAILing.
8706         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
8707         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
8708         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
8709         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
8710         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
8711         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
8713 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
8715         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
8717 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
8719         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
8720         ("altivec_mfvscr"): Read from VSCR.
8722         Add vscr sets for the following insns: altivec_vctuxs,
8723         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
8724         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
8725         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
8726         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
8727         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
8728         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
8729         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
8730         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
8731         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
8732         altivec_vsum2sws, altivec_vsumsws.
8734         * config/rs6000/rs6000.h: Add VSCR fixed register.
8735         (CALL_REALLY_USED_REGISTERS): Add vscr.
8736         (CALL_USED_REGISTERS): Same.
8737         (FIXED_REGISTERS): Same.
8738         (REG_ALLOC_ORDER): Same.
8739         (reg_class): Add VSCR_REGS.
8740         (REG_CLASS_NAMES): Same.
8741         (REG_CLASS_CONTENTS): Same.
8742         (VSCR_REGNO): New.
8743         (REGISTER_NAMES): Add vscr.
8744         (DEBUG_REGISTER_NAMES): Same.
8745         (ADDITIONAL_REGISTER_NAMES): Same.
8746         (FIRST_PSEUDO_REGISTER): Increment.
8747         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
8749 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
8751         * fold-const.c (fold): Fix a typo.
8753 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
8755         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
8756         comparison against the highest or lowest integer value before
8757         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
8758         transformation and that of an unsigned comparison against 0
8759         right after.
8761 2002-05-15  Richard Henderson  <rth@redhat.com>
8763         * varasm.c (merge_weak): Error for any weakening after definition.
8764         Adjust weakening after use warning to catch more cases.
8765         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
8766         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
8768 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
8770         * invoke.texi (-malign-double): Re-add lost warning.
8772         * i386-protos.h (x86_output_mi_thunk): Declare.
8773         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
8774         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
8776         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
8777         when flag_asynchronous_unwind_tables is set.
8779         * flags.h (flag_reorder_functions): Declare.
8780         * function.c (prepare_function_start): Initialize frequnecy.
8781         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
8782         * Makefile.in (predict.o): Add dependency on target.h and params.h
8783         * defaults.h (HOT_TEXT_SECTION_NAME,
8784         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
8785         * predict.c (choose_function_section): New function.
8786         (estimate_bb_frequencies): Use it.
8787         * toplev.c (flag_reorder_functions): New global variable.
8788         (lang_independent_options): New.
8789         (parse_options_and_default_flags): Set.
8790         * varasm.c (assemble_start_function): Bypass functdion alignment
8791         for never executed functions.
8792         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
8793         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
8794         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
8795         Document.
8797         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8799         * predict.c: Inlude profile.h
8800         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
8801         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
8802         Use the information about maximal counter in the program.
8804         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
8806         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
8807         probably_never_executed_bb_p): New functions.
8808         * cfgcleanup.c (outgoing_edges_match): Use them.
8809         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
8810         (maybe_hot_bb_p, probably_cold_bb_p,
8811         probably_never_executed_bb_p): New functions.
8813         * function.h (function): Add new field function_frequency.
8814         * predict.c (compute_function_frequency): New function.
8815         (estimate_probability): Call it.
8817 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
8819         PR optimization/5172, optimization/5200
8820         * gcse.c (gcse_main): Disable store_motion.
8822 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
8824         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
8825         (c_common_nodes_and_builtins): Use it.
8826         (builtin_define_with_value): New function.
8827         (cb_register_builtins): Define __SIZE_TYPE__,
8828         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
8829         using builtin_define_with_value.  Use consistent notation when
8830         defining __GXX_WEAK__.
8831         (WCHAR_TYPE_SIZE): Don't redefine.
8832         (combine_strings): Don't use WCHAR_TYPE_SIZE.
8834         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
8835         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
8836         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
8837         * tradcpp.c (initialize_builtins): Likewise.
8838         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
8840         * c-lex.h (builtin_define_with_value): Prototype.
8841         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
8842         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
8843         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
8845         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
8846         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
8847         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
8848         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
8849         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
8850         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
8851         config/sparc/sol2-bi.h, config/sparc/sparc.h:
8852         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
8853         to __SIZE_TYPE__ etc from all spec strings. When this makes
8854         extra specs empty, delete them.
8856 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8858         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
8859         for PA8000 or generating dwarf2 call frame information.
8860         (output_call): Remove DO_FRAME_NOTES check from return pointer
8861         optimization.
8862         (following_call): Return 0 when scheduling for PA8000 or generating
8863         dwarf2 call frame information.  Revise comment.
8865 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8867 config/alpha:
8868         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
8869         and __IEEE_FP_INEXACT as appropriate.
8870         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
8871         (CPP_SPEC): Remove ieee defines.
8872         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
8874 2002-05-14  Richard Henderson  <rth@redhat.com>
8876         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
8877         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
8879 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8881         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
8882         (CPP_SPEC): Update.
8883         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
8884         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
8885         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
8886         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
8887         (EXTRA_SPECS): Update.
8888         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
8889         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
8890         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
8891         define TARGET_OS_CPP_BUILTINS if necessary.
8893 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8895         * gcc.c (cpp_options): Must pass -m* and -f* options
8896         to the front end even when only preprocessing.
8897         (cc1_options): Remove redundant -lang-c.
8898         * tradcpp.c (main): Ignore -m options.
8899 objc:
8900         * lang-specs.h: Similarly.
8902 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
8904         * genautomata.c (transform_3): Add code for transformation
8905         `(A,B,...)+C -> A+C,B,...'.
8907 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
8909         * final.c (end_final): Do not output profile_arcs constructor, when
8910         no functions are instrumented.
8912 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
8914         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
8916 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8918         * doc/install.texi: Remove special markup originally required for
8919         HTML generation with texi2html.
8921 2002-05-14  Andreas Schwab  <schwab@suse.de>
8923         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
8924         SELECT_SECTION.
8925         (UNIQUE_SECTION): Define to get small data correctly.
8927         * varasm.c (resolve_unique_section): Add third parameter
8928         flag_function_or_data_sections and use it instead of
8929         flag_function_sections.
8930         (assemble_start_function): Pass flag_function_sections.
8931         (asm_emit_uninitialised): Pass flag_data_sections.
8932         (assemble_variable): Likewise.
8934 2002-05-14  Richard Henderson  <rth@redhat.com>
8936         * config/i386/i386.md: Use define_constants for unspec numbers.
8937         * config/i386/i386.c: Likewise.
8939 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8941         * doc/contrib.texi: Update my entry.
8943 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
8945         * fixinc/inclhack.def (winidss_valist): Limit applicability.
8946         * fixinc/fixincl.x: Regenerated.
8947         * fixinc/tests/base/math.h: Update.
8948         * fixinc/tests/base/testing.h: Likewise.
8950 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
8952         * genattr.c (gen_attr): Don't emit a comma after the last
8953         enumerator.
8955 2002-05-13  Richard Henderson  <rth@redhat.com>
8957         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
8958         by non-local gotos.
8959         * recog.c (peephole2_optimize): Likewise.
8961 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
8963         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
8964         input to O_BINARY.
8966 2002-05-13  Jeffrey A Law  (law@redhat.com)
8968         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
8969         Update prototype and callers.
8970         (propagate_one_insn): Stack pointer adjustments kill MEMs on
8971         the mem_set_list which reference the stack pointer, as do
8972         calls to constant functions as they may clobber outgoing
8973         argument space.
8975         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
8977         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8978         (ia32_multipass_dfa_lookahead): New function.
8980 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8982         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
8983         (translate_options): Remove 'V'.
8984         (process_command): Similarly.
8985 doc:
8986         * invoke.texi: Remove documentation of 'V'.
8988 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8990         * config/s390/linux.h: Revert 2002-04-22 changes.
8992 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
8994         * config/fr30/fr30.md: Only allow splits of immediate loads
8995         if the destination is a register.
8997 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8999         * Makefile.in (c-common.o, cppinit.o): Update.
9000         * c-common.c: Include except.h.
9001         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9002         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9003         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9004         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9005         CPP_PREDEFINES): Handle here.
9006 config:
9007         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9008         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9009         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9010         TARGET_OS_CPP_BUILTINS.
9011         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9012         (CPP_SPEC, EXTRA_SPECS): Update.
9013         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9014         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9015         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9016         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9017         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9018 doc:
9019         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9020         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9022 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9024         * emit-rtl.c (global_rtl): Update comment.
9025         (const_double_htab, const_double_htab_hash,
9026         const_double_htab_hash, lookup_const_double): New.
9027         (const_int_htab_hash, const_int_htab_eq): Remove const
9028         qualifiers, which cause tons of warnings with RTL checking on.
9029         (gen_rtx_CONST_DOUBLE): Deleted.
9030         (const_double_from_real_value): New function - bears some
9031         resemblance to the former immed_real_const_1.
9032         (immed_double_const): Moved here from varasm.c and
9033         simplified.
9034         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9035         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9036         (gen_rtx): Use immed_double_const.
9037         (init_emit_once): Initialize the const_double_htab.  Use
9038         REAL_VALUE_FROM_INT where possible.  Can now use
9039         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9040         * varasm.c (struct varasm_status): Remove x_const_double_chain.
9041         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9042         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9043         (init_varasm_status, mark_varasm_status): Don't touch
9044         x_const_double_chain.
9046         * output.h: Delete prototype for clear_const_double_mem.
9047         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
9048         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
9049         const_double_from_real_value, not immed_real_const_1, and use
9050         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
9051         CONST_DOUBLE_ATOF.
9052         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9053         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9054         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9055         (gen_rtx_REG): Second arg is unsigned.
9057         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9058         (excluded_rtx): New, return true for CONST_DOUBLE.
9059         (genmacro): Write nothing for excluded codes.
9060         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9061         * expr.c (expand_expr): Likewise.
9062         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9063         CONST_DOUBLE_CHAIN.
9064         * toplev.c (rest_of_compilation): Don't call
9065         clear_const_double_mem.
9067         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9068         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9069         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9070         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9071         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9072         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9073         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9074         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9076 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9078         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9080 2002-05-12  Tom Tromey  <tromey@redhat.com>
9082         * tree.h (copy_node): Don't mention TREE_PERMANENT.
9084 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9086         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9087         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
9088         * gensupport.h: Prototype new routines.
9089         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
9090         use of printf.
9091         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9092         (next_comma_elt): Use scan_comma_elt.
9094         * config/i386/i386.md: Use new attribute notation to break up
9095         long lines in define_attr forms.
9097 2002-05-12  Richard Henderson  <rth@redhat.com>
9099         * expr.c (compress_float_constant): New.
9100         (emit_move_insn): Use it.
9101         (float_extend_from_mem): New.
9102         (init_expr_once): Initialize it.
9103         * real.c (exact_real_truncate): New.
9105         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9106         dropped into memory; penalize for size.
9107         (RTX_COSTS): FLOAT_EXTEND is free.
9108         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9109         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9111 2002-05-12  Richard Henderson  <rth@redhat.com>
9113         * profile.h (profile_info): Add missing extern to declaration.
9114         * profile.c (profile_info): Define it.
9116 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9118         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9119         used for DImode and TImode.
9121 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9123         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9124         fake a newline.
9126 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
9128         * config/rs6000/rs6000.c (rs6000_default_long_calls,
9129         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9130         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9131         (rs6000_override_options): Handle -m(no-)longcall.
9132         (init_cumulative_args, output_mi_thunk): Check for both
9133         longcall and shortcall attributes on the function.
9134         (rs6000_attribute_table): Add "shortcall".
9135         (rs6000_handle_longcall_attribute): Update comment.
9136         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9137         altivec_expand_ternop_builtin): Add default clauses to switches
9138         to silence warnings.
9140         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9141         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
9142         (TARGET_OPTIONS): Add longcall and no-longcall.
9144         * config/rs6000/rs6000.md (call_nonlocal_sysv,
9145         call_value_nonlocal_sysv): Split by alternatives.  One pair
9146         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9147         the call cookie.  The other pair accepts only LR/CTR and has
9148         no restriction.
9150         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9151         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9152         tmake_file.
9153         * config/rs6000/rs6000-c.c: New file.
9154         * config/rs6000/t-rs6000-c-rule: New file.
9155         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9156         Prototype rs6000_pragma_longcall.
9158         * doc/extend.texi: Document shortcall attribute.
9159         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9161 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9163         * reorg.c (dbr_schedule): Remove unnecessary test.
9165 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9167         * i386.md (testsi to testqi spliters): New.
9169         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
9171         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9173         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
9175         * basic-block.h: New flag EDGE_CAN_FALLTHRU
9176         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9177         that can be made fallthru.
9179         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
9181         * cfglayout.c (cleanup_unconditional_jumps): New static function.
9182         (cfg_layout_initialize): Use it.
9184 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9186         * config/avr/avr.c (avr_mcu_types): Update supported devices.
9187         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9188         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9190 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
9192         * dbxout.c: Fix formatting.
9193         * dependence.c: Likewise.
9194         * df.c: Likewise.
9195         * diagnostic.c: Likewise.
9196         * doloop.c: Likewise.
9197         * dominance.c: Likewise.
9198         * doschk.c: Likewise.
9199         * dwarf2asm.c: Likewise.
9200         * dwarf2out.c: Likewise.
9201         * dwarfout.c: Likewise.
9203 2002-05-10  Richard Henderson  <rth@redhat.com>
9205         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
9206         Convert integers constants as needed.  Replace "nwords" field with
9207         "sizeof_bb".
9208         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9209         * function.h: Fix typo in comment.
9210         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9212 2002-05-10  Roger Sayle  <roger@eyesopen.com>
9214         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9215         into the equivalent (signed char)c > 0.
9217 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
9219         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9220         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9221         (struct prefetch_info): Fix spelling of member bytes_accessed.
9222         (emit_prefetch_instructions): Make dump messages more regular;
9223         restructure code to add more dump messages; use new macros for
9224         heuristics. (There are no code generation changes in any of this).
9226 2002-05-10  David S. Miller  <davem@redhat.com>
9228         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9229         (struct rtx_def): Update unchanging flag comment.
9230         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9231         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9232         to be handled to INSN too.
9233         (dbr_schedule): Likewise.
9234         * resource.c (next_insn_no_annul): Likewise.
9236         * cse.c (rtx_cost): Remove multiplication by power of 2 special
9237         casing.
9239 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9241         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9242         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9243         (possibly) work around broken /bin/sh.
9245 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9247         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9248         . as N64/N32 libgcc_s.so subdirs.
9250 2002-05-10  David S. Miller  <davem@redhat.com>
9252         * config/sparc/sparc.md: Use define_constants for unspec numbers.
9254         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9255         more accurately.
9256         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9257         comment.
9258         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9259         * doc/rtl.texi: Document these macros more accurately.
9260         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9261         JUMP_INSNs and CALL_INSNs.
9262         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9263         or INSN_FROM_TARGET_P if the code is appropriate.
9265 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9267         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9268         before using SYMBOL_REF_FLAG (addr).
9270         * config/avr/avr-protos.h (avr_io_address_p): Declare.
9271         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9272         Make non-static.  Update all callers.
9273         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9274         New insns to clear/set/test a single bit in I/O address space.
9276 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9278         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9280 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9282         * Makefile.in: Update.
9283         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9284         builtin_define_std): New.
9285         (c_common_init): Register CPP builtins callback.
9286         * c-common.h (flag_iso, flag_undef): New.
9287         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9288         * c-lex.c: Don't include target.h.
9289         (cb_register_builtins): Move to c-common.c.
9290         (init_c_lex): Don't register hook here.
9291         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9292         (cpp_define, cpp_assert): Remove.
9293         * gcc.c (cc1_options): Pass -undef to front end.
9294         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9295         (TARGET_INITIALIZER): Update.
9296         * target.h (struct cpp_reader): Don't predeclare.
9297         (struct gcc_target): Remove cpp builtin hook.
9298         * tree.c (default_register_cpp_builtins): Remove.
9299 doc:
9300         * tm.texi: Update.
9302 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9304         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9306 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9308         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9309         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9311 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9313         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9314         * config/sparc/libgcc-sparc-glibc.ver: New file.
9315         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9316         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9318 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9320         PR target/6429
9321         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9322         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9323         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9324         base multilibs.
9325         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9326         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9327         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9328         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9330 2002-05-09  Richard Henderson  <rth@redhat.com>
9332         * config/ia64/ia64.md: Use define_constants for unspec numbers.
9333         * config/ia64/ia64.c: Likewise.
9335 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
9337         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9338         (save_restore_insns): Likewise.
9339         (mips_expand_prologue, mips_expand_epilogue): Update callers.
9340         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9342 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
9344         * athlon.md, k6.md, pentium.md, ppro.md): New files.
9345         * i386.md: Move scheduling information into new files.
9347         * i386.md (type attribute): Add "rotate" for rotate insns.
9348         (rotate insns): Set type to "rotate".
9349         (various attributes and function units): Treat rotate like shift.
9350         (pent_pair attribute): Only rotates by one bit position are
9351         pairable.
9352         (sbb insns): Explicitly set pent_pair attribute on a couple
9353         that were missing it.
9355 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9357         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9358         make sure that buffer starts on odd word address.
9359         (sh_va_arg): Skip odd fp registers when reading a double precision
9360         value.
9362 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9364         * tree.h (preserve_data, object_permanent_p, type_precision):
9365         Remove.
9367 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9369         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9370         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9371 doc:
9372         * cpp.texi: Update for removal of obsolete features.
9374 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
9375                           Jeffrey A Law  (law@redhat.com)
9377         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
9378         the DFA interface for Pentium processors.
9379         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9380         (attr_pent_pair, ix86_pent_find_pair): Remove.
9381         (ix86_sched_reorder_pentium): Remove.
9382         (ix86_sched_reorder): Remove reordering for Pentium.
9383         * i386.md (Pentium scheduling): Rewrite using DFA description.
9385 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
9387         * cfganal.c (can_fallthru): Fix fast path.
9388         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9389         with edges to the next block.
9391 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
9392                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
9394         * final.c (end_final): Use C trees to output data structures for profiling.
9396         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9397         (profile.o): New dependency profile.h
9398         (final.o): New dependency profile.h
9399         * profile.h: New file. New global structure profile_info.
9400         * final.h (count_edges_instrumented_now): Declare.
9401         (current_function_cfg_checksum): Declare.
9402         (function_list): New structure.
9403         (functions_head, functions_tail): New static variables.
9404         (end_final): Emits more data, removed some -ax stuff.
9405         (final): Stores function names and chcksums.
9406         * gcov-io.h (__write_gcov_string): New function.
9407         (__read_gcov_string): New function.
9408         * gcov.c (read_profile): New function.
9409         (create_program_flow_graph): Uses read_profile instead of reading
9410         da_file.
9411         (read_files): Removed da_file checking, it's done by read_profile now.
9412         * libgcc2.c (bb_function_info): New structure.
9413         (bb): New field in structure, removed some -ax stuff.
9414         (__bb_exit_func): Changed structure of da_file.
9415         * profile.c (count_edges_instrumented_now): New global variable.
9416         (current_function_cfg_checksum): New global variable.
9417         (max_counter_in_program): New global variable.
9418         (get_exec_counts): New function.
9419         (compute_checksum): New function.
9420         (instrument_edges): Sets count_edges_instrumented_now.
9421         (compute_branch_probabilities): Uses get_exec_counts instead of
9422         reading da_file.
9423         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9424         (init_branch_prob): Removed da_file checking, done in get_exec_counts
9425         now.
9426         (end_branch_prob): Removed da_file checking, done in get_exec_counts
9427         now.
9428         * gcov.texi: Updated information about gcov file format.
9430 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
9432         * sbitmap.c: Fix formatting.
9433         * scan.c: Likewise.
9434         * scan-decls.c: Likewise.
9435         * sched-deps.c: Likewise.
9436         * sched-ebb.c: Likewise.
9437         * sched-rgn.c: Likewise.
9438         * sched-vis.c: Likewise.
9439         * sdbout.c: Likewise.
9440         * sibcall.c: Likewise.
9441         * simplify-rtx.c: Likewise.
9442         * ssa.c: Likewise.
9443         * ssa-ccp.c: Likewise.
9444         * ssa-dce.c: Likewise.
9445         * stmt.c: Likewise.
9446         * stor-layout.c: Likewise.
9447         * stringpool.c: Likewise.
9449 2002-05-09  David S. Miller  <davem@redhat.com>
9451         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9453 2002-05-07  David S. Miller  <davem@redhat.com>
9455         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9456         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9457         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9458         library implementation clobbers the output before the inputs
9459         are fully consumed, use stack temporary for the output.
9461 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
9463         * config/netbsd.h (CPP_SPEC): Remove.
9464         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9465         * config/i386/netbsd.h (CPP_SPEC): Define.
9466         * config/ns32k/netbsd.h (CPP_SPEC): Define.
9467         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9468         * config/sparc/netbsd.h (CPP_SPEC): Define.
9469         * config/vax/netbsd.h (CPP_SPEC): Define.
9471 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
9473         * read-rtl.c: Fix formatting.
9474         * real.c: Likewise.
9475         * recog.c: Likewise.
9476         * regclass.c: Likewise.
9477         * regmove.c: Likewise.
9478         * reg-stack.c: Likewise.
9479         * reload1.c: Likewise.
9480         * reload.c: Likewise.
9481         * resource.c: Likewise.
9482         * rtlanal.c: Likewise.
9483         * rtl.c: Likewise.
9484         * rtl-error.c: Likewise.
9486 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9488         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9489         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9491 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
9493         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9494         use __SSE2__ macro instead.
9495         * config/i386/xmmintrin.h: Likewise.
9497 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
9499         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9500         and use it in all invocations of these macros.  Clean up comments.
9501         * rtl.c (rtl_check_failed_flag): Add an argument for the name
9502         of the flag access macro whose check failed.
9503         * doc/rtl.texi (Flags): Document additional flag uses.
9505 2002-05-08  Robert Spier <rspier@pobox.com>
9506             Neil Booth  <neil@daikokuya.demon.co.uk>
9508         PR preprocessor/6521
9509         * cppfiles.c (handle_missing_header): Don't do anything
9510         different for <> includes.
9511 doc:
9512         * cppopts.texi: Update documentation for -MG.
9514 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9516         * cpplex.c (cpp_interpret_charconst): Truncate as well as
9517         sign-extend.
9518 doc:
9519         * cpp.texi: Clarify multichar charconst valuation.
9521 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9523         * doc/invoke.texi: Document -mwindiss option.
9525 2002-05-08  Jason Merrill  <jason@redhat.com>
9527         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9529         * dwarf2out.c (gen_type_die): Abort on broken recursion.
9531         PR c++/6381
9532         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9533         REAL_CST.
9535 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
9537         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9538         little-endian multilibs to override arm/thumb multilibs.
9539         Do not build hardware floating point multilibs, nor apcs-26
9540         multilibs for the Thumb.
9542 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9544         PR c/6569.
9545         * varasm.c (mark_weak): New function.
9546         (merge_weak): Use it.  Do not call declare_weak.
9547         (declare_weak): Use merge_weak.
9549 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
9551         * cse.c (dead_libcall_p): Update counts.
9552         (delete_trivially_dead_insns): Update call of dead_libcall_p.
9554 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9556         * cfglayout.c (function_tail_eff_head): Rename to ...
9557         (function_footer): ... this one.
9558         (unlink_insn_chain): New functions.
9559         (label_for_bb): Only call block_label and emit debug message.
9560         (record_effective_endpoints): Actually unlink the headers and footers.
9561         (fixup_reorder_cahin): Re-insert the unlinked sequences.
9562         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9563         * cfglayout.h (struct reorder_block_def): New fields footer/header;
9564         remove eff_head/eff_end.
9565         * rtl.h (set_first_insn): Declare.
9566         * emit-rtl.c (set_first_insn): New function.
9568         * cfglayout.c (fixup_reorder_chain): Dump duplicated
9569         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9570         cfg_layout_duplicate_bb): New global function.
9571         (duplicate_insn_chain): New static function.
9572         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9573         cfg_layout_duplicate_bb): Declare.
9574         (struct reorder_block_def): Add "original" field.
9575         * emit-rtl.c (emit_copy_of_insn_after): New function.
9576         * rtl.h (emit_copy_of_insn_after): Declare.
9578         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9579         (fixup_reorder_chain): properly handle edges to exit block.
9581 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9582                                Jan Hubicka  <jh@suse.cz>
9584         * basic-block.h (note_prediction_to_br_prob): declare.
9585         * c-semantics.c: Inlucde predit.h
9586         (expand_stmt): predict GOTO_STMT as not taken.
9587         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9588         (cleanup_cfg): Do not free tail_recursion_list.
9589         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9590         (flow_delete_block): Kill predictions past end of basic block.
9591         * output.h (delete_unreachable_blocks): Declare.
9592         * predict.c (predicted_by_p, process_note_predictions,
9593         process_note_prediction, last_block_p): New function.
9594         (estimate_probability): Bypass loop on PRED_CONTINUE;
9595         do not handle noreturn heuristics; kill PRED_RETURN; add
9596         PRED_EARLY_RETURN.
9597         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9598         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9599         * predict.h (IS_TAKEN): New constant.
9600         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9601         * rtl.c (NOTE_INSN_PREDICTION): New.
9602         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9603         New macro.
9604         (insn_note): add NOTE_INSN_PREDICTION.
9605         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9606         CFG; free tail_recursion_label_list.
9607         * stmt.c: Include predict.h;
9608         (return_prediction): New.
9609         (expand_value_return): Use it.
9610         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9612 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
9614         * config/mips/mips.md: Name the unspecs with define_constant.
9615         (*HILO_delay): Rename to 'hilo_delay' (no star).
9616         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9617         (reload_outdi, reload_outsi): Likewise.
9619 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
9621         * toplev.c: Fix formatting.
9623 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
9625         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9626         * configure.in (ac_rtlflag_checking): New.
9627         * doc/install.texi (--enable-checking): Document RTL flag checking.
9629 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9631         * c-common.c (c_common_init): Set options->unsigned_wchar.
9632         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9633         group target dependencies.
9634         (init_builtins, cpp_handle_option): Update.
9635         * cpplex.c (cpp_interpret_charconst): Update.
9636         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9637         signed_char to unsigned_char, group target dependencies.
9638         * defaults.h (WCHAR_UNSIGNED): Remove.
9639         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9640 config:
9641         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9642         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9643         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9644         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9645         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9646 doc:
9647         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9649 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9651         * fixinc/inclhack.def (windiss_math1): New fix.
9652         (windiss_math2): Likewise.
9653         (windiss_valist): Likewise.
9654         * fixinc/fixincl.x: Regenerated.
9656 2002-05-07  Andreas Jaeger  <aj@suse.de>
9658         * genautomata.c (output_internal_min_issue_delay_func): Add
9659         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9660         (output_internal_trans_func): Likewise.
9662 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
9664         * pa.c (hppa_profile_hook): Use force_reg to get the address
9665         of the profile hook into an appropriate pseudo register.
9667 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9669         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9670         (LINK_START_SPEC): Handle it.
9671         (LINK_OS_SPEC): Likewise.
9672         (CPP_SPEC): Likewise.
9673         (STARTFILE_SPEC): Likewise.
9674         (LIB_SPEC): Likewise.
9675         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
9676         all platforms.
9677         (CRTSAVRES_DEFAULT_SPEC): New macro.
9678         (LIB_WINDISS_SPEC): New macro.
9679         (CPP_OS_WINDISS_SPEC): Likewise.
9680         (STARTFILE_WINDISS_SPEC): Likewise.
9681         (ENDFILE_WINDISS_SPEC): Likewise.
9682         (LINK_START_WINDISS_SPEC): Likewise.
9683         (LINK_OS_WINDISS_SPEC): Likewise.
9684         * config/rs6000/windiss.h: New file.
9686 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
9688         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9690 2002-05-06  David S. Miller  <davem@redhat.com>
9692         * config/sparc/sparc.md (shift insns): Do not mask off
9693         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9694         take care of it.
9696 2002-05-06  Richard Henderson  <rth@redhat.com>
9698         PR c++/6212
9699         * expr.c (highest_pow2_factor_for_type): New.
9700         (expand_assignment): Use it.
9702 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
9704         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
9705         unspec_volatile.
9706         ("altivec_mfvscr"): Same.
9708 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
9710         * rtl.h (struct rtx_def): Update comments.
9711         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
9712         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
9713         RTL_FLAG_CHECK macros with list of expected RTL codes.
9714         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
9715         (rtl_check_failed_flag): New.
9716         * reload1.c (reload): Use REG macro before changing rtx to MEM.
9717         (reload_cse_noop_set_p): Check rtx code before using access macro.
9718         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
9719         before using access macro.
9721 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
9723         * doc/rtl.texi (Flags): Update to reflect current usage.
9725 2002-05-06  Roger Sayle  <roger@eyesopen.com>
9727         PR opt/3995
9728         * fold-const.c (sign_bit_p): New function.
9729         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
9730         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
9731         Reapply fold when converting (A & C) == C into (A & C) != 0.
9732         (fold_binary_op_with_conditional_arg): Fix typo in comment.
9734 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9736         * c-common.c (warn_multichar): New.
9737         (c_common_init): Set CPP's warn_multichar.
9738         * c-common.h (warn_multichar): New.
9739         * c-decl.c (warn_multichar): Remove.
9740         * c-lex.c (lex_charconst): Update.
9741         * c-tree.h (warn_multichar): Remove.
9742         * cppexp.c (eval_token): Sign-extend charconst value.
9743         * cppinit.c (cpp_create_reader): Set warn_multichar.
9744         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
9745         each character.  Update prototype.  Sign-extend the result.
9746         * cpplib.h: Fix conditions.
9747         (struct cpp_options): Add new warning flag.
9748         (cpp_interpret_charconst): Update prototype.
9749 doc:
9750         * cpp.texi: Update documentation.
9752 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
9754         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
9755         Fix typo in usage of allof instead of unit.
9757 2002-05-06  Richard Henderson  <rth@redhat.com>
9759         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
9760         and any jump or call for IN.
9762 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
9764         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
9765         -msse2.
9766         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
9768 2002-05-06  Roger Sayle  <roger@eyesopen.com>
9770         * fold-const.c (lshift-double): Cast the high word to an unsigned
9771         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
9772         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
9773         avoid compiler warning.  (fold): Remove redundant code from
9774         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
9776 2002-05-06  Jeff Law  <law@redhat.com>
9778         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
9779         * pa.c (pa_adjust_cost): Remove all true dependency cost
9780         adjustments.  Also remove support for non-DFA scheduling.
9781         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
9782         to adjust true dependency costs.  Update various comments.
9783         (7100lc, 7200, 7300 scheduling): Simplify by combining the
9784         FP ALU & MPY units into a single unit.
9786 2002-05-06  Catherine Moore  <clm@redhat.com>
9788         * config/v850/v850.c (compute_register_save_size): Make sure
9789         to count all of the registers that will be saved.
9791 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
9793         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
9795 2002-05-06  David S. Miller  <davem@redhat.com>
9797         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
9798         allow result to overlap input operands in memory.
9800 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9802 doc:
9803         * cpp.texi: Update multichar charconst docs.
9805 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9807         * cpplex.c (cpp_interpret_charconst): Sign-extend each
9808         character.  Don't ignore excess characters.  Treat
9809         multicharacter character constants as signed.
9810         (cpp_parse_escape): Clarify diagnostic.
9812 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
9814         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
9815         use add instead of shift.
9816         (ashldi3_sp64): Likewise.
9817         (ashlsi3_const1, ashldi3_const1): Remove.
9818         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
9819         * config/sparc/sparc.c (const1_operand): New.
9821 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
9823         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
9825 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
9827         PR target/6561
9828         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
9830 2002-05-05  Richard Henderson  <rth@redhat.com>
9832         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
9833         memory latency adjustments.
9834         (alpha_variable_issue): Remove.
9835         (alpha_use_dfa_pipeline_interface): New.
9836         (alpha_multipass_dfa_lookahead): New.
9837         * config/alpha/alpha.md: Remove define_function_unit scheduling;
9838         include new dfa scheduling.
9839         (attr type): Add none.
9840         (blockage): Use it.
9841         * config/alpha/ev4.md: New.
9842         * config/alpha/ev5.md: New.
9843         * config/alpha/ev6.md: New.
9845 2002-05-05  David S. Miller  <davem@redhat.com>
9847         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
9849 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
9851         * cse.c: Fix formatting.
9852         * emit-rtl.c: Likewise.
9854 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
9856         * genautomata.c (initiate_states): Add additional guard to
9857         initialize `units_array'.
9859 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
9861         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
9862         process_unit_to_form_the_same_automaton_unit_lists,
9863         form_the_same_automaton_unit_lists
9864         check_unit_distributions_to_automata): New prototypes and
9865         functions.
9866         (check_automata): Rename it into `check_automata_insn_issues'.
9867         (unit_decl): New fields `the_same_automaton_unit' and
9868         `the_same_automaton_message_reported_p'.
9869         (unit_decl_t): New typedef.
9870         (the_same_automaton_lists): New gloval variable.
9871         (unit_regexp, unit_set_el, units_array, units_cmp,
9872         output_get_cpu_unit_code_func): Use the typedef.
9873         (evaluate_max_reserv_cycles): Increment
9874         `description->max_insn_reserv_cycles'.
9875         (initiate_states): Don't increment `max_cycles_num'.
9876         (transform_insn_regexps): Move code around transformation of
9877         regexps from `generate'.
9878         (generate): Remove call of `transform_insn_regexps'.
9879         (expand_automata): Call `transform_insn_regexps' and
9880         `check_unit_distributions_to_automata'.  Check errors before
9881         `generate'.
9883         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
9884         automaton `ultrasparc3_1'.
9886 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9888         * c-common.c (c_common_init): Set up CPP arithmetic.
9889         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
9890         something reasonable for the host.
9891         (sanity_checks): Add checks.
9892         (cpp_read_main_file): Call sanity_checks() from here...
9893         (cpp_post_options): ... not here.
9894         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
9895         * cpplib.h (struct cpp_options): New member int_precision.
9897 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9899         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
9901 2002-05-04  David S. Miller  <davem@redhat.com>
9903         * config/sparc/linux.h, config/sparc/linux64.h
9904         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
9906         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
9907         more RTX codes.
9908         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
9910         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
9911         of SETs.
9913 2002-05-05  Tim Josling  <tej@melbpc.org.au>
9915         * treelang; New directory for new sample language treelang.
9917 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9919         * Makefile.in (c-lex.o): Update.
9920         * c-lex.c: Include target.h.
9921         (cb_register_builtins): New.
9922         (init_c_lex): Set builtins callback.
9923         * c-lex.h (cpp_define, cpp_assert): New prototypes.
9924         * cppinit.c (init_builtins): Use callback, including for
9925         GXX_WEAK.
9926         * cpplib.h (struct cpp_callbacks): New member.
9927         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
9928         (TARGET_INITIALIZER): Update.
9929         * target.h (struct gcc_target): New hook.
9930         * tree.c (default_register_cpp_builtins): New.
9931         * tree.h (default_register_cpp_builtins): New.
9932 doc:
9933         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
9935 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9937         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
9938         (cpp_post_options): Move sanity checks to...
9939         (sanity_checks): New.
9940         * cpplex.c (maybe_read_ucs): Fix prototype.
9941         (parse_string, cpp_parse_escape): Cast for %c format specifier.
9942         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
9943         if necessary.
9945 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
9947         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
9948         builtins.  Use V2DI patterns instead of TI for logical operations.
9949         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
9950         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
9951         (ix86_expand_builtins): Change the pattern used for movntdq.
9952         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
9953         sse2_nandv2di3): New patterns.
9954         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
9955         on operands.
9956         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
9957         (cvtdq2pd): Correct mode on operand 1.
9958         (sse2_umulsidi3): Describe without unspec.
9959         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
9960         machine modes.
9961         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
9962         (ashlv2di3): Likewise, from sse2_ashlv2di3.
9963         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
9964         ashlv4si3, ashlv2di3): Use SImode for shift count.
9965         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
9966         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
9967         New patterns.
9968         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
9969         New typedefs.
9970         (__m128i, __m128d): New macros.
9971         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
9972         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
9973         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
9974         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
9975         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
9976         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
9977         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
9978         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
9979         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
9980         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
9981         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
9982         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
9983         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
9984         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
9985         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
9986         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
9987         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
9988         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
9989         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
9990         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
9991         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
9992         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
9993         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
9994         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
9995         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
9996         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
9997         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
9998         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
9999         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10000         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10001         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10002         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10003         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10004         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10005         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10006         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10007         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10008         functions.
10009         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10010         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10012 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
10014         * dwarf2out.c: Fix formatting.
10015         * varasm.c: Likewise.
10017 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
10019         PR c/6543
10020         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10021         clobber and use result as temporary value.
10023 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
10025         * expr.c (force_operand): Use expand_simple_* to handle more
10026         cases.
10028 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10030         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10031         and sign-extension.
10032         (lex_charconst): Update for change in prototype of
10033         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
10034         appropriately.
10035         * cpphash.h (BITS_PER_CPPCHAR_T): New.
10036         * cppinit.c (cpp_create_reader): Initialize them for no
10037         change in semantics.
10038         (cpp_post_options): Add sanity checks.
10039         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10040         and truncation issues.  Calculate in type cppchar_t.
10041         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10042         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
10043         run-time dependent precision correctly.  Return whether the
10044         result is signed or not.
10045         * cpplib.c (dequote_string): Use cppchar_t; update.
10046         * cpplib.h (cppchar_signed_t): New.
10047         struct cpp_options): New precision members.
10048         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10049         * cppexp.c (eval_token): Update.
10051 2002-05-03  David S. Miller  <davem@redhat.com>
10053         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10054         * config/sparc/sparc.c (sparc_rtx_costs): New function
10055         implementing RTX_COSTS and CONST_COSTS.
10056         * config/sparc/sparc.h (CONST_COSTS): Delete.
10057         (RTX_COSTS_CASES): Define.
10058         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10059         the work.
10061         * config/sparc/sparc.md (DFA schedulers): Split out...
10062         * config/sparc/cypress.md, config/sparc/hypersparc.md,
10063         config/sparc/sparclet.md, config/sparc/supersparc.md,
10064         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10066         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10067         checks on it, always defined for Sparc.
10069         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10070         Tweak, and add more detailed comments.
10072 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
10074         * Re-apply patch accidentally reverted with
10075         DFA scheduler merge: remove all rules and variables to slurp
10076         source files out of libiberty and rebuild them with HOST_CC.
10077         ($(HOST_PREFIX_1)varray.o): New rule.
10078         (genattrtab rule): Word wrap.
10080 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10082         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10083         (CPP_SUBTARGET_SPEC): Define.
10084         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10085         cpp_subtarget specs.
10086         (CPP_SPEC): Redefine to include %(cpp_subtarget).
10088 2002-05-03  David S. Miller  <davem@redhat.com>
10090         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10091         * target.h (struct gcc_target): Delete cycle_display member.
10093         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10094         (rtx_needs_barrier): Delete reference to cycle_display unspec.
10095         (ia64_sched_reorder2): Mention need for cycle display handling
10096         once such notes exist.
10098 2002-05-03  Richard Henderson  <rth@redhat.com>
10100         * real.c (etoasc): Strip most trailing zeros for clarity.
10101         * sched-vis.c: Include real.h.
10102         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10103         * Makefile.in (sched-vis.o): Add real.h.
10105 2002-05-03  David S. Miller  <davem@redhat.com>
10107         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10108         no longer needed.
10110 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
10112         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10113         when we get an out of range literal.
10114         (altivec_expand_ternop_builtin): Same.
10115         (altivec_expand_unop_builtin): Same.
10116         (altivec_expand_builtin): Same, for dss.
10117         (altivec_expand_builtin): Use trees instead of rtl when
10118         determining literal argument validity.
10120 2002-05-03  David S. Miller  <davem@redhat.com>
10122         Delete cycle display scheduling hook.
10123         * config/ia64/ia64.c (ia64_cycle_display,
10124         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10125         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10126         and use emit_insn_before instead of ia64_emit_insn_before.
10127         * config/ia64/ia64.md (unspec usage): Delete cycle display.
10128         (cycle_display): Delete insn pattern.
10129         * config/sparc/sparc.md (unspec usage): Delete cycle display.
10130         (cycle_display): Delete insn pattern.
10131         * config/sparc/sparc.c (sparc_cycle_display,
10132         TARGET_SCHED_CYCLE_DISPLAY): Delete.
10133         * doc/md.texi (cycle_display): Don't mention.
10134         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10136 2002-05-03  Richard Henderson  <rth@redhat.com>
10138         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10139         * recog.h: Declare them.
10141         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10142         * config/sparc/sparc.md: Use store_data_bypass_p instead.
10143         * config/sparc/sparc-protos.h: Update.
10145 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10147         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10148         -D__arch64__.  Add -D_LP64.
10149         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10150         from sparc.h.
10151         (CPP_ARCH64_SPEC): Likewise.
10152         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10153         (NO_BUILTIN_SIZE_TYPE): Undef.
10155 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
10157         * genautomata.c (min_issue_delay_pass_states): Change return type
10158         in the prototype.
10159         (min_issue_delay_pass_states): Change the algorithm.
10160         (min_issue_delay): Set up min_insn_issue_delay for the state.
10161         (output_min_issue_delay_table): Interchange the nested loops and
10162         and initiate min_insn_issue_delay for states.
10164 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
10166         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
10167         jump is simplejump.
10169 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
10171         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
10172         sequence.
10174 2002-05-03  Richard Henderson  <rth@redhat.com>
10176         PR opt/6534
10177         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10178         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10179         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10180         code before JUMP, not EARLIEST.
10182 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10184         * c-format.c (check_format_info_main): Don't check for presence of
10185         parameter for * width until after operand number has been read,
10186         and only check for it if format parameters are available.
10187         Fixes PR c/6547.
10189 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10191         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10192         (LINK_SPEC): Undef before defining.
10194 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10196         PR preprocessor/6489
10197         * tradcpp.c (fixup_newlines): New.
10198         (main, finclude): Use it.
10200 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
10202         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10203         * config/mips/mips.c (mips_unique_section): Strip encoding from
10204         decl name.
10206 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10208         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10209         mode.
10211 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10213         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10214         (Specific): Removed buildstats references.
10215         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10216         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10217         Accomodate Solaris versions beyond 8.
10218         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10219         (Specific, *-*-solaris2.8): Removed, obsolete.
10221 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10223         PR target/6542
10224         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10225         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10226         fill leaf_reg_remap with identity.
10227         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10229 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10231         * config/h8300/crti.asm: Remove trailing spaces.
10232         * config/h8300/h8300.c: Likewise.
10233         * config/h8300/lib1funcs.asm: Likewise.
10235 2002-05-02  Jason Merrill  <jason@redhat.com>
10237         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10238         * c-decl.c (c_init_decl_processing): Use it.
10239         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10240         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10241         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10243 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10245         * regrename.c: Fix formatting.
10246         * tree.c: Likewise.
10248 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
10250         * i386.md (attribute memory): Handle compares properly.
10252 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
10254         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10255         to none.
10257 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
10259         * function.c: Fix formatting.
10261 2002-05-02  Jan Hubicka  <jh@suse.cz>
10263         * haifa-sched.c (schedule_insn): Print table of instructions and
10264         reservations.
10265         (sched_block): Do not print ready list at verbosity level 1.
10266         * sched-vis.c (print_insn): Make global.
10267         * sched-ebb.c (ebb_print_insn): Rename from...
10268         (print_insn): ... this one.
10269         * sched-int.h (print_insn): Declare
10271 2002-05-02  Richard Henderson  <rth@redhat.com>
10273         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10274         emitted by cycle_display.
10276 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
10278         * doc/install.texi (*-*-freebsd*): Update to latest status.
10280 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
10282         PR target/6540
10283         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10284         * config/float-sparc.h: Assume 128-bit long double if
10285         __LONG_DOUBLE_128__ is defined.
10287 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
10289         * genattrtab.c (write_function_unit_info): Add a dummy element
10290         when num_units == 0.
10292 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10294         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10295         TYPE_MODE (double_type_node) instead of DFmode.
10297 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
10299         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10300         jumps post reload.
10301         * toplev.c (rest_of_compilation): Revert Richard's patch.
10303 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10305         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10307 2002-05-02  Catherine Moore  <clm@redhat.com>
10309         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10311 2002-05-02  Kazu Hirata  <kazu@hxi.com>
10313         * combine.c: Fix comment typos.
10314         * expr.c: Likewise.
10315         * genautomata.c: Likewise.
10316         * stmt.c: Likewise.
10317         * tree.h: Likewise.
10319 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10321         * doc/install.texi: State GNAT version requirements.
10323 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
10325         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10326         of the frame pointer or arg pointer register which strict register
10327         checking is not enabled.
10329 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
10331         * gcc.dg/altivec-8.c: New.
10333         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10334         PRE_INC and PRE_DEC for altivec modes.
10336 2002-05-01  Bruce Korb  <bkorb@gnu.org>
10338         * fixinc/check.tpl(set-writable): make sure the function exists first
10339         * fixinc/inclhack.def(alpha_assert): fix test_text
10340         * fixinc/tests/base/assert.h: add in missing result
10342 2002-05-01  Jeff Law  <law@redhat.com>
10344         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10345         'T' constraint.
10347 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
10349         * dbxout.c (dbxout_type): Emit size information for range types,
10350         as well, but only when using GDB extensions.
10352 2002-05-01  Richard Henderson  <rth@redhat.com>
10354         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10355         target-independent gnu binutils date test.
10357 2002-05-01  Richard Henderson  <rth@redhat.com>
10359         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10360         info before expunging the block.
10362 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10364         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10365         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
10366         -M -or -MM is in effect.
10368 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
10370         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
10371         A29k configurations.
10372         * doc/install.texi: Update to match.
10374 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10376         PR bootstrap/6514
10377         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10378         for duplicates. Always loop over whole list.
10380 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10382         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10384 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10386         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10387         support routines.
10389 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10391         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10393 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
10395         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10396         (nabs_nopower): Same.
10397         (floatdisf2): New pattern.
10398         (absdi2): Convert to define_insn_and_split.
10399         (nabsdi2): Same.
10400         (trunctfsf2): Same.
10401         (floatditf2): Same.
10402         (floatsitf2): Same.
10403         (fix_trunctfdi2): Same.
10404         (fix_trunctfsi2): Same.
10406 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10408         * doc/install.texi: Update Texinfo version requirement
10409         documentation.
10411 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10413         PR target/6512, PR target/5628
10414         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10415         when memory is not aligned.
10416         (movdf_insn_v9only_vis): Likewise.
10417         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10418         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10419         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10421 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
10423         * gcc.dg/altivec-7.c: New.
10425         * config/rs6000/altivec.h: Cleanup.
10427 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
10429         * doc/invoke.texi (Option Summary): Add -mvrsave=.
10430         (RS/6000 and PowerPC Options): Document -mvrsave=.
10432         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10433         (rs6000_altivec_vrsave_string): Same.
10434         (rs6000_override_options): Call rs6000_parse_vrsave_option.
10435         (rs6000_parse_vrsave_option): New.
10436         (rs6000_stack_info): Only generate vrsave instructions when
10437         TARGET_ALTIVEC_VRSAVE.
10439         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10440         (rs6000_altivec_vrsave_string): Define extern.
10441         (rs6000_altivec_vrsave): Same.
10442         (TARGET_ALTIVEC_VRSAVE): New.
10444 2002-04-30  Richard Henderson  <rth@redhat.com>
10446         PR opt/6516
10447         * toplev.c (rest_of_compilation): Don't run cross-jump before
10448         bb-reorder.
10450 2002-04-30  Tom Rix  <trix@redhat.com>
10452         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10453         check which_alternative.
10455 2002-04-30  Kazu Hirata  <kazu@hxi.com>
10457         * cpplex.c: Fix comment formatting.
10458         * function.c: Likewise.
10459         * integrate.c: Likewise.
10460         * regrename.c: Likewise.
10461         * sibcall.c: Likewise.
10462         * simplify-rtx.c: Likewise.
10463         * tree-inline.c: Likewise.
10465 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10467         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10468         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10469         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10470         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10471         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10472         * pa/x-ada: New file.  Define ADA_CFLAGS.
10474 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
10476         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10477         from MMIX_LAST_REGISTER_FILE_REGNUM.
10478         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10479         (struct machine_function): New member highest_saved_stack_register
10480         previously static variable in mmix.c.
10481         (MACHINE_DEPENDENT_REORG): Define.
10482         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10483         (MMIX_OUTPUT_REGNO): New.
10484         (mmix_target_asm_function_prologue): Move calculation of last used
10485         saved-stack-register into...
10486         (mmix_machine_dependent_reorg): New function.  Update to also handle
10487         !TARGET_ABI_GNU.
10488         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10489         register names, simplify somewhat by new variable regno.
10490         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
10491         register.
10492         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10493         emitting register names.
10494         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10495         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10496         Remove fixed FIXME.
10497         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10498         Declare.
10500         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10502 2002-04-30  Richard Henderson  <rth@redhat.com>
10504         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10505         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10506         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10507         emit_tfmode_cvt): New.
10508         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10509         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10510         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10511         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10512         * config/sparc/sparc-protos.h: Update.
10514 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
10516         * install.texi (Final install): Add to the list of info to include
10517         in a report of a successful bootstrap, and add link to 3.1 list.
10519 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
10521         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10522         (mode): Add vector modes
10523         (i387): Kill attribute.
10524         (unit): New attribute.
10525         (length_immediate): Grok new types.
10526         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10527         (modrm): Use "unit".
10528         (memory): Handle MMX/SSE properly.
10529         (scheduling descriptions): Kill uses of fop1.
10530         (sse, mmx, fp patterns): Set type and mode properly.
10532 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
10534         * pa.c (override_options): Default to PA8000 scheduling.
10535         * doc/invoke.texi (HP-PA options): Mention newly added 7300
10536         scheduling parameter.
10538         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10539         handling of double precision multiplies.
10541         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10542         fpdiv and fpsqrt instructions.
10543         (7200 & 7300 scheduling): Fix typo in handling of
10544         store-load and store-store penalties.
10546 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10548         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10549         mips.  Add two missing commas.
10551 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
10553         * doc/contrib.texi (Contributors): Update Paolo Carlini's
10554         and Benjamin Kosnik's entries.
10556 2002-04-29  David S. Miller  <davem@redhat.com>
10558         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10559         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10560         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10561         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10563 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10565         * combine.c (find_split_point): Use gen_int_mode.
10567 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10569         Merging code from dfa-branch:
10571         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
10573         * genautomata.c (output_reserv_sets): Fix typo.
10575         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
10577         * genautomata.c (output_reserv_sets): Remove
10578         next_cycle_output_flag.
10580         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
10582         * sched-rgn.c (init_ready_list): Make the DFA code handle
10583         USE/CLOBBER insns in the same way as the traditional
10584         scheduler.
10585         (new_ready): Similarly..
10587         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
10589         * haifa-sched.c (schedule_block): Change the DFA state only after
10590         issuing insn.
10592         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
10594         * pa.c (hppa_use_dfa_pipeline_interface): New function.
10595         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10596         (override_options): Add PA7300 scheduling support.
10597         (pa_adjust_cost): Update various comments.  Properly
10598         handle anti and output dependencies when using the
10599         DFA scheduler.
10600         (pa_issue_rate): Add PA7300 scheduling support.
10601         (pa_can_combine_p): Call extract_insn before calling
10602         constrain_operands (taken from mainline tree).
10603         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10604         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
10605         descriptions using DFA descriptions.  Add PA7300
10606         scheduling support.
10608         2002-03-30  David S. Miller  <davem@redhat.com>
10610         Add UltraSPARC-III DFA scheduling support.
10611         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10612         Update FP conditional move on register insn patterns to use it, as
10613         appropriate.
10614         (define_attr cpu): Add ultrasparc3.
10615         (define_attr us3load_type): New, update integer load patterns to
10616         set it, as appropriate.
10617         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10618         (rest): Add UltraSPARC3 scheduling description.
10619         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10620         (PROCESSOR_ULTRASPARC3): New.
10621         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10622         ({ASM,CPP}_CPU_SPEC): Likewise.
10623         (REGISTER_MOVE_COST): Likewise.
10624         (RTX_COSTS): Likewise.
10625         * config/sparc/sparc.c (sparc_override_options,
10626         sparc_initialize_trampoline, sparc64_initialize_trampoline,
10627         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10628         sparc_issue_rate): Likewise.
10629         * config/sparc/sol2.h: Likewise.
10630         * config/sparc/sol2-sld-64.h: Likewise.
10631         * config/sparc/linux64.h: Likewise.
10633         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10635         * doc/md.texi: Add comments about usage the latency time for the
10636         different dependencies and about case when two or more conditions
10637         in different define_insn_reservations returns TRUE for an insn.
10639         * doc/md.texi: Add reference for automaton based pipeline
10640         description.
10642         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
10644         * doc/passes.texi: Add missed information about genattrtab.
10646         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10648         * genautomata.c (output_automata_list_transition_code): Check
10649         automata_list on NULL.
10651         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
10653         * genautomata.c (output_insn_code_cases,
10654         output_automata_list_min_issue_delay_code,
10655         output_automata_list_transition_code,
10656         output_automata_list_state_alts_code): Comment the functions.
10658         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10660         * genautomata.c (automata_list_el_t): New typedef.
10661         (get_free_automata_list_el,free_automata_list_el,
10662         free_automata_list, automata_list_hash, automata_list_eq_p,
10663         initiate_automata_lists, automata_list_start, automata_list_add,
10664         automata_list_finish, finish_automata_lists,
10665         output_insn_code_cases, output_automata_list_min_issue_delay_code,
10666         output_automata_list_transition_code,
10667         output_automata_list_state_alts_code, add_automaton_state,
10668         form_important_insn_automata_lists): New functions and prototypes.
10669         (insn_reserv_decl): Add members important_automata_list and
10670         processed_p.
10671         (ainsn): Add members important_p.
10672         (automata_list_el): New structure.
10673         (first_free_automata_list_el, current_automata_list,
10674         automata_list_table): New global variables.
10675         (create_ainsns): Initiate member important_p.
10676         (output_internal_min_issue_delay_func): Generate the switch and
10677         call output_insn_code_cases.
10678         (output_internal_trans_func, output_internal_state_alts_func):
10679         Ditto.
10680         (generate): Call initiate_automata_lists.
10681         (automaton_states): New global variable.
10682         (expand_automata): Call form_important_insn_automata_lists.
10683         (write_automata): Call finish_automata_lists.
10685         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
10687         * genautomata.c (add_excls, add_presence_absence): Check that
10688         cpu units in the sets belong the same automaton.
10690         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10691         about that cpu units in the sets belong the same automaton.
10693         * doc/md.texi: Ditto.
10695         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
10696                     Nitin Gupta  <niting@noida.hcltech.com>
10698         * config/sh/sh.c (sh_use_dfa_interface): New function.
10700         (sh_issue_rate): New Function.
10701         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10702         TARGET_SCHED_ISSUE_RATE: define.
10704         * config/sh/sh.md: Add DFA based pipeline description for SH4.
10706         (define_attr insn_class): New attribute used for DFA
10707          scheduling.
10708         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
10709         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
10710          cmpeqdi_t): Likewise.
10712         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
10713          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
10714          ex_group.
10715         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
10717         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
10719         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
10720         break.
10722         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
10724         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
10725         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
10726         necessary.
10727         (output_dfa_start_func): Initiate new variable insn_codes_length,
10728         (write_automata): Output definition of the new variable.
10730         2001-10-02  David S. Miller  <davem@redhat.com>
10732         * haifa-sched.c (advance_one_cycle): New function.
10733         (schedule_block): Use it.
10734         (queue_to_ready): Use it, and also make sure to advance the DFA
10735         state on all stall cycles, not just those where insn_queue links
10736         are found.
10738         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
10740         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
10741         non-zero if the highest-priority instruction could be scheduled.
10742         (choose_ready): Remove last argument from max_issue call.
10744         2001-09-28  David S. Miller  <davem@redhat.com>
10746         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
10747         ultrasparc and 3 for other multi-issue sparcs.
10749         2001-09-27  David S. Miller  <davem@redhat.com>
10751         * config/sparc/sparc.md (cycle_display): New pattern.
10752         * config/sparc/sparc.c (sparc_cycle_display): New.
10753         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
10755         2001-09-25  David S. Miller  <davem@redhat.com>
10757         Convert all of Sparc scheduling to DFA
10758         * config/sparc/sparc.md: Kill all define_function_unit
10759         directives and replace with DFA equivalent.
10760         * config/sparc/sparc.c (ultrasparc_adjust_cost,
10761         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
10762         ultra_fpmode_conflict_exists, ultra_find_type,
10763         ultra_build_types_avail, ultra_flush_pipeline,
10764         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
10765         ultrasparc_variable_issue, ultrasparc_sched_init,
10766         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
10767         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
10768         ultra_cur_hist, ultra_cycles_elapsed): Kill.
10769         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10770         ultrasparc_store_bypass_p): New.
10771         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
10772         Declare.
10774         2001-09-24  David S. Miller  <davem@redhat.com>
10776         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
10777         ready->vec[foo] not ready[foo].
10779         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
10781         * doc/md.texi: Correct examples for define_insn_reservations
10782         `mult' and `div'.
10784         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
10786         * genautomata.c (create_automata): Print message about creation of
10787         each automaton.
10788         (generate): Remove printing meease about creation of
10789         automata.
10791         2001-09-05  David S. Miller  <davem@redhat.com>
10793         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
10794         * config/sparc/linux64.h: Likewise.
10796         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
10798         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
10799         schedule_block, sched_init, sched_finish): Add missed calls of
10800         use_dfa_pipeline_interface.
10802         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
10803         Ditto.
10805         * sched-vis.c (get_visual_tbl_length): Ditto.
10807         2001-08-27  Richard Henderson  <rth@redhat.com>
10809         * genattr.c (main): Emit state_t even when not doing scheduling.
10811         2001-08-27  Richard Henderson  <rth@redhat.com>
10813         * genautomata.c (expand_automata): Always create a description.
10815         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
10817         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10818         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10819         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10820         RTL constructions.
10822         * genattr.c (main): New variable num_insn_reservations.  Increase
10823         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
10824         pipeline hazard recognizer interface.
10826         * genattrtab.h: New file.
10828         * genattrtab.c: Include genattrtab.h.
10829         (attr_printf, check_attr_test, make_internal_attr,
10830         make_numeric_value): Move protypes into genattrtab.h.  Define them
10831         as external.
10832         (num_dfa_decls): New global variable.
10833         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10834         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10835         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10836         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
10838         * genautomata.c: New file.
10840         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10842         * sched-int.h: (curr_state): Add the external definition for
10843         automaton pipeline interface.
10844         (haifa_insn_data): Add comments for members blockage and units.
10846         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10847         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10848         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10849         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10850         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10851         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10852         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10853         macros.
10854         (TARGET_SCHED): Use the new macros.
10856         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10857         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10858         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10859         dfa_bubble): New members in gcc_target.sched.
10861         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10862         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10863         (insn_queue): Redefine it as pointer to array.
10864         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10865         INSN_QUEUE_SIZE.
10866         (max_insn_queue_index_macro_value): New variable.
10867         (curr_state, dfa_state_size, ready_try): New varaibles for
10868         automaton interface.
10869         (ready_element, ready_remove, max_issue): New function prototypes
10870         for automaton interface.
10871         (choose_ready): New function prototype.
10872         (insn_unit, blockage_range): Add comments.
10873         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10874         FUNCTION_UNITS_SIZE == 0.
10875         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10876         actual_hazard, potential_hazard): Add comments.
10877         (insn_cost): Use cost -1 as undefined value.  Remove
10878         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
10879         pipeline interface.
10880         (ready_element, ready_remove): New functions for automaton
10881         interface.
10882         (schedule_insn): Add new code for automaton pipeline interface.
10883         (queue_to_ready): Add new code for automaton pipeline interface.
10884         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10885         (debug_ready_list): Print newline when the queue is empty.
10886         (max_issue): New function for automaton pipeline interface.
10887         (choose_ready): New function.
10888         (schedule_block): Add new code for automaton pipeline interface.
10889         Print ready list before scheduling each insn.
10890         (sched_init): Add new code for automaton pipeline interface.
10891         Initiate insn cost by -1.
10892         (sched_finish): Free the current automaton state and finalize
10893         automaton pipeline interface.
10895         * sched-rgn.c: Include target.h.
10896         (init_ready_list, new_ready, debug_dependencies): Add new code for
10897         automaton pipeline interface.
10899         * sched-vis.c: Include target.h.
10900         (get_visual_tbl_length): Add code for automaton interface.
10901         (target_units, print_block_visualization):  Add comments.
10903         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10904         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10905         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10906         (getruntime.o, genautomata.o): New entries.
10907         (genattrtab.o): Add new dependency file genattrtab.h.
10908         (genattrtab): Add new dependencies.  Link it with `libm.a'.
10909         (getruntime.o, hashtab.o): New entries for canadian cross.
10911         * doc/md.texi: Description of automaton based model.
10913         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10914         Add comments.
10915         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10916         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10917         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10918         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10919         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10920         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10921         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10922         hook descriptions.
10923         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10924         MAX_DFA_ISSUE_RATE): New macro descriptions.
10926         * doc/contrib.texi: Add dfa based scheduler contribution.
10928         * doc/gcc.texi: Add more information about genattrtab.
10930 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10932         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
10933         adjust_address_nv call.
10935 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
10937         * doc/install.texi (Testing): Provide additional information, and
10938         a stronger encouragement, for running the testsuites.
10940 2002-04-29  DJ Delorie  <dj@redhat.com>
10942         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
10943         given in upper case.
10945 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10947         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
10948         Solaris 2 <widec.h> if missing.
10949         * fixinc/fixincl.x: Regenerate.
10950         * fixinc/tests/base/widec.h: New file.
10952 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
10954         * toplev.c (f_options): Add "profile" switch so that
10955         -fno-profile can be used to disable -p.
10957 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
10959         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
10960         UV2DImode.
10961         * tree.c (build_common_tree_nodes_2): Likewise.
10962         * tree.h (enum tree_index): Likewise.
10963         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
10965         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
10966         entries.
10967         (init_mmx_sse_builtins): Initialize SSE2 builtins.
10968         (ix86_expand_builtin): Add support for SSE2 builtins.
10969         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
10970         (VALID_SSE_REG_MODE): Use it.
10971         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
10972         (enum ix86_builtins): Add SSE2 builtins.
10973         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
10974         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
10975         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
10976         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
10977         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
10978         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
10979         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
10980         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
10981         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
10982         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
10983         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
10984         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
10985         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
10986         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
10987         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
10988         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
10989         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
10990         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
10991         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
10992         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
10993         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
10994         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
10995         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
10996         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
10997         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
10998         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
10999         lfence_insn): New patterns.
11000         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11001         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11003 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
11005         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11007 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11009         * doc/contrib.texi (Contributors): Add Paolo Carlini and
11010         Janis Johnson.
11011         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11012         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11013         and CPU instead of cpu.
11015 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
11017         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11018         variables.
11019         (lang_independent_options): Add -fif-conversion, -fif-conversion2
11020         (rest_of_compilation): Do if conversion only when asked for.
11021         (parse_options_and_default_flags): Set new variables to 1 for -O1
11022         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11024 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
11026         * i386.c (dbx64_register_map): Fix typo.
11028 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
11030         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11031         real_one_half, real_bb_freq_max): New static variables.
11032         (debug_profile_bbauxs): Kill.
11033         (process_note_predictions): Kill unused variable.
11034         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11035         volatile double.
11036         (propagate_freq): Use REAL_ARITHMETICS.
11037         (estimate_bb_frequencies): Likevise; init new static variables.
11038         * Makefile.in (predict.o): Add dependency on real.h
11040 2002-04-28  David S. Miller  <davem@redhat.com>
11042         PR target/6500
11043         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11044         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
11045         several {reads,writes} instead.
11046         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11047         Define.
11049 2002-04-27  David S. Miller  <davem@redhat.com>
11051         PR target/6494
11052         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11053         of the stack bias.
11055         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11056         including signal.h and sys/ucontext.h, not needed.
11058 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
11060         * varasm.c (output_constant_def): Correct test for not calling
11061         ENCODE_SECTION_INFO for INTEGER_CST.
11063 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11065         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11066         keep most cases as function eval_token.
11067         (eval_token): New function.
11068         (_cpp_parse_expr): Read token here for improved diagnostics.
11069         Don't use op_as_text.  Detect bad ':' here.
11070         (reduce): Don't detect bad ':' here.
11071         (op_as_text): Remove.
11072         * cpphash.h (_cpp_test_assertion): Change prototype.
11073         * cpplib.c (_cpp_test_assertion): Change prototype.
11075 2002-04-28  Richard Henderson  <rth@redhat.com>
11077         PR c/5154
11078         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11079         (ggc_mark_rtx_children): New.
11081 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11083         PR target/6496
11084         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11085         after call peepholes for UltraSPARC.
11086         (call + jump 64-bit peepholes): Remove.
11088 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11090         PR c/6497
11091         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11092         result as temporary value.
11094 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11096         PR c++/6396
11097         * toplev.c (rest_of_compilation): Only run regrename and copy
11098         propagation if optimizing.
11100 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11102         PR optimization/6475
11103         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11104         register of REGNO_DECL (i).
11105         * Makefile.in (reload1.o): Add $(TREE_H).
11107 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11109         * cppexp.c (lex): Update to use state.skip_eval.
11110         (struct op): Remove prio and flags members.
11111         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11112         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11113         (LEFT_ASSOC): New macro.
11114         (optab): New table of operator priorities and flags.
11115         (SHIFT): Update.
11116         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
11117         malloc-ed parser stack.
11118         (reduce): New; reduce the operator stack.
11119         (_cpp_expand_op_stack): Expand the operator stack as necessary.
11120         * cpphash.h (struct op): Predeclare.
11121         (struct cpp_reader): New members op_stack, op_limit.
11122         (struct lexer_state): New member skip_eval.
11123         (_cpp_parse_expr): Update.
11124         (_cpp_expand_op_stack): New.
11125         * cpplib.c (do_if): Update.
11126         * cppinit.c (cpp_create_reader): Create op stack.
11127         (cpp_destroy): And destroy it.
11128         * cpplib.h (CPP_LAST_CPP_OP): Correct.
11129         (TTYPE_TABLE): Correct.
11131 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11133         PR c/6343
11134         * c-decl.c (duplicate_decls): Call merge_weak.
11135         * c-pragma.c (apply_pragma_weak): Warn about misuse.
11136         * output.h (merge_weak): Prototype merge_weak.
11137         * varasm.c (merge_weak): New function.
11138         (declare_weak): Make sure we don't give an error on VAR_DECLs.
11139         Mark RTL with SYMBOL_REF_WEAK.
11141 2002-04-27  Kurt Garloff <garloff@suse.de>
11143         * tree-inline.c (inlinable_function_p): Improve heuristics
11144         by using a smoother function to cut down allowable inlinable size.
11145         * param.def: Add parameters max-inline-insns-single,
11146         max-inline-slope, min-inline-insns that determine the exact
11147         shape of the above function.
11148         * param.h: Likewise.
11150 2002-04-26  Richard Henderson  <rth@redhat.com>
11152         * c-parse.in (malloced_yyss, malloced_yyvs): New.
11153         (yyoverflow): Re-add.  Set them.
11154         (free_parser_stacks): New.
11155         * c-common.h: Declare it.
11156         * c-lex.c (c_common_parse_file): Call it.
11158 2002-04-26  Richard Henderson  <rth@redhat.com>
11160         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11161         for fallthru search.
11163 2002-04-26  Eric Christopher  <echristo@redhat.com>
11165         PR optimization/3700
11166         * config/mips/mips.c (mips_issue_rate): Define.  New function.
11167         (TARGET_SCHED_ISSUE_RATE): Use.
11169 2002-04-25  David S. Miller  <davem@redhat.com>
11171         PR target/6422
11172         * reorg.c (optimize_skip): Do not allow exception causing
11173         instructions to be considered for delay slots.
11174         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11175         (relax_delay_slots): Do not try to consider exception causing
11176         instructions as redundant.
11178 2002-04-26  Richard Henderson  <rth@redhat.com>
11180         PR c/5225
11181         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11183 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
11185         PR bootstrap/6445
11186         * config/i386/i386.md (untyped_call): Return the value in a float
11187         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11188         TARGET_80387.
11190 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
11192         * tree.c (tree_int_cst_lt): Compare constants whose types differ
11193         in unsigned-ness correctly.
11195 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11197         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11198         portable runtime model.
11200 2002-04-26  Richard Henderson  <rth@redhat.com>
11202         * c-parse.in (yyoverflow): Revert.
11204 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
11205             Richard Henderson  <rth@redhat.com>
11207         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11208         result as temporary value.
11210 2002-04-26  Richard Henderson  <rth@redhat.com>
11212         PR c/3581
11213         * c-common.c (fix_string_type): Split out of ...
11214         (combine_strings): ... here.  Take a varray, not a tree list.
11215         (c_expand_builtin_printf): Use fix_string_type.
11216         * c-common.h: Update decls.
11217         * c-parse.in (string): Remove.  Update all uses to use STRING
11218         instead, and not call combine_strings.
11219         (yylexstring): New.
11220         (_yylex): Use it.
11221         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11222         (build_asm_stmt): Likewise.
11223         * objc/objc-act.c (my_build_string): Use fix_string_type.
11224         (build_objc_string_object): Build varray for combine_strings.
11226 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
11228         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11229         x86-64.
11231 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11233         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11234         (HAVE_NO_R_OPERAND): Remove.
11235         (HAVE_VALUE): Remove.
11236         (op_to_prio): Update.
11237         (UNARY): Don't alter flags.
11238         (_cpp_parse_expr): want_value used to indicate whether
11239         a number or unary operator is expected next.  Distinguish
11240         unary and binary +/-.
11241         (op_as_text): Update for unary operators.
11243 2002-04-25  Richard Henderson  <rth@redhat.com>
11245         PR c/2161
11246         * c-parse.in (yyoverflow): New.
11248 2002-04-25  Richard Henderson  <rth@redhat.com>
11250         PR c/2098
11251         * c-common.c (shorten_compare): Simplfy conditions leading to
11252         the generation of a warning.
11254 2002-04-25  Richard Henderson  <rth@redhat.com>
11256         PR c/2035
11257         * expmed.c (extract_bit_field): Fall through to generic code rather
11258         than aborting on subreg special case.
11260 2002-04-25  David S. Miller  <davem@redhat.com>
11262         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11263         for DECL being NULL.
11265 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
11267         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11269 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
11271         * c-decl.c (grokdeclarator): Remove outdated ??? note
11272         on invalid declaration of flexible array members.
11274 2002-04-25  Richard Henderson  <rth@redhat.com>
11276         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11278 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
11280         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11281         needed by the compiler, even if they are used as global regs.
11283 2002-04-25  Matt Hiller  <hiller@redhat.com>
11285         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11286         functions.
11287         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11288         of the corresponding functions.
11289         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11290         New prototypes.
11292 2002-04-25  Matt Hiller  <hiller@redhat.com>
11294         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11296         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11297         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11298         registers, adjust comment accordingly.
11299         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11300         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11301         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11302         for coprocessor registers.
11303         (ADDITIONAL_REGISTER_NAMES): Include
11304         ALL_COP_ADDITIONAL_REGISTER_NAMES.
11306         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11307         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11308         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11309         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11310         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11312         (mips_char_to_class): Adjust comment to include coprocessor
11313         constraint letters.
11315         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11316         New functions.
11317         (mips_reg_names, mips_regno_to_class): Include coprocessor
11318         information.
11319         (mips_sw_reg_names): Ditto, make non-static.
11320         (mips_move_1word): Handle moves to and from coprocessor registers.
11321         (mips_move_2words): Handle moves to and from coprocessor
11322         registers.
11323         (mips_class_max_nregs, mips_register_move_cost): Handle
11324         coprocessor register classes.
11325         (override_options): Initialize mips_char_to_class and
11326         mips_hard_regno_mode_ok properly for coprocessor registers.
11328         * config/mips/mips.md (movdi_internal, movdi_internal2,
11329         movsi_internal1, movsi_internal2): Add constraint-sets for
11330         coprocessor registers.
11331         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11332         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11333         isn't mips.
11334         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11335         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11336         isn't mips.
11337         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11338         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11339         isn't mips.
11340         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11341         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11342         isn't mips.
11344         * doc/tm.texi: Document feature.
11346 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11348         * integrate.c (function_attribute_inlinable_p): Simplify.
11349         Check the table pointer is not NULL.
11351 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
11353         * doc/c-tree.texi: Fix typo in introduction.
11355 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11357         * c-common.h (c_common_parse_file): Update.
11358         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11359         * c-lex.c (YYDEBUG): Get from c-lex.h.
11360         (c_common_parse_file): Update.
11361         * c-lex.h (YYDEBUG, yydebug): New.
11362         * c-parse.in (YYDEBUG): Get from c-lex.h.
11363         (c_set_yydebug): Remove.
11364         * c-tree.h (c_set_yydebug): Remove.
11365         * langhooks-def.h (lhd_do_nothing_i): New.
11366         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11367         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11368         * langhooks.c  (lhd_do_nothing_i): New.
11369         (lhd_set_yydebug): Remove.
11370         * langhooks.h (struct lang_hooks): Update.
11371         * toplev.c (set_yydebug): New.
11372         (compile_file): Update call to parse_file hook.
11373         (decode_d_option): Update.
11374 objc:
11375         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11377 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
11379         * loop.c (load_mems): Don't change the interface of called functions.
11381         * calls.c (expand_call): Take current_function_pretend_args_size
11382         into account when setting argblock for sibcalls.
11384 2002-04-24  Matt Hiller  <hiller@redhat.com>
11386         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11387         * c-lex.c: Ditto.
11389         * cpplex.c (skip_line_comment): Process comment one multibyte
11390         character at a time rather than one char at a time, if
11391         appropriate.
11392         (parse_string): Process string one multibyte character at a time
11393         rather than one char at a time, if appropriate.
11394         * c-lex.c (lex_string): Lex and copy multibyte strings
11395         appropriately.
11396         * cpplib.h (cppchar_t): Change to unsigned.
11398 2002-04-24  Richard Henderson  <rth@redhat.com>
11400         PR c/3467
11401         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11402         for c99.
11404 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
11406         * sh.c (sh_va_arg): If argument was passed by reference,
11407         dereference the pointer.
11409         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11411         * sh.md (divsi3_i4_media): Use match_operand for input values
11412         rather than hard registers.
11413         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11414         unnecessarily through hard registers.  Keep copies of pseudo
11415         registers outside of the libcall sequence.
11417         * sh.md (casesi_shift_media): Add modes.
11419         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11420         values in memory.
11422 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11424         * attribs.c (c_common_attribute_table): Move table and handlers
11425         to c-common.c.
11426         (format_attribute_table, lang_attribute_table,
11427         lang_attribute_common): Remove.
11428         (init_attributes): Replace NULL pointers with pointers to the
11429         empty table.
11430         (handle_packed_attribute, handle_nocommon_attribute,
11431         handle_common_attribute, handle_noreturn_attribute,
11432         handle_noinline_attribute, handle_always_inline_attribute,
11433         handle_used_attribute, handle_unused_attribute,
11434         handle_const_attribute, handle_transparent_union_attribute,
11435         handle_constructor_attribute, handle_destructor_attribute,
11436         handle_mode_attribute, handle_section_attribute,
11437         handle_aligned_attribute, handle_weak_attribute,
11438         handle_alias_attribute, handle_visibility_attribute,
11439         handle_no_instrument_function_attribute, handle_malloc_attribute,
11440         handle_no_limit_stack_attribute, handle_pure_attribute,
11441         handle_deprecated_attribute, handle_vector_size_attribute,
11442         vector_size_helper): Move to c-common.c.
11443         * c-common.c (c_common_attribute_table,
11444         handle_packed_attribute, handle_nocommon_attribute,
11445         handle_common_attribute, handle_noreturn_attribute,
11446         handle_noinline_attribute, handle_always_inline_attribute,
11447         handle_used_attribute, handle_unused_attribute,
11448         handle_const_attribute, handle_transparent_union_attribute,
11449         handle_constructor_attribute, handle_destructor_attribute,
11450         handle_mode_attribute, handle_section_attribute,
11451         handle_aligned_attribute, handle_weak_attribute,
11452         handle_alias_attribute, handle_visibility_attribute,
11453         handle_no_instrument_function_attribute, handle_malloc_attribute,
11454         handle_no_limit_stack_attribute, handle_pure_attribute,
11455         handle_deprecated_attribute, handle_vector_size_attribute,
11456         vector_size_helper): Move from attribs.c.
11457         * c-common.h (c_common_attribute_table,
11458         c_common_format_attribute_table): New.
11459         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11460         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11461         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11462         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11463         (LANG_HOOKS_INITIALIZER): Update.
11464         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11465         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11466         * target.h: Update comment.
11467         * tree.c (default_target_attribute_table): Remove.
11468         * tree.h (default_target_attribute_table, format_attribute_table,
11469         lang_attribute_table, lang_attribute_common): Remove.
11470 objc:
11471         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11472         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11474 2002-04-24  Jason Merrill  <jason@redhat.com>
11476         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11477         * dwarf2out.c (dwarf_attr_name): Support it.
11478         (gen_array_type_die): Emit it.
11479         (lookup_type_die): No special handling for VECTOR_TYPE.
11480         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11482 2002-04-24  Richard Henderson  <rth@redhat.com>
11484         * config/mips/mips.md (movdi_usd): Renumber.
11486 2002-04-24  David S. Miller  <davem@redhat.com>
11488         PR target/6420
11489         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11490         32-bit Sparc and current_function_returns_struct is true.
11492 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11494         * loop.c (canonicalize_condition): Use gen_int_mode.
11496 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
11498         * config/rs6000/altivec.h: Cleanup file.  Add non individual
11499         variants.
11500         (vec_vaddubm): New.
11501         (vec_vadduhm): New.
11502         (vec_vadduwm): New.
11503         (vec_vaddfp): New.
11504         (vec_vaddcuw): New.
11505         (vec_vaddubs): New.
11506         (vec_vaddsbs): New.
11507         (vec_vadduhs): New.
11508         (vec_vadduws): New.
11509         (vec_vaddsws): New.
11510         (vec_vand): New.
11511         (vec_vandc): New.
11512         (vec_vavgub): New.
11513         (vec_vavgsb): New.
11514         (vec_vavguh): New.
11515         (vec_vavgsh): New.
11516         (vec_vavguw): New.
11517         (vec_vavgsw): New.
11518         (vec_vrfip): New.
11519         (vec_vcmpbfp): New.
11520         (vec_vcmpequb): New.
11521         (vec_vcmpequh): New.
11522         (vec_vcmpequw): New.
11523         (vec_vcmpeqfp): New.
11524         (vec_vcmpgefp): New.
11525         (vec_vcmpgtub): New.
11526         (vec_vcmpgtsb): New.
11527         (vec_vcmpgtuh): New.
11528         (vec_vcmpgtsh): New.
11529         (vec_vcmpgtuw): New.
11530         (vec_vcmpgtsw): New.
11531         (vec_vcmpgtfp): New.
11532         (vec_vcmpgefp): New.
11533         (vec_vcfux): New.
11534         (vec_vcfsx): New.
11535         (vec_vctsxs): New.
11536         (vec_vctuxs): New.
11537         (vec_vexptefp): New.
11538         (vec_vrfim): New.
11539         (vec_lvx): New.
11540         (vec_lvebx): New.
11541         (vec_lvehx): New.
11542         (vec_lde): Add vector float variant.
11543         (vec_lvewx): New.
11544         (vec_lvxl): New.
11545         (vec_vlogefp): New.
11546         (vec_vmaddfp): New.
11547         (vec_vmhaddshs): New.
11548         (vec_vmaxub): New.
11549         (vec_vmaxsb): New.
11550         (vec_vmaxuh): New.
11551         (vec_vmaxsh): New.
11552         (vec_vmaxuw): New.
11553         (vec_vmaxsw): New.
11554         (vec_vmaxsw): New.
11555         (vec_vmaxfp): New.
11556         (vec_vmrghb): New.
11557         (vec_vmrghh): New.
11558         (vec_vmrghw): New.
11559         (vec_vmrglb): New.
11560         (vec_vmrglh): New.
11561         (vec_vmrglw): New.
11562         (vec_vminub): New.
11563         (vec_vminsb): New.
11564         (vec_vminuh): New.
11565         (vec_vminsh): New.
11566         (vec_vminuw): New.
11567         (vec_vminsw): New.
11568         (vec_vminfp): New.
11569         (vec_vmladduhm): New.
11570         (vec_vmhraddshs): New.
11571         (vec_msumubm): New.
11572         (vec_vmsummbm): New.
11573         (vec_vmsumuhm): New.
11574         (vec_vmsumshm): New.
11575         (vec_vmsumuhs): New.
11576         (vec_vmsumshs): New.
11577         (vec_vmuleub): New.
11578         (vec_vmulesb): New.
11579         (vec_vmuleuh): New.
11580         (vec_vmulesh): New.
11581         (vec_vmuloub): New.
11582         (vec_mulosb): New.
11583         (vec_vmulouh): New.
11584         (vec_vmulosh): New.
11585         (vec_vnmsubfp): New.
11586         (vec_vnor): New.
11587         (vec_vor): New.
11588         (vec_vpkuhum): New.
11589         (vec_vpkuwum): New.
11590         (vec_vpkpx): New.
11591         (vec_vpkuhus): New.
11592         (vec_vpkshss): New.
11593         (vec_vpkuwus): New.
11594         (vec_vpkswss): New.
11595         (vec_vpkshus): New.
11596         (vec_vpkswus): New.
11597         (vec_vperm): New.
11598         (vec_vrefp): New.
11599         (vec_vrlb): New.
11600         (vec_vrlh): New.
11601         (vec_vrlw): New.
11602         (vec_vrfin): New.
11603         (vec_vrsqrtefp): New.
11604         (vec_vsel): New.
11605         (vec_vslb): New.
11606         (vec_vslh): New.
11607         (vec_vslw): New.
11608         (vec_vsldoi): New.
11609         (vec_vsl): New.
11610         (vec_vslo): New.
11611         (vec_vspltb): New.
11612         (vec_vsplth): New.
11613         (vec_vspltw): New.
11614         (vec_vspltisb): New.
11615         (vec_vspltish): New.
11616         (vec_vspltisw): New.
11617         (vec_vsrb): New.
11618         (vec_vsrh): New.
11619         (vec_vsrw): New.
11620         (vec_vsrab): New.
11621         (vec_vsrah): New.
11622         (vec_vsraw): New.
11623         (vec_vsr): New.
11624         (vec_vsro): New.
11625         (vec_stvx): New.
11626         (vec_stvebx): New.
11627         (vec_stvehx): New.
11628         (vec_stvewx): New.
11629         (vec_stvxl): New.
11630         (vec_vsububm): New.
11631         (vec_vsubuhm): New.
11632         (vec_vsubuwm): New.
11633         (vec_vsubfp): New.
11634         (vec_vsubcuw): New.
11635         (vec_vsububs): New.
11636         (vec_vsubsbs): New.
11637         (vec_vsubuhs): New.
11638         (vec_vsubshs): New.
11639         (vec_vsubuws): New.
11640         (vec_vsubsws): New.
11641         (vec_vsum4ubs): New.
11642         (vec_vsum4sbs): New.
11643         (vec_vsum4shs): New.
11644         (vec_vsum2sws): New.
11645         (vec_vsumsws): New.
11646         (vec_vrfiz): New.
11647         (vec_vupkhsb): New.
11648         (vec_vupkhpx): New.
11649         (vec_vupkhsh): New.
11650         (vec_vupklsb): New.
11651         (vec_vupklpx): New.
11652         (vec_vupklsh): New.
11653         (vec_vxor): New.
11655 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
11657         PR c/5430
11658         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11659         added literals from substracted literals.
11660         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11661         (fold) [associate]: Preserve MINUS_EXPR if needed.
11663 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
11665         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11666         are obsoleted.
11668 2002-04-23  Tom Tromey  <tromey@redhat.com>
11670         * gcc.c: Added --resource.  For PR java/6314.
11672 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11674         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
11675         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11676         these libraries.
11678 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11680         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11682 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11684         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11685         workaround.
11686         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11687         (ix86_expand_clrstr): Fix typo.
11688         * loop.c (gen_load_of_final_value): New.
11689         (loop_givs_rescan, strength_reduce, check_dbra_loop):
11690         Use it.
11692 2002-04-23  Roger Sayle  <roger@eyesopen.com>
11694         * builtins.c (builtin_memset_gen_str): New function.
11695         (expand_builtin_memset): Optimize the case of constant length, but
11696         unknown value.
11698 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
11700         * config/rs6000/altivec.h (vec_step): Remove extraneous
11701         parentheses.
11702         (vec_ctu): Cast return.
11704 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
11706         PR target/6413
11707         * function.h: (struct function): Add profile_label_no field.
11708         (current_function_profile_label_no): Define.
11709         * function.c: (profile_label_no): New static var.
11710         (expand_function_start): Increment it, and copy to
11711         current_function_profile_label_no.
11712         * output.h (profile_label_no): Delete.
11713         * final.c (profile_label_no): Delete.
11714         (profile_function): Use current_function_profile_label_no.
11715         (final_end_function): Don't increment profile_label_no here.
11716         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
11717         profile_label_no with current_function_profile_label_no.
11718         * config/pa/pa.c (current_function_number): Delete.
11719         (pa_output_function_prologue): Don't output profile label here.
11720         (hppa_profile_hook): Use label_no param rather than
11721         current_function_number.
11722         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
11723         * config/pa/pa.h: .. here.
11724         (FUNCTION_PROFILER): Output profile label here.
11726 2002-04-22  Eric Christopher  <echristo@redhat.com>
11728         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
11729         patch of 2002-04-09 due to binutils issues.
11730         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
11732 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
11734         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
11735         constraint to 'o' for m=r and r=m alternatives.
11736         ("*movv8hi_internal1"): Same.
11737         ("*movv16qi_internal1"): Same.
11738         ("*movv4sf_internal1"): Same.
11740 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
11742         * rtl.h (RTX_FLAG): New macro.
11743         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
11744         * final.c (alter_subreg): Use macro to access rtx flag.
11745         * integrate.c (copy_rtx_and_substitute): Use new access macro.
11746         * print-rtl.c (print_rtx): Use new access macro.
11748         * cse.c (insert): Check rtx code before accessing flag.
11750         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
11751         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
11752         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
11753         convert_const_symbol_ref, make_canonical, make_alternative_compare,
11754         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
11755         simplify_test_exp, optimize_attrs, simplify_by_exploding,
11756         find_and_mark_used_attributes, unmark_used_attributes,
11757         add_values_to_cover, simplify_with_current_value,
11758         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
11759         copy_rtx_unchanging, main): Use new access macros.
11761 2002-04-22  Tom Rix  <trix@redhat.com>
11763         * expmed.c (init_expmed): Generate shifted constant once.
11765 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
11767         * c-lex.c (lex_charconst): Call convert to get constant in
11768         proper type; don't just smash the type field.
11769         Fixes PR c/6300.
11771         * config.gcc: Add list of obsolete configurations.  Disallow
11772         building these without --enable-obsolete.
11773         * doc/install.texi: Document --enable-obsolete and obsoletion
11774         policy.  Mention obsoletion of individual targets in
11775         appropriate places.
11777 2002-04-22  Richard Henderson  <rth@redhat.com>
11779         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
11781 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
11783         PR f/6138.
11784         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
11785         (walk_fixup_memory_subreg): Likewise.
11786         (fixup_var_refs_insn): Adjust accordingly.
11787         (fixup_var_refs_1): Likewise.
11789 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
11791         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
11792         LIBPATH_ARCH64_SPEC): Define.
11793         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
11794         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
11795         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
11796         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
11798 2002-04-22      Joel Sherrill <joel@OARcorp.com>
11800         * gthr-rtems.h: Correct prototypes to remove warnings.
11802 2002-04-22  Richard Henderson  <rth@redhat.com>
11804         PR c/6344
11805         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
11807         * gcse.c (free_insn_expr_list_list): New.
11808         (clear_modify_mem_tables): Use it.  Fix bit set usage.
11809         (canon_list_insert): Use EXPR_LISTs for expressions.
11810         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
11812 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11814         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
11815         file change and include code to _cpp_pop_buffer.
11816         * cpphash.h (struct pending_option): Predeclare.
11817         (struct cpp_reader): New member next_include_file.
11818         (_cpp_pop_file_buffer): Update.
11819         (_cpp_push_next_buffer): Update, rename.
11820         * cppinit.c (cpp_destroy): Free include chain and pending here.
11821         (cpp_finish_options): Simplify.
11822         (_cpp_push_next_buffer): Rename and clean up.
11823         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
11824         Clarify.
11825         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
11827 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
11829         * config/rs6000/altivec.h (vec_xor): Add variant for both args
11830         being vector signed int.
11831         (vec_andc): Same.
11832         (vec_xor): Add variant for both args being vector signed char.
11833         Remove redundant variant.
11834         (vec_andc): Same.
11836 2002-04-21  David S. Miller  <davem@redhat.com>
11838         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
11839         compare mode in output RTL.
11841 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
11843         * config/rs6000/rs6000.c (rs6000_override_options): Correct
11844         style and formatting of previous patch.
11846 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
11848         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
11849         flag_pic for ABI_AIX.
11851 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11853         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
11854         * cppfiles.c (read_include_file): Similarly.
11855         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
11856         uxstrdup ustrchr, ufputs): Similarly.
11857         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
11858         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
11859         cpp_ideq, parse_identifier, parse_number): Similarly.
11860         * cpplib.c (struct directive, dequote_string, D, run_directive,
11861         cpp_push_buffer): Similarly.
11862         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
11863         _cpp_create_definition, check_trad_stringification,
11864         cpp_macro_definition): Similarly.
11866 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11868         * cppmacro.c (funlike_invocation_p): Don't step back
11869         over CPP_EOF.
11871 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
11873         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
11874         labelno.
11876 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11878         * doc/invoke.texi: Remove Chill references.
11879         * doc/gcc.texi: Update last modified date.
11881 2002-04-20  Kazu Hirata  <kazu@hxi.com>
11883         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
11884         push and pop.  Replace add.l with add.w.
11886 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11888         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
11889         multiply instructions for H8/300H case.
11891 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11893         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
11894         Bum three instructions from each routine.
11896 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11898         * Makefile.in: Update.
11899         * decl.c (push_c_function_context, pop_c_function_context,
11900         mark_c_function_context): Rename for consistency.
11901         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
11902         * c-tree.h (push_c_function_context, pop_c_function_context,
11903         mark_c_function_context): Rename for consistency.
11904         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11905         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11906         * function.c (init_lang_status, save_lang_status,
11907         restore_lang_status, mark_lang_status, free_lang_status):
11908         Move to langhooks.h.
11909         (push_function_context_to, pop_function_context_from,
11910         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
11911         Update.
11912         * function.h (init_lang_status, save_lang_status,
11913         restore_lang_status, mark_lang_status, free_lang_status):
11914         Move to langhooks.h.
11915         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
11916         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
11917         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
11918         LANG_HOOKS_FUNCTION_INITIALIZER): New.
11919         (LANG_HOOKS_INITIALIZER): Update.
11920         (lhd_do_nothing_f): New.
11921         * langhooks.h (struct lang_hooks_for_functions): New.
11922         (struct lang_hooks): New hooks.
11923         * langhooks.c (lhd_do_nothing_f): New.
11924 objc:
11925         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11926         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11928 2002-04-19  David S. Miller  <davem@redhat.com>
11930         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
11931         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
11933 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
11935         PR optimization/3756
11936         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
11937         x = ((int) y < 0) ? cst1 : cst2.
11939 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
11941         PR c/6358
11942         * function.c: Reapply patch for c/6358.
11943         (expand_function_end): Copy decl_rtl's mode, not
11944         current_function_return_rtx mode.
11946 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
11948         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
11949         targets.
11951 2002-04-19  Tom Tromey  <tromey@redhat.com>
11953         * doc/install.texi (Specific): Update status of Solaris 2.8.
11954         For PR libgcj/6158.
11956 2002-04-19  Andreas Schwab  <schwab@suse.de>
11958         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
11959         (PUT_REAL): Restore old definition.
11961 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
11962             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11964         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
11965         binutils 2.11.2 and higher generate smaller binaries than Sun's
11966         native tools.
11968 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
11970         PR c++/6352
11971         * toplev.c (rest_of_compilation): Do not defer functions for which
11972         TREE_SYMBOL_REFERENCED has already been set.
11974 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
11976         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
11977         alternative.
11979 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11981         * builtins.c: Include langhooks.h.
11982         (lang_type_promotes_to): Remove.
11983         (expand_builtin_va_arg): Use new hook.
11984         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
11985         (simple_type_promotes_to): Move to c-typeck.c.
11986         * c-common.h (simple_type_promotes_to): Remove.
11987         * c-decl.c (duplicate_decls, grokdeclarator): Update.
11988         * c-format.c: Include langhooks.h.
11989         (check_format_types): Update.
11990         * c-tree.h (c_type_promotes_to): New.
11991         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
11992         (type_lists_compatible_p): Update.
11993         * langhooks-def.h (lhd_type_promotes_to): New.
11994         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
11995         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11996         * langhooks.c (lhd_type_promotes_to): New.
11997         * langhooks.h (struct lang_hooks_for_types): New hook.
11998         * tree.h (lang_type_promotes_to): Remove.
11999 objc:
12000         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12002 2002-04-18  Richard Henderson  <rth@redhat.com>
12004         * function.c: Revert patch for c/6358.
12006 2002-04-18  Richard Henderson  <rth@redhat.com>
12008         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12009         blocks.  Handle multiple references to the TRAP block.  Handle
12010         non-adjacent THEN and OTHER blocks.
12012 2002-04-18  Richard Henderson  <rth@redhat.com>
12014         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12015         crash with no type for by-mode libcalls.
12017         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12019 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
12021         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12022         __xtensa_nonlocal_goto): Use a syscall instructions to flush
12023         the register windows.
12025 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12027         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12028         appropriate.  Document need for extended precision even when
12029         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
12030         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
12031         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
12032         instead of relying on later syntax error when REAL_WIDTH > 5.
12033         * real.c: Define NE based only on whether or not we have a
12034         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12035         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
12036         define GET_REAL and PUT_REAL as simple memcpy operations; no
12037         need to byteswap or round.
12038         Use #error instead of #ifdef-ing out the entire file, for
12039         prompt error detection.
12041         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12043 2002-04-18  David S. Miller  <davem@redhat.com>
12045         * config/sparc/sparc.h (BRANCH_COST): Define.
12047         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12048         does it.
12050 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
12052         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12053         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12054         propagate_block calls after relaxation loop using new variable
12055         stabilized_prop_flags.
12057 2002-04-18  Richard Henderson  <rth@redhat.com>
12059         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12060         (ia64_va_arg): Expect variable sized types by reference.
12061         * config/ia64/ia64-protos.h: Update.
12062         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12063         ia64_function_arg_pass_by_reference.
12065 2002-04-18  Richard Henderson  <rth@redhat.com>
12067         * ifcvt.c: Include except.h.
12068         (block_has_only_trap): Break out from find_cond_trap.
12069         (find_cond_trap): Use it.  Always delete the trap block.
12070         (merge_if_block): Allow then block null.  Be less simplistic about
12071         what insns can end a block.
12072         * Makefile.in (ifcvt.o): Depend on except.h.
12074         * config/ia64/ia64.md (trap, conditional_trap): New.
12076 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12078         PR c/6358
12079         * function.c (assign_parms): Assign hard current_function_return_rtx
12080         register here...
12081         (expand_function_end): ...not here.
12083 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12085         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12086         * c-tree.h (c_incomplete_type_error): New.
12087         * c-typeck.c (require_complete_type, build_component_ref): Update.
12088         (incomplete_type_error): Rename.
12089         * langhooks-def.h (lhd_incomplete_type_error): New.
12090         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12091         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12092         * langhooks.c (lhd_incomplete_type_error): New.
12093         * langhooks.h (struct lang_hooks_for_types): New hook.
12094         * tree.c (size_in_bytes): Use new hook.
12095         * tree.h (incomplete_type_error): Remove.
12096 objc:
12097         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12099 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12101         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12102         TARGET_FLOAT_FORMAT blocks.
12104 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12106         * doc/install.texi (Downloading the source): Do not mention Chill
12107         any longer, but mention Ada.
12108         (Configuration): Do not mention Chill any longer.
12110 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
12112         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12114 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
12116         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12117         in last patch.
12119 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12121         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12122         instead of unsigned_type.
12124 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12126         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12127         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12128         later.
12130 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
12132         * attribs.c (vector_type_node_list): New static variable.
12133         (handle_vector_size_attribute): Use it to avoid generating a
12134         new type node each time we are called.
12136         * combine.c (subst): Avoid trying to make a vector mode subreg of
12137         an integer constant.
12138         (gen_lowpart_for_combine): Likewise.
12140 2002-04-18  Roger Sayle  <roger@eyesopen.com>
12141             Jakub Jelinek  <jakub@redhat.com>
12143         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12144         for integer constant c (if x has unsigned type or sign bit is not
12145         set in c).  This folds the zero/sign extension into the bit-wise and
12146         operation.
12148 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12150         PR middle-end/6205
12151         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12152         otherwise xorps.
12154 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
12156         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12158 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
12160         * gcc.c (read_specs): Detect and fail if an attempt is made to
12161         rename a spec string to an already existing string.
12163 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12165         * config/s390/s390.c (legitimize_pic_address): Do not generate
12166         illegal address constant without CONST.
12168 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12170         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12171         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12173 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12175         PR optimization/6305
12176         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12177         to make sure previous reloads are taken into account.  Generate
12178         better code if one operand is an in-range immediate constant.
12180 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
12182         * doc/install.texi (Building): libgcj requires GNU make.
12184 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
12186         PR bootstrap/6315
12187         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12188         even if hard quad and register is not floating.
12189         (movtf reg<-mem split): Disallow splitting if hard quad and
12190         register is floating.
12191         (movtf mem<-reg split): Likewise.
12192         * config/sparc/sparc.c (fp_register_operand): New predicate.
12193         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12195 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
12197         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12198         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12199         (unprotoize.o): Ditto.  Build from protoize.c.  Define
12200         UNPROTOIZE on command line.
12201         * protoize.c: Include cppdefault.h.  Delete include_defaults.
12202         (in_system_include_dir): Use cpp_include_defaults (defined in
12203         cppdefault.o).
12204         * unprotoize.c: Delete file.
12206 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
12208         * config/rs6000/altivec.h (vec_ld): Add array variants.
12209         (vec_lde): Same.
12210         (vec_ldl): Same.
12212 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
12213             Aldy Hernandez <aldyh@redhat.com>
12215         * config/rs6000/altivec.h: Define __ALTIVEC__.
12216         (bool): New.
12217         (__pixel): New.
12218         (pixel): New.
12219         (vec_cfux): New.
12220         (vec_vmaddfp): New.
12221         (vec_vsldoi): New.
12222         Add parentheses to all macro arguments.
12224 2002-04-16  Richard Henderson  <rth@redhat.com>
12226         PR c++/6320
12227         * except.c (remove_eh_handler): Insert inner regions at beginning
12228         of sibling chain.  Refactor expressions.
12230 2002-04-16  Richard Henderson  <rth@redhat.com>
12232         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12233         * config/sparc/sol2-gas-bi.h: New file.
12234         * config.gcc (sparc*-solaris): Add it as needed.
12235         * configure.in (AS_SPARC64_FLAG): Remove check.
12236         * config.in, configure: Regenerate.
12238         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12240 2002-04-16  Richard Henderson  <rth@redhat.com>
12242         * config/mips/mips.c (override_options): Don't override N32 for
12243         a 64-bit ISA.
12245         PR 6202
12246         * config/mips/mips.md (can_delay): Split out of existing define_delays.
12247         (HILO_delay): Set can_delay false.
12249 2002-04-16  Dale Johannesen <dalej@apple.com>
12251         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12252         instruction addresses.
12253         (rs6000_output_function_epilogue): Likewise.
12255 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
12257         * c-parse.in (poplevel, compstmt_start,
12258         compstmt_primary_start): Add ending ';', in accordance
12259         with POSIX.
12261 2002-04-16  Richard Henderson  <rth@redhat.com>
12263         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12264         Adjust tm_file order to get TARGET_DEFAULT set properly.
12265         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12266         * doc/install.texi (sparc-solaris): Update.
12268 2002-04-16  Dale Johannesen <dalej@apple.com>
12270         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12271         comparison operands do not match each other or if modes of
12272         conditions do not match result.
12274 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
12276         PR target/6305
12277         * config/s390/s390.md (mulsidi3): Set both subregs of the
12278         multiword register.
12280 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
12282         * config/rs6000/altivec.h (vec_addc): Type check.
12284 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12286         PR middle-end/6279
12287         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12289         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12291 2002-04-15  Richard Henderson  <rth@redhat.com>
12293         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12294         call_really_used_regs too.
12296 2002-04-15  Richard Henderson  <rth@redhat.com>
12298         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12300 2002-04-15  David S. Miller  <davem@redhat.com>
12302         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12303         as being CLOBBERed.
12305 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12307         PR c/6290
12308         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12309         CONST_VECTOR is { 0, ... 0 }.
12311 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
12313         * doc/install.texi (Installing GCC: Configuration): Clarify
12314         the only supported ways to configure gcc.
12316 2002-04-15  Roland McGrath  <roland@frob.com>
12318         * config.gcc (alpha*-*-gnu*): New target configuration.
12319         * config/alpha/gnu.h: New file for it.
12320         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12322 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12324         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12325         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12326         * tree.h (expand_start_stmt_expr): Update prototype.
12327         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12328         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12329         on the STMT_EXPR created for the inline function.
12331 2002-04-15  Richard Henderson  <rth@redhat.com>
12333         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12334         config/i386/linux-aout.h, config/i386/linux-oldld.h,
12335         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12336         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12337         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12338         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12339         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12340         Define __gnu_linux__, not gnu_linux.
12341         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12343 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
12345         Remove Chill front end.
12346         * gcc.c (default_compilers): Remove Chill entries.
12347         * ch: Remove directory.
12348         * doc/frontends.texi: Remove information about Chill.
12349         * doc/sourcebuild.texi: Likewise.
12350         * doc/standards.texi: Likewise.
12352 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
12354         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12355         (LONGLONG_STANDALONE): Define.
12357 2002-04-15  David S. Miller  <davem@redhat.com>
12359         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12360         Call emit_library_call with LCT_NORMAL.
12361         (sparc_initialize_trampoline): Use LCT_foo instead of
12362         magic constant in emit_library_call invocations.
12363         (sparc64_initialize_trampoline): Likewise.
12364         (sparc_profile_hook): Likewise.
12365         * config/sparc/sparc.md: Likewise.
12367         * config/sparc/sparc.c (sparc_extra_constraint_check):
12368         Fix type of argument 'c'.
12369         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12370         Likewise.
12372 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12374         * diagnostic.h (output_buffer_state): Redefine.
12375         (output_format_decoder): New macro.
12376         (output_prefixing_rule): Likewise.
12377         (output_line_cutoff): Likewise.
12378         (diagnostic_format_decoder): Adjust.
12379         (diagnostic_prefixing_rule): Likewise.
12380         (diagnostic_line_cutoff): Likewise.
12381         (diagnostic_state): Likewise.
12382         (diagnostic_kind_count): Likewise.
12383         (diagnostic_buffer): Now a macro.
12385         * diagnostic.c (diagnostic_buffer): Remove definition.
12386         (output_is_line_wrapping): Adjust.
12387         (set_real_maximum_length): Likewise.
12388         (output_set_maximum_length): Likewise.
12389         (init_output_buffer): Likewise.
12390         (lhd_print_error_function): Likewise.
12391         (output_do_verbatim): Likewise.
12393 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12395         * cpperror.c (print_location): Don't print include chain
12396         if line == 0.
12397         (cpp_begin_message): Update to use DL_ macros.
12398         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12399         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12400         cpp_notice, cpp_notice_from_errno): Remove.
12401         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12402         level.
12403         (cpp_errno): New.
12404         * cppexp.c (CPP_ICE): Remove.
12405         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12406         lex, integer_overflow, _cpp_parse_expr): Update.
12407         * cppfiles.c (read_include_file, find_include_file,
12408         handle_missing_header, _cpp_read_file, remap_filename): Update.
12409         * cpphash.h (enum error_type): Remove.
12410         (_cpp_begin_message): Update.
12411         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12412         cpp_handle_option, cpp_post_options): Update.
12413         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12414         skip_whitespace, parse_identifier, parse_slow, parse_string,
12415         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12416         cpp_interpret_charconst): Update.
12417         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12418         lex_macro_node, do_undef, glue_header_name, parse_include,
12419         do_include_common, read_flag, do_line, do_linemarker, do_ident,
12420         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12421         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12422         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12423         _cpp_pop_buffer, do_diagnostic): Update.
12424         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12425         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12426         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12427         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12428         cpp_notice, cpp_notice_from_errno): Remove.
12429         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12430         level.
12431         (cpp_errno): New.
12432         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12433         collect_args, enter_macro_context, save_parameter, parse_params,
12434         _cpp_create_definition, check_trad_stringification,
12435         cpp_macro_definition): Update.
12436         * cppmain.c (cpp_preprocess_file): Update.
12437         * fix-header.c (read_scan_file): Update.
12439 2002-04-14  Andreas Schwab  <schwab@suse.de>
12441         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12443 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12445         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12447 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12449         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12450         not gnu_hurd.
12452 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
12454         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12456 2002-04-13      Joel Sherrill <joel@OARcorp.com>
12458         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
12459         sparc-elf and sparc-rtems targets.
12461 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12463         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12464         defined, and __gnu_hurd__ wherever __GNU__ is defined.
12465         * arm/linux-elf.h: Likewise.
12466         * cris/aout.h: Likewise.
12467         * cris/linux.h: Likewise.
12468         * i370/linux.h: Likewise.
12469         * i386/gnu.h: Likewise.
12470         * i386/linux-aout.h: Likewise.
12471         * i386/linux-oldld.h: Likewise.
12472         * i386/linux.h: Likewise.
12473         * i386/linux64.h: Likewise.
12474         * ia64/linux.h: Likewise.
12475         * m68k/linux-aout.h: Likewise.
12476         * m68k/linux.h: Likewise.
12477         * mips/linux.h: Likewise.
12478         * pa/pa-linux.h: Likewise.
12479         * pj/linux.h: Likewise.
12480         * rs6000/sysv4.h: Likewise.
12481         * s390/linux.h: Likewise.
12482         * sh/linux.h: Likewise.
12483         * sparc/linux-aout.h: Likewise.
12484         * sparc/linux.h: Likewise.
12485         * sparc/linux64.h: Likewise.
12486         * xtensa/linux.h: Likewise.
12488 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
12490         * stmt.c (check_unique_operand_names): Expect operand names to
12491         be strings rather than identifiers.  Use simple_cst_equal to
12492         compare them.
12493         (resolve_operand_name_1): Make same identifier to string change here.
12494         * c-parse.in (asm_operand): Convert a named operand into a string.
12495         * cp/parse.y (asm_operand): Likewise.
12497 2002-04-13  Andreas Schwab  <schwab@suse.de>
12499         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12501 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
12503         Revert these changes:
12505         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
12507         PR c++/5571
12508         * stor-layout.c (layout_decl): Reset the RTL for the decl.
12510 2002-04-12  Richard Henderson  <rth@redhat.com>
12512         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12513         (sparc*-*-solaris): Clean up header files.
12514         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12515         and plan on generating 64-bit code.
12516         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12517         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12518         * config/sparc/sol2-sld-64.h: Rename ...
12519         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
12520         for AS_SPARC64_FLAG not defined.
12521         * config/sparc/sol2-gld-bi.h: New.
12522         * config/sparc/sol2-sld.h: Remove.
12523         * config/sparc/sol26-sld.h: New.
12524         * config/sparc/sol2.h: Tidy comments.
12525         * doc/install.texi: Document sparc-solaris configury changes.
12527 2002-04-12  Richard Henderson  <rth@redhat.com>
12529         * recog.c (offsettable_address_p): Match the logic in adjust_address.
12531         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12532         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
12534 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12536         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12538 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
12540         * pa.c (pa_can_combine_p): Call extract_insn before calling
12541         constrain_operands.
12543 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
12545         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12546         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12547         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12548         (CPP_PREDEFINES): Handle __declspec.
12549         * config/i386/t-interix (USER_H): Remove.
12551 2002-04-12  DJ Delorie  <dj@redhat.com>
12553         * integrate.c (compare_blocks): Make comparisons safe for when
12554         sizeof(int) < sizeof(char *).
12555         (find_block): Likewise.
12557 2002-04-12  Jan Hubicka  <jh@suse.cz>
12558             David Edelsohn  <edelsohn@gnu.org>
12560         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12561         registers.
12562         (symbol_ref_operand): New.
12563         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12564         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12566 2002-04-12  Andreas Schwab  <schwab@suse.de>
12568         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12569         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12570         overrides the definition in config/svr4.h.
12572 2002-04-12      Eric Norum <eric.norum@usask.ca>
12574         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12575         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12576         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12577         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12578         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12579         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12580         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12581         definitions to config/rtems.h and make the targets more similar.
12583 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12585         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12586         POINTERS_EXTEND_UNSIGNED.
12587         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12588         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12590         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12591         not specified.
12593 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
12595         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12596         depends on TARGET_SHMEDIA, not TARGET_SH5.
12598 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
12600         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12601         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12603 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
12605         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12606         no r0 clobber.
12608 2002-04-12  Andreas Schwab  <schwab@suse.de>
12610         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12612 2002-04-12  Richard Henderson  <rth@redhat.com>
12614         PR bootstrap/4191
12615         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12617         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12618         modes spanning multiple hard regs.
12620         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12622 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12624         * pa.c (pa_output_function_prologue): Don't accumulate the total
12625         number of code bytes when using TARGET_64BIT, or gas, SOM and not
12626         the portable runtime.
12627         (output_deferred_plabels): Handle 64bit plabels.
12628         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12629         generating pic code using the GAS assembler for object formats that
12630         are not SOM (ie., ELF32 and ELF64).
12631         (output_millicode_call): Check attribute type if attribute length is 28.
12632         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
12633         dbr_sequence_length once.
12634         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12635         dbr_sequence_length once.
12636         * pa.h (TARGET_SOM): Define if not defined.
12637         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12638         with GAS and not SOM.
12639         (jump, call_internal_reg, call_value_internal_reg): Likewise.
12640         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
12642 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12644         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12645         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12646         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12647         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12648         elfos.h and dbxelf.h values are fine now.
12649         * config/i386/freebsd.h, config/alpha/freebsd.h
12650         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12652 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12654         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12655         or set Acpu or Amachine.  Reformat.
12656         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12657         define.
12658         (LINK_SPEC): Do not need to undef.
12659         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12660         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12661         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12662         define.
12663         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12664         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12665         (LINK_SPEC): Do not need to undef.
12666         (DONT_USE_BUILTIN_SETJMP): Do not define.
12667         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12668         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
12669         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12670         Remove trailing spaces.
12671         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12672         __ELF__, or set Acpu or Amachine.  Reformat.
12673         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12674         define.
12676 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12678         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12679         all other *-*-freebsd* targets.
12681 2002-04-11  Richard Henderson  <rth@redhat.com>
12683         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12685 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12687         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12688         Include {cpu}/{cpu}.h thru tm_file.
12689         (alpha*-*-linux*ecoff): Remove target.
12690         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12691         (LINK_SPEC): Remove, is not OS independent.
12692         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12693         (LINK_SPEC): Do not need to #undef any longer.
12694         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12695         any longer.
12696         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12697         __ELF__.
12698         (LINK_SPEC): Moved here from alpha/elf.h.
12699         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12700         SUB_CPP_PREDEFINES.
12701         * config/alpha/linux-ecoff.h: Remove.
12702         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12703         (CPP_SPEC): Define _POSIX_SOURCE as needed.
12704         (CPP_SUBTARGET_SPEC): Do not define.
12705         (LINK_SPEC): Do not need to #undef any longer.
12706         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
12707         * config/alpha/vms.h: Likewise.
12709 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
12711         * doc/extend.texi: Remove old claim that typedefs cannot have
12712         an alignment attribute.
12714 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
12716         PR optimization/6177
12717         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
12718         bitpos is 0 and bitsize CONCAT size.
12720 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
12722         PR c/6223
12723         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
12725 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
12727         * config/alpha/freebsd.h: Minor reformatting.
12728         (CPP_SPEC): Define ELF and add cpp_subtarget.
12729         (ASM_SPEC): No longer needed.
12731 2002-04-11  Richard Henderson  <rth@redhat.com>
12733         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
12734         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
12735         (dimode mem/zero splitter): New.
12737 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
12739         * config/cris/cris.c (cris_override_options): Tweak error message
12740         for PIC not implemented.
12742         * config/cris/cris.h: Tweak comments related to parameter-passing.
12744         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
12746 2002-04-10  Richard Henderson  <rth@redhat.com>
12748         * except.c (add_ehl_entry): Allow duplicates after landing pad
12749         creation.
12751 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
12753         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
12755 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
12757         * c-decl.c (c_init_decl_processing): Move generation of
12758         decls for g77_integer_type_node and friends from here ...
12759         * c-common.c (c_common_nodes_and_builtins): ... to here.
12761 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
12763         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
12764         is only used as frame pointer when frame_pointer_needed is true.
12766 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
12768         PR target/817
12769         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
12770         for the fact that the pool entry uses two words.
12771         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
12772         1k bytes.
12773         (movdf_soft_insn): Similarly.
12774         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
12775         for the fact that the pool entry uses three words.
12777 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
12779         * config/mips/mips.c (mips_va_arg): When using the struct version
12780         of the EABI va_list, allow arguments in the register save area to
12781         take up less room than a stack argument.
12783 2002-04-10  Richard Henderson  <rth@redhat.com>
12785         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
12786         if EXPAND_INITIALIZER.
12788 2002-04-09  Richard Henderson  <rth@redhat.com>
12790         * config/alpha/alpha.md (movdi_er_maybe_g): New.
12791         * config/alpha/alpha.c (alpha_expand_mov): Use it.
12793 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
12795         PR optimization/6233
12796         * rtlanal.c (pure_call_p): New function.
12797         * rtl.h (pure_call_p): Declare.
12798         * loop.c (prescan_loop): Use it to set has_nonconst_call.
12799         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
12801 2002-04-09  Eric Christopher  <echristo@redhat.com>
12803         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
12804         information to .comm directive.
12806 2002-04-09  Richard Henderson  <rth@redhat.com>
12808         PR c/5078
12809         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
12811 2002-04-09  Richard Henderson  <rth@redhat.com>
12813         * basic-block.h (flow_delete_block_noexpunge): Declare.
12814         (expunge_block_nocompact): Declare.
12815         * cfg.c (expunge_block_nocompact): Split out from ...
12816         (expunge_block): ... here.
12817         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
12818         (flow_delete_block_noexpunge): Split out from ...
12819         (flow_delete_block): ... here.
12820         * cfgcleanup.c (delete_unreachable_blocks): Compact while
12821         removing dead blocks.
12822         * except.c (exception_handler_labels): Remove.
12823         (exception_handler_label_map): New.
12824         (struct eh_region): Add aka member.
12825         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
12826         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
12827         (for_each_eh_label, for_each_eh_label_1): New.
12828         (init_eh): Register exception_handler_label_map.
12829         (free_eh_status): Use free_region.
12830         (find_exception_handler_labels): Use the map, not the list.
12831         (remove_exception_handler_label): Likewise.
12832         (maybe_remove_eh_handler): Likewise.
12833         (remove_eh_handler): Use the region aka bitmap.
12834         * except.h (exception_handler_labels): Remove.
12835         (for_each_eh_label): Declare.
12836         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
12837         * loop.c (invalidate_loops_containing_label): New.
12838         (find_and_verify_loops): Use it.  Use for_each_eh_label.
12839         * sched-rgn.c (is_cfg_nonregular): Use
12840         current_function_has_exception_handlers.
12842 2002-04-09  Richard Henderson  <rth@redhat.com>
12844         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
12845         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
12846         Do not return changed status.
12847         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
12848         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
12849         New functions that do return changed status.
12850         * sbitmap.h: Update decls.
12851         * gcse.c, lcm.c: Use _cg functions as needed.
12853 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12855         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
12856         (sh64-*-elf*, sh-*-rtemself*): Likewise.
12857         * config/sh/embed_bb.c: New file.
12858         * config/sh/embed-elf.h: New file.
12859         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
12860         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
12861         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12862         __PTRDIFF_TYPE__ .
12863         (SUBTARGET_CPP_PTR_SPEC): Don't define.
12864         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
12865         Add subtarget_asm_endian_spec.
12866         (ASM_SPEC): Use subtarget_asm_endian_spec.
12867         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
12868         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
12869         (WCHAR_UNSIGNED): Define.
12870         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
12871         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12872         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
12873         Fix value.
12874         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
12875         (sh_adjust_cost): Likewise.
12876         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12877         __PTRDIFF_TYPE__ .
12878         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
12879         (WCHAR_TYPE_SIZE): Likewise.
12880         (ASM_SPEC): Use subtarget_asm_endian_spec.
12881         (SH_ELF_WCHAR_TYPE): #undef/ #define.
12882         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
12883         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
12884         (MAX_WCHAR_TYPE_SIZE): Don't #define .
12885         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
12886         (USER_LABEL_PREFIX): Don't #undef /#define .
12887         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12888         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
12889         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
12890         (ASM_SPEC): Likewise.
12891         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
12892         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
12893         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
12894         (LIB2FUNCS_EXTRA): Define.
12895         * t-sh64 (LIB2FUNCS_EXTRA): Define.
12896         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
12897         (LIB1ASMFUNCS_CACHE): Define.
12898         (LIB2FUNCS_EXTRA): Redefine empty.
12900 2002-04-08  Richard Henderson  <rth@redhat.com>
12902         * reorg.c (get_branch_condition): Use reversed_comparison_code.
12904 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12906         * config/m68hc11/larith.asm (__map_data_section): Fix condition
12907         and optimize for size.
12908         (__do_global_ctors): Fix pointer comparison.
12909         (__do_global_dtors): Likewise.
12911 2002-04-09  David S. Miller  <davem@redhat.com>
12913         * config/sparc/sparc.c (sparc_extra_constraint_check): New
12914         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
12915         allow reloading pseudos.
12916         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
12917         * config/sparc/sparc-protos.h: Declare it.
12919         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
12920         unsigned comparison warning.
12921         (output_restore_regs): Mark leaf_function as unused.
12923 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12925         * expr.c (is_aligning_offset): New function.
12926         (expand_expr, case COMPONENT_EXPR): Call it.
12928 2002-04-08  David S. Miller  <davem@redhat.com>
12930         PR target/6082
12931         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
12933         Make init_priority work on Sparc when using GNU ld.
12934         * config/sparc/linux.h, config/sparc/linux64.h,
12935         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
12936         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
12937         * config/sparc/sol2-gld.h: New file to do the same.
12938         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
12939         sparc/sol2-gld.h to tm_file.
12941         PR optimization/4328
12942         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
12943         * doc/md.texi: Document it.
12944         * config/sparc/sparc.md (movdi_insn_sp64_novis,
12945         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
12946         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
12947         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
12948         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
12950 2002-04-08  Andreas Jaeger  <aj@suse.de>
12952         * stmt.c (expand_asm_operands): Revert last patch from Richard
12953         Henderson.
12955 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12957         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
12958         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
12960 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12962         * doc/contrib.texi (Contributors): Add David O'Brien.
12964 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
12966         * configure.in (auto-build.h): Use target_alias and build_alias
12967         when running configure.
12968         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
12969         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
12970         * configure: Regenerate.
12972 2002-04-07  David S. Miller  <davem@redhat.com>
12974         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
12976 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12978         PR 5933
12979         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
12980         generating 32-bit pic code.
12982 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
12984         * cppinit.c (cpp_create_reader): Initialize
12985         discard_comments_in_macro_exp.
12986         (COMMAND_LINE_OPTIONS): Add "-CC" option.
12987         (cpp_handle_option): Handle "-CC" option.
12988         * cpplex.c (save_comment): If saving a C++ comment in
12989         a directive, convert it to a C comment.
12990         (_cpp_lex_direct): Pass second comment start character to
12991         save_comment to indicate comment type.
12992         * cpplib.c (_cpp_handle_directive): If processing
12993         a "#define" directive and discard_comments_in_macro_exp
12994         is false,  re-enable saving of comments.
12995         (lex_macro_node): If discard_comments_in_macro_exp is false,
12996         discard any comments before the macro identifier.
12997         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
12998         member.
12999         * cppmacro.c (cpp_get_token): If expanding a macro while
13000         processing a directive, discard any comments we might encounter.
13001         (parse_params): If discard_comments_in_macro_exp is false,
13002         ignore comments in the macro parameter list.
13003         * gcc.c (cpp_unique_options): Add "-CC" option.
13004         (option_map): Map "--comments-in-macros" to "-CC".
13005         * doc/cppopts.texi: Document "-CC" option.
13006         * f/lang-specs.h: Add "-CC" option.
13007         * testsuite/gcc.dg/cpp/maccom1.c: New test.
13008         * testsuite/gcc.dg/cpp/maccom2.c: New test.
13009         * testsuite/gcc.dg/cpp/maccom3.c: New test.
13010         * testsuite/gcc.dg/cpp/maccom4.c: New test.
13011         * testsuite/gcc.dg/cpp/maccom5.c: New test.
13012         * testsuite/gcc.dg/cpp/maccom6.c: New test.
13014 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13016         PR middle-end/6180
13017         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13019 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
13021         PR c++/5571
13022         * stor-layout.c (layout_decl): Reset the RTL for the decl.
13024         PR opt/5120
13025         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13026         RTX_UNCHANGING_P for the functions arguments when a tail call
13027         is made.
13029 2002-04-06  Jason Merrill  <jason@redhat.com>
13031         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13032         (parse_options_and_default_flags): Set them appropriately.
13033         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13035 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
13037         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13038         here.
13040         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13041         semicolon.
13043         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13044         types come in by-reference.  Fix typo in comment.
13046 2002-04-05  David S. Miller  <davem@redhat.com>
13048         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13049         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13050         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13051         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13053 2002-04-05  David S. Miller  <davem@redhat.com>
13055         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13056         are not going to emit return instructions, emit at least a nop
13057         for the sake of sane backtraces.
13059 2002-04-05  Richard Henderson  <rth@redhat.com>
13061         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13063 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
13065         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13067 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
13069         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13070         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13071         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13073 2002-04-05  Andreas Schwab  <schwab@suse.de>
13075         * c-convert.c: Include c-common.h.
13076         * Makefile.in (c-convert.o): Updated.
13078 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13080         * mklibgcc.in: Use separate libgcc.map for each multilib.
13081         * Makefile.in (distclean): Don't remove libgcc.map here.
13083 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13085         * Makefile.in (s-mlib): Handle --disable-multilib by separate
13086         genmultilib invocation.
13088 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
13090         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13091         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
13092         to num_gprs for symmetry.
13093         * config/mips/mips.c: Adjust accordingly.
13095 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13097         * c-common.c (truthvalue_conversion): Rename, update.
13098         * c-common.h (c_common_truthvalue_conversion): New.
13099         * c-convert.c (convert): Update.
13100         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13101         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13102         * c-typeck.c (build_binary_op, build_unary_op,
13103         build_conditional_expr): Update.
13104         * fold-const.c (constant_boolean_node, fold): Use langhook.
13105         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13106         * langhooks.h (struct lang_hooks): New hook.
13107         * stmt.c (expand_decl_cleanup): Use langhook.
13108         * tree.h (truthvalue_conversion): Remove.
13109 objc:
13110         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13112 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
13114         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13115         Add rules to make null object file.
13117 2002-04-04  Jim Blandy  <jimb@redhat.com>
13119         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13120         macro formal parameter names.
13122 2002-04-04  David S. Miller  <davem@redhat.com>
13124         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13126 2002-04-04  Richard Henderson  <rth@redhat.com>
13128         PR middle-end/5099
13129         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13130         Support copies into and out of memory.  Don't accept allows_reg
13131         and allows_mem as gospel.
13133 2002-04-04  Richard Henderson  <rth@redhat.com>
13135         PR opt/6165
13136         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13137         (write_dependence_p): Likewise.
13139 2002-04-04  Richard Henderson  <rth@redhat.com>
13141         * predict.c (estimate_bb_frequencies): Do frequency calculation
13142         with a volatile temporary.
13144 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
13146         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13148 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13150         PR c++/6119
13151         * final.c (final_start_function): Don't bump profile_label_no here...
13152         (final_end_function): ...but here.
13154 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13156         * config/sparc/sparc.md (pic): New attribute.
13157         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13158         into stack slots.
13159         (split after do_builtin_setjmp_setup): New.
13161 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13163         PR fortran/6106
13164         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13165         change.
13167 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13169         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13170         UNITS_PER_WORD for zero sized aggregates.
13172 2002-04-03  David S. Miller  <davem@redhat.com>
13174         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13175         one-character spec for this, just use %(link_gcc_c_sequence).
13177 2002-04-03  David S. Miller  <davem@redhat.com>
13179         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13180         handling.
13182 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13184         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13185         (DWARF_FRAME_RETURN_COLUMN): Move.
13186         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13187         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13188         * pa.c (except.h, predict.h): Include.
13189         (FRP): Delete.
13190         (store_reg_modify, set_reg_plus_d): Revise prototypes.
13191         (output_ascii): Add cast.
13192         (store_reg_modify): Revise to add frame notes.
13193         (set_reg_plus_d): Likewise.
13194         (compute_frame_size): Include space for eh data registers in frame if
13195         the current function calls eh_return.
13196         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
13197         function calls eh_return.  Save eh data registers if the current
13198         function calls eh_return.  Fix code to add frame notes.  Emit
13199         blockage to prevent insns with frame notes being scheduled in the
13200         delay slot of calls.
13201         (hppa_expand_epilogue): Restore eh data registers and do final stack
13202         adjustment if the current function calls eh_return.  Don't add frame
13203         notes.
13204         (output_call): Revise for change in length of call insn.  Don't do
13205         return pointer adjustment for an unconditional jump in the delay slot
13206         of a call when using frame notes.
13207         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13208         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13209         (ARG_POINTER_CFA_OFFSET): Define.
13210         * pa.md (return_external_pic): New pattern.
13211         (prologue): Correct formatting.  Use return_external_pic if current
13212         function calls eh_return.
13213         (call_internal_symref, call_value_internal_symref,
13214         sibcall_internal_symref, sibcall_value_internal_symref): Change default
13215         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13216         respectively.
13217         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13219         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13220         list of targets to check using "nop" insn.
13221         * configure: Rebuilt.
13223 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
13225         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13227 2002-04-03  David S. Miller  <davem@redhat.com>
13229         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13230         library sequence passed to the linker.
13231         (LINK_COMMAND_SPEC): Use it.
13232         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13233         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13234         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13236 2002-04-03  Jason Merrill  <jason@redhat.com>
13238         * except.c (struct eh_status): Remove protect_list.
13239         (begin_protect_partials, end_protect_partials): Remove.
13240         (add_partial_entry): Remove.
13241         * except.h: Remove prototypes.
13243         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13244         expand_decl_cleanup_eh.
13246         PR c++/5636
13247         * tree.h (CLEANUP_EH_ONLY): New macro.
13248         * stmt.c (expand_decl_cleanup_eh): New fn.
13249         (expand_cleanups): Check CLEANUP_EH_ONLY.
13250         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13251         Use expand_decl_cleanup_eh.
13252         (expand_stmt): Adjust.
13253         * c-common.h: Adjust prototype.
13255 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
13257         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13258         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13259         (cris_target_asm_function_epilogue): Ditto.
13260         (cris_initial_frame_pointer_offset): Ditto.
13261         (cris_simple_epilogue): Ditto.
13262         (cris_expand_builtin_va_arg): Variable-size types come in
13263         by-reference.
13265 2002-04-03  David S. Miller  <davem@redhat.com>
13267         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13268         little-endian.
13269         (set_fast_math): Correct 'fsr' type.
13271 2002-04-03  Richard Henderson  <rth@redhat.com>
13273         PR opt/3569
13274         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13275         * toplev.c (check_global_declarations): Use it.
13276         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13277         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13278         (LANG_HOOKS_DECLS): Add it.
13279         * langhooks.c (lhd_warn_unused_global_decl): New.
13280         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13281         * c-objc-common.c (c_warn_unused_global_decl): New.
13282         * c-tree.h (c_warn_unused_global_decl): Declare.
13283         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13285 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13287         * langhooks-def.h (lhd_set_decl_assembler_name,
13288         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13289         (LANG_HOOKS_INITIALIZER): Update.
13290         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13291         * langhooks.h (struct lang_hooks): New hook.
13292         * tree.c (set_decl_assembler_name): Move to langhooks.c.
13293         (lang_set_decl_assembler_name): Remove.
13294         (init_obstacks): Don't set hook.
13295         (decl_assembler_name): New function.
13296         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13297         (decl_assembler_name): New.
13298         (lang_set_decl_assembler_name): Remove.
13300 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13302         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13303         works properly with .hidden symbols.
13304         * configure: Rebuilt.
13305         * config.in: Rebuilt.
13306         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13307         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13308         properly with .hidden symbols.
13310 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13312         PR middle-end/6102
13313         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13314         USE argument.
13316 2002-04-03  Richard Henderson  <rth@redhat.com>
13318         PR opt/4120
13319         * sched-rgn.c (sets_likely_spilled): New.
13320         (sets_likely_spilled_1): New.
13321         (add_branch_dependences): Use it.
13323 2002-04-02  Richard Henderson  <rth@redhat.com>
13325         PR opt/4311
13326         * loop.h (LOOP_FIRST_PASS): New.
13327         * loop.c (strength_reduce): Mind it when deciding to unroll.
13328         * toplev.c (rest_of_compilation): Set it.
13330 2002-04-02  David S. Miller  <davem@redhat.com>
13332         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13333         mems_ok_for_ldd_peep when the order of the loads being examined
13334         is reversed.
13335         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13336         existing comment to increase comprehension of this situation.
13338 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
13340         * config/sh/sh.md: Don't use union real_extract.
13342 2002-04-02  Richard Henderson  <rth@redhat.com>
13344         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13346 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13348         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13349         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13350         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13351         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13352         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13353         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13354         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13355         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13356         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13357         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13358         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13359         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13360         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13361         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13362         Include as many configury headers via tm_file as possible.  This
13363         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13364         * config/openbsd-oldgas.h: New file.
13365         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13366         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13367         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13368         config/i386/i386-coff.h, config/i386/i386-interix.h,
13369         config/i386/iscdbx.h, config/i386/linux-aout.h,
13370         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13371         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13372         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13373         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13374         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13375         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13376         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13377         config/i386/vxi386.h: Do not directly include configury headers.
13378         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13379         Directly include configury headers that are no longer automatically
13380         included by the above headers.
13381         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13382         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13383         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13384         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13385         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13386         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13387         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13388         (TARGET_VERSION): Define.
13389         * config/i386/beos-elf.h, config/i386/freebsd.h,
13390         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13391         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13392         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13393         config/i386/sco5.h, config/i386/sysv4.h
13394         (TARGET_VERSION): Do not need to protect.
13395         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13396         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13397         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13398         config/i386/i386-interix.h, config/i386/linux-aout.h,
13399         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13400         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13401         (YES_UNDERSCORES): Do not define - not needed.
13402         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13403         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13404         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13405         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13406         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13407         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13408         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13409         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13411 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
13412             Richard Henderson  <rth@redhat.com>
13414         PR c/5484
13415         * function.c (assign_temp): Accept either type or decl argument.
13416         Detect variables whose size is too large to fit into an integer.
13417         * stmt.c (expand_decl): Pass the decl, not the type.
13419 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13421         * protoize.c: Match include directory usage with cppdefault.c.
13423 2002-04-03  Jeffrey A Law  (law@redhat.com)
13424             Hans-Peter Nilsson  <hp@bitrange.com>
13426         * combine.c (simplify_comparison): Avoid narrowing a comparison
13427         with a paradoxical subreg when doing so would drop signficant bits.
13429 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
13431         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13432         if POINTERS_EXTEND_UNSIGNED is defined.
13434 2002-04-02  Richard Henderson  <rth@redhat.com>
13436         PR opt/3967
13437         * local-alloc.c (contains_replace_regs): LO_SUM may contain
13438         replace regs.
13440 2002-04-02  Richard Henderson  <rth@redhat.com>
13442         * doc/standards.texi: Document required freestanding libc entry points.
13444 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
13446         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13447         associated splitter.  Remove MQ constraint.
13448         (ctrdi_internal4): Correct CCmode clobber.
13450 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13452         * milli64.S ($$dyncall): New function.
13453         * t-linux (LIB1ASMFUNCS): Revise module list.
13454         (LIB1ASMSRC): Use pa/milli64.S.
13456 2002-04-02  Richard Henderson  <rth@redhat.com>
13458         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13459         rename solaris_sys_varargs_h.
13461 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13463         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13464         the same mode as its component.
13466 2002-04-02  Richard Henderson  <rth@redhat.com>
13468         PR opt/190
13469         * final.c (this_is_asm_operands): Export.
13470         * output.h (this_is_asm_operands): Declare.
13471         * config/i386/i386.c (print_operand): Error odd asm operands.
13473 2002-04-02  Richard Henderson  <rth@redhat.com>
13475         PR opt/420
13476         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13478 2002-04-01  Richard Henderson  <rth@redhat.com>
13480         PR target/1538
13481         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13482         * fixinc/fixincl.x: Rebuild.
13484 2002-04-01  Richard Henderson  <rth@redhat.com>
13486         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13487         (atomic_alloc, atomic_free): New.
13488         (SIZE, MASK_FOR, PTR_IN): New.
13489         (emergency_reg_state, emergency_reg_state_free): New.
13490         (emergency_labeled_state, emergency_labeled_state_free): New.
13491         (reg_state_alloced, labeled_state_alloced): New.
13492         (alloc_reg_state, free_reg_state): New.
13493         (alloc_label_state, free_label_state, free_label_states): New.
13494         (push, pop, dup_state_stack, free_state_stack): Use them.
13495         (desc_label_state): Likewise.
13496         (uw_frame_state_for): Free label states and state stack.
13497         (uw_update_reg_address): Eliminate warnings.
13499 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
13501         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13502         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13504 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13506         * c-decl.c (grokdeclarator): Update.
13507         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13508         * c-tree.h (c_mark_addressable): New.
13509         * c-typeck.c (default_function_array_conversion, build_unary_op,
13510         build_array_ref, convert_for_assignment): Update.
13511         (mark_addressable): Rename.
13512         * calls.c (try_to_integrate, expand_call): Use langhook.
13513         * expr.c (expand_expr): Use langhook.
13514         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13515         * langhooks.h (struct lang_hooks): New hook.
13516         * stmt.c (expand_asm_operands): Use langhook.
13517         * tree.h (mark_addressable): Remove.
13518 objc:
13519         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13521 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13523         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13524         in previous change.
13526 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13528         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13529         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13531 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13533         * c-common.c (unsigned_conversion_warning, convert_and_check,
13534         unsigned_type, signed_type, shorten_compare,
13535         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13536         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13537         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13538         New.
13539         * c-decl.c (grokdeclarator): Update.
13540         * c-format.c (check_format_types): Update.
13541         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13542         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13543         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13544         * convert.c (convert_to_integer): Use new hooks.
13545         * expmed.c (make_tree): Use new hooks.
13546         * expr.c (store_expr): Use new hooks.
13547         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13548         all_ones_mask_p, unextend, fold): Use new hooks.
13549         * langhooks.h (struct lang_hooks_for_types): New hooks.
13550         * tree.h (signed_or_unsigned_type, signed_type,
13551         unsigned_type): Remove.
13552 objc:
13553         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13554         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13556 2002-03-31  Richard Henderson  <rth@redhat.com>
13558         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13559         (desc_frgr_mem): Fix reference to f16-f31.
13561 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13563         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13564         RTVEC_ELT): Const-ify.
13565         * varray.h (VARRAY_CHECK): Const-ify.
13566         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13567         ggc_mark_rtvec, ggc_mark): Const-ify.
13569 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13571         * diagnostic.c: Include langhooks-def.h.
13572         * Makefile.in (diagnostic.o): Update.
13574 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13576         * c-common.c (c_unsafe_for_reeval): Rename.
13577         * c-common.h (c_unsafe_for_reeval): Rename.
13578         * c-decl.c (finish_incomplete_decl): Rename.
13579         (c_init_decl_processing): Don't set langhook.
13580         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13581         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13582         * c-objc-common.c (c_objc_common_init): Don't set langhook.
13583         * c-tree.h (finish_incomplete_decl): Rename.
13584         * langhooks-def.h (lhd_unsafe_for_reeval): New.
13585         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13586         (LANG_HOOKS_INITIALIZER): Update.
13587         * langhooks.c (lhd_unsafe_For_reeval): New.
13588         * langhooks.h (struct langhooks): New hooks.
13589         * toplev.c (incomplete_decl_finalize_hook): Remove.
13590         (wrapup_global_declarations): Update.
13591         * tree.c (lang_unsafe_for_reeval): Remove.
13592         (unsafe_for_reeval): Update.
13593         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13594         Remove.
13595 objc:
13596         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13597         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13599 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13601         * diagnostic.c (print_error_function): Remove.
13602         (default_print_error_function): Rename.
13603         (report_error_function): Update.
13604         * diagnostic.h (print_error_function): Remove.
13605         (default_print_error_function): Remove.
13606         * langhooks-def.h (struct diagnostic_context): Predeclare.
13607         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13608         (LANG_HOOKS_INITIALIZER): Update.
13609         * langhooks.h (struct diagnostic context): Predeclare.
13610         (struct lang_hooks): New hook.
13612 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13614         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13615         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13616         !flag_pic.
13617         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13618         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13619         of PIC_OFFSET_TABLE_REGNUM thruout.
13620         * config/rs6000/rs6000.md: Likewise.
13621         * config/rs6000/darwin.h: Likewise.
13623 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13625         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13626         unsigned HOST_WIDE_INT, not unsigned int.
13628 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13630         PR middle-end/6096, middle-end/6098, middle-end/6099
13631         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13632         CODE_LABELs.
13633         (fill_slots_from_thread): Likewise.
13635 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13637         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13638         floating fields in float regs.
13639         (function_arg_record_value_2): Likewise.
13641 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13643         * config/mmix/mmix.md (define_constants): Remove misleading
13644         FIXME.  Add MMIX_fp_rO_OFFSET.
13645         ("nonlocal_goto_receiver"): Don't have stack-frame address of
13646         saved rO as part of the pattern.  Remove FIXME.
13647         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
13648         here, at output-time.
13650 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13652         PR middle-end/6100
13653         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13654         REG_BR_PRED.
13655         (output_v9branch): Likewise.
13657 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13659         * gcc.c: Revert previous patch for now.
13660         * config/i386/djgpp.h: Likewise.
13662 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13664         * config/mmix/crti.asm (_init): Register _fini with atexit.
13665         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13667 2002-03-31  Richard Henderson  <rth@redhat.com>
13669         PR target/3997
13670         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13671         (ASM_OUTPUT_DEF_FROM_DECLS): New.
13673 2002-03-31  Richard Henderson  <rth@redhat.com>
13675         * libgcc2.c (__bb_exit_func): Make static.
13677         * config/alpha/alpha.md (trap): New.
13679 2002-03-31  Richard Henderson  <rth@redhat.com>
13681         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13682         promoted argument types; build trap.
13683         (expand_builtin_trap): New.
13684         (expand_builtin): Use it.
13685         * stmt.c (expand_nl_goto_receivers): Likewise.
13686         * expr.h (expand_builtin_trap): Declare.
13687         * libfuncs.h (LTI_abort, abort_libfunc): New.
13688         * optabs.c (init_optabs): Init abort_libfunc.
13690 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13692         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13693         (LINK_COMMAND_SPEC): ... from here.
13694         (init_gcc_specs): Duplicate it here too, omitting
13695         shared_name in the second copy.
13696         (init_spec): Test for duplicate
13697         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13699 2002-03-30  David S. Miller  <davem@redhat.com>
13701         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13702         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
13704 2002-03-30  Roger Sayle <roger@eyesopen.com>
13705             Richard Henderson  <rth@redhat.com>
13707         * regmove.c (combine_stack_adjustments_for_block): Avoid
13708         emitting a stack adjustment of zero bytes.  Let delete_insn
13709         update bb->head.
13711 2002-03-30  Richard Henderson  <rth@redhat.com>
13713         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
13714         (sparc_emitting_epilogue): New.
13715         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
13716         * config/sparc/sparc-protos.h: Update.
13717         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
13718         (TARGET_SWITCHES): Update.
13719         * config/sparc/sparc.md (return): Remove.
13720         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
13721         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
13722         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
13723         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13724         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
13725         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
13726         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
13727         Remove MASK_EPILOGUE.
13728         * doc/invoke.texi: Update.
13730 2002-03-30  Daniel Berlin  <dan@dberlin.org>
13732         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
13733         CPP will start the file for us.
13735 2002-03-30  Richard Henderson  <rth@redhat.com>
13737         PR target/5446
13738         * config/ia64/ia64.c (group_barrier_needed_p): Special case
13739         prologue_allocate_stack.
13740         (ia64_single_set): Use insn codes for recognition of special
13741         cases, not rtl matching.
13742         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
13744 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
13746         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
13748 2002-03-30  Richard Henderson  <rth@redhat.com>
13750         PR target/6032
13751         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
13752         or -fomit-frame-pointer with profiling.
13753         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13754         (FUNCTION_PROFILER): Do nothing.
13755         (PROFILE_HOOK): New.
13756         * config/sparc/sparc.c (sparc_override_options): Don't check
13757         code models for profiling.
13758         (sparc_function_profiler): Remove.
13759         (sparc_profile_hook): New.
13760         * config/sparc/sparc-protos.h: Update.
13762 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
13764         PR optimization/6086
13765         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
13766         of SUBREG of volatile MEM or because the MEM was mode dependent,
13767         return CLOBBER instead of unmodified SUBREG.
13769 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
13771         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
13772         when not optimizing.
13774         * toplev.c (rest_of_compilation): Cann mark_constant_function
13775         only when optimizing.
13777         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
13778         are NULL.
13780         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
13781         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
13782         (try_optimize_cfg): clear all AUX fields.
13784         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
13785         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
13786         (ix86_address_cost): Be prepared for SUBREGed registers.
13787         (legitimate_address_p): Accept SUBREGed registers.
13789 2002-03-29  Richard Henderson  <rth@redhat.com>
13791         PR target/5672
13792         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
13794 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13796         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
13797         for aggregate and TFmode types.
13799 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
13801         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
13803 2002-03-29  Richard Henderson  <rth@redhat.com>
13805         PR target/5886
13806         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
13807         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
13809 2002-03-29  Richard Henderson  <rth@redhat.com>
13811         PR target/6041
13812         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
13813         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
13814         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
13815         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
13816         conditional.
13817         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
13819 2002-03-29  Dale Johannesen <dalej@apple.com>
13821         * loop.c (combine_movables): Do allow combination of pseudos.
13823 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
13825         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
13826         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
13827         No functional change except ...
13828         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
13829         * doc/install.texi (*-*-freebsd*): Document port configuration.
13831 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13833         * Makefile.in (convert.o, calls.o, expmed.o): Update.
13834         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
13835         Use new hooks.
13836         * builtin-types.def (BT_PTRMODE): Update.
13837         * c-common.c (type_for_size): Rename c_common_type_for_size.
13838         (type_for_mode): Similarly.
13839         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
13840         Use new hook.
13841         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
13842         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
13843         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
13844         Redefine.
13845         * c-typeck.c (common_type, comptypes, default_conversion):
13846         Use new hooks.
13847         * calls.c: Include langhooks.h.
13848         (emit_library_call_value_1): Use new hooks.  Avoid redundant
13849         calls.
13850         * convert.c: Include langhooks.h
13851         (convert_to_pointer, convert_to_integer): Use new hooks.
13852         * except.c (init_eh): Similarly.
13853         * expmed.c: Include langhooks.h.
13854         (expand_mult_add): Use new hooks.
13855         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
13856         try_casesi): Similarly.
13857         * fold-const.c (optimize_bit_field_compare, make_range,
13858         decode_field_reference, fold_truthop, fold): Similarly.
13859         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
13860         put_var_into_stack): Similarly.
13861         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
13862         LANG_HOOKS_TYPE_FOR_SIZE): New.
13863         (LANG_HOOKS_TYPES_INITIALIZER): Update.
13864         * langhooks.h (lang_hooks_for_types): New hooks.
13865         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
13866         * tree.c (get_unwidened, get_narrower): Similarly.
13867         * tree.h (type_for_mode, type_for_size): Remove.
13868         * varasm.c (force_const_mem): Use new hooks.
13869         * utils2.c (nonbinary_modular_operation): Update.
13870 objc:
13871         * objc-act.c (handle_impent): Update.
13872         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
13873         Redefine.
13875 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
13877         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
13878         * config/ia64/ia64.c (basereg_operand): New.
13879         * config/ia64/ia64-protos.h (basereg_operand): Declare.
13880         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
13882 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
13884         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
13885         unwind information when frame_pointer_needed.
13886         (mmix_assemble_integer): Tweak wording in comment.
13888 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13890         * Makefile.in (except.o): Update.
13891         * except.c: Include langhooks.h.
13892         (init_eh): Use langhook.
13893         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
13894         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
13895         (LANG_HOOKS_INITIALIZER): Update.
13896         * langhooks.h (lang_hooks_for_types): New.
13897         (struct lang_hooks): Add it.
13898         * tree.c (make_lang_type_fn, make_lang_type): Remove.
13899         * tree.h (make_lang_type_fn, make_lang_type): Remove.
13900 config:
13901         * alpha/alpha.c: Include langhooks.h.
13902         (alpha_build_va_list): Use langhook.
13903         * d30v/d30v.c: Include langhooks.h.
13904         (d30v_build_va_list): Use langhook.
13905         * i386/i386.c: Include langhooks.h.
13906         (ix86_build_va_list): Use langhook.
13907         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
13908         * s390/s390.c: Include langhooks.h.
13909         (s390_build_va_list): Use langhook.
13910         * stormy16/stormy16.c: Include langhooks.h.
13911         (stormy16_build_va_list): Use langhook.
13913 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
13915         PR c++/5964
13916         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
13917         attributes.
13918         (length): Compute variable length for branches/calls/jumps here.
13919         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
13920         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
13921         define branch_type attribute.
13922         (divsi3_sp32): Maximum length is 6 not 7.
13923         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
13924         call_address_untyped_struct_value_sp32,
13925         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
13926         * config/sparc/sparc.c (empty_delay_slot): New function.
13927         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
13928         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
13930 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
13932         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
13933         nonzero_bits if not needed.
13934         (nonzero_bits) [XOR]: Likewise.
13935         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
13936         reg_last_set_mode and mode are both MODE_INT, but not equal.
13937         (record_value_for_reg): Compute reg_last_set_nonzero_bits
13938         in nonzero_bits_mode for MODE_INT modes.
13940 2002-03-28  Richard Henderson  <rth@redhat.com>
13942         PR target/5715
13943         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
13944         to GAS.  Correct drift between alternatives.
13946 2002-03-28  Richard Henderson  <rth@redhat.com>
13948         PR target/6087
13949         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
13951 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
13953         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
13954         emulation to the linker.
13956 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
13958         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
13959         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13961 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
13963         * combine.c (simplify_and_const_int): Make sure to apply mask
13964         when force_to_mode returns a constant integer.  PR3311.
13966 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13968         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
13970 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13972         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
13973         and Objective-C Dialect Options.
13975 2002-03-28  Richard Henderson  <rth@redhat.com>
13977         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
13978         comparison should be done vs !=0 not >0 return code.  Tidy cases.
13980 2002-03-28  Richard Henderson  <rth@redhat.com>
13982         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
13983         on to c_expand_body.
13984         * c-tree.h (finish_function): Update decl.
13985         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
13987 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13989         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
13991 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
13993         * rtlanal.c: Include flags.h
13994         (may_trap_p): Do not mark FP operations if trapping
13995         if !flag_trapping_math
13996         * Makefile.in (rtlanal.o): Add dependency on flag.h
13997         * ifcvt.c (noce_operand_ok): Avoid the lameness.
13999 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
14001         * mips.md: Use dconst1, not 1.0, as first argument of
14002         REAL_VALUE_LDEXP.  Don't use union real_extract.
14004 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
14006         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14007         rather than $target.  Heed program_prefix and
14008         program_transform_name.  Search for gas in cross-compiler case too.
14009         "test -x" rather than "test -f".
14010         (gcc_cv_ld): Likewise.
14011         (gcc_cv_nm): Heed program_prefix and program_transform_name.
14012         (gcc_cv_objdump): Likewise.
14013         * configure: Regenerate.
14015 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14017         * Makefile.in (attribs.o): Update.
14018         * attribs.c: Include langhooks.h.
14019         (decl_attributes): Use langhook.
14020         * c-decl.c (insert_default_attributes): Rename.
14021         * c-tree.h (c_insert_default_attributes): New.
14022         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14023         (LANG_HOOKS_INITIALIZER): Update.
14024         * langhooks.h (struct lang_hooks): New hook.
14025         * tree.h (insert_default_attributes): Remove.
14026 objc:
14027         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14029 2002-03-27  Andreas Schwab  <schwab@suse.de>
14031         * config/i386/i386.c (classify_argument): Also check for
14032         QUAL_UNION_TYPE.
14034 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14036         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14037         any more.
14039 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14041         * i960.md (ret): Set PC.
14042         (nonlocal_goto): Fix expander.
14043         * builtins.c (epxand_builin_longjmp): Check that we've emitted
14044         some jump or call.
14046 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14048         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14049         of libcall regions.
14051 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14053         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14054         assigning to BLOCK_FOR_INSN directly.
14056 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14058         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14060 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14062         * c-common.c (c_expand_expr): Fix prototype.
14063         * c-common.h (c_expand_expr): Always declare, update.
14064         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14065         * c-objc-common.c (c_objc_common_init): No global hook.
14066         * expr.c (expand_expr): Use langhook.
14067         * expr.h (enum expand_modifier): Conditionally declare.
14068         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14069         (LANG_HOOKS_INITIALIZER): Update.
14070         * langhooks.c (lhd_expand_expr): New.
14071         * langhooks.h (struct lang_hooks): New hook.
14072         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14073         (lang_independent_init): Don't default hook.
14074 objc:
14075         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14077 2002-03-27  Richard Henderson  <rth@redhat.com>
14079         PR target/6054
14080         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14081         TARGET_CONST_GP.  Simplify conditions.
14083 2002-03-27  Richard Henderson  <rth@redhat.com>
14085         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14086         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14087         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14089 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
14091         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14092         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14093         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14094         Remove unnecessary masks.
14095         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14096         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14097         -mwindows, -mdll switches and their negations.
14099 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14101         * gcc-common.c (lang_mark_false_label_stack): Remove.
14102         * ggc.h (lang_mark_false_label_stack): Similarly.
14104 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14106         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14108         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14109         or __rtems_ is defined.
14111 2002-03-26  Richard Henderson  <rth@redhat.com>
14113         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14114         if a non-trivial load was emitted.
14115         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
14116         in high+extra+low case.
14118 2002-03-26  Richard Henderson  <rth@redhat.com>
14120         * config.gcc (sparc*-solaris): Use float_format=sparc.
14122 2002-03-26  Richard Henderson  <rth@redhat.com>
14124         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14125         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14126         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14127         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14128         (WINT_TYPE_SIZE): Fix at 32.
14130 2002-03-26  Richard Henderson  <rth@redhat.com>
14132         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14133         until after eh landing pad generation.
14134         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14135         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14137 2002-03-26  Richard Henderson  <rth@redhat.com>
14139         * expr.h (ADD_PARM_SIZE): One more convert for INC.
14141 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
14143         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
14144         and warning switches.
14145         (cc1_options):  Likewise.
14147 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
14149         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14150         Restore more of the signal context.  Set no_reg_stack_frame.
14151         * config/ia64/unwind-ia64.c (unw_state_record):
14152         Add no_reg_stack_frame, comments.
14153         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14154         (uw_update_context): Adjust bsp when unwinding from leaf,
14155         but not signal frame.
14157 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
14159         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14161 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14163         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14165 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14167         PR target/5621
14168         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14169         "Add a pool_range attribute", which was lost during the ARM/Thumb
14170         merge.
14172 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14174         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14175         a register into the MAC16 accumulator.
14177 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
14179         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14180         (Warning Options): Document -Wswitch-enum.
14181         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
14182         -Wswitch.
14183         (warn_switch_enum): Define variables.
14184         * flags.h (warn_switch_enum): Declare variables.
14185         * stmt.c (expand_end_case_type): When warn_switch_enum /
14186         -Wswitch-enum, perform switch checks.
14187         Fix PR c/5044.
14189 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14191         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14192         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14193         (reload_muladdsi_compare0_scratch): Delete.
14195 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
14197         * doc/install.texi (*-*-freebsd*): Update.
14199 2002-03-26  Richard Henderson  <rth@redhat.com>
14201         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14202         (SUB_PARM_SIZE): Cast DEC to ssizetype.
14204         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14205         types from the normal argument frame.
14207         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14208         variable sized objects by reference.
14209         (sparc_va_arg): Receive them by reference too.
14211 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
14213         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14214         code to not restoring global registers.
14216 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14218         * Makefile.in (ggc-common.o): Update.
14219         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14220         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14221         * c-tree.h (c_mark_tree): New.
14222         * ggc-common.c: Include langhooks.h.
14223         (gcc_mark_trees): Use new langhook.
14224         * ggc-callbacks.c: Delete file.
14225         * ggc.h (lang_mark_tree): Remove.
14226         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14227         (LANG_HOOKS_INITIALIZER): Update.
14228         * langhooks.h (struct lang_hooks): New hook.
14229 objc:
14230         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14232 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14234         * doc/cpp.texi: Exclude entire Top node from printed manual.
14235         Move option index after directive index.  Insert page breaks
14236         before GFDL and concept index.  Index environment variables
14237         with command line options.
14238         * doc/cppenv.texi: Use @vtable for environment variable list.
14239         Add paragraph explaining semantics of empty elements in path
14240         variables.  Exclude a cross-reference to Fishkill from the
14241         manpage.  Remove an unnecessary cross-reference of the entry
14242         right above the referer.  Don't use @anchor in text that goes
14243         into manpage.
14244         * doc/cppopts.texi: Cross-reference the environment variables
14245         section, not the specific environment variable, for consistency.
14247 2002-03-25  Richard Henderson  <rth@redhat.com>
14249         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14250         anywhere in the block.  Don't refer to insns that have been
14251         removed from the chain.  Iterate backward through the new insns.
14252         Don't refer to edges that have been removed.
14254 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
14256         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14257         test for overflow of constant.
14259 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
14261         PR target/2623
14262         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14263         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14264         these patterns on arm_archv4.
14266 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
14268         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14269         int".
14271 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14273         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
14274         float_handled, float_handler, float_signal, set_float_handler,
14275         and do_float_handler.  Set handler for SIGFPE to crash_signal.
14276         * toplev.h: Don't prototype do_float_handler.
14278         * c-lex.c: Fold parse_float into lex_number.  Make warning
14279         about portability of hex float constants more informative, and
14280         don't issue it on top of a syntax error.
14281         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14282         their callers.
14283         * real.h: Define REAL_VALUE_ABS here...
14284         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
14285         simplify_unary_real, simplify_binary_real, and
14286         simplify_binary_is2orm1 into their callers.
14287         * tree.c: Fold build_real_from_int_cst_1 into caller.
14289         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14291         * tsystem.h: Include float.h here...
14292         * libgcc2.c: ... not here.
14294 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
14296         Fixes for: PR bootstrap/3591, target/5676
14297         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14298         defined.  Do not disable exceptions or rtti.
14299         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14300         mcore.h.  Disable exceptions and rtti, since they are not
14301         supported by EPOC.
14303 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14305         * c-decl.c (maybe_build_cleanup): Remove.
14306         * expr.c (expand_expr): Use langhook.
14307         * langhooks-def.h (lhd_return_null_tree,
14308         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14309         (LANGHOOKS_INITIALIZER): Update.
14310         * langhooks.c (lhd_return_null_tree): New.
14311         * langhooks.h (struct lang_hooks): New hook.
14312         * tree-inline.c (initialize_inlined_parameters): Use langhook.
14313         * tree.h (maybe_build_cleanup): Remove.
14315 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14317         * regrename.c (build_def_use): Move recog_memoized
14318         before extract_insn.
14320 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14322         PR target/6043
14323         * expr.c (emit_group_store): Handle storing into CONCAT.
14325 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14327         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14328         corresponding MATCH_DUP.
14330 2002-03-24  Richard Henderson  <rth@redhat.com>
14332         * unroll.c (unroll_loop): Zero label_map.
14334         * gcse.c: Include except.h.
14335         * Makefile.in (gcse.o): Update.
14337 2002-03-24  Richard Henderson  <rth@redhat.com>
14339         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14340         Do resolve_unique_section before shared data clause.
14342 2002-03-24  Richard Henderson  <rth@redhat.com>
14344         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14346 2002-03-24  Richard Henderson  <rth@redhat.com>
14348         * recog.c (peephole2_optimize): Split blocks when EH insns are
14349         generated in the middle of a block.  Do global life update if
14350         zapped EH edges.
14352 2002-03-24  Richard Henderson  <rth@redhat.com>
14354         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14356 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14358         preprocessor/3951
14359         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14360         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14361         (init_dependency_output): Don't make no_output decision here.
14363 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
14365         * stmt.c (check_for_full_enumeration_handling): Remove tests of
14366         warn_switch.  Update description.
14367         (expand_end_case_type): Call check_for_full_enumeration_handling
14368         when warn_switch.
14370 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14372         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14373         (m68hc11_split_move): Call it to see if the source and destination
14374         operands use the same direction auto inc/dec mode, otherwise make the
14375         source an offsetable memory operand and generate an add.
14377 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14379         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14380         register for operand 2.
14381         ("*subsi3_zero_extendqi"): Likewise.
14382         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14383         bits so that it is compatible with a pop.
14384         ("*andhi3_gen"): Likewise.
14385         ("xorhi3"): Likewise.
14387 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14389         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14390         -pedantic here...
14391         (cpp_post_options): ... not here.
14393 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14394             Aldy Hernandez  <aldyh@redhat.com>
14396         Removal of separate preprocessor cpp0.
14398         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14399         cpp0, install-common): Update.
14400         * c-common.c (flag_preprocess_only): New.
14401         (c_common_init): Preprocess for -E.
14402         * c-common.h (flag_preprocess_only): New.
14403         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14404         * c-objc-common.c (c_init_decl_processing): Exit quickly
14405         for NULL return from c_common_init.
14406         * cpplib.h (cpp_preprocess_file): New.
14407         * cppmain.c (main, general_init, pfile, progname): Remove.
14408         (do_preprocessing): Rename cpp_preprocess_file, don't call
14409         cpp_finish.  Don't close stdout here.
14410         (setup_callbacks): Update prototype.
14411         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14412         Update.
14413         * tradcpp.c (main): Ignore -quiet.
14414 objc:
14415         * lang-specs.h (default_compilers): Preprocess with cc1obj.
14417 2002-03-24  Richard Henderson  <rth@redhat.com>
14419         PR optimization/5742
14420         * machmode.def: Add inner mode field to complex modes.
14421         * config/mips/mips.c (mips_function_value): Always define.  Add
14422         new argument to handle libcalls.
14423         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14424         (FUNCTION_VALUE): Likewise.
14425         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14426         * config/mips/mips-protos.h: Update.
14428 2002-03-23  Richard Henderson  <rth@redhat.com>
14430         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14431         * config/sparc/sparc-protos.h: Update.
14432         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14434 2002-03-23  Richard Henderson  <rth@redhat.com>
14436         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14437         _start or _init begins the text segment.
14439 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
14441         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
14442         not HOST_WIDEST_INT.
14443         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14445 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
14447         PR java/5489
14448         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14449         operand argument to output_return_instruction.
14450         * arm.c (arm_print_operand, case 'd'): If the operand is
14451         const_true_rtx then just return.
14452         (arm_print_operand, case 'D'): If the operand is const_true_rtx
14453         then abort.
14455 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
14457         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14458         (Warning Options): Document -Wswitch-default.
14459         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
14460         -Wswitch.
14461         (warn_switch_default): Define variable.
14462         (warn_switch): Update comment.
14463         * flags.h (warn_switch_default): Declare variable.
14464         (warn_switch): Update comment.
14465         * stmt.c (expand_end_case): Check for and, when
14466         warn_switch_no_default, warn of a missing default case.
14468 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
14470         * real.h (N): Special case 128 bit doubles.
14472         * combine.c (simplify_comparison): When widening modes, ignore
14473         sign extension on CONST_INTs.
14475 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14477         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14478         passed to adjust_address.  Fix comment formatting.
14481 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
14483         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14484         Always make REAL_VALUE_TYPE a struct containing an array of
14485         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
14486         big it is.  Don't declare or use union real_extract.
14488         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14489         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14490         (print_operand), config/arm/arm.c (output_move_double),
14491         config/arm/arm.md (consttable_4, consttable_8),
14492         config/romp/romp.c (output_fpops), config/s390/s390.h
14493         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14494         (xtensa_output_literal): Don't use union real_extract.
14496         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14497         (sfmode_constant_to_ulong), config/ns32k/merlin.h
14498         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14499         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14500         (PRINT_OPERAND): Don't use local version of union
14501         real_extract.
14503         * config/convex/convex.c (check_float_value), config/vax/vax.c
14504         (vax_float_literal), config/m88k/m88k.md (divdf3),
14505         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14506         config/pdp11/pdp11.c (output_move_quad): Don't do host
14507         arithmetic on target floating point quantities.
14509         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14510         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14512         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14513         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14515         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14516         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14517         INFINITY.
14518         * print-rtl.c (print_rtx): Disable code which needs
14519         floating-point emulator.
14520         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14521         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14522         depending on HOST_FLOAT_FORMAT to be defined properly.
14524         * config/1750a/1750a.c (get_double, float_label): Delete.
14525         (print_operand): Delete huge commented-out chunk.  Use
14526         REAL_VALUE_TO_DECIMAL.
14527         * config/1750a/1750a-protos.h: Delete prototypes of deleted
14528         functions.
14529         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14530         IEEE_FLOAT_FORMAT.
14531         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14532         Use REAL_VALUE_TO_DECIMAL as ELF version does.
14533         * config/m88k/m88k.c (real_power_of_2_operand,
14534         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14535         real_extract out of the union; run the input through
14536         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14537         from that into the union.
14538         * config/pdp11/pdp11.c (output_move_double): Rearrange
14539         parentheses to make automatic indenter happy.
14541         * doc/tm.texi (Cross-compilation): Rename node to "Floating
14542         Point" and rewrite to describe current situation.  Also adjust
14543         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14544         match code.
14545         * doc/rtl.texi: Adjust cross reference.
14547 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14549         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14550         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14551         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14552         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14553         prevent use of sp as a reload register.
14554         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14555         non_acc_reg_operand.
14556         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14557         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14558         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14559         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14561 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14563         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14564         * cpplex.c (unterminated): Delete.
14565         (parse_string): No string literal may extend over multiple
14566         lines.  Suppress the error when preprocessing assembly.
14567         * cppmain.c (scan_translation_unit): Strings are single-line.
14569         * doc/cpp.texi: Update to match.
14571 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14573         PR optimization/5854
14574         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14575         Shut up warnings.
14576         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14577         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14578         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14579         const0 if scratch register was not allocated.
14580         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14581         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14582         with GEN_INT (...).
14583         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14584         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14585         with GEN_INT (...) everywhere.  Remove constraints in define_split
14586         patterns.
14587         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14588         require scratch register for setting 0 into regs/non-pushable memory.
14590 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14592         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14593         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14595 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
14597         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
14598         * cppinit.c (cpp_create_reader):  On by default.
14599         (cpp_handle_option):  Handle -W[no-]endif-labels.
14600         (cpp_post_options):  Also enable if -pedantic.
14601         * cpplib.c (do_else):  Use it.
14602         (do_endif):  Likewise.
14603         * doc/cppopts.texi:  Document new option.
14604         * doc/invoke.texi:  Document new option.
14606 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
14608         * config/i386/i386.c, config/i386/i386.md: Change all occurences
14609         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14611 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14613         * flow.c (calculate_global_regs_live): Clear aux fields of
14614         ENTRY and EXIT.
14616 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14618         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14619         REG or MEM subregs, pass rtx * instead of rtx to it.
14620         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14621         rtx * instead of rtx to alter_subreg.
14622         * config/m32r/m32r.c (gen_split_move_double): Likewise.
14623         * config/pj/pj.c (pj_output_rval): Likewise.
14625 2002-03-22  Richard Henderson  <rth@redhat.com>
14627         PR target/3177
14628         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14629         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14630         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14631         (ia64_expand_prologue): Look at int_regs, not words, for number
14632         of incomming int regs.
14634 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
14636         * expr.c (expand_expr): A RESULT_DECL is part of a call.
14638 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
14640         * toplev.c (flag_loop_optimize, flag_crossjumping):
14641         New static variables.
14642         (rest_of_compilation): Conditionalize crossjumping and
14643         loop optimizer.
14644         (parse_options_and_default_flags): Default loop_optimize and
14645         crossjumping.
14646         (lang_independent_options): Add -fcrossjumping and -floop-optimize
14647         * invoke.texi (crossjumping, loop-optimize): Document.
14649 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14651         * real.c (eiisneg): Move outside #ifdef NANS.
14653 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14655         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14656         frequencies match; avoid match on different loop depths.
14657         (try_crossjump_to_bb): Kill tests that no longer brings time
14658         savings.
14659         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14660         updating code.
14661         (split_edge): Likewise.
14663         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14664         variable.
14666         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14667         * cfgrtl.c: Include insn-config.h
14668         (split_block) Dirtify block in presence of conditional execution
14670 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14672         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14673         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14674         (function_arg): Constify CUMULATIVE_ARGS.
14675         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14676         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14677         (UNITS_PER_DOUBLE): New macro.
14678         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
14679         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
14680         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
14681         fp_regs and stack_words.
14682         (EABI_FLOAT_VARARGS_P): New macro.
14683         * config/mips/mips.c (struct mips_arg_info): New.
14684         (mips_arg_info): New function.
14685         (function_arg_advance): Use it.  Add adjustment instructions here
14686         rather than in function_arg.
14687         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
14688         for VOIDmode at the beginning of the function.
14689         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
14690         (function_arg_pass_by_reference): Likewise.
14691         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14692         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14693         (mips_va_start): Likewise.  Use the new stack_words field of
14694         CUMULATIVE_ARGS to set up overflow area.  Reformat.
14695         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
14696         doubles and other types, aligning the overflow pointer for non-doubles
14697         too.  Remove some code duplication.  Replace hard-coded constants.
14699 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14701         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14702         (CLASS_UNITS): Undefine.
14703         (CLASS_MAX_NREGS): Use FP_INC.
14704         * config/mips/mips.c (compute_frame_size): Likewise.
14705         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
14707 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14709         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
14710         prototype, and handle lexing numbers and identifiers.
14711         (parse_identifier): Update to new form of parse_slow.
14712         (parse_number): Fast path only, use parse_slow otherwise.
14713         (_cpp_lex_direct): Update calls to parse_number.
14715 2002-03-21  DJ Delorie  <dj@redhat.com>
14717         * bb-reorder.c (make_reorder_chain_1): Protect against
14718         when redundant edges are omitted.
14719         * predict.c (dump_prediction): Likewise.
14721 2002-03-21  Richard Henderson  <rth@redhat.com>
14723         PR target/5996
14724         * fixinc/inclhack.def (solaris_stdio_tag): New.
14725         * fixinc/fixincl.x: Regenerate.
14727 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
14729         PR c/5597
14730         * c-typeck.c (process_init_element): Flag non-static
14731         initialization of a flexible array member as illegal.
14733 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
14735         * config/rs6000/t-linux64: New.
14736         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
14737         t-ppccomm.  Use t-rs6000 and t-linux64.
14738         (powerpc64-*-gnu* <tmake_file>): Likewise.
14739         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
14740         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
14741         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
14743 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
14745         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
14746         flag_really_no_inline instead of optimize == 0.
14748         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
14750         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
14752         * flags.h (flag_really_no_inline): New.
14754         * c-common.c (c_common_post_options): Initialize
14755         flag_really_no_inline.
14757         * toplev.c (flag_really_no_inline): New.
14759 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
14761         * config/avr/avr.md (length): Fix length computation for
14762         conditional branches.
14764 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
14766         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
14767         sdbout.o, profile.o): Update.
14768         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
14769         langhook.
14770         * c-common.h (gettags): Move here from tree.h.
14771         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
14772         insert_block, getdecls, kept_level_p, global_bindings_p): New.
14773         * dbxout.c (dbxout_init): Use getdecls langhook.
14774         * expr.c (expand_expr): Use insert_block langhook.
14775         * fold-const.c: Include langhooks.h.
14776         (fold_range_test, fold_binary_op_with_conditional_arg,
14777         fold): Use global_bindings_p langhook.
14778         * integrate.c (expand_inline_function): Use insert_block langhook.
14779         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
14780         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
14781         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
14782         LANG_HOOKS_GETDECLS): New.
14783         (LANG_HOOKS_INITIALIZER): Update.
14784         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
14785         langhook.
14786         * langhooks.h (struct lang_hooks_for_decls): New.
14787         (struct lang_hooks): Update.
14788         * profile.c: Include langhooks.h.
14789         (output_func_start_profiler): Use new langhooks.
14790         * sdbout.c: Include langhooks.h.
14791         (sdbout_init, sdbout_finish): Use getdecls langhook.
14792         * stmt.c: Include langhooks.h.
14793         (expand_fixup, fixup_gotos): Use new langhooks.
14794         * stor-layout.c: Include langhooks.h.
14795         (variable_size): Use global_bindings_p langhook.
14796         * toplev.c (compile_file): Use getdecls langhook.
14797         * tree-inline.c (remap_block): Use insert_block langhook.
14798         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
14799         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
14801 2002-03-21  Richard Henderson  <rth@redhat.com>
14803         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
14804         constants in .data when -fpic.
14806 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14808         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
14809         where appropriate.
14811 2002-03-21  Tom Tromey  <tromey@redhat.com>
14813         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
14815 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14817         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
14819         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
14821 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
14822             Richard Henderson  <rth@redhat.com>
14824         PR c/5354
14825         * c-common.c (c_expand_expr): Preserve result of a statement
14826         expression if needed.
14828 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
14830         PR bootstrap/4195
14831         * genrecog.c (maybe_both_true_mode): Remove.
14832         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
14833         * machmode.def (Pmode): Likewise.
14835 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
14837         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
14838         (nonlocal_mentioned_p_1): New function.
14839         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
14840         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
14841         (mark_constant_function): Recognize pure functions.
14842         * rtl.h (global_reg_mentioned_p): New prototype.
14843         * rtlanal.c (global_reg_mentioned_p,
14844         global_reg_mentioned_p_1): New function.
14846 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14848         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
14849         UNIX assert.h.
14850         * fixinc/fixincl.x: Regenerate.
14852 2002-03-20  Jason Merrill  <jason@redhat.com>
14854         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
14856 2002-03-20  Michael Meissner  <meissner@redhat.com>
14858         * doc/invoke.texi (Optimize Options): Document that -O2 sets
14859         -fstrict-aliasing.
14861 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
14863         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
14864         ".literal_position" directive before the constant pool.
14866 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14868         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
14869         Add Craig Rodrigues.
14870         Add Brad Lucier to testers.
14872 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
14874         PR target/4792
14875         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
14876         to if_then_else.
14877         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
14878         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
14879         instead of insn_extract.
14881 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
14883         PR bootstrap/4192
14884         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
14886         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
14887         stmt if some case has been output.
14889 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
14891         PR c/5972
14892         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
14893         movsfcc_1, movdfcc_1): Add %O2.
14894         * config/i386/i386.c (print_operand): Handle %ON.
14895         Print . before float condition codes in Sun as cmov syntax.
14896         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
14897         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
14898         no longer true.
14900 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
14902         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
14903         return instruction if PC was popped.
14905 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
14907         * config/xtensa/xtensa.md: Remove unused type attributes.
14908         (adddi_carry, subddi_carry): Change type attribute to "multi".
14910 2002-03-19  Dale Johannesen  <dalej@apple.com>
14912         PR optimization/5999, middle-end/5731
14913         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
14914         multiplications by reciprocals.
14916 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14918         * Makefile.in: Update.
14919         * c-common.c: Include langhooks.h.
14920         (inline_forbidden_p): Use new hook.
14921         * diagnostic.c: Include langhooks.h.
14922         (format_with_decl, announce_function,
14923         default_print_error_function): Use new hook.
14924         * dwarf2out.c (dwarf2_name): Use new hook.
14925         * function.c: Include langhooks.h.
14926         (init_function_start): Use new hook.
14927         * langhooks-def.h (lhd_decl_printable_name): New.
14928         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
14929         (LANGHOOKS_INITIALIZER): Update.
14930         * langhooks.c (lhd_decl_printable_name): New.
14931         * langhooks.h (struct lang_hooks): New hook.
14932         * toplev.c (decl_name, decl_printable_name): Remove.
14933         (open_dump_file): Use new hook.
14934         (process_options): Remove old hook.
14935         * tree.h (decl_printable_name): Remove.
14936 objc:
14937         * objc-act.c (objc_init): Remove old hook.
14938         (objc_printable_name): Export.
14939         * objc-act.h (objc_printable_name): New.
14940         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14942 2002-03-19  Jim Blandy  <jimb@redhat.com>
14944         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
14945         the start_source_file debug hook, not the current line number.
14947 2002-03-19  Richard Henderson  <rth@redhat.com>
14949         * flow.c (EH_USES): Provide default.
14950         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
14951         * doc/tm.texi (EH_USES): New.
14953         * config/ia64/ia64.c (ia64_eh_uses): New.
14954         * config/ia64/ia64-protos.h: Update.
14955         * config/ia64/ia64.h (EH_USES): New.
14957 2002-03-19  Richard Henderson  <rth@redhat.com>
14959         * varasm.c (output_constant_def): Fix stupid typo.
14961 2002-03-19  Richard Henderson  <rth@redhat.com>
14963         PR 5879
14964         * except.c (current_function_has_exception_handlers): New.
14965         * except.h: Declare it.
14966         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
14967         Combine tests that disable all sibcalls for the function.
14969 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
14971         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
14972         for INTEGER_CST.
14974 2002-03-19  Richard Henderson  <rth@redhat.com>
14976         PR 5977, 5991
14977         * config/ia64/ia64.c: Revert 2002-03-01 patch.
14978         * config/ia64/ia64.h (INIT_EXPANDERS): New.
14980 2002-03-19  Jim Blandy  <jimb@redhat.com>
14982         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
14983         name, even if the replacement list contains no tokens, as required
14984         by Dwarf.
14986 2002-03-19  Jason Merrill  <jason@redhat.com>
14988         * varasm.c (globalize_decl): Get the name from the RTL, not
14989         DECL_ASSEMBLER_NAME.
14991         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
14993 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
14995         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
14996         subdi_carry): Define.
14998 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15000         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15001         about -fpic/-fPIC if extra_warnings set.
15003 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15005         * expr.c (expand_expr): Sign-extend CONST_INT generated from
15006         TREE_STRING_POINTER.
15007         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15009 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15011         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15012         in favor of SP if FRAME_POINTER_REQUIRED is false.
15014 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
15016         * emit-rtl.c (gen_int_mode): New function.
15017         * rtl.h: Prototype for it.
15018         * combine.c (make_extraction, simplify_comparison), expmed.c
15019         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15020         (convert_modes, store_field), optabs.c (expand_fix),
15021         simplify-rtx.c (neg_const_int, simplify_unary_real),
15023         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15024         Use it instead of GEN_INT (trunc_int_for_mode (...)).
15026 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
15028         PR c/5656
15029         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15030         convert_parm_for_inlining.
15031         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15032         Define.
15033         * langhooks-def.h: Likewise.
15034         * objc/objc-lang.c: Likewise.
15035         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15036         function.
15037         * tree-inline.c (initialize_inlined_parameters):
15038         Call convert_parm_for_inlining lang hook if needed.
15039         * c-typeck.c (c_convert_parm_for_inlining): New function.
15040         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15042 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
15044         * calls.c (precompute_arguments): Do not assume that temporaries
15045         can be destroyed after expanding the argument.
15046         (expand_call): Likewise.
15048 2002-03-15  Eric Christopher  <echristo@redhat.com>
15050         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15051         Fix register preference on last change.
15052         * config/mips/mips.c (mips_return_in_memory): New function.
15053         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15054         * config/mips/mips-protos.h: Declare.
15055         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15056         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15058 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
15060         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15061         a register too.
15062         (anddi3, iorsi3): Likewise.
15064         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15065         use %gprel for symbols that are going to be placed in linkonce
15066         sections.
15068         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15069         RETURN_ADDRESS_POINTER_REGNUM to $ra.
15070         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15071         not needed.  Disregard leaf_function_p().
15072         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15073         mips16 frame pointer.
15074         * config/mips/mips.md (store ra): Only to small SP offsets.
15075         2001-08-22  Graham Stott  <grahams@redhat.com>
15076         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15077         return a REG rtx for the return address register.
15079 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
15081         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15082         constant-pool addresses as "mode-dependent".
15083         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15085 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
15087         PR target/5740
15088         * expr.c (emit_group_load): Use extract_bit_field if
15089         needed for CONCAT arguments.
15091 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
15093         PR target/4863
15094         * arm.md (tablejump): Make this a define_expand.  For PIC add the
15095         offset to the base of the table.
15096         (thumb_tablejump): Matcher for Thumb tablejump insn.
15097         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15098         as the difference of two labels.
15099         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15100         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15101         tables in the code.
15102         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15103         * arm.c (get_jump_table_size): If the table is not in the text
15104         section, return zero.
15106 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
15108         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15109         of gen_rtx_SUBREG.
15110         (arm_reload_out_hi): Use gen_lowpart instead of
15111         gen_rtx_SUBREG to access QImode components.
15112         * config/arm/arm.md: Disable zero_extend split for QImode
15113         subregs in BIG_ENDIAN mode.
15114         (storehi_bigend): Match use of least significant byte.
15115         (storeinthi): Remove extraneous SUBREG.
15116         Add missing construction of operands[2].
15117         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15118         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15119         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15121 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
15123         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15124         any_operand.
15126 2002-03-17  Richard Henderson  <rth@redhat.com>
15128         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15129         explicitly.
15131 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15133         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15134         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15136 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15138         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15140         * predict.c (estimate_bb_frequencies): Delete unused variables.
15142 2002-03-17  Richard Henderson  <rth@redhat.com>
15144         * config/ia64/ia64.c (ia64_attribute_table): Move before
15145         targetm definition.  Make static.
15147 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
15149         * c-common.h (yyparse, c_common_parse_file): New.
15150         * c-lang.c: Include c-common.h.
15151         (LANG_HOOKS_PARSE_FILE): Redefine.
15152         * c-lex.c: Include c-common.h.
15153         (yyparse): Rename c_common_parse_file.  Call yyparse.
15154         * c-parse.in (yyparse): Remove macro.
15155         * c-tree.h (yyparse_1): Remove.
15156         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15157         (LANG_HOOKS_INITIALIZER): Update.
15158         * langhooks.h (struct lang_hoooks): New hook parse_file.
15159         * toplev.c (compile_file): Use parse_file hook.
15160         * tree.h (yyparse): Remove.
15161         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15163 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15165         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15166         float_truncate, not fix.
15167         ("*truncdfsf2_real"): Ditto.
15168         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15170         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15172 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
15174         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15175         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
15176         where appropriate.  Make the second reference to
15177         leaf_function_p a function call, as intended.  Reindented.
15179         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15180         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15182         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15183         add register to non-constant into sp.
15185         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15186         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15187         (mips16_gp_pseudo_rtx): Lose.
15188         (INIT_EXPANDERS): Deleted.
15189         * config/mips/mips.c (mips_init_machine_status): New.
15190         (mips_free_machine_status): New.
15191         (mips_mark_machine_status): New.
15192         (override_options): Set them.
15193         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15194         (struct machine_function): ... new.  Replaced all references.
15195         (mips_add_gc_roots): Don't mark them.
15196         (embedded_pic_fnaddr_reg): New, extracted from...
15197         (embedded_pic_offset): ... here.
15198         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15199         (movsi): Likewise.
15201 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15203         * cppinit.c: Revert -MD removal.
15205 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15207         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15208         soft registers by default for 68HC12.
15209         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15210         when compiling with -fomit-frame-pointer.
15211         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15212         (expand_epilogue): Likewise.
15213         (m68hc11_gen_rotate): Use exg when rotating by 8.
15215 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15217         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15218         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15219         (splits): Remove unused add splits.
15220         ("*addhi3_68hc12"): Tune constraints.
15221         ("addhi_sp"): Try to use X instead of Y in all cases and if the
15222         constant fits in 8-bits and D is dead use abx/aby instructions.
15223         ("*addhi3"): Remove extern declaration of ix_reg.
15224         ("*subsi3"): Optimize and provide new split.
15225         ("subhi3"): Cleanup.
15226         ("*subhi3_sp"): Avoid saving X if we know it is dead.
15227         (arith splits): For 68hc12 save the address register on the stack
15228         and do the arithmetic operation with a pop.
15230 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15232         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15233         allocating QImode in address registers.
15234         ("*movqi_m68hc11"): Likewise.
15236 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
15238         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15240 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15242         * cppinit.c (print_help): Display -MD and -MMD.
15243         Don't display usage string.  Update assertion syntax and
15244         typo.
15245         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15246         (cpp_handle_option): Update.
15248 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
15250         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15251         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15252         and define it so that regardless of target CPU size,
15253         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15254         of "int" rather than "long."
15256 2002-03-15  Richard Henderson  <rth@redhat.com>
15258         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15259         size as a tree.
15261 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15263         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15264         ("tstqi" split): Avoid using memory for tstqi on address register.
15265         (splits): Remove constraints.
15266         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15267         ("cmpdf", "cmpsf"): Remove since not used.
15268         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15269         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15271 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15273         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15274         ("neghi2"): Tighten constraints.
15275         ("one_cmplsi2"): Optimize and simplify split.
15276         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15278 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15280         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15281         and split of AND operation to clear the upper bits.
15282         ("*logicalsi3_zextqi"): Likewise.
15283         ("*logicallhi3_zexthi_ashift8"): Likewise.
15284         ("*logicalsi3_silshr16"): Likewise.
15285         ("logicalsi3_silshl16"): Likewise.
15286         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15288 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15290         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15291         (m68hc11_indirect_p): New function.
15292         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15293         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15294         TARGET_M6812.
15295         (asm_print_register): Likewise.
15296         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15297         (m68hc11_indirect_p): Declare.
15298         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15299         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15300         (TARGET_SWITCHES): New option -mrelax.
15301         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15302         destination.
15303         ("iorsi3", "xorsi3"): Likewise.
15304         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15305         ("*andhi3_mem"): New to handle destination in memory with bclr
15306         and a scratch register.
15307         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15308         ("*andhi3_const"): New when operand2 is constant.
15309         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15310         ("*andhi3_gen"): Cleanup of the old "andhi3".
15311         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15312         ("xorqi3"): Update constraints.
15314 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15316         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15317         for reg_equiv_memory_loc when the operand is a register that does
15318         not get a hard register (stack location).
15319         (tst_operand): After reload, accept all memory operand.
15320         (symbolic_memory_operand): Fix detection of symbolic references.
15321         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15322         accept symbols and any constant.
15324 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15326         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15327         note on the insn that sets the soft frame register.
15328         (must_parenthesize): ix and iy are also reserved names.
15329         (print_operand_address): One more place where parenthesis are required
15330         to avoid confusion with register names.
15331         (m68hc11_gen_movhi): Allow push of stack pointer.
15332         (m68hc11_check_z_replacement): Fix handling of parallel with a
15333         clobber.
15334         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15335         the replacement register is.
15336         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15337         and D8_REGS classes.
15338         (MODES_TIEABLE_P): All modes are tieable except QImode.
15340 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15342         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15343         (___subdi3): Likewise.
15344         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15345         (__map_data_section): Optimize 68hc11 case.
15347 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15349         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15350         than a shift to avoid adding a register with itself.
15351         (m68hc11_memory_move_cost): Take into account NO_REGS.
15352         (m68hc11_register_move_cost): Update and use memory move cost
15353         for soft registers.
15354         (m68hc11_address_cost): Make cost of valid offset not 0 so that
15355         it gives more opportunities to cse to optimize.
15356         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15357         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15359 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
15361         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15362         * c-common.def (CLEANUP_STMT): New tree node.
15363         * c-common.h (CLEANUP_DECL): New macro.
15364         (CLEANUP_EXPR): Likewise.
15365         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15366         * expr.c (expand_expr): Tidy.
15367         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15368         * tree-inline.c (initialize_inlined_parameters): Clean up
15369         new local variables.
15371 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15373         PR bootstrap/4128
15374         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15375         before movrXX only, use reg_overlap_mentioned_p.
15376         Only special case NE if just one insn can be generated.
15378 2002-03-15  Jason Merrill  <jason@redhat.com>
15380         * varasm.c (assemble_variable): Call resolve_unique_section before
15381         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
15382         of error_mark_node.
15384 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15386         PR target/5170
15387         * arm.md (split pattern for thumb shiftable immediates): Add comment
15388         explaining non-obvious test.
15390 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15392         PR target/5712
15393         * arm.md (movaddr, movaddr_insn): Delete.
15395 2002-03-15  Jason Merrill  <jason@redhat.com>
15397         * toplev.c (wrapup_global_declarations): Clarify variable handling.
15398         -fkeep-static-consts doesn't apply to comdats.
15400 2002-03-14  Richard Henderson  <rth@redhat.com>
15402         * c-decl.c: Include c-pragma.h.
15403         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15404         (finish_function): Tidy.
15405         * c-pragma.c: Include c-common.h.
15406         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15407         (handle_pragma_weak): Use them.
15408         (init_pragma): Register pending_weaks.
15409         * c-pragma.h (maybe_apply_pragma_weak): Declare.
15410         * print-tree.c (print_node): Print DECL_WEAK.
15411         * varasm.c (mark_weak_decls): Remove.
15412         (remove_from_pending_weak_list): Remove.
15413         (add_weak): Remove.
15414         (asm_emit_uninitialised): Call globalize_decl for weak commons.
15415         (weak_decls): Make a tree_list.
15416         (declare_weak): Cons weak_decls directly.
15417         (globalize_decl): Remove weak_decls elements directly.
15418         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
15419         symbols.  Don't pretend to handle aliases.
15420         (init_varasm_once): Update weak_decls registry.
15421         * Makefile.in: Update dependencies.
15423 2002-03-14  Richard Henderson  <rth@redhat.com>
15425         PR target/5312
15426         * config/ia64/ia64.c: Include tm_p.h last.
15427         (gen_nop_type): Remove duplicate definition.
15428         (cycle_end_fill_slots): Set sched_data for second L slot.
15429         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15430         (nop_cycles_until): Fix typos.
15432 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15434         PR optimization/5891
15435         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15437 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15439         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15440           descriptors correctly.
15442 2002-03-14  Michael Meissner  <meissner@redhat.com>
15444         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15445         100, allowing MAX_UNROLLED_INSNS to be overridden.
15447         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15448         --param.
15450         * unroll.c (params.h): Include.
15451         (MAX_UNROLLED_INSNS): Delete, now in params.h.
15453         * doc/invoke.texi (--param max-unroll-insns): Document.
15455         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15457 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15459         * arm.md: Fix warnings about constraints in peepholes and splits.
15461 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
15463         * cpphash.h (struct lexer_state): Remove line_extension member.
15464         * cpplib.c (dequote_string, do_linemarker): New functions.
15465         (linemarker_dir): New data object.
15466         (DIRECTIVE_TABLE): No longer need to interpret #line in
15467         preprocessed source.  Delete obsolete comment about return
15468         values of handlers.
15469         (end_directive, directive_diagnostics, _cpp_handle_directive):
15470         Don't muck with line_extension.
15471         (directive_diagnostics): No need to issue warnings for
15472         linemarkers here.
15473         (_cpp_handle_directive): Issue warnings for linemarkers here,
15474         when appropriate.  Dispatch linemarkers to do_linemarker, not
15475         do_line.
15476         (do_line): Code to handle linemarkers split out to do_linemarker.
15477         Convert escape sequences in filename argument, both places.
15479         * cppmacro.c (quote_string): Rename cpp_quote_string and
15480         export.  All callers changed.
15481         * cpplib.h (cpp_quote_string): Prototype.
15482         * cppmain.c (print_line): Call cpp_quote_string on to_file
15483         before printing it.
15485         * doc/cpp.texi: Document that escapes are now interpreted in
15486         #line and in linemarkers, and that non-printing characters are
15487         converted to octal escapes when linemarkers are generated.
15489 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
15491         * emit-rtl.c (try_split): Use delete_insns.
15492         * recog.c (split_all_insns): Fix terminating condition.
15494 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15495             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
15497         PR target/5828
15498         * arm.c (arm_output_epilogue): Fix floating-point register save
15499         adjustment when using a frame pointer.
15501 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
15503         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15504         * config/mips/mips.c (compute_frame_size): Retrofit them here.
15505         (save_restore_insns, mips_expand_epilogue): And here.
15506         (build_mips16_call_stub): And here.
15507         (mips_function_value): Use the new macros to decide whether a single
15508         or complex float can be returned in floating-point registers.  Return
15509         a parallel rtx in the complex case.
15511 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15513         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15514         call after liveness analysis.
15516         * recog.c (split_insn): Use delete_insn_and_edges.
15518         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15519         instructions to have branch prediction notes.
15520         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15522 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
15524         * configure.in: Don't pass -Wno-long-long to a ADA compiler
15525         that doesn't support it.
15526         * configure: Regenerate.
15528 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15530         PR target/5626
15531         * config/sparc/sparc.md (normal_branch, inverted_branch,
15532         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15533         inverted_fp_branch): Adjust calls to output_cbranch.
15534         Set length attribute.
15535         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15536         output_v9branch.  Set length attribute.
15537         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15538         predicates.
15539         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15540         (output_cbranch): Likewise.  Handle far branches.
15541         (output_v9branch): Handle far branches.
15542         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15543         Adjust prototypes.
15544         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15545         noov_compare64_op predicates.
15547 2002-03-13  Jason Merrill  <jason@redhat.com>
15549         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15550         into the function and constify it.
15551         * gthr-dce.h, gthr-solaris.h: Likewise.
15553 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
15555         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15556         * config/rs6000/rs6000.c (rs6000_va_arg): Use
15557         std_expand_builtin_va_arg if not ABI_V4.
15559 2002-03-13  Jason Merrill  <jason@redhat.com>
15561         * varasm.c (globalize_decl): New fn.
15562         (assemble_start_function): Use it.
15563         (asm_emit_uninitialized): Use it.
15564         (assemble_alias): Use it.
15565         (assemble_variable): Use it.
15567 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
15569         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15570         2002-03-12 internal visibility change.
15571         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15572         visibility into SYMBOL_REF_FLAG.
15574 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
15576         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15577         VOIDmode operand.  Add compile-time optimization for constant results.
15579 2002-03-12  Jason Merrill  <jason@redhat.com>
15581         * c-typeck.c (convert_for_assignment): Don't allow conversions
15582         between pointers and references.  Only allow lvalues to convert to
15583         reference.
15585 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
15587         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15588         before prologue, to avoid scheduling problems.
15590 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15592         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15593         (ELIMINABLE_REGS): Add sfp->sp.
15594         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15596 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15598         PR optimization/5892
15599         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15601 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15603         * loop.c (basic_induction_var): Don't call convert_modes if mode
15604         classes are different.
15606 2002-03-12  Richard Henderson  <rth@redhat.com>
15608         PR optimization/5901
15609         * function.c (reposition_prologue_and_epilogue_notes): Position
15610         the markers after/before the last/first insn not deleted.
15612 2002-03-12  Richard Henderson  <rth@redhat.com>
15614         PR optimization/5878
15615         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15616         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15617         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15619         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15620         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15621         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15623         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15624         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15625         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15626         also.  Don't set it if not flag_pic.
15627         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15628         to be INVALID_REGNUM when not used.
15630 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
15632         * expmed.c (store_bit_field): Reset alias set for memory.
15633         (extract_bit_field): Same.
15635 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15637         * c-common.c (c_tree_code_type, c_tree_code_length,
15638         c_tree_code_name, add_c_tree_codes): Delete.
15639         * c-common.h (add_c_tree_codes): Delete.
15640         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15641         Define.
15642         * c-objc-common.c (c_objc_common_init): Don't call
15643         add_c_tree_codes, instead set lang_unsafe_for_reeval.
15644         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15645         objc_tree_code_name, add_objc_tree_codes): Delete.
15646         (objc_init): Don't call add_objc_tree_codes.
15647         * objc/objc-lang.c (tree_code_type, tree_code_length,
15648         tree_code_name): Define.
15649         * toplev.c (lang_independent_init): Don't set
15650         tree_code_length[IDENTIFIER_NODE].
15651         * tree.c (tree_code_type, tree_code_length, tree_code_name):
15652         Delete definitions, moved to language front-ends.
15653         * tree.def (IDENTIFIER_NODE): Hardwire the length.
15654         * tree.h (tree_code_type, tree_code_length, tree_code_name):
15655         Const-ify.
15656         (tree_code_length): Change type to unsigned char.
15658 2002-03-12  Richard Henderson  <rth@redhat.com>
15660         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15661         internal visibility change.
15663 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15665         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15666         validize_mem() instead of change_address to avoid clobbering
15667         memory attributes.
15669 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15671         * c-lex.h (position_after_whitespace): Remove.
15673 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
15675         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15676         (lex_string): Use unsigned char pointers.
15678 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
15680         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15681         is not a valid memory_operand.
15683 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15685         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15686         * config/xtensa/lib1funcs.asm: Fix copyright to include
15687         special case for libgcc files.
15688         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15689         (__divsi3): Likewise.
15690         (__umodsi3): Likewise.
15691         (__modsi3): Likewise.
15692         * config/xtensa/lib2funcs.S: Fix copyright to include
15693         special case for libgcc files.
15695 2002-03-12  Tom Rix  <trix@redhat.com>
15697         * collect2.c (resolve_lib_name): Move outside of
15698         OBJECT_FORMAT_COFF ifdef.
15699         (ignore_library): Same.
15701 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15703         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
15705 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15707         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
15708         to function_section before writing out the constant pool.
15710 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
15712         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
15713         zero_constant.
15714         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
15716 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
15718         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
15719         (adddi3): Likewise.
15720         (movdf): Likewise.
15721         (movdi): Likewise.
15722         (cmpsi splitter): Likewise.
15723         (modsi3): Fail if <= 0.
15724         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
15725         redundant test when HOST_BITS_PER_WIDE_INT != 32.
15726         (reg_or_sub_cint64_operand): Likewise.
15727         (num_insns_constant_wide): Optimize sign extension.
15728         (rs6000_legitimize_address): Likewise.
15730 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
15732         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15733         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15735 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
15737         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
15738         address calculation.
15740 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
15742         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
15743         scratch register to DImode / TImode.
15744         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
15745         register used does not overlap the target.
15747 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15749         * Makefile.in (debug.o): Depend on debug.h.
15750         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
15751         * debug.c (do_nothing_debug_hooks): Likewise.
15752         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
15753         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
15754         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
15755         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15756         * dwarfout.c (dwarf_debug_hooks): Likewise.
15757         * integrate.c (output_inline_function): Likewise.
15758         * objc/objc-act.c (synth_module_prologue): Likewise.
15759         * sdbout.c (sdb_debug_hooks): Likewise.
15760         * toplev.c (debug_hooks): Likewise.
15761         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15763 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15765         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
15766         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
15767         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
15768         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
15769         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
15770         * defaults.h (POINTER_SIZE): Define.
15771         * doc/tm.texi (POINTER_SIZE): Document default.
15773 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15775         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
15777 2002-03-11  Richard Henderson  <rth@redhat.com>
15779         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
15780         if rebuild_label_notes_after_reload.
15782 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
15784         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
15785         emit pic register load if "internal" visibility.
15786         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
15787         (cris_expand_builtin_va_arg): Do all computations on trees.
15789 2002-03-11  Richard Henderson  <rth@redhat.com>
15791         * rtlanal.c: Include recog.h.
15792         (keep_with_call_p): Fix thinko.
15793         * Makefile.in (rtlanal.o): Update dependencies.
15795 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
15797         * genflags.c (gen_insn): Use IS_VSPACE.
15798         * genoutput.c (output_insn_data): Likewise.
15799         (process_template): Likewise.
15801 2002-03-11  Richard Henderson  <rth@redhat.com>
15803         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
15805 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15807         * Makefile.in: Update.
15808         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
15809         Update documentation.
15810         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
15811         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
15813 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
15815         * Makefile.in: Give texi2pod its input file as a command line
15816         argument, not on stdin.
15818 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
15819             Daniel Berlin  <dan@dberlin.org>
15821         C++ alias analysis improvement.
15822         * alias.c (record_component_aliases): Record aliases for base
15823         classes too.
15825 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
15827         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
15829 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
15831         * toplev.c (vms_fopen): Remove, not needed.
15833         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
15835         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
15837         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
15838         for FP, already done later.
15840         * toplev.c (debug_args): Add entry for VMS_DEBUG.
15841         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
15843 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
15845         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
15846         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
15847         LARGEST_EXPONENT_IS_NORMAL for the given mode.
15848         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
15849         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
15850         (ediv, emul, eldexp, esqrt): Likewise.
15851         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
15852         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
15853         (saturate): New function.
15854         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
15855         (make_nan): Use a saturation value instead of a NaN if
15856         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
15857         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
15858         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
15859         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
15860         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
15861         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
15862         !ROUND_TOWARDS_ZERO.
15863         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
15864         (ROUND_TOWARDS_ZERO): Document.
15866 2002-03-11  Andreas Jaeger  <aj@suse.de>
15868         * cfg.c (dump_flow_info): Remove unused variable.
15870 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
15872         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
15873         computations on trees.
15875 2002-03-10  Richard Henderson  <rth@redhat.com>
15877         PR 5693:
15878         * reload.c (copy_replacements_1): New.
15879         (copy_replacements): Use it to recurse through the rtx.
15881 2002-03-10  Richard Henderson  <rth@redhat.com>
15883         * loop.c (strength_reduce): Compute number of iterations as
15884         unsigned HOST_WIDE_INT.
15886 2002-03-10  Richard Henderson  <rth@redhat.com>
15888         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
15889         to move away from the end of the block.
15891 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
15893         PR preprocessor/5899
15894         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
15896 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15898         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
15900         * attribs.c (decl_attributes): Fix signed/unsigned warning.
15902 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
15904         * config/mmix/mmix.c: Improve comments.
15905         (mmix_target_asm_function_prologue): Drop variable
15906         empty_stack_frame.  Don't allocate unused slot above fp.
15907         (mmix_target_asm_function_epilogue): Mirror prologue changes.
15908         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
15909         brace in first column.
15910         (enum reg_class): Ditto.
15911         (FIRST_PARM_OFFSET): Now 0.
15912         (USER_LABEL_PREFIX): Remove #if 0:d definition.
15914 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15916         * combine.c (make_extraction): Fix error in last change.
15918 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15920         * c4x.c (c4x_fp_reglist): Const-ify.
15921         * cris.c (cris_print_operand): Likewise.
15922         * i386.c (ix86_va_arg): Likewise.
15923         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
15924         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
15925         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
15926         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
15927         * mcore.h (regno_reg_class): Likewise.
15928         * mips.c (gen_int_relational): Likewise.
15929         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
15930         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
15931         * pdp11.c (move_costs): Likewise.
15932         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
15933         * s390.c (s390_branch_condition_mnemonic, regclass_map):
15934         Likewise.
15935         * s390.h (regclass_map): Likewise.
15936         * sh.c (shift_amounts): Likewise.
15937         * sh.md (rotlsi3): Likewise.
15939 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
15941         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
15942         (ne0+5): Use new clobber to generate proper shift pattern.
15943         Patch by Michael Matz <matz@kde.org>.
15945 2002-03-09  Andreas Schwab  <schwab@suse.de>
15947         * gcc.c (validate_all_switches): Also handle `%W{...}'.
15949 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
15951         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
15953 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
15955         PR middle-end/5877
15956         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
15957         even for non-representable constants.
15959 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15961         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
15962         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
15963         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
15964         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
15965         (pop_function_context): Compute MAY_SHARE parameter for
15966         fixup_var_refs.
15967         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
15968         (gen_mem_addressof): Call fixup_var_refs with new parm.
15970         * combine.c (make_extraction): Don't make extension of CONST_INT.
15972 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
15974         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
15975         in o32 and o64 ABIs.
15976         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
15977         but getting fixed-size structs passed in registers regardless of
15978         padding in o32 and o64 ABIs.
15980         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
15981         offset before loading address of argument passed by transparent
15982         reference.
15984 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15986         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
15988 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
15990         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
15991         marker such that registers after it are saved.
15993 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15995         * sparc.c (arith_4096_operand): Fix error in last change.
15997 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
15999         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16000         defaults for MEABI.
16002 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16004         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16005         vectors.
16007 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16009         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16011 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16013         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16014         removed; fix return value.
16015         * combine.c (combine_instructions): Dirtify blocks where we failed to
16016         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16017         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16019 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16021         * gcse.c (insert_insn_end_bb): Fix typo in last change.
16023 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
16025         * recog.c (peephole2_optimize): Re-distribute EH edges.
16027 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16029         * expr.c (expand_expr): Use unsave lang hook.
16030         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16031         (LANG_HOOKS_INITIALIZER): Update.
16032         * langhooks.h (struct lang_hooks): New hook unsave.
16033         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16034         (unsave_expr_1): Remove unused lang_unsave_expr_now.
16035         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
16036         (unsave_expr_now): Remove.
16037         * tree.h (unsave_expr_now, lang_unsave,
16038         lang_unsave_expr_now): Remove.
16039         (lhd_unsave): New.
16041 2002-03-08  Andreas Jaeger  <aj@suse.de>
16043         * flow.c (propagate_block_delete_insn): Remove unused variable.
16045 2002-03-08  Kazu Hirata  <kazu@hxi.com>
16047         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16048         insn length for memory load/store.
16050 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16052         * doc/install.texi (--with-libiconv-prefix): Document.
16054 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
16056         * doc/sourcebuild.texi: Fix typo.
16058 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
16060         PR c/3711
16061         * builtins.c (std_expand_builtin_va_arg): Do all computations on
16062         trees.
16064 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16066         * rtl.c (copy_most_rtx): Move from here ...
16067         * emit-rtl.c (copy_most_rtx): ... to here.
16069 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
16071         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16072         SUBTARGET_CPP_SIZE_SPEC.
16073         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16075         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16077 2002-03-07  Matt Hiller  <hiller@redhat.com>
16079         * gensupport.c (first_dir_md_include): Renamed from include;
16080         change all references.
16081         (last_dir_md_include): Renamed from last_include; change all
16082         references.
16083         (init_md_reader): Unconditionally initialize base_dir whether or
16084         not filename is a relative path.
16086 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
16088         * config/fp-bit.c (_unord_f2): Compile it in even if
16089         US_SOFTWARE_GOFAST is enabled.
16091         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16092         NULL_RTX.  Set all HFmode operations as NULL_RTX.
16093         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16094         NULL_RTX, try reversing the comparison and the operands.
16096 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16098         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16099         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16100         and MATCH_OP_DUP.
16102 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
16104         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16106 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16108         * basic-block.h (fixup_abnormal_edges): Declare.
16109         * reload1.c (fixup_abnormal_edges): New function.
16110         * reg-stack.c (convert_regs): Use it.
16112         * gcse.c (insert_insn_end_bb): Handle trapping insns.
16114         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16116 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
16118         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16119         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16120         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16121         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16122         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16123         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16124         unless x and y could be infinite.
16125         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16126         Check that the common type of both arguments is a real, even for
16127         targets without unordered comparisons.  Allow an integer argument
16128         to be compared against a real.
16129         (expand_tree_builtin): Use expand_unordered_cmp.
16130         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16131         * cse.c (fold_rtx): Likewise.  Fix indentation.
16132         * fold-const.c (fold_real_zero_addition_p): New.
16133         (fold): Use it, and the new HONOR_... macros.
16134         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16135         * jump.c (reversed_comparison_code_parts): After searching for
16136         the true comparison mode, use HONOR_NANS to decide whether it
16137         can be safely reversed.
16138         (reverse_condition_maybe_unordered): Remove IEEE check.
16139         * simplify-rtx.c (simplify_binary_operation): Use the new macros
16140         to decide which simplifications are valid.  Allow the following
16141         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16142         and (a - -b) to (a + b).
16143         (simplify_relational_operation): Use HONOR_NANS.
16144         * doc/tm.texi: Document the MODE_HAS_... macros.
16146 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
16148         * combine.c (simplify_comparison): If simplifying a logical shift
16149         right and compare with constant, force the comparison to unsigned.
16151 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
16153         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16155         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16156         -mabi=no-altivec
16157         (alt_reg_names): Remove % for vrsave.
16159 2002-03-06  Richard Henderson  <rth@redhat.com>
16161         PR optimization/5844
16162         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
16163         if used indicates we've already emitted one copy of an operand.
16164         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16165         (gen_split): Supply a non-null used.
16167 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16169         * reload1.c (reload): Unshare all rtl after reload is done.
16171         * simplify-rtx.c (simplify_plus_minus): Do not abort,
16172         but simply fail if the expression is too complex to simplify.
16173         (simplify_gen_binary): Handle simplify_plus_minus failures.
16175 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
16177         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16178         consistently call delete_trivially_dead_insns after CSE and GCSE;
16179         fix DFI_life dumping; do jump threading after liveness; do crossjumping
16180         after liveness2; update comment in last crossjumping.
16181         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16183 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
16185         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16186         after completing fast dead code elimination.
16188         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16189         COMPARE operator.
16191 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
16193         * version.c:  Fix misplaced leading blanks on first line.
16195 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
16197         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16199 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
16201         * cfgcleanup.c (mentions_nonequal_regs): New function.
16202         (thread_jump): Use it.
16203         * toplev.c (rest_of_compilation): Run jump threading after
16204         liveness.
16206 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
16208         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16209         patch.
16211 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
16213         * predict.c (estimate_bb_frequencies): Do not reload the
16214         frequencies from notes.
16216 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
16218         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16219         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16221         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16222         delete_noop_moves): Return indeger.
16223         * flow.c (ndead): New variable.
16224         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16225         BB argument; update callers.
16226         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16227         (life_analysis): Do not call purge_all_dead_edges.
16228         (update_life_info): Return number of deleted insns; print statistics.
16229         (update_life_info_in_dirty_blocks): likewise.
16230         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16231         return number of insns deleted.
16233         * cse.c: Include timevar.h
16234         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16235         iterate until stabilizes; print statistics; return number of killed
16236         insns.
16237         * Makefile.in: (cse.o): Add timevar.h dependency
16238         * rtl.h (delete_trivially_dead_insns): New.
16239         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16240         * toplev.c (rest_of_compilation): Update callers.
16242         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16243         (try_optimize_cfg): Do not update liveness.
16244         (cleanup-cfg): Loop until try_optimize_cfg and dead code
16245         removal stabilizes; use delete_trivially_dead_insns.
16247         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16249 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
16251         * cppmain.c (setup_callbacks): Disable #pragma and #ident
16252         callbacks when processing assembly language.
16254 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16256         * pa.h (ASM_FILE_END): Define.
16257         * som.h (ASM_FILE_END): Delete.
16259         * pa.c (function_arg): Don't pass floats in general registers in
16260         indirect calls if TARGET_ELF32.
16262 2002-03-05  Richard Henderson  <rth@redhat.com>
16264         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16266 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
16268         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16270 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16272         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16273         -r command line.  Don't hide any symbols if not building
16274         shared libgcc.
16276 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
16278         * cfg.c (dump_flow_info): Warn about profile mismatches.
16279         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16280         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16282 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16284         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16285         wide volatile memory by parts.
16287 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16289         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16290         is NULL.
16292 2002-03-05  Richard Henderson  <rth@redhat.com>
16294         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16296 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16298         * toplev.c (documented_lang_options): Document more
16299         language-specific options.
16300         * doc/invoke.texi (Warning Options): Correct documentation for
16301         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16302         * c-decl.c (c_decode_option): Use a table to handle warning options.
16304 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
16306         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16307         parameter to mmix_encode_section_info.
16308         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16309         relocatably.  Always produce ELF, not mmo if linking relocatably.
16310         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16311         first is non-zero, don't add symbol prefix.
16312         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16313         prototype accordingly.
16315 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
16317         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16319 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
16321         * configure.in: Increase required makeinfo version to 4.1.
16322         * configure: Regenerate.
16324 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16326         * .cvsignore: Remove *.info* and genrtl*; these files are generated
16327         elsewhere now.
16329 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16331         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16332         * doc/invoke.texi: Fix @math uses.
16334 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16336         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16337         removal
16339 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
16341         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16342         (powerpc-*-eabisimaltivec*): Same.
16344         * config/rs6000/t-ppcendian: New.
16346 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16348         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16349         nonimmediate_src_operand and nonimmediate_lsrc_operand to
16350         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16352 2002-03-03  Richard Henderson  <rth@redhat.com>
16354         * toplev.c (rest_of_decl_compilation): Revert last two changes.
16356 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
16358         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16359         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16360         tree.c, config/m68k/m68k.c:
16361         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16362         REAL_ARITHMETIC blocks unconditional.  Delete some further
16363         #ifdef blocks predicated on REAL_ARITHMETIC.
16364         * flags.h, toplev.c: Delete remaining references to
16365         flag_pretend_float.
16367         * doc/invoke.texi: Remove documentation of -fpretend-float.
16368         * doc/tm.texi: Describe the various REAL_* macros as provided by
16369         real.h, not by the target configuration files.
16371         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16372         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16373         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16374         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16375         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16376         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16377         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16378         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16379         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16380         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16381         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16382         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16383         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16384         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16385         config/xtensa/xtensa.h:
16386         Do not define, undefine, or mention in comments any of
16387         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16388         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16389         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16390         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16391         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16392         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16393         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16394         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16395         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16397 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16399         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16400         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16401         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16402         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16403         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16404         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16405         Delete.
16406         * defaults.h (BITS_PER_WORD): Define.
16407         * doc/tm.texi (BITS_PER_WORD): Document default value.
16409         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16410         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16411         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16413 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16415         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16416         lieu of explicit sizeof/sizeof.
16417         * i386.c (override_options, ix86_init_mmx_sse_builtins,
16418         ix86_expand_builtin): Likewise.
16419         * mips.c (mips_add_gc_roots): Likewise.
16420         * mmix.c (mmix_output_condition): Likewise.
16421         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16422         altivec_init_builtins): Likewise.
16423         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16424         * cppexp.c (Nsuff, parse_number): Likewise.
16425         * cppinit.c (builtin_array_end): Likewise.
16426         * gcc.c (n_default_compilers, process_command): Likewise.
16427         * genpreds.c (output_predicate_decls): Likewise.
16428         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16429         * lcm.c (N_ENTITIES): Likewise.
16430         * stor-layout.c (set_sizetype): Likewise.
16432 2002-03-03  Richard Henderson  <rth@redhat.com>
16434         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16435         for types or labels.
16437 2002-03-03  Richard Henderson  <rth@redhat.com>
16439         * c-decl.c (start_decl): Initialized variables are not common.
16441 2002-03-02  Per Bothner  <per@bothner.com>
16443         * gcc.c (option_map):  Suport new --bootclasspath option.
16444         --CLASSPATH is now just an alias for --classpath.
16446 2002-03-02  Richard Henderson  <rth@redhat.com>
16448         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16449         load if "internal" visibility.
16450         * doc/extend.texi: Document visibility meanings.
16452 2002-03-02  Richard Henderson  <rth@redhat.com>
16454         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16455         to functions as well.
16457 2002-03-02  Richard Henderson  <rth@redhat.com>
16459         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16460         (handle_visibility_attribute): Don't call assemble_visibility.
16461         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16462         without asmspec.  Invoke assemble_alias when needed.
16463         * varasm.c (maybe_assemble_visibility): New.
16464         (assemble_start_function, assemble_variable, assemble_alias): Use it.
16466 2002-03-02  Richard Henderson  <rth@redhat.com>
16468         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16469         invoke ENCODE_SECTION_INFO with first call flag.
16471         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16472         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16473         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16474         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16475         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16476         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16477         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16478         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16479         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16480         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16481         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16482         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16483         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16484         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16485         config/mcore/mcore-protos.h, config/mcore/mcore.c,
16486         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16487         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16488         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16489         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16490         config/sh/sh.h, config/sparc/sparc.h,
16491         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16492         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16493         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16494         FIRST argument.  As needed, examine it and do nothing.
16496         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16497         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16498         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16500         * config/arm/t-pe (pe.o): Add dependencies.
16502 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16504         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16505         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16506         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16507         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16508         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16509         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16510         * defaults.h (BITS_PER_UNIT): Define.
16511         * doc/tm.texi (BITS_PER_UNIT): Document default value.
16513 2002-03-02  Kazu Hirata  <kazu@hxi.com>
16515         * config/h8300/h8300-protos.h: Add a prototype for
16516         compute_a_shift_length.
16517         * config/h8300/h8300.c (h8300_asm_insn_count): New.
16518         (compute_a_shift_length): Likewise.
16519         (h8300_adjust_insn_length): Do not adjust insn length of shift
16520         insns.
16521         * config/h8300/h8300.md (anonymous shift patterns): Use
16522         compute_a_shift_length.
16524 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16526         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16527         trunc_int_for_mode.
16529         * emit-rtl.c (offset_address): Call update_temp_slot_address.
16531 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16533         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16534         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16535         * flags.h (flag_zero_initialized_in_bss): Declare.
16536         * toplev.c (flag_zero_initialized_in_bss): New flag.
16537         (lang_independent_options): Add flag_zero_initialized_in_bss.
16538         * tree.c (initializer_zerop): New function.
16539         * tree.h (initializer_zerop): Declare.
16540         * varasm.c (assemble_variable): If we can emit bss, put zero
16541         initializers in the bss section.
16543 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
16545         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16546         like more than one symbol per .weak directive.
16548 2002-03-01  Richard Henderson  <rth@redhat.com>
16550         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16551         adjust argument_pointer by pretend_args_size.
16552         (ia64_va_start): Adjust va_start address by -pretend_args_size.
16554 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16556         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16558 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
16560         * toplev.c (rest_of_compilation): Delete dead jumptables before
16561         loop.
16562         * flow.c (delete_dead_jumptables): Make global.
16563         * rtl.h (delete_dead_jumptables): Declare.
16565 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
16567         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16568         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16569         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16571 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16573         * config/h8300/h8300-protos.h: Fix formatting.
16574         * config/h8300/h8300.c: Likewise.
16575         * config/h8300/h8300.h: Likewise.
16577 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16579         * config/h8300/h8300.c (print_operand): Support 16-bit
16580         constant addresses.
16581         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16583 2002-02-28  Richard Henderson  <rth@redhat.com>
16585         * expmed.c (store_bit_field): Prevent generation of CONCATs;
16586         pun complex values as integers; use gen_lowpart instead of
16587         gen_rtx_SUBREG.
16588         (extract_bit_field): Likewise.
16590 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
16591             David Edelsohn  <edelsohn@gnu.org>
16593         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16594         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16595         (SUPPORTS_WEAK): Likewise.
16596         * output.h (add_weak): Add tree param.
16597         * varasm.c (add_weak): Likewise.  Save decl.
16598         (struct weak_syms): Add decl field.
16599         (mark_weak_decls): New function.
16600         (init_varasm_once): ggc_add_root mark_weak_decls.
16601         (assemble_start_function): Use ASM_WEAKEN_DECL.
16602         (assemble_variable): Likewise.
16603         (assemble_alias): Likewise.
16604         (declare_weak): Pass decl to add_weak.
16605         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16606         (remove_from_pending_weak_list): Declare and define for
16607         ASM_WEAKEN_DECL.
16608         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16609         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16610         * defaults.h (SUPPORTS_WEAK): Likewise.
16611         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16612         .weak for code sym.  Do emit .size for descriptor sym.
16613         (ASM_DECLARE_FUNCTION_SIZE): Define.
16614         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16615         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
16616         .lglobl unless TARGET_XCOFF.  Formatting fixes.
16617         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16618         .weak for code sym.
16619         (HANDLE_PRAGMA_WEAK): Remove.
16620         (ASM_WEAKEN_LABEL): Remove.
16621         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16623 2002-03-01  Jason Merrill  <jason@redhat.com>
16625         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16626         (TARGET_EXPR_CLEANUP): New macro.
16628 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
16630         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16631         to take ptr_extend into account as third type of extension.
16632         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16633         fields used by SUBREG_PROMOTED_UNSIGNED_P.
16634         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16635         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16636         * calls.c (precompute_arguments): Use new macro.
16637         (expand_call): Ditto.
16638         * combine.c (nonzero_bits): Ditto.
16639         (record_promoted_value): Ditto.
16640         * expr.c (store_expr): Ditto.
16641         (expand_expr): Ditto.
16642         * function.c (assign_parms): Ditto.
16644 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
16646         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16647         override -shared and -shared-libgcc.
16649 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
16651         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16652         of "ultrasparc".
16653         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
16654         to be broken.
16656 2002-02-28  Richard Henderson  <rth@redhat.com>
16658         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16659         4 cycle latency from MM producers.
16660         (ia64_internal_sched_reorder): Likewise with pipeline flush.
16662 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
16664         * mklibgcc.in: Don't use GNU make extension.
16666 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16668         * c-parse.in (STATIC): New terminal.
16669         (scspec): New non-terminal.  Update productions accordingly.
16670         (program): Remove bogus ifc / end ifc.
16671         (array_declarator): Simplify production using STATIC.
16673 2002-02-28  Jim Meyering  <meyering@lucent.com>
16675         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16676         \a still means TARGET_BELL.
16678 2002-02-28  Richard Henderson  <rth@redhat.com>
16680         * haifa-sched.c (sched_emit_insn): New.
16681         (schedule_block): Use last_scheduled_insn to track last insn.
16682         * sched-int.h (sched_emit_insn): Prototype.
16683         * config/ia64/ia64.c (last_issued): Remove.
16684         (ia64_variable_issue): Don't set it.
16685         (nop_cycles_until): Use sched_emit_insn.
16687 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
16689         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16690         extended constants.
16692 2002-02-28  Kazu Hirata  <kazu@hxi.com>
16694         * config/h8300/h8300.c: Fix formatting.
16695         * config/h8300/h8300.h: Likewise.
16697 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16699         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16700         which may overwrite the high byte of the frame pointer.
16702 2002-02-28  Bo Thorsen  <bo@suse.de>
16704         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
16705         (STARTFILE_SPEC): Add 64 bit files.
16706         (ENDFILE_SPEC): Likewise.
16708 2002-02-28  Jason Merrill  <jason@redhat.com>
16710         * c-decl.c (finish_function): Only warn about missing return
16711         statement with -Wreturn-type.
16713 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16715         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
16717         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
16718         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
16720 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
16722         * basic-block.h (BB_REACHABLE): Renumber.
16723         (BB_DIRTY, BB_NEW): New flags.
16724         (clear_bb_flags): Declare.
16725         (update_life_info_in_dirty_blocks): Declare.
16726         * cfg.c (clear_bb_flags): New function.
16727         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
16728         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
16729         reorder_insns, emit_insn_after): Mark block as dirty.
16730         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
16731         (update_life_info_in_dirty_blocks): New function.
16732         * recog.c (apply_change_group): Dirtify block.
16734         * cse.c (cse_insn): Reorder emitting of jump insn to keep
16735         cfg consistent.
16736         * gcse.c (delete_null_pointer_checks): Likewise.
16738         * toplev.c (dump_file_index): Move cse2 after bp,
16739         add DFI_null
16740         (dump_file_info): Similary.
16741         (rest_of_compilation): Avoid most of CFG rebuilds;
16742         do first if converision after null pointer checks, do cse2
16743         after branch prediction; avoid full liveness rebuild after
16744         initializing subregs.
16745         * invoke.texi (-d options): Document -du, renumber.
16747         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
16748         (notice_new_block): Do not set BB_UPDATE_LIFE.
16749         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
16750          merge_blocks_move_successor_nojumps, merge_blocks,
16751          try_crossjump_to_edge): Likewise.
16752         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
16753         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
16754         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
16755         (merge_of_block): Do not use life_data_ok.
16756         (find_if_case_1): Do not use SET_UPDATE_LIFE.
16757         (if_convert): Use BB_DIRTY mechanizm to update life.
16758         * lcm.c (optimize_mode_switching): Update
16759         update_life_info_in_dirty_blocks
16761 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16763         * Makefile.in (integrate.o): Update.
16764         * c-decl.c (copy_lang_decl): Rename.
16765         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16766         * integrate.c: Include langhooks.h.
16767         (copy_decl_for_inlining): Update to use langhook.
16768         * langhooks-def.h (lhd_do_nothing_t,
16769         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
16770         (LANG_HOOKS_INITIALIZER): Update.
16771         * langhooks.c (lhd_do_nothing_t): New.
16772         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
16773         * tree.h (copy_lang_decl): Remove.
16774 objc:
16775         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16777 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
16779         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
16780         POST_DEC, and POST_MODIFY.
16782 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
16784         * c-typeck.c (digest_init): Remove unused parameter; all
16785         callers changed.
16787 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
16789         * expmed.c (expand_shift): Correctly test for low part of a
16790         subreg.
16792 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
16794         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
16795         insn UIDs with insn addresses.
16797 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
16799         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
16800         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
16801         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
16802         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
16803         gcc.c, toplev.c: Delete code implementing -traditional mode.
16805         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
16806         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
16807         Document removal of -traditional mode for compilation, and
16808         remove documentation only relevant to that mode.
16810         * config/nextstep.h, config/ptx4.h, config/svr4.h,
16811         config/convex/convex.h, config/d30v/d30v.h,
16812         config/i386/dgux.h, config/i386/osf1elf.h,
16813         config/i386/osfelf.h, config/i386/osfrose.h,
16814         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
16815         config/m68k/hp310.h, config/m88k/dgux.h,
16816         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
16817         config/m88k/m88k.h, config/m88k/openbsd.h,
16818         config/mips/abi64.h, config/mips/osfrose.h,
16819         config/mips/svr4-5.h, config/mips/svr4-t.h,
16820         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
16821         config/stormy16/stormy16.h: Remove all references to
16822         -traditional from target specs.  Delete all mention of the
16823         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
16824         delete a couple of commented-out definitions of
16825         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
16826         to -traditional.
16828         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
16829         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
16831 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
16833         * mklibgcc.in: Don't use \n in a line subject to
16834         interpretation by echo.
16836 2002-02-27  Graham Stott  <grahams@redhat.com>
16838         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
16839         Constify NAME.
16841         * loop.c (prescan_loop): Handle PARALLEL.
16843         * unroll.c (loop_iterations): Return 0 if the add_val for
16844         a BIV is REG.
16846         * final.c (output_operand_lossage): Constify PFX_STR.
16848         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
16850 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
16852         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
16853         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
16855 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
16857         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16859 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
16861         * cpplex.c (_cpp_lex_token): Handle directives in macro
16862         arguments.
16863         * cpplib.c (_cpp_handle_directive): Save and restore state
16864         if parsing macro args when entering a directive.
16865         * cppmacro.c (collect_args): No need to handle directives
16866         in macro arguments.
16867         (enter_macro_context, replace_args): Use the original macro
16868         definition in case it was redefined whilst collecting arguments.
16869 doc:
16870         * cpp.texi: Update.
16872 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
16874         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
16875         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
16876         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
16877         method on AIX.
16878         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
16879         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
16880         (load_toc_v4_PIC_2): Same.
16882 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
16884         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
16886 2002-02-26  Richard Henderson  <rth@redhat.com>
16888         * config/alpha/alpha.md (ashldi_se): Re-enable.
16890 2002-02-26  Richard Henderson  <rth@redhat.com>
16892         * config/alpha/alpha.c (alpha_encode_section_info): Examine
16893         MODULE_LOCAL_P; improve commentary.
16895 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
16897         * doc/cpp.texi: Clarify documentation of relationship between
16898         #line and #include.
16900 2002-02-26  Kazu Hirata  <kazu@hxi.com>
16902         * config/h8300/h8300-protos.h: Update the prototype for
16903         compute_logical_op_length.  Add the prototype for
16904         compute_logical_op_cc.
16905         * config/h8300/h8300.c (compute_logical_op_length): Figure out
16906         code from operands.
16907         (compute_logical_op_cc): New.
16908         * config/h8300/h8300.md: Combine all the logical op patterns
16909         in HImode and SImode.  Use compute_logical_op_cc.
16911 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
16913         * config/i386/i386.c (print_operand): Don't append ATT-style
16914         length suffixs to x87 opcodes when in Intel mode.
16916 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
16918         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
16919         (init_emit_once): Update calls.
16920         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
16921         (init_syntax_once): Prototype.
16923 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16925         * pa-linux.h (LIB_SPEC): Update definition.
16926         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16928 2002-02-26  Richard Henderson  <rth@redhat.com>
16930         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
16931         if we emitted a stop bit.
16933 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
16935         * configure.in (libgcc_visibility): Substitute.
16936         * configure: Rebuilt.
16937         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
16938         defined symbols .hidden.
16940 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
16942         * attribs.c (c_common_attribute_table): Add visibility.
16943         (handle_visibility_attribute): New function.
16944         * varasm.c (assemble_visibility): New function.
16945         * output.h (assemble_visibility): Add prototype.
16946         * tree.h (MODULE_LOCAL_P): Define.
16947         * crtstuff.c (__dso_handle): Use visibility attribute.
16948         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
16949         for MODULE_LOCAL_P symbols too.
16950         * config/ia64/ia64.c (ia64_encode_section_info): Handle
16951         MODULE_LOCAL_P symbols the same way as local symbols.
16952         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
16953         into .sdata/.sbss by the user.
16954         * doc/extend.texi (Function Attributes): Document visibility
16955         attribute.
16957 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
16959         PR debug/5770
16960         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
16961         STRING_CST initializer spanning the whole variable without
16962         embedded zeros.
16963         If expand_expr returned MEM, don't use it.
16965 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
16967         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
16968         generate a die for the lexical block.
16970 2002-02-26  Kazu Hirata  <kazu@hxi.com>
16972         * config/h8300/h8300-protos.h: Add a prototype for
16973         compute_logical_op_length.
16974         * config/h8300/h8300.c (compute_logical_op_length): New.
16975         * config/h8300/h8300.md (anonymous logical patterns): Use
16976         compute_logical_op_length for length.
16978 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
16980         * dwarf2out.c (modified_type_die): Do not call type_main_variant
16981         for vectors.
16982         (gen_type_die): Same.
16984         * attribs.c (handle_vector_size_attribute): Set debug information.
16986 2002-02-26  Daniel Egger  <degger@fhm.edu>
16988         * config/rs6000/rs6000.md: Swap define_insn attributes to
16989         fix incorrect generation of merge high instructions instead
16990         of merge low.
16992 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
16994         * c-typeck.c (really_start_incremental_init): Use
16995         bitsize_zero_node for vectors.
16997 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
16999         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17000         ("*set_vrsave_internal"): Same.
17002 2002-02-25  Richard Henderson  <rth@redhat.com>
17004         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17005         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
17007 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
17009         PR target/5755
17010         * config/i386/i386.c (ix86_return_pops_args): Only pop
17011         fake structure return argument if it was passed on the stack.
17013 2002-02-25  Jason Merrill  <jason@redhat.com>
17015         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17016         RESULT_DECL.
17018 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17020         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17021         link with shared_name only.
17022         * doc/invoke.texi (Link Options): Document new behavior.
17024 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17026         * c-typeck.c (push_init_level): Handle vectors.
17028 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17030         * config/sparc/sparc.c (const64_high_operand): Zero-extend
17031         operands of SPARC_SETHI_P.
17032         (input_operand): Likewise.
17033         (sparc_emit_set_const32): Likewise.
17034         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17035         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17036         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
17037         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17038         (movdi_insn_sp64_vis): Likewise.
17039         (movdi split, movdf split): Use SETHI32.
17040         * doc/md.texi: Document SPARC constraints L, M and N.
17042 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17044         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17045         ("*set_vrsave_internal"): use mfspr for Darwin.
17047         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17048         gen_get_vrsave_internal.
17050 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17052         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17054 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17056         * cpplex.c (cpp_interpret_charconst): Get signedness or
17057         otherwise of wide character constants correct.
17058         * cppexp.c (lex): Get signedness of wide charconsts correct.
17060 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17062         * optabs.c (widen_operand): Only call convert_modes for
17063         promoted SUBREG if signedness matches.
17064         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17066 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17068         * cpplib.c (glue_header_name): Use local buffer to build up
17069         header name.
17071 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17073         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17075 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17077         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17078         H8/300[HS] separately.
17079         * config/h8300/h8300.md: Remove the early clobber constraint
17080         from bit field patterns.
17082 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17084         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17085         register_operand.
17086         (mulhisi3): Likewise.
17087         (umulqisi3): Likewise.
17088         (umulhisi3): Likewise.
17090 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17092         * cppinit.c (output_deps): Correct test for stdout output.
17093         (init_dependency_output): Cure warning.
17095 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17097         * expr.c (store_expr): When converting expression to promoted
17098         equivalent type, allow using SUBREG_REG of TARGET as the target
17099         of the expansion of EXP.
17100         * loop.c (basic_induction_var, case SUBREG): Always look inside.
17101         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17102         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17103         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17104         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17106 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
17108         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17109         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17110         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17112 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
17114         PR optimization/5747
17115         * loop.c (scan_loop): Update reg info if move_movables created new
17116         pseudos.
17118 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17120         * gcc.c (init_gcc_spec): Revert last change.
17122 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17124         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17125         gpc_reg_operand constraint.
17127 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
17129         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17130         Simplify comparison of `low'.
17131         (add_operand): Fix formatting.
17132         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17133         (mask_operand): Disallow mask to wrap in 64-bit mode.
17134         (rs6000_stack_info): Remove redundant test setting push_p.
17135         (output_toc): Fix formatting.
17136         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17137         cc_reg_not_cr0_operand constraint.
17138         (booldi3, boolcdi3 splitters): Same.
17140 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
17142         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17144 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
17146         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17147         gcc invoked with -shared-libgcc.
17149 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
17151         PR c++/5748
17152         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17153         decl if any of elements was TREE_USED.
17155 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
17157         * config/sparc/sol2.h: Don't include sys/mman.h.
17158         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17159         (arith_4096_operand): Don't throw high bits away.
17160         (const64_operand): Take sign extension of CONST_INTs into account.
17161         (const64_high_operand, sparc_emit_set_const32): Likewise.
17162         (GEN_HIGHINT64): Likewise.
17163         (sparc_emit_set_const64_quick1): Likewise.
17164         (const64_is_2insns): Likewise.
17165         (print_operand): Use trunc_int_for_mode for sign extension.
17166         * config/sparc/sparc.h (SMALL_INT32): Likewise.
17167         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17168         chars.  Assume CONST_INT is already properly sign-extended.
17169         (movdi split): Sign-extend each SImode part.
17170         (andsi3 split): Don't mask high bits off, so that result
17171         remains properly sign-extend.
17172         (iorsi3 split): Likewise.
17173         (xorsi3 split): Likewise.
17175 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
17177         * fold-const.c (fold): Fix typo in comments.
17179 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17181         * Makefile.in (langhooks.o): Update dependencies.
17183 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17185         * langhooks.c: Include flags.h.
17187 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
17189         * testsuite/gcc.dg/attr-alwaysinline.c: New.
17191         * c-common.c (c_common_post_options): Set inline trees by
17192         default.
17194         * doc/extend.texi (Function Attributes): Document always_inline
17195         attribute.
17196         Update documentation about inlining when not optimizing.
17198         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17200         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17201         unless DECL_ALWAYS_INLINE.
17203         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17204         unless DECL_ALWAYS_INLINE.
17205         (c_disregard_inline_limits): Disregard if always_inline set.
17207         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17208         Disregard if always_inline set.
17209         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17210         unless DECL_ALWAYS_INLINE.
17212         * attribs.c (handle_always_inline_attribute): New.
17213         (c_common_attribute_table): Add always_inline.
17215         * config/rs6000/altivec.h: Add prototypes for builtins
17216         requiring the always_inline attribute.
17218 2002-02-21  Eric Christopher  <echristo@redhat.com>
17220         * expmed.c (store_bit_field): Try to simplify the subreg
17221         before generating a new one when when the mode size of
17222         value is less than maxmode.
17224 2002-02-21  Richard Henderson  <rth@redhat.com>
17226         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17227         than gen_rtx_PLUS to form the sum.
17228         * explow.c (force_reg): Rearrange to not allocate new pseudo
17229         when force_operand returns a register.
17230         * expr.c (expand_assignment): Allow offset_rtx expansion to
17231         return a sum.  Do not force addresses into registers.
17232         (expand_expr): Likewise.
17233         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17234         to canonicalize arithmetic that didn't simpify.
17235         (simplify_plus_minus): New argument force; update
17236         all callers.  Don't split CONST unless we can do something with it,
17237         and wouldn't lose the constness of the operands.
17239         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17240         that we generated earlier.
17242 2002-02-21  Tom Tromey  <tromey@redhat.com>
17244         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17245         (output_line_info): Use constant `1', with a long explanatory
17246         comment.
17247         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17249 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
17251         * jump.c (redirect_jump): If old label has no UID, don't try to
17252         delete it.
17254 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
17256         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17257         If input is constant, do shifts at compile time.
17259 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17261         * doc/extend.texi: Fix some more overfull hboxes.
17263 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17265         PR optimization/4994
17266         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17267         register moves.
17269 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17271         PR c++/4574
17272         * expr.h (expand_and): Add mode argument.
17273         * expmed.c (expand_and): Add mode argument.
17274         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17275         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17276         * except.c (expand_builtin_extract_return_addr): Likewise.
17277         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17278         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17279         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17280         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17281         * config/c4x/c4x.md: Use GEN_INT (x) instead of
17282         gen_rtx (CONST_INT, VOIDmode, x).
17284 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17286         PR c/4697:
17287         * stmt.c (warn_if_unused_value): Move side effects test once more.
17289 2002-02-20  Torbjorn Granlund  <tege@swox.com>
17291         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17292         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17294 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
17296         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17297         SUBREG or ZERO_EXTEND.
17299 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
17301         * sh.h (current_function_anonymous_args): Remove.
17302         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17303         of current_function_varargs and current_function_stdarg is set.
17304         * sh.c (sh_expand_prologue): Check current_function_varargs /
17305         current_function_stdarg / TARGET_SH5 instead of
17306         current_function_anonymous_args.
17308         * sh64.h (TARGET_VERSION): Define.
17310 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
17312         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17313         VRSAVE_REGNO on TARGET_ALTIVEC.
17315 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
17317         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17318         bits of SImode const_int.
17319         (includes_rshift_p): Likewise.
17320         (print_operand): Call mask_operand and mask64_operand with correct
17321         mode.
17322         (rs6000_output_function_epilogue): Pad traceback table to word.
17323         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17324         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17325         mask64_operand with correct mode.
17326         (FUNCTION_ARG_REGNO_P): Correct parentheses.
17328 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17330         PR debug/4461
17331         * varasm.c (get_pool_constant_mark): New.
17332         * rtl.h (get_pool_constant_mark): Add prototype.
17333         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17334         be represented if it has not been output.
17336 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17338         * combine.c (do_SUBST): Sanity check substitutions of
17339         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17340         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17341         CONST_INT into its operand.
17342         (known_cond): Likewise, for ZERO_EXTEND.
17343         * simplify-rtx.c (simplify_unary_operation): Fix condition to
17344         allow for simplification of wide modes.  Reject CONST_INTs in
17345         ZERO_EXTEND when their actual mode is not given.
17347 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17349         * c-decl.c (pushdecl): If no global declaration is found for an
17350         extern declaration in block scope, try a limbo one.
17352 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17354         PR c++/4401
17355         * c-common.c (pointer_int_sum): Moved from...
17356         * c-typeck.c (pointer_int_sum): ...here.
17357         * c-common.h (pointer_int_sum): Add prototype.
17359 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17361         PR c++/5713
17362         * c-decl.c (duplicate_decls): Return 0 if issued error about
17363         redeclaration.
17365 2002-02-20  Roger Sayle  <roger@eyesopen.com>
17366             Jakub Jelinek  <jakub@redhat.com>
17368         PR c/4389
17369         * tree.c (host_integerp): Ensure that the constant integer is
17370         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17371         when pos is zero or non-zero respectively.  Clarify comment.
17372         * c-format.c (check_format_info_recurse): Fix host_integerp
17373         usage; the pos argument should be zero when assigning to a
17374         signed HOST_WIDE_INT.
17376 2002-02-20  Richard Henderson  <rth@redhat.com>
17378         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17379         of the operand, rather than assuming TImode.
17380         (ix86_expand_binop_builtin): Cope with commutative patterns
17381         using nonimmediate_operand for both operands.
17382         (ix86_expand_timode_binop_builtin): Likewise.
17383         (ix86_expand_store_builtin): Validate operand 1.
17384         (ix86_expand_unop1_builtin): Likewise.
17386 2002-02-20  Philip Blundell  <philb@gnu.org>
17388         PR 5705
17389         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17391 2002-02-20  Richard Henderson  <rth@redhat.com>
17393         PR c/5615
17394         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17396 2002-02-20  Tom Tromey  <tromey@redhat.com>
17398         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17399         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17400         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17401         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17402         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17403         unconditionally.
17405 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17407         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17408           for (const_int 0) in X not just INTVAL.
17410 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
17412         * doc/extend.texi: Avoid or reduce overfull hboxes.
17414 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
17416         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17417         operations if the field does not start at a mode boundary.
17419 2001-02-20      Joel Sherrill <joel@OARcorp.com>
17421         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17422         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17423         Also done for -Acpu and -Amachine.
17425 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17427         * cppinit.c (init_dependency_output): Take deps output file
17428         from -o if none given with -MF.  Suppress normal output.
17429         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17430         * doc/cpp.texi, doc/invoke.texi: Update.
17432 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17434         * toplev.c (output_quoted_string): Write unprintable
17435         characters with octal escapes.
17437 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17439         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17440         really_call_used[VRSAVE_REGNO] if not Altivec.
17442 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
17444         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17445         MODE_MASK.
17446         (constant_pool_expr_1): Fix formatting.
17447         (rs6000_legitimize_reload_address): Likewise.
17449 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17451         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17452         now that we have one.
17454 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17456         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
17457         end of first block of bitfields (which was only seven bits);
17458         rename dummy to unused_1; remove comment which is no longer true.
17460 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17462         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17464 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17466         PR 5399
17467         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17468         if generating PIC.
17470         PR 5054
17471         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17472         arm_is_longcall_p rather than inspecting call-type cookie
17473         directly.
17474         (call_value_insn) [TARGET_THUMB]: Likewise.
17476 2002-02-19  Graham Stott  <grahams@redhat.com>
17478         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17480 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17482         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17483         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17484         (FP_SAVE_INLINE): Delete.
17486         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17487         * config/rs6000/eabi.asm: Remove ABI save restore routines.
17488         * config/rs6000/t-ppccomm: Build crtsavres.o.
17489         * config/rs6000/crtsavres.asm: New file.
17491 2002-02-19  Philip Blundell  <philb@gnu.org>
17493         * config/arm/arm.c (use_return_insn): Don't reject interrupt
17494         functions.
17495         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17496         (output_return_instruction): Allow interrupt functions to return with
17497         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
17498         (arm_expand_prologue): Subtract 4 before stacking LR in an
17499         interrupt function.
17501 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17503         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17504         decl, not just FUNCTION_DECL.
17505         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17506         (arm_assemble_integer): Likewise.
17507         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17508         marked local.
17510 2002-02-19  matthew green  <mrg@eterna.com.au>
17512         * config.gcc (sparc-*-netbsdelf*): Enable target.
17513         (sparc64-*-netbsd*): New target.
17514         * config/sparc/netbsd-elf.h: New file.
17515         * config/sparc/t-netbsd64: New file.
17517 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17519         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17521 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
17523         * doc/invoke.texi: explicitly list the style guidelines that
17524         -Weffc++ checks for.
17526 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
17528         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17530 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
17532         PR other/5718
17533         * gcc.c (cpp_unique_options): Treat -o as indicating object file
17534         only if not -E.  If -E, pass -o through to the preprocessor.
17536 2002-02-19  Kazu Hirata  <kazu@hxi.com>
17538         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17539         register number with an appropriate macro.
17541 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
17543         * doc/rtl.texi (Constants): Close @code tag.
17545 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
17547         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17548         ("mmx_uavgv4hi3"): Same.
17549         ("pmulhrwv4hi3"): Same.
17551         * tree-inline.c (walk_tree): Handle vectors.
17553         * c-common.c (constant_expression_warning): Handle vectors.
17554         (overflow_warning): Same.
17556         * sched-deps.c (sched_analyze_2): Handle vectors.
17558         * rtlanal.c (rtx_unstable_p): Handle vectors.
17559         (rtx_varies_p): Same.
17560         (count_occurrences): Same.
17561         (regs_set_between_p): Same.
17562         (modified_between_p): Same.
17563         (modified_in_p): Same.
17564         (volatile_insn_p): Same.
17565         (volatile_refs_p): Same.
17566         (side_effects_p): Same.
17567         (may_trap_p): Same.
17568         (inequality_comparisons_p): Same.
17569         (replace_regs): Same.
17570         (computed_jump_p_1): Same.
17572         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17573         argument.
17574         (inner_mode_array): New.
17575         (copy_rtx): Handle vectors.
17576         (copy_most_rtx): Same.
17577         (rtx_equal_p): Same.
17578         (get_mode_alignment): Adjust for vectors.
17580         * resource.c (mark_referenced_resources): Handle vectors.
17581         (mark_set_resources): Same.
17583         * reload1.c (eliminate_regs): Handle vectors.
17584         (elimination_effects): Same.
17585         (scan_paradoxical_subregs): Same.
17587         * reload.c (subst_reg_equivs): Handle vectors.
17589         * regrename.c (scan_rtx): Handle vectors.
17591         * regclass.c (reg_scan_mark_refs): Handle vectors.
17593         * recog.c (find_single_use_1): Handle vectors.
17595         * local-alloc.c (equiv_init_varies_p): Handle vectors.
17596         (contains_replace_regs): Same.
17597         (memref_referenced_p): Same.
17599         * integrate.c (copy_rtx_and_substitute): Handle vectors.
17600         (subst_constants): Same.
17602         * genattrtab.c (attr_copy_rtx): Handle vectors.
17603         (encode_units_mask): Same.
17604         (clear_struct_flag): Same.
17605         (count_sub_rtxs): Same.
17607         * gcse.c (want_to_gcse_p): Handle vectors.
17608         (oprs_unchanged_p): Same.
17609         (hash_expr_1): Same.
17610         (oprs_not_set_p): Same.
17611         (expr_killed_p): Same.
17612         (compute_transp): Same.
17613         (store_ops_ok): Same.
17615         * function.c (purge_addressof_1): Do not allow paradoxical subregs
17616         of vectors.
17617         (fixup_var_refs_1): Same.
17618         (instantiate_virtual_regs_1): Same.
17620         * fold-const.c (operand_equal_p): Handle vectors.
17621         (fold): Same.
17622         (rtl_expr_nonnegative_p): Same.
17624         * flow.c (mark_used_regs): Handle vectors.
17626         * df.c (df_uses_record): Handle vectors.
17628         * cselib.c (cselib_subst_to_values): Handle vectors.
17629         (cselib_mem_conflict_p): Same.
17630         (hash_rtx): Same.
17632         * cse.c (canon_reg): Handle vectors.
17633         (fold_rt): Same.
17634         (cse_process_notes): Same.
17635         (count_reg_usage): Same.
17636         (canon_hash): Same.
17638         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17640         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17642         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17643         (gen_rtx): Handle CONST_VECTOR.
17644         (gen_const_vector_0): New.
17645         (copy_rtx_if_shared): CONST_VECTORs can be shared.
17646         (reset_used_flags): Same.
17647         (copy_insn_1): Same.
17648         (initializer_constant_valid_p): Handle VECTOR_CST.
17650         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17652         * doc/rtl.texi (Constants): Document const_vector.
17653         (CONST0_RTX): Update for vectors.
17654         (RTL sharing): Same.
17656         * print-tree.c (print_node): Add case for VECTOR_CST.
17658         * tree.h (TREE_VECTOR_CST_ELTS): New.
17659         (struct tree_vector): New.
17660         (union tree_node): Add vector node.
17661         (build_vector): Add prototype.
17663         * tree.def (VECTOR_CST): New.
17665         * tree.c (build_vector): New.
17667         * expmed.c (make_tree): Handle CONST_VECTOR.
17669         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17670         (CONST_VECTOR_ELT): New.
17671         (CONST_VECTOR_NUNITS): New.
17673         * machmode.h (GET_MODE_INNER): New.
17674         (DEF_MACHMODE): Accept 8th arg.
17676         * machmode.def: Add 8th argument for vector inner mode.
17677         Add inner vector modes for vectors.
17679         * rtl.def (VEC_CONST): Remove.
17680         (CONST_VECTOR): New.
17682         * expr.c (clear_storage): Allow vectors.
17683         (is_zeros_p): Handle VECTOR_CST.
17685         * varasm.c (output_constant_pool): Handle vectors.
17686         (rtx_const): Add veclo and vechi fields.
17687         (kind): Add RTX_VECTOR.
17688         (decode_rtx_const): Add case for vector.
17690         * config/rs6000/rs6000-protos.h: Add zero_constant.
17692         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17693         constants.  Force easy vector constants into memory.
17694         (easy_vector_constant): New.
17695         (emit_easy_vector_constant): New.
17696         (rs6000_legitimize_reload_address): Do not generate bad reloads on
17697         darwin.
17699         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17700         instruction does.
17701         ("altivec_lvxl"): Same.
17702         (altivec_lvebx): Same.
17703         (altivec_lvehx): Same.
17704         (altivec_lvewx): Same.
17705         ("*movv4si_const0"): New.
17706         ("*movv4sf_const0"): New.
17707         ("*movv8hi_const0"): New.
17708         ("*movv16qi_const0"): New.
17710 2002-02-18  Kazu Hirata  <kazu@hxi.com>
17712         * config/h8300/h8300.c (notice_update_cc): Use
17713         cc_status.value2.
17715 2002-02-18  Kazu Hirata  <kazu@hxi.com>
17717         * config/h8300/h8300.md (divmod patterns): Change the
17718         constraints for operands[1] to register_operand.
17720 2002-02-18  Kazu Hirata  <kazu@hxi.com>
17722         * config/h8300/h8300-protos.h: Remove the prototype for
17723         p_operand.
17724         * config/h8300/h8300.c (p_operand): Remove.
17725         * config/h8300/h8300.md: Replace p_operand with
17726         const_int_operand.
17728 2002-02-18 Philip Blundell <pb@nexus.co.uk>
17730         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
17731         comment.
17732         (output_return_instruction): Allow use of LDR to unstack
17733         return addresss even for interrupt handlers or when
17734         interworking.  If compiling for ARMv5, use interworking-safe
17735         return instructions by default.  Remove duplicated code and
17736         lengthy "strcat" sequences.
17738 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17740         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
17741         (LINK_EH_SPEC): Define.
17742         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
17744 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
17746         * config/s390/s390.c (s390_emit_prologue): Do not set the
17747         frame_related flag for call-clobbered registers.
17749 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
17751         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
17752         (construct_container): Fix handling of SSE operands.
17753         (ix86_expand_builtin): Fix handling of 64bit pointers.
17754         (mmx_maskmovq_rex): New pattern.
17756 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
17758         * regrename.c (kill_set_value): Handle subregs properly.
17760 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
17762         * objc/objc-act.c (handle_impent): Remove leading '*'
17763         from objc_class_name.
17765 2002-02-17  Richard Henderson  <rth@redhat.com>
17767         * config/alpha/alpha.c (some_small_symbolic_operand,
17768         some_small_symbolic_operand_1, split_small_symbolic_operand,
17769         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
17770         Handle small SYMBOL_REFs anywhere, not just inside memories.
17771         * config/alpha/alpha-protos.h: Update.
17772         * config/alpha/alpha.h (PREDICATE_CODES): Update.
17773         * config/alpha/alpha.md (small symbolic operand splitter): Update.
17775 2002-02-17  Roland McGrath  <roland@frob.com>
17777         * config.gcc (powerpc-*-gnu-gnualtivec*,
17778         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
17779         * config/rs6000/gnu.h: New file.
17780         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
17781         Grok "gnu" in rs6000_abi_name.
17782         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
17783         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
17784         Grok -mcall-gnu analogous to -mcall-linux et al.
17785         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17786         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
17787         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
17789 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
17791         PR c/3444:
17792         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
17793         shortening.
17795 2002-02-17  Philipp Thomas  <pthomas@suse.de>
17797         * config/cris/cris.h: Undefine STARTFILE_SPEC and
17798         ENDFILE_SPEC before (re)defining them.
17800 2002-02-17  Kazu Hirata  <kazu@hxi.com>
17802         * config/h8300/h8300.c: Fix formatting.
17803         * config/h8300/h8300.h: Likewise.
17805 2002-02-17  Philipp Thomas  <pthomas@suse.de>
17807         * doc/tm.texi: Explain why empty strings should not be
17808         marked for translation.
17810 2002-02-17  Philipp Thomas  <pthomas@suse.de>
17812         * final.c (output_operand_lossage): Changed to accept
17813         printf style arguments. Change calls where necessary.
17814         * output.h (output_operand_lossage): Change declaration
17815         accordingly. Update copyright.
17816         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
17817         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
17818         Update copyright date where necessary.
17820         * config/i386/i386.c (print_operand): Likewise. Remove use of
17821         sprintf.
17823         * config/cris/cris.c (cris_operand_lossage): Likewise.
17824         Rename parameter so that exgettext recognizes it as
17825         translatable message.
17826         (LOSE_AND_RETURN): Rename parameter to msgid.
17828 2002-02-17  Kazu Hirata  <kazu@hxi.com>
17830         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
17831         hard coded register number with an appropriate macro.
17832         (HARD_REGNO_MODE_OK): Likewise.
17833         (ARG_POINTER_REGNUM): Likewise.
17834         (STATIC_CHAIN_REGNUM): Likewise.
17835         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
17836         * config/h8300/h8300.md (define_constants): Define more
17837         register numbers.
17839 2002-02-17  Philipp Thomas  <pthomas@suse.de>
17841         * config/i386/i386.h: Don't mark empty strings for translation.
17843 2002-02-16  H.J. Lu <hjl@gnu.org>
17845         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
17847 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
17849         * cppinit.c (merge_include_chains): Check for brack being
17850         NULL before attempting to merge it with qtail.
17852 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
17854         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
17855         DBX_DEBUG.
17857 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17859         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
17861 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17863         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
17864         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
17865         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
17867 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17869         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
17870         now only if !TARGET_FIX.
17871         (*movsi_nt_vms_fix): New pattern.
17873 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
17875         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
17876         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
17877         (alpha_sa_mask, alpha_sa_size): Reflect above change.
17878         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
17879         (alpha_start_function, alpha_expand_epilogue): Likewise.
17880         (unicosmk_gen_dsib): Likewise.
17882 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17884         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
17886 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
17888         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
17889         check_and_change_labels, s390_final_chunkify): Delete.
17890         (s390_split_branches, s390_chunkify_pool): New functions.
17891         (s390_function_prologue): Call them.
17893         * config/s390/s390.h (S390_REL_MAX): Delete.
17894         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
17896         * config/s390/s390.md (cjump, icjump, jump): Fix length
17897         attribute calculation.
17900 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
17902         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
17903         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
17905 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17907         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
17908         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
17909         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
17911 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
17913         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
17915 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
17917         * reload.c (find_dummy_reload): Check that an output register
17918         is valid for its mode.
17920 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
17922         * combine.c (known_cond): After replacing the REG of a SUBREG, try
17923         to simplify it.
17925         * function.c (assign_parms): Demote promoted argument passed by
17926         transparent reference.
17928 2001-02-14      Joel Sherrill <joel@OARcorp.com>
17930         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
17931         -Acpu() and -Amachine() to eliminate warnings.
17933 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
17935         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
17937 2002-02-14  Kazu Hirata  <kazu@hxi.com>
17939         * config/h8300/h8300-protos.h: Update the prototype for
17940         const_costs.
17941         * config/h8300/h8300.c (const_costs): Treat SET as a little
17942         more expensive operation.
17943         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
17944         reference to const_costs.
17946 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
17948         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
17950 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
17952         PR c/5503:
17953         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
17954         use arguments from newtype.
17956 2002-02-13  Eric Christopher  <echristo@redhat.com>
17958         * config/mips/mips.c (override_options): Add check for march/mipsX
17959         on the same command line. Fix error message in cpu processing.
17960         Remove architecture and ISA checks.
17962 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
17964         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
17966         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
17968 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
17970         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
17971         alternatives.
17972         ("*movv8hi_internal1"): Same.
17973         ("*movv16qi_internal1"): Same.
17974         ("*movv4sf_internal1"): Same.
17976         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
17977         not push_reload for altivec modes.
17979 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
17981         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
17982         all RTEMS targets including removal of #includes from config/*/rtems*.h
17983         file and adding them to tm_file setting. Added xm_defines=POSIX to
17984         many targets.
17985         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
17986         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
17987         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
17988         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
17989         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
17990         config/m68k/rtemself.h: Ditto.
17991         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
17992         config/mips/rtems64.h: Ditto.
17993         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
17994         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
17995         Ditto.
17996         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
17997         config/sparc/rtemself.h: Ditto.
17998         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
17999         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18000         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18001         more like arm-elf.
18002         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18003         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18004         target made more similar to i386-elf.
18005         * config/i386/t-rtems-i386: Added soft float support and multilibs.
18006         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18007         be similar to config/m68k/t-m68kelf.
18008         * gthr-rtems.h: Encapsulate with extern "C" for C++.
18010 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
18012         * regmove.c (kill_value): Handle subregs.
18014 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
18016         * i386.md (mul patterns): Allow memory operand to be first;
18017         add expanders where needed; fix constraints.
18018         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18019         Allow memory operand to be the first.
18021         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18022         operands.
18024 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18026         PR c/5681:
18027         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18028         GET_MODE (x).
18030 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18032         PR optimization/5547:
18033         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18034         all valid IA-32 address modes involving non-scaled %ebx and
18035         GOT/GOTOFF as displacement.
18037 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
18039         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18040         after emitting ltorg insns.
18042         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18043         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18044         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18045         *abssf2): Fix "op_type" attribute.
18047 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
18049         * mkconfig.sh: Avoid using a subshell redirect.
18050         ($output.T): Change to $(output)T.
18051         (ENABLE_NLS): Remove unneeded undef.
18053         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18054         * config/alpha/x-vms (libsubdir): Define.
18056         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18057         register frame procedures. Optimize retrieving context.
18059         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18060         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18061         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18063 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18065         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18066         Make same change as for find_base_value.
18068 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18070         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18071         of QImode and SImode.
18073 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18075         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18076         length computation of movsi.
18077         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18079 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18081         * config/h8300/h8300.md (subqi3): Tighten the predicate for
18082         operands[2] to register_operand.
18084 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18086         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18088 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
18090         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18091         for altivec_lvx* and altivec_stvx*.
18092         ("*movv4si_internal"): Add constraint for loading from GPRs.
18093         ("*movv8hi_internal1"): Same.
18094         ("*movv16qi_internal1"): Same.
18095         ("*movv4sf_internal1"): Same.
18097         * config/rs6000/rs6000.c (altivec_register_operand): New.
18099         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18100         altivec_register_operand.
18102 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
18104         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18105         handle SYMBOL_REF.
18107 2002-02-13  Stan Shebs  <shebs@apple.com>
18109         * c-typeck.c (digest_init): Handle vectors.
18110         (really_start_incremental_init): Same.
18111         (pop_init_level): Same.
18112         (process_init_element): Same.
18114         * varasm.c (output_constant): Same.
18116         * expr.c (clear_storage): Same.
18117         (store_constructor): Same.
18119 2002-02-12  Eric Christopher  <echristo@redhat.com>
18121         * explow.c (hard_function_value): Add comment explaining
18122         signed/unsigned comparison.
18124 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
18126         * jump.c (never_reached_warning): Add finish argument.
18127         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18128         real insn after end.
18129         * rtl.h (never_reached_warning): Adjust prototype.
18130         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18131         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18132         never_reached_warning.
18134 2002-02-12  Graham Stott  <grahams@redhat.com>
18136         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18138 2002-02-12  Kazu Hirata  <kazu@hxi.com>
18140         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18141         logical shifts on H8/300.
18142         (shift_alg_si): Improve several shifts on H8/300.
18143         (get_shift_alg): Likewise.
18145 2002-02-12  Graham Stott  <grahams@redhat.com>
18147         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18149 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18151         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18152         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18154 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
18156         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18157         non-CONST_INT through default_assemble_integer.
18158         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18159         <case 8>: Abort for CONST_DOUBLE.
18161 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18163         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18164         is specified.
18165         * config/pa/pa-linux.h (LIB_SPEC): Delete.
18166         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18168 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
18170         * config/stormy16/stormy16.md (zero_extendqihi2): New.
18172 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
18174         * regrename.c (regrename_optimize): Don't accept a
18175         part-clobbered register if the replaced register is not part
18176         clobbered.
18178         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18179         take padding into account when computing the argument value.
18181         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18183         * combine.c (try_combine): Apply substitutions in
18184         CALL_INSN_FUNCTION_USAGE too.
18186 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
18188         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18189         __builtin_altivec_abs*.
18190         (bdesc_abs): New.
18192         * config/rs6000/rs6000.h (rs6000_builtins): Add
18193         ALTIVEC_BUILTIN_ABS*.
18195         * config/rs6000/altivec.h: Use const char for builtins expecting
18196         literals.
18197         (vec_abs): New versions for C and C++.
18198         (vec_abss): Same.
18200 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18202         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18203         using Pmode.
18205 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18207         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18208         constant definition from h8300.md.
18209         (FRAME_POINTER_REGNUM): Likewise.
18210         * config/h8300/h8300.md (define_constants): Add FP_REG.
18212 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18214         * config/h8300/h8300.c (print_operand): Remove redundant code.
18216 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18218         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18219         * config/h8300/h8300.c (byte_reg): Make it static.
18221 2002-02-10  Richard Henderson  <rth@redhat.com>
18223         PR c/5623
18224         * c-typeck.c (incomplete_type_error): Handle flexible array members.
18226 2002-02-10  Richard Henderson  <rth@redhat.com>
18228         PR c++/5624
18229         * tree.c (append_random_chars): Don't abort if main_input_filename
18230         does not exist.
18232 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
18234         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18236 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18238         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18239         (pushhi1): Likewise.
18241 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18243         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18244         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18246 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
18248         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18249         remove MASK_VIS.
18250         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
18252 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18254         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18255         a half of an SImode register on H8/300.
18257 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
18259         * i386.md (movdi_2): Add missing '!'.
18261 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18263         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
18264         definitions.
18266 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18268         * config/h8300/h8300.md (length): Correct the distance valid
18269         for the short branch.
18271 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18273         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18275 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18277         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18278         registers in SImode.
18279         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18280         part-clobbered.
18282         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18283         patch.
18285         Contribute sh64-elf.
18286         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18287         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18288         (sh_cannot_modify_jumps_p): New function.
18289         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18290         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18291         (sh_ms_bitfield_layout_p): New function.
18292         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
18293                     Zack Weinberg  <zack@codesourcery.com>
18294         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18295         expand_simple_binop instead of expand_binop.
18296         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
18297         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18298         use of .quad and .uaquad.
18299         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18300         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18301         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18302         * config/sh/sh.md (movdi_const, movdi_const_32bit,
18303         movdi_const_16bit): Make sure all CONSTs have modes.
18304         (sym2PIC): Ditto, but by adjusting all callers.
18305         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18306         if the prologue calls the SHmedia argument decoder or register
18307         saver.
18308         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18309         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18310         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18311         (sh_expand_epilogue): Don't emit USE of return target register.
18312         (prepare_move_operands): Legitimize DImode PIC addresses.
18313         (sh_media_register_for_return): Skip tr0, used to initialize the
18314         PIC register.
18315         (sh_expand_prologue): Remove explicit USE of return register.
18316         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
18317         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
18318         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18319         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18320         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18321         EXTRA_CONSTRAINT_T.
18322         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18323         (MOVI_SHORI_BASE_OPERAND_P): New.
18324         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18325         (EXTRA_CONSTRAINT_T): Define in terms of them.
18326         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18327         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18328         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18329         alternatives supporting TARGET_REGS.
18330         (UNSPEC_GOTPLT): New constant.
18331         (movdi split): Move incrementing of LABEL_NUSES...
18332         (movdi_const, movdi_const_32bit): Here.  Use
18333         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18334         (movdi_const_16bit): New.
18335         (call, call_value) [flag_pic]: Use GOTPLT.
18336         (call_pop, call_value_pop): New expands.
18337         (call_pop_compact, call_pop_rettramp): New insns.
18338         (call_value_pop_compact, call_value_pop_rettramp): New insns.
18339         (sibcall) [flag_pic]: Use GOT.
18340         (builtint_setjmp_receiver): Remove bogus, unused expand.
18341         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18342         (*pt, *ptb, ptrel): New insns.
18343         (sym2GOT): Handle DImode GOT.
18344         (sym2GOTPLT, symGOTPLT2reg): New expands.
18345         (sym2PIC): New expand.
18346         (shcompact_return_tramp): Use GOTPLT to return trampoline.
18347         (shcompact_return_tramp_i): Use return register explicitly.
18348         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18349         disable flag_reorder_blocks.
18350         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18351         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18352         clobbers, for clarity.
18353         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18354         restoring of r0 in macl as MAYBE_DEAD.
18355         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
18356         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18357         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18358         alter_subreg all over.
18359         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18360         reload, instead of emitting instructions that would require
18361         reloading.
18362         (casesi_load_media): Add missing modes.
18363         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
18364         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18365         as used if the argument decoder is called.
18366         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18367         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18368         Pmode, then extend it to DImode if necessary.
18369         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18370         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18371         constants in FPU-enabled SHmedia, let them be loaded from memory.
18372         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18373         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18374         Adjust whitespace in assembly output templates.
18375         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18376         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18377         mode of if_then_else.
18378         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
18379         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18380         sh.h.
18381         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
18382                     Joern Rennecke <amylaar@redhat.com>
18383         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18384         (SUBTARGET_CPP_PTR_SPEC): New.
18385         (SUBTARGET_CPP_SPEC): Remove.
18386         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18387         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18388         Fix typo in previous checkin.
18389         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
18390         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18391         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
18392                     Alexandre Oliva  <aoliva@redhat.com>
18393         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18394         what single FP register can hold for SHmedia target.
18395         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18396                     Alexandre Oliva  <aoliva@redhat.com>
18397         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18398         Do not split into SUBREG.
18399         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
18400         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18401         and added new functions as specified in SH5 ABI r9.
18402         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
18403         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18404         8-byte boundary.
18405         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
18406         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18407         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
18408         and consttable_window_ends.
18409         2001-06-03  Graham Stott  <grahams@redhat,com>
18410         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18411         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
18412         * config/sh/sh.c (print_operand): Handle floating-point pair,
18413         vector and matrix registers.
18414         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18415         vector modes into account.
18416         * config/sh/sh.md (movv2sf): Split move between registers into
18417         movdf.
18418         (movv4sf, movv16sf): Introduce insns that get split only after
18419         reload.
18420         * config/sh/shmedia.h: Fix Copyright dates.
18421         * config/sh/ushmedia.h: Likewise.  Move loop counter
18422         declarations into conditionals that uses them.
18423         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18424         loop boundary.
18425         * config/sh/sshmedia.h: Fix Copyright dates.
18426         (sh_media_PUTCFG): Fix constraints.
18427         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
18428         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18429         ptrmemfunc_vbit_in_delta for SH5.
18430         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
18431         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18432         * invoke.texi: Likewise.
18433         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
18434         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18435         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18436         GCC_pop_shmedia_regs_nofpu): New global symbols.
18437         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18438         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18439         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18440         compact function with nonlocal labels.
18441         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18442         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18443         (initial_elimination_offset): Account for their stack space.
18444         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18445         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18446         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18447         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18448         least one of the operands to be a register.
18449         (movv2sf): Likewise.  Renamed to movv2sf_i.
18450         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18451         prepare_move_operands() before emitting SHmedia insns.
18452         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
18453         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18454         Don't save nor initialize r12.  Don't mis-align the stack.
18455         Pad the code with a nop.
18456         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
18457         stack.
18458         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
18459         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18460         [__SHMEDIA__]: Implement.
18461         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
18462         * config/sh/sh.md: Set latency of `pt' closer to reality.
18463         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18464         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18465         Set move, load and store type attributes.
18466         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18467         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18468         profiling.
18469         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18470         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18471         * config/sh/sh.c (sh_media_register_for_return): New function.
18472         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18473         branch-target register.
18474         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18475         * config/sh/sh.md (return_media_i): Use any call-clobbered
18476         branch-target register.
18477         (return_media): If r18 wasn't copied in the prologue, copy it
18478         here.
18479         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18480         Clear class FP0_REGS.
18481         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18482         from elf.h.
18483         2001-03-08  DJ Delorie  <dj@redhat.com>
18484         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18485         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
18486         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18487         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
18488         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18489         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
18490         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18491         return value correctly for call_cookie.
18492         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
18493         * config/sh/crt1.asm (start): Modified so as to call
18494         ___setup_argv_and_call_main.
18495         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
18496         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18497         SHmedia mode.
18498         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
18499         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18500         (STRIP_NAME_ENCODING): Use it.
18501         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
18502         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
18503         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18504         prepare_scc_operands().
18505         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18506         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18507         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
18508         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18509         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
18510         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18511         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18512         used in shcompact_incoming_args.
18513         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18514         change.
18515         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18516         mode.
18517         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18518         Adjust accordingly.
18519         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18520         Simplify.  Adjust.  Add sanity check.
18521         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18522         FPU_SINGLE_BIT.
18523         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18524         TARGET_SHCOMPACT.
18525         (udivsi3, divsi3): Use them.
18526         (force_mode_for_call): New insn.
18527         (call, call_value, sibcall_value): Emit it before SHcompact
18528         calls.
18529         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
18530         * config/sh/sh.md (call, call_value, sibcall): Make sure the
18531         call cookie is non-NULL before taking its value.
18532         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
18533         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18534         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
18535         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18536         block.
18537         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18538         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18539         temporary for stack adjusts.  Use MACL and MACH to pass
18540         arguments to shcompact_incoming_args.
18541         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
18542         clobber r1.
18543         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18544         (nested_trampoline): Load static chain address into r1.
18545         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18546         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
18547         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18548         fp_arith_reg_operand().
18549         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
18550         * config/sh/sh.md (casesi): Sign-extend the first two operands,
18551         and use signed compares for them.
18552         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18553         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
18554         ones properly aligned.
18555         (find_barrier): Account for extra alignment needed for 8-byte wide
18556         constants.
18557         (machine_dependent_reorg): Require a label for the second 4-byte
18558         constant after an 8-byte one.
18559         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18560         change.
18561         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18562         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18563         last_float when switching float modes.
18564         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18565         auto-increment for general-purpose registers.
18566         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18567         result.
18568         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18569         for stack adjust.
18570         * config/sh/sh.c (sh_builtin_saveregs): Support using all
18571         registers for varargs.
18572         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
18573         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18574         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18575         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18576         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18577         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
18578         call_cookie accordingly.
18579         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18580         (SHCOMPACT_BYREF): Likewise.
18581         (SHCOMPACT_FORCE_ON_STACK): New macro.
18582         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18583         (sh_builtin_saveregs): Likewise.
18584         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18585         shcompact_incoming_args): Use new shift values.  Support
18586         sequences of consecutive and non-consecutive pushes/pops.
18587         * config/sh/sh.md (return): Don't explicitly use PR_REG.
18588         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
18589         * config/sh/sh.h (TEXT_SECTION): Define.
18590         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18591         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18592         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18593         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18594         return values on FPU-enabled SHmedia.
18595         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18596         FPU-enabled SHmedia.
18597         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18598         value is returned in a non-FP reg and is not returned by
18599         reference.
18600         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18601         jump_ind.
18602         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
18603         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18604         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18605         quad-aligned to be passed by callee-copy reference.
18606         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
18607         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18608         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18609         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
18610         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18611         copying low-numbered FP regs to r7 and r8.
18612         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18613         FP regs to general-purpose regs only if the copy was passed on the
18614         stack.
18615         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18616         copying FP reg to r9.
18617         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18618         copy FP regs to general-purpose regs only in outgoing calls.
18619         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18620         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
18621         HOST_WIDE_INT.
18622         * config/sh/sh.h (struct sh_args): Document all fields.
18623         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18624         passed partially on the stack should not consider making
18625         sibcalls.
18626         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18627         stack_regs only for incoming calls.  When passing FP args,
18628         make sure there are FP regs available before modifying
18629         call_cookie.
18630         (SHCOMPACT_BYREF): Pass double args in general-purpose
18631         registers by reference.
18632         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
18633         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18634         attempt to generate sibcalls if the caller got any arguments
18635         by reference.
18636         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18637         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18638         to 8-byte boundaries.
18639         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18640         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18641         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18642         stored in the stack.
18643         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18644         for the offsets to have the ISA bit set.
18645         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
18646         invocation.  Use beq instead of bgt to mark end of sequence of
18647         loads.
18648         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
18649         bgt to mark end of sequence of stores.
18650         * config/sh/sh.c (arith_operand): Don't check whether
18651         CONST_OK_FOR_J for now.
18652         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18653         instead of long for conversion.
18654         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
18655         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18656         before passing it to fprintf.
18657         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
18658         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18659         Call set_fpscr before reading/writing SR.
18660         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18661         Call set_fpscr.
18662         * config/sh/lib1funcs.asm: Add `.align 2' directives before
18663         SHmedia code.
18664         (FMOVD_WORKS): Define on SH5 with FPU.
18665         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
18666         setting.
18667         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18668         _fpscr_values.
18669         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
18670         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18671         address.
18672         (ia_main_table): Ditto.
18673         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
18674         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18675         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18676         the definitions from sh.h.
18677         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18678         TARGET_SH5.
18679         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18680         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18681         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18682         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
18683         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18684         Increment LABEL_NUSES.
18686         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18687         TARGET_SH5.
18688         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18689         defined.
18690         * config/sh/elf.h (SIZE_TYPE): Likewise.
18691         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18692         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18693         shcompact_incoming_args): Load switch table addresses using
18694         datalabel.
18695         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18696         (NO_BUILTIN_SIZE_TYPE): Define.
18697         (SIZE_TYPE): Don't define.
18698         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18699         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18700         definition of __SH5__=32 for -m5-compact-nofpu.
18701         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18702         ADDR_DIFF_VEC.
18703         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
18704         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
18705         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
18706         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
18707         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
18708         (INSN_LENGTH_ALIGNMENT): Likewise.
18709         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
18710         * config/sh/sh.md (call, call_value, sibcall): Simplify
18711         copying of non-branch-target register.
18712         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
18713         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
18714         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
18715         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
18716         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
18717         floating-point values as structs.
18718         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
18719         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
18720         general-purpose register.
18721         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
18722         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
18723         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
18724         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
18725         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
18726         (ENCODE_SECTION_INFO): Enclose variables and constants in
18727         DATALABEL unspecs.
18728         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
18729         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
18730         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
18731         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
18732         only for LABEL_REFs.  For SYMBOL_REFs, prepend
18733         SH_DATALABEL_ENCODING to the symbol name.
18734         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
18735         convert_mode().
18736         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
18737         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
18738         UNSPEC_DATALABEL.
18739         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
18740         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
18741         (DATALABEL_REF_P): Don't require CONST.
18742         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
18743         REL label.
18744         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
18745         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
18746         right.
18747         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
18748         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
18749         Use shallow_copy_rtx and PUT_MODE to change the mode of
18750         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
18751         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
18752         on SHmedia using GENERAL_REGs.
18753         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18754         bltu_media_i): Fix reversion of conditions.
18755         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
18756         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
18757         * config/sh/sh.c (output_far_jump): Save r13 in macl.
18758         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
18759         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
18760         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
18761         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
18762         (GCC_nested_trampoline): Likewise.
18763         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
18764         * config/sh/sh.c (gen_datalabel_ref): Define.
18765         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
18766         (INITIALIZE_TRAMPOLINE): Likewise.
18767         (TRAMPOLINE_ADJUST_ADDRESS): Define.
18768         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
18769         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
18770         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
18771         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
18772         (ic_invalidate): Adjust for SH5.
18773         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
18774         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
18775         _nested_trampoline.
18776         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
18777         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
18778         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
18779         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
18780         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
18781         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
18782         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
18783         * config/sh/sh.c (target_reg_operand): Match only target-branch
18784         registers and pseudos that aren't virtual registers.
18785         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18786         Copy operands that don't match target_reg_operand to pseudos.
18787         (call_media, call_value_media, sibcall_media): Use
18788         target_reg_operand instead of target_operand.
18789         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
18790         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
18791         * config/sh/sh.c (target_reg_operand): Match hardware registers
18792         other than branch-target registers.
18793         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
18794         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
18795         (fpscr_values) [SH5 == 32]: Define.
18796         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
18797         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18798         Handle function addresses coming in SUBREGs.
18799         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
18800         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18801         shcompact_return_trampoline): Use datalabel where appropriate.
18802         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
18803         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
18804         general-purpose register to copy one branch-target register to
18805         another.
18806         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
18807         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
18808         SYMBOL_REFs with VOIDmode.
18809         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18810         bltu_media_i): New insns.
18811         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
18812         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
18813         (INIT_CUMULATIVE_ARGS): Likewise.
18814         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
18815         * machmode.def (V16SFmode): New mode.
18816         * c-common.c (type_for_mode): Support V2SF and V16SF.
18817         * tree.c (build_common_tree_nodes_2): Likewise.
18818         * tree.h (tree_index): Likewise.
18819         * calls.c (emit_call_1): Take args_so_far.  Adjust all
18820         callers.  Introduce CALL_POPS_ARGS.
18821         * tm.texi (CALL_POPS_ARGS): Document.
18822         * config/sh/crt1.asm: Implement in SHmedia mode.
18823         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
18824         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
18825         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
18826         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
18827         Implement divsi and udivsi in SHmedia mode.  Introduce
18828         SHcompact trampolines.
18829         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
18830         only in SHmedia64.
18831         (regno_reg_class): Rewrite.
18832         (fp_reg_names): Remove.
18833         (sh_register_names, sh_additional_register_names): New.
18834         (print_operand): Added `u'.  Support SUBREGs in addresses.
18835         Add parentheses around shifted CONSTs.
18836         (output_file_start): Output .mode and .abi directives.
18837         (shiftcosts, addsubcosts, multcosts): Adjust.
18838         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
18839         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
18840         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
18841         bytes, not registers.  Take into account the need for the
18842         SHcompact incoming args trampoline.  Adjust all callers.
18843         (sh_expand_prologue): Take stack_regs into account.  Call
18844         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
18845         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
18846         stack aligned as per SH5 ABI.
18847         (sh_builtin_saveregs): Support SH5 ABI.
18848         (sh_build_va_list, sh_va_start): Likewise.
18849         (initial_elimination_offset): Take alignment into account.
18850         Compute location of PR according to the SH5 stack frame.
18851         (arith_reg_operand): Reject branch-target registers.
18852         (shmedia_6bit_operand): New.
18853         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
18854         (target_reg_operand): Match DImode only.  Accept SUBREGs.
18855         (target_operand): New.
18856         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
18857         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
18858         SIBCALL_REGS for SHmedia.
18859         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
18860         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
18861         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
18862         (TARGET_SWITCHES): New SH5 flags.
18863         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
18864         VALID_REGISTER_P to disable unsupported registers.
18865         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
18866         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
18867         (FUNCTION_ARG_PADDING): Define.
18868         (FASTEST_ALIGNMENT): Adjust.
18869         (SH_REGISTER_NAMES_INITIALIZER): New.
18870         (sh_register_names): Declare.
18871         (DEBUG_REGISTER_NAMES): Define.
18872         (REGISTER_NAMES): Define based on sh_register_names.
18873         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
18874         (sh_additional_register_names): Declare.
18875         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
18876         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
18877         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
18878         (REGISTER_NATURAL_MODE): Define.
18879         (FIRST_PSEUDO_REGISTER): Adjust.
18880         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
18881         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
18882         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
18883         (VECTOR_MODE_SUPPORTED_P): Define.
18884         (REG_CLASS_CONTENTS): Adjust.
18885         (SMALL_REGISTER_CLASSES): Adjust.
18886         (REG_ALLOC_ORDER): Adjust.
18887         (INDEX_REG_CLASS): Adjust.
18888         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
18889         (CONST_OK_FOR_LETTER_P): Adjust.
18890         (PREFERRED_RELOAD_CLASS): Adjust.
18891         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
18892         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
18893         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
18894         (FIRST_FP_PARM_REG): Adjust.
18895         (CALL_POPS_ARGS): Define.
18896         (FUNCTION_ARG_REGNO_P): Adjust.
18897         (struct sh_args): New fields.
18898         (GET_SH_ARG_CLASS): Adjust.
18899         (INIT_CUMULATIVE_ARGS): Adjust.
18900         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
18901         (FUNCTION_ARG_ADVANCE): Adjust.
18902         (FUNCTION_ARG): Adjust.
18903         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
18904         (FUNCTION_ARG_CALLEE_COPIES): Define.
18905         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
18906         (STRICT_ARGUMENT_NAMING): Define.
18907         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
18908         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
18909         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
18910         (SETUP_INCOMING_VARARGS): Adjust.
18911         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
18912         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
18913         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
18914         (SUBREG_OK_FOR_INDEX_P): Adjust.
18915         (EXTRA_CONSTRAINT_S): Update.
18916         (EXTRA_CONSTRAINT_T): New.
18917         (EXTRA_CONSTRAINT): Adjust.
18918         (GO_IF_LEGITIMATE_INDEX): Adjust.
18919         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
18920         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
18921         (MOVE_MAX): Adjust.
18922         (MAX_MOVE_MAX): Define.
18923         (Pmode): Adjust.
18924         (CONST_COSTS): Adjust.
18925         (REGISTER_MOVE_COST): Adjust.
18926         (BRANCH_COST): Adjust.
18927         (TEXT_SECTION_ASM_OP): Adjust.
18928         (DBX_REGISTER_NUMBER): Adjust.
18929         (ASM_OUTPUT_DOUBLE_INT): New.
18930         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
18931         (PREDICATE_CODES): Adjust.
18932         (PROMOTE_MODE): Adjust.
18933         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
18934         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
18935         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
18936         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
18937         (DR0_REG, DR2_REG, DR4_REG): Renumber.
18938         (TR0_REG, TR1_REG, TR2_REG): New.
18939         (XD0_REG): Renumber.
18940         (UNSPEC_COMPACT_ARGS): New.
18941         (type): Added pt and ptabs.
18942         (length): Default to 4 on SHmedia.  Default pt length to 12
18943         and     20 on SHmedia32 and SHmedia64, respectively.
18944         (pt): New function unit.
18945         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
18946         Add whitespace between operands of SHmedia instructions.
18947         (movdicc): Fix.
18948         (adddi3_media, addsi3_media): Adjust constraints.
18949         (subsi3) [SHmedia]: Force operand 1 into a register.
18950         (udivsi3_i1_media, udivsi3_i4_media): New.
18951         (udivsi3): Support SHmedia.
18952         (divsi3_i1_media, divsi3_i4_media): New.
18953         (divsi3): Support SHmedia.
18954         (anddi3, iordi3, xordi3): Adjust constraints.
18955         (zero_extendhidi2, zero_extendqidi2): New.
18956         (extendsidi2, extendhidi2, extendqidi2): New.
18957         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
18958         (pop_e, pop_fpul, pop_4): Likewise.
18959         (movsi_media): Support FP and BT registers.
18960         (movsi_media_nofpu): New.  Adjust splits to DImode.
18961         (lduw, ldub): Renamed to zero_extend* above.
18962         (movqi_media): Fix typo.
18963         (movdi_media): Support FP and BT registers.
18964         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
18965         (movdi_const_32bit): New.
18966         (shori_media): Require immediate operand.  Use `u' for output.
18967         (movdf_media, movsf_media): Simplified.
18968         (movdf_media_nofpu, movsf_media_nofpu): New.
18969         (movdf, movsf): Adjust
18970         (movv2sf, movv2sf, movv16sf): New.
18971         (beq_media, beq_media_i): Adjust constraints.  Don't use
18972         scratch BT register.
18973         (bne_media, bne_media_i): Likewise.
18974         (bgt_media, bgt_media_i): Likewise.
18975         (bge_media, bge_media_i): Likewise.
18976         (bgtu_media, bgtu_media_i): Likewise.
18977         (bgeu_media, bgeu_media_i): Likewise.
18978         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
18979         bunordered): Emit jump insn.  Force operands to registers when
18980         needed.
18981         (jump_media, jump): Simplify.
18982         (call_compact, call_compact_rettramp): New.
18983         (call_value_compact, call_value_compact_rettramp): New.
18984         (call_media, call_value_media): Simplify.
18985         (sibcall_compact, sibcall_media): New.
18986         (call, call_value): Adjust for SHmedia and SHcompact.
18987         (sibcall, sibcall_value, untyped_call): Likewise.
18988         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
18989         (indirect_jump): Adjust for SHmedia.
18990         (casesi_jump_media): New.
18991         (nop): Re-enable for SHmedia.
18992         (call_site): Restrict to SH1.
18993         (casesi): Adjust for SHmedia.
18994         (casesi_shift_media, casesi_load_media): New.
18995         (return): Explicitly use PR register.  Call return trampoline
18996         on SHcompact.
18997         (return_i): Explicitly use PR register.
18998         (shcompact_return_tramp, shcompact_return_tramp_i): New.
18999         (return_media): Adjust.
19000         (shcompact_incoming_args): New.
19001         (epilogue): Adjust.
19002         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19003         (movstrsi): Disable on SH5.
19004         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19005         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19006         (subsf3, subsf3_media): Likewise.
19007         (mulsf3, mulsf3_media, mac_media): Likewise.
19008         (divsf3, divsf3_media): Likewise.
19009         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
19010         (floatsisf2, fux_truncsfsi2): Likewise.
19011         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
19012         constraints.
19013         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19014         (cmpunsf_media, cmpsf): Likewise.
19015         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19016         (abssf2, abssf2_media): Likewise.
19017         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19018         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19019         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
19020         (floatsidf2, fix_truncdfsi2): Likewise.
19021         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
19022         constraints.
19023         (cmpeqdf_media, cmpgtdf_media): Likewise.
19024         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19025         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19026         (absdf2, absdf2_media): Likewise.
19027         (extendsfdf2, extendsfdf2_media): Likewise.
19028         (truncsfdf2, truncsfdf2_media): Likewise.
19029         * config/sh/sh64.h: New file.
19030         * config/sh/t-sh64: New file.
19031         * config/sh/shmedia.h: New file.
19032         * config/sh/ushmedia.h: New file.
19033         * config/sh/sshmedia.h: New file.
19034         * configure.in: Added sh64-*-elf.
19035         * configure: Rebuilt.
19036         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
19037         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19038         (reg_class_from_letter): Use `b' for TARGET_REGS.
19039         (print_operand): Support `%M', `%m', `AND' and
19040         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
19041         (andcosts): Adjust for SHmedia.
19042         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19043         Likewise.
19044         (target_reg_operand): New function.
19045         * config/sh/sh-protos.h (target_reg_operand): Declare.
19046         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19047         FP registers on SH5.
19048         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19049         on SH4.
19050         (TARGET_REGISTER_P): New macro.
19051         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19052         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19053         (EXTRA_CONSTRAINT_S): New macro.
19054         (EXTRA_CONSTRAINT): Adjust.
19055         (FLOAT_TYPE_SIZE): Define to 32.
19056         (Pmode): DImode on SHmedia.
19057         (CONST_COSTS): Adjust for SHmedia literals.
19058         (PREDICATE_CODES): Added target_reg_operand.
19059         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19060         * config/sh/sh.md: Remove all attrs from SHmedia insns.
19061         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19062         (cmpdi): Accept SHmedia.
19063         (movdicc_false, movdicc_true): New insns.
19064         (movdicc): New expand.
19065         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19066         no_new_pseudos.
19067         (addsi3_media): Match `S' constraint.
19068         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19069         (negdi2): Expand for SHmedia.
19070         (one_cmpldi2): New expand.
19071         (zero_extendsidi2): Change from expand to insn.
19072         (extendsidi2): Add constraints.
19073         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
19074         LD/ST address.  Fix SI immediate loading split.
19075         (movhi_media, movqi_media, lduw, ldub): New insns.
19076         (movhi, movqi): Accept SHmedia.
19077         (shori_media, movdi_media): Relax input constraints.  Split
19078         symbolic constants.
19079         (movdf_media, movsf_media): New insn.  New split to movdi.
19080         (movdf, movsf): Match on SHmedia.
19081         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19082         bgeu_media): New insns and splits.  New insns with `_i' suffix.
19083         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19084         (bunordered): New expand.
19085         (jump_compact): Renamed from `jump'.
19086         (jump_media): New insn.
19087         (jump): New expand.
19088         (call_media, call_value_media): New insns.
19089         (call, call_value): Adjust.
19090         (indirect_jump_compact): Renamed from `indirect_jump'.
19091         (indirect_jump_media): New insn.
19092         (indirect_jump): New expand.
19093         (untyped_call, return): Accept SHmedia.
19094         (return_media): New insn.
19095         (prologue, epilogue, blockage): Accept SHmedia.
19096         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19097         (sunordered): New expand.
19098         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19099         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19100         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19101         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19102         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19103         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19104         abssf2_media): New insns.
19105         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19106         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19107         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19108         floatdidf2, floatsidf2_media, fix_truncdfdi2,
19109         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19110         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19111         absdf2_media): New insns.
19112         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19113         (extendsfdf2_media, truncdfsf2_media): New insns.
19114         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
19115         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19116         * config/sh/sh.h (CONST_OK_FOR_J): Document.
19117         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19118         * config/sh/sh.md (adddi3): New expand.
19119         (adddi3_media, adddi3z_media): New insns.
19120         (adddi3_compact): Renamed from adddi3.
19121         (addsi3_media): Use add.l r63 to add constant zero.
19122         (subdi3): New expand.
19123         (subdi3_media): New insn.
19124         (subdi3_compact): Renamed from subdi3.
19125         (mulsidi3): New expand.
19126         (mulsidi3_media): New insn.
19127         (mulsidi3_compact): Renamed from mulsidi3.
19128         (umulsidi3): New expand.
19129         (umulsidi3_media): New insn.
19130         (umulsidi3_compact): Renamed from umulsidi3.
19131         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19132         (ashlsi3, ashrsi3, lshrsi3): Use them.
19133         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19134         (ashldi3, ashrdi3, lshrdi3): Use them.
19135         (zero_extendsidi2): New expand.
19136         (extendsidi2): New insn.
19137         (movsi_media): New insn.  Split to movdi to load constants.
19138         (movsi): Enable for shmedia.
19139         (movdi_media): New insn.  Use shori_media to load wide constants.
19140         (short_media): New insn.
19141         (movdi): Enable for shmedia.
19142         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
19143         * config/sh/sh.h (CPP_SPEC): Added `m5'.
19144         (SUBTARGET_CPP_SPEC): Added `!m5'.
19145         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19146         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
19147         to all other SH variants.
19148         (TARGET_DEFAULT): Set to SH1_BIT.
19149         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19150         (BITS_PER_WORD): Raise to 64 on shmedia.
19151         (MAX_BITS_PER_WORD): Change to 64.
19152         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19153         (INT_TYPE_SIZE): Keep as 32.
19154         (UNITS_PER_WORD): Raise to 8 on shmedia.
19155         (MIN_UNITS_PER_WORD): Keep as 4.
19156         (POINTER_SIZE): Raise to 64 on shmedia.
19157         (CONST_OK_FOR_J): New macro.
19158         (CONST_OK_FOR_LETTER_P): Use it.
19159         (processor_type): Add PROCESSOR_SH5.
19160         * config/sh/sh.md: Conditionalize all expands, insns and
19161         splits to TARGET_SH1.
19162         (cpu): Added sh5.
19163         (addsi3_compact): Renamed from...
19164         (addsi3): Now an expand.
19165         (addsi3_media, subsi3_media): New insns.
19166         (subsi3): Don't negate constants with SHmedia.
19168         * hooks.c: New file.
19169         * hooks.h: New file.
19170         * Makefile.in (HOOKS_H): New.
19171         (TARGET_DEF_H): Added $(HOOKS_H).
19172         (OBJS): Added hooks.o.
19173         (cfgcleanup.o, bb-reorder.o): Added target.h.
19174         (hooks.o): Added dependencies.
19175         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19176         (TARGET_INITIALIZER): this.
19177         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19178         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19179         * bb-reorder.c: Include target.h.
19180         (reorder_basic_blocks): Skip if cannot modify jumps.
19181         * cfgcleanup.c: Include target.h.
19182         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19184 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19186         * config/mips/mips.md (casesi_internal, casesi_internal_di):
19187         Protect jump delay slot instructions with .set noreorder and
19188         .set nomacro.
19190 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19192         * config/mips/mips.md (casesi_internal_di): Calculate
19193         the index into the target offset table correctly.
19195 2002-02-08  Richard Henderson  <rth@redhat.com>
19197         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19198         * final.c (output_addr_const): Accept and discard SUBREG.
19199         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19200         mark them unknown instead.
19201         (simplify_subtraction): Handle RTX_UNKNOWN.
19202         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19204 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
19206         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19208 2002-02-08  Richard Henderson  <rth@redhat.com>
19210         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19212 2002-02-08  Andreas Jaeger  <aj@suse.de>
19214         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19215         * config/i386/t-linux64: New file.
19217 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
19219         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19220         * c-parse.in (compstmt): Clear last_expr_type.
19222 2002-02-07  Richard Henderson  <rth@redhat.com>
19224         * loop.c (strength_reduce): Sink final_value when not
19225         eliminating a biv.
19227 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
19229         * config/sparc/freebsd.h: Fix mismatched spec {.
19231 2002-02-07  Richard Henderson  <rth@redhat.com>
19233         * cfgrtl.c: Include recog.h and insn-config.h.
19234         (keep_with_call_p): Fix general_operand invocation.
19235         * Makefile.in (cfgrtl.o): Update dependencies.
19237 2002-02-07  Kazu Hirata  <kazu@hxi.com>
19239         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19240         comment.  Accept HImode only if TARGET_H8300.
19242 2002-02-07  Eric Christopher  <echristo@redhat.com>
19244         * config/mips/crtn.asm: Cleanup #ifdefs.
19246 2002-02-07  Eric Christopher  <echristo@redhat.com>
19248         * config/mips/crti.asm: Add changes for mips16. mips16 uses
19249         register 7 as RA instead of $31.
19250         * config/mips/crtn.asm: Ditto.
19251         * config/mips/mips.c (mips_move_2words): Add case for
19252         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19253         (compute_frame_size): Fix typo.
19254         (save_restore_insns): Ditto.  Make documentation about using
19255         register $7 as return register more precise.
19256         (mips_expand_epilogue): Fix comment. Add code to work around not
19257         being able to add to the stack pointer directly.
19258         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19259         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19260         epilogue.
19262 2002-02-07  Tom Rix  <trix@redhat.com>
19264         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19265         immediates in ldu and stdu DS opcode field.
19266         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19267         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19268         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19270 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
19272         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19273         offset for stack bias.
19275 2002-02-07  H.J. Lu <hjl@gnu.org>
19277         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19279 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
19281         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19283 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
19285         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19286         * i386.c (x86_order_regs_for_local_alloc): New global function.
19287         * i386.h (REG_ALLOC_ORDER): CLeanup.
19288         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19290 2002-02-07  Richard Henderson  <rth@redhat.com>
19292         PR optimization/2463
19293         * alias.c (find_base_value): Recall base values for fixed hard regs.
19294         * loop.c (loop_regs_update): Don't use single_set on non-insns.
19296 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
19298         * config/mips/mips.md (define_delay) [mips16]: Adjust required
19299         length.
19301 2002-02-06  Richard Henderson  <rth@redhat.com>
19303         PR c/5609
19304         * stmt.c (resolve_operand_name_1): Take more care with mixed
19305         named and unnamed operands.
19307 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
19308             Jan Hubicka  <jh@suse.cz>
19310         * loop.c (remove_constant_addition): Avoid clobbering a shared
19311         CONST expression.
19313 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19315         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19316         * config/s390/t-linux64: New file.
19317         * config/s390/libgcc-glibc.ver: New file.
19319 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19321         * config/s390/linux64.h: Delete file.
19322         * config/s390/s390x.h: New file.
19323         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19324         as target header file.
19325         * config/s390/linux.h (TARGET_VERSION): Define depending on
19326         DEFAULT_TARGET_64BIT.
19327         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19328         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19329         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19330         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19331         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19332         (EXTRA_SPEC): New define.
19333         * config/s390/s390.h (TARGET_VERSION): Define depending on
19334         DEFAULT_TARGET_64BIT.
19335         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19337 2002-02-06  Jason Merrill  <jason@redhat.com>
19339         * c-decl.c (finish_function): Warn about a non-void function with
19340         no return statement and no abnormal exit.
19341         (current_function_returns_abnormally): New variable.
19342         (start_function): Clear it.
19343         (struct c_language_function): Add returns_abnormally.
19344         (push_c_function_context): Save it.
19345         (pop_c_function_context): Restore it.
19346         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19347         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19348         an explicit return type.
19349         * c-tree.h: Declare current_function_returns_abnormally.
19350         (C_FUNCTION_IMPLICIT_INT): New macro.
19351         * c-typeck.c (build_function_call): Set it.
19352         (c_expand_return): Set current_function_returns_value even if the
19353         value is erroneous.
19355 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19357         PR c/5420:
19358         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19359         unsafe for reevaluation.
19361 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19363         PR c/5482:
19364         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19365         EXPR_STMT, but COMPOUND_STMT, recurse into it.
19367 2002-02-06  Richard Henderson  <rth@redhat.com>
19369         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19370         be a general_operand.  Dest for function value must be a pseudo.
19372 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
19374         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19375         as SYMBOL_REFs from the constant pool.
19377 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
19379         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19380         passed by invisible reference.
19382 2002-02-05  Richard Henderson  <rth@redhat.com>
19384         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19386 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
19388         Implement using "base addresses" in insn operands as default.
19389         * config/mmix/mmix.c (mmix_conditional_register_usage): if
19390         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19391         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19392         used to read the rtx value.
19393         (mmix_target_asm_function_epilogue): Fix spacing.
19394         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19395         (mmix_legitimate_address): Ditto.
19396         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19397         should be loaded with a GETA insn.  Don't allocate needless extra
19398         char for nul termination and fix misleading comment.
19399         (mmix_print_operand_address): Handle constants if
19400         TARGET_BASE_ADDRESSES.
19401         (mmix_output_register_setting): Use base addressing if
19402         TARGET_BASE_ADDRESSES and the number of insns is 3.
19403         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19404         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19405         to use R as constraint, add LDA to match s.
19406         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19407         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19408         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19409         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19410         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19411         order with other fixed registers.
19412         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19413         other parameter/call-clobbered registers.
19414         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19415         -mbase-addresses, -mno-base-addresses.
19416         (MMIX Options): Ditto.
19418 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19420         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19422 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
19424         * config/rs6000/altivec.h: Change elem to _S_elem.
19426 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19428         * config/netbsd.h (WCHAR_TYPE): Define.
19429         (WCHAR_TYPE_SIZE): Ditto.
19430         (WINT_TYPE): Ditto.
19431         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19432         (WCHAR_UNSIGNED): Ditto.
19433         (WCHAR_TYPE_SIZE): Ditto.
19434         (WINT_TYPE): Ditto.
19435         * config/arm/netbsd.h: Likewise.
19436         * config/i386/netbsd-elf.h: Likewise.
19437         * config/i386/netbsd.h: Likewise.
19438         * config/m68k/netbsd-elf.h: Likewise.
19439         * config/m68k/netbsd.h: Likewise.
19440         * config/ns32k/netbsd.h: Likewise.
19441         * config/sparc/netbsd.h: Likewise.
19442         * config/vax/netbsd.: Likewise.
19444 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
19446         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19447         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
19448         (TARGET_INITIALIZER): this.
19449         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19450         (BITFIELD_NBYTES_LIMITED): Markup fix.
19451         * tree.h (default_ms_bitfield_layout_p): Declare.
19452         (record_layout_info): Added prev_field.
19453         * tree.c (default_ms_bitfield_layout_p): New fn.
19454         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19455         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19456         * stor-layout.c: Include target.h.
19457         (start_record_layout): Initialize prev_field.
19458         (place_field): Handle MS bit-field layout, and disregard
19459         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19460         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
19461         * Makefile.in (stor-layout.o): Adjust dependencies.
19463 2002-02-05  Jason Merrill  <jason@redhat.com>
19465         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19467 2002-02-05  Andreas Jaeger  <aj@suse.de>
19469         * crtstuff.c: Fix comments.
19471 2002-02-05  Richard Henderson  <rth@redhat.com>
19473         PR fortran/3393
19474         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19475         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19477         PR fortran/3392
19478         * config/mips/mips.c (function_arg): Handle TImode.
19479         (function_arg_advance): Likewise.
19481 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19483         * config/rs6000/altivec.h (vec_step_help): Rename to
19484         __vec_step_help.
19486 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19488         * config/rs6000/altivec.h: Fix typos.
19490 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19492         * config/arm/netbsd.h: Correct a comment.
19494 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19496         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19497         building void typed builtins.
19499         * config/rs6000/altivec.h (vec_ld*): Fix typos.
19500         (vec_step): Implement for C++.
19502 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19504         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19506 2002-02-04  Richard Henderson  <rth@redhat.com>
19508         * combine.c (nonzero_bits): Re-introduce special case for
19509         sp/fp/ap wrt REGNO_POINTER_ALIGN.
19511 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19513         * doc/extend.texi: Warn about unsupported usage of altivec
19514         builtins.
19516         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19517         (altivec_predicate_*): New.
19519         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19520         Add C++ version of vec_*() functions.
19522         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19523         (bdesc_2arg): Remove altivec predicates.
19524         (altivec_expand_builtin): Handle predicates.
19525         (altivec_init_builtins): Handle predicates.
19526         (altivec_expand_predicate_builtin): New.
19528 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19530         * pa.c (DO_FRAME_NOTES): Move forward.
19531         (store_reg): Revise handling of frame notes.
19532         (load_reg): Likewise.
19533         (set_reg_plus_d): Likewise.
19534         (hppa_expand_prologue): Likewise.
19535         (hppa_expand_epilogue): Likewise.
19537 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19539         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19541 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19543         PR c/4475, c++/3780:
19544         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19545         * c-common.h (SWITCH_TYPE): Define.
19546         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19547         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19548         Rename spareness variable to sparseness.
19549         (expand_end_case_type): Renamed from expand_end_case, use orig_type
19550         if non-NULL instead of TREE_TYPE (orig_index).
19551         * tree.h (expand_end_case_type): Renamed from expand_end_case.
19552         (expand_end_case): Define using expand_end_case_type.
19553         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19554         to expand_end_case_type.
19555         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19557 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19559         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19560         (BIGGEST_ALIGNMENT): Change to 128.
19562 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19564         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19566 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19568         * pa.md (call_internal_reg_64bit): Remove unused variable.
19570 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
19572         * config/arm/arm.h (machine_function): Add uses_anonymous_args
19573         field.
19574         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19575         * config/arm/arm.c (current_function_anonymous_args): Delete,
19576         replace uses with cfun->machine->uses_anonymous_args.
19577         (arm_reorg): Do not reset uses_anonymous_args.
19579         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19580         any geenral register.
19582 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
19584         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19585         the entry block.
19587 2002-02-04  Richard Henderson  <rth@redhat.com>
19589         * combine.c (force_to_mode): Remove STACK_BIAS code.
19590         (nonzero_bits): Likewise.  Replace sp/fp special case with
19591         REGNO_POINTER_ALIGN.
19593         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19594         (HARD_FRAME_POINTER_REGNUM): New.
19595         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19596         (FIXED_REGS, CALL_USED_REGS): Update.
19597         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19598         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19599         (HARD_REGNO_NREGS): Update for SFP.
19600         (STACK_POINTER_OFFSET): Include bias here ...
19601         (FIRST_PARM_OFFSET): ... not here.
19602         (STACK_BIAS): Remove.
19603         (INIT_EXPANDERS): New.
19604         (STARTING_FRAME_OFFSET): Do not include bias.
19605         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19606         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19607         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19608         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19609         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19610         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19611         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19612         (MUST_SAVE_REGISTER): Likewise.
19613         (sparc_flat_function_prologue): Likewise.
19614         (sparc_flat_function_epilogue): Likewise.
19615         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19616         (sparc_init_modes): SFP is GENERAL_REGS.
19617         (sparc_builtin_saveregs): SFP does not have bias applied.
19619 2002-02-04  Richard Henderson  <rth@redhat.com>
19621         * config/alpha/alpha.c (current_function_is_thunk): Don't check
19622         current_function_is_thunk.
19623         (alpha_sa_mask): Distinguish between current_function_is_thunk
19624         called from ASM_OUTPUT_MI_THUNK and not.
19625         (alpha_does_function_need_gp): Thunks always need gp.
19626         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19627         (alpha_output_mi_thunk_osf): New.
19628         * config/alpha/alpha-protos.h: Update.
19629         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19631 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
19633         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19634         function types, not when they're taken away.
19636 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
19638         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19639         CODE_LABEL and jump table when replacing a table jump with a
19640         simple jump.
19642 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19644         * config/s390/s390-protos.h (legitimize_la_operand,
19645         s390_secondary_input_reload_class, s390_plus_operand,
19646         s390_expand_plus_operand): Add prototypes.
19648         config/s390/s390.c (s390_secondary_input_reload_class,
19649         s390_plus_operand, s390_expand_plus_operand): New functions.
19651         (struct s390_address): New member 'pointer'.
19652         (s390_decompose_address): Compute it.
19653         (legitimate_la_operand_p): Use it.
19654         (legitimize_la_operand): New function.
19655         (movti, movdi, movdf splitters): Call it.
19657         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19658         (PREDICATE_CODES): Add s390_plus_operand.
19660         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19661         (la_ccclobber): Allow GENERAL_REGS as output operand.
19663         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19664         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19665         (*la_64, *la_31, reload_indi, reload_insi): ... these.
19667 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19669         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19670         register names for regular asm () construct.
19672 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19674         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19675         registers.
19677 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19679         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19680         pat for recog.
19682 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
19684         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19685         constant pool to be identical by string address and index.
19687 2002-02-04  Anthony Green  <green@redhat.com>
19689         * output.h (SECTION_OVERRIDE): Define.
19690         * varasm.c (named_section): Obey SECTION_OVERRIDE.
19692 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
19694         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19695         by existing arm*-*-netbsd* (a.out) target.
19696         (ns32k-*-netbsdelf*): Likewise.
19697         (sparc-*-netbsdelf*): Likewise.
19698         (vax-*-netbsdelf*): Likewise.
19700 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
19702         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19703         headers and libobjc headers.
19705 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
19707         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
19708         (_mingw.h): Remove duplicate include.
19710 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
19712         * config.gcc: Set cpu_type to m68k for 68010, as well.
19713         (m68010-*-netbsdelf*): New...
19714         (m68k*-*-netbsdelf*): ...targets.
19715         * config/m68k/netbsd-elf.h: New file.
19717 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19719         * config/h8300/h8300.c (hand_list): Move inside function_arg.
19721 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19723         * config/h8300/h8300.c (h8_push_ops): Move inside
19724         h8300_init_once.
19725         (h8_pop_ops): Likewise.
19726         (h8_move_ops): Likewise.
19728 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19730         * config/h8300/h8300.c (os_task): Make it static.
19731         (monitor): Likewise.
19732         (pragma_saveall): Likewise.
19734 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
19736         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
19737         constant is a valid sign-extension for Pmode.
19739 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19741         * config/h8300/h8300.c: Fix formatting.
19743 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19745         * config/h8300/h8300.md: Fix formatting.
19747 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19749         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
19750         predicates of operands[1].  Split the patterns for each
19751         processor variant.
19753 2002-02-02  Kazu Hirata  <kazu@hxi.com>
19755         * config/h8300/h8300.md (xor patterns): Tighten the predicates
19756         of operands[1] to register_operand.
19758 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
19760         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
19761         * cpphash.c (_cpp_init_hashtable): Similarly.
19762         * cppinit.c (cpp_create_reader): Default the signed_char flag.
19763         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
19764         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
19765         (cpp_handle_option): Handle the new options.
19766         * cpplex.c (cpp_interpret_charconst): Use new flag.
19767         * cpplib.h (struct cpp_options): New member signed_char.
19768         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
19769         (cpp_options): Handle -fsigned-char and -funsigned-char.
19770         (static_specs): Remove signed_char_spec.
19771         (do_spec1): Don't handle %c.
19772         * system.h: Poison SIGNED_CHAR_SPEC.
19773         * tradcif.y (yylex): Use flag_signed_char.
19774         * tradcpp.h (flag_signed_char): New.
19775         * tradcpp.c (flag_signed_char): New.
19776         (main): Handle new command-line options.
19777         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
19778 config:
19779         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
19780         * avr/avr.h: Remove old comments.
19781         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
19782         (CC1_SPEC): Pass -fsigned-char if -mic*.
19783         (SIGNED_CHAR_SPEC): Remove.
19784 doc:
19785         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
19787 2002-02-01  Eric Christopher  <echristo@redhat.com>
19789         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
19790         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
19791         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
19792         (ASM_OUTPUT_REG_POP): Ditto.
19794 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
19796         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
19797         patch.
19799 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
19801         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
19803 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
19805         PR c/5304:
19806         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
19807         unconditionally.
19809 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
19811         * cfganal.c: Include tm_p.h.
19812         (keep_with_call_p): Fix the test that determines if a register holds
19813         the return value of a call.
19815 2002-02-01  DJ Delorie  <dj@redhat.com>
19817         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
19818         we are given conflicting registers, switch to the other one we
19819         had allocated for us.
19820         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
19821         as TImode so we know when the "other" register is available.
19823 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
19825         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
19826         sparc/sparc_bi.h.
19828 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
19830         * cfganal.c (keep_with_call_p): New function.
19831         (flow_call_edges_add): Prevent splitting a block between a call and
19832         a single-set instruction that should be kept in the same block.
19834 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19836         * doc/install.texi (avr): Update outdated URL.
19838 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
19840         * config/stormy16/stormy16.md (pushqi): New.
19841         (popqi): New.
19842         (pushhi): New.
19843         (pophi): New.
19844         (movhi): Remove stack operands.
19845         (movqi): Likewise.
19846         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
19847         nonimmediate_nonstack_operand.
19848         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
19849         New.
19850         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
19851         New.
19853 2002-01-31  Jason Merrill  <jason@redhat.com>
19855         * Makefile.in (c-parse.c): Handle .output file.
19856         * objc/Make-lang.in (objc-parse.c): Likewise.
19858 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
19860         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
19861         the -me[lb] option is given.  Don't output the default flag
19862         twice.
19864 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
19866         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
19867         the primary source file; this has not been done yet.
19868         * c-decl.c (c_expand_body): Reset input_filename from
19869         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
19871 2002-01-31  Kazu Hirata  <kazu@hxi.com>
19873         * rtlanal.c (subreg_regno_offset): Do not use
19874         SUBREG_REGNO_OFFSET.
19875         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
19876         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
19878 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
19880         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
19881         version rather than GNATS version in --version output.
19883 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
19885         * ifcvt.c (noce_process_if_block): Make a copy of the destination
19886         when copying back from a temporary.
19888 2002-01-30  Richard Henderson  <rth@redhat.com>
19890         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
19891         and new_dest are the same.
19893 2002-01-30  Richard Henderson  <rth@redhat.com>
19895         PR opt/5076
19896         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
19897         * rtl.c (note_insn_name): Update.
19898         * emit-rtl.c (remove_unnecessary_notes): Kill it.
19899         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
19900         to perform loop rotation.
19901         (expand_exit_loop_top_cond): New.
19902         * tree.h (expand_exit_loop_top_cond): Declare it.
19903         * c-semantics.c (genrtl_while_stmt): Use it.
19904         (genrtl_for_stmt): Likewise.
19906 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
19908         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
19909         arguments to 64-bit boundaries on 64-bit ABIs.
19911 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
19913         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
19915 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
19917         * c-decl.c (grokdeclarator): Handle type being a typedef for an
19918         invalid type.
19920 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
19922         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
19923         * config/sparc/sparc_bi.h: Remove file.
19924         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
19926 2002-01-30  Richard Henderson  <rth@redhat.com>
19928         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
19930 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
19932         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
19934 2002-01-30  Jason Merrill  <jason@redhat.com>
19936         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
19937         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
19938         (reg_save): Use DW_CFA_offset_extended_sf instead.
19940         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
19942 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
19944         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
19945         in cselib_lookup.
19947 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
19949         * rs6000.md ("*call_value_local32"): Remove constraints.
19950         ("*call_value_local64"): Same.
19951         ("*call_value_indirect_nonlocal_aix32"): Same.
19952         ("*call_value_nonlocal_aix32"): Same.
19953         ("*call_value_indirect_nonlocal_aix64"): Same.
19954         ("*call_value_nonlocal_aix64"): Same.
19955         ("*call_value_nonlocal_sysv"): Same.
19957 2002-01-29  Richard Henderson  <rth@redhat.com>
19959         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
19961 2002-01-29  Richard Henderson  <rth@redhat.com>
19963         * expr.c (force_operand): Ignore flag_pic for detecting pic
19964         address loads.
19965         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
19966         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
19967         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
19968         instead of open-coded loop.
19969         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
19970         be fixed when in use.
19972 2002-01-29  Richard Henderson  <rth@redhat.com>
19974         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
19975         * sched-rgn.c (propagate_deps): Update them.
19976         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
19977         clobbers list when either gets too long.
19979 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
19981         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
19982         and INDEX_REGS the same as GENERAL_REGS.
19983         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
19985 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
19987         * tree.c (build_nonstandard_integer_type): Correct prototype.
19989 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
19991         * config/s390/s390.md (movstrsico, movstrdix_64,
19992         movstrsix_31): Remove, replace by ...
19993         (movstrdi_short, movstrsi_short, movstrdi_long,
19994         movstrsi_long): ... these.  New.
19995         (movstrdi, movstrsi): Adapt.
19997         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
19998         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
19999         Remove unnecessary CC clobber.
20000         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20001         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20003         (divmoddi4): Don't partially initialize TImode register.
20005 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
20007         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20009 2002-01-29  Richard Henderson  <rth@redhat.com>
20011         * flow.c (print_rtl_and_abort): Remove.
20012         (print_rtl_and_abort_fcn): Remove.
20013         (verify_local_live_at_start): Use dump_bb instead.
20014         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20015         (verify_wide_reg_1): Return 2 on mode test failure.
20017 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
20019         PR c/3325, c/3326, c/2511, c/3347
20020         * c-decl.c (enum_decl_context): Remove BITFIELD.
20021         (grokdeclarator): Take bitfield width as an input.
20022         Ensure bitfields are given the correct type.  Perform
20023         bitfield width validation with build_bitfield_integer_type
20024         rather than waiting for finish_struct.
20025         (grok_typename, grok_typename_in_parm_context, start_decl,
20026         push_parmdecl, grokfield, start_function): Update calls to
20027         grokdeclarator.
20028         (build_bitfield_integer_type): New function.
20029         (finish_struct): Move bitfield validation to grokdeclarator
20030         and build_bitfield_integer_type.
20031         * tree.c (build_nonstandard_integer_type): New function.
20032         * tree.h (build_nonstandard_integer_type): New prototype.
20033 objc:
20034         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20036 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20038         PR other/1502:
20039         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20040         don't ignore unrecognized -W* options.
20041         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20042         * cpplib.h (cpp_handle_option): Adjust prototype.
20043         * c-decl.c (c_decode_options): Pass 0 as last argument to
20044         cpp_handle_option.
20046         PR c/2896:
20047         * gcc.c (cpp_unique_options): Split from cpp_options.
20048         (cpp_options): Source cpp_unique_options.
20049         (default_compilers): Use cpp_unique_options instead of cpp_options
20050         when used together with cc1_options.
20051         (static_specs): Add cpp_unique_options.
20052         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20053         when used together with cc1_options.
20055 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20057         * config/h8300/h8300-protos.h: Update the prototype of
20058         output_a_shift.
20059         * config/h8300/h8300.c (output_a_shift): Remove an unused
20060         argument 'insn'.  Remove redundant code.
20061         * config/h8300/h8300.md: Adust to the new prototype of
20062         output_a_shift.
20064 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20066         * config/h8300/h8300-protos.h: Update the prototypes of
20067         emit_a_rotate and expand_a_rotate.
20068         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20069         first argument to 'enum rtx_code'.
20070         (expand_a_rotate): Likewise.
20072 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20074         * config/h8300/h8300-protos.h: Update the prototype of
20075         output_simode_bld.
20076         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20077         'log2'.
20078         * config/h8300/h8300.md: Adjust to the new prototype.
20080 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20082         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20083         redundant code.
20085 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20087         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20088         is a fixed register before returning pic_offset_table_rtx.
20089         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20090         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20092 2002-01-28  Jason Merrill  <jason@redhat.com>
20094         * dwarf2.h: Sync with src version.
20096 2002-01-28  Paul Koning  <pkoning@equallogic.com>
20098         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20099         BT_FN_VOID_PTR_VAR.
20100         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20101         * doc/extend.texi (__builtin_prefetch): Update documentation:
20102         first argument is now const void ptr.
20104 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20106         * config/h8300/h8300-protos.h: Remove an unused prototype.
20108 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
20110         * toplev.c (lang_independent_init): Round up identifier size.
20112 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20114         * config.gcc: Revert previous change.
20116 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
20118         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20120 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20122         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20123         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
20124         other non-elf netbsd config frags.
20125         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20126         collect2 will does that.
20127         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20128         shared-lib frobbing will work.
20130 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20132         * config/h8300/h8300.h: Fix formatting.
20133         * config/h8300/h8300.md: Likewise.
20135 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
20137         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20138         the old, removed AAA_standards fix.
20139         * fixinc/fixincl.x: Rebuilt.
20141 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
20143         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20144         atexit call in crtbegin, hooked in after call to frame_dummy;
20145         register EH before registering __fini__start.
20147 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
20149         * config/rs6000/altivec.h: Remove spurious semicolons.
20151 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20153         * config/h8300/h8300.md: Replace dead bit extraction patterns
20154         with ones that work.
20156 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20158         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20159         if not STRICT_ALIGNMENT.
20160         * rtl.h (MEM_ALIGN): Likewise.
20162 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20164         * doc/invoke.texi (-fdump-translation-unit): Revert this
20165         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20167 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20169         * config/h8300/h8300.md (define_constants): New.
20170         (anonymous patterns) Use defined constants appropriately.
20172 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20174         * config/h8300/h8300.c (function_arg): Remove redundant code.
20176 2002-01-26  Richard Henderson  <rth@redhat.com>
20178         * sched-deps.c (reg_pending_uses_head): New.
20179         (reg_pending_barrier): Rename from reg_pending_sets_all.
20180         (find_insn_list): Don't mark inline.
20181         (find_insn_mem_list): Remove.
20182         (add_dependence_list, add_dependence_list_and_free): New.
20183         (flush_pending_lists): Replace only_write param with separate
20184         for_read and for_write parameters.  Update all callers.  Use
20185         add_dependence_list_and_free.
20186         (sched_analyze_1): Do not add reg dependencies here; just set
20187         the pending bits.  Use add_dependence_list.
20188         (sched_analyze_2): Likewise.
20189         (sched_analyze_insn): Replace schedule_barrier_found with
20190         reg_pending_barrier.  Add all dependencies for pending reg
20191         uses, sets, and clobbers.
20192         (sched_analyze): Don't add reg dependencies for calls, just
20193         set pending bits.  Use regs_invalidated_by_call.  Treat
20194         sched_before_next_call as a normal list, not a fake insn.
20195         (init_deps): No funny init for sched_before_next_call.
20196         (free_deps): Free pending mems lists.  Don't zero reg_last.
20197         (init_deps_global): Init reg_pending_uses.
20198         (finish_deps_global): Free it.
20199         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
20200         (find_insn_mem_list): Remove.
20201         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20202         (propagate_deps): Use them.  Zero temp mem lists.
20204 2002-01-26  Richard Henderson  <rth@redhat.com>
20206         * Makefile.in (CRTSTUFF_CFLAGS): New.
20207         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20208         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20209         crtstuff.c instead of alpha assembly version.
20210         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20211         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
20212         not FORCE_{INIT,FINI}_SECTION_ALIGN.
20213         (__do_global_dtors_aux): Mark used.
20214         (frame_dummy, __do_global_ctors_aux): Mark used.
20215         (fini_dummy, init_dummy): Remove.
20217         * config/alpha/crtbegin.asm: Remove file.
20218         * config/alpha/crtend.asm: Remove file.
20219         * config/alpha/t-crtbe: Remove file.
20220         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20221         (LINK_EH_SPEC): New.
20223         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20224         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
20225         calling constructors.
20226         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20228         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20229         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20230         CRT_END_INIT_DUMMY hack.
20231         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20232         FORCE_{INIT,FINI}_SECTION_ALIGN.
20234         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20235         FORCE_{INIT,FINI}_SECTION_ALIGN.
20237         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20238         invocation sequence.
20239         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20241         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20242         (FORCE_CODE_SECTION_ALIGN): New.
20244 2002-01-26  Richard Henderson  <rth@redhat.com>
20246         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20248 2002-01-26  Richard Henderson  <rth@redhat.com>
20250         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20251         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20253 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20255         * config/h8300/h8300.md: Remove bit extraction patterns that
20256         cannot be triggered.
20257         Restrict each bit extraction pattern to a variant on which the
20258         pattern is tested.
20260 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
20262         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20264 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20266         * config/h8300/h8300.md: Remove bit test patterns that cannot
20267         be triggered.
20268         Restrict each bit test pattern to a variant on which the
20269         pattern is tested.
20271 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20273         * builtins.c (expand_builtin_strncat): Remove redundant check for
20274         INTEGER_CST.
20276 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20278         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20279         default setting.
20280         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20281         existing setting.
20283 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20285         * dbxout.c (dbxout_init): Use assemble_name rather than just
20286         stripping off the first character.
20287         (dbxout_source_file): Likewise.
20289 2002-01-25  DJ Delorie  <dj@redhat.com>
20291         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20292         using rtx_equal_p, not by comparing pointers.
20294 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
20296         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20297         for PIC_OFFSET_TABLE_REGNUM.
20298         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20300 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20302         * config.gcc (x86_64-*-freebsd*): New target.
20303         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20304         value.
20305         (i[34567]86-*-freebsd*): Don't include svr4.h.
20306         * config/i386/freebsd64.h: New file.
20308 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
20310         * config/alpha/x-vms (version): Make static.
20312         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20313         in previous checkin.
20315         * Makefile.in (install-headers-cp): New target.
20316         * config.gcc (alpha-dec-*vms*): Install headers with
20317         install-headers-cp
20319 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
20321         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20322         avoid it's copies.
20324 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20326         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20327         of compare_tree_int.
20328         (expand_builtin_strncat): Likewise.
20329         * c-decl.c (finish_struct): Use tree_low_cst.
20330         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20331         * tree.c (compare_tree_int): Likewise.
20333 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
20335         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20336         adjustments even if they are implemented by more than two insns.
20338 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
20340         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20341         * df.h (struct ref): Kill B.
20342         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20344         * basic-block.h (PROP_EQUAL_NOTES): New flag.
20345         * flow.c (propagate_one_insn): Use it.
20346         (mark_used_regs): Handle NIL.
20348 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20350         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20351         to help folding.
20353 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
20355         * rs6000.md (prefetch): Make address V4SI mode so that the address
20356         is restricted to legitimate form for instruction.
20358 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
20360         * doc/install.texi (xtensa-*-elf): New target.
20361         (xtensa-*-linux*): New target.
20362         * doc/contrib.texi: Add myself.
20364 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
20366         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20367         purpose register to hold an SImode (or smaller) value.
20369 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
20371         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20372         registry only.
20373         * crtstuff.c: Likewise.
20375 2002-01-25  Kazu Hirata  <kazu@hxi.com>
20377         * config/h8300/h8300.md (negation patterns): Tighten
20378         predicates to register_operand.
20380 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
20382         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20383         mode, not Pmode.
20385         * builtins.c (expand_builtin_prefetch): Same.
20387 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20389         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20390         modes.
20392 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20394         * config/h8300/h8300.c (print_operand): Remove support for
20395         operand character 'A'.
20396         * config/h8300/h8300.md (three anonymous patterns): Replace
20397         operand character 'A' with either 'T' or 'S'.
20399 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20401         * config/h8300/h8300.c (print_operand): Remove support for
20402         operand character 'U'.
20404 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
20406         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20408 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
20410         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20411         values to be assigned to the stack pointer.
20413 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20415         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20416         to const_double needs to be done right for big-endian systems.
20418 2002-01-24  Jason Merrill  <jason@redhat.com>
20420         PR c++/2432
20421         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20422         to can_throw_internal.
20424 2002-01-23  Richard Henderson  <rth@redhat.com>
20426         * fold-const.c (fold): Change UINT_MAX test to check vs precision
20427         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
20429 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20431         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20432         (symGOT2reg): Use them, then set as GOT value as unchanging.
20433         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
20434         as a temporary, if possible.
20435         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
20436         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20438 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20440         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20441         accept to accept 0x80 as operands[2].
20443 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20445         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20447 2002-01-23  Richard Henderson  <rth@redhat.com>
20449         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20451 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
20453         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20454         (parmlist_or_identifiers_1): Verify that only a parmlist follows
20455         an attribute.
20457 2002-01-23  Richard Henderson  <rth@redhat.com>
20459         * expr.c (move_by_pieces_1): Extend size before negation.
20461         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20462         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20463         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20464         * config/m68k/t-m68kelf: Likewise.
20466 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
20468         * config/xtensa/elf.h: New file.
20469         * config/xtensa/lib1funcs.asm: New file.
20470         * config/xtensa/lib2funcs.S: New file.
20471         * config/xtensa/linux.h: New file.
20472         * config/xtensa/t-xtensa: New file.
20473         * config/xtensa/xtensa-config.h: New file.
20474         * config/xtensa/xtensa-protos.h: New file.
20475         * config/xtensa/xtensa.c: New file.
20476         * config/xtensa/xtensa.h: New file.
20477         * config/xtensa/xtensa.md: New file.
20478         * config.gcc (xtensa-*-elf*): New target.
20479         (xtensa-*-linux*): New target.
20480         * cse.c (canon_hash): Compare rtx pointers instead of register
20481         numbers.  This is required for the Xtensa port.
20482         * integrate.c (copy_insn_list): Handle case where the static
20483         chain is in memory and the memory address has to be copied to
20484         a register.
20485         * doc/invoke.texi (Option Summary): Add Xtensa options.
20486         (Xtensa Options): New node.
20487         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20489 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20491         * diagnostic.c (internal_error): Do ICE suppression only
20492         when ENABLE_CHECKING is not defined.
20494         * c-typeck.c (require_complete_type): Return error_mark_node
20495         if type is error_mark_node.
20497 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
20499         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20500         -Os and issue a warning.
20502 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20504         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20505         current (lack of) need for host configuration by hand.
20507         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20508         references.  Documentation of some target macros moved from
20509         hostconfig.texi to tm.texi.
20511 2002-01-23  Will Cohen  <wcohen@redhat.com>
20513         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20514         defined.
20516 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20518         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20519         operand[3].
20521 2002-01-23  Jason Merrill  <jason@redhat.com>
20523         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20525         * function.c (assign_parms): Don't put args of inline functions
20526         into registers when not optimizing.
20528 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
20530         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20531         (prologue_use): New pattern.
20532         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20533         preference to gen_rtx_USE.
20534         (thumb_expand_prologue): Use gen_prologue_use in preference to
20535         gen_rtx_USE.
20536         (thumb_expand_epilogue): Use gen_prologue_use in preference to
20537         gen_rtx_USE.
20539 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
20541         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20543 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20545         PR c/3504
20546         * doc/extend.texi: Correct documentation of __alignof__.
20548 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
20550         * params.h: Rename arguments of DEFPARAM so that it will be
20551         recognized as a translation keyword.
20553 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20555         * extend.texi: Document altivec functions.
20556         Fix N-bit adjectives in X86 builtin documentation.
20558 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20560         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20561         auto_inc_dec values.
20563 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
20565         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20566         after backslash.
20567         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20569 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20571         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20573 2002-01-22  Richard Henderson  <rth@redhat.com>
20575         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20576         copy_insn not copy_rtx.
20578 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
20580         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20581         "nonzero" as that might add "1" bits.  Ensure "constop" is
20582         properly sign extened.
20583         (force_to_mode): Tweak for sign extended constop.
20585 2002-01-22  Richard Henderson  <rth@redhat.com>
20587         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20588         for_each_rtx instead of assuming we're already looking at the MEM.
20589         (split_small_symbolic_mem_operand): Likewise.
20590         * config/alpha/alpha.h (PREDICATE_CODES): Update.
20591         * config/alpha/alpha.md (small symbolic memory splitters): Update.
20593 2002-01-22  Richard Henderson  <rth@redhat.com>
20595         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20596         sequence number for the literal.
20597         (divmoddi_internal_er): Likewise.
20599 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20601         PR java/4972
20602         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20603         in LIBICONV variable.
20604         * configure: Regenerated.
20606 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
20608         * dependence.c (build_def_use): Remove array_idx.
20610         * dwarfout.c (last_filename): Remove.
20611         (output_compile_unit_die): Remove last_filename.
20613 2002-01-22  Roger Sayle  <roger@eyesopen.com>
20614             Richard Henderson  <rth@redhat.com>
20616         PR opt/3640
20617         * fold-const.c (fold): Optimize unsigned comparisons against
20618         UINT_MAX (and similar unsigned constants).
20620 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
20622         * Makefile.in (loop.o): Depend on OPTABS_H.
20623         * loop.c (emit_prefetch_instructions): Check the prefetch operand
20624         against the predicate.
20626         PR target/5379
20627         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20628         for the address operand.
20630 2002-01-22  Richard Henderson  <rth@redhat.com>
20632         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20634 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20636         PR other/5450
20637         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20638         preprocessor flags.
20640 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
20642         * config.gcc (x86_64-*-netbsd*): New target.
20643         * config/i386/netbsd64.h: New file.
20645 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20647         * regrename.c (kill_value): Fix typo.
20649 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20651         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
20653         * config/rs6000/rs6000.h: Same.
20655         * function.c (instantiate_virtual_regs): Remove
20656         STARTING_FRAME_PHASE.
20657         (assign_stack_local_1): Same.
20658         Calculate frame phase.
20660 2002-01-22  Nick Clifton  <nickc@redhat.com>
20662         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20663         variable declaration to outer scope in order to simplify
20664         future extensions.
20665         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20666         arm_hard_regno_mode_ok.
20667         * config/arm/arm-protos.h: Add a prototype for
20668         arm_hard_regno_mode_ok.
20669         * config/arm/arm.c (soft_df_operand): Remove now redundant
20670         check for DImode values using IP_REGNUM.
20671         (nonimmediate_soft_df_operand): Remove now redundant check for
20672         DImode values using IP_REGNUM.
20673         (arm_hard_regno_mode_ok): New function. New check: make sure
20674         that DImode values are not stored in IP_REGNUM.
20676         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20677         note with a USE.
20678         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20680 2002-01-22  Jason Merrill  <jason@redhat.com>
20682         * c-semantics.c (genrtl_compound_stmt): Only check nesting
20683         consistency if this COMPOUND_STMT is scoped.
20685 2002-01-22  Kazu Hirata  <kazu@hxi.com>
20687         * predict.c: Fix formatting.
20688         * print-tree.c: Likewise.
20689         * protoize.c: Likewise.
20690         * real.h: Likewise.
20691         * rtl.h: Likewise.
20692         * sbitmap.h: Likewise.
20693         * scan.c: Likewise.
20694         * sched-deps.c: Likewise.
20695         * sched-vis.c: Likewise.
20696         * sdbout.c: Likewise.
20697         * sibcall.c: Likewise.
20698         * ssa.c: Likewise.
20699         * ssa-ccp.c: Likewise.
20700         * ssa-dce.c: Likewise.
20701         * stmt.c: Likewise.
20702         * stor-layout.c: Likewise.
20703         * system.h: Likewise.
20705 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20707         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
20708         if fits in bounds of base type.
20710         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
20711         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
20712         (add_bound_info, default): If can't find a context, make a
20713         SAVE_EXPR.
20714         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
20716 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
20718         * c-typeck.c (parser_build_binary_op): If result from
20719         build_binary_op is ERROR_MARK just return error_mark_node without
20720         further processing.
20722 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
20724         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
20725         Split a.out-specific bits into...
20726         * config/netbsd-aout.h: ...this.
20727         * config/netbsd-elf.h: New file.
20728         * config/alpha/netbsd-elf.h: Remove.
20729         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
20730         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
20731         (STARTFILE_SPEC): Remove redundant definition.
20732         (ENDFILE_SPEC): Likewise.
20733         (LINK_SPEC): Likewise.
20734         (CPP_SPEC): Likewise.
20735         (ASM_SPEC): Likewise.
20736         (LIB_SPEC): Likewise.
20737         (SWITCH_TAKES_ARG): Likewise.
20738         (TARGET_MEM_FUNCTIONS): Likewise.
20739         (CPP_PREDEFINES): Redefine.
20740         (ASM_FINAL_SPEC): Remove redefinition.
20741         (ASM_COMMENT_START): Redefine.
20742         (FUNCTION_PROFILER): Define.
20743         (TARGET_VERSION): Redefine.
20744         Comment and formatting cleanup.
20745         * config/i386/netbsd.h: Include <netbsd-aout.h>.
20746         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
20747         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
20748         big- or little-endian.
20749         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
20750         * config.gcc (*-*-netbsd*): Add definitions common to all
20751         NetBSD configs.
20752         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
20753         gnu_ld definitions.  Add netbsd-elf.h to and remove
20754         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
20755         tmake_file, and don't lose previous tmake_file contents.
20756         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
20757         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
20758         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
20759         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
20760         (mipsel-*-netbsd*): Rename this to...
20761         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
20762         mips/little.h to tm_file for mips*el-*.
20763         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
20764         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
20765         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
20767 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20769         * pa-protos.h (reg_before_reload_operand): New function prototype.
20770         * pa.c (reg_before_reload_operand): New function implementation.
20771         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
20772         contraints to "*m".
20774 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
20776         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
20778 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20780         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
20781         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
20782         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
20783         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
20784         (ENDFILE_SPEC): Undefine.
20785         (STARTFILE_SPEC): Redefine for PA.
20787 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
20789         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
20791 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
20793         * config.gcc: Add entries to supported PowerPC --with-cpu
20794         types.
20796 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
20798         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
20799         true for 64-bit mode only SSE registers in 32-bit mode.
20801 2002-01-21  Kazu Hirata  <kazu@hxi.com>
20803         * unwind-dw2.c: Fix formatting.
20804         * unwind-dw2-fde.c: Likewise.
20805         * unwind-dw2-fde.h: Likewise.
20806         * unwind-pe.h: Likewise.
20807         * varasm.c: Likewise.
20808         * varray.h: Likewise.
20810 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
20812         Remove workaround for register stack overwrite bug in mmix.
20813         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
20814         support for TARGET_REG_STACK_FILL_BUG.
20815         * config/mmix/mmix.h: Remove member has_call_without_parameters.
20816         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
20817         Delete.
20818         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
20819         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
20820         -mno-reg-stack-fill-bug-workaround.
20821         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
20822         machine member has_call_without_parameters.
20823         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
20824         -mreg-stack-fill-bug-workaround and
20825         -mno-reg-stack-fill-bug-workaround.
20826         (MMIX Options): Ditto.
20828 2002-01-21  Kazu Hirata  <kazu@hxi.com>
20830         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
20831         as appropriate.
20832         Remove redundant code.
20834 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
20836         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
20837         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20838         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20839         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
20840         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
20841         out target macro definitions and non-target-specific comments
20842         mostly taken from old versions of the manual.
20844 2002-01-20  Kazu Hirata  <kazu@hxi.com>
20846         * config/h8300/h8300.h: Fix comment formatting.
20847         * config/ia64/aix.h: Likewise.
20848         * config/ia64/ia64-protos.h: Likewise.
20849         * config/ia64/ia64.c: Likewise.
20850         * config/ia64/ia64.h: Likewise.
20851         * config/ia64/ia64intrin.h: Likewise.
20852         * config/ia64/linux.h: Likewise.
20853         * config/ia64/unwind-aix.c: Likewise.
20854         * config/ia64/unwind-ia64.c: Likewise.
20856 2002-01-20  Kazu Hirata  <kazu@hxi.com>
20858         * config/h8300/h8300.c: Revise comments about shift code.
20860 2002-01-20  Kazu Hirata  <kazu@hxi.com>
20862         * config/h8300/h8300.c (function_arg): Update a comment.
20864 2002-01-20  Kazu Hirata  <kazu@hxi.com>
20866         * config/h8300/h8300.md: Update the comments at the beginning
20867         of the file.
20869 2002-01-20  Kazu Hirata  <kazu@hxi.com>
20871         * config/i370/i370.c: Fix comment formatting.
20872         * config/i370/i370.h: Likewise.
20873         * config/i370/i370.md: Likewise.
20874         * config/i370/linux.h: Likewise.
20876 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20878         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
20880         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
20881         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
20882         in incomplete case.
20884 2002-01-20  Graham Stott  <grahams@redhat.com>
20886         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
20888 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20890         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
20892 2002-01-19  Tom Rix  <trix@redhat.com>
20894         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
20896 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
20898         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
20900         * function.c (assign_stack_local_1): Adjust x_frame_offset with
20901         STARTING_FRAME_PHASE.
20902         (STARTING_FRAME_PHASE): New.
20903         (instantiate_virtual_regs): Check saneness of
20904         STARTING_FRAME_PHASE.
20906         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
20908 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
20910         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
20912 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20914         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
20915         be used for bootstrapping GCC 3.0.
20917 2002-01-18  Kazu Hirata  <kazu@hxi.com>
20919         * config/h8300/h8300.md: Fix an insn length.
20921 2002-01-18  Kazu Hirata  <kazu@hxi.com>
20923         * bitmap.h: Fix comment formatting.
20924         * combine.c: Likewise.
20925         * cppfiles.c: Likewise.
20926         * c-pragma.h: Likewise.
20927         * c-typeck.c: Likewise.
20928         * df.c: Likewise.
20929         * dwarf2out.c: Likewise.
20930         * function.c: Likewise.
20931         * gcc.c: Likewise.
20932         * genattrtab.c: Likewise.
20933         * gthr-win32.h: Likewise.
20934         * haifa-sched.c: Likewise.
20935         * predict.c: Likewise.
20936         * rtlanal.c: Likewise.
20937         * rtl.h: Likewise.
20938         * unwind-dw2-fde.h: Likewise.
20939         * unwind-pe.h: Likewise.
20940         * vmsdbgout.c: Likewise.
20942 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20944         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
20945         if type_required and passed decl.
20947 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
20949         * config.gcc (cpu_type): Include altivec.h in powerpc
20950         extra_headers.
20951         Same for darwin.
20953         * config/rs6000/altivec.h: New.
20955 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
20957         * doc/install.texi (*-ibm-aix*): Update assembler and exception
20958         handling information.
20959         * doc/trouble.texi (Interoperation): Add libstdc++ information
20960         for AIX.
20961         (Misunderstandings): Add template instantiation and static template
20962         member information for AIX.
20964 2002-01-17  Jason Merrill  <jason@redhat.com>
20966         * dbxout.c (dbxout_type): Support const and volatile.
20968         * except.c (add_partial_entry): Remove backwards compatibility code.
20969         (end_protect_partials): Likewise.
20971 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
20973         * config/ia64/ia64.md (prologue_use): New.
20974         * config/ia64/ia64.c (ia64_expand_prologue): Use
20975         gen_prologue_use instead of gen_rtx_USE.
20976         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
20977         as CODE_FOR_pred_rel_mutex.
20978         (ia64_sched_reorder2): Likewise.
20980 2002-01-16  Eric Christopher  <echristo@redhat.com>
20982         * config/mips/r3900.h: Reformat.
20983         (SUBTARGET_CPP_SIZE_SPEC): Remove.
20984         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
20985         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
20986         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
20987         * config/mips/t-elf: Remove mips3 multilib.
20989 2002-01-16  H.J. Lu <hjl@gnu.org>
20991         * config/mips/linux.h: Include "mips/abi64.h".
20993 2002-01-16  H.J. Lu <hjl@gnu.org>
20995         * config/mips/t-linux: New.
20997         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
20999         * config/mips/linux.h: Don't include "gofast.h".
21000         (INIT_SUBTARGET_OPTABS): Removed.
21002 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21004         * config/h8300/h8300-protos.h: Replace emit_a_shift with
21005         output_a_shift.
21006         * config/h8300/h8300.c: Likewise.
21007         * config/h8300/h8300.md: Likewise.
21009 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21011         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21012         spaces after an opcode name.
21013         (pushqi1_h8300hs): Likewise.
21014         (pushhi1_h8300hs): Likewise.
21016 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21018         * doc/extend.texi: Replace "option" with "attribute"
21019         appropriately.
21021 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21023         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21024         (and:DI () (const_int -8)).
21025         (split_small_symbolic_mem_operand): Split
21026         (mem (and:DI () (const_int -8)).
21028 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21030         PR target/5309:
21031         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21032         same way as TYPE_IMUL.
21033         (ultrasparc_sched_reorder): Likewise.
21034         * config/sparc/sparc.md (type): Add comment to update
21035         ultrasparc_sched_reorder when making changes.
21037 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21039         * doc/invoke.texi: Change the dump file name of block
21040         reordering pass from 28.bbro to 29.bbro.
21041         Mention -dk option.
21043 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21045         * i386.md (minsf splitter): Fix pasto.
21047 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21049         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21050         to frame pointer initialisation instruction.
21051         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21052         initialisation instruction.
21053         (soft_df_operand): Do not accept the IP register.
21054         (nonimmediate_soft_df_operand): Do not accept the IP register.
21056 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21058         PR target/5357:
21059         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21060         MASK_V8 being both set.
21062 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
21064         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21065         insn for GOT register; add REG_MAYBE_DEAD notes instead.
21066         config/s390/s390.md (call, call_value): Add GOT register to
21067         CALL_INSN_FUNCTION_USAGE where needed.
21068         (call_exp, call_value_exp): New.
21070 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21072         * config/arm/arm.c: General formatting tidy up.
21074 2002-01-16  Graham Stott  <grahams@redhat.com>
21076         * calls.c (try_to_integrate): Use "(size_t)" intermediate
21077         cast and when casting an integer literal to "rtx" pointer.
21078         (expand_call): Likewise.
21079         * flow.c (try_pre_increment): Likewise.
21080         (find_use_as_address): Likewise.
21081         * integrate.c (expand_iline_function): Likewise.
21082         * regmove.c (try_auto_increment): Likewise.
21084 2002-01-16  Graham Stott  <grahams@redhat.com>
21086         * sched-rgn.c (passed): Use sbitmap_free.
21087         (header): Likewise.
21088         (inner): Likewise.
21089         (in_queue): Likewise.
21090         (in_stack): Likewise.
21092 2002-01-15  Eric Christopher  <echristo@redhat.com>
21094         * flow.c (propagate_one_insn): Change to use fatal_insn.
21096 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21098         * expmed.c (extract_fixed_bit_field): Remove unused code.
21099         * system.h: Poison SLOW_ZERO_EXTEND.
21100         * doc/tm.texi: Remove.
21101         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21102         * config/arm/arm.h: Likewise.
21103         * config/avr/avr.h: Likewise.
21104         * config/clipper/clipper.h: Likewise.
21105         * config/convex/convex.h: Likewise.
21106         * config/d30v/d30v.h: Likewise.
21107         * config/dsp16xx/dsp16xx.h: Likewise.
21108         * config/elxsi/elxsi.h: Likewise.
21109         * config/fr30/fr30.h: Likewise.
21110         * config/h8300/h8300.h: Likewise.
21111         * config/i370/i370.h: Likewise.
21112         * config/i386/i386.h: Likewise.
21113         * config/m68k/m68k.h: Likewise.
21114         * config/mips/mips.h: Likewise.
21115         * config/ns32k/ns32k.h: Likewise.
21116         * config/pdp11/pdp11.h: Likewise.
21117         * config/pj/pj.h: Likewise.
21118         * config/s390/s390.h: Likewise.
21119         * config/sh/sh.h: Likewise.
21120         * config/stormy16/stormy16.h: Likewise.
21121         * config/v850/v850.h: Likewise.
21122         * config/vax/vax.h: Likewise.
21123         * config/we32k/we32k.h: Likewise.
21125 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21127         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21128         (altivec_lvsl): Change constraint to b.
21129         (altivec_lvsr): Same.
21130         (altivec_lvebx): Same.
21131         (altivec_lvehx): Same.
21132         (altivec_lvewx): Same.
21133         (altivec_lvxl): Same.
21134         (altivec_lvx): Same.
21135         (altivec_stvx): Add parallel.
21136         (altivec_stvxl): Same.
21137         (altivec_stvehx): Same.
21138         (altivec_stvebx): Same.
21139         (altivec_stvebx): Same.
21141 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21143         * config.gcc: Change altivec.h to altivec-defs.h.
21145         * config/rs6000/altivec.h: Delete.
21147         * config/rs6000/altivec-defs.h: Add.
21149 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21151         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21152         and UMOD modes.
21154         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21155         less than or equal to eight bytes.
21157         * vax.md (andsi3): Remove constraints and change SET destination
21158         operand type to nonimmediate_operand.
21159         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
21160         when it is a CONST_INT.
21162 2002-01-15  Jason Merrill  <jason@redhat.com>
21164         * c-common.def (FILE_STMT): New code.
21165         * c-common.c (statement_code_p): It's a statement.
21166         * c-common.h (stmt_tree_s): Add x_last_filename.
21167         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21168         (last_expr_filename): New macro.
21169         * c-semantics.c (begin_stmt_tree): Initialize it.
21170         (add_stmt): If the filename changed, also insert a
21171         FILE_STMT.
21172         (expand_stmt): Handle seeing one.
21174 2002-01-15  Eric Christopher  <echristo@redhat.com>
21176         * flow.c (propagate_one_insn): Add error message and print out
21177         insn for debugging.
21179 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21181         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21182         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21183         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21184         TRAMPOLINE_ALIGNMENT.
21185         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
21186         to be in bits.
21187         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21188         PCC_BITFIELD_TYPE_MATTERS.
21189         * config/interix.h (STDC_VALUE): Remove.  Use
21190         STDC_0_IN_SYSTEM_HEADERS.
21191         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21192         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21193         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21195 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21197         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21198         not work on this platform currently.
21200 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21202         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21203         readonly_warning in _().
21205 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
21207         * gcc.c (delete_if_ordinary): Backout previous change.
21209 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21211         * config/h8300/h8300.c (print_operand): Remove support for
21212         unused operand characters.
21214         * read-rtl.c: Fix formatting.
21215         * real.c: Likewise.
21216         * recog.c: Likewise.
21217         * regclass.c: Likewise.
21218         * regmove.c: Likewise.
21219         * reg-stack.c: Likewise.
21220         * reload1.c: Likewise.
21221         * rtlanal.c: Likewise.
21223 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21225         * config/i386/i386.c: Fix formatting.
21227 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
21229         * c-typeck.c (process_init_element): Don't save_expr
21230         COMPOUND_LITERAL_EXPR if just its initializer will be used.
21232 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
21234         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21235         emit optional traceback table if optimize_size or TARGET_ELF.
21236         * config/rs6000/rs6000.md (prefetch): New.
21238 2002-01-15  Andreas Jaeger  <aj@suse.de>
21240         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21242 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21244         * mips-tfile.c: Fix formatting.
21246 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21248         * unroll.c (final_reg_note_copy): Fix previous commit.
21250 2002-01-14  Kazu Hirata  <kazu@hxi.com>
21252         * config/h8300/h8300-protos.h: Remove the prototype for
21253         eq_operator.
21254         * config/h8300/h8300.c (eq_operator): Remove.
21256 2002-01-14  Richard Henderson  <rth@redhat.com>
21258         * config/i386/i386.md (prefetch): Tidy.
21259         (prefetch_3dnow): Fix locality operand.
21261 2002-01-14  Richard Henderson  <rth@redhat.com>
21263         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21264         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21266 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
21268         * reload1.c (reload_combine): Pass reg_sum replacement through
21269         copy_rtx in loop performing multiple changes.
21271 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
21273         * except.c (remove_unreachable_regions): New.
21274         (free_eh_status): Clear exception_handler_labels.
21275         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21276         (find_exception_handler_labels): Don't add the same label more than
21277         once.
21278         (remove_exception_handler_label): Don't die if
21279         find_exception_handler_labels hasn't been called for the current
21280         function yet.
21282 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
21284         * toplev.c (rest_of_compilation): Rebuild jump labels after
21285         gcse.
21287 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
21289         * doc/extend.texi: Move documentation of X86 built-in functions
21290         here.
21291         * doc/invoke.texi: From here.
21292         * doc/sourcebuild.texi: Document location of documentation for
21293         machine built-in functions.
21295 2002-01-13  Christopher Faylor  <cgf@redhat.com>
21297         * cppfiles.c (TEST_THRESHOLD): New macro.
21298         (SHOULD_MMAP): Ditto.
21299         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21300         be used.
21302 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
21304         * unroll.c (final_reg_note_copy): Properly handle
21305         REG_LABEL
21306         (unroll_loops): Fix LOOP_CONDITION heuristics.
21308 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
21310         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21311         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21313 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21315         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21316         threaded loop.
21318 2002-01-14  Tom Rix  <trix@redhat.com>
21320         * config/rs6000/rs6000.md: Fix typo with sradi.
21322 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
21324         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21325         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21326         (clrstrdi, clrstrsi): Adapt callers.
21328         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21330         (movti splitter): Never use register 0 as base register.
21332 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
21334         * combine.c (simplify_shift_const): Always generate new rtx
21335         for shift expression instead of reusing given expression.
21337 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21339         * config/alpha/alpha.c (alpha_expand_mov): Don't call
21340         alpha_legitimize_address unless mode is Pmode.
21342 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
21344         * doc/md.texi (Modifiers): Document the '*' constraint for the
21345         user.
21347         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21348         * doc/extend.texi (Function Attributes): 'interrupt' is valid
21349         for xstormy16 too.
21351 2002-01-13  Richard Henderson  <rth@redhat.com>
21353         * reload.c (find_reloads): Use a hard reg destination as reload reg
21354         for an input reload of the source.
21356 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21358         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21359         more generic.
21361 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
21363         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21364         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21366         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21368 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21370         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21372 2002-01-12  Tom Rix  <trix@redhat.com>
21374         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21375         TARGET_POWERPC64.
21377 2002-01-12  Richard Henderson  <rth@redhat.com>
21379         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21381         * doc/invoke.texi: Update Alpha options.
21383         * doc/invoke.texi: Update i386 built-in function lists.
21385 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21387         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21388         referencing outside.
21390 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21392         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21393         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21394         offsets, and change line folding.
21395         * optabs.c (expand_binop): Remove warnings.
21396         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21398 2002-01-12  Graham Stott <grahams@redhat.com>
21400         * attribs.c (handle_deprecated_attribute): constify WHAT.
21401         * diagnostic.c (warn_deprecated_use): Add braces, fixes
21402         dangling else warning and constify WHAT.
21403         * except.h (struct function, struct inline_remap): Move
21404         struct tag forward defs before all prototypes.
21405         (duplicate_eh_regions): Whitespace.
21407 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
21409         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21410         MODE_BASE_REG_CLASS.
21411         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21413 2002-01-12  Richard Henderson  <rth@redhat.com>
21415         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21416         (ix86_expand_vector_move): New.
21417         (bdesc_2arg): Remove andps, andnps, orps, xorps.
21418         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
21419         Remove old prefetch builtins.  Special case the logicals removed above.
21420         (ix86_expand_builtin): Likewise.
21421         (safe_vector_operand): Use V4SFmode, not TImode.
21422         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
21423         (ix86_expand_timode_binop_builtin): New.
21424         * config/i386/i386-protos.h: Update.
21425         * config/i386/i386.h (enum ix86_builtins): Update.
21426         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21427         Use ix86_expand_vector_move in vector move expanders.
21428         (movti_internal, movti_rex64): Add xorps alternative.
21429         (sse_clrv4sf): Rename and adjust from sse_clrti.
21430         (prefetch): Don't work so hard.
21431         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21432         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21433         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21435 2002-01-11  Richard Henderson  <rth@redhat.com>
21437         * config/i386/mmintrin.h: New file.
21438         * config/i386/xmmintrin.h: New file.
21439         * config.gcc (i?86-*-*): Add extra_headers.
21440         * simplify-rtx.c (simplify_unary_operation): Handle saturating
21441         truncation codes.
21442         (simplify_binary_operation): Handle saturating arithmetic codes.
21443         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21444         not the lowpart subreg.
21445         (ix86_expand_builtin): Return a TImode dummy register instead of 0
21446         on error.
21447         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21449 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21451         * conflict.c (conflict_graph_compute): Free regsets when finished.
21452         * ssa.c (compute_coalesced_reg_partition): Likewise.
21454 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21456         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21457         every where we allocate a register.
21459 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21461         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21462         * lcm.c (compute_earliest, compute_farthest): Likewise.
21464 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21466         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21468 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21470         * doc/rtl.texi (Insns): Fix 2 typos.
21472 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
21474         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
21475         options.  Use @table @gcctabopt for MMIX options.  Add index
21476         entries for MMIX options.  Start new paragraph with first
21477         heading of the machine-dependent options.
21479 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21481         PR other/5299
21482         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21483         * combine.c (force_to_mode): Same.
21484         * reload1.c (clear_reload_reg_in_use): Same.
21486 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
21488         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21489         and 'subtargets'.
21491 2002-01-11  Andreas Jaeger  <aj@suse.de>,
21492             Brad Lucier <lucier@math.purdue.edu>
21494         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21495         mcpu.
21497 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
21499         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21500         Protect with IN_LIBGCC.
21501         (LINK_EH_SPEC): Add required trailing space.
21503 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
21505         * c-tree.h: Move function declarations so that they are listed
21506         under the filename which contains them.
21507         (check_identifier, finish_decl_top_level,
21508         lookup_name_current_level_global, shadow_record_fields): Remove.
21510 2002-01-11  Andreas Jaeger  <aj@suse.de>
21512         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21513         march.
21515 2002-01-10  Richard Henderson  <rth@redhat.com>
21517         * config/alpha/alpha.c (print_operand): Add 'J'.
21518         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21519         new operand with the sequence number for the lituse.  When splitting
21520         the insns, use gen_movdi_er_high_g and generate a sequence number.
21521         (gen_movdi_er_high_g): Print the sequence number if non-zero.
21523 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
21525         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21526         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21527         stvxl.
21528         (altivec_expand_builtin): Same.
21529         (altivec_expand_stv_builtin): New.
21531         * config/rs6000/rs6000.h (rs6000_builtins): Same.
21533         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21534         ("altivec_lvehx"): New.
21535         ("altivec_lvewx"): New.
21536         ("altivec_lvxl"): New.
21537         ("altivec_lvx"): New.
21538         ("altivec_stvx"): New.
21539         ("altivec_stvebx"): New.
21540         ("altivec_stvehx"): New.
21541         ("altivec_stvewx"): New.
21542         ("altivec_stvxl"): New.
21544 2002-01-10  Richard Henderson  <rth@redhat.com>
21546         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21547         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
21548         care not to delete instructions twice.
21550 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21552         * toplev.c: Don't declare environ (it's not used anywhere).
21553         * configure.in: Don't check for declaration of environ.
21554         * config/i386/xm-mingw32.h: Don't #define environ.
21555         * config.in, configure: Regenerate.
21557 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21559         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21560         * configure: Regenerate.
21562         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21563         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21564         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21565         alpha/xm-vms.h.
21566         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21567         LIMITS_H_TEST here, not in m68k/x-next.
21568         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21569         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21571         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21572         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21573         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
21575         * config/i386/x-djgpp: Renamed i386/t-djgpp.
21576         * config/m88k/x-dolph: Renamed m88k/t-dolph.
21577         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21578         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
21579         replacement of quadlib.asm with quadlib.c.
21581         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21582         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21583         config/rs6000/xm-beos.h: Delete file.
21585         * config.gcc: Update to match above changes.
21587 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21589         * config/h8300/h8300.h: Fix comment typos.
21590         * config/h8300/h8300.md: Likewise.
21591         * config/h8300/lib1funcs.asm: Likewise.
21593 2002-01-10  Dale Johannesen  <dalej@apple.com>
21595         PR optimization/5269
21596         * unroll.c (precondition_loop_p): Make *increment be the correct
21597         sign when n_iterations known, to avoid confusing caller.
21599 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21601         * doc/extend.texi (deprecated): Fix a typo.
21603 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21605         * basic-block.h (update_br_prob_note): Declare.
21606         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21607         (try_forward_edges): Care negative frequencies and update note.
21608         (outgoing_edges_match): Tweek conditional merging heuristics.
21609         (try_crossjump_to_edge): use update_br_prob_note.
21610         * cfglayout.c (fixup_reorder_chain): Likewise.
21611         * cfrtl.c (update_br_prob_note): New.
21612         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21614         * i386.c (ix86_decompose_address): Return -1 if address contains
21615         shift.
21616         (legitimate_address_p): Require ix86_decompose_address to return 1.
21618         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21619         (cprop_insn): Likewise.
21621 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21623         * toplev.c: Fix formatting.
21624         * tree.c: Likewise.
21625         * tree-dump.c: Likewise.
21626         * unroll.c: Likewise.
21627         * unwind-dw2.c: Likewise.
21628         * unwind-dw2-fde.c: Likewise.
21629         * unwind-dw2-fde-glibc.c: Likewise.
21630         * unwind-sjlj.c: Likewise.
21632 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
21634         * doc/invoke.texi: Document PDP-11 options.
21636 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21638         * config/h8300/h8300.h: Fix formatting.
21640 2002-01-10  Ira Ruben   <ira@apple.com>
21642         Add __attribute__ ((deprecated)).
21643         * extend.texi: Document __attribute__ ((deprecated)).
21644         * invoke.texi: Document -Wno-deprecated-declarations.
21645         * testsuite/g++.dg/other/deprecated.C: New C++ test.
21646         * testsuite/gcc.dg/deprecated.c: New C test.
21647         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21648         (c_common_attribute_table): Add "deprecated" entry.
21649         (handle_deprecated_attribute): New function.
21650         * c-decl.c (deprecated_states): New enum.
21651         deprecated_state: State of "deprecated" handling.
21652         (start_decl): Set deprecated_state based on attributes.
21653         (grokdeclarator): Test for deprecated uses, propagate attribute.
21654         * c-typeck.c (build_component_ref): Test for deprecated fields.
21655         (build_external_ref): Test for deprecated primaries.
21656         * diagnostic.c (warn_deprecated_use) New function to issue
21657         warnings about __attribute__ ((depricated)) references.
21658         * flags.h (warn_deprecated_decl): Extern declared for
21659         -W[no-]deprecated-declarations option.
21660         * print-tree.c (print_node): Show deprecated flag status.
21661         * toplev.c (warn_deprecated_decl): Defined.
21662         (W_options): Added "deprecated-declaration".
21663         * toplev.h (warn_deprecated_use): Extern declared.
21664         * tree.h (struct tree_common): Define deprecated_flag.
21665         (TREE_DEPRECATED): New macro to access flag.
21666         * cp/call.c (build_call): Test for deprecated calls.
21667         * cp/class.c (add_implicitly_declared_members): Set global
21668         flag to tell grokdeclarator to not issue deprecated warnings.
21669         * cp/cp-tree.h: Add extern for adding_implicit_members.
21670         * cp/decl.c (deprecated_states): New enum.
21671         (start_decl): Set deprecated_state based on attributes.
21672         (grokdeclarator): Test for deprecated uses, propagate attribute.
21673         * cp/lex.c (do_identifier): Test for deprecated primaries.
21674         * cp/typeck.c (build_component_ref): Test for deprecated fields.
21676 2002-01-10  Ira Ruben   <ira@apple.com>
21678         Fix to assign attributes to inline member functions.
21679         * cp/decl.c (start_method): Handle attrlist.
21681 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21683         * combine.c (expand_field_assignment): Use subreg_lsb().
21685 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
21687         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21688         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21689         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21690         Recurse for any operand of AND as long as constant is non-zero.
21692 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21694         * config/h8300/h8300.md: Remove constraints from expanders.
21696 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21698         * varasm.c: Fix formatting.
21699         * varray.c: Likewise.
21700         * vmsdbgout.c: Likewise.
21701         * xcoffout.c: Likewise.
21703 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
21705         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
21706         update edge probabilities to match.
21708 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
21710         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
21711         dependencies.
21712         * doc/languages.texi, doc/sourcebuild.texi: New files.
21713         * doc/configfiles.texi: Make a subsubsection.  Update.
21714         * doc/configterms.texi: Add @node.  Remove warning that this isn't
21715         instructions for building GCC.
21716         * doc/makefile.texi: Make a subsection.
21717         * doc/gccint.texi: Update.
21719 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
21721         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
21723 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
21725         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
21727 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
21729         * optabs.c (expand_fix): Look for wider integer modes first.
21731         * i386.md (mov?f): Avoid the fake const double trick for medium
21732         memory model.
21733         (min?f*/max?f*): Prohibit memory operands for i387 variant.
21734         (fop_df_4): Disable for SSE compilation.
21736 2002-01-10  Graham Stott  <grahams@redhat.com>
21738         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
21739         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
21741 2002-01-10  Richard Henderson  <rth@redhat.com>
21743         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
21745 2002-01-10  Richard Henderson  <rth@redhat.com>
21747         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
21748         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
21750 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21752         * combine.c (can_combine_p): Fix a comment typo.
21754 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
21756         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
21757         empty list correctly.  Change loop index $t to $f for
21758         consistency with rest of Makefile.
21760 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
21762         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
21763         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21765         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
21766         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
21767         (altivec_init_builtins): Same.
21768         (altivec_expand_unop_builtin): Return NULL_RTX on error.
21769         (altivec_expand_binop_builtin): Same.
21770         (altivec_expand_ternop_builtin): Same.
21771         (bdesc_dst): New.
21773         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
21774         ("altivec_vctuxs"): Fix typo.
21775         ("altivec_vnmsubfp"): Same.
21776         ("altivec_dssall"): New.
21777         ("altivec_mfvscr"): New.
21778         ("altivec_dss"): New.
21779         ("altivec_lvsl"): New.
21780         ("altivec_lvsr"): New.
21781         ("altivec_dstt"): New.
21782         ("altivec_dstst"): New.
21783         ("altivec_dststt"): New.
21784         ("altivec_dst"): New.
21786         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
21787         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21789 2002-01-09  Richard Henderson  <rth@redhat.com>
21791         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
21793 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
21795         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
21796         function.
21797         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
21798         prototype.
21799         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
21801 2002-01-09  Kazu Hirata  <kazu@hxi.com>
21803         * read-rtl.c: Fix formatting.
21804         * real.c: Likewise.
21805         * regclass.c: Likewise.
21806         * regrename.c: Likewise.
21807         * reg-stack.c: Likewise.
21808         * reload1.c: Likewise.
21809         * reload.c: Likewise.
21810         * rtl.c: Likewise.
21812 2002-01-09  Kazu Hirata  <kazu@hxi.com>
21814         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
21815         to extract items in the expr_list chain.
21817 2002-01-09  Richard Henderson  <rth@redhat.com>
21819         * config/vax/vax.c (vax_rtx_cost): Never abort.
21821         * config/vax/vax.h (REAL_ARITHMETIC): Define.
21823 2002-01-09  Jan Hubicka  <jh@suse.cz>
21825         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
21827 2002-01-09  Richard Henderson  <rth@redhat.com>
21829         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
21830         Unify code from various alternatives.
21832 2002-01-09  Richard Henderson  <rth@redhat.com>
21834         * regrename.c (copy_value): Ignore the copy if the source register
21835         is present in the value chain with a narrower mode.
21837 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
21839         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
21840         for the c4x target. Also improve layout.
21842 2002-01-09  Richard Henderson  <rth@redhat.com>
21844         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
21845         * config/m32r/m32r.md (and ior xor splitters): Swap operands
21846         to match insn patterns.
21848 2002-01-09  Richard Henderson  <rth@redhat.com>
21850         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
21851         (copyprop_hardreg_forward_1): Likewise.
21853 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21855         * pa.md (decrement_and_branch_until_zero): Change predicate for
21856         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
21858 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
21860         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
21861         gets undefined. For Darwin.
21863 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21865         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
21867 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21869         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
21871 2002-01-08  Richard Henderson  <rth@redhat.com>
21873         * regrename.c (copy_value): Ignore overlapping copies.
21875 2002-01-08  Richard Henderson  <rth@redhat.com>
21877         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
21878         as needed to avoid shared structure.
21880 2002-01-08  Kazu Hirata  <kazu@hxi.com>
21882         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
21883         H8/300H and H8/S.
21885 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
21887         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
21888         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
21889         documentation of obsolete macros.
21890         * system.h: Poison these macros.
21891         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
21892         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
21893         config/c4x/c4x.h, config/clipper/clipper.h,
21894         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
21895         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
21896         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
21897         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
21898         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
21899         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
21900         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21901         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
21902         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
21903         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21904         config/sparc/sparc.h, config/stormy16/stormy16.h,
21905         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
21906         definitions and commented out definitions of obsolete macros.
21907         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
21908         of MAX_INT_TYPE_SIZE.
21910 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
21912         * config/s390/s390.c (s390_preferred_reload_class): Never
21913         return ADDR_REGS if it isn't a subset of the given class.
21914         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
21915         FP_REGS, but all superclasses as well.
21917         * config/s390/s390.c (s390_function_profiler): Fix thinko.
21919         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
21920         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
21921         must not be a const_int.
21923 2002-01-08  Richard Henderson  <rth@redhat.com>
21925         * Makefile.in (toplev.o): Depend on options.h.
21926         (gcc.o): Depend on specs.h.
21928 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
21930         * expr.c (store_expr): Convert VOIDmode constants back to target's
21931         mode.
21933 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21935         * doc/invoke.texi: Markup gcc as @command.  Refer to
21936         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
21937         of http://gcc.gnu.org/thanks.html.
21939 2002-01-08  Dale Johannesen  <dalej@apple.com>
21941         * config/rs6000/rs6000.md: Add missing int register
21942         target case to movdf_low.
21944 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
21946         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
21947         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
21948         (cppinit.o): Depend on except.h.
21949         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
21950         s-specs): New rules.
21952         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
21953         Don't create specs.h/options.h/gencheck.h here.  Remove
21954         unnecessary variable settings from last argument of AC_OUTPUT.
21955         * config.in, configure: Regenerate.
21956         * intl.c: Hardcode package name as "gcc".
21958         * cppinit.c: Include except.h.
21959         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
21960         appropriate.
21961         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
21962         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
21963         (!)USING_SJLJ_EXCEPTIONS.
21964         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
21966 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
21968         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
21969         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
21970         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
21971         documentation of obsolete macros.
21972         * system.h: Poison these macros.
21973         * config/d30v/d30v.h, config/ns32k/encore.h,
21974         config/stormy16/stormy16.h: Remove definitions and commented out
21975         definitions of obsolete macros.
21977 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
21979         * objc/objc-act.c (handle_class_ref): Mark the declaration of
21980         %sobjc_class_ref_%s as used - to prevent unwanted compiler
21981         warnings.
21983 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
21985         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
21986         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
21987         to insn adjusting stack/frame pointer.
21988         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
21989         accept operands that cause the insn to be non-splittable.
21991 2002-01-08  Graham Stott  <grahams@redhat.com>
21993         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
21994         (C_TYPE_FIELDS_VOLATILE): Likewise.
21995         (C_TYPE_BEING_DEFINED): Likewise.
21996         (C_IS_RESERVED_WORD): Likewise.
21997         (C_TYPE_VARIABLE_SIZE): Likewise.
21998         (C_DECL_VARIABLE_SIZE): Likewise.
21999         (C_MISSING_PROTOTYPE_WARNED): Likewise.
22000         (C_SET_EXP_ORIGINAL_CODE): Likewise.
22001         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22002         parenthesis.
22003         (C_DECL_ANTICIPATED): Likewise.
22004         (c_build_type_variant): Add parenthesis.
22006 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22008         * gcc.c (option_map): Remove --version.
22009         (process_command): Handle -fversion following the GNU Coding
22010         Standards.  Partially addresses PR other/704.
22012 2002-01-08  Graham Stott  <grahams@redhat.com>
22014         * combine.c (combine_instructions): Fix typo.
22016 2002-01-08  Graham Stott  <grahams@redhat.com>
22018         * debug.h: Use "tree" and "rtx" throughout.
22020         * debug.c: Likewise.
22022 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
22024         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22025         constant pool, use the pool's version of the symbol instead.
22027 2002-01-07  Richard Henderson  <rth@redhat.com>
22029         * regrename.c (find_oldest_value_reg): Ignore the value chain if
22030         the original register was copied in a mode with a fewer number of
22031         hard registers than the desired mode.
22032         (copyprop_hardreg_forward_1): Likewise.
22033         (debug_value_data): Fix loop test.
22034         * toplev.c (parse_options_and_default_flags): Reenable
22035         -fcprop-registers at -O1.
22037 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22039         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22040         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22042         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22043         predicates.
22045         * config/rs6000/rs6000.md: Add altivec predicate patterns.
22047 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22049         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22050         (pa_output_function_prologue): Output local label at the beginning of
22051         the prologue when profiling.
22052         (hppa_profile_hook): Use the local label rather than the function label.
22053         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22055 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22057         * config/rs6000/rs6000.c (print_operand): Remove extra space.
22058         (altivec_expand_unop_builtin): Fix thinko.
22059         (altivec_expand_binop_builtin): Same.
22060         (altivec_expand_ternop_builtin): Same.
22061         (altivec_expand_builtin): Same.
22063 2002-01-07  Richard Henderson  <rth@redhat.com>
22065         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22067 2002-01-07  Jason Merrill  <jason@redhat.com>
22069         * unwind-dw2.c (execute_cfa_program): Use < again.
22071 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22073         * predict.c (combine_predictions_for_insn): Avoid division by zero.
22075 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22077         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22078         Don't allow -1 - x -> ~x simplifications in the first pass.
22080 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22082         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22083         arguments.
22084         (altivec_expand_binop_builtin): Same.
22085         (altivec_expand_unop_builtin): Same.
22086         (print_operand): Fix typo.
22087         (bdesc_1arg): Add vupk* variants.
22089         * rs6000.h (rs6000_builtins): Add vupk* enums.
22091         * rs6000.md: Add altivec_vupk* variants.
22093 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
22095         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22096         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22097         and last update dates.
22099 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
22101         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22103 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
22105         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22106         * config/avr/avr.h (CPP_SPEC): Likewise.
22107         (LINK_SPEC): Likewise.
22108         (CRT_BINUTILS_SPECS): Likewise.
22109         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22110         * doc/invoke.texi (AVR Options): Document them.
22112 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
22114         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22115         LABEL_NUSES.
22117 2002-01-07  Graham Stott  <grahams@redhat.com>
22119         * config/i386/i386.h: Update copyright date.
22120         (HALF_PIC_PTR): Add parenthesis.
22121         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22122         (CONSTANT_ALIGNMENT): Add parenthesis.
22123         (DATA_ALIGNMENT): Likewise.
22124         (LOCAL_ALIGNMENT): Likewise.
22125         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22126         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22127         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22128         (HARD_REGNO_NREGS): Add paranethesis.
22129         (VALID_SSE_REG_MODE): Whitespace.
22130         (VALID_MMX_REG_MODE): Whitespace.
22131         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22132         (ix86_hard_regno_mode_ok): Add parenthesis.
22133         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22134         (RETURN_IN_MEMORY): Whitespace.
22135         (N_REG_CLASSES): Add parenthesis.
22136         (INTEGER_CLASS_P): Add parenthesis and wrap.
22137         (FLOAT_CLASS_P): Likewise.
22138         (SSE_CLASS_P): Likewise.
22139         (MMX_CLASS_P): Likewise.
22140         (MAYBE_INTEGER_CLASS_P): Likewise.
22141         (MAYBE_FLOAT_CLASS_P): Likewise.
22142         (MAYBE_SSE_CLASS_P): Likewise.
22143         (MAYBE_MMX_CLASS_P): Likewise.
22144         (Q_CLASS_P): Likewise.
22145         (GENERAL_REGNO_P): Uppercase macro parameter.
22146         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22147         (FP_REGNO_P): Likewise.
22148         (ANY_FP_REGNO_P): Uppercase macro parameter.
22149         (SSE_REGNO_P): Likewise.
22150         (SSE_REGNO): Likewise.
22151         (SSE_REG_P): Likewise.
22152         (SSE_FLOAT_MODE_P): Likewise.
22153         (MMX_REGNO_P): Likewise.
22154         (MMX_REG_P):Likewise.
22155         (STACK_REG_P): Likewise.
22156         (NON_STACK_REG_P): Likewise.
22157         (STACK_TOP_P): Likewise.
22158         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22159         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22160         (SECONDARY_MEMORY_NEEDED): Likewise.
22161         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22162         (MD_ASM_CLOBBERS): Whitespace and wrap.
22163         (MUST_PASS_IN_STACK): Whitespace and wrap.
22164         (RETURN_POPS_ARGS): Add parenthesis.
22165         (INIT_CUMULATIVE_ARGS): Likewise.
22166         (FUNCTION_ARG): Likewise.
22167         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22168         (SETUP_INCOMING_VARARGS): Likewise.
22169         (BUILD_VA_LIST_TYPE):  Add parenthesis.
22170         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22171         parenthsis.
22172         (EXPAND_BUILTIN_VA_ARG): Likewise.
22173         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22174         (INITIALIZE_TRAMPOLINE): Add parenthesis.
22175         (INITIAL_ELIMINATION_OFFSET): Likewise.
22176         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22177         (REGNO_OK_FOR_BASE_P): Likewise.
22178         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22179         (REGNO_OK_FOR_DIREG_P): Likewise.
22180         (REG_OK_FOR_INDEX_P): Whitespace.
22181         (REG_OK_FOR_BASE_P): Whitespace.
22182         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22183         parenthesis.
22184         (FIND_BASE_TERM): Fix typo.
22185         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
22186         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22187         (SYMBOLIC_CONST; Whitespace.
22188         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
22189         (ENCODE_SECTION_INFO): Whitespace.
22190         (FINALIZE_PIC): Remove do { ... } while (0).
22191         (PROMOTE_MODE): Wrap in do { ... } while (0).
22192         (CONST_COSTS): Whitespace.
22193         (RTX_COSTS): Add paramethesis, whitespace and wrap.
22194         (REGISTER_MOVE_COST): Add parenthesis.
22195         (MEMORY_MOVE_COST): Likewise.
22196         (EXTRA_CC_MODES): Whitespace.
22197         (SELECT_CC_MODE): Add parenthesis and whitespace.
22198         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22199         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22200         (ASM_OUTPUT_LABEL): Add paramethesis.
22201         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22202         (ASM_OUTPUT_REG_POP): Likewise.
22203         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22204         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22206         * config/i386/i386.c: Update copyright.
22207         (CHECK_STACK_LIMIT): Add parenthesis.
22208         (AT_BP): Uppercase macro parameter.
22209         (x86_64_int_parameter_registers): Constify.
22210         (x86_64_int_return_registers): Likewise.
22211         (ix86_compare_op0): Use rtx.
22212         (construct_container): Constify INTREG parameter.
22213         (function_arg): Use rtx.
22215         * diagnostic.h: Update copyright date.
22216         (output_buffer_state): Add parenthesis.
22217         (output_buffer_format_args): Likewise.
22219         * combine.c (combine_instructions): Replace XEXP (links, 0)
22220         with link.
22222 2002-01-06  H.J. Lu <hjl@gnu.org>
22224         * cfgcleanup.c (thread_jump): Fix 2 typos.
22226 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
22228         * config.gcc: Add support for --enable-altivec.
22230 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22232         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22234 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
22236         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22237         __objc_class_name_*.
22239 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22241         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22243 2002-01-06  Richard Henderson  <rth@redhat.com>
22245         * reorg.c (emit_delay_sequence): Remove death notes, not merely
22246         nop them out.  Increment label reference count for REG_LABEL.
22247         (fill_slots_from_thread): Frob label reference count around
22248         delete_related_insns.
22250 2002-01-05  Richard Henderson  <rth@redhat.com>
22252         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22253         jump threading.
22255 2002-01-05  Richard Henderson  <rth@redhat.com>
22257         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22258         * integrate.c (output_inline_function): Likewise.
22259         * toplev.c (rest_of_compilation): Do it here instead.  Move call
22260         to remove_unnecessary_notes after emitting abstract instance.
22261         Force an emitted nested function to have its parent emited as well.
22262         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22263         for null.
22264         (rtl_for_decl_location): Do not look at reload data structures
22265         before reload has run.
22267 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22269         * cse.c: Fix formatting.
22270         * dwarf2asm.c: Likewise.
22271         * dwarf2out.c: Likewise.
22272         * explow.c: Likewise.
22273         * expmed.c: Likewise.
22274         * function.c: Likewise.
22275         * gcov.c: Likewise.
22276         * gencheck.c: Likewise.
22277         * genrecog.c: Likewise.
22278         * ggc-common.c: Likewise.
22279         * ggc-page.c: Likewise.
22280         * global.c: Likewise.
22282 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22284         * combine.c: Fix formatting.
22286 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
22288         PR middle-end/1557
22289         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22291 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
22293         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22294         as 1 for __powerpc64__ as well.
22296         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22298         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22299         return it.
22301 2002-01-05  Daniel Berlin  <dan@dberlin.org>
22303         * lcm.c: Revert change, due to performance regression it causes on
22304         SPEC because it's slightly more conservative (sigh, I hate
22305         edge-based LCM).
22307 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
22309         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22311 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
22313         * doc/cppinternals.texi: Update.
22315 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
22317         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22318         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22319         negatives.
22320         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
22321         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22322         kludge for pre-october-14th mmix versions to handle new-found bug
22323         with PUSHJ/PUSHGO and the register stack.
22324         * config/mmix/mmix.h (struct machine_function): Rename member
22325         has_call_value_without_parameters to has_call_without_parameters.
22326         All referers changed.
22327         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22328         TARGET_MASK_BRANCH_PREDICT): New macros.
22329         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22330         -mno-reg-stack-fill-bug-workaround.
22331         * config/mmix/mmix.md ("call"): Set struct machine member
22332         has_call_without_parameters.
22334 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
22336         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22338 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
22340         * cfgcleanup.c: Include tm_p.h
22341         (mark_effect): Fix handling of hard register; fix handling of SET
22343 2002-01-04  Kazu Hirata  <kazu@hxi.com>
22345         * config/h8300/h8300.md (anonymous patterns): Check that
22346         operands are registers before using REGNO on them.
22348 2002-01-03  Roland McGrath  <roland@frob.com>
22350         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22352 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
22354         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22355         * c-common.h (genrtl_expr_stmt_value): Likewise.
22356         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22357         (expand_expr_stmt_value): Add maybe_last argument.
22358         Don't warn about statement with no effect if it is the last statement
22359         in expression statement.
22360         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22361         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22362         expand_expr_stmt_value.
22363         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22364         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22365         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22366         as maybe_last to expand_expr_stmt_value.
22368 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
22370         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22371         be passed in, do not build it.
22372         (c_begin_if_stmt): New function.
22373         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22374         * c-common.h (c_expand_start_cond): Update prototype.
22375         (c_begin_if_stmt): Prototype new function.
22376         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22377         * c-parse.in (if_prefix): Use c_begin_if_stmt,
22378         c_begin_while_stmt and c_finish_while_stmt_cond.
22380 2002-01-04  William Cohen  <wcohen@redhat.com>
22382         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22383         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22384         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22385         * config/pa/som.h (ASM_FILE_START): Likewise.
22387 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
22389         * lcm.c: Include df.h.
22390         Add available_transfer_function prototype.
22391         (compute_available): Rework to use iterative dataflow framework.
22392         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22393         with bb_info in df.h
22394         (available_transfer_function): New function.
22396         * Makefile.in (lcm.o): add df.h to dependencies.
22398 2002-01-04  Richard Henderson  <rth@redhat.com>
22400         * config/alpha/alpha.c (some_operand): Accept HIGH.
22401         (input_operand): Likewise; accept simple references to globals.
22402         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22403         (alpha_const_double_ok_for_letter_p): Likewise.
22404         (alpha_extra_constraint): Likewise.
22405         (alpha_preferred_reload_class): Likewise.  Do not force
22406         symbolic constants to memory.
22407         (alpha_legitimate_address_p): Accept simple references
22408         to small_symbolic_operand.
22409         (alpha_legitimize_address): New arg scratch.  Be prepared to be
22410         called when no_new_pseudos.  Emit simple symbolic references.
22411         Split integers into low, high, and rest.
22412         (alpha_expand_mov): Use alpha_legitimize_address.
22413         (some_small_symbolic_mem_operand): New.
22414         (split_small_symbolic_mem_operand): New.
22415         * config/alpha/alpha-protos.h: Update.
22416         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22417         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22418         (EXTRA_CONSTRAINT): Likewise.
22419         (PREFERRED_RELOAD_CLASS): Likewise.
22420         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22421         (PREDICATE_CODES): Update.
22422         * config/alpha/alpha.md: New post-reload splitters to convert
22423         simplfied symbolic operands to the form that references $29.
22424         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22425         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22427 2002-01-03  Richard Henderson  <rth@redhat.com>
22429         * local-alloc.c (function_invariant_p): Update commentary.
22431 2002-01-04  H.J. Lu <hjl@gnu.org>
22433         * toplev.c (rest_of_compilation): Fix a typo when calling
22434         cleanup_cfg.
22436 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22438         * c-common.c: Fix formatting.
22439         * diagnostic.c: Likewise.
22440         * doloop.c: Likewise.
22441         * dwarf2out.c: Likewise.
22443 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22445         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22446         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22448 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22450         * cpperror.c: Update comments and copyright.
22451         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22452         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22454 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22456         * collect2.c (main): Use strcmp when testing for "-shared".
22458 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22460         * cppmacro.c: Don't include intl.h.  Update comments.
22461         (new_number_token): Allocate enough buffer for 64-bit unsigned
22462         integers; update prototype.
22463         * cppmain.c: Update comments.
22465 2002-01-03  William Cohen  <wcohen@redhat.com>
22467         * function.h (struct function): Add profile.
22468         (current_function_profile): New.
22469         doc/extend.texi: Update documentation.
22470         * final.c (final_start_function): Use current_function_profile
22471         instead of profile_flag.
22472         (profile_after_prologue): Likewise.
22473         * function.c (expand_function_start): Likewise.
22474         (expand_function_start): Likewise.
22475         * config/alpha/alpha.c (direct_call_operand):
22476         (alpha_does_function_need_gp): Likewise.
22477         (alpha_expand_prologue): Likewise.
22478         * config/arm/arm.c (arm_expand_prologue): Likewise.
22479         thumb_expand_prologue: Likewise.
22480         * config/d30v/d30v.c (d30v_stack_info): Likewise.
22481         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22482         (fr30_expand_prologue): Likewise.
22483         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22484         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22485         * config/i386/i386.h (FINALIZE_PIC): Likewise.
22486         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22487         * config/i960/i960.c (i960_output_function_prologue): Likewise.
22488         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22489         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22490         (m32r_expand_prologue): Likewise.
22491         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22492         (m88k_expand_prologue): Likewise.
22493         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22494         * config/mips/mips.c (compute_frame_size): Likewise.
22495         (mips_expand_prologue): Likewise.
22496         (mips_can_use_return_insn): Likewise.
22497         * config/pa/elf.h (ASM_FILE_START): Likewise.
22498         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22499         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22500         * config/pa/som.h (ASM_FILE_START): Likewise.
22501         * config/romp/romp.c (romp_using_r14): Likewise.
22502         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22503         (rs6000_stack_info): Likewise.
22504         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22505         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22506         * config/v850/v850.c (compute_register_save_size): Likewise.
22508 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
22510         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22511         gen_lowpart_common fails, use gen_lowpart_SUBREG.
22513 2002-01-03  Turly O'Connor  <turly@apple.com>
22515         * darwin.c (machopic_output_possible_stub_label): Don't generate
22516         stub routines for pseudo-stubs which we've just defined.
22518 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22520         * builtins.c: Fix formatting.
22521         * c-typeck.c: Likewise.
22522         * combine.c: Likewise.
22523         * expr.c: Likewise.
22524         * loop.c: Likewise.
22526 2002-01-03  Andreas Schwab  <schwab@suse.de>
22528         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22529         and return true if _cpp_push_next_buffer pushed a new include
22530         file.
22531         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22532         _cpp_pop_file_buffer did not push a new file.
22533         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22535 2002-01-02  Eric Christopher  <echristo@redhat.com>
22537         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22538         FIND_REG_INC_NOTE call. Update copyright.
22539         * loop.c (canonicalize_condition): Ditto.
22540         * reorg.c (delete_scheduled_jump): Ditto.
22542 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22544         * gcse.c: Fix formatting.
22546 2002-01-03  Graham Stott  <grahams@redhat.com>
22548         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22549         forward defs for struct tags rtx_def, union_tree, rtvec_def
22550         also output corresponding typedefs for rtx, tree, and rtvec.
22552         * system.h: Move forward defs for struct tags rtx_def, union_tree,
22553         rtvec_def along with corresponding typedefs for rtx, tree, and
22554         rtvec to config.h, hconfig.h, tconfig.h.
22556 2002-01-03  Graham Stott  <grahams@redhat.com>
22558         * tree.h: Update copyright date.
22559         (IS_EXPR_CODE_CLASS): Add parenthesis.
22560         (TREE_SET_CODE): Add whitespace.
22561         (TREE_CHECK): Add parenthesis.
22562         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22563         (CST_OR_CONSTRUCTOR_CHECK):
22564         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22565         (TREE_SYMBOL_REFERENCED): Whitespace.
22566         (INT_CST_LT): Likewise.
22567         (INT_CST_LT_UNSIGNED): Likewise.
22568         (tree_real_cst): Unwrap comment.
22569         (tree_string): Likewise.
22570         (tree_complex): Likewise.
22571         (IDENTIFIER_POINTER): correct cast.
22572         (SAVE_EXPR_CONTEXT): Whitespace.
22573         (EXPR_WFL_FILENAME_NODE): Likewise.
22574         (EXPR_WFL_FILENAME): Remove parenthesis.
22575         (DECL_ORIGIN): Add parenthesis.
22576         (DECL_FROM_INLINE): Use NULL_TREE.
22577         (build_int_2): Whitespace.
22578         (build_type_variant): Add parenthesis.
22580         * gcc/jcf-parse.c: Update copyright date.
22581         (yyparse): Constify resource_filename.
22583 2002-01-03  Graham Stott  <grahams@redhat.com>
22585         * rtl.h: Update copyright date.
22586         (RTL_CHECK1): Wrap long line.
22587         (RTL_CHECK2): Likewise.
22588         (RTL_CHECKC1): Wrap long line and whitespace.
22589         (RTL_CHECKC2): Likewise.
22590         (XWINT): Whitespace.
22591         (XINT): Likewise.
22592         (XSTR): Likewise.
22593         (XEXP): Likewise.
22594         (XVEC): Likewise.
22595         (XMODE): Likewise.
22596         (XBITMAP): Likewise.
22597         (XTREE): Likewise.
22598         (XBBDEF): Likewise.
22599         (XTMPL): Likewise.
22600         (X0WINT): Likewise.
22601         (X0INT):Likewise.
22602         (X0UINT): Likewise.
22603         (X0STR): Likewise.
22604         (X0EXP): Likewise.
22605         (X0VEC): Likewise.
22606         (X0MODE): Likewise.
22607         (X0BITMAP): Likewise.
22608         (X0TREE): Likewise.
22609         (X0BBDEF): Likewise.
22610         (X0ADVFLAGS): Likewise.
22611         (X0CSELIB): Likewise.
22612         (X0MEMATTR): Likewise.
22613         (XCWINT): Likewise.
22614         (XCINT): Likewise.
22615         (XCUINT): Likewise.
22616         (XCSTR): Likewise.
22617         (XCEXP): Likewise.
22618         (XCVEC): Likewise.
22619         (XCMODE): Likewise.
22620         (XCBITMAP): Likewise.
22621         (XCTREE): Likewise.
22622         (XCBBDEF): Likewise.
22623         (XCADVFLAGS): Likewise.
22624         (XCCSELIB): Likewise.
22625         (XC2EXP): Likewise.
22626         (INSN_UID): Likewise.
22627         (PREV_INSN): Likewise.
22628         (PATTERN): Likewise.
22629         (INSN_CODE): Likewise.
22630         (PUT_REG_NOTE_KIND): Likewise.
22631         (CODE_LABEL_NUMBER): Likewise.
22632         (NOTE_SOURCE_FILE): Likewise.
22633         (NOTE_BLOCK): Likewise.
22634         (NOTE_EH_HANDLER): Likewise.
22635         (NOTE_RANGE_INFO): Likewise.
22636         (NOTE_LIVE_INFO): Likewise.
22637         (NOTE_BASIC_BLOCK): Likewise.
22638         (NOTE_EXPECTED_VALUE): Likewise.
22639         (NOTE_LINE_NUMBER): Likewise.
22640         (LABEL_NAME): Likewise.
22641         (LABEL_NUSES): Likewise.
22642         (LABEL_ALTERNATE_NAME): Likewise.
22643         (ADDRESSOF_DECL): Likewise.
22644         (JUMP_LABEL): Likewise.
22645         (LABEL_NEXTREF): Likewise.
22646         (REGNO): Likewise.
22647         (ORIGINAL_REGNO: Likewise.
22648         (HARD_REGISTER_NUM_P): Add parenthesis.
22649         (SUBREG_REG): Whitespace.
22650         (SUBREG_BYTE): Likewise.
22651         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22652         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22653         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22654         (ASM_OPERANDS_INPUT_VEC): Likewise.
22655         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22656         (ASM_OPERANDS_INPUT): Likewise.
22657         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22658         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22659         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22660         (ASM_OPERANDS_INPUT_MODE): Likewise.
22661         (ASM_OPERANDS_SOURCE_FILE): Likewise.
22662         (ASM_OPERANDS_SOURCE_LINE): Likewise.
22663         (MEM_SET_IN_STRUCT_P): Minor reformat.
22664         (TRAP_CONDITION): Whitespace.
22665         (TRAP_CODE): Likewise.
22666         (COND_EXEC_TEST): Likewise.
22667         (COND_EXEC_CODE): Likewise.
22668         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22669         (PHI_NODE_P): Add parenthesis.
22670         (plus_constant): Whitespace and add parenthesis.
22672 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22674         * config/avr/avr.c: Fix comment typos.
22675         * config/c4x/c4x.md: Likewise.
22676         * config/dsp16xx/dsp16xx.h: Likewise.
22677         * config/dsp16xx/dsp16xx.md: Likewise.
22678         * config/i386/i386.md: Likewise.
22679         * config/ia64/ia64.c: Likewise.
22680         * config/m32r/m32r.h: Likewise.
22681         * config/m68hc11/m68hc11.md: Likewise.
22682         * config/mmix/mmix.c: Likewise.
22683         * config/mn10200/mn10200.c: Likewise.
22684         * config/romp/romp.c: Likewise.
22685         * config/sh/sh.c: Likewise.
22686         * config/stormy16/stormy16.c: Likewise.
22687         * config/stormy16/stormy16.h: Likewise.
22688         * config/stormy16/stormy16.md: Likewise.
22690 2002-01-03  Graham Stott  <grahams@redhat.com>
22692         * loop.h: Update copyright date.
22693         (LOOP_MOVABLES): Fix typo.
22694         (LOOP_REGS): Likewise.
22695         (LOOP_IVS): Likewise.
22697 2002-01-03  Graham Stott  <grahams@redhat.com>
22699         * cppinit.c: Update copyright date.
22700         Don't include output.h
22701         * Makefile.in: Update copyright date.
22702         Update dependency.
22704 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22706         PR c/5226
22707         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
22708         (-pthread) Add to RS/6000 options.
22710 2002-01-02  Kazu Hirata  <kazu@hxi.com>
22712         * except.c: Fix comment typos.
22713         * loop.c: Likewise.
22714         * varasm.c: Likewise.
22715         * doc/tm.texi: Fix a typo.
22717 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
22719         * c-typeck.c (output_init_element): Allow initializing static storage
22720         duration objects with compound literals.
22722 2002-01-02  Richard Henderson  <rth@redhat.com>
22724         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
22725         after abusing it.
22727 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22729         * gcc.c (default_compilers): Const-ify.
22730         * mips-tdump.c (stab_names): Likewise.
22731         * mips-tfile.c (map_coff_types, map_coff_storage,
22732         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
22733         pseudo_ops_t, pseudo_ops): Likewise.
22734         * protoize.c (default_include): Likewise
22736         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
22737         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
22738         Add array size in declaration.
22739         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
22740         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
22741         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
22742         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
22743         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
22744         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
22745         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
22746         emtens, make_nan): Const-ify.
22747         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
22748         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
22750 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
22752         * config.gcc (ia64-*-*): Set extra_headers.
22753         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
22754         * config/alpha/t-osf: Remove.
22755         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
22757 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
22759         * config/rs6000/t-aix43: Revert previous change.
22761 2002-01-02  Jason Merrill  <jason@redhat.com>
22763         * c-decl.c (c_expand_body): Call outlining_inline_function when
22764         emitting an inline function out of line.
22766 2002-01-02  Richard Henderson  <rth@redhat.com>
22768         * dwarf2out.c (limbo_die_node): Add created_for member.
22769         (new_die): New argument created_for.  Update all callers.
22770         (mark_limbo_die_list): New.
22771         (dwarf2out_init): Register limbo_die_list as a root.
22772         (dwarf2out_finish): Force insert limbo dies into their function
22773         context.
22775 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
22777         PR c++/5089
22778         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
22780 2002-01-02  Kazu Hirata  <kazu@hxi.com>
22782         * config/h8300/fixunssfsi.c: Update copyright.
22783         Fix comment typos.
22784         Fix formatting.
22785         * config/h8300/h8300.c: Update copyright.
22786         Eliminate warnings.
22788 2002-01-02  Kazu Hirata  <kazu@hxi.com>
22790         * config/romp/romp.c: Fix comment formatting.
22791         * config/romp/romp.h: Likewise.
22792         * config/romp/romp.md: Likewise.
22793         * config/s390/s390.c: Likewise.
22794         * config/stormy16/stormy16.c: Likewise.
22795         * config/stormy16/stormy16.h: Likewise.
22797 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
22799         * c-common.h (genrtl_expr_stmt_value): Declare.
22800         * c-semantics.c (genrtl_goto_stmt): Redirect to...
22801         (genrtl_goto_stmt_value): ... this new function.  Pass new
22802         argument down to expand_expr_stmt_value, taking
22803         TREE_ADDRESSABLE into account.
22804         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
22805         STMT_EXPR as addressable, i.e., one whose result we want.
22806         * expr.c (expand_expr): Don't save expression statement value
22807         of labeled_blocks or loop_exprs.
22808         * stmt.c (expand_expr_stmt): Redirect to...
22809         (expand_expr_stmt_value): ... this new function.  Use new
22810         argument to tell whether to save expression value.
22811         (expand_end_stmt_expr): Reset last_expr_type and
22812         last_expr_value if we don't have either.
22813         * tree-inline.c (declare_return_variable): Mark its use
22814         statement as addressable.
22815         * tree.h: Document new use of TREE_ADDRESSABLE.
22816         (expand_expr_stmt_value): Declare.
22818 2002-01-01  Tom Rix  <trix@redhat.com>
22820         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
22821         rs6000_emit_allocate_stack.
22823 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
22825         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
22826         ${srcdir}/ginclude/ to every entry in extra_headers.
22827         * configure: Regenerate.
22828         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
22829         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
22830         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
22831         * ginclude/proto.h: Rename to config/convex/proto.h.
22833 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22835         * attribs.c (handle_vector_size_attribute): Use host_integerp
22836         and tree_int_cst; remove warnings.
22837         * caller-save.c (insert_restore): Add cast to get rid of warning.
22838         (insert_save): Likewise.
22839         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22840         * regmove.c (find_matches): Add temporary var to kill a warning.
22842 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
22844         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
22845         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
22846         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
22847         (vms-dwarf2eh.o): Add Makefile rule.
22848         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
22849         * config/alpha/vms-dwarf2eh.asm: New file.
22851         * gcc.c (delete_if_ordinary): Delete all versions.
22853 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
22855         * config/mmix/mmix.md: Update FIXME to not mention
22856         define_constants.
22857         (MMIX_rJ_REGNUM): New define_constants constant.
22858         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
22859         "*movdicc_real"): Adjust contraints formatting.
22860         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
22861         for branch prediction.
22862         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
22863         output template.
22864         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
22865         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
22866         number.  Delete related FIXMEs.
22867         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
22868         from number to MMIX_rJ_REGNUM.
22869         (TARGET_MASK_BRANCH_PREDICT): New.
22870         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
22871         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
22872         value.  Add -mbranch-predict and -mno-branch-predict.
22873         (TARGET_VERSION): Drop date.
22874         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
22875         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
22876         for finding out global symbols.
22877         (mmix_asm_output_labelref): Revert condition for global symbol.
22878         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
22879         (mmix_print_operand_punct_valid_p): A '+' is valid.
22881 See ChangeLog.6 for earlier changes.