gcse.c (do_local_cprop): Do not extend lifetimes of registers set by do_local_cprop.
[official-gcc.git] / gcc / ChangeLog
blob0f5b87b1305252409cb9aa879ed15354c7c4335d
1 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
4         do_local_cprop.
6 2002-07-21  Andreas Jaeger  <aj@suse.de>
8         * reload1.c (fixup_abnormal_edges): Remove unused variable.
10 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
12         Improvements for the ifcvt pass from Michael Meissner, with patches
13         by Richard Sandiford <rsandifo@redhat.com>
14         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
15         * ifcvt.c (cond_exec_changed_p): New static variable.
16         (last_active_insn): New function, renamed from last_active_insn_p
17         and changed to return the last active insn in a basic block. All
18         callers updated.
19         (block_fallthru): New function.
20         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
21         IFCVT_MODIFY_INSN.  All callers updated.
22         Return false if START or END are NULL.
23         Handle case where we're processing an insn that is already
24         conditional.
26         (noce_process_if_block): CE_INFO argument rather than
27         multiple args containing the involved basic blocks.  All callers
28         changed.
29         (process_if_block, merge_if_block, find_if_block,
30         cond_exec_process_if_block): Likewise.
32         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
33         changed.
34         Use new function last_active_insn to simplify some code.
35         New code to handle multiple tests.
36         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
37         cond_exec_changed_p to TRUE.
39         (process_if_block): New code to handle multiple tests.
40         (merge_if_block): Likewise.
41         (find_if_header): New arg PASS.  Changed to return the currently
42         processed basic block or NULL instead of true/false. All callers
43         changed.
44         Call IFCVT_INIT_EXTRA_FIELDS.
45         (block_jumps_and_fallthru_p): New function.
46         (find_if_block): Discover opportunities to convert multiple tests.
47         Add additional debugging output.
48         Update the ce_info structure before returning.
50         (if_convert): Run multiple passes of if-conversion.
51         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
52         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
53         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
54         these macros.
56 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
58         * gcse.c: Include cselib.h
59         (constptop_register): Break out from ...
60         (cprop_insn): ... here; kill basic_block argument.
61         (do_local_cprop, local_cprop_pass): New functions.
62         (one_cprop_pass): Call local_cprop_pass.
64 2002-07-20  Roger Sayle  <roger@eyesopen.com>
66         * simplify-rtx.c (simplify_relational_operation): Optimize
67         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
69 2002-07-20  Michae Matz  <matz@suse.de>
71         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
73 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
75         * cppexp.c (struct op): Add token pointer.
76         (check_promotion, CHECK_PROMOTION): New.
77         (optab): Update.
78         (_cpp_parse_expr): Update, use token pointer of struct op.
79         (reduce): Warn about change of sign owing to promotion.
80         * cppinit.c (cpp_handle_option): New warning if -Wall.
81         * cpplib.h (struct cpp_options): New member.
83 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
85         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
86         fpu list.  Separate Power4 compare and delayed_compare.  Correct
87         Power4 fpcompare.
88         (fix_truncdfsi2_internal): Restore FPR preference.
89         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
90         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
92 2002-07-19  Momchil Velikov <velco@fadata.bg>
94         * reload1.c (reload_as_needed): Duplicate oldpat.
96 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
98         PR optimization/7130
99         * loop.h (struct loop_info): Add "preconditioned".
100         * unroll.c (unroll_loop): Set it.
101         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
103 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
105         * rtl.def (CODE_LABEL): Remove slot 8.
106         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
107         (LABEL_ALTERNATE_NAME): Delete.
108         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
109         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
111         * final.c (output_alternate_entry_point): New.
112         (final_scan_insn): Use it instead of
113         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
114         of a case label being an alternate entry point.
116         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
117         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
118         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
119         (field deleted).
120         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
122         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
123         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
124         * doc/tm.texi: Delete documentation of
125         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
127 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
129         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
130         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
131         (LINK_SPEC): Define.
132         (STARTFILE_SPEC): Define.
133         (ENDFILE_SPEC): Define.
135         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
136         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
138         * config/mips/iris6-o32-gas.h: New file.
139         * config.gcc (mips-sgi-irix6*o32): Use it.
141         * config/mips/t-iris5-gas: New file.
142         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
144 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
146         * cppexp.c (ALWAYS_EVAL): Remove.
147         (optab, reduce): Always evaluate.
148         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
149         only if not skipping evaluation.
151 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
153         * config/avr/avr.c (debug_hard_reg_set): Remove.
155 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
157         * gcc.c (cpp_options): Include "%1" (cc1_spec).
159 2002-07-19  Richard Henderson  <rth@redhat.com>
161         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
163 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
165         * prefix.c (update_path): Don't zap single `.' path components
166         unless followed by another `.' and fix typo last patch.
168 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
170         * cppexp.c (cpp_num_mul): Remove unused parameter.
171         (UNARY, BINARY, OTHER, binary_handler): Remove.
172         (ALWAYS_EVAL): New.
173         (optab): Update.
174         (reduce): Refactor to a large switch, don't use a function
175         pointer.
177 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
179         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
181 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
183         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
184         (sh_expand_binop_v2sf): Likewise.
185         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
186         (int_gpr_dest, trunc_hi_operand): New functions.
187         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
188         trunc_hi_operand.
189         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
190         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
191         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
192         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
193         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
194         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
195         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
196         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
197         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
198         (movsf_ie+1): Likewise.
199         (loaddi_trunc): Use int_gpr_dest predicate.
200         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
201         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
202         (casesi_worker_0+[12], casesi_worker): Likewise.
203         (shcompact_preserve_incoming_args): Likewise.
204         (mov_nop): Use any_register_operand predicate.
205         (mperm_w0): Use trunc_hi_operand predicate.
207 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
209         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
210         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
211         numbering.
213 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
215         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
217 2002-07-18  Richard Henderson  <rth@redhat.com>
219         PR optimization/7147
220         * ifcvt.c (noce_get_condition): Make certain that the condition
221         is valid at JUMP.
223 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
225         * sh.c (barrier_align, push): Shut up compiler warnings.
226         (initial_elimination_offset,sh_media_init_builtins): Likewise.
227         (reg_no_subreg_operand): Delete.
229 2002-07-17  Bo Thorsen  <bo@suse.de>
231         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
232         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
233         (STARTFILE_SPEC): Remove hardcoded library paths.
234         (ENDFILE_SPEC): Likewise.
236 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
238         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
240         * gcse.c (try_replace_reg): Do not return false positives.
242 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
244         * prefix.c: (update_path): Strip ".." components when prior dir
245         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
247         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
248         (ASM_OUTPUT_REG_POP): Likewise.
250 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
252         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
253         adjustments to first_reg for profiling case.
254         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
255         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
256         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
257         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
258         (ASM_OUTPUT_REG_POP): Define.
259         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
260         (ASM_OUTPUT_REG_POP): Undef.
262 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
264         * cpplib.c (do_sccs): Handle #sccs on all systems.
265         * system.h (SCCS_DIRECTIVE): Poison.
266         * config/darwin.h, config/freebsd.h, config/netbsd.h,
267         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
268         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
269         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
270         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
271         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
272         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
273         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
274         Remove all references to SCCS_DIRECTIVE.
275         * doc/cpp.texi, doc/tm.texi: Update.
277 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
279         * regrename.c (maybe_mode_change): New function.
280         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
282 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
284         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
285         suppress addition when either ct or cf are zero.
287 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
288             Glen Nakamura <glen@imodulo.com>
290         PR optimization/6713
291         * loop.c (loop_givs_rescan): Explicitly delete the insn that
292         sets a non-replaceable giv after issuing the new one.
294 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
296         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
297         eval_token): Clarify and correct use of "bool" variables.
298         * cpplib.h (struct cpp_options): Similarly.
299         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
300         * cpptrad.c (recursive_macro): Similarly.
302 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
304         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
305         SHmedia code.
307         * sh.md (cmpgtudi_media): Remove spurious @.
309         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
310         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
312         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
313         * sh-protos.h (sh_initialize_trampoline): Declare.
314         * sh.c (sh_initialize_trampoline): New function.
315         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
316         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
317         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
318         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
319         * sh.md (initialize_trampoline, double_shori): New patterns.
320         (initialize_trampoline_compact): Likewise.
321         (shmedia32_initialize_trampoline_big): Remove.
322         (shmedia32_initialize_trampoline_little): Likewise.
324         * sh-protos.h (binary_float_operator): Remove declaration.
325         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
326         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
327         (unary_float_operator, sh_expand_unop_v2sf): New functions.
328         (sh_expand_binop_v2sf): Likewise.
329         (zero_vec_operand): Delete.
330         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
331         all non-shared ones.
332         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
333         Enable nsb and byterev.
334         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
335         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
336         in general regs.
337         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
338         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
339         immediate operands.
340         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
341         Add DF_HI_REGS.
342         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
343         lowpart fp regs - only for big endian for now.
344         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
345         when FPU is in use.
346         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
347         (LOAD_EXTEND_OP): NIL for SImode.
348         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
349         general and fp registers is 4.
350         PREDICATE_CODES: Amend binary_float_operator entry.
351         Remove zero_vec_operand.  Add unary_float_operator.
352         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
353         subreg SET_DEST.
354         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
355         (truncdiqi2): Do sign extension.
356         (movsi_media, movdi_media): Allow to use r63 to an fp register.
357         (movdf_media, movsf_media): Likewise.
358         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
359         Collapse to one define_insn_and_split.  Allow immediate sources.
360         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
361         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
362         (movv4sf): Allow immediate sources.
363         (movsf_media_nofpu+1): Don't split moves to FP registers.
364         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
365         (movv8qi_i+3): Check against CONST0_RTX.
366         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
367         for input and output operands.  Fix argument 3 to gen_mextr_rl.
368         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
369         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
370         (mshf0_w, fipr, ftrv): Likewise.
371         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
373 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
375         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
376         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
377         * arm.c: Similarly.
379 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
381         * config/mips/mips-protos.h (mips_sign_extend): Declare.
382         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
383         (TARGET_SWITCHES): Remove debugh.
384         (ISA_HAS_TRUNC_W): New macro.
385         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
386         (PREDICATE_CODES): Remove se_nonimmediate_operand.
387         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
388         any SImode move_operand.
389         (se_nonimmediate_operand): Remove.
390         (mips_sign_extend): New.
391         (mips_move_2words): Use it for sign-extended source operands.
392         (override_options): Allow integers to be put into single FPRs.
393         (mips_secondary_reload_class): Handle integers in float registers.
394         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
395         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
396         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
397         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
398         (fix_truncdfdi2): Provide only a single alternative, in which the
399         integer is in a float register.  Depend on TARGET_FLOAT64 rather
400         than TARGET_64BIT.
401         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
402         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
403         (movdi_internal2): Don't allow the source operand to be sign-extended.
404         Add alternatives for float registers.
405         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
406         allows sign-extension.
407         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
408         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
409         float registers.  Remove TARGET_DEBUG_H_MODE test.
410         (movhi_internal1): Rename to movhi_internal.  Don't check
411         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
412         (movqi_internal1): Rename to movqi_internal and remove
413         TARGET_DEBUG_H_MODE dependency.
414         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
416 2002-07-16  Jim Wilson  <wilson@redhat.com>
418         * toplev.c (lang_dependent_init): Create function context for
419         init_expr_once.
421 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
423         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
424         --gc-sections if -r.
425         * config/cris/cris.h: Ditto.
427 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
429         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
430         the comparison directly gives a mask suppress addition when cf is
431         zero by complementing the mask.
433 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
435         * Makefile.in: Delete references to enquire.
436         * enquire.c: Move to contrib.
438 2002-07-16  Stan Shebs  <shebs@apple.com>
440         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
441         config/rs6000/darwin.h.
442         (ASM_OUTPUT_SKIP): Ditto.
443         (TEXT_SECTION_ASM_OP): Ditto.
444         (DATA_SECTION_ASM_OP): Ditto.
445         (ASM_APP_ON): Define.
446         (ASM_APP_OFF): Define.
447         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
448         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
450         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
451         (machopic_function_base_name): Declare result to be const.
452         (machopic_non_lazy_ptr_name): Ditto.
453         (machopic_stub_name): Ditto.
454         * config/darwin-protos.h: Ditto for the prototypes.
456 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
458         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
460 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
462         * i386.md (prefetch): Fix for 64bit mode.
463         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
465 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
467         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
468         * i386.c (x86_machine_dependent_reorg): New function.
469         * i386-protos.h (x86_machine_dependent_reorg): Declare.
471 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
473         * builtins.c (std_expand_builtin_va_start): Remove unused
474         first argument.
475         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
476         std_expand_builtin_va_start with just two arguments.
477         * expr.h: Update prototypes.
479         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
480         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
481         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
482         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
483         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
484         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
485         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
486         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
487         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
488         argument from all implementations of EXPAND_BUILTIN_VA_START
489         and all uses of std_expand_builtin_va_start.
491 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
493         * regrename.c (copy_value): Don't record high part copies.
495 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
497         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
498         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
499         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
501 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
503         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
505         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
506         into addsi3 using register class "x" and "y".
508         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
509         "earlyclobber" constraint modifier for some alternative.
511         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
512         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
513         unordered.
514         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
516         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
517         (TARGET_SWITCHES): Add -mieee-compare option.
518         (OVERRIDE_OPTIONS): 32332 is a subset of
519         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
520         (TARGET_SWITCHES): Fix description of bitfield option.
521         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
522         -mieee-compare option. Remove 32332 flag.
524 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
526         * explow.c (convert_memory_address): Remove special handling
527         when POINTERS_EXTEND_UNSIGNED < 0.
528         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
529         (movedi_symbolic): Fix typo.
530         (load_fptr): Remove mode restriction so it works for SI and DI.
531         (load_fptr_internal1): Ditto.
532         (load_gprel): Ditto.
533         (load_symptr_internal1): Ditto.
534         (call_pic): Ditto.
535         * config/ia64.c (call_operand): Modify mode check.
536         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
537         (ia64_expand_move): Ditto.
538         (ia64_assemble_integer): Handle SImode function pointers.
539         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
540         (ia64_expand_op_and_fetch): Ditto.
541         (ia64_expand_compare_and_swap): Ditto.
542         (ia64_expand_lock_test_and_set): Ditto.
543         (ia64_expand_lock_release): Ditto.
545 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
547         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
549 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
550             Richard Earnshaw  <rearnsha@arm.com>
552         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
553         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
555 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
557         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
558         understands to be a memory clobber.
559         * arm.c (arm_expand_prologue): Use it.
561 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
563         * ra-rewrite.c: #include reload.h, insn-config.h
564         * ra-build.c: #include reload.h
565         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
566         depend on reload.h, insn-config.h.
568 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
570         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
571         the same size as a word.
573         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
574         BYTES_BIG_ENDIAN into account.
576 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
578         * i386.md (prefetch): Fix for 64bit mode.
579         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
581         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
583 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
585         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
587 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
589         * ginclude/varargs.h: Replace with stub which issues #error.
590         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
591         __builtin_va_start.
593         * builtins.def (BUILT_IN_VARARGS_START): Delete.
594         (BUILT_IN_VA_START): New.
595         * builtins.c (expand_builtin_va_start): Eliminate first
596         argument and code to implement pre-ISO varargs.
597         (std_expand_builtin_va_start): Ignore first argument; it is
598         always 1.
599         (expand_builtin): Handle BUILT_IN_VA_START and
600         BUILT_IN_STDARG_START identically.  Delete
601         BUILT_IN_VARARGS_START case.
603         * function.c (assign_parms): Delete hide_last_arg and all
604         its uses.
605         (mark_varargs): Delete function.
606         * function.h (struct function): Delete 'varargs' bit.
607         (current_function_varargs): Delete macro.
608         * tree.h: Don't declare mark_varargs.
610         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
611         (c_expand_body): Don't call mark_varargs.
612         * c-objc-common.c: Handle BUILT_IN_VA_START and
613         BUILT_IN_STDARG_START identically.  Delete
614         BUILT_IN_VARARGS_START case.
615         * c-tree.h: Don't declare c_mark_varargs.
616         * c-parse.in: Remove grammar rules for '&...' (which has been
617         commented out since before 2.7.2) and for '...' in K+R
618         argument declarations.
620         * builtins.c, function.c, integrate.c, sibcall.c,
621         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
622         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
623         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
624         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
625         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
626         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
627         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
628         config/stormy16/stormy16.c: Delete all references to
629         current_function_varargs, and code predicated on that flag.
631         * config/alpha/alpha.c (alpha_va_start),
632         config/arc/arc.c (arc_va_start),
633         config/i386/i386.c (ix86_va_start),
634         config/mips/mips.c (mips_va_start),
635         config/mn10300/mn10300.c (mn10300_va_start),
636         config/rs6000/rs6000.c (rs6000_va_start),
637         config/s390/s390.c (s390_va_start),
638         config/sh/sh.c (sh_va_start),
639         Ignore first argument; it is always 1.
641         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
642         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
643         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
644         Delete m68hc11_va_start.
645         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
646         No need to define EXPAND_BUILTIN_VA_START.
648         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
649         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
651 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
653         PR optimization/7153
654         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
655         dies in more than one insn.
657 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
659         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
661 2002-07-15  Michael Matz  <matz@suse.de>,
662             Daniel Berlin  <dberlin@dberlin.org>,
663             Denis Chertykov  <denisc@overta.ru>
665         Add a new register allocator.
667         * ra.c: New file.
668         * ra.h: New file.
669         * ra-build.c: New file.
670         * ra-colorize.c: New file.
671         * ra-debug.c: New file.
672         * ra-rewrite.c: New file.
674         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
675         (ra-rewrite.o): New .o files for libbackend.a.
676         (GTFILES): Add basic-block.h.
678         * toplev.c (flag_new_regalloc): New.
679         (f_options): New option "new-ra".
680         (rest_of_compilation): Call initialize_uninitialized_subregs()
681         only for the old allocator.  If flag_new_regalloc is set, call
682         new allocator, instead of local_alloc(), global_alloc() and
683         friends.
685         * doc/invoke.texi: Document -fnew-ra.
686         * basic-block.h (FOR_ALL_BB): New.
687         * config/rs6000/rs6000.c (print_operand): Write small constants
688         as @l+80.
690         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
691         (df_reg_table_realloc): Make size at least as large as max_reg_num().
692         (df_insn_table_realloc): Size argument now is absolute, not relative.
693         Changed all callers.
695         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
696         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
698         2002-06-20  Michael Matz  <matz@suse.de>
700         * df.h (struct ref.id): Make unsigned.
701         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
703         2002-06-13  Michael Matz  <matz@suse.de>
705         * df.h (DF_REF_MODE_CHANGE): New flag.
706         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
707         involving subregs with invalid mode changes, when
708         CLASS_CANNOT_CHANGE_MODE is defined.
710         2002-05-07  Michael Matz  <matz@suse.de>
712         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
714         2002-05-03  Michael Matz  <matz@suse.de>
716         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
718         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
720         * regclass.c (regclass): Work with all regs which have sets or
721         refs.
722         (reg_scan_mark_refs): Count regs inside (clobber ...).
724         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
726         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
727         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
728         add new refs.
729         (df_bb_refs_update): Don't clear insns_modified here, ...
730         (df_analyse): ... but here.
732         * sbitmap.c (dump_sbitmap_file): New.
733         (debug_sbitmap): Use it.
735         * sbitmap.h (dump_sbitmap_file): Add prototype.
737         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
739         * df.c (df_insn_modify): Grow the UID table if necessary, rather
740         than assume all emits go through df_insns_modify.
742         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
744         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
745         increase REG_N_REFS (like flow does), so that regclass doesn't
746         think a reg is useless, and thus, not calculate a class, when it
747         really should have.
749         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
751         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
752         dataflow analysis.
754 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
756         PR middle-end/7245
757         * config/i386/i386.c (const_int_1_31_operand): New.
758         * config/i386/i386.h (PREDICATE_CODES): Add it.
759         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
760         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
761         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
763 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
765         PR target/7282
766         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
767         (floatunssidf2): Likewise.
768         (floatsidf_ppc64): New insn_and_split.
769         (floatunssidf_ppc64): Likewise.
771 2002-07-14  Andreas Jaeger  <aj@suse.de>
773         * config.gcc (sh64): Remove unused
774         target_requires_64bit_host_wide_int.
776 2002-07-12  Roger Sayle  <roger@eyesopen.com>
778         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
779         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
780         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
781         whether clear_by_pieces should be used to clear storage.
782         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
784         * doc/tm.texi: Document these two new target macros.
786 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
788         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
789         the scratch register.
790         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
791         of it, forbid reload to use it.
793 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
795         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
796         usage on 64-bit hosts, return value was truncated to 32 bits.
798 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
800         * simplify-rtx.c (simplify_subreg): Handle floating point
801         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
802         the element mode is requested, compute a subreg with an
803         integer mode of the same size as the element mode first.
805 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
807         * combine.c (try_combine): When converting a paradoxical subreg
808         to an extension, take LOAD_EXTEND_OP into account.
810 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
812         * config.gcc (mips-sgi-irix6*o32): New configuration.
814         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
815         configurations.
816         * configure: Regenerate.
818         * config/mips/iris6-o32-as.h: New file.
819         * config/mips/iris6-o32.h: New file.
821         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
822         (NM_FLAGS): Define.
823         (HAVE_AS_SHF_MERGE): Undefine.
825         * config/mips/t-iris5-as: New file.
826         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
828         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
829         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
830         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
831         dp-bit.c, fp-bit.c): Move ...
832         * config/mips/t-iris5-6: ... here.
833         New file, shared by IRIX 5 and IRIX 6.
834         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
835         mips-sgi-irix5*): Use it.
837         * config/mips/iris6.h: Remove duplicate comment.
839         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
840         !TARGET_IRIX6]: Define.
841         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
843         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
845 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
847         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
848         and delete code to force constant to register.
849         * pa-protos.h (adddi3_operand): Add prototype.
850         * pa.c (adddi3_operand): New function.
852 2002-07-11  Roger Sayle  <roger@eyesopen.com>
854         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
855         non-ANSI builtin functions.
857 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
859         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
860         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
861         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
862         (gen_const_vector_0): Use it.
864 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
866         * pa.md (adddi3): For 32-bit targets, force constants to a register
867         if they don't fit in an 11-bit immediate.  Change insn predicate to
868         arith11_operand.  Remove comment.
869         * pa.c (cint_ok_for_move): Fix comment.
870         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
871         targets.
873 2002-07-11  Tim Josling  <tej@melbpc.org.au>
875         Remove front end hard coding from gengtype.c.
877         * Makefile.in
878         (STAGESTUFF): add gtyp-gen.h
879         (GTFILES): Remove front end specific files.
880         (GTFILES_FILES_LANGS): New, from configure..
881         (GTFILES_FILES_FILES): Likewise.
882         (GTFILES_LANG_DIR_NAMES): Likewise.
883         (GTFILES_SRCDIR): Likewise.
884         (gtyp-gen.h): Build from configure information.
885         (s-gtype): Remove command line parameters from gengtype.
886         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
887         (mostlyclean): Delete files generated by and for gengtype.
889         * c-config-lang.in: New file.
891         * configure.in (all_gtfiles_files_langs): New. Accumulate files
892         for each language.
893         (all_gtfiles_files_files): New. Accumulate language for each file
894         accumulated.
895         (gtfiles): Pick up value for C.
896         (srcdir): AC-SUBST this variable.
897         (all_gtfiles_files_langs): AC-SUBST this variable.
898         (all_gtfiles_files_files): AC-SUBST this variable.
900         * configure: Regenerate.
902         * gengtype-lex.l (parse_file): Make parameter const.
904         * gengtype.c (toplevel): include gtyp-gen.h.
905         (BASE_FILE_<language> unnamed enum): Delete.
906         (lang_names): Delete (replaced by gtyp-gen.h)
907         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
908         all references.
909         (NUM_GT_FILES): New.
910         (NUM_LANG_FILES): New.
911         (srcdir_len): New.
912         (NUM_BASE_FILES): Change calculation.
913         (open_base_files): Change prototype to avoid warning.
914         (startswith): Delete.
915         (get_file_basename): Iterate through generated language list not
916         hard coded list.
917         (get_base_file_bitmap): Use generated list of files and languages.
918         (close_output_files): Add prototype to rmove warning.
919         (main): Iterate through list of generated files from gtyp-gen.h
920         rather than command line paramaters.  Ignore duplicated file
921         names.
923         * gengtype.h (parse_file): Amend prototype for const parameter.
925         * doc/sourcebuild.texi: Document gtfiles variable.
927         * doc/gty.texi: Document changes to gtfiles variable for front
928         ends.
930         * objc/config-lang.in (gtfiles): Add files needed for objc front
931         end.
933 2002-07-10  Roger Sayle  <roger@eyesopen.com>
935         PR c/2454
936         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
937         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
939 2002-07-10  Roger Sayle  <roger@eyesopen.com>
940             Zack Weinberg <zack@codesourcery.com>
942         * builtins.def: Make the argument types of abort and exit
943         independent of the front-end.
945 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
947         * config/rs6000/linux64.h (ASM_SPEC): Define.
949 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
951         * config/rs6000/rs6000.c (emit_frame_save): New.
952         (rs6000_frame_related): Replace reg2 before reg.
953         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
954         and eh_return registers.
956 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
958         Revert all patches for optimization of Complex .op. Real.
959         * complex_part_zero_p: Remove
960         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
961         with x.
962         * expand_cmplxdiv_wide: Ditto.
963         * expand_binop: Ditto.
965 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
967         * config/avr/avr.md: Fix two 0x80000000 constants to make them
968         negative also on 64-bit hosts.
970         Default to -fno-reorder-blocks when optimizing for size.
971         * config/avr/avr-protos.h (avr_optimization_options): Declare.
972         * config/avr/avr.c (avr_optimization_options): New function.
973         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
975         Optimize returning from simple functions.
976         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
977         * config/avr/avr.c (avr_simple_epilogue): New function.
978         * config/avr/avr.md (return): New insn.
980 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
982         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
983         HAS_INIT_SECTION to protection.
985 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
987         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
988         deprecated.
990 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
992         * combine.c (gen_lowpart_for_combine): Handle vector modes.
993         Supply non-VOID mode to simplify_gen_subreg.
995 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
997         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
999 2002-07-10  Jeffrey A Law  <law@redhat.com>
1001         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1002         as appropriate.
1004         * mn10200.c (expand_epilogue): Fix test to determine which scratch
1005         register to use.
1007 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
1009         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1010         Get mode from dest.
1011         If simplify_gen_subreg fails, try next equivalent.
1013 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
1015         * diagnostic.h: #include location.h
1016         (location_t): Move definition to..
1017         * location.h: ... here.  New file.
1018         * tree.h: #include location.h
1019         (DECL_SOURCE_LOCATION): New macro.
1020         (DECL_SOURCE_FILE): Use.
1021         (DECL_SOURCE_LINE): Likewise.
1022         (struct tree_decl): REplace filename and linenum with locus.
1023         * Makefile.in (TREE_H): add location.h
1024         (diagnostic.o): Depends on gt-location.h
1025         (gt-location.h): Depends on s-gtype
1027 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
1029         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1030         TARGET_OS_CPP_BUILTINS.
1031         * config/rs6000/aix31.h: Likewise.
1032         * config/rs6000/aix41.h: Likewise.
1033         * config/rs6000/aix43.h: Likewise.
1034         * config/rs6000/aix51.h: Likewise.
1035         * config/rs6000/beos.h: Likewise.
1036         * config/rs6000/darwin.h: Likewise.
1037         * config/rs6000/eabi.h: Likewise.
1038         * config/rs6000/eabisim.h: Likewise.
1039         * config/rs6000/linux.h: Likewise.
1040         * config/rs6000/linux64.h: Likewise.
1041         * config/rs6000/lynx.h: Likewise.
1042         * config/rs6000/mach.h: Likewise.
1043         * config/rs6000/rtems.h: Likewise.
1044         * config/rs6000/sysv4.h: Likewise.
1045         * config/rs6000/vxppc.h: Likewise.
1047 2002-07-09 Devang Patel <dpatel@apple.com>
1048         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1049         Do not allow ObjC objects as a parameter type for Objective-C methods.
1050         My previous patch restricted  'struct' also.
1052 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
1054         * cpperror.c (cpp_error): Default to directive_line within
1055         directives here.
1056         * cppexp.c (cpp_interpret_integer): Only use traditional
1057         number semantics in directives.
1058         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1059         (do_include_common): Similarly.
1060         * cpptrad.c (scan_out_logical_line): Implement accurate
1061         quoting of <> in #include.
1062         * doc/cpp.texi: Update.
1064 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
1065                           J"orn Rennecke <joern.rennecke@superh.com>
1067         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1068         * sh.md (attribute issues): Replace with:
1069         (attribute pipe_model).  All users changed.
1070         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1071         All users changed.
1072         (function units sh5issue, sh5fds): New.
1073         (attribute is_mac_media): New.
1074         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1075         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1076         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1077         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1078         (call_media, call_value_media, sibcall_media): Likewise.
1079         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1080         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1081         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1082         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1083         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1084         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1085         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1086         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1087         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1088         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1089         (truncdfsf2_media): Likewise.
1090         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1091         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1093 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
1095         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1096         * sh.c (general_extend_operand, inqhi_operand): New functions.
1097         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1098         alternatives using 'N' modifier.  Add type.
1099         (adddi3z_media): Likewise.  Enable generator function generation.
1100         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1101         exact predicates / constraints.  Add type.
1102         (subsi3): Allow 0 for SHMEDIA.
1103         (udivsi3_i4_media): Use match_operand for input values
1104         rather than hard registers.
1105         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1106         unnecessarily through hard registers.  Keep copies of pseudo
1107         registers outside of the libcall sequence.
1108         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
1109         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1110         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1111         (extendhidi2, extendqidi2): Likewise.
1112         (andsi3_compact): Name.
1113         (andcdi3): Enable generator function generation.
1114         (zero_extendhisi2, zero_extendqisi2): Rename to
1115         (zero_extendhisi2_compact, zero_extendqisi2_compact).
1116         (extendhisi2, extendqisi2): Rename to
1117         (extendhisi2_compact, extendqisi2_compact).
1118         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1119         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1120         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1121         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1122         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1123         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1124         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1125         (shmedia32_initialize_trampoline_big): Likewise.
1126         (shmedia32_initialize_trampoline_little): Likewise.
1127         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1128         (negdi2): Remove spurious T clobber.
1129         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1130         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1131         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1132         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1133         (ic_invalidate_line_media): Write back data cache before invalidating
1134         instruction cache.  Add type.
1135         (movsf_media): Sign-extend when the destination is a general
1136         purpose register.  Add type.
1137         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1138         (casesi_worker_0+1): Only increment ref count for proper label.
1139         (casesi_worker_0+2): Likewise.
1141 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
1143         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1145 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
1147         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1148         from Pmode to ptr_mode.
1149         (get_exception_pointer): Ditto.
1150         (connect_post_landing_pads): Ditto.
1151         (dw2_build_landing_pads): Ditto.
1153 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
1154         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1155         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1156         (handle_pragma_redefine_extname): Change to use new function.
1158 2002-07-08  Roger Sayle  <roger@eyesopen.com>
1160         * combine.c (combine_simplify_rtx): Add an explicit cast
1161         to avoid signed/unsigned comparison warning.
1162         (simplify_if_then_else): Likewise.
1163         (extended_count): Likewise.
1164         (simplify_shift_const): Likewise.
1165         (simplify_comparison): Likewise.
1167 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
1169         * config/mips/mips.md: Add imadd type.  Update scheduler description
1170         to use imadd as well as imul.
1171         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1172         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1173         (*mul_sub_si): Likewise for first alternative.  Change second
1174         alternative from imul to multi.
1176 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
1178         * c-common.c (c_common_post_options): Update prototype;
1179         don't init backends if preprocessing only.
1180         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1181         * langhooks.h (struct lang_hooks): Update post_options to
1182         return a boolean.
1183         * toplev.c (parse_options_and_default_flags, do_compile,
1184         lang_independent_init): Update prototypes.  Allow the
1185         front end to specify that there is no need to initialize
1186         the back end.
1187         (general_init): Move call to hex_init here...
1188         (toplev_main): ...from here.  Pass flag for back end init
1189         suppression.
1191 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1193         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1194         (PREDICATE_CODES): Add entries for equality_comparison_operator,
1195         greater_comparison_operator and less_comparison_operator.
1196         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
1197         more operators.
1198         (equality_comparison_operator): New function.
1199         (greater_comparison_operator, less_comparison_operator): Likewise.
1200         * sh.md (beq_media_i): Disable generator function generation.
1201         Use match_operator to handle a whole class of comparisons.  Add
1202         modifier in output template to provide branch prediction.  Add type.
1203         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
1204         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1205         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1206         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1208 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
1210         Emit MMIX function prologue and epilogue as rtl.
1211         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1212         not unprototyped get_hard_reg_initial_val.
1213         ("call_value", "nonlocal_goto_receiver"): Ditto.
1214         ("return"): Make define_expand.  Move real insn to...
1215         ("*expanded_return"): New pattern.
1216         ("prologue", "epilogue"): New define_expands.
1217         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1218         (struct machine_function): New member in_prologue.
1219         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1220         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1221         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1222         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1223         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1224         (LOCAL_REGNO): Define.  Adjust comment.
1225         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1226         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1227         leaf_function_p.
1228         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1229         the prologue.
1230         (mmix_target_asm_function_prologue): Make static.  Just mark that
1231         the prologue is being emitted.  Move guts to...
1232         (mmix_expand_prologue): New function.  Adjust for emitting
1233         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
1234         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
1235         \n.  Move guts to...
1236         (mmix_expand_epilogue): New function.  Adjust for emitting
1237         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
1238         (mmix_target_asm_function_end_prologue): Mark that the prologue
1239         has ended.
1240         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1241         (mmix_conditional_register_usage): Improve comments.
1242         (mmix_local_regno): New function.
1243         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1244         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1245         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1246         (mmix_get_hard_reg_initial_val): Ditto.
1248 2002-07-06  Andreas Jaeger  <aj@suse.de>
1250         * toplev.c (set_fast_math_flags): Don't use ISO C style function
1251         definitions.
1252         * gengtype.c (open_base_files): Likewise.
1253         (close_output_files): Likewise.
1254         * tracer.c (find_best_predecessor): Likewise.
1255         (find_best_successor): Likewise.
1256         (ignore_bb_p): Likewise.
1258 2002-07-05  Roger Sayle  <roger@eyesopen.com>
1260         PR c++/7099
1261         * builtin-attrs.def: Define new attribute lists for use in
1262         builtins.def.
1263         * builtins.def [DEF_BUILTIN]: Modify to take an additional
1264         ATTRS argument, an enumerated value defined in builtin-attrs.def
1265         that represents the attribute list for the builtins.  Modify
1266         all builtin functions to pass an appropriate attribute list.
1267         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1268         their required noreturn attributes.
1269         * tree.h (enum_builtin_function): Ignore the additional parameter
1270         to DEF_BUILTIN.
1271         * builtins.c (built_in_names): Likewise.
1272         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1273         argument with a tree representing the functions attribute list.
1274         Pass this "attrs" argument to builtin_function.  No longer handle
1275         the noreturn_p processing manually.
1276         (built_in_attributes): Move the definitions from builtin-attrs.def
1277         before c_common_nodes_and_builtins.
1278         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1279         DEF_BUILTIN, passing it to both builtin_function and the changed
1280         builtin_function_2.
1282         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1283         __builtin__exit and __builtin__Exit.
1285 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1287         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1288         QI mode registers in soft registers.
1289         ("zero_extendqihi2"): Do not take into account soft registers
1290         for register allocation (use '*' constraint).
1292 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1294         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1295         it is dead.
1296         ("*ashrsi3"): Likewise.
1297         ("*lshrsi3"): Likewise.
1299 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
1301         * genautomata.c (output_max_insn_queue_index_def): Take latencies
1302         into account.
1304 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1306         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1307         address computation and memory moves.
1309 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
1311         PR c++/6706
1312         * dwarfout.c (output_reg_number): Fix warning message.
1313         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1314         before using it.
1316 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1318         * gcc/gcc.c (asm_debug): Move initialization ...
1319         (init_spec): ... here.
1321 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1323         * c-parse.in (extdef): Append ';'.
1324         (old_style_parm_decls): Append ';'.
1326 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
1328         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1329         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1330         to gcc_cv_as_gstabs_flag.
1331         * configure: Rebuilt.
1333 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
1335         * ggc.h (ggc_add_root): Document as obsolete.
1337 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
1339         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1340         (mshflo_w): Likewise.
1342 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1344         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1345         vector mode subregs of constants to finding integer mode
1346         subregs of constants.
1347         * cse.c (cse_insn): Use simplify_gen_subreg.
1348         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1349         From a vector mode expression of different size than the
1350         target mode.
1352 2002-07-03  Eric Christopher  <echristo@redhat.com>
1354         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1355         * config/mips/mips.h: Remove deprecated -m<processor> options
1356         and cc1_cpu_spec associated.
1357         (CONSTANT_ADDRESS_P): Fix last patch.
1358         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1359         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1360         sunge_sf): Remove.
1362 2002-07-03  Stan Shebs  <shebs@apple.com>
1364         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1365         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1366         (CPP_SPEC): Remove insertion of APPLE_CC definition.
1368 2002-07-03  Roger Sayle  <roger@eyesopen.com>
1370         * combine.c (struct_undo): Change types of recorded substitutions
1371         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1372         (do_SUBST_INT): Change types of the substitution from unsigned int
1373         to int, to avoid compilation warning from SUBST_INT's only caller.
1375         (make_extraction): Add cast to avoid compilation warning.
1376         (force_to_mode): Remove cast to avoid compilation warning.
1378 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
1379             Jeff Law  <law@redhat.com>
1381         * i386.md (length_immediate attribute): Fix typo.
1382         (length_address attribute): Likewise.
1383         (modrm attribute): Set it to 0 for immediate call instructions.
1384         (jcc_1 pattern): Set modrm attribute to 0.
1385         (jcc_2 pattern ): Likewise.
1386         (jump pattern): Likewise.
1387         (doloop_end_internal pattern): Explicitly set length.
1388         (leave pattern): Fix typo.
1389         (leave_rex64 pattern): Likewise.
1391 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
1393         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1394         in FPR as preference.
1395         (fctiwz): Same.
1396         (floatdidf2, fix_truncdfdi2): Same.
1397         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1398         (floatditf2): Same.
1399         (floatsitf2, fix_trunctfsi2): SImode in GPR.
1400         (ctrdi): Remove FPR alternative and splitter.
1402 2002-07-03  Will Cohen  <wcohen@redhat.com>
1404         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1406 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
1408         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1409         than UNITS_PER_WORD, unless this is little endian and the first unit
1410         in this word.  Let extract_bit_field decide how to load an element.
1411         Force arguments to matching mode.
1412         (expand_vector_unop): Likewise.
1414         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1415         consist of word_mode elements.
1416         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1417         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1418         (build_unary_op): Allow vector types for BIT_NOT_EPR.
1419         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1420         CONST_VECTOR.
1421         * optabs.c (expand_vector_binop): Try to perform operation in
1422         smaller vector modes with same inner size.  Add handling of AND, IOR
1423         and XOR.  Reject expansion to inner-mode sized scalars when using
1424         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
1425         (expand_vector_unop): Try to perform operation in smaller vector
1426         modes with same inner size.  Add handling of one's complement.
1427         When there is no vector negate operation, try a vector subtract
1428         operation.  Use simplify_gen_subreg on constants.
1429         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1430         constants into smaller vectors with same inner mode, and to
1431         integer CONST_DOUBLEs.
1433 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1435         * c-parse.in (parsing_iso_function_signature): New variable.
1436         (extdef_1): New, copied from...
1437         (extdef): ... here.  Reset parsing_iso_function_signature.
1438         (old_style_parm_decls):  Reset parsing_iso_function_signature.
1439         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1440         Warn about ISO C style function definitions.
1441         (nested_function, notype_nested_function): Reset
1442         parsing_iso_function_signature.
1443         (parmlist_2): Set parsing_iso_function_signature.
1445         * doc/invoke.texi (-Wtraditional): Document new behavior.
1447 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
1449         * config.gcc (mips*el-*-*): Use tm_defines to set
1450         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1451         * config/mips/little.h: Remove.
1453 2002-07-02 Devang Patel <dpatel@apple.com>
1455         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1456         object as parameter. Prevent something like 'NSObject' to be
1457         used as the type for a method argument.
1459 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
1461         * cpptrad.c: Update comment.
1463 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1465         * doc/cpp.texi: Update for traditional preprocessing changes.
1466         * goc/cppopts.texi: Similarly.
1468 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
1470         * c-parse.in (designator): Enable designated initializers if ObjC.
1471         (objcmessageexpr): Remove references to objc_receiver_context.
1472         * objc/objc-act.h (objc_receiver_context): Remove decl.
1473         * objc/objc-act.c (objc_receiver_context): Remove.
1474         (lookup_objc_ivar): Test objc_method_context instead of
1475         objc_receiver_context.
1477 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
1479         * sh.c (print_operand, case 'N'): Allow zero vector.
1480         (arith_reg_or_0_operand): Likewise.
1481         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1482         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
1483         IOR, XOR, PLUS and SET and take their respective constant
1484         ranges into account.
1485         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1486         * sh.md (subdi3, subdi3_media): Allow zero operand.
1487         (movv8qi_i+3): Only vector that is not split is the zero vector.
1488         Fix operand 3 to simplify_subreg.
1489         (movv2si_i): Split alternative 1.
1490         (mshfhi_l_di_rev+1): New splitter.
1492 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1494         PR preprocessor/7029
1495         * cppinit.c (cpp_handle_option):  Suppress warnings with an
1496         implicit "-w" for "-M" and "-MM".
1497         * doc/cppopts.texi: Update.
1499 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1501         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1502         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
1503         builtin_function.
1505 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1507         * README.Portability: Fix typos.
1509 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
1511         PR target/7177
1512         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1513         of indirections for register inside sign-extended mem part.
1515 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1517         * tree.h:  Modify builtin_function interface to take an extra
1518         argument ATTRS, which is a tree representing an attribute list.
1520         * c-decl.c (builtin_function): Accept additional parameter.
1521         * objc/objc-act.c (builtin_function): Likewise.
1522         * f/com.c (builtin_function): Likewise.
1523         * java/decl.c (builtin_function): Likewise.
1524         * ada/utils.c (builtin_function): Likewise.
1525         * cp/decl.c (builtin_function): Likewise.
1526         (builtin_function_1): Likewise.
1528         * c-common.c (c_common_nodes_and_builtins): Pass an additional
1529         NULL_TREE argument to builtin_function.  (builtin_function_2):
1530         Likewise.
1531         * cp/call.c (build_java_interface_fn_ref): Likewise.
1532         * objc/objc-act.c (synth_module_prologue): Likewise.
1533         * java/decl.c (java_init_decl_processing): Likewise.
1534         * f/com.c (ffe_com_init_0): Likewise.
1536         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1537         NULL_TREE argument to builtin_function.
1538         * config/arm/arm.c (def_builtin): Likewise.
1539         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1540         * config/i386/i386.c (def_builtin): Likewise.
1541         * config/ia64/ia64.c (def_builtin): Likewise.
1542         * config/rs6000/rs6000.c (def_builtin): Likewise.
1544 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
1546         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1547         * config/mips/t-isa3264: Likewise.
1548         * config/mmix/t-mmix: Likewise.
1550 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1552         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1554 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1556         PR opt/4046
1557         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1558         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1559         B are truth values.
1561 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1563         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1565 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
1567         * README.Portability (Function prototypes): Give an example of
1568         declaring and defining a function with no arguments.
1570         * README.Portability (Function prototypes): Document new
1571         variable-argument function macros.
1573 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
1575         * sh.c (langhooks.h): Include.
1576         (sh_init_builtins, sh_media_init_builtins): New functions.
1577         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1578         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1579         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1580         (builtin_description): New struct tag.
1581         (signature_args, bdesc): New arrays.
1582         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1583         (print_operand): Add 'N' modifier.
1584         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1585         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1586         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1587         (CONST_COSTS): Add special case for SHmedia AND.
1588         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1589         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1590         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1591         target_operand can also be const or unspec.
1592         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1593         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1594         (attribute type): Add new types.
1595         (anddi3): Add splitter.
1596         (movdi_const_16bit+1): Add code to handle vector constants and
1597         bitmasks efficiently.
1598         (shori_media): Have generator function made.
1599         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1600         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1601         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1602         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1603         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1604         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1605         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1606         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1607         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1608         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1609         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1610         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1611         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1612         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1613         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1614         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1615         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1616         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1617         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1618         (ftrv): Likewise.
1620         (fpu_switch+1, fpu_switch+2): Remove constraint.
1622 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
1624         * tree.c (build_function_type_list): Update function comment.
1625         Rename first argument to return_type.
1627 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1629         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1630         tradcif.y and related files.
1632 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1634         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1636 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1638         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1640 2002-06-30  Devang Patel  <dpatel@apple.com>
1642         * objc/objc-act.c (finish_file): Avoid finish_objc() if
1643         -fsyntax-only.
1645 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
1646                           Frank Ch. Eigler  <fche@redhat.com>
1647                           Matthew Green  <mrg@redhat.com>
1648                           Richard Henderson <rtl@redhat.com>
1649                           Dave Hudson  <dave.hudson@ubicom.com>
1650                           Jeff Johnston  <jjohnstn@redhat.com>
1651                           Alan Lehotsky <apl@alum.mit.edu>
1652                           Bernd Schmidt  <bernds@redhat.com>
1653                           Graham Stott  <grahams@redhat.com>
1655         * doc/extend.texi: Add ip2k port to description of attribute
1656         naked.
1657         * doc/install.texi (Specific): Add ip2k description.
1658         * doc/install-old.texi (Configurations): Add ip2k to possible
1659         cpu types.
1660         * doc/md.texi: Document ip2k constraints.
1661         * config/ip2k/crt0.S: New file.
1662         * config/ip2k/ip2k-protos.h: New file.
1663         * config/ip2k/ip2k.c: New file.
1664         * config/ip2k/ip2k.h: New file.
1665         * config/ip2k/ip2k.md: New file.
1666         * config/ip2k/libgcc.S: New file.
1667         * config/ip2k/t-ip2k: New file.
1669 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
1671         * config/mmix/mmix.md ("return"): New pattern.
1672         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1673         (TARGET_USE_RETURN_INSN): New macros.
1674         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1675         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1676         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1677         (MMIX_POP_ARGUMENT): New macro.
1678         (mmix_target_asm_function_prologue): When no epilogue is executed,
1679         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
1680         (mmix_print_operand) <case '.'>: New case.
1681         (mmix_print_operand_punct_valid_p): Match '.'.
1682         (mmix_use_simple_return): New function.
1683         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1684         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1685         -msingle-exit, -mno-single-exit.
1686         (MMIX Options): Ditto.
1688 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
1690         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1692 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1694         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1696 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
1698         * unroll.c (loop_iterations): Handle EQ loops.
1700 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
1702         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1703         constraint in define_expand, not splitter.
1704         Formatting.
1706 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
1708         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1709         build_function_type_list instead of build_function_type.
1711         * config/ia64/ia64.c (ia64_init_builtins): Same.
1713         * config/alpha/alpha.c (alpha_init_builtins): Same.
1715         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1717         * config/arm/arm.c (arm_init_builtins): Same.
1719         * tree.h: Add build_function_type_list prototype.
1721         * tree.c (build_function_type_list): New.
1723 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1725         * collect2.c (scan_prog_file): Fix typo in message.
1727 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
1729         * fold-cont.c: Remove unused CHARMASK.
1731 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
1733         PR preprocessor/7150
1734         * cppmain.c (scan_translation_unit_trad): Simplify.
1735         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1737 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1739         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1740         Don't use CPP_PREDEFINES.
1741         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1742         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1743         * config/i386/djgpp.h, config/i386/i386-coff.h,
1744         config/i386/i386-interix.h, config/i386/i386-interix3.h,
1745         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1746         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1747         config/i386/uwin.h: Similarly.
1749 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1751         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1752         flag_inline_trees to enable inlining.
1754 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
1756         * configure.in (gcc_gxx_include_dir):  Change to match versioned
1757         C++ headers if --enable-version-specific-runtime-libs is used.
1758         * configure:  Regenerate.
1760 2002-06-28  Jan Hubicka  <jh@suse.cz>
1762         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1764 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
1766         * combine.c (combine_simplify_rtx): Pass the mode of the
1767         shift count, not the shift operation when trying to simplify
1768         a shift on a SHIFT_COUNT_TRUNCATED target.
1770 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1772         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1773         avoid the auto increment addressing modes.
1774         ("*subsi3"): Likewise.
1775         (split for add/sub on address): For 68HC12 push the value on
1776         the stack and do the operation with a pop.
1778 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1780         * cpplib.c (_cpp_handle_directive): Move #define-specific
1781         code to the #define handler...
1782         (do_define): ...here.
1783         (lex_macro_node): No longer a need to check for comments here.
1785 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1787         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1788         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1789         Declare.
1790         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1791         do not reorder basic blocks at the end when optimizing for size.
1793 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1795         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1796         (m68hc11_make_autoinc_notes): New function.
1797         (m68hc11_split_move): Be very cautious when spliting a move with
1798         auto increment/decrement modes because this may result in incompatible
1799         directions; add REG_INC notes to the resulting insn for CSE reg.
1801 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
1803         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1804         can be a valid address.
1806 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
1808         * config/rs6000/rs6000.c: Remove unusued variables from last
1809         patch.
1811 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1813         Revert:
1814         * config/rs6000/rs6000.c (rs6000_override_options): Move
1815         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1817 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1819         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1820         lvx/stv/dst builtins...
1821         (altivec_expand_ld_builtin): ...to here.
1822         (altivec_expand_st_builtin): ...here.
1823         (altivec_expand_dst_builtin): ...and here (respectively).
1825 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
1827         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1829 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
1831         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1832         subregs.
1833         * recog.c (general_operand, register_operand): Disallow them.
1835 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1837         PR preprocessor/7138
1838         * cpplib.c (_cpp_handle_directive): Do traditional
1839         preparation after setting state.angled_headers.
1840         * cpptrad.c (scan_out_logical_line): Fix potential
1841         quote bug.
1843 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1845         * config/rs6000/rs6000.c (rs6000_override_options): Move
1846         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1848 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
1850         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1851         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1852         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1854 2002-06-27  Roger Sayle  <roger@eyesopen.com>
1856         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1857         * config/stormy16/stormy16.h: Likewise.
1859         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1860         with #define.
1862 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1864         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
1865         Hitachi entry.  Make punctuation more consistent.
1867 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
1869         * doc/install.texi: Change ` bit' to `-bit'.
1870         * doc/md.texi: Change `-bits' to `-bit'.
1871         * doc/tm.texi: Change `-bits' to ` bits'.
1873 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
1875         * gcse.c (hoist_code): Rewrite to only get list of dominated
1876         blocks once per BB. Also fix reversed test (by removing need for
1877         the test at all).
1879 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1881         * cpphash.h (_cpp_set_trad_context): Remove.
1882         * cpplib.c (prepare_directive_trad): Do nothing for #define.
1883         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1884         * cpptrad.c: Update comments.
1885         (_cpp_read_logical_line_trad): Let scan_logical_line handle
1886         updating the current context.
1887         (scan_logical_line): Update the current context.
1888         (_cpp_create_trad_definition): Similarly.
1889         (_cpp_set_trad_context): Remove.
1891 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1893         PR preprocessor/7070
1894         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1896 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
1898         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1899         config/xtensa/xtensa.c (xtensa_return_addr): New function.
1900         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1901         config/xtensa/xtensa.md (fix_return_addr): New pattern.
1903 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1905         * mips.c (coprocessor_operand, coprocessor2_operand,
1906         symbolic_operand): Move prototypes from here...
1907         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1908         symbolic_operand): ...to here.
1910 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1912         * config/sh/crt1.asm: remove _stack label definition
1913         and sentinel value.
1915 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1917         * varasm.c: Include real.h before output.h.
1919 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
1921         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1922         check for TARGET_ALTIVEC.
1924 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1926         * config.gcc (vax-*-vms*): Make obselete.
1928 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1930         * gcc.c (warn_std): Delete.
1932 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
1934         * doc/extend.texi: Fix formatting of last checkin.
1936 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1938         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1939         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1941 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
1943         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1944         discrepancies from motorola's documentation.
1946 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
1948         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1949         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
1951         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
1952         produce a 32 bit result before normalization, then normalize with a
1953         left shift.  Compute approximative error of 2nd reciprocal
1954         approximation in 2's complement.  Fix mask generation from upper
1955         longword of second divide stage result.
1956         For large divisor, fix shift count used to truncate first stage
1957         divide result; make decision if to adjust upwards based on comparison
1958         of higher parts of normalized values.
1959         (udivdi): Likewise.  Undo normalization of result for large divisor
1960         case.
1962 2002-06-25  David S. Miller  <davem@redhat.com>
1964         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1966 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
1968         * cpplib.c (do_include_common): Revert to correct line number
1969         if -traditional.
1970         * cpptrad.c (scan_out_logical_line): Treat null directive as
1971         white space.  Invlidate MI optimization for non-whitespace
1972         text outside a directive.
1974 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1976         * Makefile.in (SHELL): Set to @SHELL@.
1977         * fixinc/Makefile.in (SHELL): Likewise.
1979         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1980         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1981         initialization.
1983 2002-06-24  Jeff Law <law@redhat.com>
1985         * flow.c (propagate_one_insn): When removing an insn
1986         with a REG_LIBCALL note but not the entire libcall sequence,
1987         delete the associated REG_RETVAL note.
1989 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
1991         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1992         (udivsi3): Likewise.  Rewrite SH1 implementation.
1993         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1994         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1995         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1996         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1997         (_moddi3): Likewise.
1999         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2001         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2002         arguments into account for stack_regs.
2004 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
2006         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2007         in examples.
2009 2002-06-24  Art Haas  <ahaas@neosoft.com>
2011         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2012         * doc/tm.texi (Frame Layout): Likewise.
2014 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
2016         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2017         Set float_format to i128.
2019 2002-06-24  David S. Miller  <davem@redhat.com>
2021         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2022         32-bit ABI libfuncs to NULL.
2024         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
2025         strings instead of quoted strings for code blocks.
2027         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2028         optabs if op1 is const0_rtx.
2030         * Makefile.in (GTFILES): Add basic-block.h
2031         * basic-block.h (label_value_list, tail_recursion_label_list):
2032         Mark with GTY.
2034 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
2036         * cpptrad.c (scan_out_logical_line): Check recursing only when
2037         we know we have a macro invocation in the function-like case.
2038         Only call _cpp_handle_directive if we know we have a good
2039         directive, or we want to reject a bad directive.
2041 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
2043         * doloop.c (doloop_valid_p): Correct comment.
2044         (doloop_modify_runtime <abs_inc != 1>): Simplify.
2045         (doloop_modify_runtime <do-while>): Don't emit code when NE.
2047 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
2049         * config.gcc: Add support for ip2k.
2051 2002-06-23  Jan Hubicka  <jh@suse.cz>
2052             Jeff Law <law@redhat.com>
2054         * function.h (struct emit_status): Clarify potential contents
2055         of regno_reg_rtx array.
2056         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
2057         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2059         * reg-stack.c (convert_regs_exit): Push the registers to stack in
2060         proper order.
2062 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2064         PR middle-end/6963
2065         * function.c (assign_stack_temp_for_type): Do not return
2066         the same MEM rtx for multiple uses of a stack slot.
2068 2002-06-22  David S. Miller  <davem@redhat.com>
2070         PR target/6841 target/6770 target/6719
2071         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2072         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2073         GENERAL_OR_EXTRA_FP_REGS.
2075 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
2077         * cpptrad.c (struct fun_macro): Add line number.
2078         (scan_out_logical_line): Set it, and use it to report unterminated
2079         macro invocations.
2081 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2083         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2084         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2085         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2086         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2087         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2088         REGEXP_ONEOF, check_name): Const-ify.
2090 2002-06-21  Matt Thomas  <matt@3am-software.com>
2092         * config/vax/vax.c (vax_output_function_prologue): Use
2093         REGISTER_PREFIX.  Fix some indentation.
2094         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2095         (VAX_ISTREAM_SYNC): Define.
2096         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
2097         i-stream sync to the end.
2098         (REGISTER_PREFIX): Define as "".
2099         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2101 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
2103         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2104         configurations.
2106 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2108         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2109         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2111 2002-06-21  Matt Thomas  <matt@3am-software.com>
2113         * config/vax/netbsd.h: Adjust a comment.
2114         (TARGET_DEFAULT): Redefine as 0.
2116 2002-06-21  Richard Henderson  <rth@redhat.com>
2118         * bb-reorder.c (make_reorder_chain_1): Search harder for the
2119         vax casesi fallthru edge.
2120         * cfglayout.c (cleanup_unconditional_jumps): Use
2121         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
2122         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2123         block after ADDR_VEC.
2125 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2127         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2129 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
2131         * cpperror.c (cpp_error): For traditional CPP, default to
2132         diagnostics on pfile->line.
2133         * cpplib.c (prepare_directive_trad): Set line number for
2134         diagnostics for #define too.
2135         * cpptrad.c (skip_whitespace): Skip comments properly.
2136         (_cpp_expansions_different_trad): Initialize quote2.
2138 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
2140         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2141         * config/mmix/mmix.h: Ditto.
2142         * config/mmix/mmix-protos.h: Ditto.
2143         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
2144         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2145         comment.  Comment extra CC modes.
2147 2002-06-20 Jan Hubicka  <jh@suse.cz>
2149         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2150         (scope_to_insns_finalize): Do not call set_block_levels; handle
2151         sequences.
2152         (choose_inner_scope): New.
2153         * rtl.h (choose_inner_scope): Declare.
2155 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2157         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2158         HOST_WIDE_INT.
2159         * pa.c (pa_asm_output_mi_thunk): Likewise.
2160         (n_deferred_plabels): Change type to size_t.
2161         (output_deferred_plabels, output_call): Use size_t instead of int.
2163 2002-06-20  Richard Henderson  <rth@redhat.com>
2165         PR target/4041
2166         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2167         pattern and adjust constraints for coldfire.
2169 2002-06-20  Richard Henderson  <rth@redhat.com>
2171         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2173 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
2175         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2177 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
2179         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2181 2002-06-20  Stan Shebs  <shebs@apple.com>
2183         * dominance.c: Include errors.h instead of error.h.
2185 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
2187         * cppexp.c (cpp_interpret_integer): Don't force traditional
2188         numbers to be unsigned.
2189         * cpplib.c (prepare_directive_trad): Set line number for
2190         diagnostics.
2191         * cpptrad.c (scan_out_logical_line): Continue scanning out
2192         at start of buffer.
2193         * gcc.c (trad_capable_cpp): Use cc1 always.
2195 2002-06-20  Jeffrey Law  <law@redhat.com>
2197         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2198         elimination in leaf functions by default yet.
2200 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
2202         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2204 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2206         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2207         multilibs.
2208         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2209         Fixes PR other/6836.
2211 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
2212                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
2214         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
2216         * basic-block.h: Do not include et-forest.h
2217         (dominance_info): Declare as struct dominance-info.
2218         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2219         deleting block.
2220         * dominance.c (struct dominance_info): Define.
2221         (BB_NODE, SET_BB_NODE): New macros.
2222         (bb_hash_func, bb_eq_func): Kill.
2223         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2224         nearest_common_dominator, dominated_by_p, recount_dominator,
2225         add_to_dominance_info, delete_from_dominance_info): update for new
2226         representation.
2227         (get_dominated_by, redirect_immediate_dominators): Rewrite using
2228         enumerate_sons.
2229         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2230         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2231         structure.
2233         * et-forest.h: Update copyright; revamp all function to operate on
2234         nodes
2235         (et_forest_value): Kill.
2236         (et_forest_enumerate_sons, et_forest_node_value): New.
2237         * et-forest.c: Update copyright.
2238         * et-forest.h: Update copyright; revamp all function to operate on
2239         nodes
2240         (et_forest_value): Kill.
2241         (et_forest_enumerate_sons, et_forest_node_value): New.
2243         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2245         * basic-block.h: Inlude et-forest.h
2246         (basic_block_def): Kill dominator.
2247         (dominance_info): New type.
2248         (loops): Use dominace_info.
2249         (dominace handling functions): Take dominace_info as argument
2250         instead of bitmaps.
2251         (create_preheader): Likewise.
2252         * cfg.c (entry_exit_blocks): Kill dominator.
2253         (dump_flow_info): Do not dump dominators.
2254         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2255         dominators.
2256         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2257         (flow_loops_pre_header_scan, make_forwarder_block,
2258         canonicale_loop_headers, flow_loops_find): Likewise.
2259         * dominance.c: Include error.h
2260         (idoms_to_doms): Kill.
2261         (bb_hash_func, bb_eq_func): New static functions.
2262         (debug_dominace_info): New global function.
2263         (calculate_dominance_info): Use new et forest structure.
2264         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2265         get_dominated_by, redirect_immediate_dominators,
2266         nearest_common_dominator, dominated_by_p, verify_dominators,
2267         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2268         delete_from_dominance_info): New global functions.
2269         * gcse.c (domnators): CHange to dominance_info.
2270         (alloc_hoist_mem): Do not alloc dominators
2271         (free_code_hoist_mem): Use free_dominance_info.
2272         (compute_code_hoist_data): Use dominance_info.
2273         (hoist_code): Likewise.
2274         * ifcvt.c (post_dominators): Likewise.
2275         (find_if_case_2, if_convert): Likewise.
2276         * predict.c (process_note_predictions, process_note_prediction,
2277         estimate-probability): Likewise.
2278         * sched-rgn.c (find_rgns, init_regions): Likewise.
2279         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2280         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2281         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2282         find_evaluations, convert_to_ssa): Likewise.
2283         * ssa.h (compute_dominance_frontiers): Likewise.
2285         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2287         * Makefile.in (et-forest.c): Add.
2288         * et-forest.c: New file.
2289         * at-forest.h: New file.
2291 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2293         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2294         array size calculation.
2295         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2296         Likewise.
2298         * diagnostic.c (diagnostic_kind_text): Const-ify.
2299         * gengtype.c (lang_names): Likewise.
2301 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
2303         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2305 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2307         * config/sol2.h: New file.
2308         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2309         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2310         (sparc-*-chorusos*): Likewise.
2311         (sparc-*-elf*): Likewise.
2312         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2313         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2314         (sparc-hal-solaris2*): Likewise.
2315         (sparc-*-solaris2*): Likewise.
2316         (sparclite-*-elf*): Likewise.
2317         (sparc86x-*-elf*): Likewise.
2318         (sparc64-*-elf*): Likewise.
2320         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2321         config/sol2.h.
2322         (ASM_SPEC): Override config/sol2.h version for now.
2323         Removed obsolete GAS_REJECTS_MINUS_S variant.
2324         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2325         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2326         (TARGET_OS_CPP_BUILTINS): Likewise.
2327         Assert system=unix.
2328         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2329         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2330         config/sol2.h.
2331         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2332         (ASM_CPU_SPEC): Define.
2333         (SUBTARGET_EXTRA_SPECS): Define.
2335         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2336         in config/sparc/sol2.h.
2337         (ASM_SPEC): Moved to config/sol2.h.
2338         (CPP_CPU_SPEC): Simplified.
2339         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2340         consistency.
2341         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2342         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2343         STARTFILE_ARCH64_SPEC.
2344         (STARTFILE_SPEC): Moved to config/sol2.h
2345         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2346         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2347         (LINK_ARCH64_SPEC): Simplified.
2348         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2349         (LINK_SPEC): Moved to config/sol2.h
2351         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2352         config/sol2.h.
2353         Use BITS_PER_WORD for size.
2354         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2355         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2356         (CPP_PREDEFINES): Removed OS-specific part handled by
2357         TARGET_OS_CPP_BUILTINS.
2358         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2359         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2360         (ASM_SPEC): Moved to config/sol2.h.
2361         (PREFERRED_DEBUGGING_TYPE): Likewise.
2362         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2363         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2364         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2365         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2367         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2368         * config/i386/sol2gas.h: Removed.
2370 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2372         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2374 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
2376         * gcc.c-torture/execute/simd-1.c: New.
2378         * gcc.dg/simd-1.c: New.
2380         * doc/extend.texi (Vector Extensions): Document that we can
2381         specify simd types not specifically supported by the hardware.
2382         Document that simd types can be used as function arguments.
2383         Document that signness does make a difference in SIMD types.
2384         Misc cleanups and revisions to the vector extensions section.
2386         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2387         constants.
2389         * expr.c (vector_mode_valid_p): New.
2391         * expr.h: Add vector_mode_valid_p.
2393         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2395         * c-common.c (type_for_mode): Always build vector nodes regardless
2396         of VECTOR_MODE_SUPPORTED_P.
2397         (handle_mode_attribute): Error if we can't emulate a nonexisting
2398         vector mode.
2399         (handle_vector_size_attribute): Same.
2401         * optabs.c (expand_binop): Open-code vector operations.
2402         (expand_unop): Open-code vector unops.
2403         (expand_vector_binop): New.
2404         (expand_vector_unop): New.
2406         * c-typeck.c (build_binary_op): Allow vectors in binops.
2407         Allow vectors in conditional operatiors.
2408         (build_unary_op): Allow vectors in unary minus.
2410         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2411         TARGET_ALTIVEC.
2413 2002-05-20  Richard Henderson  <rth@redhat.com>
2415         * c-common.c (c_common_get_alias_set): Correctly handle characters.
2416         Rearrange order of expressions; don't handle vectors here.
2417         * alias.c (get_alias_set): Let vectors match their components.
2419 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
2421         * config/mips/mips.c (mips_emit_prefetch): Use hints which
2422         match desired locality.
2424 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
2426         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2427         (h8300_insert_attributes): New.
2429 2002-06-19  Akim Demaille  <akim@epita.fr>
2431         * c-parse.in (initelt: identifier ':' initval): Add an empty
2432         action to fix a type clash.
2433         (aliasdecl, classdef): Add the missing closing `;'.
2434         Whitespace changes.
2435         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2436         $$ = $1 type clashes.
2438 2002-06-19  Eric Christopher  <echristo@redhat.com>
2440         * config/mips/mips.c (symbol_operand): New function.
2441         (mips_emit_prefetch): Ditto.
2442         * config/mips/mips-protos.h: Define.
2443         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2444         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2445         (LEGITIMIZE_ADDRESS): Ditto.
2446         * config/mips/mips.md (prefetch, prefetch_si_address,
2447         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2449 2002-06-19  Eric Christopher  <echristo@redhat.com>
2451         * config/fp-bit.h: Add unordered defines for gofast.
2453 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
2455         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2456         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2457         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2458         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2459         checking and without it.
2460         (decl_name, decl_mode_check_failed, regexp_name,
2461         regexp_mode_check_failed): New functions.
2462         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2463         gen_presence_set, gen_absence_set, gen_automaton,
2464         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2465         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2466         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2467         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
2468         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2469         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
2470         (decl_hash, decl_eq_p): Use the macros.
2471         (find_decl): Ditto.  Set up mode of work_decl.
2472         (process_excls, process_presence_absence, process_decls,
2473         check_automaton_usage, process_regexp, process_regexp_decls,
2474         check_usage, loop_in_regexp, check_loops_in_regexps,
2475         process_regexp_cycles, add_advance_cycle_insn_decl,
2476         initiate_states, initiate_excl_sets,
2477         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2478         transform_2): Use the macros.
2479         (transform_3): Ditto.  Check mode before making transformations of
2480         ALLOF.
2481         (regexp_transform_func, transform_insn_regexps,
2482         process_unit_to_form_the_same_automaton_unit_lists,
2483         form_the_same_automaton_unit_lists_from_regexp,
2484         form_the_same_automaton_unit_lists,
2485         process_seq_for_forming_states, process_alts_for_forming_states,
2486         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2487         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2488         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2489         units_to_automata_heuristic_distr, create_ainsns,
2490         units_to_automata_distr, create_automata): Use the macros.
2491         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
2492         (longest_path_length, min_issue_delay_pass_states,
2493         output_dead_lock_vect, output_tables, output_insn_code_cases,
2494         output_internal_insn_latency_func, output_print_reservation_func,
2495         output_description, output_automaton_units, generate): Use the
2496         macros.
2497         (make_insn_alts_attr): Ditto.  Check case when there are not
2498         alternatives in the reservation.
2499         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2500         make_bypass_attr, form_important_insn_automata_lists,
2501         expand_automata): Use the macros.
2503 2002-06-20  Tim Josling  <tej@melbpc.org.au>
2505         * Makefile.in: Clean up code to check for misspecified languages
2506         in enable-languages.
2508 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
2510         * cpptrad.c (_cpp_replacement_text_len): initialize len.
2512 2002-06-19  Jason Merrill  <jason@redhat.com>
2514         * Makefile.in (unstrap, restrap): New targets.
2515         (bootstrap): Mention restrap.
2517 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
2519         * except.c (ehl_free): Remove.
2521         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2522         builtin_define and builtin_define_std.
2524 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2526         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2527         (sCOND): Restrict operand class so that gcc knows how to reload them.
2528         (bitfield_set): Merge two unnamed insn's using alternatives.
2529         (call_value): Remove constraint on unused uperand.
2530         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2531         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2533         * longlong.h (count_trailing_zeros): Escape newline and beautify.
2535 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
2537         * Makefile.in (QMTEST_DIR): Simplify definition.
2539 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
2541         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2542         #define.
2544 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
2546         * cpphash.h (struct cpp_reader): Make date and time strings.
2547         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2548         _cpp_replacement_text_len): New.
2549         * cppinit.c (cpp_create_reader): Update.
2550         (init_builtins): Register appropriate builtins for -traditional-cpp.
2551         * cppmacro.c (new_number_token): Remove.
2552         (_cpp_builtin_macro_text): New.
2553         (builtin_macro): Use it.
2554         (cpp_macro_definition): Update to handle traditional macros.
2555         * cppmain.c (cb_line_change): Don't do column positioning for
2556         traditional output.
2557         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
2558         state ls_fun_close.
2559         (skip_whitespace): Fix.
2560         (maybe_start_funlike): Don't set state.parsing_args.
2561         (scan_out_logical_line): Remove duplicate error.  Use lex_state
2562         rather than state.parsing_args.
2563         (push_replacement_text): Handle builtins.
2564         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2566 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2567             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2569         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2570         attribute __always_inline__.
2572 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
2574         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2575         when generating the call to _mcount.
2576         (NO_PROFILE_COUNTERS): Define.
2578 2002-06-18  Richard Henderson  <rth@redhat.com>
2580         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2581         2002-06-02 change.
2583 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
2585         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2586         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2587         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2588         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2590         * sh-protos.h (sh_pr_interrupt): Declare.
2591         * sh.c (sh_pr_interrupt): New function.
2592         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2593         (sh_hard_regno_rename_ok): Likewise.
2594         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2596 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
2598         * rtl.def (DEFINE_AUTOMATON): Add description of new options
2599         `time' and `v'.  Fix incorrect description of option `w'.
2601         * doc/md.texi: Ditto.
2603         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2604         (gen_automata_option): Process the new options.
2605         (transform_2, transform_3): Initialize some variables.
2606         (initiate_automaton_gen): Use the new macros.
2608 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
2610         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2611         (mips_set_return_address, mips_restore_gp): Declare.
2612         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2613         (current_frame_info): Remove.
2614         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2615         * config/mips/mips.c: Remove uses of current_frame_info.
2616         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
2617         (struct machine_function): Add 'frame' and 'insns_len'.
2618         (current_frame_info, zero_frame_info): Remove.
2619         (mips_restore_gp, mips_set_return_address): New.
2620         (mips_initial_elimination_offset): New.
2621         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2622         (eh_return define_split): Use mips_set_return_address.
2624 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2626         * cpplib.c (dtable): Update.
2627         (end_directive): Decrement expansion prevention count.
2628         Clear state.in_expression.
2629         (prepare_directive_trad): Set state.in_expression.
2630         Increment expansion prevention count.
2631         * cpptrad.c (enum ls): New.
2632         (_cpp_overlay_buffer): Set overlaid_buffer.
2633         (_cpp_remove_overlay): Use overlaid_buffer.
2634         (_cpp_read_logcial_line_trad): Update buffer when it might
2635         have changed.
2636         (scan_out_logical_line): Handle state transitions for assertions
2637         and defined() in #if, and for funlike invocations including the
2638         directive case.  Handle '<' and '>' as a quote mechanism in
2639         #include.  Warn about unterminated macro invocations.
2640         * cpphash.h (struct lexer_state): New member in_expression.
2641         (struct cpp_reader): New member overlaid buffer.
2643 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2645         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2646         __always_inline__.
2648 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
2650         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2652         * doloop.c (doloop_optimize): Extract pattern from insn.
2654 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
2656         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2658 2002-06-17  Jeff Law <law@redhat.com>
2660         * libgcc2.c: Do not include symcat.h or machmode.h.
2662 2002-06-17  Richard Henderson  <rth@redhat.com>
2664         PR target/6922
2665         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2667 2002-06-17  Tom Tromey  <tromey@redhat.com>
2669         * dwarfout.c: Include function.h.
2671 2002-06-17  Andreas Schwab  <schwab@suse.de>
2673         * print-rtl.c (print_rtx): Print space before vector, not after.
2674         (debug_rtx): Clear sawclose before printing.
2675         (debug_rtx_list): Print newline after each list element.
2676         (debug_rtx_range): Likewise.
2678 2002-06-17  Richard Henderson  <rth@redhat.com>
2680         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2681         (current_function_funcdef_no): Similarly.
2682         * function.c (funcdef_no): Similarly.
2683         (prepare_function_start): Set current_function_funcdef_no.
2684         (expand_function_start): Don't set current_function_profile_label_no.
2685         * dwarf2out.h (current_funcdef_number): Remove.
2686         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
2687         current_function_funcdef_no throughout.
2688         * dwarfout.c, vmsdbgout.c: Similarly.
2689         * except.c (sjlj_funcdef_number): Remove.
2690         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2691         (output_function_exception_table): Likewise.
2692         * final.c (profile_function): Use current_function_funcdef_no
2693         instead of current_function_profile_label_no.
2695 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
2697         * sched-ebb.c (init_ready_list): Check INSN_P first.
2699 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
2701         * sh.md (divsi3): Update way how to find insns in a sequence.
2703         * reload1.c (merge_assigned_reloads): Don't change reloads
2704         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2705         to RELOAD_OTHER when there are conflicting input reloads.
2707 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
2709         * function.c (epilogue_done): Correctly build a sequence of insns for
2710         a sibcall epilogue.
2712 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
2714         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2715         #define.
2717         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2719 2002-06-16  Richard Henderson  <rth@redhat.com>
2721         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2722         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2724 2002-06-16  Richard Henderson  <rth@redhat.com>
2726         PR opt/6722
2727         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2729 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2731         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2732         * config/i386/i386-aout.h, config/i386/i386elf.h,
2733         config/i386/sysv4.h: Remove CPP_PREDEFINES.
2734         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2735         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2736         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2737         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2738         CPP_PREDEFINES and part of CPP_SPEC.
2739         * config/i386/sysv4-cpp.h: New.
2741 2002-06-16  Richard Henderson  <rth@redhat.com>
2743         PR c/7030
2744         * dwarf2out.c (modified_type_die): Don't assign the qualified die
2745         to the unqualified type.
2747 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
2749         * i386-protos.h (x86_field_alignment): Declare.
2750         * i386.c (x86_field_alignment): Define.
2751         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2752         (BIGGEST_FIELD_ALIGNMENT): Kill.
2754 2002-06-16  Richard Henderson  <rth@redhat.com>
2756         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
2758 2002-06-16  Richard Henderson  <rth@redhat.com>
2760         * c-common.c (flag_ms_extensions): Move from c++ front end.
2761         * c-common.h (flag_ms_extensions): Declare.
2762         * c-decl.c (c_decode_option): Add -fms-extensions.
2763         (grokfield): Don't accept anonymous structures in ISO C mode;
2764         accept only unnamed anonymous structures in GNU C mode; accept
2765         Plan 9 extensions in MS mode.
2766         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2767         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2768         (extension): Clear flag_iso.
2769         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2771 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
2773         PR target/7042
2774         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2775         early if current_function_epilogue_delay_list is non-empty.
2776         * config/cris/cris.md ("return"): Add sanity check asserting that
2777         current_function_epilogue_delay_list is empty.
2779 2002-06-16  Jeff Law <law@redhat.com>
2781         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2782         sharing of hard registers.
2784         * toplev.c (rest_of_compilation): Remove redundant conditional.
2786         * toplev.c (rest_of_compilation): Perform a simpler, less costly
2787         cleanup of the CFG when not optimizing.
2789 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
2791         * gcc.c (main): Correct startfile_prefix_spec check.
2793 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
2795         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
2796         include both darwin.o and rs6000-c.o.
2798 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2800         * expr.c (compare_from_rtx): Call simplify_relational_operation
2801         on all comparisons, not just those between integer constants,
2802         with the correct (possibly unsigned) comparison code.
2803         (do_compare_rtx_and_jump): Likewise.
2805 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2807         * Makefile.in (tm_defines): New configuration variable.
2808         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2809         Pass tm_defines in TM_DEFINES.
2810         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
2811         * config.gcc (tm_defines): New configuration variable.
2812         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2813         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
2814         * configure.in: Substitute tm_defines.
2815         * configure: Rebuilt.
2816         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
2817         * doc/install.texi: Update.
2818         * pa/pa-700.h: Delete file.
2819         * pa/pa-7100.h: Delete file.
2821 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2823         * fold-const.c (comparison_to_compcode): New function to convert
2824         an comparison TREE CODE into a bit-based representation.
2825         (compcode_to_comparison): New function to convert from this bit
2826         based representation back to a comparison TREE CODE.
2827         (fold_truthop): Simplify (x<y) && (x==y) and related composite
2828         comparisons.
2830 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
2832         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2834         * stor-layout.c (compute_record_mode): Remove check for
2835         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2836         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
2837         MEMBER_TYPE_FORCES_BLK.
2839         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2841         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2843 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
2845         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2847 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
2849         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2850         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2851         * configure, config.in: Regenerate.
2853 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2855         * loop.c (check_final_value): Use v->always_executed
2856         instead of v->always_computable.
2857         * unroll.c (final_giv_value): Don't calculate the final
2858         value as a function of the biv if the giv is not computed
2859         for every loop iteration.
2861 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2863         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2865 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2867         PR c/6677
2868         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2869         the truncation down when the target type is signed.
2870         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2871         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2872         the conversion if the target type is a smaller type.
2874 2002-06-14  Richard Henderson  <rth@redhat.com>
2876         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2877         earlier.  Re-factor comparisons vs extrema.
2879 2002-06-14  Richard Henderson  <rth@redhat.com>
2881         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2883 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2885         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2886         * sched-deps.c (add_dependence): Likewise.
2887         (group_leader): Likewise.
2888         * sched-rgn.c (init_ready_list): Likewise.
2889         * doc/rtl.texi: Adjust accordingly.
2891 2002-06-13  Jeffrey Law  <law@redhat.com>
2893         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2894         null pointer checks were eliminated.  Update prototype.
2895         (delete_null_pointer_checks): Similarly.
2896         * rtl.h (delete_null_pointer_checks): Update prototype.
2897         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2898         delete_null_pointer_checks deletes one or more null
2899         pointer checks.  Do not run cleanup_cfg before gcse, the
2900         CFG is accurate and optimized at that point..
2902         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2903         of hard registers.
2905 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
2907         * Makefile.in (libgcc.mk): Depend on specs.
2909 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
2911         * sh.md (mulsi3): Update way how to find insns in a sequence.
2913 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
2915         * sh.h: Define HARD_REGNO_RENAME_OK
2916         * sh.c: sh_hard_regno_rename_ok: New. If current function has
2917         interrupt_handler attribute, only registers saved on stack are OK.
2918         * sh-protos.h: Declare sh_hard_regno_rename_ok.
2920 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2922         * config/sh/sh.md (jump): Emit jump insn.
2923         (call_pcrel): Get pattern of the result of gen_call_site.
2924         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2926 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2928         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2929         * cpptrad.c: Update comments.
2930         (skip_whitespace, copy_comment): Take a new parameter.
2931         (skip_escaped_newlines): Don't duplicate escaped newline test.
2932         (copy_comment): Different location for CUR, decide here how
2933         to copy / replace the comment.
2934         (skip_whitespace): Copy whitespace.
2935         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2936         (scan_out_logical_line): Let copy comment handle keeping or
2937         replacing comments.
2938         (scan_parameters, _cpp_create_trad_definition): Update.
2940 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
2942         * reload.c (get_secondary_mem,find_reloads_address,
2943         find_reloads_address_1): Pass reference to MEM to find_reloads_address
2944         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
2946 2002-06-13  Jessica Han  <jessica@cup.hp.com>
2948         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2949         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2950         * doc/tm.texi: Document them.
2951         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2952         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2953         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2954         (ASM_OUTPUT_FDESC): Likewise.
2956 2002-06-13  Eric Christopher  <echristo@redhat.com>
2958         * diagnostic.c (output_format): Fix thinko.
2960 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2962         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2963         (DWARF2_UNWIND_INFO): Define to 0.
2965         * config/sh/sh.c (calc_live_regs): Don't use initial_value
2966         optimization for PR_MEDIA_REG.
2968 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2970         * cpphash.h (_cpp_lex_identifier_trad): Remove.
2971         * cpplib.c (end_directive): Don't skip, always remove overlay
2972         apart from #define.
2973         (prepare_directive_trad): Handle NULL pfile->directive.
2974         (_cpp_handle_directive): Always call prepare_directive_trad
2975         if traditional.
2976         * cppmain.c (check_multiline_token): Rename account_for_newlines,
2977         generalize inputs.
2978         (scan_translation_unit_trad): Use it.
2979         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2980         output, get escaped newline in comment close correct.
2981         (check_output_buffer, skip_whitespace): Update.
2982         (_cpp_lex_identifier_trad): Remove.
2983         (scan_out_logical_line): Handle -C and comments in directives
2984         properly.
2986 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2988         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2989         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2990         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2991         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2992         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2993         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2994         (SELECT_SH5_COMPACT_NOFPU): Likewise.
2995         (TARGET_SWITCHES): Use them.
2996         (TARGET_CPU_DEFAULT): Define if not already defined.
2997         (TARGET_DEFAULT): Use it.
2998         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2999         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3000         * config/sh/t-monolib: New file.
3002 2002-06-13  Roger Sayle  <roger@eyesopen.com>
3004         * toplev.c (rest_of_compilation): Simplify (and correct) the
3005         logic of the first delete-null-pointer-checks pass.
3007 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3009         * i386.c (ix86_expand_movstr):  Fix pasto.
3011 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3013         * reload.c (find_valid_class):  Fix thinko in my previous patch.
3015 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3017         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3018         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3019         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3020         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3022 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
3024         * tree-inline.c (expand_call_inline): Don' mess with _DECL
3025         fields.
3027 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
3029         * diagnostic.c (output_format): Recognize "%H" as a format
3030         specifier for a location_t.
3031         (text_specifies_location): New function.
3032         (diagnostic_set_info): Use it.
3034 2002-06-13  Jeffrey Law  <law@redhat.com>
3036         * emit-rtl.c (static_regno_reg_rtx): Define.
3037         (init_emit_once): Initialize static_regno_reg_rtx.
3038         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3039         of building new hard reg objects once per function.
3040         (gen_rtx_REG): Try to share hard regs.
3041         * regclass.c (init_fake_stack_mems): New function broken out from
3042         init_regs.
3043         * rtl.h (init_fake_stack_mems): Declare.
3044         * toplev.c (lang_independent_init): Call init_regs before
3045         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
3047         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3049         * alias.c (argument_registers): Remove.
3050         (init_alias_once): Initialize static_reg_base_value here.  Remove
3051         initialization of argument_registers.
3052         (init_alias_once_per_function): Remove.
3053         (init_alias_analysis): Copy all the entries from static_reg_base_value
3054         into new_reg_base_value all at once.
3055         * rtl.h (init_alias_once_per_function): Remove declaration.
3056         * function.c (prepare_function_start): Do not call
3057         init_alias_once_per_function.
3059         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3060         starting a sequence and emitting an INSN.
3062 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
3064         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3066 2002-06-13  David S. Miller  <davem@redhat.com>
3068         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3070 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3072         * cpplib.c (end_directive): Handle line skipping.  Only remove
3073         the rest of the line if the directive was valid.
3074         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3075         expanding a traditional macro.
3076         * cpptrad.c (recursive_macro): New.
3077         (read_logical_line_trad): Handle skipping.
3078         (scan_out_logical_line): Continue after a successful directive.
3079         Don't expand macros whilst skipping, or if recursing.
3080         (_cpp_create_trad_definition): scan_out_logical_line now sets
3081         the output current position.
3083 2002-06-12  Eric Christopher  <echristo@redhat.com>
3085         From Chris Demetriou  <cgd@broadcom.com>
3086         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3087         comment.
3088         (ISA_HAS_MADD_MSUB): Ditto.
3089         (ISA_HAS_NMADD_NMSUB): Ditto.
3091 2002-06-12  Eric Christopher  <echristo@redhat.com>
3093         * config.gcc: Consolidate little endian handling and
3094         little/big endian targets.
3095         * config/mips/elfl.h: Remove file.
3096         * config/mips/elfl64.h: Ditto.
3097         * config/mips/ecoffl.h: Ditto.
3098         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3100 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
3102         * gengtype.h (xvasprintf): New prototype.
3103         (xasprintf): New prototype.
3104         (struct outf): New.
3105         (get_output_file): Return an outf_p.
3106         (header_file): Is now an outf_p.
3107         (base_files): Now are outf_p.
3108         (oprintf): New.
3109         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3110         rather than stdio operations.  Use xasprintf in a few places,
3111         when appropriate.
3112         (xvasprintf): New.
3113         (xasprintf): New.
3114         (struct filemap): Delete.
3115         (files): Delete.
3116         (output_files): New.
3117         (oprintf): New.
3118         (create_file): Create an outf_p.  Add parameter to indicate output
3119         file name, change all callers.
3120         (open_base_files): Create gtype-desc.c here.
3121         (get_output_file_with_visibility): Rewrite.
3122         (get_output_file_name): Just look at 'name' field in struct outf.
3123         (close_output_files): Rewrite.
3125 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
3127         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3128         (MASK_G_FLOAT): Define.
3129         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3130         (TARGET_SWITCHES): Likewise.
3131         (TARGET_DEFAULT): Likewise.
3133 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
3135         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3136         * config/mips/mips.c (mips_output_filename): Don't print a
3137         ".file" directive if we are using DWARF-2.
3138         (mips_output_function_prologue): Do not emit source file
3139         name for TARGET_GAS.
3141 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
3143         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3144         decide whether emit the short opcode.
3145         * i386.h (x86_shift1): Declare.
3146         (TARGET_SHIFT1): New macro.
3147         * i386.c (x86_shift1): New global variable.
3149         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3150         unconditionally; make loop to rebuild CFG; kill unnecesary
3151         find_basic_block calls; kill compute_bb_for_insn call.
3152         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3153         * haifa-sched.c (sched_init): Likewise.
3154         * ssa-ccp.c (ssa_const_prop): Likewise.
3155         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3157 2002-06-11  David S. Miller  <davem@redhat.com>
3159         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3160         active_insn_p.
3162 2002-06-11  Richard Henderson  <rth@redhat.com>
3164         * c-common.c (builtin_define_type_max): New.
3165         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3166         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3168         From Joseph S. Myers:
3169         * glimits.h: Rewrite to expect the double underscore definitions
3170         from the compiler.
3172         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3173         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3174         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3175         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3176         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3177         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3178         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3179         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3181 2002-06-11  Richard Henderson  <rth@redhat.com>
3183         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3184         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3185         (code_for_builtns): Update.
3186         (alpha_init_builtins): Add __builtin_thread_pointer and
3187         __builtin_set_thread_pointer.
3188         (alpha_expand_builtin): Handle void builtins.
3189         * doc/extend.texi (Alpha Built-in Functions): Update.
3191 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
3193         PR target/6997
3194         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3196 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
3198         * config.gcc: Make the name of the extra-modes file adjustable
3199         by target stanzas.
3200         (s390x, strongarm, xscale stanzas): Use this facility.
3201         * configure.in: Update to match.
3202         * configure: Regenerate.
3204 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
3206         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3207         max/mins as unsigned GE compares.
3209 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
3211         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3212         * config/vax/bsd.h: New file.
3213         * config/vax/netbsd.h: Add missing notice.
3214         (CPP_PREDEFINES): Remove.
3215         (TARGET_OS_CPP_BUILTINS): Define.
3216         (CPP_SPEC): Use NETBSD_CPP_SPEC.
3217         * config/vax/openbsd.h: Update copyright years.
3218         (CPP_PREDEFINES): Remove.
3219         (TARGET_OS_CPP_BUILTINS): Define.
3220         * config/vax/ultrix.h: Likewise.
3221         * config/vax/vaxv.h: Likewise.
3222         * config/vax/vms.h: Likewise.
3223         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3224         (CPP_PREDEFINES, CPP_SPEC): Remove.
3226 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
3228         * i386.md (addqi_1_slp, subqi_1_slp
3229         (andqi_ext0, testqi_ext0): Remove unnecesary check.
3230         (addhi*, addqi*): Simplify "dec" condition.
3231         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3232         (and, or, xor to QImode splitters): New.
3233         (iorqi_ext*): New.
3234         (xorqi_ext_0): New.
3235         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3236         (andqi_ext_1_rex64): New.
3237         (ashrqi*_slp): New.
3238         (ashlqi*_slp): New.
3239         (lshlqi*_slp): New.
3240         (rotrqi3*_slp): New.
3241         (rotlqi3*_slp): New.
3243 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
3245         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3246         softfloat.h.
3247         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3248         (CPP_ENDIAN_LITTLE_SPEC): Delete.
3249         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3250         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3251         __LONG_DOUBLE_128__ setting, _CALL_* setting.
3252         (CPP_DEFAULT_SPEC): Delete.
3253         (CPP_FLOAT_DEFAULT_SPEC): Delete.
3254         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3255         (CPP_SYSV_DEFAULT_SPEC): Delete.
3256         (CPP_ENDIAN_BIG_SPEC): Delete.
3257         (CPP_ENDIAN_LITTLE_SPEC): Delete.
3258         (CPP_ENDIAN_SPEC): Delete.
3259         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3260         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3261         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3262         cpp_longdouble_default.
3263         * config/rs6000/softfloat.h: Delete.
3264         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3265         (EXTRA_SPECS): Delete cpp_cpu.
3266         (TARGET_CPU_CPP_BUILTINS): New.
3267         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3268         prototype.
3269         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3270         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3271         (CPP_DEFAULT_SPEC): Delete.
3272         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3273         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3274         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3275         (CPP_DEFAULT_SPEC): Delete.
3276         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3277         (CPLUSPLUS_CPP_SPEC): Likewise.
3278         (CPP_CPU_SPEC): Delete.
3279         (CPP_DEFAULT_SPEC): Delete.
3280         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3281         (CPLUSPLUS_CPP_SPEC): Likewise.
3282         (CPP_CPU_SPEC): Delete.
3283         (CPP_DEFAULT_SPEC): Delete.
3284         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3285         (CPP_DEFAULT_SPEC): Delete.
3286         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3287         (CPP_DEFAULT_SPEC): Delete.
3289         * doc/gty.texi: Small updates.
3291 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
3293         * objc/objc-act.c (warn_with_ivar): Adjust calls to
3294         diagnostic_count_error.
3295         (warn_with_method): Likewise.
3297         * diagnostic.h (warnings_are_errors_message): New field of
3298         diagnostic_context.
3299         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3300         match semantics.
3301         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3302         (diagnostic_count_diagnostic): Make aware of other kinds of
3303         diagnostics.
3304         (diagnostic_initialize): Initialize warnings_are_errors_message field.
3306 2002-06-11  Tom Tromey  <tromey@redhat.com>
3308         For PR java/6520:
3309         * fold-const.c (fold_convert): Don't modify existing tree's type.
3311 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
3313         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3315 2002-06-11  Richard Henderson  <rth@redhat.com>
3317         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3319 2002-06-11  Richard Henderson  <rth@redhat.com>
3321         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3322         DWARF2_UNWIND_INFO is false.
3324 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
3326         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3328         * config/s390/s390.c (emit_prologue): gen_store_multiple
3329         returns an insn now, not a pattern.
3331 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3333         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3334         $(TEXI2DVI) -o.
3336 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
3338         * i386.c (x86_promote_QImode): Set for Athlon
3339         (x86_fast_prefix): New global variable.
3340         (x86_arch_always_fancy_math_387): Fix formating.
3341         * i386.h (x86_fast_prefix): Declare
3342         (TARGET_FAST_PREFIX): define.
3343         * i386.md (and to strict_low_part, HI to SI
3344         promoting splitter): Use new macro.
3346         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3348 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
3350         * Makefile.in (distclean): Delete junk left in testsuite
3351         directory, too.
3353 2002-06-11  Jeffrey Law <law@redhat.com>
3355         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3356         last insn created by the splitter.
3358         * caller-save.c (init_caller_save): Move creation of SAVEINSN
3359         and RESTINSN into into the scope of the sequence.
3361         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3362         RETURN insns.
3364         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3366         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3367         not the pattern.  So extract the pattern from the insn.
3369         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3371 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3373         * config/s390/s390.md (movsi): Only use floating point
3374         register alternatives when operands are already fprs.
3375         (movdi_31, movdi_64): Likewise.
3377 2002-06-11  David S. Miller  <davem@redhat.com>
3379         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3380         Only run RTX equality checks on INSN_P rtl.
3382 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3384         * config/s390/s390.md (reload_base, ltorg): Remove.
3385         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3386         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3387         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3388         s390_asm_output_pool_prologue): Likewise.
3389         * s390.h (s390_pool_start_insn): Likewise.
3391         * s390.c (s390_output_symbolic_const): Remove support for
3392         old-style pool chunks.
3393         (s390_function_epilogue): Likewise.
3394         (s390_output_constant_pool): Likewise.  Also, fix incorrect
3395         alignment for 64-bit literal pools.
3396         (print_operand_address): Remove 'y' and 'Y' format flags.
3397         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3398         old-style pool chunks.
3399         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3400         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3401         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3403         * s390.c (consttable_operand): New function.
3404         * s390-protos.h (consttable_operand): Declare it.
3405         * s390.h (PREDICATE_CODES): Add consttable_operand.
3406         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3407         consttable_sf, consttable_df, pool_start_31, pool_end_31,
3408         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3409         * s390.c (struct constant, struct constant_pool): New data types.
3410         (constant_modes, gen_consttable): New variables.
3411         (s390_start_pool, s390_end_pool, s390_add_pool,
3412         s390_dump_pool, s390_free_pool): New functions.
3413         (s390_chunkify_pool): Completely reimplement literal pool
3414         overflow handling.
3416         * s390.c (s390_pool_overflow): New variable.
3417         * s390.h (s390_pool_overflow): Declare it.
3418         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3419         jumps in literal pool overflow situations.
3421         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3422         (s390_frame_info): Account for possible use of RETURN_REGNUM
3423         by new literal pool overflow code.
3424         (s390_emit_prologue): Likewise.
3426 2002-06-05  David S. Miller  <davem@redhat.com>
3428         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3429         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3430         emit_insns_before_scope, emit_insns_after,
3431         emit_insns_after_scope): Delete declaration.
3432         * ada/misc.c (insert_code_for): Use emit_insn* instead of
3433         emit_insns_foo.
3434         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3435         (alpha_set_memflags): Fix comment.
3436         (set_frame_related_p): Use get_insns instead of gen_sequence.
3437         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3438         emitting no insns.
3439         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3440         gen_sequence.
3441         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3442         * config/fr30/fr30.c (fr30_move_double): Likewise.
3443         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3444         Likewise.
3445         * config/ia64/ia64.c (spill_restore_mem): Likewise.
3446         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3447         no insns.
3448         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3449         instead of gen_sequence.
3450         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3451         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3452         * config/sh/sh.c (sh_need_epilogue): Likewise.
3453         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3454         attributes.
3455         (setjmp pattern and split): Use them to avoid splitter which emits
3456         no RTL.
3457         * genattrtab.c (main): Emit include of function.h
3458         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3459         get_insns instead of gen_sequence.
3460         * config/cris/cris.c (cris_split_movdx): Likewise.
3461         * emit-rtl.c (emit_insns*): Kill.
3462         (try_split): Expect insn list instead of SEQUENCE.
3463         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3464         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3465         Make them abort if a SEQUENCE is given and RTL checking is
3466         enabled.
3467         (emit_*_scope): Don't forget to set scope on final insn.
3468         (gen_sequence): Move from here...
3469         * ssa.c (gen_sequence): To here as private function.
3470         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3471         comments.
3472         (expand_builtin_return, expand_builtin_mathfn): Likewise.
3473         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3474         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3475         (expand_builtin_expect_jump): Use get_insns and fix comments.
3476         * calls.c (try_to_integrate): Use emit_insn_foo.
3477         (expand_call, emit_library_call_value_1): Likewise.
3478         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3479         (emit_move_insn_1): Use get_insns instead of gen_sequence.
3480         (expand_expr): Use emit_insn_foo.
3481         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3482         * except.c (build_post_landing_pads): Likewise.
3483         * flow.c (attempt_auto_inc): Likewise.
3484         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3485         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3486         * function.c (fixup_var_refs_insn): Use get_insns instead of
3487         gen_sequence.
3488         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3489         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3490         (fixup_stack_1, purge_addressof_1, expand_main_function,
3491         get_arg_pointer_save_area): Likewise.
3492         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3493         expand_function_end): Use emit_insn_foo.
3494         (record_insns, keep_stack_depressed): Work with insn list instead
3495         of SEQUENCE, fix comments.
3496         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3497         noce_try_store_flag_constants, noce_try_store_flag_inc,
3498         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3499         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3500         (noce_process_if_block): Use get_insns instead of gen_sequence.
3501         * optabs.c (add_equal_note): Work with insn list, fix comments.
3502         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3503         (expand_unop, expand_complex_abs, expand_unop_insn,
3504         expand_no_conflict_block): Likewise.
3505         (gen_move_insn): Use get_insns instead of gen_sequence.
3506         (gen_cond_trap): Likewise.
3507         * integrate.c (copy_rtx_and_substitute): Likewise.
3508         (emit_initial_value_sets): Use emit_insn_foo.
3509         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3510         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3511         now that RTL generators give insn lists.
3512         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3513         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3514         instead of gen_sequence.
3515         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3516         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3517         instead of gen_sequence.
3518         * loop.c (move_movables, emit_prefetch_instructions,
3519         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3520         Likewise.
3521         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3522         (product_cheap_p): Likewise, and add commentary about RTL wastage
3523         here.
3524         * lcm.c (optimize_mode_switching): Use get_insns instead of
3525         gen_sequence.
3526         * profile.c (gen_edge_profiler): Likewise.
3527         * regmove.c (copy_src_to_dest): Likewise.
3528         * reg-stack.c (compensate_edge): Likewise and fix comment.
3529         * gcse.c (process_insert_insn): Likewise.
3530         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3531         * jump.c (delete_prior_computation): Update comment.
3532         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3533         of gen_sequence, update comments to match.
3534         * recog.c (peephole2_optimize): Work with insn lists instead of
3535         SEQUENCE rtl.
3536         * sched-vis.c (print_pattern): Abort on SEQUENCE.
3537         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3538         Use get_insns instead of gen_sequence.
3539         (copy_loop_body): Likewise and don't emit dummy NOTE.
3540         * genrecog.c: Don't mention SEQUENCE rtl in comments.
3541         * combine.c (try_combine): Expect insn lists from split generator.
3542         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3543         hand.
3545 2002-06-11  Roger Sayle  <roger@eyesopen.com>
3546             Andreas Jaeger <aj@suse.de>
3548         * cfgbuild.c: Update copyright years.
3550 2002-06-11  Andreas Schwab  <schwab@suse.de>
3552         * config/m68k/m68k.h (PREDICATE_CODES): Define.
3554 2002-06-11  Eric Christopher  <echristo@redhat.com>
3556         * doc/tm.texi (Run-time Target): Add comment about flag_iso
3557         and strict ANSI.
3558         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3559         * config/mips/ecoffl.h: Ditto.
3560         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3561         (CPP_PREDEFINES): Ditto.
3562         * config/mips/elfl64.h: Ditto.
3563         * config/mips/elfl.h: Ditto.
3564         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3565         out until irix header consolidation.
3566         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3567         with SUBTARGET_OS_CPP_BUILTINS.
3568         * config/mips/iris6.h: Ditto.
3569         (CPLUSPLUS_CPP_SPEC): Remove.
3570         * config/mips/linux.h: Ditto.
3571         * config/mips/netbsd.h: Ditto.
3572         * config/mips/openbsd.h: Ditto.
3573         * config/mips/rtems.h: Ditto.
3574         * config/mips/rtems64.h: Ditto.
3575         * config/mips/sni-svr4.h: Ditto.
3576         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3577         ISA_MIPS32, ISA_MIPS64): New defines.
3578         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3579         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3580         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3581         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3582         (TARGET_CPU_CPP_BUILTINS): Define.
3583         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3584         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3585         (movdicc): Remove check for ISA_MIPS32.
3586          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3587         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3588         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3589         sunge_sf, sunle_df, sunle_sf): New patterns.
3591 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3593         * Makefile.in: Update cppmain.o.
3594         * cpphash.h (struct cpp_reader): Move some members to a
3595         nested structure.
3596         (trad_line): Rename saved_line.
3597         (_cpp_read_logical_line_trad): Update.
3598         (_cpp_remove_overlay): New.
3599         * cppinit.c (cpp_create_reader): No need to set saved_line.
3600         (cpp_destroy): Update.
3601         (cpp_read_main_file): Only overlay if compiling.
3602         * cpplex.c (continue_after_nul): Return false if in directive.
3603         * cpplib.c (EXPAND): New.
3604         (directive_table, SEEN_EOL): Update.
3605         (end_directive): Remove overlay if traditional; don't skip
3606         line in traditional #define.
3607         (prepare_directive_trad): New.
3608         (_cpp_handle_directive, run_directive): Update for traditional
3609         directives.
3610         (lex_macro_node): Simplify, don't use lex_identifier_trad.
3611         * cpplib.h (struct options): Add preprocess_only.
3612         * cppmain.c: Don't include intl.h.
3613         (cpp_preprocess_file): Set options->preprocess_only.
3614         (scan_translation_unit_trad): Fix, and print line numbers.
3615         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3616         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3617         save_replacement_text, _cpp_create_trad_definition): Update for
3618         variable renaming.
3619         (_cpp_overlay_buffer): Save line number.
3620         (_cpp_remove_overlay): Rename from restore_buff, restore line.
3621         (_cpp_read_logical_line_trad): Don't handle overlays here.
3622         (scan_out_logical_line): Process directives.
3624 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
3626         * gthr-win32.h: Wrap functions in extern "C".
3627         (__gthread_key_t): Typedef as unsigned long,
3628         not win32 DWORD.
3629         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3630         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3631         (__gthr_win32_once, __gthr_win32_key_create,
3632         __gthr_win32_key_delete, __gthr_win32_getspecific,
3633         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3634         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3635         __gthr_win32_mutex_unlock): Declare.
3636         (__gthread_once,__gthread_key_create,
3637         __gthread_key_delete, __gthread_getspecific,
3638         __gthread_setspecific, __gthread_mutex_init_function,
3639         __gthread_mutex_lock,__gthread_mutex_trylock,
3640         __gthread_mutex_unlock): Call corresponding
3641         __gthr_win32_* extern implementations if #defined
3642         __GTHREAD_HIDE_WIN32API.
3643         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3644         $(srcdir)/config/i386/gthr-win32.c
3645         * config/i386/gthr-win32.c: New implementation file.
3646         (__gthr_win32_once, __gthr_win32_key_create,
3647         __gthr_win32_key_delete, __gthr_win32_getspecific,
3648         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3649         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3650         __gthr_win32_mutex_unlock): New functions, based on
3651         static inlines in gthr-win32.h.
3653 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
3655         * config/xtensa/xtensa.c (override_options): Don't warn about
3656         using -fpic or -fPIC when PIC is enabled by default.
3658 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3660         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3662 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3664         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3665         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3666         exists, substitute its pathname as @extra_modes_file@, define
3667         EXTRA_MODES_FILE to be an appropriate string to #include it
3668         with, and define EXTRA_CC_MODES to 1.
3670         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
3671         it's defined.  Get rid of redundancy in calling sequence for
3672         CC; don't use it to define CCmode, to avoid a warning.
3673         * libgcc2.c: Include symcat.h for the sake of machmode.def.
3675         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3676         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3677         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3678         New files.
3679         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3680         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3682         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3683         defining extra CC modes.
3685 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3686             Andreas Jaeger <aj@suse.de>
3688         * cfgrtl.c (create_basic_block_structure):  Remove index argument
3689         and use last_basic_block++ instead.  (create_basic_block): Update.
3690         * cfgbuild.c (find_basic_blocks_1): Likewise.
3692         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3693         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3694         * sched-ebb.c (schedule_ebbs): Likewise.
3695         * sched-rgn.c (schedule_insns): Likewise.
3696         * ssa-ccp.c (ssa_const_prop): Likewise.
3697         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3698         * toplev.c (rest_of_compilation): Likewise.
3699         * config/ia64/ia64.c (ia64_reorg): Likewise.
3701 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3703         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3704         of matching registers.
3706 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3708         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3709         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3711 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
3713         * config/mmix/mmix.h: Improve comments.
3714         (CPP_SPEC, CPP_PREDEFINES): Don't define.
3715         (TARGET_CPU_CPP_BUILTINS): Define.
3716         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3717         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3718         unused predicate.
3719         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3720         compiler warning.
3721         (mmix_constant_address_p): Remove another
3722         redundant test before case.
3723         (mmix_canonicalize_comparison): Remove unused function.
3724         (mmix_print_operand_address): Don't test and adjust for operand in
3725         non-canonical format.
3726         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3727         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3729 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3731         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3732         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3733         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3734         (gen_compare): Use CCmode unconditionally.
3736 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3738         PR optimization/6759
3739         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3740         the REQ_EQUAL note.
3742 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3744         PR c/6660
3745         * c-decl.c (grokfield): Allow user defined types if they declare
3746         structs or unions for unnamed fields.
3748 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3750         PR c/6809
3751         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3753 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3755         PR optimization/6842
3756         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3757         operand subreg cannot be simplified.
3759 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3761         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3762         (compare_constant): Likewise.
3763         (output_addressed_constants): Likewise.
3765 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3767         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3768         merge bb with itself.
3770 2002-06-10  Richard Henderson  <rth@redhat.com>
3772         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3773         (builtin_zapnot): Likewise.
3775         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3776         reservation.
3778 2002-06-10  Eric Christopher  <echristo@redhat.com>
3780         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3781         prototype and function.
3782         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3783         (call_insn_operand): Remove half pic references.
3784         (legitimate_address_p): Ditto.
3785         * config/i386/i386.h: Remove half pic defines.
3787 2002-06-10  Eric Christopher  <echristo@redhat.com>
3789         * doc/extend.texi (Return Address): Add note explaining the side-
3790         effects of inlining on __builtin_return_address.
3792 2002-06-10  Tom Tromey  <tromey@redhat.com>
3794         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3795         (c-common.o): Depend on langhooks.h.
3797 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3799         * cpphash.h (_cpp_read_logical_line_trad,
3800         _cpp_expansions_different_trad): Update prototypes.
3801         * cpplex.c (continue_after_nul): New.
3802         * cppmain.c: Include cpphash.h.
3803         (scan_translation_unit_trad): New.
3804         (cpp_preprocess_file): Call it.
3805         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3806         overlay.
3807         (_cpp_expansions_different_trad): Update prototype.
3809 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3811         Fix cfi generation for SH[1-4]:
3813         * sh.c (frame_insn): New function.
3814         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
3815         (push): Now returns rtx.  Use frame_insn.
3816         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3817         of a DF register.
3818         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3820 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3822         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3823         and gtype-desc.c.
3824         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3825         (distclean): ... not here.  But do delete all testsuite/*.log,
3826         testsuite/*.sum files here.  Delete mkheaders.  Delete
3827         po/*.gmo and the testsuite directory in a split tree build.
3829 2002-06-10  Jeffrey Law  <law@redhat.com>
3831         * alias.c (static_reg_base_value): New to hold RTL for
3832         items allocated once per function for the aliasing code.
3833         (init_alias_once_per_function): Initialize static_reg_base_value.
3834         (init_alias_analysis): Avoid throw-away allocations of RTL by
3835         using pre-computed values in static_reg_base_value.
3836         * function.c (prepare_function_start): Call
3837         init_alias_once_per_function appropriately.
3838         * rtl.h (init_alias_once_per_function): Declare.
3839         * caller-save (init_caller_save): Restructure slightly to
3840         avoid lots of silly RTL generation.
3841         * expr.c (init_expr_once): Likewise.
3842         * reload1.c (reload_cse_regs_1): Allocate throw-away register
3843         RTL object here.  Pass it into children.
3844         (reload_cse_simplify_operands): Use passed-in register RTL
3845         object.
3846         (reload_cse_simplify): Pass through throw-away register
3847         RTL object.
3849 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
3851         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3853 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
3855         * gcc.c (process_command): Avoid assignment to read-only location.
3856         Fix sizeof calculation.
3858 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3860         * cpphash.h (struct cpp_macro): Put comments on their own lines.
3861         (_cpp_expansions_different_trad): New.
3862         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3863         * cpptrad.c (canonicalize_text): New.
3864         (scan_out_logical_line): Handle no arguments correctly.
3865         (save_replacement_text): Commit memory when finished.
3866         (_cpp_expansions_different_trad): New.
3868 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3870         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3871         TREELANG and COBOL.
3872         (lang_names): Add treelang and cobol.
3873         (get_file_basename): Add code to support treelang and cobol as
3874         4th and 5th users of c-common.c.
3876 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
3878         * Makefile.in (install-driver): Install driver as
3879         $(target_alias)-gcc-$(version).
3880         * gcc.c (spec_version): Make const.
3881         (process_command): Handle -V and -b by using exec.
3882         * doc/invoke.texi (Target Options): Restore -V option,
3883         update docs for -b option.
3885 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3887         * configure.in (remaining_languages_check):
3888         Added check that all languages specified were found.
3889         Exit if not found. Previous behaviour was silent failure.
3890         * configure: Regenerated.
3892 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3894          First steps to making treelang documentation compliant, based on
3895          instructions in sourcebuild.texi. Also add to gcc.c list of
3896          default languages.
3898         * doc/contrib.texi: Add self as contributor of treelang.
3900         * doc/frontends.texi: Add mention of treelang.
3902         * doc/invoke.texi (Overall Options): Add mention of treelang.
3904         * doc/standards.texi:  Add mention of treelang.
3906 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
3908         * config/cris/cris.c: Include ggc.h
3910 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3912         * cpphash.h (_cpp_push_text_context): Update.
3913         (_cpp_arguments_ok): New.
3914         * cppmacro.c (_cpp_arguments_ok): New, split out from...
3915         (collect_args): ...here.
3916         (_cpp_push_text_context): Change inputs.
3917         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3918         replace_args_and_push): New.
3919         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3920         Don't use IS macros directly.
3921         (scan_out_logical_line): Handle function-like macro argument
3922         collection.
3923         (push_replacement_text): Update.
3924         (replacement_length): Remove.
3925         (_cpp_create_trad_definition): Don't skip whitespace before
3926         checking for '('.
3928 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3930         * config/avr/avr.c (avr_mcu_types): Update for new devices.
3931         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3932         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3933         * config/avr/avr.md ("type" and "length" attributes): New type
3934         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
3935         output a single "call" or "rcall" insn depending on device size.
3936         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3938 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
3940         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3941         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
3942         assembler option.
3943         (CPP_CPU_SPEC): Add power3 and power4.
3944         (PROCESSOR_DEFAULT): Change to 604e.
3945         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3946         (CPP_CPU_SPEC): Similar additions.
3947         (enum process_type): Add POWER4.
3948         (RTX_COSTS): Add POWER4.
3949         (CPP_CPU_SPEC): Similar additions.
3950         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
3951         (PROCESSOR_DEFAULT64): Define.
3952         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3953         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3954         branch adjustment.
3955         (rs6000_issue_rate): Add Power4.
3956         * config/rs6000/rs6000.md (cpu attr): Add power4.
3957         (iu compare): Remove 604, 604e, 620, 630.
3958         Add basic Power4 scheduling information.
3959         (mfcr/mtcrf): Change type attribute to cr_logical.
3961 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3963         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
3964         ATTRIBUTE_PRINTF_2.
3965         * gengtype-lex.l: Fix format specifier warning.
3967         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
3968         not isspace.
3969         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3970         lieu of isspace/IDchar.
3971         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3972         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
3973         ISSPACE.
3975 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
3977         * Makefile.in (LIBCPP_OBJS): Take out version.o.
3978         * cpphash.h (cpp_reader): Take out print_version member.
3979         * cppinit.c: (cpp_handle_option): Don't do anything with
3980         -version.  Just set help_only for --version, --target-help.
3981         Just set verbose option for -v.
3982         (cpp_post_options): Don't print a version string.
3984 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3986         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3987         (avr_section_type_flags): New, handle .noinit* sections.
3989 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3991         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3992         and include netbsd_entry_point.
3993         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3994         (NETBSD_ENTRY_POINT): Define.
3996 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3998         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3999         if not already defined.
4000         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4002 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4004         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4005         in a noreturn function.
4006         (avr_output_function_prologue, avr_output_function_epilogue):
4007         Correct function size calculation.  Do not crash on empty function.
4008         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4010 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4012         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4013         netbsd_link_spec and netbsd_entry_point.
4014         (LINK_SPEC): Use %(netbsd_link_spec).
4015         (NETBSD_ENTRY_POINT): Define.
4017 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4019         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4020         linker emulation.
4021         (LINK_ARCH64_SPEC): Likewise.
4022         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4023         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4025 2002-06-08  Marc Espie  <espie@openbsd.org>
4027         * lists.c (free_list):  Fix typo in comment.
4029 2002-06-08  Andreas Jaeger  <aj@suse.de>
4031         * lcm.c (optimize_mode_switching): Add unused attribute for
4032         variable.
4034         * sched-deps.c (sched_analyze): Remove unused variable.
4036 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
4038         * diagnostic.def: Don't capitalize diagnostict descriptors.
4040 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4042         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4043         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4044         (NETBSD_ENTRY_POINT): Define.
4046 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4048         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4049         NETBSD_LINK_SPEC_ELF.
4050         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4051         (NETBSD_ENTRY_POINT): Define.
4052         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4053         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4054         netbsd_entry_point.
4055         (NETBSD_ENTRY_POINT): Define.
4057 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4059         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4060         netbsd_link_spec and netbsd_entry_point.
4061         (LINK_SPEC): Use %(netbsd_link_spec).
4062         (NETBSD_ENTRY_POINT): Define.
4064 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4066         * config/netbsd-elf.h (LINK_SPEC): Rename to...
4067         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
4068         to specify program entry point.
4070 2002-06-07  Jeff Law <law@redhat.com
4072         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4073         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4074         than creating a new register.
4075         (distribute_notes): Likewise.
4076         * df.c (df_reg_use_gen): Likewise.
4077         (df_reg_clobber_gen): Likewise.
4078         (df_ref_record): Likewise.
4079         * expr.c (use_regs): Likewise.
4080         * flow.c (propagate_one_insn): Likewise.
4081         (mark_set_1): Likewise.
4082         (mark_used_reg): Likewise.
4083         * reload.c (emit_reload_insns): Likewise.
4085 2002-06-07  Roger Sayle  <roger@eyesopen.com>
4087         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4088         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4089         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4090         comparison code comp can be reversed.
4092 2002-06-07  Roger Sayle  <roger@eyesopen.com>
4094         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
4095         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
4096         equivalent x > -1.0 when -ffast-math.
4098 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4100         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4101         * config/mips/t-netbsd: New file.
4103 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
4105         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4106         options their own entries.
4107         (parse_option): Clarify comment.
4108         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4109         special case.  Replace if/strcmp chain for -W options with
4110         use of new OPT_* entries for them.
4111         (cpp_handle_options): Update to match.
4112         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4113         * c-decl.c: Update call to cpp_handle_option.
4115 2002-06-07  Akim Demaille  <akim@epita.fr>
4117         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4118         Whitespace changes.
4120 2002-06-07  Jeffrey Law  <law@redhat.com>
4122         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4123         on empty lists.
4125 2002-06-07  H.J. Lu  (hjl@gnu.org)
4127         * configure.in: Add --enable-__cxa_atexit.
4128         * configure: Regenerated.
4129         * config.in: Likewise.
4131         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4132         not defined.
4134 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
4136         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4138 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4140         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4142 2002-06-07  Jason Merrill  <jason@redhat.com>
4144         * cppexp.c (num_equality_op): Use a temporary variable to work
4145         around gcc 3.0.4 bug.
4147 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
4149         * diagnostic.c (diagnostic_build_prefix): Tidy.
4151 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4153         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4154         scan_parameters, save_replacement_text, replacement_length): New.
4155         (scan_out_logical_line): Take a macro and save parameters if
4156         non-NULL.
4157         (_cpp_logical_line_trad): Update.
4158         (_cpp_create_trad_definition): Update to handle function-like
4159         macros.
4160         * cpplex.c (new_buff): Update.
4161         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4162         * cpphash.h: ...here.
4163         (CPP_ALIGN2, _cpp_save_parameter): New.
4164         * cppmacro.c (save_parameter): Rename, export.
4165         (parse_params): Update.
4167 2002-06-07  Andreas Jaeger  <aj@suse.de>
4169         * config/mmix/mmix.c: Remove extra broken prototype for
4170         mmix_init_machine_status.
4172 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
4174         * gengtype.c: Add comments before all the routines.
4176 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4178         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4179         from and add t-sh64 to ${tmake_file}.
4180         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4181         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4182         * config/sh/t-netbsd-sh5-32: Remove.
4183         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4184         MULTILIB_ENDIAN.
4185         (MULTILIB_DIRNAMES): Define.
4187 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
4189         * i386.md (and promoting splitters): Disable QI to SImode promoting
4190         when doing so changes immediate to be 32bit.
4192         * rtl.h (emit_*_scope): Declare.
4193         * emit-rtl.c (emit_*_scope): New global functions.
4194         (try_split): Copy scope.
4195         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4196         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4197         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4198         noce_process_if_block, find_cond_trap): Copy scopes.
4199         * recog.c (peephole2_optimize): likewise.
4201 2002-06-06  Jeffrey Law  <law@redhat.com>
4203         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4205 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4207         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4209 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4211         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4212         ($(docdir)/gccinstall.info): New target.
4213         (info): Depend on it.
4214         (gccinstall.dvi): New target.
4215         (dvi): Depend on it.
4216         * doc/.cvsignore: Ignore new info files.
4217         * doc/install.texi (@setfilename): Reflect new info filename.
4219 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
4221         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4222         on an UNSPEC.
4224 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4226         PR objc/6834
4227         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4228         c_common_get_alias_set.
4229         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4231 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4233         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4234         functions.
4235         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4236         * avr/avr.c (avr_output_function_epilogue): Use above to determine
4237         function size.
4238         * pa/pa.c (pa_output_function_prologue): Likewise.
4240 2002-06-05  David S. Miller  <davem@redhat.com>
4242         * integrate.c (subst_constants): Handle 'B' RTL format.
4244 2002-06-05  Eric Christopher  <echristo@redhat.com>
4246         * varasm.c (make_decl_rtl): Fix comment for removed
4247         halfpic.c.
4249 2002-06-05  Eric Christopher  <echristo@redhat.com>
4251         * Makefile.in: Remove missed halfpic bits.
4253 2002-06-05  Eric Christopher  <echristo@redhat.com>
4255         * toplev.c: Remove half-pic.
4256         * config/mips/mips.c: Ditto.
4257         * config/mips/mips.h: Ditto. Remove unused defines.
4258         * config/mips/openbsd.h: Update comment to reflect above.
4259         * config/mips/mips.md: Remove half-pic constraints.
4260         * halfpic.h: Delete.
4261         * halfpic.c: Ditto.
4263 2002-06-05  Jeffrey Law  <law@redhat.com>
4265         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4266         rejects (mem (lo_sum (reg) (unspec))), but will allow
4267         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4269 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4271         * cpphash.h (_cpp_create_definition): Update prototype.
4272         (_cpp_push_text_context, _cpp_create_trad_definition): New.
4273         ( cpp_lex_identifier_trad): New.
4274         (_cpp_set_trad_context): New.
4275         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4276         * cpplib.c (SEEN_EOL): Update.
4277         (lex_macro_node): Update for -traditional.
4278         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4279         * cppmacro.c (_cpp_create_definition): Split into
4280         create_iso_definition() and _cpp_create_trad_definition().
4281         (warn_of_redefinition): Update prototype; handle traditional
4282         macros.
4283         (_cpp_push_text_context): New.
4284         * cpptrad.c (skip_whitespace, push_replacement_text): New.
4285         (lex_identifier): Call ht_lookup with correct start.
4286         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4287         _cpp_set_trad_context): New.
4288         (scan_out_logical_line): Update to handle changing contexts.
4290 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
4292         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
4293         (shl*-*-elf*): Add.
4294         * config/sh/t-be (MULTILIB_ENDIAN): Set.
4295         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4296         * t-sh (MULTILIB_ENDIAN): Set.
4297         (MULTILIB_OPTIONS): Use it.
4298         * t-sh64 (MULTILIB_OPTIONS): Likewise.
4299         (MULTILIB_DIRNAMES): Likewise.
4301 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
4303         * toplev.h (report_error_function): Remove.
4305         * diagnostic.h (location_t): New datatype.
4306         (text_info): Likewise.
4307         (diagnostic_info): Likewise.
4308         (output_prefix): New macro.
4309         (diagnostic_last_function_changed): Likewise.
4310         (diagnostic_set_last_function): Likewise.
4311         (diagnostic_last_module_changed): Likewise.
4312         (diagnostic_set_last_module): Likewise.
4313         (report_diagnostic): Now macro.
4314         (diagnostic_set_info): Declare.
4316         * diagnostic.c (report_problematic_module): Rename to
4317         diagnostic_repor_current_module.
4318         (set_diagnostic_context): Remove.
4319         (count_error): Rename to diagnostic_error_count.
4320         (error_function_changed): Remove.
4321         (record_last_error_function): Likewise.
4322         (error_module_changed): Likewise.
4323         (record_last_error_module): Likewise.
4324         (context_as_prefix): Rename to diagnostic_build_prefix.
4325         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4326         (diagnostic_set_info): New function.
4328         * objc/objc-act.c: #include diagnostic.h
4329         (error_with_ivar): Adjust call to count_error.
4330         (warn_with_method): Likewise.
4331         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4333 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
4335         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4336         lang_hooks.types.make_type instead of make_node; set up
4337         __va_list_tag type decl.
4338         (xtensa_builtin_saveregs): Remove broken use of
4339         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4340         for saved registers; add varargs alias set.
4342 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4344 config:
4345         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4346         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4347         CPP_PREDEFINES and part of CPP_SPEC.
4348         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4349         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4351 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
4353         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4355 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
4357         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4359 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
4361         * gengtype-yacc.y: Make sure all rules end with a semicolon.
4363 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
4365         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4366         typo in function prototype and include "ggc.h" header.
4368 2002-06-04  Richard Henderson  <rth@redhat.com>
4370         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4371         (print_operand) ['U']: Likewise.
4372         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4373         (alpha_expand_unaligned_store_words): Likewise.
4374         (alpha_expand_builtin_vector_binop): Fix typo.
4375         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4376         umulh, and cix insns.
4377         (one_arg_builtins): Add cix builtins.
4378         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4379         (alpha_expand_builtin): Fix typo in arity.
4380         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4381         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4382         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4383         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4384         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4385         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4386         builtin_ctlz, builtin_ctpop): New.
4387         * doc/extend.texi (Alpha Built-in Functions): Update.
4389 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
4391         * gengtype.c (write_gc_root): Don't unnecessarily prevent
4392         global variable-length arrays being roots.
4394         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4395         * configure.in (config_gtfiles): New variable.
4396         (all_gtfiles): Initialise from config_gtfiles.
4397         * configure: Regenerate.
4399 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4401 config/i386:
4402         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4403         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4404         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4405         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4406         win32.h (CPP_SPEC): Remove cpp_cpu.
4407         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4408         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4410 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
4412         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4414 2002-06-04  Jeff Law <law@redhat.com.
4415             David Edelsohn <edelsohn@gnu.org>
4416             Michael Matz <matz@kde.org>
4418         * sched-int.h (struct deps): New field libcall_block_tail_insn.
4419         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4420         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4421         is set, then mark the current insn as being part of a libcall
4422         scheduling group.
4423         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4425         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4426         insns against the issue rate.
4428 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
4430         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4431         * final.c (final_scan_insn): Likewise.
4432         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4433         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4434         * haifa-sched.c (unlink_other_notes): Likeewise.
4435         (reemit_notes): Likewise.
4436         * print-rtl.c (print_rtx): Likewise.
4437         * sched-deps (sched-analyze): Likewise.
4438         * rtl.c (note_insn_name): Likewise.
4439         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4440         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4441         (RANGE_*): Kill.
4443 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
4445         * varasm.c (mark_constants): Handle RTX format 'B'.
4447 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4449         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4450         (struct cpp_context): Add traditional fields.
4451         * cppmacro.c (paste_all_tokens, push_ptoken_context,
4452         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4453         * cpptrad.c (skip_comment, lex_identifier,
4454         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4456 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
4458         * gbl-ctors.h: Fix formatting.
4459         * gcc.c: Likewise.
4460         * gccspec.c: Likewise.
4461         * gcov.c: Likewise.
4462         * gcov-io.h: Likewise.
4463         * gcse.c: Likewise.
4464         * ggc-common.c: Likewise.
4465         * ggc.h: Likewise.
4466         * ggc-page.c: Likewise.
4467         * ggc-simple.c: Likewise.
4468         * global.c: Likewise.
4469         * graph.h: Likewise.
4470         * gthr-dce.h: Likewise.
4471         * gthr.h: Likewise.
4472         * gthr-posix.h: Likewise.
4473         * gthr-rtems.h: Likewise.
4474         * gthr-solaris.h: Likewise.
4475         * gthr-win32.h: Likewise.
4477 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
4479         Merge from pch-branch:
4481         * gengtype.h (UNION_OR_STRUCT_P): New macro.
4482         * gengtype.c (write_gc_structure_fields): Use it.
4483         (write_gc_root): Use it here too.
4485         * gengtype.c (write_gc_structure_fields): Assume that lengths
4486         of typenames fit into an 'int'; don't pass a size_t to "%d" in
4487         printf.
4488         (write_gc_marker_routine_for_structure): Likewise.
4489         (write_gc_types): Likewise.
4490         (write_gc_root): Likewise.
4492         * varray.h (VARRAY_CLEAR): New.
4493         (varray_clear): Prototype.
4494         * varray.c (varray_clear): New.
4495         * cselib.c (reg_values_old): New.
4496         (used_regs_old): New.
4497         (cselib_init): Use cached varrays if available to avoid
4498         generating large amounts of garbage.
4499         (cselib_finish): Don't throw away old varrays.
4501         * final.c (insn_addresses_): Move out of ifdef.
4503         * varray.c (uses_ggc): Make more varray kinds GCable.
4504         * varray.h (union varray_data_tag): Let gengtype see
4505         fields 'generic' and 'te'.
4506         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4507         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4508         (reg_to_stack): Don't call VARRAY_FREE.
4509         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4510         (insn_addresses_): Use gengtype to mark.
4511         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4512         pointers; handle generic pointers in unused union fields.
4513         (get_output_file_with_visibility): Include cselib.h,
4514         insn-addr.h in gtype-desc.c.
4515         * function.c (prologue): Use gengtype to mark.
4516         (epilogue): Likewise.
4517         (sibcall_epilogue): Likewise.
4518         * dependence.c: Include gt-dependence.h, ggc.h.
4519         (struct def_use): Use gengtype to mark.
4520         (struct loop): Likewise.
4521         (struct induction): Likewise.
4522         (struct dependence): Likewise.
4523         (def_use_chain): Likewise.
4524         (dep_chain): Likewise.
4525         (loop_chain): Likewise.
4526         (induction_chain): Likewise.
4527         (init_dependence_analysis): Don't free anything, just clear pointers.
4528         (build_def_use): Use GGC to allocate def_use.
4529         (add_loop): Use GGC to allocate loop.
4530         (find_induction_variable): Use GGC to allocate induction.
4531         (check_node_dependence): Use GGC to allocate induction, dependence.
4532         (dump_node_dependence): Don't free varrays.
4533         (end_dependence_analysis): Likewise.
4534         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4535         (struct elt_loc_list): Likewise.
4536         (struct elt_list): Likewise.
4537         * cselib.c: Don't include obstack.h.
4538         (hash_table): Use gengtype to mark.
4539         (reg_values): Use gengtype to mark.
4540         (used_regs): Use gengtype to mark.
4541         (cselib_obstack): Delete.
4542         (cselib_startobj): Delete.
4543         (empty_vals): Mark as deletable.
4544         (empty_elt_lists): Mark as deletable.
4545         (empty_elt_loc_lists): Mark as deletable.
4546         (new_elt_list): Use GGC to allocate struct elt_list.
4547         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4548         (clear_table): Don't delete obstack; don't unnecessarily clear
4549         deletable variables.
4550         (new_cselib_val): Use GGC to allocate struct cselib_val.
4551         (cselib_init): Don't set up obstacks.  Use GGC to allocate
4552         hash table.
4553         (cselib_finish): Just clear variables, don't free anything.
4554         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4555         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4556         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4557         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4558         (gt-reg-stack.h): New rule.
4559         (gt-dependence.h): New rule.
4560         (gtype-desc.o): Add cselib.h, insn-addr.h.
4562         * varray.c: Use only necessary headers.
4563         (element_size): New.
4564         (uses_ggc): New.
4565         (varray_init): Take type, not size.  Use GGC if appropriate.
4566         (varray_grow): Update for change to struct varray_head_tag.
4567         Use GGC if appropriate.
4568         * varray.h (struct const_equiv_data): Use gengtype.
4569         (enum varray_data_enum): New.
4570         (union varray_data_tag): Use gengtype.
4571         (struct varray_head_tag): Use gengtype.  Replace size field with
4572         enum varray_data_enum.
4573         (varray_init): Update prototype.
4574         (VARRAY_SCHED_INIT): Delete.
4575         (VARRAY_*_INIT): Update for change to varray_init.
4576         (VARRAY_SCHED): Delete.
4577         (VARRAY_PUSH_SCHED): Delete.
4578         (VARRAY_TOP_SCHED): Delete.
4579         * tree.h: Update for change to length specifier.
4580         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4581         (clone_body): Likewise.
4582         * ssa.h (ssa_definition): Use gengtype to mark.
4583         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4584         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4585         * rtl.h (struct rtvec_def): Update for change to length specifier.
4586         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4587         (struct initial_value_struct): Update for change to length specifier.
4588         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4589         (ggc_add_tree_varray_root): Delete prototype.
4590         (ggc_mark_rtx_varray): Delete prototype.
4591         (ggc_mark_tree_varray): Delete prototype.
4592         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4593         (ggc_add_tree_varray_root): Delete.
4594         (ggc_mark_rtx_varray): Delete.
4595         (ggc_mark_tree_varray): Delete.
4596         (ggc_mark_rtx_varray_ptr): Delete.
4597         (ggc_mark_tree_varray_ptr): Delete.
4598         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4599         (create_varray): Delete prototype.
4600         * gengtype.c (varrays): Delete.
4601         (create_varray): Delete.
4602         (adjust_field_type): Detect array of string pointers.
4603         (process_gc_options): Remove code to handle varray_type option.
4604         (set_gc_used_type): Remove TYPE_VARRAY case.
4605         (output_escaped_param): New.
4606         (write_gc_structure_fields): Use output_escaped_param on all
4607         parameters.  Handle 'skip' with 'use_param' option.  Handle
4608         arrays of strings.  Remove TYPE_VARRAY handling.
4609         (write_gc_roots): Use boolean to detect 'length' option.
4610         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4611         (struct_fields): Call adjust_field_type on array fields.
4612         (type): Remove VARRAY_TYPE case.
4613         (type_option): Likewise.
4614         * gengtype-lex.l: Don't consider varray_type a keyword.
4615         * function.h: Update for change to length specifier.
4616         (free_eh_status): Delete prototype.
4617         * function.c (free_after_compilation): Don't call free_eh_status.
4618         (reorder_blocks): Don't use VARRAY_FREE.
4619         * except.c (struct eh_status): Update for change to length specifier.
4620         remove varray_type specifier.
4621         (free_eh_status): Delete.
4622         * dwarf2out.c: Include gt-dwarf2out.h.
4623         (used_rtx_varray): Use gengtype to mark, move
4624         outside ifdefs.
4625         (incomplete_types): Likewise.
4626         (decl_scope_table): Likewise.
4627         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4628         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4629         * c-tree.h (struct lang_type): Update for change to length specifier.
4630         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4631         * c-objc-common.c: Include gt-c-objc-common.h.
4632         (deferred_fns): Mark for gengtype.
4633         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4634         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4635         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4636         (gtype-desc.o): Update dependencies.
4637         (dwarf2out.o): Add gt-dwarf2out.h.
4638         (varray.o): Update dependencies.
4639         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4640         (gt-c-objc-common.h): New rule.
4641         (gt-dwarf2out.h): New rule.
4642         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4644         * doc/gty.texi (GTY Options): Correct spelling.
4645         (GGC Roots): Likewise.
4646         * Makefile.in (TEXI_CPP_FILES): New.
4647         (TEXI_GCC_FILES): New.
4648         (TEXI_GCCINT_FILES): New.
4649         (TEXI_CPPINT_FILES): New.
4650         ($(docdir)/cpp.info): Use new macros.
4651         ($(docdir)/gcc.info): Likewise.
4652         ($(docdir)/gccint.info): Likewise.
4653         ($(docdir)/cppinternals.info): Likewise.
4654         (cpp.dvi): Likewise.
4655         (gcc.dvi): Likewise.
4656         (gccint.dvi): Likewise.
4657         (cppinternals.dvi): Likewise.
4659         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4660         * doc/gccint.texi (Top): Include gty.texi.
4661         * doc/gty.texi: New file.
4663         * bitmap.c: Include ggc.h, gt-bitmap.h.
4664         (bitmap_ggc_free): New.
4665         (bitmap_elem_to_freelist): New.
4666         (bitmap_element_free): Use bitmap_elem_to_freelist.
4667         (bitmap_element_allocate): Allow use of GGC.
4668         (bitmap_clear): Use bitmap_elem_to_freelist.
4669         (bitmap_copy): Update for change to bitmap_element_allocate.
4670         (bitmap_set_bit): Likewise.
4671         (bitmap_operation): Update for changes elsewhere.
4672         (bitmap_initialize): Allow to create bitmaps that will use GGC.
4673         * bitmap.h (struct bitmap_element_def): Use gengtype.
4674         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
4675         (bitmap_initialize): Add extra parameter.
4676         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4677         (BITMAP_ALLOCA): Delete.
4678         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4679         (BITMAP_GGC_ALLOC): New.
4680         * Makefile.in (gtype-desc.o): Add bitmap.h.
4681         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4682         (GTFILES): Add bitmap.c.
4683         (gt-bitmap.h): New rule.
4684         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4685         * basic-block.h: Update for changes to bitmap_initialize.
4686         * except.c (exception_handler_label_map): Move into...
4687         (struct eh_status): Here.
4688         (struct eh_region): Make 'aka' GCable.
4689         (free_eh_status): Don't need to specially handle
4690         exception_handler_label_map.
4691         (add_ehl_entry): Update for changes to exception_handler_label_map.
4692         (find_exception_handler_labels): Likewise.
4693         (remove_exception_handler_label): Likewise.
4694         (maybe_remove_eh_handler): Likewise.
4695         (for_each_eh_label): Likewise.
4696         (remove_eh_handler): Allocate 'aka' using GGC.
4697         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4698         to list of includes.
4700         * gengtype.c (write_gc_marker_routine_for_structure): Name
4701         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4702         (write_gc_types): Arrange for the tests with NULL to be inlined.
4703         (write_gc_roots): Update uses of procedure pointers.
4704         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4706         * Makefile.in (explow.o): Add dependency on gt-explow.h.
4707         (sdbout.o): Add dependency on gt-sdbout.h.
4709         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4710         (mem_attrs_htab): Likewise.
4711         (init_emit_once): Don't call ggc_add_deletable_htab.
4712         * fold-const.c (size_htab): Use gengtype to clear unused entries.
4713         (size_int_type_wide): Don't call ggc_add_deletable_htab.
4714         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4715         parameters, use them, change callers.
4716         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4717         (write_gc_roots): Handle 'if_marked' option.
4718         (main): Don't need to call set_gc_used_type any more.
4719         * ggc.h (ggc_htab_marked_p): Delete.
4720         (ggc_htab_mark): Delete.
4721         (struct ggc_cache_tab): New.
4722         (gt_ggc_cache_rtab): New declaration.
4723         * ggc-common.c (struct d_htab_root): Delete.
4724         (d_htab_roots): Delete.
4725         (ggc_add_deletable_htab): Delete.
4726         (ggc_htab_delete): Handle new htab-deleting mechanism.
4727         (ggc_mark_roots): Use new htab-deleting mechanism.
4728         * tree.c (type_hash_table): Use gengtype to clear unused entries.
4729         Make static.
4730         (init_obstacks): Don't call ggc_add_deletable_htab.
4732         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4733         (struct hashed_entry): Likewise.
4734         (nst_method_hash_list): Likewise.
4735         (cls_method_hash_list): Likewise.
4736         (HASH_ALLOC_LIST_SIZE): Delete.
4737         (ATTR_ALLOC_LIST_SIZE): Delete.
4738         * objc/objc-act.c (hash_init): Use ggc to allocate
4739         nst_method_hash_list, cls_method_hash_list.
4740         (hash_enter): Use ggc to allocate; allocate one entry at a time.
4741         (hash_add_attr): Likewise.
4742         (ggc_mark_hash_table): Delete.
4743         (objc_act_parse_init): Delete.
4744         (objc_init): Delete reference to objc_act_parse_init.
4745         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
4746         obstack.h.  Replace references to 'struct hash_table' with htab_t.
4747         (struct symbol_hash_entry): Replace hash header with key field.
4748         (struct file_hash_entry): Replace hash header with key field.
4749         (struct demangled_hash_entry): Replace hash header with key field.
4750         (hash_string_eq): New.
4751         (hash_string_hash): New.
4752         (symbol_hash_newfunc): Delete.
4753         (symbol_hash_lookup): Modify to use htab_t.
4754         (file_hash_newfunc): Delete.
4755         (file_hash_lookup): Modify to use htab_t.
4756         (demangled_hash_newfunc): Delete.
4757         (demangled_hash_lookup): Modify to use htab_t.
4758         (tlink_init): Modify to use htab_t.
4759         * hash.h: Delete.
4760         * hash.c: Delete.
4761         * ggc.h: Delete forward structure declarations.
4762         Delete prototypes for deleted functions.
4763         * ggc-common.c: Don't include hash.h.
4764         (ggc_add_tree_hash_table_root): Delete.
4765         (ggc_mark_tree_hash_table_entry): Delete.
4766         (ggc_mark_tree_hash_table): Delete.
4767         (ggc_mark_tree_hash_table_ptr): Delete.
4768         * gengtype.c (write_gc_structure_fields): Allow param_is option.
4769         (write_gc_marker_routine_for_structure): Use visibility of
4770         the parameter if there is one.
4771         * function.c: Replace hash.h with hashtab.h.  Replace references
4772         to 'struct hash_table *' with htab_t.
4773         (struct insns_for_mem_entry): Include a plain key.
4774         (fixup_var_refs_insns_with_hash): Update to use htab_t.
4775         (insns_for_mem_newfunc): Delete.
4776         (insns_for_mem_hash): Update to use htab_t.
4777         (insns_for_mem_comp): Likewise.
4778         (insns_for_mem_walk): Likewise.
4779         * c-lang.c: Include ggc.h.
4780         * Makefile.in (OBJS): Remove hash.o.
4781         (c-lang.o): Add GGC_H.
4782         (COLLECT2_OBJS): Remove hash.o.
4783         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4784         (ggc-common.o): Remove hash.h.
4785         (function.o): Remove hash.h, add HASHTAB_H.
4786         (genautomata.o): Remove hash.h, add HASHTAB_H.
4788         * varasm.c (mark_const_str_htab_1): Delete.
4789         (mark_const_str_htab): Delete.
4790         (const_str_htab_del): Delete.
4791         (const_str_htab): Use gengtype to mark.
4792         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
4793         allocate them.
4794         * tree.c (mark_tree_hashtable_entry): Delete.
4795         (mark_tree_hashtable): Delete.
4796         * tree.h (mark_tree_hashtable): Delete prototype.
4797         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4798         (ggc_mark): Likewise.
4799         (ggc_calloc): New.
4800         (htab_create_ggc): New.
4801         * ggc-common.c (ggc_calloc): New.
4802         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4803         (struct type): Add param_struct structure.
4804         * gengtype.c (param_structs): New.
4805         (adjust_field_type): Handle param_is option.
4806         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4807         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4808         (write_gc_structure_fields): Add new PARAM parameter.  Update
4809         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
4810         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4811         Use it to generate function name.  Update callers.
4812         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
4813         Process them.
4814         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
4815         option.
4816         (main): Define PTR as pointer-to-scalar.  Don't specially
4817         mark deferred_string or ehl_map_entry.
4818         * gengtype-yacc.y (PARAM_IS): Add new token.
4819         (externstatic): Use adjust_field_type.
4820         (type_option): Add PARAM_IS.
4821         * gengtype-lex.l: Add rule for typedef of function pointers.
4822         Add rule for PARAM_IS.
4823         (IWORD): Add size_t.
4824         * except.c (exception_handler_label_map): Use gengtype to mark.
4825         (type_to_runtime_map): Likewise.
4826         (mark_ehl_map_entry): Delete.
4827         (mark_ehl_map): Delete.
4828         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4829         (t2r_mark_1): Delete.
4830         (t2r_mark): Delete.
4831         * Makefile.in (gtype-desc.o): Correct dependencies.
4832         (GTFILES): Add hashtab.h.
4833         (genautomata.o): Actually uses hashtab.h.
4835         * Makefile.in (stringpool.o): Add $(GGC_H).
4836         (dwarf2asm.o): Likewise.
4837         (GTFILES): Add hashtable.h.
4838         * c-common.h (struct c_common_identifier): Use gengtype.
4839         * c-decl.h (c_mark_tree): Delete.
4840         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4841         * c-tree.h (struct lang_identifier): Use gengtype.
4842         (union lang_tree_node): New.
4843         (c_mark_tree): Delete prototype.
4844         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4845         dwarf2_debug_hooks.
4846         * gengtype-lex.l (IWORD): Allow 'bool'.
4847         (ptr_alias): Match.
4848         * gengtype-yacc.y (ALIAS): New token.
4849         (type_option): New rule.
4850         (option): Use type_option.
4851         * gengtype.c (process_gc_options): New.
4852         (set_gc_used_type): Use it.
4853         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4854         Add new variable 't' to hold the type of the field being processed.
4855         Add more error checking.  Use UNION_P when looking at 'desc' option.
4856         Handle language-specific structures containing other
4857         language-specific structures.
4858         (write_gc_types): Handle 'ptr_alias' option.
4859         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4860         * ggc-common.c (ggc_pending_trees): Delete.
4861         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4862         (ggc_mark_trees): Delete.
4863         (gt_ggc_m_tree_node): Delete.
4864         * ggc.h (ggc_pending_trees): Delete.
4865         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4866         * hashtable.h (ht_identifier): Use gengtype.
4867         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4868         * langhooks.h (struct lang_hooks): Delete mark_tree.
4869         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4870         anyway.
4871         * system.h: Poison LANG_HOOKS_MARK_TREE.
4872         * tree.c (tree_node_structure): New.
4873         * tree.h (struct tree_common): Use gengtype.
4874         (struct tree_int_cst): Likewise.
4875         (struct tree_real_cst): Likewise.
4876         (struct tree_string): Likewise.
4877         (struct tree_complex): Likewise.
4878         (struct tree_vector): Likewise.
4879         (struct tree_identifier): Likewise.
4880         (struct tree_list): Likewise.
4881         (struct tree_vec): Likewise.
4882         (struct tree_exp): Likewise.
4883         (struct tree_block): Likewise.
4884         (struct tree_type): Likewise.
4885         (struct tree_decl): Likewise.
4886         (enum tree_structure_enum): New.
4887         (union tree_node): Use gengtype, with an alias.
4888         (tree_node_structure): Prototype.
4889         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4891         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
4892         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
4893         to LANG_HOOKS_FUNCTION_FINAL.
4894         * Makefile.in (GTFILES): Add bitmap.h.
4895         * except.c (struct eh_region): Mark field 'aka' to be skipped.
4897         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4898         (alpha_init_machine_status): Give proper type.
4899         * Makefile.in (c-lang.o): Depend on gtype-c.h.
4900         (optabs.o): Depend on gt-optabs.h.
4901         (GTFILES): Add optabs.o.
4902         (gt-optabs.h): Add rule.
4903         * optabs.c: Include gt-optabs.h.
4905         * gengtype.c (set_gc_used_type): Correct some errors in last change.
4906         (write_gc_structure_fields): If a field which should be NULL is
4907         not, abort.
4908         * c-pragma.c: Move struct align_stack and variable alignment_stack
4909         out from the ifdef.
4911         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4912         * config/xtensa/xtensa.c: Include gt-cris.h.
4913         (struct machine_function): Use gengtype to mark.
4914         * config/mmix/mmix.h (struct machine_function): Use gengtype
4915         to mark.
4916         * config/cris/t-cris: Add dependencies for gt-cris.h.
4917         * config/cris/cris.c: Include gt-cris.h.
4918         (struct machine_function): Use gengtype to mark.
4919         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4920         to mark.
4921         * doc/tm.texi (Per-Function Data): Delete references to
4922         mark_machine_status.
4923         * config/ia64/ia64.c (ia64_override_options): Don't set
4924         mark_machine_status.
4925         * config/i386/i386.c (override_options): Likewise.
4926         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4927         * config/arm/arm.c (arm_init_expanders): Likewise.
4928         * config/alpha/alpha.c (override_options): Likewise.
4929         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
4930         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4931         (write_gc_structure_fields): Don't handle 'really' option.
4932         Handle 'maybe_null' option.
4933         (write_gc_types): Handle 'maybe_null' option.
4934         * function.h (struct function): Don't use "really".
4935         (mark_machine_status): Delete declaration.
4936         (mark_lang_status): Delete declaration.
4937         (gt_ggc_mr_machine_function): Delete prototype.
4938         (gt_ggc_mr_language_function): Delete prototype.
4939         * function.c (mark_machine_status): Delete.
4940         (mark_lang_status): Delete.
4941         (gt_ggc_mr_machine_function): Delete.
4942         (gt_ggc_mr_language_function): Delete.
4943         * c-tree.h (mark_c_function_context): Delete prototype.
4944         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4945         * c-decl.c (struct language_function): Rename from struct
4946         c_language_function.  Update uses.  Use gengtype to mark.
4947         (mark_c_function_context): Delete.
4948         * c-common.h (struct c_language_function): Rename from struct
4949         language_function.
4950         (mark_stmt_tree): Delete prototype.
4951         (c_mark_lang_decl): Delete prototype.
4952         (mark_c_language_function): Delete prototype.
4953         * c-common.c (mark_stmt_tree): Delete.
4954         (c_mark_lang_decl): Delete.
4955         (mark_c_language_function): Delete.
4957         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4958         (lang_bitmap): New typedef.  Use where appropriate.
4959         (struct type): Add gc_used field, lang_struct field.
4960         (UNION_P): New macro.
4961         (new_structure): New prototype.
4962         (find_structure): Remove 'pos' parameter.  Change all callers.
4963         * gengtype-lex.l: Update for changes to find_structure.
4964         * gengtype-yacc.y (typedef_struct): Use new_structure.
4965         (yacc_ids): Suppress warning.
4966         (type): Use new_structure.
4967         * gengtype.c (string_type): Update for changes to struct type.
4968         (find_structure): Just find a structure, don't worry about
4969         creating one.
4970         (new_structure): New.
4971         (note_yacc_type): Use new_structure.
4972         (set_gc_used_type): New.
4973         (set_gc_used): New.
4974         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4975         (write_gc_types): Handle TYPE_LANG_STRUCT.
4976         (write_gc_marker_routine_for_structure): New.
4977         (main): Call set_gc_used.  Add some calls to set_gc_used_type
4978         for places where GCC doesn't use gengtype properly yet.
4979         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4980         (gt_ggc_m_tree_node): Likewise.
4982         * varasm.c (copy_constant): Call expand_constant if we hit
4983         something we can't recognise.
4985         * ggc-common.c (ggc_mark_rtvec_children): Delete.
4986         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4987         (lang_mark_false_label_stack): Delete.
4988         * rtl.h (struct rtvec_def): Use gengtype to mark.
4989         * ggc.h (ggc_mark_rtvec): Delete.
4990         (gt_ggc_m_rtvec_def): Delete.
4991         (ggc_mark_nonnull_tree): Delete.
4992         (ggc_mark_rtvec_children): Delete prototype.
4993         (lang_mark_false_label_stack): Delete declaration.
4995         * gengtype.h (note_yacc_type): Add prototype.
4996         * gengtype.c (note_yacc_type): New function.
4997         * gengtype-lex.l: Add lexer support for yacc files.
4998         * gengtype-yacc.y (start): Extract union from yacc files.
4999         (yacc_union): New rule.
5000         (yacc_typematch): New rule.
5001         (yacc_ids): New rule.
5002         (enum_items): Tweak for efficiency.
5003         (optionseq): Likewise.
5005         * c-common.h (struct language_function): Use gengtype.
5006         (struct c_lang_decl): Likewise.
5007         * c-tree.h (struct lang_decl): Likewise.
5008         (struct lang_type): Likewise.
5009         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5010         tree language substructures.
5012         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5013         ggc_mark_tree.
5014         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5016         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5018         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
5019         mark. Remove 'data.block.cleanup_ptr' field.
5020         (struct stmt_status): Use usual technique to mark struct nesting.
5021         (gt_ggc_mr_nesting_cond): Delete.
5022         (gt_ggc_mr_nesting_loop): Delete.
5023         (gt_ggc_mr_nesting_block): Delete.
5024         (gt_ggc_mr_nesting_case_stmt): Delete.
5025         (expand_start_cond): Set discriminator.
5026         (expand_start_loop): Likewise.
5027         (expand_start_null_loop): Likewise.
5028         (expand_start_bindings_and_block): Set discriminator.  Don't set
5029         deleted fields.
5030         (expand_decl_cleanup): Replace 'cleanup_ptr' with
5031         &thisblock->data.block.cleanups.
5032         (expand_start_case): Set discriminator.
5033         (expand_start_case_dummy): Set discriminator.
5035         * ggc-callbacks.c: Remove.
5037         * gengtype.h (struct type): Add 'u.s.bitmap' field.
5038         (find_structure): Add 'pos' parameter.
5039         * gengtype-lex.l: Update callers to find_structure.
5040         * gengtype-yacc.y: Likewise.
5041         * gengtype.c (find_structure): Allow for structures to be defined
5042         in multiple language backends.
5043         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5044         (counter): Rename to gc_counter.
5045         (write_gc_structure_fields): Fail when writing out fields for
5046         an incomplete structure.  Ignore arrays of scalars.  Handle
5047         'tree_vec' special.
5048         (write_gc_types): Reset counter for each procedure written.
5050         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5051         (free_case_nodes): Delete.
5052         (expand_end_case_type): Delete call to free_case_nodes.
5054         * Makefile.in (cselib.o): Include gt-<filename>.h.
5055         (gcse.o): Likewise.
5056         (profile.o): Likewise.
5057         (alias.o): Likewise.
5058         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5059         alphabetize backend files.
5060         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5061         * alias.c: Use gengtype for roots.
5062         * c-common.h (struct stmt_tree_s): Use gengtype.
5063         * c-decl.c: Use gengtype for roots.
5064         * cselib.c: Use gengtype for roots.
5065         * expr.c: Use gengtype for roots.
5066         * fold-const.c: Use gengtype for roots.
5067         * gcse.c: Use gengtype for roots.
5068         * gengtype-lex.l: Handle typedefs of function types.
5069         Allow for empty array bounds.
5070         Allow processing to stop on initialisers.
5071         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5072         (semiequal): New rule.
5073         * gengtype.c (create_file): Tidy output files.
5074         (get_output_file_with_visibility): Fix paren warning.  Fix bug
5075         involving multiple input files mapping to one output file.
5076         (write_gc_structure_fields): Skip arrays of scalars.
5077         (write_gc_types): Tidy output files.
5078         (write_gc_root): New function.
5079         (write_gc_roots): Fix bugs, add support for roots that are
5080         structures.
5081         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5082         (ggc_mark_tree_ptr): Delete.
5083         (ggc_add_rtx_root): Delete.
5084         (ggc_add_tree_root): Delete.
5085         (ggc_del_root): Delete.
5086         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5087         allocate struct initial_value_struct.
5088         * profile.c: Use gengtype for roots.
5089         * sdbout.c: Use gengtype for roots.
5090         * varasm.c (mark_weak_decls): Delete unused prototype.
5091         (mark_const_hash_entry): Delete unused function.
5092         * config/darwin-protos.h: Use gengtype for roots.
5093         (machopic_add_gc_roots): Delete.
5094         * config/arm/arm.c: Use gengtype for roots.
5095         * config/arm/arm.h: Use gengtype for roots.
5096         * config/c4x/c4x-protos.h: Use gengtype for roots.
5097         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5098         * config/d30v/d30v-protos.h: Use gengtype for roots.
5099         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5100         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5101         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5102         * config/ia64/ia64-protos.h: Use gengtype for roots.
5103         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5104         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5105         * config/m68hc11/m68hc11.c (z_reg): Make global.
5106         (z_reg_qi): Make global.
5107         (m68hc11_add_gc_roots): Delete.
5108         * config/mcore/mcore-protos.h: Use gengtype for roots.
5109         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5110         * config/mips/mips.c (mips_add_gc_roots): Delete.
5111         * config/mips/mips.h: Use gengtype for roots.
5112         * config/mmix/mmix.c (override_options): Use gengtype for roots.
5113         * config/mmix/mmix.h: Use gengtype for roots.
5114         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5115         * config/mn10200/mn10200.h: Use gengtype for roots.
5116         * config/pa/pa.c: Use gengtype for roots, marking.
5117         (struct deferred_plabel): Use GGC, gengtype.
5118         (pa_add_gc_roots): Delete.
5119         (mark_deferred_plabels): Delete.
5120         * config/pj/pj-protos.h: Use gengtype for roots.
5121         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5122         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
5123         machopic_add_gc_roots.
5124         * config/rs6000/rs6000.h: Use gengtype for roots.
5125         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5126         (gt-darwin.h): Add rule.
5127         * config/sh/sh.c: Use gengtype for roots.
5128         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5129         (gt-sh.h): Add rule.
5130         * config/sparc/sparc.c: Use gengtype for roots.
5131         (sparc_add_gc_roots): Delete.
5132         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5133         (mark_ultrasparc_pipeline_state): Delete.
5134         * config/sparc/sparc.h: Use gengtype for roots.
5136         * Makefile.in (c-parse.o): Update dependencies.
5137         (c-common.o): Likewise.
5138         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5139         Add dependencies for the files they generate.
5140         * c-common.c: Replace ggc_add_* uses with GTY annotations.
5141         * c-common.h: Likewise.
5142         * c-decl.c: Likewise.
5143         (gt_ggc_mp_binding_level): Delete.
5144         * c-lang.c: Include gtype-c.h.
5145         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
5146         gt-c-parse.h.
5147         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5148         (gt_ggc_mp_align_stack): Delete.
5149         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5150         * function.c: Replace ggc_add_* uses with GTY annotations.
5151         (gt_ggc_mp_function): Delete.
5152         * function.h: Replace ggc_add_* uses with GTY annotations.
5153         * gengtype.c (lang_names): New.
5154         (NUM_BASE_FILES): New.
5155         (open_base_files): Create language base files.
5156         (startswith): New.
5157         (get_file_basename): New.
5158         (get_base_file_bitmap): New.
5159         (get_output_file_with_visibility): Rename from get_output_file.
5160         Add more mappings for various C/Objc filenames.
5161         (finish_root_table): New.
5162         (write_gc_roots): Handle dependencies and scoping properly.
5163         * gengtype.h: Add prototypes for new functions.
5164         * ggc-common.c (struct deletable_root): Delete.
5165         (deletables): Delete.
5166         (ggc_add_deletable_root): Delete.
5167         (ggc_mark_roots): No need to deal with deleted functionality.
5168         * ggc.h (ggc_add_deletable_root): Delete prototype.
5169         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5170         (gtype-objc.h): Add rule to create.
5171         * objc/config-lang.in (gtfiles): New.
5172         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
5173         ggc_add_* with GTY markers.  Include gtype-objc.h.
5174         (ggc_mark_imp_list): Delete.
5175         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5176         * objc/objc-lang.c: Random Whitespace Change.
5178         * except.h (exception_handler_labels): Delete.
5179         (get_exception_handler_labels): New.
5180         * except.c (exception_handler_labels): Delete.
5181         (struct eh_status): Add exception_handler_labels field.
5182         (doing_eh): Don't add exception_handler_labels as root.
5183         (free_eh_status): Don't need to free exception_handler_labels.
5184         (get_exception_handler_labels): New.
5185         (find_exception_handler_labels): Update for move of
5186         exception_handler_labels.
5187         (remove_exception_handler_label): Likewise.
5188         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5189         * jump.c (rebuild_jump_labels): Likewise.
5190         * loop.c (find_and_verify_loops): Likewise.
5191         * sched-rgn.c (is_cfg_nonregular): Likewise.
5193         * gengtype.c (write_gc_structure_fields): Handle variable-length
5194         TYPE_ARRAYs.
5196         * varasm.c (struct weak_syms): Use GGC, gengtype.
5197         (mark_weak_decls): Delete.
5198         (weak_decls): Likewise.
5199         (add_weak): Likewise.
5200         (remove_from_pending_weak_list): Likewise.
5201         (init_varasm_once): Likewise.
5203         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5204         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5205         stor-layout.c, regclass.c, and lists.c.
5206         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5207         gt-regclass.h and gt-lists.h on s-gtype.
5208         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
5209         * except.c: Use gengtype for roots.
5210         * explow.c: Use gengtype for roots.  Include gt-explow.h.
5211         * expr.h (init_stor_layout_once): Delete prototype.
5212         * function.c: Use gengtype for roots.
5213         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5214         * gengtype-yacc.y (start): Can also be an externstatic.
5215         (externstatic): New production.
5216         (struct_fields): Correct array bounds inversion for 2-d arrays.
5217         * gengtype.c (variables): New variable.
5218         (note_variable): New function.
5219         (get_output_file): Include libfuncs.h into gtype-desc.c.
5220         (get_output_file_name): New function.
5221         (write_gc_structure_fields): Suppress warnings.
5222         (write_gc_types): Make static.
5223         (put_mangled_filename): New function.
5224         (write_gc_roots): New function.
5225         (main): Call write_gc_roots.
5226         * gengtype.h (note_variable): Prototype.
5227         (get_output_file_name): Prototype.
5228         (write_gc_types): Delete prototype.
5229         * ggc.h: Clean up unnecessary structure predefinitions.
5230         (struct ggc_root_tab): Define.
5231         (gt_ggc_m_rtx_def): Make function, not macro.
5232         (gt_ggc_m_tree_node): Likewise.
5233         * libfuncs.h: Use gengtype for roots.
5234         * lists.c: Use gengtype for roots.  Include gt-lists.h.
5235         (init_EXPR_INSN_LIST_cache): Delete.
5236         * optabs.c: Use gengtype for roots.
5237         (gt_ggc_mp_optab): Delete.
5238         * optabs.h: Use gengtype for roots.
5239         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
5240         * rtl.h: Use gengtype for roots.
5241         (init_EXPR_INSN_LIST_cache): Delete prototype.
5242         * stor-layout.c: Use gengtype for roots.
5243         Include gt-stor-layout.h.
5244         (init_stor_layout_once): Delete.
5245         * toplev.c: Use gengtype for roots.  Delete calls to deleted
5246         routines.
5247         * tree.c: Use gengtype for roots.
5248         * tree.h: Use gengtype for roots.
5249         * varasm.c: Use gengtype for roots.
5251         * Makefile.in (GTFILES): Add @all_gtfiles@.
5252         * configure: Regenerate.
5253         * configure.in: Construct all_gtfiles from the gtfiles definitions
5254         in config-lang.in.
5255         * gengtype-yacc.y (type): Warn about duplicate structure names.
5256         * gengtype.c (get_output_file): Handle .c files in language
5257         subdirectories.
5259         * Makefile.in (GTFILES): Run gengtype on all the config files
5260         and on the target .c file.
5261         * except.c (mark_eh_region): Delete.
5262         (init_eh_for_function): Use GGC on struct eh_status.
5263         (mark_eh_status): Delete.
5264         (free_eh_status): Use GGC.
5265         (expand_eh_region_start): Use GGC to
5266         (collect_eh_region_array): Allocate last_region_number using GGC.
5267         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5268         (remove_eh_handler): Let GGC free struct eh_region.
5269         (add_call_site): Use GGC to reallocate call_site_record array.
5270         * function.c (init_machine_status): Update calling sequence.
5271         (mark_machine_status): Likewise.
5272         (mark_lang_status): Likewise.
5273         (prepare_function_start): Update init_machine_status call.
5274         (mark_function_status): Delete.
5275         (maybe_mark_struct_function): Delete.
5276         (ggc_mark_struct_function): Delete.
5277         (gt_ggc_mp_function): New.
5278         (gt_ggc_mr_machine_function): New.
5279         (gt_ggc_mr_language_function): New.
5280         (init_function_once): Use canonical names.
5281         * function.h (struct function): Use gengtype.
5282         (init_machine_status): Return the structure.
5283         (mark_machine_status): Take a 'void *'.
5284         (mark_lang_status): Likewise.
5285         * ggc-common.c (ggc_mark_trees): Use canonical name for
5286         ggc_mark_struct_function.
5287         * tree.h (ggc_mark_struct_function): Delete prototype.
5288         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5289         (alpha_init_machine_status): Likewise.
5290         (override_options): Use canonical name for alpha_mark_machine_status.
5291         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5292         * config/arm/arm.h (struct machine_function): Use gengtype.
5293         * config/arm/arm.c (arm_mark_machine_status): Delete.
5294         (arm_init_machine_status): Update calling sequence.
5295         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5296         * config/cris/cris.c (cris_init_machine_status): Update
5297         calling sequence.
5298         * config/d30v/d30v.h (struct machine_function): Use gengtype.
5299         * config/d30v/d30v.c (d30v_init_machine_status): Update
5300         calling sequence.
5301         (d30v_mark_machine_status): Delete.
5302         * config/i386/i386.c: Include gt-i386.h.
5303         (struct machine_function): Use gengtype.
5304         (ix86_init_machine_status): Update calling sequence.
5305         (ix86_mark_machine_status): Delete.
5306         (override_options): Use canonical namke for ix86_mark_machine_status.
5307         * config/ia64/ia64.h (struct machine_function): Use gengtype.
5308         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5309         sequence.
5310         (ia64_mark_machine_status): Delete.
5311         (ia64_override_options): Use canonical name for
5312         ia64_mark_machine_status.
5313         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5314         sequence.
5315         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5316         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5317         * gengtype.c (get_output_file): Fix warning.
5318         (main): Add prototype to suppress warning.
5319         * tree.c: Remove tree_hash_mark prototype.
5321         * tree.h (init_stmt): Delete prototype.
5322         * toplev.c (lang_independent_init): Don't call init_stmt.
5323         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5324         (stmt_obstack): Delete.
5325         (POPSTACK): No need to free 'struct nesting'.
5326         (gt_ggc_mr_nesting_cond): Use canonical names.
5327         (gt_ggc_mr_nesting_loop): Use canonical names.
5328         (gt_ggc_mr_nesting_block): Use canonical names.
5329         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5330         (mark_stmt_status): Delete.
5331         (init_stmt): Delete.
5332         (clear_last_expr): Clear both last_expr_type and last_expr_value.
5333         Use it everywhere that last_expr_type was cleared.
5334         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5335         (zap_lists): Delete.
5336         * ggc.h (ggc_add_deletable_root): Prototype.
5337         (mark_stmt_status): Remove prototype.
5338         * ggc-common.c (ggc_add_deletable_root): New.
5339         (ggc_mark_roots): Handle deletable roots.
5340         * function.c (ggc_mark_struct_function): Use canonical name
5341         for mark_stmt_status.
5342         * emit-rtl.c (free_sequence_stack): New.
5343         (start_sequence): Use a freelist for sequences.
5344         (end_sequence): Likewise.
5345         (init_emit_once): Add free_sequence_stack as a deleteable root.
5346         * c-pragma.c Include gt-c-pragma.h.
5347         (struct align_stack): Use gengtype.
5348         (push_alignment): Use GGC for struct align_stack.
5349         (mark_align_stack): Delete.
5350         (gt_ggc_mp_align_stack): New.
5351         (init_pragma): Use canonical name for mark_align_stack.
5352         * c-decl.c: Include gt-c-decl.h.
5353         (struct binding_level): Use gengtype.
5354         (make_binding_level): Use GGC; handle the freelist here.
5355         (pop_binding_level): New.
5356         (pushlevel): Move code into make_binding_level.
5357         (push_label_level): Likewise.
5358         (poplevel): Move code into pop_binding_level.
5359         (pop_label_level): Likewise.
5360         (mark_binding_level): Delete.
5361         (gt_ggc_mp_binding_level): New.
5362         (c_init_decl_processing): Use canonical name for mark_binding_level.
5363         Add free_binding_level as deletable root.
5364         (mark_c_function_context): Use canonical name for mark_binding_level.
5365         * Makefile.in (c-decl.o): Add gt-c-decl.h.
5366         (c-pragma.o): Add gt-c-pragma.h.
5367         (GTFILES): Add c-decl.c and c-pragma.c.
5368         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5370         * tree.c (struct type_hash): Use gengtype.
5371         (init_obstacks): Use canonical name for type_hash_mark.
5372         (type_hash_mark): Delete.
5373         Include gt-tree.h.
5374         * rtl.h (struct mem_attrs): Use gengtype.
5375         * optabs.h (struct optab): Use gengtype.
5376         * optabs.c (expand_binop): Squish signed/unsigned warning.
5377         (mark_optab): Make local, use canonical name, use autogenerated
5378         marker procedure.
5379         (init_optabs): Use canonical name for mark_optab.
5380         (new_optab): Use GGC to allocate optabs.
5381         * ggc.h: Delete mark_optab prototype.
5382         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5383         mem_attrs marker procedure.
5384         * gengtype.c (get_output_file): Include headers in gtype-desc.c
5385         explicitly rather than deducing them from file names.
5386         (write_gc_structure_fields): Handle arrays of structures.
5387         (main): Return non-zero exit code if errors occur during output.
5388         * emit-rtl.c (mem_attrs_mark): Delete.
5389         (init_emit_once): Use canonical name for mem_attrs marker procedure.
5390         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5391         (tree.o): Depend on gt-tree.h.
5392         (GTFILES): Add rtl.h, optabs.h, tree.c.
5393         (gt-tree.h): Add it to s-gtype rule.
5395         * .cvsignore: Ignore gengtype flex/bison generated files.
5396         * Makefile.in (GGC_H): Add gtype-desc.h.
5397         (OBJS): Add gtype-desc.o.
5398         (GEN): Add gengtype.
5399         (STAGESTUFF): Add gengtype.
5400         (varasm.o): Add gt-varasm.h.
5401         (stmt.o): Add gt-stmt.h.
5402         (except.o): Add gt-except.h.
5403         (integrate.o): Add gt-integrate.h.
5404         (GTFILES): New.
5405         Add new rules for new files.
5406         * configure: Regenerate.
5407         * configure.in: Correct defaults.h paths.
5408         * emit-rtl.c (mark_sequence_stack): Delete.
5409         (mark_emit_status): Delete.
5410         (start_sequence): Allocate sequence structures using GGC.
5411         (end_sequence): Allocate sequence structures using GGC.
5412         * except.c: Use gengtype for various structures.  Include
5413         gt-except.h.
5414         * expr.c (mark_expr_status): Delete.
5415         * function.c: Use gengtype for various structures.  Include
5416         gt-function.h.
5417         (mark_function_status): Use standard gt_ggc names for marker functions.
5418         (ggc_mark_struct_function): Likewise.
5419         * function.h: Use gengtype for various structures.
5420         * gengtype-lex.l: New file.
5421         * gengtype-yacc.y: New file.
5422         * gengtype.c: New file.
5423         * gengtype.h: New file.
5424         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
5425         the standard names.  Remove some now-unnecessary prototypes.
5426         * integrate.c: Use gengtype for various structures.  Include
5427         gt-integrate.h.
5428         (mark_hard_reg_initial_vals): Delete.
5429         * integrate.h (mark_hard_reg_initial_vals): Delete.
5430         * stmt.c: Use gengtype for various structures.  Include
5431         gt-stmt.h.
5432         (mark_case_node): Delete.
5433         (mark_goto_fixup): Delete.
5434         (mark_stmt_status): Use standard gt_ggc names for marker functions.
5435         * system.h: Define GTY to empty.   In flex/bison files,
5436         don't poison malloc or realloc, instead just define them to
5437         xmalloc and xrealloc.
5438         * varasm.c: Use gengtype for various structures.  Include
5439         gt-varasm.h.  Use standard gt_ggc names for marker functions.
5440         (mark_pool_constant): Delete.
5441         (mark_varasm_status): Delete.
5442         (decode_rtx_const): #if 0 out non-typesafe hack.
5444         * function.h (free_lang_status): Mark as obsolete.
5445         * function.c (free_lang_status): Mark as obsolete.
5446         * c-decl.c (push_c_function_context): Use GC to allocate and free
5447         struct language_function.
5448         (pop_c_function_context): Likewise.
5449         * c-common.c (mark_c_language_function): Mark struct
5450         language_function.
5452         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5453         Document that the machine_function structures must be allocated
5454         using GC.  Update mark_machine_status documentation.
5455         * function.h: Don't declare free_machine_status.
5456         * function.c (free_machine_status): Don't define.
5457         (free_after_compilation): Don't call free_machine_status.
5458         (ggc_mark_struct_function): Mark f->machine.  Call
5459         mark_machine_status only on non-NULL pointers.
5460         * system.h: Poison free_machine_status.
5461         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5462         struct machine_function.
5463         (xtensa_free_machine_status): Delete.
5464         (override_options): Don't set free_machine_status.
5465         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5466         free_machine_status.
5467         (rs6000_init_machine_status): Use GC on struct machine_function.
5468         (rs6000_free_machine_status): Delete.
5469         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5470         machine_function.
5471         (ia64_mark_machine_status): Likewise.
5472         (ia64_free_machine_status): Delete.
5473         (ia64_override_options): Don't set free_machine_status.
5474         * config/i386/i386.c (override_options): Don't set
5475         free_machine_status.
5476         (ix86_init_machine_status): Use GC on struct machine_function.
5477         (ix86_mark_machine_status): Likewise.
5478         (ix86_free_machine_status): Delete.
5479         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5480         machine_function.
5481         (d30v_mark_machine_status): Likewise.
5482         (d30v_free_machine_status): Delete.
5483         (d30v_init_expanders): Don't set free_machine_status.
5484         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5485         machine_function.
5486         (arm_init_machine_status): Likewise.
5487         (arm_free_machine_status): Delete.
5488         (arm_init_expanders): Don't set free_machine_status.
5489         * config/alpha/alpha.c (override_options): Don't set
5490         free_machine_status.
5491         (alpha_init_machine_status): Use GC on struct machine_function.
5492         (alpha_mark_machine_status): Likewise.
5493         (alpha_free_machine_status): Delete.
5495         * varasm.c (compare_constant): Fix typo.
5497         * varasm.c: Don't include obstack.h.
5498         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5499         (struct rtx_const): Give substructures names, improve formatting.
5500         (struct constant_descriptor): Delete.
5501         (struct constant_descriptor_tree): New, based on constant_descriptor.
5502         (const_hash_table): Is a hash table of trees.
5503         (mark_const_hash_entry): Is used for hashes of trees.  Mark
5504         constant_descriptor_tree structure.
5505         (mark_const_str_htab_1): Mark deferred_string structure.
5506         (compare_constant): Rewrite to compare trees.
5507         (compare_constant_1): Delete.
5508         (record_constant): Delete.
5509         (record_constant_1): Delete.
5510         (output_constant_def): Use struct constant_descriptor_tree.
5511         Don't duplicate trees twice.
5512         (struct constant_descriptor_rtx): New.
5513         (struct pool_constant): Used for rtx constants.
5514         (init_varasm_status): Update for change to struct varasm_status.
5515         (mark_varasm_status): Likewise.
5516         (free_varasm_status): Delete.
5517         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5518         (record_constant_rtx): Likewise.
5519         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5520         (force_const_mem): Likewise.
5521         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5522         * function.c (free_after_compilation): Don't use free_varasm_status.
5523         * function.h: Don't prototype free_varasm_status.
5525         * ggc-common.c (ggc_realloc): Handle X being NULL.
5527         * ggc-common.c (ggc_realloc): New function.
5528         * ggc.h: Prototype it.
5529         * emit-rtl.c (free_emit_status): Delete.
5530         (init_emit): Allocate emit subarrays using GC.
5531         (gen_reg_rtx): Reallocate subarrays using GC.
5532         (init_emit): Use GC to allocate 'struct emit_status' and its
5533         subarrays.
5534         (mark_emit_status): Mark structure and its subarrays.
5535         * stmt.c (free_stmt_status): Delete.
5536         * expr.c (free_expr_status): Delete.
5537         * function.h: Remove prototypes for deleted functions.
5538         * function.c (free_after_compilation): Don't use deleted functions.
5539         Don't call free() on x_parm_reg_stack_loc.
5540         (free_after_parsing): Don't use free_stmt_status.
5541         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5542         (mark_function_status): Mark x_parm_reg_stack_loc.
5544         * varasm.c (init_varasm_status): Use GC to allocate
5545         'struct varasm_status' and its fields x_const_rtx_hash_table
5546         and x_const_rtx_sym_hash_table.
5547         (mark_varasm_status): Mark them.
5548         (free_varasm_status): Use GC to free them.
5549         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5550         (mark_expr_status): Mark the structure itself.
5551         (free_expr_status): Use GC to free the structure.
5552         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5553         (mark_stmt_status): Mark the 'struct stmt_status' itself.
5554         (init_stmt_for_function): Allocate the structure for GC.
5556         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5557         (equate_type_number_to_die): Likewise.
5558         * tree.h (TYPE_SYMTAB_DIE): New macro.
5559         (struct die_struct): Predeclare.
5560         (struct tree_type): Add field symtab.die.   Add a tag
5561         to the union type of field symtab.
5563         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5564         'struct rtvec_def *', not 'struct rtvec_def'.
5566         * function.h (original_arg_vector): Make a real rtvec.
5567         * function.c (ggc_mark_struct_function): Adjust.
5568         * integrate.c (expand_inline_function): Adjust.
5570 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5572         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5573         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5574         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5575         (TARGET_VERSION_CPU): Define according to the
5576         default target.
5577         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5578         TARGET_VERSION_CPU.
5579         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5580         if TARGET_SHMEDIA64.
5581         (LINK_DEFAULT_CPU_EMUL): Define according to the
5582         default target.
5583         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5584         (SUBTARGET_LINK_SPEC): Define.
5585         (LINK_SPEC): Use SH_LINK_SPEC.
5586         (ASM_SPEC): Remove.
5587         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5588         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5589         and TARGET_SHMEDIA64 which abort, for now.
5590         * config/sh/t-netbsd-sh5: New file.
5591         * config/sh/t-netbsd-sh5-32: New file.
5592         * config/sh/t-netbsd-sh5-64: New file.
5594 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5595             Richard Henderson  <rth@redhat.com>
5597         * config/alpha/alpha.c (reg_or_const_int_operand): New.
5598         (some_operand, input_operand): Accept CONST_VECTOR.
5599         (alpha_extra_constraint): Add 'W'.
5600         (alpha_expand_zap_mask): New.
5601         (alpha_expand_builtin_vector_binop): New.
5602         (enum alpha_builtin): New.
5603         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5604         (alpha_init_builtins, alpha_expand_builtin): New.
5605         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5606         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5607         (PREDICATE_CODES): Update.
5608         * config/alpha/alpha-protos.h: Update.
5609         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5610         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5611         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5612         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5613         (movv2si, movv2si_fix, movv2si_nofix): New.
5614         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5615         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5616         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5617         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5618         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5619         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5620         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5621         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5622         builtin_unpkbw, unpkbw): New.
5623         * doc/extend.texi (Alpha Built-in Functions): New.
5625 2002-06-03  Richard Henderson  <rth@redhat.com>
5627         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5628         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5630 2002-06-03  Richard Henderson  <rth@redhat.com>
5632         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5634         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5635         (const0_operand): New.
5636         (reg_or_fp0_operand, fp0_operand): Remove.
5637         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5638         * config/alpha/alpha-protos.h: Update.
5639         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5640         and fp0_operand with reg_or_0_operand and const0_operand.
5642 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
5644         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5646 2002-06-03  Roger Sayle  <roger@eyesopen.com>
5648         * gcse.c (cprop_jump): Use single_set to get the pattern
5649         from the setcc argument.
5651 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
5653         * diagnostic.h (diagnostic_count): Move from output_buffer to
5654         diagnostic_context.
5655         (diagnostic_kind_count): Adjust definition.
5657 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
5659         * except.c (except.c): Do not rebuild CFG.
5660         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5661         optimization.
5663 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
5665         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5666         * toplev.c: Include cfglahout.h
5667         * Makefile.in (toplev.c): Add dependnecy.
5669 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5671         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5672         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5673         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5675 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5677         * config/ns32k/netbsd.h: Update copyright years.
5678         (TARGET_OS_CPP_BUILTINS): Define.
5679         (CPP_PREDEFINES): Remove.
5680         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5681         (TARGET_CPU_CPP_BUILTINS): Define.
5683 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5685         * emit-rtl.c: Fix formatting.
5686         * errors.h: Likewise.
5687         * except.c: Likewise.
5688         * explow.c: Likewise.
5689         * expmed.c: Likewise.
5690         * expr.c: Likewise.
5691         * expr.h: Likewise.
5693 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5695         * config/h8300/elf.h: Fix formatting.
5696         * config/h8300/rtems.h: Likewise.
5698 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5700         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5702 2002-06-02  Tom Tromey  <tromey@redhat.com>
5704         * fixinc/fixincl.x: Rebuilt.
5705         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5707 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5709 config/i370:
5710         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5711         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5712         * mvs.h: Similarly.
5713         * oe.h: Similarly.
5715 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
5717         * final.c (final):  Allow notes to not have computed addresses;
5718         kill no longer needed STACK_REGS ifdef.
5720 2002-06-02  Richard Henderson  <rth@redhat.com>
5722         * gcse.c (bypass_conditional_jumps): Fix typo last change.
5724 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
5726         * loop.c (emit_prefetch_instructions): Properly place the address
5727         computation.
5729 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
5731         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5732         (set_block_for_insn): Turn into macro.
5733         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5734         * cfglayout.c (insn_scopes): Kill.
5735         (scope_to_insns_initialize): Do not use insn_scopes.
5736         (scope_to_insns_finalize): Likewise.
5737         (duplicate_insn_chain): Likewise.
5738         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5739         * cfgrtl.c (basic_block_for_insn): Kill.
5740         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5741         (create_basic_block_structure): Use reorder_insns.
5742         (compute_bb_for_insn): Do not use basic_block_for_insn.
5743         (merge_blocks_nomove): Likewise.
5744         (update_bb_for_insn): Likewise.
5745         (verify_flow_info): Likewise.
5746         (set_block_for_insn): Kill.
5747         * combine.c (try_combine): Update gen_rtx_INSN call.
5748         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5749         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5750         scopes and BBs.
5751         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5752         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5753         Clear BB.
5754         (emit_insns_after): Simplify.
5755         (emit_copy_of_insn_after): Copy scope.
5756         * final.c (final_start_function): Lower scopes.
5757         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5758         * integrate.c (copy_insn_list): Cope scopes.
5759         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5760         * loop.c (loop_optimize): Do not care block notes.
5761         * print-rtl.c (print_rtx): Print BB.
5762         * recog.c (apply_change_group): Simplify.
5763         * rtl.c (copy_rtx): Handle 'B'.
5764         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5765         * rtl.h (Field accessors): Update indexes.
5766         * sched-ebb.c (schedule_ebbs): Do not lower notes.
5767         * sched-rgn.c (schedule_insns): Likewise.
5768         * toplev.c (rest_of_compilation): Lower notes.
5769         * unroll.c (unroll_loop): Do not care scoping notes.
5770         (copy_loop_body): Copy scopes.
5772 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5774 config/h8300:
5775         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5776         SUBTARGET_SPEC.
5777         * rtems.h: Similarly.
5778         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5779         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5780         (TARGET_CPU_CPP_BUILTINS): Use.
5782 2002-06-02  Richard Henderson  <rth@redhat.com>
5784         * alias.c: Include target.h.
5785         (mark_constant_function): Use targetm.binds_local_p instead
5786         of checking TREE_PUBLIC ourselves.
5787         * Makefile.in (alias.o): Add TARGET_H.
5789 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5791         * c-lex.c: Update copyright and file description.
5793 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5795         * config/fr30/fr30.h: Update to new CPP macros.
5797 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5799         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5801 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5802             Zack Weinberg <zack@codesourcery.com>
5804         * c-common.c (c_common_init): Override cpplib's default
5805         warn_long_long setting.
5806         * c-lex.c (lex_number): Replace with interpret_integer,
5807         interpret_float, narrowest_unsigned_type and
5808         narrowest_signed_type, taking advantage of the new
5809         cpplib functionality.
5810         * cpperror.c (_cpp_begin_message): If a warning is turned
5811         into an error, avoid printing "warning:".
5812         * cppexp.c (cpp_num_sign_extend): New.
5813         * cppinit.c: Update comment.
5814         * cpplib.h (cpp_num_sign_extend): New.
5815         * tree.h: Update comment.
5817 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5819         * diagnostic.h (struct diagnostic_context):  Add new member
5820         internal_error.
5821         (internal_error_function): Remove declaration.
5822         * diagnostic.c (internal_error_function): Remove definition..
5823         (internal_error): Adjust use.
5825 2002-06-02  Richard Henderson  <rth@redhat.com>
5827         * rtl.h (CC0_P): New.
5828         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
5829         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
5830         (bypass_block): Save old dest block for dump text.
5831         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5832         Allow only true SET insns, not single_set.
5834 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5836         * diagnostic.c (diagnostic_finish): Rename to output_flush.
5837         (clear_disgnostic_info): Rename to output_clear_data.  Use false
5838         instead of 0 for boolean value.
5839         Adjust function call throughout.
5841 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5843         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5844         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5846 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5848         * d30v.h (CPP_PREDEFINES): Replace with
5849         (TARGET_CPU_CPP_BUILTINS): New.
5851 2002-06-02  Roger Sayle  <roger@eyesopen.com>
5853         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5855 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
5857         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5859 2002-06-02  Richard Henderson  <rth@redhat.com>
5861         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5863 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5865         Support for C++ constructors/destructors.
5866         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5867         instead of looping if main() returns.
5868         (asm_file_start): Output global symbols that cause .data and .bss
5869         initialization code to be linked in, unconditionally for now.
5870         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5871         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5872         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5873         (LIBSTDCXX): New.
5874         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5875         (__tablejump__): New.
5876         (__do_copy_data, __do_clear_bss): New.
5877         (__do_global_ctors, __do_global_dtors): New.
5878         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5879         _ctors, _dtors.
5881 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5883         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5884         (CPP_SPEC, CPP_PREDEFINES): Kill.
5885         * c4x/rtems.h (CPP_PREDEFINES): Kill.
5886         (TARGET_OS_CPP_BUILTINS): New.
5888 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
5890         * Makefile.in (tracer.o): New.
5891         * params.def (TRACER_*): New options.
5892         * rtl.h (tracer): Declare.
5893         * timevar.def (TV_TRACER): New.
5894         * toplev.c (dump_file_index): Add DFI_tracer.
5895         (dump_file_info): Add tracer.
5896         (flag_tracer): New.
5897         (lang_indepdenent_options): Add tracer.
5898         (rest_of_compilation): Call tracer.
5899         * tracer.c: New file.
5900         * invoke.texi (-ftracer): Document.
5901         (--param tracer-*): Document.
5903 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
5905         * tree-inline.c (expand_call_inline): Make the statement
5906         expression we generate have a COMPOUND_STMT.
5908 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5910         * gcse.c (cprop_cc0_jump): Function deleted.
5911         (cprop_jump): Take an additional argument which is the possibly
5912         NULL cc setting insn immediately before the conditional jump.
5913         When a MODE_CC set is present, substitute it into the JUMP_INSN
5914         before attempting the constant propagation.
5915         (cprop_insn):  Recognize cc setters followed by conditional jumps
5916         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
5917         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
5918         (find_bypass_set): New function based upon find_avail_set used by
5919         cprop, but finds constant expressions available at the end of
5920         basic blocks.
5921         (bypass_block): New function.  Given a basic block that begins
5922         with a conditional jump and multiple incoming edges, perform
5923         the jump bypass optimization.
5924         (bypass_conditional_jumps): New function.  Call bypass_block with
5925         each suitable basic block in the CFG using a simple single pass.
5927 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5929         * tree.c (real_minus_onep): New function to test for -1.0.
5930         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
5932 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5934         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5935         and "!p && !q" into "(p|q) == 0" under suitable conditions.
5937 2002-06-01  Andreas Jaeger  <aj@suse.de>
5939         * cppexp.c (cpp_classify_number): Cast precission to int for
5940         correct printf format.
5942 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5944         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5945         expected, but don't really exist: atmega83, atmega85, attiny10.
5946         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5947         emulations for all devices.
5948         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5949         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5951 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
5953         * config/h8300/h8300-protos.h: Add a prototype for
5954         h8300_shift_needs_scratch_p.
5955         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5956         * config/h8300/h8300.h (OK_FOR_R): New.
5957         (OK_FOR_S): Likewise.
5958         (OK_FOR_T): Likewise.
5959         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5960         * config/h8300/h8300.md (anonymous shift patterns): Use
5961         constraints R, S, and T.
5963 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5965         * basic-block.h (struct basic_block_def): New field loop_father.
5966         (BB_VISITED): New flag.
5967         (struct loop): New field pred, removed field shared.
5968         (struct loops): New field parray.
5969         (LOOP_EXITS_DOMS): Removed.
5970         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5971         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5972         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5973         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5974         verify_loop_structure): Declare.
5975         * cfg.c (entry_exit_blocks): Initialize loop_father field.
5976         * cfganal.c (dfs_enumerate_from): New function.
5977         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5978         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5979         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5980         flow_loop_dump, flow_loops_dump, flow_loops_free,
5981         flow_loop_tree_node_add, flow_loop_level_compute,
5982         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5983         flow_loop_outside_edge_p): Modified for new infrastructure.
5984         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5985         redirect_edge_with_latch_update, flow_loop_free): New static functions.
5986         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5987         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5988         find_common_loop, verify_loop_structure, loop_latch_edge,
5989         loop_preheader_edge): New functions.
5990         (flow_loops_cfg_dump): Do not show dominators, as this information
5991         does not remain up to date long.
5992         (flow_loops_find): Store results in new format.
5993         * predict.c (propagate_freq, estimate_probability,
5994         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5995         infrastructure.
5997 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
5999         * except.c (nothrow_function_p): Walk epilogue delay list
6000         checking the insn, not the chain for potential throws.
6002 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
6004         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6005         (install): Refer to install-cpp directly.
6006         (uninstall-cpp): Folded into uninstall rule.
6007         * configure.in: Delete all code relating to --disable-cpp.
6008         * configure: Regenerate.
6009         * config/t-install-cpp: Delete.
6011 2002-05-31  Richard Henderson  <rth@redhat.com>
6013         * configure.in (HAVE_AS_TLS): Add alpha tests.
6014         * configure: Rebuild.
6015         * config/alpha/alpha.c (TARGET_AS_TLS): New.
6016         (alpha_tls_size, alpha_tls_size_string): New.
6017         (overide_options): Set it.  Always install machine_status hooks.
6018         (input_operand): Accept got tls predicates.
6019         (local_symbol_p): Merge into ...
6020         (local_symbolic_operand): ... here.  Reject tls symbols.
6021         (global_symbolic_operand): Likewise.
6022         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6023         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6024         (tp16_symbolic_operand, tp32_symbolic_operand): New.
6025         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6026         (alpha_encode_section_info): Handle TLS symbols.
6027         (alpha_strip_name_encoding): Likewise.
6028         (alpha_legitimate_address_p): Likewise.
6029         (alpha_legitimize_address): Likewise.
6030         (alpha_expand_mov): Early exit to avoid nop moves.
6031         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
6032         (alpha_init_machine_status, alpha_mark_machine_status,
6033         alpha_free_machine_status): Always define.
6034         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6035         (print_operand, print_operand_address): Add TLS relocs.
6036         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6037         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6038         (TARGET_SWITCHES): Add -mtls-kernel.
6039         (alpha_tls_size, alpha_tls_size_string): New.
6040         (TARGET_OPTIONS): Add -mtls-size=.
6041         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6042         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6043         (ASM_OUTPUT_LABELREF): Skip %.
6044         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6045         (PREDICATE_CODES): Update.
6046         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6047         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6048         UNSPEC_TP, UNSPECV_SET_TP): New.
6049         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6050         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6051         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6052         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6053         (call_value_osf_2_er): Accept anything as op4.
6054         * config/alpha/alpha-protos.h: Update.
6055         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6057 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
6059         * cppinit.c (append_include_chain): Always pay attention to
6060         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
6061         marker on argument.
6063 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
6065         * target.h: Fix formatting.
6066         * timevar.h: Likewise.
6067         * tlink.c: Likewise.
6068         * toplev.c: Likewise.
6069         * toplev.h: Likewise.
6070         * tree.c: Likewise.
6071         * tree-dump.h: Likewise.
6072         * tree.h: Likewise.
6073         * tree-inline.h: Likewise.
6074         * unroll.c: Likewise.
6075         * unwind-dw2.c: Likewise.
6076         * unwind-dw2-fde.c: Likewise.
6077         * unwind-dw2-fde-glibc.c: Likewise.
6078         * unwind-dw2-fde.h: Likewise.
6079         * unwind.h: Likewise.
6080         * unwind-sjlj.c: Likewise.
6081         * varasm.c: Likewise.
6082         * varray.h: Likewise.
6083         * vmsdbg.h: Likewise.
6084         * vmsdbgout.c: Likewise.
6085         * xcoffout.h: Likewise.
6087 2002-05-31  Igor Shevlyakov <igor@microunity.com>
6089         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6090         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6092 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
6094         * gcc.c (cpp_unique_options): Remove "-d" options.
6095         (cpp_debug_options): New spec string.
6096         (default_compilers): Use it.
6097         * objc/lang-specs.h: Likewise.
6099 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
6101         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6102         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6103         * gcc/mklibgcc.in: Likewise.
6104         * gcc/config/arc/t-arc: Likewise.
6105         * gcc/configure.in: Likewise.
6106         * gcc/configure: Regenerate.
6108 2002-05-31  Stan Shebs  <shebs@apple.com>
6109             Turly O'Connor  <turly@apple.com>
6111         * c-decl.c (struct binding_level): Change int field n_incomplete
6112         to tree list incomplete_list.
6113         (clear_binding_level): Init field with NULL.
6114         (pushdecl): Add incomplete type to list.
6115         (mark_binding_level): Mark the incomplete list.
6116         (finish_struct): Scan the incomplete list for types instead
6117         of all decls in the current binding level.
6119 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6121         * pa.c (output_millicode_call): Add missing '%' characters.
6122         (output_call): Likewise.
6124 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
6126         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6127         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6129 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
6131         * varasm.c (mark_constant_pool): Walk epilogue delay list
6132         checking the insn, not the chain for potential constants.
6134 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
6136         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6138 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
6140         * i386.c (classify_argument): Properly handle base types.
6142         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6143         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6144         registers.
6146 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6148         * gcse.c (gcse_emit_move_after): New.
6149         (pre_delete, hoist_store): Use it.
6151         * reload1.c (emit_input_reload_insns): Use constrain_operands
6152         instead of constraint_accepts_reg_p to verify optimization.
6153         (constraint_accepts_reg_p): Kill
6155         * reload1.c (reload_cse_delete_noop_set): Kill.
6156         (reload_cse_simplify): use delte_insn_and_edges.
6158 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6160         * cfgloop.c (flow_loops_find): Initialize first and last fields
6161         correctly.
6163 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
6165         * c-common.c (builtin_define_std): Correct logic.
6167 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6169         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6170         (output_call): Likewise.
6172 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6174         * pa.c: Move output.h include after tree.h include.
6175         (pa_asm_output_mi_thunk): Constify identifier lab.
6177 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6179         * config/ns32k/ns32k.h: Define named constants for the
6180         bits in target_flags and use them.
6181         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6183 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6185         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6186         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6187         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6188         default scheduling model.
6189         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6190         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6191         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6192         * doc/install.texi (hppa*-*-*): Document default scheduling.
6194 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6196         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6198 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6200         * config.gcc (ns32k-*-netbsd*): Set tm_file to
6201         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6202         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6203         netbsd.h, or netbsd-aout.h.
6205 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6207         * longlong.h (count_trailing_zeros): Add missing \, and clean up
6208         whitespace in __ns32000__ case.
6210 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
6212         * expr.c (expand_expr): Output partially zeroed out vectors with
6213         output_constant_def.
6215 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6217         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6218         (sh-*-netbsdelf*)
6219         (shl*-*-netbsdelf*): New targets.
6220         * config/sh/netbsd-elf.h: New file.
6221         * config/sh/t-netbsd: New file.
6223 2002-05-30  Richard Henderson  <rth@redhat.com>
6224             Eric Botcazou  <ebotcazou@multimania.com>
6226         PR optimization/6822
6227         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6228         to unsigned int for op1 comparisons.  Use gen_int_mode.
6230 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
6232         * expmed.c (const_mult_add_overflow_p): New.
6233         * expr.h: Declare it.
6234         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6235         Don't eliminate the biv if the giv has a constant multiplier and
6236         the rhs argument of the comparison does satisfy the predicate.
6237         Use expand_mult_add to compute the replacement constant.
6239 2002-05-30  Osku Salerma  <osku@iki.fi>
6241         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6242         (c_common_get_alias_set): Handle it.
6243         * doc/extend.texi: Document it.
6245 2002-05-30  Richard Henderson  <rth@redhat.com>
6247         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6248         * toplev.c (process_options): Don't check it.
6249         * doc/tm.texi: Don't document it.
6250         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6251         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6252         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6253         frame pointer optimization if current_function_profile.
6255 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
6257         * langhooks.c: Fix formatting.
6258         * langhooks.h: Likewise.
6259         * lcm.c: Likewise.
6260         * libgcc2.c: Likewise.
6261         * lists.c: Likewise.
6262         * local-alloc.c: Likewise.
6263         * loop.c: Likewise.
6264         * loop.h: Likewise.
6266 2002-05-30  Marc Espie <espie@openbsd.org>
6268         * config.gcc (sparc64-*-openbsd*): New.
6269         * config/sparc/openbsd1-64.h: New.
6270         * config/sparc/openbsd64.h: New.
6272 2002-05-30  Jeff Law <law@redhat.com>
6274         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
6275         a dead insn with a REG_RETVAL note when the entire libcall is not
6276         dead and remove the associated REG_LIBCALL note at the same time.
6278 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
6280         * lcm.c (output.h): #include.
6281         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6282         as an ordinary block.
6283         (optimize_mode_switching): Don't pretend that the exit block is
6284         an ordinary block, or handle sucessors of entry block specially.
6285         Instead, split edges from entry block and to exit block, and
6286         put a computing definition on the thus gained post-entry-block,
6287         and a need on the pre-exit-block.
6289 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
6291         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6292         * rtl.texi: Document 'B'
6294 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6296         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6297         at run-time.
6298         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6300 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
6302         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6303         const0_rtx instead of NULL_RTX when in error.
6304         (altivec_expand_abs_builtin): Same.
6305         (rs6000_expand_binop_builtin): Same.
6306         (altivec_expand_predicate_builtin): Same.
6307         (altivec_expand_stv_builtin): Same.
6308         (rs6000_expand_ternop_builtin): Same.
6309         (altivec_expand_builtin): Same.
6311 2002-05-29  David S. Miller  <davem@redhat.com>
6313         * rtl.h (clear_emit_caches): Delete.
6314         * integrate.c (output_inline_function): Don't call it.
6315         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6316         (clear_emit_caches): Delete definition.
6317         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6319 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
6321         * config/mmix/mmix.c: Include real.h.
6322         (mmix_constant_address_p): Remove redundant test before switch.
6324 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6326         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6327         only if not already defined.
6329 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6331         * config/h8300/h8300-protos.h: Remove prototypes for
6332         ok_for_bclr and small_power_of_two.
6333         * config/h8300/h8300.c (small_power_of_two): Remove.
6334         (ok_for_blcr): Likewise.
6335         (fix_bit_operand): Make WHAT deal with an integer instead of a
6336         constraint character.
6337         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6338         (CONST_OK_FOR_P): Likewise.
6339         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6340         CONST_OK_FOR_P any more.
6341         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6342         of fix_bit_operand.
6343         (iorqi3): Likewise.
6344         (xorqi3): Likewise.
6346 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6348         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6349         (CPP_PREDEFINES): Make sure this is undefined.
6350         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6351         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
6352         or -U__MIPSEB__ before defining one or the other.  Instead,
6353         use %(subtarget_endian_default) if neither -EB nor -EL are
6354         specified.
6355         (SUBTARGET_EXTRA_SPECS): Define.
6356         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
6357         %(netbsd_cpp_spec).
6359 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6361         * doc/md.texi (Patterns): Note pattern condition pitfall
6362         for unnamed insn.
6364 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
6366         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6367         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
6368         ternary operations from here...
6369         (rs6000_expand_builtin): ...to here.
6370         New argument expandedp.
6371         Change all instances of altivec_expand_binop_builtin to
6372         rs6000_expand_binop_builtin.
6373         (altivec_expand_unop_builtin): Rename to
6374         rs6000_expand_unop_builtin.
6375         (altivec_expand_binop_builtin): Rename to
6376         rs6000_expand_binop_builtin.
6377         (altivec_expand_ternop_builtin): Rename to
6378         rs6000_expand_ternop_builtin.
6380 2002-05-29  Richard Henderson  <rth@redhat.com>
6382         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6383         (TARGET_BI_ARCH): Likewise.
6384         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6385         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6386         (TARGET_64BIT_DEFAULT): Default to 0.
6387         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6389 2002-05-29  Richard Henderson  <rth@redhat.com>
6391         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6392         (get_pc_thunk_name): New.
6393         (output_set_got): Use it.
6394         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6395         into linkonce sections.
6397 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6399         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6400         (CPP_PREDEFINES): Make sure this is undefined.
6401         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6402         (CPP_SUBTARGET_SPEC): Don't provide different versions for
6403         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
6404         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6405         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
6406         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6407         (CPP_PREDEFINES): Make sure this is undefined.
6408         (SUBTARGET_EXTRA_SPECS): Define.
6409         (CPP_SPEC): Use %(netbsd_cpp_spec).
6411 2002-05-29  Jeff Law <law@redhat.com>
6413         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6415         * flow.c (propagate_one_insn): Do not remove a dead insn if it
6416         contains a REG_RETVAL note.
6418         * haifa-sched (sched_analyze): Remove another useless clearing
6419         of SCHED_GROUP_P I missed yesterday.
6421         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6422         * pa.c (pa_asm_output_mi_thunk): New function.
6423         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6425 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6426             Marek Michalkiewicz  <marekm@amelek.gda.pl>
6428         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6429         (avr_asm_only_p): Make non-static.
6430         (enum avr_arch): Remove.
6431         (avr_arch_types): New.
6432         (avr_mcu_types): Update.
6433         (avr_override_options): Use avr_arch_types table instead of switch.
6434         * avr.h (CPP_PREDEFINES): Die.
6435         (avr_base_arch_macro, avr_extra_arch_macro): New.
6436         (TARGET_CPU_CPP_BUILTINS): New.
6437         (CPP_SPEC, EXTRA_SPECS): Simplify.
6438         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6439         CPP_AVR5_SPEC): Die.
6441 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6443         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6444         NETBSD_OS_CPP_BUILTINS_AOUT.
6445         (SUBTARGET_EXTRA_SPECS): Define.
6446         (CPP_SPEC): Use %(netbsd_cpp_spec).
6448 2002-05-29  Richard Henderson  <rth@redhat.com>
6450         * config/i386/i386.c (ix86_output_function_epilogue): New.
6451         (TARGET_ASM_FUNCTION_EPILOGUE): New.
6452         (pic_label_name): Remove.
6453         (pic_labels_used): New.
6454         (ix86_asm_file_end): Emit one pc load stub for each register used.
6455         (output_set_got): Generate deep pc load to any register.
6456         (ix86_select_alt_pic_regnum): New.
6457         (ix86_save_reg): Don't save pic register if we can find a valid
6458         call-clobbered replacement.
6459         (ix86_expand_prologue): If we found a valid replacement, renumber
6460         pic_offset_table_rtx.
6461         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6462         pic_offset_table_rtx after reload.
6463         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6464         * config/i386/i386.md (set_got): Make insn, not expander.
6465         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6467 2002-05-29  Richard Henderson  <rth@redhat.com>
6469         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6470         alignment for alloca.
6472 2002-05-29  Richard Henderson  <rth@redhat.com>
6474         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6475         (print_operand_address): Only add rip for symbolic addresses
6476         for which we do not have another relocation type.
6478 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6480         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6481         (EXTRA_SPECS): Add netbsd_cpp_spec.
6482         (CPP_SPEC): Use %(netbsd_cpp_spec).
6483         (CPP_PREDEFINES): Remove.
6484         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6485         (EXTRA_SPECS): Define.
6486         (CPP_SPEC): Use %(netbsd_cpp_spec).
6487         (CPP_PREDEFINES): Remove.
6489 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6491         PR preprocessor/6844
6492         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6493         NUL.
6495 2002-05-29  Eric Christopher  <echristo@redhat.com>
6497         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6498         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6500 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
6502         * config/fr30/fr30.md: Remove previous restriction on splits.
6503         Enforce conformance through gen_lowpart and cont_int_operand.
6504         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6505         as the assembler does not support ".bss".
6507 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6509         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6510         (CPP_PREDEFINES): Remove.
6511         (SUBTARGET_EXTRA_SPECS): Define.
6512         (CPP_SPEC): Use %(netbsd_cpp_spec).
6513         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6514         (CPP_PREDEFINES): Remove.
6515         (SUBTARGET_EXTRA_SPECS): Define.
6516         (CPP_SPEC): Use %(netbsd_cpp_spec).
6517         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6518         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6519         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6520         Add netbsd_cpp_spec.
6521         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6523 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6524             Zack Weinberg <zack@codesourcery.com>
6526         * cppexp.c (cpp_num): Move to cpplib.h.
6527         (CPP_ERROR): Remove.
6528         (interpret_float_suffix, interpret_int_suffix): New.
6529         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6530         (cpp_classify_number, cpp_interpret_integer): New.
6531         (interpret_number): Remove.
6532         (eval_token): Update to use new routines.
6533         * cpphash.h (cpp_num_part): Move to cpplib.h.
6534         * cppinit.c (cpp_post_options): Set warn_long_long.
6535         * cpplib.h (struct cpp_options): Add warn_long_long.
6536         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6537         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6538         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6539         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6540         cpp_interpret_integer): New.
6542 2002-05-29  Joel Sherrill <joel@OARcorp.com>
6544         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6546 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6548         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6549         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6550         (CPP_SUBTARGET_SPEC): Define.
6551         (SUBTARGET_EXTRA_SPECS): Define.
6552         (CPP_SPEC): Remove.
6554 2002-05-29  Chris Lattner  <sabre@nondot.org>
6556         * ssa.c (rename_insn_1): Rename uses of undefined registers to
6557         prevent confusion if/when the register is defined.
6559 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6561         PR target/6838
6562         * config/cris/cris.md: Fix typos and thinkos in comments.
6563         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6564         second alternative.
6565         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6566         ("*mov_sideqi_mem"): Similar, but for operand 3.
6567         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6568         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6569         Remove spurious mode specifier on operand 2.
6571 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6573         * config/h8300/h8300-protos.h: Remove the prototype for
6574         o_operand.
6575         Add prototypes for single_one_operand and single_zero_operand.
6576         * config/h8300/h8300.c (o_operand): Remove.
6577         (single_one_operand): New.
6578         (single_zero_operand): Likewise.
6579         (print_operand): For 'V' operand, and the operand with 0xff.
6580         For 'V' and 'W' operands, do not and the bit position with 7.
6581         * config/h8300/h8300.md (various anonymous patterns): Replace
6582         use of exact_log2 with single_one_operand/single_zero_operand.
6584 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6586         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6588 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6590         * config/s390/s390.c (legitimate_pic_operand_p): Do not
6591         accept symbolic LARL operands.
6592         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6593         epilogue insns.
6595 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
6597         * config/s390/s390.md (cmpstr_64/31): Mark whole
6598         input registers as used.
6600 2002-05-28  Richard Henderson  <rth@redhat.com>
6602         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6603         not current_function_uses_pic_offset_table and
6604         current_function_uses_const_pool; examine current_function_profile.
6605         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
6606         input to blockage if needed.
6607         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6608         (legitimize_pic_address): Likewise.  Set regs_ever_live for
6609         pic_offset_table_rtx when invoked during reload.
6610         * config/i386/i386.h (FINALIZE_PIC): Remove.
6611         * config/i386/i386.md (tablejump): Reformat.  Do not set
6612         current_function_uses_pic_offset_table.
6613         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6614         (blockage): Accept anything as operand 0.
6616 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6618         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6619         common CPP built-ins for all NetBSD a.out targets.
6620         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6621         common CPP built-ins for all NetBSD ELF targets.
6622         * config/netbsd.h: Add missing notice.
6623         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6624         for all NetBSD targets.
6625         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6626         for all NetBSD targets using an LP64 code model.
6627         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6628         NetBSD targets.
6630 2002-05-28  Richard Henderson  <rth@redhat.com>
6632         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6633         update if UPDATE_LIFE_LOCAL.
6635 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6637         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6639 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6640                           Jason R. Thorpe <thorpej@wasabisystems.com>
6642         config/sh reorganization to factor out endianness and coff:
6644         * config/sh/little.h: New file.
6645         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6646         defined, define to 0 to select big-endian.
6647         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6648         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6649         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6650         * config/sh/t-be: New file.
6651         * config/sh/t-le: New file.
6653         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6654         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6655         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6656         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6657         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6658         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6659         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6660         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6661         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6662         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6663         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6664         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6665         (LINK_SPEC): Define to SH_LINK_SPEC.
6666         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6667         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6668         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6669         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6670         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6671         * config/sh/coff.h: New file.
6672         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6673         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6674         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6675         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6676         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6677         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6678         (PTRDIFF_TYPE): Likewise.
6679         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6680         (CPP_PREDEFINES): Don't define.
6681         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6682         (LINK_SPEC): Define to SH_LINK_SPEC.
6683         (LINK_EMUL_PREFIX): Redefine.
6684         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6685         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6686         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6687         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6688         (TARGET_OS_CPP_BUILTINS): Define.
6689         (TARGET_DEFAULT): Redefine.
6690         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6691         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6692         (LINK_SPEC): Don't redefine.
6693         (LINK_DEFAULT_CPU_EMUL): Redefine.
6694         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6695         * sh.c (sh_asm_named_section): Don't declare / define.
6696         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6697         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6698         (sh64-*-elf* tm_file): Likewise.
6699         (sh-*-rtemself* tm_file): Likewise.
6700         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
6701         (sh-*-linux* tmake_file): Add sh/t-le.
6702         (sh-*-rtems* tm_file): Add sh/coff.h
6703         (sh-*-* tm_file): Likewise.
6705 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6707         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6708         CONSTANT_POOL_ADDRESS_P.
6710         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6712 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
6713             Jeff Law <law@redhat.com>
6715         * optabs.c (expand_binop): Fix nwords sign warnings.
6716         generate pseudo for add_optab.
6718         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6719         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6721 2002-05-28      Marc Espie <espie@openbsd.org>
6723         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
6724         inherited from gas.h.
6725         (ASM_QUAD):  Undef.  OpenBSD does not support it.
6727 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
6729         * doc/install.texi (binaries): Change mingw binaries
6730         link to www.mingw.org.
6732 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6734         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6736 2002-05-28  Richard Henderson  <rth@redhat.com>
6738         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6739         bottom alignment for leaf functions.
6741 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6743         * config/pa/milli32.S, config/pa/lib1funcs.asm,
6744         config/sparc/sol2-g1.asm: Delete unused files.
6746 2002-05-28  Richard Henderson  <rth@redhat.com>
6748         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6750         * flow.c (calculate_global_regs_live): Rename call_used to
6751         invalidated_by_call.  Initialize from regs_invalidated_by_call
6752         instead of call_used_regs.
6754         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6755         DECL_EXTERNAL.
6757 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6759         * tree.h: Don't include real.h.
6760         Forward-declare struct realvaluetype.
6761         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6762         contain it.
6763         (TREE_REAL_CST_PTR): New accessor.
6764         (TREE_REAL_CST): Update.
6765         * real.h: Include machmode.h.
6766         (realvaluetype): Make it struct realvaluetype, not a typedef.
6767         (build_real): Prototype here.
6769         * tree.c: Include real.h.
6770         (build_real): Allocate the REAL_VALUE_TYPE as a separate
6771         object in GC memory, set TREE_REAL_CST_PTR to point to it.
6772         (build_real_from_int_cst): Use build_real.
6773         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6774         REAL_CST.
6776         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6777         fold-const.c, print-tree.c, real.c: Include real.h.
6778         * Makefile.in: Update dependency lists.
6780 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6782         * basic-block.h (last_basic_block): Declare.
6783         (expunge_block_nocompact): Declaration removed.
6784         (compact_blocks): Declare.
6785         * cfg.c (last_basic_block): New variable.
6786         (expunge_block_nocompact): Removed.
6787         (expunge_block): Do not compact basic blocks.
6788         (compact_blocks): New.
6789         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6790         longer change.
6791         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6792         last_basic_block.
6793         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6794         real positions of blocks.
6795         (delete_unreachable_blocks): Simplified -- quadratic behavior now
6796         cannot occur.
6797         (cleanup_cfg): Compact blocks.
6798         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6799         basic_block_info varray.
6800         (flow_delete_block): Comment update.
6801         (back_edge_of_syntactic_loop_p): Modify position check code.
6802         (verify_flow_info): Update checking.
6803         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6804         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6805         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6806         indices no longer change.
6807         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6808         last_basic_block.
6809         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6810         * profile.c (branch_prob): Compact blocks.
6811         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6812         last_basic_block.
6814 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
6816         * config/h8300/h8300.md (two anonymous patterns): New.
6818 2002-05-28  David S. Miller  <davem@redhat.com>
6820         * config/sparc/sparc.md (cpu): Tidy.
6821         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6822         'trap'.
6823         (in_call_delay): Delete reference to 'return' type.
6824         (eligible_for_return_delay, in_return_delay, define_delay
6825         referencing those): Delete.
6826         (rest of file): Use new type attributes as appropriate.
6827         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6828         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6829         * config/sparc/ultra1_2.md (us1_single): New reservation.
6830         (us1_ialuX): Likewise.
6831         * config/sparc/ultra3.md (us3_single): Likewise.
6832         (us3_ialuX): Likewise.
6833         (us3_imul, us3_idiv): Tweak.
6835 2002-05-28  Richard Henderson  <rth@redhat.com>
6837         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6838         STRING_CST.
6840 2002-05-28  Richard Henderson  <rth@redhat.com>
6842         * config.gcc: Obsolete mn10200.
6844 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6846         * cppexp.c (interpret_number): Optimize for single-digit
6847         and less-than-half-precision cases.
6848         (num_trim, num_positive, num_div_op): Cast constants.
6850 2002-05-27  Bo Thorsen  <bo@suse.de>
6852         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6853         3.1 branch. The file was made by Jakub Jelinek.
6854         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6855         support so multilib doesn't break. And don't define this at all
6856         when -Dinhibit_libc is used.
6857         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6858         * config/i386/t-linux64: Implement full multilib support. Patch
6859         originally done by Andreas Jaeger and Jakub Jelinek.
6861 2002-05-27  Roger Sayle  <roger@eyesopen.com>
6863         * c-common.c: Add support for __attribute__((nothrow)) to specify
6864         that a function cannot throw an exception (using TREE_NOTHROW).
6865         (handle_nothrow_attribute): New function to process this attribute.
6867         * doc/extend.texi: Document the new nothrow function attribute.
6869 2002-05-27  H.J. Lu  (hjl@gnu.org)
6871         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6872         (num_positive): Likewise.
6873         (num_div_op): Likewise.
6875 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6877         * c-common.c (c_common_init): Always use intmax_t.
6879 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6881         * c-common.c (c_common_init): Use intmax_t for now.
6883 2002-05-24  Andrew Haley  <aph@redhat.com>
6885         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6886         if T is a boolean type.
6888 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6890         * basic-block.h (last_basic_block): Defined as synonym for
6891         n_basic_blocks.
6892         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6893         flow_depth_first_order_compute, flow_preorder_transversal_compute,
6894         flow_dfs_compute_reverse_init): Replaced relevant occurences of
6895         n_basic_blocks with last_basic_block.
6896         * cfgbuild.c (make_edges): Likewise.
6897         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6898         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6899         * combine.c (combine_instructions): Likewise.
6900         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6901         iterative_dataflow_bitmap): Likewise.
6902         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6903         calc_idoms, idoms_to_doms): Likewise.
6904         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6905         Likewise.
6906         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6907         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6908         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6909         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6910         delete_null_pointer_checks, compute_code_hoist_vbeinout,
6911         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6912         compute_store_table, build_store_vectors): Likewise.
6913         * haifa-sched.c (sched_init): Likewise.
6914         * ifcvt.c (if_convert): Likewise.
6915         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6916         pre_edge_lcm, compute_available, compute_nearerout,
6917         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6918         Likewise.
6919         * predict.c (estimate_probability, process_note_prediction,
6920         note_prediction_to_br_prob): Likewise.
6921         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6922         * recog.c (split_all_insns, peephole2_optimize): Likewise.
6923         * regrename.c (copyprop_hardreg_forward): Likewise.
6924         * resource.c (init_resource_info): Likewise.
6925         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6926         init_regions, schedule_insns): Likewise.
6927         * ssa-ccp.c (ssa_const_prop): Likewise.
6928         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6929         * ssa.c (compute_dominance_frontiers,
6930         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6932         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6933         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6934         sizes consistently.
6936 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6938         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6939         new.
6940         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6941         hoist_insn_after, hoist_insn_to_edge): New.
6943 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
6945         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6946         (PROP_FINAL): Include.
6947         * flow.c (life_analysis, update_life_info,
6948         init_propagate_block_info, mark_set_1, mark_used_rgs):
6949         Support SCAN_DEAD_STORE.
6951 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6953         * c-common.c (c_common_init): Set CPP arithmetic precision.
6954         * cppexp.c (cpp_num_part): Move typedef ...
6955         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6956         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6957         (sanity_checks): Update.
6959 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
6961         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6962         (mkheaders): New rule.
6963         (install-mkheaders): New rule.
6964         * configure.in (all_outputs): Add mkheaders.
6965         * configure: Regenerate.
6966         * mkheaders.in: New file.
6968 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
6970         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6972 2002-05-26  Andreas Jaeger  <aj@suse.de>
6974         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6976 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6978         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6979         right_shift): Remove.
6980         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6981         HIGH_PART): New.
6982         (struct op): Use cpp_num.
6983         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6984         num_part_mul, num_unary_op, num_binary_op, num_negate,
6985         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6986         num_div_op, num_lshift, num_rshift, append_digit): New.
6987         (interpret_number, parse_defined, eval_token, reduce): Update
6988         for two-integer arithmetic.
6989         (binary_handler): New typedef.
6990         (optab): Update.
6991         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6992         (_cpp_parse_expr, reduce): Update to handle two-integers.
6993         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6995 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6997         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6998         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6999         branch insn into account, do not assume 1.
7000         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
7001         over single word insn.  Handle upper half of I/O space too.
7002         * config/avr/avr.md (*sbrx_branch): Use it.
7003         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7004         (*sbix_branch, *sbix_branch_bit7): Likewise.
7005         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7006         Use RTL peepholes to optimize register operand sign tests.
7008 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7010         * config/avr/avr.c (avr_asm_only_p): New variable.
7011         (avr_override_options): Set it here if AVR1.
7012         (asm_file_start): Test it here, report an error if set.
7014 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
7016         * alias.c: Fix formatting.
7017         * attribs.c: Likewise.
7018         * bb-reorder.c: Likewise.
7019         * bitmap.c: Likewise.
7020         * bitmap.h: Likewise.
7021         * builtins.c: Likewise.
7023 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
7025         * reload.c (find_valid_class): Accept new argument DEST,
7026         choose class accordingly.
7027         (push_reload): Update callers.
7029 2002-05-26  Andreas Jaeger  <aj@suse.de>
7031         * combine.c (combine_instructions): Do not indent #if for
7032         traditional C.
7034 2002-05-25  Richard Henderson  <rth@redhat.com>
7036         * c-pragma.c (apply_pragma_weak): Convert value identifier to
7037         string for decl_attributes.
7038         (handle_pragma_weak): Call assemble_alias if we're modifying
7039         an existing decl.
7041 2002-05-25  Richard Henderson  <rth@redhat.com>
7043         PR target/6788
7044         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7045         using rtl instead of fprintf.
7046         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7047         * config/sparc/sparc-protos.h: Update.
7049 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7051         * Makefile.in (C_COMMON_H): Fix.
7052         Update other targets.
7053         * c-common.c: Don't include c-lex.h.
7054         (builtin_define_with_value): Make static and prototype.
7055         (builtin_define_std): Move from c-lex.h.
7056         * c-common.h (init_c_lex): Move from c-lex.h.
7057         * c-decl.c: Don't include c-lex.h.
7058         (make_pointer_declarator): Move from c-parse.in.
7059         * c-lex.c: Don't include c-lex.h.
7060         * c-lex.h: Remove.
7061         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7062         (make_pointer_declarator): Move to c-decl.c.
7063         * c-pragma.c: Don't include c-lex.h.
7064         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7065         * c-tree.h (make_pointer_declarator): New.
7066 doc:
7067         * passes.texi, tm.texi: Update.
7068 objc:
7069         * Make-lang.in: Update and correct.
7070         * objc-act.c: Don't include c-lex.h or cpplib.h.
7071 treelang:
7072         * treetree.c: Don't include c-lex.h.
7073 config:
7074         * darwin-c.c: Don't include c-lex.h.
7075         * c4x/c4x-c.c: Don't include c-lex.h.
7076         * c4x/t-c4x: Update.
7077         * i370/i370-c.c: Don't include c-lex.h.
7078         * i370/t-i370: Update.
7079         * i960/i960-c.c: Don't include c-lex.h.
7080         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7081         * i960/t-960bare: Update.
7082         * i960/t-vxworks: Update.
7083         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7084         * rs6000/t-darwin: Update.
7085         * rs6000/t-rs6000-c-rule: Update.
7086         * v850/v850-c.c: Don't include c-lex.h.
7087         * v850/v850.c: Don't include c-lex.h or cpplib.h.
7090 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
7092         * tree.def: Fix typos.
7093         * doc/install.texi: Likewise.
7095 2002-05-25  Richard Henderson  <rth@redhat.com>
7097         * configure.in (HAVE_AS_TLS): Add ia64 test.
7098         * configure: Rebuild.
7099         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7100         (override_options): Set it.
7101         (TARGET_HAVE_TLS): New.
7102         (sdata_symbolic_operand): Look for 's'.
7103         (tls_symbolic_operand): New.
7104         (ia64_expand_load_address): Abort for tls symbols.
7105         (gen_tls_get_addr): New.
7106         (gen_thread_pointer): New.
7107         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
7108         (rtx_needs_barrier): Add new unspecs.
7109         (ia64_encode_section_info): Handle tls symbols.
7110         (ia64_strip_name_encoding): Strip two encoding chars.
7111         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7112         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7113         (TARGET_OPTIONS): Add tls-size.
7114         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7115         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7116         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7117         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7118         (movsf, movdf): Likewise.
7119         (movdi_symbolic): Use match_scratch.  Don't split if we won't
7120         have a scratch availiable.
7121         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7122         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7123         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7124         * config/ia64/ia64-protos.h: Update.
7125         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7126         sdata_symbolic_operand.
7127         (ASM_OUTPUT_LABELREF): Strip two characters.
7129 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
7131         * combine.c (simplify_set): Remove an unnecessary subreg.
7133 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7135         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7137         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7139 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7141         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
7143 2002-05-25  Roger Sayle  <roger@eyesopen.com>
7145         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7146         (cond (compare x y) 0) into the equivalent (cond x y).
7148 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7150         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
7152 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
7154         * config.gcc: Remove all stanzas for previously obsoleted
7155         systems.  Where necessary, add explicit error stanzas to
7156         prevent removed systems from being misidentified as something
7157         else.  Begin a fresh obsoletions list, with the systems that
7158         were reprieved last round.
7159         * doc/install.texi: Remove all mention of dead targets.
7160         * fixinc/mkfixinc.sh: Likewise.
7162         * config/arm/arm.h: Bit 31 of target_flags is no longer
7163         reserved.
7165         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7166         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7167         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7168         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7169         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7170         config/alpha/osf12.h, config/alpha/osf2or3.h,
7171         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7172         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7173         config/clipper/clipper-protos.h, config/clipper/clipper.c,
7174         config/clipper/clipper.h, config/clipper/clipper.md,
7175         config/clipper/clix.h, config/convex/convex-protos.h,
7176         config/convex/convex.c, config/convex/convex.h,
7177         config/convex/convex.md, config/convex/fixinc.convex,
7178         config/convex/proto.h, config/elxsi/elxsi-protos.h,
7179         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7180         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7181         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7182         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7183         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7184         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7185         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7186         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7187         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7188         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7189         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7190         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7191         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7192         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7193         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7194         config/m68k/altos3068.h, config/m68k/apollo68.h,
7195         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7196         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7197         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7198         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7199         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7200         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7201         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7202         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7203         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7204         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7205         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7206         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7207         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7208         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7209         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7210         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7211         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7212         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7213         config/mips/dec-osf1.h, config/mips/elflorion.h,
7214         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7215         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7216         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7217         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7218         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7219         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7220         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7221         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7222         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7223         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7224         config/ns32k/sequent.h, config/ns32k/tek6000.h,
7225         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7226         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7227         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7228         config/sparc/rtems.h, config/we32k/we32k-protos.h,
7229         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7230         Delete file.
7232 2002-05-24  Richard Henderson  <rth@redhat.com>
7234         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7235         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7236         * config/i386/i386.c (tls_model_chars): Add leading space.
7237         (tls_symbolic_operand): Don't bias by 1.
7238         (legitimize_address): Don't unbias by 1.
7240 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
7242         * lcm.c (optimize_mode_switching): Change bb used as indices
7243         to bb->index.
7245 2002-05-24  Richard Henderson  <rth@redhat.com>
7247         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7248         of update_life_info_in_dirty_blocks.
7250 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
7252         PR other/6782
7253         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7255 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7257         PR preprocessor/6780
7258         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7260 2002-05-24  Jim Blandy  <jimb@redhat.com>
7262         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7263         entry with a type code of zero, marking the end of the compilation
7264         unit's macro info.
7266 2002-05-24  Richard Henderson  <rth@redhat.com>
7268         * varasm.c (asm_output_bss): Always output one byte.
7269         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7271 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7273         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7274         namespace.
7276 2002-05-24  Andreas Jaeger  <aj@suse.de>
7278         * ggc-page.c (alloc_page): Cast variables of type size_t to
7279         unsigned long, adjust printf format string.
7280         (ggc_alloc): Likewise.
7281         (ggc_print_statistics): Likewise.
7282         (ggc_print_statistics): Correct printf format string for SCALE to
7283         use unsigned long.
7285 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
7287         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7289 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
7290             Zack Weinberg     <zack@codesourcery.com>
7292         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7293         quoted strings.
7294         * dwarf2out.c (lookup_filename): Properly quote filename in .file
7295         directive in assembly file.
7296         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7297         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7298         * config/pj/pj.h (ASM_FILE_START): Likewise.
7299         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7300         * config/avr/avr.c (asm_file_end): Likewise.
7301         * toplev.c (output_quoted_string): Handle possibly signed plain
7302         char.
7303         * toplev.h (output_clean_symbol_name): Declare
7304         * toplev.c (output_clean_symbol_name): Define.
7305         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7306         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7308 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
7310         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7312 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
7314         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7315         of size of unsigned.
7317 2002-05-23  Richard Henderson  <rth@redhat.com>
7319         * configure.in (HAVE_AS_TLS): New test.
7320         * config.in, configure: Rebuild.
7321         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7322         (ix86_tls_dialect_string, ix86_tls_dialect): New.
7323         (override_options): Set it.
7324         (tls_model_chars, tls_symbolic_operand): New.
7325         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7326         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7327         (local_exec_symbolic_operand): New.
7328         (get_pic_label_name): Merge into output_set_got.
7329         (ix86_asm_file_end): Emit pic_label_name if defined.
7330         (legitimate_constant_p, constant_address_p): New.
7331         (legitimate_pic_operand_p): New.
7332         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7333         (legitimate_address_p): Likewise.
7334         (ix86_encode_section_info): Rename from i386_; handle tls decls.
7335         (ix86_strip_name_encoding): New.
7336         (get_thread_pointer): New.
7337         (legitimize_address): Handle tls symbols.
7338         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7339         Remove UNSPEC_PLT.
7340         (struct machine_function): Add some_ld_name.
7341         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7342         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
7343         (output_addr_const_extra): New.
7344         (maybe_get_pool_constant): New.
7345         (ix86_split_to_parts): Use it.
7346         (ix86_expand_move): Handle tls symbols.
7347         (ix86_tls_get_addr): New.
7348         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7349         (TARGET_OPTIONS): Add tls-dialect.
7350         (CONSTANT_ADDRESS_P): Use new out-of-line function.
7351         (LEGITIMATE_CONSTANT_P): Likewise.
7352         (LEGITIMATE_PIC_OPERAND_P): Likewise.
7353         (TARGET_STRIP_NAME_ENCODING): New.
7354         (ASM_OUTPUT_LABELREF): New.
7355         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7356         (OUTPUT_ADDR_CONST_EXTRA): New.
7357         (PREDICATE_CODES): Update.
7358         (ix86_tls_dialect, ix86_tls_dialect_string): New.
7359         * config/i386/i386.md: Regroup and renumber unspec constants.
7360         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7361         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7362         (tls_global_dynamic, tls_local_dynamic_base): New.
7363         (tls_local_dynamic_once): New.
7364         * config/i386/i386-protos.h: Update.
7366 2002-05-23  Richard Henderson  <rth@redhat.com>
7368         * genemit.c (gen_insn): Print file:lineno comment before function.
7369         (main): likewise.
7370         * gensupport.c (struct queue_elem): Add filename member.
7371         (queue_pattern): Initialize it; update all callers.
7372         (process_include): Don't free filename.
7373         (read_md_rtx): Set read_rtx_filename.
7375 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
7377         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7379 2002-05-23  Richard Henderson  <rth@redhat.com>
7381         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7383 2002-05-23  Richard Henderson  <rth@redhat.com>
7385         * doc/extend.texi (C++98 Thread-Local Edits): Update with
7386         commentary from Mark.
7388 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7390         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7391         Use FOR_EACH_BB macros to iterate over basic block chain.
7392         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7393         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7394         Likewise.
7395         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7396         find_unreachable_blocks, create_edge_list, verify_edge_list,
7397         remove_fake_edges, add_noreturn_fake_exit_edges,
7398         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7399         Likewise.
7400         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7401         find_sub_basic_blocks): Likewise.
7402         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7403         Likewise.
7404         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7405         Likewise.
7406         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7407         Likewise.
7408         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7409         commit_edge_insertions, commit_edge_insertions_watch_calls,
7410         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7411         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7412         * conflict.c (conflict_graph_compute): Likewise.
7413         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7414         df_modified_p, df_refs_unlink, df_dump): Likewise.
7415         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7416         * final.c (compute_alignments): Likewise.
7417         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7418         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7419         count_or_remove_death_notes): Likewise.
7420         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7421         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7422         classic_gcse, compute_transp, cprop, compute_pre_data,
7423         compute_transpout, invalidate_nonnull_info,
7424         delete_null_pointer_checks_1, delete_null_pointer_checks,
7425         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7426         compute_store_table, build_store_vectors, store_motion): Likewise.
7427         * global.c (global_conflicts, mark_elimination): Likewise.
7428         * graph.c (print_rtl_graph_with_bb): Likewise.
7429         * haifa-sched.c (sched_init): Likewise.
7430         * ifcvt.c (if_convert): Likewise.
7431         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7432         compute_available, compute_nearerout, compute_rev_insert_delete,
7433         optimize_mode_switching): Likewise.
7434         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7435         * predict.c (estimate_probability, note_prediction_to_br_prob,
7436         propagate_freq, counts_to_freqs, expensive_function_p,
7437         estimate_bb_frequencies): Likewise.
7438         * profile.c (instrument_edges, get_exec_counts,
7439         compute_branch_probabilities, compute_checksum, branch_prob,
7440         find_spanning_tree): Likewise.
7441         * recog.c (split_all_insns, peephole2_optimize): Likewise.
7442         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7443         Likewise.
7444         * regclass.c (scan_one_insn, regclass): Likewise.
7445         * regmove.c (mark_flags_life_zones, regmove_optimize,
7446         record_stack_memrefs): Likewise.
7447         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7448         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7449         * resource.c (find_basic_block): Likewise.
7450         * sched-ebb.c (schedule_ebbs): Likewise.
7451         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7452         find_single_block_region, find_rgns, schedule_insns)
7453         * sibcall.c (optimize_sibling_and_tail_recursive_call)
7454         * ssa-ccp.c (optimize_unexecutable_edges,
7455         ssa_ccp_df_delete_unreachable_insns): Likewise.
7456         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7457         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7458         rename_block, convert_to_ssa, compute_conservative_reg_partition,
7459         compute_coalesced_reg_partition, rename_equivalent_regs,
7460         convert_from_ssa): Likewise.
7461         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7462         process_for_unwind_directive): Likewise.
7464         * df.c (FOR_ALL_BBS): Removed.
7465         * gcse.c (struct null_pointer_info): Type of current_block field
7466         changed.
7467         (struct reg_avail_info): Type of last_bb field changed.
7468         * config/ia64/ia64.c (block_num): Removed.
7469         (need_copy_state): Type changed.
7470         (last_block): New.
7472 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7474         * cppinit.c (mark_named_operators): Split out from init_builtins.
7475         (cpp_finish_options): Call it from here instead.
7477 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7479         * builtin-attrs.def: Update copyright years.
7480         (ATTR_NONNULL): New attribute identifier.
7481         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7482         attribute tree lists.
7483         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7484         format operand.
7485         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7486         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7487         attribute lists.  Chain the appropriate nonnull attribute.
7488         * c-format.c (check_format_arg): Remove null format string
7489         warning.
7490         * testsuite/gcc.dg/format/null-1.c: New test.
7492 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7494         * Makefile.in (ADAC): Define.
7495         (SYSLIBS): Define.
7496         (.SUFFIXES): Move before language makefile fragments.
7497         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7499 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
7501         * varasm.c (make_decl_rtl): Don't allow weak variables to be
7502         placed in common.
7504 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7506         * cfg.c (dump_flow_info): Print results of
7507         maybe_hot/probably_never_executed predicates.
7508         * toplev.c (open_dump_file): Print function frequency.
7510 2002-05-23  David S. Miller  <davem@redhat.com>
7512         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7513         regsets.
7515 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7517         * c-common.c (warn_nonnull): Declare.
7518         (c_common_attribute_table): Add "nonnull" attribute.
7519         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7520         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7521         check_function_arguments_recurse): New functions.
7522         * c-common.h (warn_nonnull): Declare extern.
7523         (check_function_arguments, check_function_arguments_recurse): New
7524         prototypes.
7525         * c-decl.c (c_decode_option): Add -Wnonnull option.
7526         * c-format.c (set_Wformat): Set warn_nonnull if enabling
7527         format checking.
7528         (format_check_context): New structure.
7529         (check_format_info_recurse): Remove recursion and rename to...
7530         (check_format_arg): ...this.  Update comment.
7531         (check_format_info): Use check_function_arguments_recurse.
7532         * c-typeck.c (build_function_call): Call check_function_arguments
7533         instead of check_function_format.
7534         * doc/extend.texi: Document "nonnull" attribute.
7535         * doc/invoke.texi: Docuemnt -Wnonnull option.
7536         * testsuite/gcc.dg/nonnull-1.c: New test.
7537         * testsuite/gcc.dg/nonnull-2.c: New test.
7539 2002-05-23  David S. Miller  <davem@redhat.com>
7541         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7542         * cfgcleanup.c (cleanup_cfg): If it is set do not
7543         attempt to delete trivially dead insns.
7544         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7545         * toplev.c (rest_of_compilation): Document non-trivial aspect
7546         the RTL before optimize_save_area_alloca is run.
7548 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7550         * c-lex.c (indent_level): Remove.
7551         (cb_file_change, c_lex): Remove indent level handling.
7552         * c-lex.h (indent_level): Remove.
7553         * input.h (struct file_stack): Remove indent_level.
7554         * toplev.c (push_srcloc): Remove indent_level handling.
7556 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7558         PR target/6753
7559         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7560         of x in constraints for clarity.
7561         (sse_mov?fcc split): abort if op2 == op3.
7562         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7563         sse_movsfcc_const0_4): Add earlyclobber.
7564         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7565         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
7566         Use Y instead of x in constraints.
7568 2002-05-23  Richard Henderson  <rth@redhat.com>
7570         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7571         (C++98 Thread-Local Edits): New subsection.
7573         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7574         (ix86_arch): Set type to enum processor_type.
7576         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7577         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7579 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7581         * configure.in: Fix as version test for binutils 2.12.1 releases
7582         (without dates).
7583         * configure: Rebuilt.
7585 2002-05-23  Richard Henderson  <rth@redhat.com>
7587         * config/i386/i386.c (get_pic_label_name): New.
7588         (load_pic_register): Remove.
7589         (output_set_got): New.
7590         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7591         * config/i386/i386.md (UNSPEC_SET_GOT): New.
7592         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7593         (prologue_set_got, prologue_get_pc): Remove.
7594         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7595         (builtin_setjmp_receiver): Use gen_set_got.
7596         * config/i386/i386-protos.h: Update.
7598 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
7600         * gcse.c (hash_expr): Do not use alias set for hashing.
7602 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
7604         * dbxout.c (dbxout_class_name_qualifiers): New function.
7605         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7607 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7609         * cpperror.c (_cpp_begin_message): No special casing
7610         of CPP_FATAL_LIMIT.
7611         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7612         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7613         * cpplib.c (do_include_common): Use DL_ERROR.
7614         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7615         (DL_ICE): Renumber.
7616         * fix-header.c (read_scan_file): Update.
7618 2002-05-22  Richard Henderson  <rth@redhat.com>
7620         * config/i386/i386.c (ix86_expand_call): New function, extracted
7621         from md call patterns.  Add pic_offset_table_rtx to
7622         CALL_INSN_FUNCTION_USAGE when needed.
7623         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7624         (call_value_pop, call_value, untyped_call): Likewise.
7625         (call_exp, call_value_exp): Remove.
7626         * config/i386/i386-protos.h: Update.
7628 2002-05-22  Richard Henderson  <rth@redhat.com>
7630         * varasm.c (default_section_type_flags): Check for VAR_DECL
7631         before using DECL_THREAD_LOCAL.
7633 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
7635         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7636         (STARTFILE_SPEC): Delete PE crt0.o.
7637         * config/rs6000/aix51.h: Same.
7638         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7639         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7640         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
7641         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7642         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7644 2002-05-22  Richard Henderson  <rth@redhat.com>
7646         * varasm.c (default_section_type_flags): Handle tls data and
7647         default sections.
7648         (default_unique_section): Handle tls sections.
7650 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
7652         * configure.in (CROSS): Define NATIVE_CROSS.
7653         * configure: Regenerate.
7654         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7655         (startfile_prefix_spec): New var.
7656         (static_specs): Add startfile_prefix_spec.
7657         (do_spec_2): Split out from..
7658         (do_spec): ..here.
7659         (main): Process startfile_prefix_spec.
7660         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7661         dynamic linker.
7662         (STARTFILE_PREFIX_SPEC): Define.
7663         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7664         absolute paths.
7666 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7668         * cpperror.c: Fix formatting.
7669         * cppexp.c: Likewise.
7670         * cppfiles.c: Likewise.
7671         * cpphash.c: Likewise.
7672         * cpphash.h: Likewise.
7673         * cppinit.c: Likewise.
7674         * cpplex.c: Likewise.
7675         * cpplib.c: Likewise.
7676         * cppmacro.c: Likewise.
7677         * cppmain.c: Likewise.
7678         * cppspec.c: Likewise.
7680 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7682         * combine.c (force_to_mode): Use gen_int_mode.
7683         Don't clear CONST_INT bits outside of mode.
7685 2002-05-22  Richard Henderson  <rth@redhat.com>
7687         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7688         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7690 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7692         PR c/6643
7693         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7694         if DECL_SIZE_UNIT is INTEGER_CST.
7696 2002-05-22  Richard Henderson  <rth@redhat.com>
7698         * flow.c (life_analysis): Delete broken reg_label check.
7700 2002-05-22  Richard Henderson  <rth@redhat.com>
7702         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7703         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7705 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7707         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7708         (embed-bb.c): New rule.
7709         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7710         * config/sh/embed_bb.c: Delete.
7712 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7714         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7716 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7718         * config/h8300/h8300.md (*andorqi3): New.
7720 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7722         PR preprocessor/6517
7723         * Makefile.in: Update.
7724         * c-common.c (c_common_post_options): Add preprocessor
7725         errors to the error count.
7726         * c-lang.c (c_post_options): Kill.
7727         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7728         * hooks.h: Add header guards.
7729         * langhooks-def.h: Include hooks.h.
7730         (LANG_HOOKS_POST_OPTIONS): Update.
7731         * langhooks.h (struct lang_hooks): Update post_options.
7732         * toplev.c (parse_options_and_default_flags): Update.
7733 objc:
7734         * objc-lang.c (objc_post_options): Kill.
7735         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7737 2002-05-21  Bruce Korb  <bkorb@gnu.org>
7739         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7740         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7741         * fixinc/fixincl.x: regen.
7743 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
7745         * cfgbuild.c: Fix formatting.
7746         * cfg.c: Likewise.
7747         * cfgcleanup.c: Likewise.
7748         * cfglayout.c: Likewise.
7749         * cfgloop.c: Likewise.
7750         * cfgrtl.c: Likewise.
7752 2002-05-21  Richard Henderson  <rth@redhat.com>
7754         * c-common.h (enum rid): Add RID_THREAD.
7755         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7756         (grokdeclarator): Grok __thread.
7757         * c-parse.in (reswords): Add __thread.
7758         (rid_to_yy): Add RID_THREAD.
7760         * tree.h (DECL_THREAD_LOCAL): New.
7761         (struct tree_decl): Add thread_local_flag.
7762         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7763         * tree.c (staticp): TLS variables are not static.
7765         * target-def.h (TARGET_HAVE_TLS): New.
7766         * target.h (have_tls): New.
7767         * output.h (SECTION_TLS): New.
7768         * varasm.c (assemble_variable): TLS variables can't be common for now.
7769         (default_section_type_flags): Handle .tdata and .tbss.
7770         (default_elf_asm_named_section): Handle SECTION_TLS.
7771         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7773         * flags.h (flag_tls_default): Declare.
7774         * toplev.c (flag_tls_default): Define.
7775         (display_help): Display help for it.
7776         (decode_f_option): Set it.
7778         * doc/extend.texi (Thread-Local): New node describing language-level
7779         thread-local storage.
7780         * doc/invoke.texi (-ftls-model): Document.
7782         * fixinc/inclhack.def (thread_keyword): New.
7783         * fixinc/fixincl.x: Rebuild.
7785 2002-05-21  Jeffrey A Law  <law@redhat.com>
7787         * optabs.c (expand_binop): For double-word integer multiplies,
7788         do not compute intermediate results into something that is
7789         not a register (such as a SUBREG or MEM).
7791         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7792         (ix86_sched_reorder): Make sure to initialize scheduling
7793         data even when there's only one insn in the ready queue.
7795 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7797         * genautomata.c (reserv_sets_hash_value): Fix a typo.
7799 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7801         * genautomata.c (reserv_sets_hash_value): Define hash_value as
7802         set_el_t.  Transform the hash value into unsigned.
7803         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7804         (transform_3): Add code to process `(A,B)+(D,E)'.
7806 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
7808         * reload1.c (do_output_reload): Run delete_output_reload
7809         only if optimizing.
7811 2002-05-21  Roger Sayle  <roger@eyesopen.com>
7813         PR middle-end/6600
7814         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7815         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
7816         (can_store_by_pieces): ... and here to limit the largest mode used.
7817         Add a comment to document this function.
7819 2002-05-21  Richard Henderson  <rth@redhat.com>
7821         * flow.c (life_analysis): Fix test for deleted label.
7823 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7825         * doc/tm.texi: Fix typo.
7827 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
7829         * c-common.c (c_common_init): Set options->unsigned_char from
7830         flag_signed_char.
7831         (cb_register_builtins): Define __STRICT_ANSI__ and
7832         __CHAR_UNSIGNED__ here...
7833         * cppinit.c (init_builtins): Not here.
7834         (cpp_create_reader): unsigned_char option defaults to 0, not
7835         !DEFAULT_SIGNED_CHAR.
7836         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7837         and -funsigned-char.
7839         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7840         * cpphash.c (_cpp_init_hashtable): Don't set it.
7841         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7842         directly.  Clarify comment.
7844 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7846         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7847         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
7848         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
7849         BASIC_BLOCK (n_basic_blocks - 1).
7850         * cfganal.c (can_fallthru, flow_call_edges_add,
7851         flow_preorder_transversal_compute): Too.
7852         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7853         find_sub_basic_blocks): Too.
7854         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7855         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7856         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7857         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7858         * combine.c (this_basic_block): Type changed to basic_block.
7859         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7860         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7861         get_last_value, distribute_notes, distribute_links): Too.
7862         * final.c (compute_alignments): Too.
7863         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7864         * function.c (thread_prologue_and_epilogue_insns): Too.
7865         * gcse.c (compute_code_hoist_vbeinout): Too.
7866         * global.c (build_insn_chain): Too.
7867         * ifcvt.c (find_if_block, find_cond_trap): Too.
7868         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7869         * regmove.c (regmove_optimize): Too.
7870         * resource.c (find_basic_block): Too.
7871         * sched-ebb.c (schedule_ebbs): Too.
7872         * ssa-dce.c (find_control_dependence, find_pdom): Too.
7874 2002-05-21  Andreas Jaeger  <aj@suse.de>
7876         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7878 2002-05-21  Richard Henderson  <rth@redhat.com>
7880         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7881         unspec names, not numbers.
7883 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7885         * doc/sourcebuild.texi: Mention snapshot-README and
7886         snapshot-index.html as needing updating for new front ends.
7888 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7890         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7891         disabling checking, and avoid multiple evaluation of RTX.
7893 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
7895         * bitmap.c (bitmap_find_bit): Return early if we have the correct
7896         element cached.
7898 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7900         * profile.c (gen_edge_profiler):  Set alias set before the memory is
7901         used.
7903 2002-05-20  David S. Miller  <davem@redhat.com>
7905         * cselib.c (max_value_regs): New.
7906         (cselib_lookup, cselib_invalidate_regno): Initialize it when
7907         adding new entries to the REG_VALUES table and we are dealing with
7908         a hard register.
7909         (clear_table): Initialize it.
7910         (cselib_invalidate_regno): Use it to determine which hard
7911         registers to scan when mode is not VOIDmode.
7913 2002-05-20  Duraid Madina   <duraid@fl.net.au>
7915         * tradcpp.c (fixup_newlines): Use old-style function header.
7917 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
7919         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7921 2002-05-20  H.J. Lu  (hjl@gnu.org)
7923         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7925         * config/mips/mips.h (DFMODE_NAN): Defined.
7926         (SFMODE_NAN): Likewise.
7928 2002-05-20  Dale Johannesen  <dalej@apple.com>
7930         * combine.c (cant_combine_insn_p):  Back out my
7931         previous patch.
7933 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
7935         * params.c: Fix formatting.
7936         * params.h: Likewise.
7937         * predict.c: Likewise.
7938         * prefix.c: Likewise.
7939         * print-rtl.c: Likewise.
7940         * print-tree.c: Likewise.
7941         * profile.c: Likewise.
7943 2002-05-20  H.J. Lu  (hjl@gnu.org)
7945         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7947 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
7949         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7950         switches straight on to the assembler, do not abbreviate them.
7951         * config/arm/elf.h (ASM_SPEC): As above.
7952         * config/arm/semi.h (ASM_SPEC): As above.
7953         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7954         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7955         -mcpu=xscale on to the assembler by default.
7956         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7958 2002-05-20  Richard Henderson  <rth@redhat.com>
7960         * cse.c (canon_hash): Reorder do_not_record test.  Always
7961         allow pic_offset_table_rtx.
7963 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
7965         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7966         (expand_binop): Ditto (3 times).
7968 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
7970         * Makefile.in (distclean): Remove QMTest stuff.
7971         (QMTEST_PATH): New variable.
7972         (QMTESTFLAGS): Likewise.
7973         (QMTESTRUNFLAGS): Likewise.
7974         (QMTEST): Likewise.
7975         (QMTEST_GPP_TESTS): Likewise.
7976         (QMTEST_DIR): Likewise.
7977         (QMTEST_DIR/context): New target.
7978         (qmtest-g++): Likeise.
7979         (qmtest-gui): Likewise.
7980         (QMTEST_DIR/gpp-expected.qmr): Likewise.
7982 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
7984         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7985         an altivec register if TARGET_ALTIVEC.
7987         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7988         to ALTIVEC_VECTOR_MODE.
7989         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7990         (rs6000_va_arg): Vectors may go in registers if they are not
7991         altivec vectors.
7993 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
7995         * protoize.c: Fix formatting.
7997 2002-05-19  Richard Henderson  <rth@redhat.com>
7999         * gensupport.c (init_include_reader): Merge into ...
8000         (process_include): ... here.  Simplify composite path creation.
8001         Plug memory leaks.  Fix file/line number tracking.  Do not
8002         process_define_cond_exec.  Return void.
8003         (process_rtx): Don't check process_include return value.
8005 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8007         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8008         fields.
8009         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8010         traversing basic block chain.
8011         (create_basic_block_structure, create_basic_block): Declaration changed.
8012         (link_block, unlink_block): Declare.
8013         * cfg.c (entry_exit_blocks): Initialize new fields.
8014         (link_block, unlink_block): New.
8015         (expunge_block_nocompact): Unlink basic block.
8016         (dump_flow_info): Print prev_bb/next_bb fields.
8017         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8018         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8019         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8020         * cfgrtl.c (create_basic_block_structure, create_basic_block,
8021         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8022         (verify_flow_info): Check that list agrees with numbering.
8024 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8026         * c-common.c (preprocessing_asm): New macro.
8027         * c-lex.h (builtin_define, builtin_assert): Use pfile.
8028 doc:
8029         * tm.texi: Update.
8030 config/alpha:
8031         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8032         (CPP_SPEC): Simplify.
8033         (TARGET_CPU_CPP_BUILTINS): Update.
8034         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8035         (CPP_SPEC): Simplify.
8036         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8037         (TARGET_OS_CPP_BUILTINS): Update.
8038         * osf.h (CPP_XFLOAT_SPEC): Kill.
8039         (TARGET_OS_CPP_BUILTINS): Update.
8040         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8041         * osf5.h (CPP_XFLOAT_SPEC): Kill.
8042         * vms.h (CPP_SUBTARGET_SPEC): Kill.
8043         (TARGET_OS_CPP_BUILTINS): Update.
8045 2002-05-19  Richard Henderson  <rth@redhat.com>
8047         * varasm.c (default_binds_local_p): Fix typo.
8049 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8051         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8052         CONST_INT operand to the correct mode after adding 1 to it.
8054 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
8056         * config.gcc (powerpc-wrs-windiss*): New target.
8058 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8060         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8061         (ashrdi3): Use it.
8063 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
8065         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8066         alphasort.
8067         * config.in: Regenerated.
8068         * configure: Regenerated.
8070 2002-05-19  Richard Henderson  <rth@redhat.com>
8072         * target-def.h (TARGET_BINDS_LOCAL_P): New.
8073         * target.h (struct gcc_target): Move boolean fields to the end.
8074         Add binds_local_p.
8075         * varasm.c (default_binds_local_p): New.
8076         * output.h: Declare it.
8078         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8079         * config/cris/cris.c (cris_encode_section_info): Likewise.
8080         * config/i386/i386.c (i386_encode_section_info): Likewise.
8081         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8082         * config/sh/sh.c (sh_encode_section_info): Likewise.
8084         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8085         (TARGET_BINDS_LOCAL_P): New.
8087 2002-05-19  Richard Henderson  <rth@redhat.com>
8089         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8090         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8091         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8093         * toplev.c (display_help): Kill -a -ax help.
8095         * config/1750a/1750a.h, config/alpha/alpha.h,
8096         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8097         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8098         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8099         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8101         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8102         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8104         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8105         (ix86_output_function_block_profiler): Kill.
8106         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8107         (m68hc11_function_block_profiler): Kill.
8108         * config/m68hc11/m68hc11-protos.h: Update.
8109         * config/m88k/m88k.c (output_block_profiler): Kill.
8110         (output_function_block_profiler): Kill.
8111         * config/m88k/m88k-protos.h: Update.
8113 2002-05-19  Richard Henderson  <rth@redhat.com>
8115         * system.h (STRIP_NAME_ENCODING): Poison it.
8116         * output.h (STRIP_NAME_ENCODING): Remove.
8117         (default_strip_name_encoding): Declare.
8118         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8119         * target.h (strip_name_encoding): New.
8120         * varasm.c (default_strip_name_encoding): New.
8122         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8123         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8124         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8125         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8126         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8127         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8128         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8129         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8130         config/v850/v850.h: Use the hook, not the macro.
8132         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8133         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8134         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8135         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8136         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8137         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8138         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8139         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8140         config/v850/v850.c, config/v850/v850.h:
8141         Move STRIP_NAME_ENCODING to out-of-line function and add
8142         TARGET_STRIP_NAME_ENCODING.
8144         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8145         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8146         with TARGET_STRIP_NAME_ENCODING referencing existing function;
8147         make function static.
8149         * xcoffout.c: Include target.h
8150         * Makefile.in (xcoffout.o): Update.
8152         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8153         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8154         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8155         reloc argument unused.
8156         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8158         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8159         STRIP_NAME_ENCODING docs.
8161 2002-05-19  Andreas Jaeger  <aj@suse.de>
8163         * gengenrtl.c: Add prototype for excluded_rtx.
8165         * real.h: Add prototype for exact_real_truncate.
8167 2002-05-18  Richard Henderson  <rth@redhat.com>
8169         * system.h (ENCODE_SECTION_INFO): Poison it.
8170         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8171         * target.h (encode_section_info): New.
8172         * varasm.c (make_decl_rtl, output_constant_def): Use it.
8173         * hooks.c (hook_tree_int_void): New.
8174         * hooks.h: Declare it.
8176         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8177         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8178         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8179         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8180         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8181         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8182         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8183         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8184         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8185         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8186         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8187         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8188         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8189         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8190         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8191         referencing existing function.  Make function static.
8193         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8194         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8195         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8196         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8197         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8198         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8199         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8200         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8201         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8202         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8203         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8204         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8205         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8206         Move ENCODE_SECTION_INFO to out-of-line function and add
8207         TARGET_ENCODE_SECTION_INFO.
8209         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8210         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8212         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8213         from SUBTARGET_*
8214         (switch_to_section): Replace in_rdata case with in_readonly_data.
8216         * config/h8300/h8300.c (h8300_encode_label): Make static.
8217         * config/h8300/h8300-protos.h: Update.
8219         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8220         from rs6000_encode_section_info; make static.
8221         (rs6000_xcoff_encode_section_info): New.
8223         * config/v850/v850.c (v850_encode_data_area): Make static.
8224         * config/v850/v850-protos.h: Update.
8226         * config/vax/vax.c: Include flags.h.
8227         (vms_select_section): Fix typo.
8229         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8230         ENCODE_SECTION_INFO docs.
8232 2002-05-18  Richard Henderson  <rth@redhat.com>
8234         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8235         REGISTER_TARGET_PRAGMAS.
8236         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8238         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8240 2002-05-18  Richard Henderson  <rth@redhat.com>
8242         * system.h (SELECT_RTX_SECTION): Poison.
8243         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8244         * target.h (select_rtx_section): New.
8245         * varasm.c (output_constant_pool): Use it.
8246         (default_select_rtx_section, default_elf_select_rtx_section): New.
8247         * output.h: Declare them.
8249         * config/darwin.h (SELECT_RTX_SECTION): Move ...
8250         * config/darwin.c (machopic_select_rtx_section): ... here.
8251         * config/darwin-protos.h: Update.
8253         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8254         * config/nextstep.c (machopic_select_rtx_section): ... here.
8255         (nextstep_select_section): Rename variable to avoid macro clash.
8256         * config/nextstep-protos.h: Update.
8258         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8259         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8260         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8261         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8262         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8263         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8264         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8265         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8266         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8267         (SELECT_RTX_SECTION): Remove.
8269         * config/darwin.h, config/elfos.h, config/nextstep.h,
8270         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8271         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8272         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8273         config/sparc/lynx.h, config/xtensa/xtensa.c
8274         (TARGET_ASM_SELECT_RTX_SECTION): New.
8276         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8277         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8278         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8279         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8280         (ia64_aix_select_rtx_section): New.
8281         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8282         redefining.
8283         * config/mips/mips.c (mips_select_rtx_section): Make static.
8284         Support ELF SHF_MERGE features.
8285         * config/mips/mips-protos.h: Update.
8286         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8287         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8288         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8289         make static, fall back to default_elf_select_rtx_section.
8290         * config/rs6000/rs6000-protos.h: Update.
8291         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8292         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8293         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8294         * config/romp/romp.c (romp_select_rtx_section): New.
8295         * config/s390/s390.c (s390_select_rtx_section): New.
8296         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
8297         declarations before target macro definition.
8298         (xtensa_emit_call): Use static buffer.
8299         (xtensa_select_rtx_section): New.
8300         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8301         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8302         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8304         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8305         SELECT_RTX_SECTION docs.
8307 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
8309         * i386.md (movsi/movdi): Fix template.
8310         (sse2 patterns): Set attributes consistently.
8312         * i386.md (pushqi2, ashrqi_*): Fix constraint.
8314 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
8316         * optabs.c (complex_part_zero_p): New.
8317         * (expand_cmplxdiv_straight): Use it.
8318         * (expand_cmplxdiv_wide): Ditto.
8319         * (expand_binop): Ditto.
8321 2002-05-18  Richard Henderson  <rth@redhat.com>
8323         * final.c (HAVE_READONLY_DATA_SECTION): New.
8324         (shorten_branches): Use it instead of ifdefs.
8325         * varasm.c (enum in_section): Add in_readonly_data.
8326         (text_section, data_section): Tidy.
8327         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8329         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8330         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8331         (READONLY_DATA_SECTION): Don't undef.
8333         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8334         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8335         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8337         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8338         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8339         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8340         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8342         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8343         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8344         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8345         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8346         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8347         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8348         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8349         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8350         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8352         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8353         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8354         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8355         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8356         config/pa/pa64-hpux.h, config/sparc/litecoff.h
8357         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8359         * config/elfos.h, config/netware.h, config/svr3.h,
8360         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8361         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8362         config/h8300/h8300.h, config/i386/i386-interix.h,
8363         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8364         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8366         * config/elfos.h, config/netware.h, config/svr3.h,
8367         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8368         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8369         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8370         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8372         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8373         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8374         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8375         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8376         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8377         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8378         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8379         config/rs6000/sysv4.h, config/v850/v850.h
8380         (EXTRA_SECTIONS): Remove in_const/in_rdata.
8381         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8383         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8384         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8385         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8386         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8387         * config/alpha/alpha.c (alpha_start_function): Likewise.
8388         (alpha_write_linkage): Likewise.
8389         * config/m32r/m32r.c (m32r_select_section): Likewise.
8390         * config/m88k/m88k.c (m88k_select_section): Likewise.
8391         * config/mips/mips.c (mips_select_rtx_section): Likewise.
8392         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8393         (rs6000_elf_select_section): Likewise.
8394         * config/v850/v850.c (v850_select_section): Likewise.
8396         * config/1750a/1750a.h, config/i860/sysv3.h
8397         (READONLY_DATA_SECTION_ASM_OP): New.
8398         READONLY_DATA_SECTION_ASM_OP.
8399         * config/i386/interix.c, config/i386/winnt.c
8400         (i386_pe_unique_section): Always use .rdata prefix.
8401         * config/pa/som.h (readonly_data): Always switch to read-only section.
8402         (READONLY_DATA_SECTION): Predicate on flag_pic.
8403         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8404         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8405         (READONLY_DATA_SECTION): Update.
8407 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
8409         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8410         is used without -Wformat.
8411         * c-common.h (warn_format_zero_length): Declare extern.
8412         * c-decl.c (warn_options): Add "format-zero-length".
8413         * c-format.c (warn_format_zero_length): Declare.
8414         (set_Wformat): Set warn_format_zero_length for -Wformat.
8415         (check_format_info): Only warn about zero-length formats if
8416         warn_format_zero_length is true.  Include the format type
8417         name in the warning message.
8418         * doc/invoke.texi: Document -Wformat-zero-length.
8419         * testsuite/gcc.dg/format/zero-length-1.c: New test.
8421 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
8423         * timevar.c: Fix formatting.
8424         * tlink.c: Likewise.
8425         * toplev.c: Likewise.
8426         * tree-dump.c: Likewise.
8427         * tree-inline.c: Likewise.
8429 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8431         * cppinit.c (cpp_post_options): If preprocessed, turn off
8432         traditional.  If traditional, turn off column numbers.
8433         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8434         * cpptrad.c (handle_newline): Update line_base.
8435         (skip_comment): Handle -Wcomment.
8437 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
8439         * cppinit.c (struct builtin): Remove unused fields.
8440         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8441         (operator_array): New - was second half of builtin_array.
8442         (init_builtins): Simplify loop over builtin_array/operator_array.
8444 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8446         * defaults.h (UNIQUE_SECTION): Remove.
8447         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8449 2002-05-17  Richard Henderson  <rth@redhat.com>
8451         * expr.c (init_expr_once): Don't use start/end_sequence.
8452         Use rtx_alloc instead of emit_insn.
8453         * toplev.c (lang_dependent_init): Run init_expr_once here ...
8454         (lang_independent_init): ... not here.
8456 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
8458         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8460 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8462         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
8463         for fixed registers, possibly used for global register variables.
8464         (initial_elimination_offset, avr_output_function_prologue,
8465         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
8467 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8469         * Makefile.in: Update for cpptrad.c.
8470         * cpphash.h (struct cpp_buffer): New members for buffer
8471         overlays.
8472         (struct cpp_reader): New members for traditional output.
8473         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8474         * cppinit.c (cpp_create_reader): Set trad_line.
8475         (cpp_destroy): Free trad_out_base if used.
8476         (cpp_read_main_file): Overlay an empty buffer if traditional.
8477         (cpp_finish_options): Don't do builtins.
8478         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8479         (cpp_handle_option): Handle it.
8480         * cpplex.c (continue_after_nul): New.
8481         (_cpp_lex_direct): Use handle_nul.
8482         * cpplib.h (struct cpp_options): New traditional option.
8483         * cpptrad.c: New file.
8485 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8487         * c-common.c (c_common_init_options): Use C89 for Objective-C,
8488         and set the options flag.
8489         * cppinit.c (lang_flags): Remove objc.
8490         (lang_defaults): Remove OBJC and OBJCXX.
8491         (set_lang): Update.
8492         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8493         (cpp_handle_option): Remove -+ and -lang-objc++.
8494         For ObjC, just set a flag.
8495         (print_help): Update.
8496         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8498 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8500         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8501         bootstrap with -mips3.
8503 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
8505         * final.c: Fix formatting.
8506         * fix-header.c: Likewise.
8507         * flow.c: Likewise.
8508         * fold-const.c: Likewise.
8509         * function.c: Likewise.
8511 2002-05-17  David S. Miller  <davem@redhat.com>
8513         PR c/6689, PR optimization/6615
8514         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8515         and make it a pointer to rtx.  Update comments.
8516         (update_equiv_regs): When scanning for equivalences, record
8517         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
8518         it while making the equiv replacements.
8520 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8522         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8524 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8526         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8527         when encoding visibility into SYMBOL_REF_FLAG.
8529 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
8531         * expr.c (force_operand): Fix reversed move.
8533 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
8535         * doc/install.texi (Testing): Mention two common DejaGnu warnings
8536         that can be ignored.
8538 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8540         * doc/install.texi (Final install): Recommend to install into a
8541         "clean" target directory.
8543 2002-05-17  Richard Henderson  <rth@redhat.com>
8545         * config/ia64/ia64.md: Use braced strings instead of quoted strings
8546         for code blocks.  Tidy whitespace.
8548 2002-05-17  Richard Henderson  <rth@redhat.com>
8550         * hooks.c (hook_tree_bool_false): New.
8551         * hooks.h: Declare it.
8552         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8553         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8554         * target.h (select_section, unique_section): New.
8555         (in_small_data_p): New.
8556         * varasm.c (resolve_unique_section): Use hooks instead of macros.
8557         (variable_section, output_constant_def_contents): Likewise.
8558         (default_select_section, default_unique_section): New.
8559         (categorize_decl_for_section, default_elf_select_section): New.
8560         * output.h: Declare them.
8562         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8563         (TARGET_ASM_SELECT_SECTION): New.
8564         (SELECT_SECTION): Move ...
8565         * config/darwin.c (machopic_select_section): ... here.
8566         * config/darwin-protos.h: Update.
8568         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8569         (SELECT_SECTION): Move ...
8570         * config/nextstep.c (nextstep_select_section): ... here.
8571         * config/nextstep-protos.h: Update.
8573         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8574         (TARGET_ASM_SELECT_SECTION): New.
8575         * config/svr3.h (SELECT_SECTION): Remove.
8577         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8578         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8579         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8580         (alpha_encode_section_info): Use it.
8581         * config/alpha/alpha-protos.h: Update.
8582         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8583         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8584         (TARGET_ASM_SELECT_SECTION): New.
8585         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8587         * config/arm/pe.h (UNIQUE_SECTION): Remove.
8588         (TARGET_ASM_UNIQUE_SECTION): New.
8590         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8591         (avr_unique_section): Rename from unique_section; make static.
8592         * config/avr/avr-protos.h: Update.
8593         * config/avr/avr.h (UNIQUE_SECTION): Remove.
8595         * config/c4x/c4x.h (SELECT_SECTION): Remove.
8597         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8598         (TARGET_ASM_UNIQUE_SECTION): New.
8599         * config/i386/i386-interix.h: Likewise.
8600         * config/i386/win32.h: Likewise.
8601         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8602         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8603         * config/i386/sco5.h (SELECT_SECTION): Remove.
8604         (TARGET_ASM_SELECT_SECTION): New.
8605         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8607         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8608         instead of SELECT_SECTION.
8609         * config/m68k/dpx2.h: Likewise.
8610         * config/rs6000/lynx.h: Likewise.
8612         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8613         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8614         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8615         (ia64_in_small_data_p): New.
8616         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
8617         (ia64_aix_select_section, ia64_aix_unique_section): New.
8618         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8619         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8621         * config/m32r/m32r.h (SELECT_SECTION): Remove.
8622         (TARGET_ASM_SELECT_SECTION): New.
8623         * config/m32r/m32r.c (m32r_select_section): Take align argument.
8624         * config/m32r/m32r-protos.h: Update.
8626         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8627         (SELECT_SECTION): Move ...
8628         * config/m88k/m88k.c (m88k_select_section): ... here.
8630         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8631         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8632         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8633         (mcore_unique_section): Make static.
8634         * config/mcore/mcore-protos.h: Update.
8636         * config/mips/elf.h (UNIQUE_SECTION): Remove.
8637         (TARGET_ASM_UNIQUE_SECTION): New.
8638         * config/mips/elf64.h: Likewise.
8639         * config/mips/iris6gld.h: Likewise.
8640         * config/mips/linux.h: Likewise.
8641         * config/mips/mips-protos.h: Update.
8642         * config/mips/mips.c (mips_select_section): Add align argument.
8643         * config/mips/mips.h (SELECT_SECTION): Remove.
8644         (TARGET_ASM_SELECT_SECTION): New.
8646         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8647         * config/mmix/mmix.c (mmix_select_section): Remove.
8648         (mmix_unique_section): Remove.
8649         * config/mmix/mmix-protos.h: Update.
8651         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8652         (SELECT_SECTION): Move ...
8653         * config/pa/pa.c (pa_select_section): ... here.
8654         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8656         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8657         from rs6000_select_section and make static.
8658         (rs6000_elf_unique_section): Similarly.
8659         (rs6000_xcoff_select_section): From xcoff.h.
8660         (rs6000_xcoff_unique_section): Likewise.
8661         * config/rs6000/rs6000-protos.h: Update.
8662         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8663         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8664         * config/rs6000/xcoff.h: Likewise.
8666         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8667         (SELECT_SECTION): Move ...
8668         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8670         * config/v850/v850.h (SELECT_SECTION): Move ...
8671         * config/v850/v850.c (v850_select_section): ... here.
8672         (TARGET_ASM_SELECT_SECTION): New.
8674         * config/vax/vms.h (SELECT_SECTION): Move ...
8675         * config/vax/vax.c (vms_select_section): ... here.
8676         (TARGET_ASM_SELECT_SECTION): New.
8678         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8679         for the target hooks.
8681 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
8683         * config/arm/arm.c (emit_multi_reg_push): Do not set
8684         RTX_FRAME_RELATED_P on the SEQUENCE.
8686 2002-05-16  Richard Henderson  <rth@redhat.com>
8688         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8689         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
8691 2002-05-16  Richard Henderson  <rth@redhat.com>
8693         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8695         * config/ia64/ia64.c (saveable_obstack): Do not declare.
8697 2002-05-16  Richard Henderson  <rth@redhat.com>
8699         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8700         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8701         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8702         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8703         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8704         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8705         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8706         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8707         Revert "Basic block renumbering removal", and two followup patches.
8709 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8711         * lcm.c (optimize_mode_switching): Revert previous change.
8713 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8715         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8716         with only extant block numbers.
8718 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8720         * lcm.c (optimize_mode_switching): Fix typo.
8722 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8724         * flow.c (calculate_global_regs_live): Queue blocks in program order.
8726 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8728         * doc/install.texi (Configuration): Document PWDCMD.
8730 2002-05-16  Dale Johannesen  <dalej@apple.com>
8732         * combine.c (cant_combine_insn_p):  Reenable combinations
8733         involving hard regs unless CLASS_LIKELY_SPILLED_P.
8735 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8737         * c-common.c (cb_register_builtins): Handle more built-ins
8738         here rather than in gcc.c specs.
8739         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8740         (cpp_options): Pass -O flags even when only preprocessing.
8741         * toplev.c (set_fast_math_flags): New prototype.
8742         (fast_math_flags_set_p): New.
8743         (set_no_fast_math_flags): Remove.
8744         (decode_f_option): Update.
8745         * toplev.h (set_fast_math_flags): Update.
8746         (fast_math_flags_set_p): New.
8747         (set_no_fast_math_flags): Remove.
8748 config:
8749         * c4x/c4x.c (c4x_override_options): Update.
8751 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
8753         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8754         Default-define here.
8755         (builtin_define_with_value): Can now wrap the expansion in
8756         quotation marks if such is wanted.
8757         (cb_register_builtins): Update calls to builtin_define_with_value.
8758         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8759         here.
8760         (c_common_init): Set options->stdc_0_in_system_headers.
8761         * c-lex.h: Update prototype of builtin_define_with_value.
8762         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8763         and REGISTER_PREFIX.
8765         * cppinit.c (VERS, ULP, C, X): Kill.
8766         (builtin_array): Remove entries for __VERSION__,
8767         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8768         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
8769         a constant.
8770         (init_builtins): Kill off a bunch of now-dead code.
8771         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8772         -fno-leading-underscore.
8773         (cpp_handle_option): Remove code to set user_label_prefix.
8774         (cpp_post_options): Likewise.
8776         * cpplib.h (struct cpp_options): Remove user_label_prefix.
8777         (stdc_0_in_system_headers): New.
8778         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8779         stdc_0_in_system_headers) too to decide the value of __STDC__.
8781         * tradcpp.c (user_label_prefix): Kill.
8782         (main): Remove code handling -f(no-)leading-underscore.
8783         (initialize_builtins): Don't define __REGISTER_PREFIX__
8784         or __USER_LABEL_PREFIX__.
8785         (install_value): Wrap compound statement in dummy loop so the
8786         macro works properly in an if statement.
8789 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
8791         * loop.h (struct loop_info): Add member has_prefetch.
8792         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8793         (prescan_loop): Initialize has_prefetch.
8794         (struct prefetch_info): Change prefetch_in_loop and
8795         prefetch_before_loop from bit fields to ints.
8796         (emit_prefetch_instructions): Several small fixes.
8797         (check_dbra_loop): Don't reverse loop that uses prefetch.
8799 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8801         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8802         * configure.in: Likewise.
8803         * fixinc/check.tpl: Likewise.
8804         * fixinc/fixinc.dgux: Likewise.
8805         * fixinc/fixinc.svr4: Likewise.
8806         * fixinc/fixinc.winnt: Likewise.
8807         * fixinc/fixincl.sh: Likewise.
8808         * fixproto: Likewise.
8809         * configure: Regenerate.
8811 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8813         Basic block renumbering removal:
8814         * basic_block.h (struct basic_block_def): Renamed index to sindex,
8815         added prev_bb and next_bb fields.
8816         (n_basic_blocks): Renamed to num_basic_blocks.
8817         (last_basic_block): New, index of last basic block.
8818         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8819         traversing basic block chain.
8820         (BLOCK_NUM): index -> sindex.
8821         (create_basic_block_structure, create_basic_block): Declaration changed.
8822         (debug_num2bb): Declare.
8823         (expunge_block_nocompact): Declaration removed.
8824         (link_block, unlink_block, compact_blocks): Declare.
8825         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8826         * cfg.c (entry_exit_blocks): Initialize new fields.
8827         (clear_edges, alloc_block, expunge_block, cached_make_edge,
8828         redirect_edge_pred, dump_flow_info, dump_edge_info,
8829         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8830         free_aux_for_edges): Modified.
8831         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8832         (expunge_block_nocompact): Removed.
8833         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8834         find_unreachable_blocks, create_edge_list, print_edge_list,
8835         verify_edge_list, flow_edge_list_print, remove_fake_successors,
8836         remove_fake_edges, flow_reverse_top_sort_order_compute,
8837         flow_depth_first_order_compute, flow_preorder_transversal_compute,
8838         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8839         flow_dfs_compute_reverse_execute): Modified.
8840         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8841         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8842         Modified.
8843         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8844         merge_blocks_move_predecessor_nojumps,
8845         merge_blocks_move_successor_nojumps, merge_blocks,
8846         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8847         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8848         * cfglayout.c (skip_insns_after_block, label_for_bb,
8849         record_effective_endpoints, scope_to_insns_finalize,
8850         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8851         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8852         cfg_layout_duplicate_bb): Modified.
8853         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8854         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8855         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8856         flow_loops_find, flow_loop_outside_edge_p): Modified.
8857         * cfgrtl.c (create_basic_block_structure, create_basic_block,
8858         flow_delete_block, compute_bb_for_insn, split_block,
8859         try_redirect_by_replacing_jump, redirect_edge_and_branch,
8860         force_nonfallthru_and_redirect, tidy_fallthru_edge,
8861         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8862         commit_edge_insertions, commit_edge_insertions_watch_calls,
8863         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8864         purge_all_dead_edges): Modified.
8865         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8866         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8867         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8868         Modified.
8869         * conflict.c (conflict_graph_compute): Modified.
8870         * df.c (FOR_ALL_BBS): Removed.
8871         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8872         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8873         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8874         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8875         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8876         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8877         * final.c (compute_alignments, final_scan_insn): Modified.
8878         * flow.c (verify_local_live_at_start, update_life_info,
8879         update_life_info_in_dirty_blocks, free_basic_block_vars,
8880         delete_noop_moves, calculate_global_regs_live,
8881         initialize_uninitialized_subregs, allocate_bb_life_data,
8882         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8883         mark_used_reg, count_or_remove_death_notes): Modified.
8884         * function.c (thread_prologue_and_epilogue_insns): Modified.
8885         * gcse.c (struct null_pointer_info): Change typo of current_block
8886         to basic_block.
8887         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8888         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8889         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8890         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8891         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8892         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8893         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8894         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8895         pre_delete, one_pre_gcse_pass, compute_transpout,
8896         invalidate_nonnull_info, delete_null_pointer_checks_1,
8897         free_code_hoist_mem, compute_code_hoist_vbeinout,
8898         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8899         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8900         compute_store_table, build_store_vectors, insert_insn_start_bb,
8901         insert_store, replace_store_insn, free_store_memory, store_motion):
8902         Modified.
8903         * global.c (global_alloc, global_conflicts, mark_elimination,
8904         build_insn_chain): Modified.
8905         * graph.c (print_rtl_graph_with_bb): Modified.
8906         * haifa-sched.c (sched_init): Modified.
8907         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8908         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8909         if_convert): Modified.
8910         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8911         compute_insert_delete, pre_edge_lcm, compute_available,
8912         compute_farthest, compute_nearerout, compute_rev_insert_delete,
8913         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8914         Modified.
8915         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8916         * loop.c (loop_dump_aux): Modified.
8917         * predict.c (combine_predictions_for_insn, estimate_probability,
8918         last_basic_block_p, process_note_prediction, process_note_predictions,
8919         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8920         expensive_function_p, estimate_bb_frequencies,
8921         compute_function_frequency): Modified.
8922         * print-rtl.c (print_rtx): Modified.
8923         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8924         get_exec_counts, compute_branch_probabilities, compute_checksum,
8925         branch_prob, find_spanning_tree): Modified.
8926         * recog.c (split_all_insns, peephole2_optimize): Modified.
8927         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8928         convert_regs_1, convert_regs_2, convert_regs): Modified.
8929         * regclass.c (scan_one_insn, regclass): Modified.
8930         * regmove.c (mark_flags_life_zones, regmove_optimize,
8931         combine_stack_adjustments): Modified.
8932         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8933         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8934         * reorg.c (dbr_schedule): Modified.
8935         * resource.c (find_basic_block, init_resource_info): Modified.
8936         * sbitmap.c (sbitmap_intersection_of_succs,
8937         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8938         sbitmap_union_of_preds): Modified.
8939         * sched-deps.c (init_dependency_caches): Modified.
8940         * sched-ebb.c (schedule_ebbs): Modified.
8941         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8942         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8943         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8944         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8945         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8946         ssa_const_prop): Modified.
8947         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8948         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8949         * ssa.c (remove_phi_alternative, find_evaluations,
8950         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8951         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8952         make_regs_equivalent_over_bad_edges,
8953         make_equivalent_phi_alternatives_equival,
8954         compute_conservative_reg_partition,
8955         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8956         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8957         Modified.
8959 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
8961         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8963 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
8965         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8966         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8967         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8968         calling CONSTANT_POOL_ADDRESS_P.
8969         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8970         to decide whether to define __arm__ or __thumb.
8971         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
8972         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8974 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8976         * config/arc/arc.h (CPP_PREDEFINES): Remove.
8977         (CPP_SPEC): Update.
8978         (TARGET_CPU_CPP_BUILTINS): New.
8980 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8982         * cpphash.h (cpp_macro): Move here, and make expansion a union.
8983         * cppmacro.c (cpp_macro): Remove.
8984         (enter_macro_context, replace_args, warn_of_redefinition,
8985         _cpp_create_definition, cpp_macro_definition): Update.
8987 2002-05-16  Jason Merrill  <jason@redhat.com>
8989         * config/mips/mips.c (mips_output_external): Don't do sdata
8990         optimization for a variable with DECL_COMDAT set.
8992 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
8994         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8995         Cleanups for accepting modifiers on pointers.
8996         Fix predicate typos.
8997         Allow long pointers as well as int pointers.
8999 2002-05-15  Richard Henderson  <rth@redhat.com>
9001         * varasm.c (merge_weak): Remove special case for extern and common.
9003 2002-05-15  Matt Hiller  <hiller@redhat.com>
9005         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9006         XFAILing.
9007         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9008         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9009         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9010         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9011         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9012         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9014 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
9016         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9018 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
9020         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9021         ("altivec_mfvscr"): Read from VSCR.
9023         Add vscr sets for the following insns: altivec_vctuxs,
9024         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9025         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9026         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9027         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9028         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9029         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9030         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9031         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9032         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9033         altivec_vsum2sws, altivec_vsumsws.
9035         * config/rs6000/rs6000.h: Add VSCR fixed register.
9036         (CALL_REALLY_USED_REGISTERS): Add vscr.
9037         (CALL_USED_REGISTERS): Same.
9038         (FIXED_REGISTERS): Same.
9039         (REG_ALLOC_ORDER): Same.
9040         (reg_class): Add VSCR_REGS.
9041         (REG_CLASS_NAMES): Same.
9042         (REG_CLASS_CONTENTS): Same.
9043         (VSCR_REGNO): New.
9044         (REGISTER_NAMES): Add vscr.
9045         (DEBUG_REGISTER_NAMES): Same.
9046         (ADDITIONAL_REGISTER_NAMES): Same.
9047         (FIRST_PSEUDO_REGISTER): Increment.
9048         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9050 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
9052         * fold-const.c (fold): Fix a typo.
9054 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
9056         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9057         comparison against the highest or lowest integer value before
9058         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9059         transformation and that of an unsigned comparison against 0
9060         right after.
9062 2002-05-15  Richard Henderson  <rth@redhat.com>
9064         * varasm.c (merge_weak): Error for any weakening after definition.
9065         Adjust weakening after use warning to catch more cases.
9066         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9067         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9069 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
9071         * invoke.texi (-malign-double): Re-add lost warning.
9073         * i386-protos.h (x86_output_mi_thunk): Declare.
9074         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9075         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9077         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9078         when flag_asynchronous_unwind_tables is set.
9080         * flags.h (flag_reorder_functions): Declare.
9081         * function.c (prepare_function_start): Initialize frequnecy.
9082         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9083         * Makefile.in (predict.o): Add dependency on target.h and params.h
9084         * defaults.h (HOT_TEXT_SECTION_NAME,
9085         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9086         * predict.c (choose_function_section): New function.
9087         (estimate_bb_frequencies): Use it.
9088         * toplev.c (flag_reorder_functions): New global variable.
9089         (lang_independent_options): New.
9090         (parse_options_and_default_flags): Set.
9091         * varasm.c (assemble_start_function): Bypass functdion alignment
9092         for never executed functions.
9093         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9094         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9095         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9096         Document.
9098         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
9100         * predict.c: Inlude profile.h
9101         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9102         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9103         Use the information about maximal counter in the program.
9105         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
9107         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9108         probably_never_executed_bb_p): New functions.
9109         * cfgcleanup.c (outgoing_edges_match): Use them.
9110         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9111         (maybe_hot_bb_p, probably_cold_bb_p,
9112         probably_never_executed_bb_p): New functions.
9114         * function.h (function): Add new field function_frequency.
9115         * predict.c (compute_function_frequency): New function.
9116         (estimate_probability): Call it.
9118 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
9120         PR optimization/5172, optimization/5200
9121         * gcse.c (gcse_main): Disable store_motion.
9123 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
9125         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9126         (c_common_nodes_and_builtins): Use it.
9127         (builtin_define_with_value): New function.
9128         (cb_register_builtins): Define __SIZE_TYPE__,
9129         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9130         using builtin_define_with_value.  Use consistent notation when
9131         defining __GXX_WEAK__.
9132         (WCHAR_TYPE_SIZE): Don't redefine.
9133         (combine_strings): Don't use WCHAR_TYPE_SIZE.
9135         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9136         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9137         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9138         * tradcpp.c (initialize_builtins): Likewise.
9139         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9141         * c-lex.h (builtin_define_with_value): Prototype.
9142         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9143         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9144         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9146         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9147         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9148         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9149         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9150         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9151         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9152         config/sparc/sol2-bi.h, config/sparc/sparc.h:
9153         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
9154         to __SIZE_TYPE__ etc from all spec strings. When this makes
9155         extra specs empty, delete them.
9157 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9159         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9160         for PA8000 or generating dwarf2 call frame information.
9161         (output_call): Remove DO_FRAME_NOTES check from return pointer
9162         optimization.
9163         (following_call): Return 0 when scheduling for PA8000 or generating
9164         dwarf2 call frame information.  Revise comment.
9166 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9168 config/alpha:
9169         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9170         and __IEEE_FP_INEXACT as appropriate.
9171         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9172         (CPP_SPEC): Remove ieee defines.
9173         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9175 2002-05-14  Richard Henderson  <rth@redhat.com>
9177         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9178         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9180 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9182         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9183         (CPP_SPEC): Update.
9184         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9185         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9186         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9187         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9188         (EXTRA_SPECS): Update.
9189         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9190         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9191         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9192         define TARGET_OS_CPP_BUILTINS if necessary.
9194 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9196         * gcc.c (cpp_options): Must pass -m* and -f* options
9197         to the front end even when only preprocessing.
9198         (cc1_options): Remove redundant -lang-c.
9199         * tradcpp.c (main): Ignore -m options.
9200 objc:
9201         * lang-specs.h: Similarly.
9203 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
9205         * genautomata.c (transform_3): Add code for transformation
9206         `(A,B,...)+C -> A+C,B,...'.
9208 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
9210         * final.c (end_final): Do not output profile_arcs constructor, when
9211         no functions are instrumented.
9213 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
9215         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9217 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9219         * doc/install.texi: Remove special markup originally required for
9220         HTML generation with texi2html.
9222 2002-05-14  Andreas Schwab  <schwab@suse.de>
9224         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9225         SELECT_SECTION.
9226         (UNIQUE_SECTION): Define to get small data correctly.
9228         * varasm.c (resolve_unique_section): Add third parameter
9229         flag_function_or_data_sections and use it instead of
9230         flag_function_sections.
9231         (assemble_start_function): Pass flag_function_sections.
9232         (asm_emit_uninitialised): Pass flag_data_sections.
9233         (assemble_variable): Likewise.
9235 2002-05-14  Richard Henderson  <rth@redhat.com>
9237         * config/i386/i386.md: Use define_constants for unspec numbers.
9238         * config/i386/i386.c: Likewise.
9240 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9242         * doc/contrib.texi: Update my entry.
9244 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
9246         * fixinc/inclhack.def (winidss_valist): Limit applicability.
9247         * fixinc/fixincl.x: Regenerated.
9248         * fixinc/tests/base/math.h: Update.
9249         * fixinc/tests/base/testing.h: Likewise.
9251 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
9253         * genattr.c (gen_attr): Don't emit a comma after the last
9254         enumerator.
9256 2002-05-13  Richard Henderson  <rth@redhat.com>
9258         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9259         by non-local gotos.
9260         * recog.c (peephole2_optimize): Likewise.
9262 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
9264         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9265         input to O_BINARY.
9267 2002-05-13  Jeffrey A Law  (law@redhat.com)
9269         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9270         Update prototype and callers.
9271         (propagate_one_insn): Stack pointer adjustments kill MEMs on
9272         the mem_set_list which reference the stack pointer, as do
9273         calls to constant functions as they may clobber outgoing
9274         argument space.
9276         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9278         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9279         (ia32_multipass_dfa_lookahead): New function.
9281 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9283         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9284         (translate_options): Remove 'V'.
9285         (process_command): Similarly.
9286 doc:
9287         * invoke.texi: Remove documentation of 'V'.
9289 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
9291         * config/s390/linux.h: Revert 2002-04-22 changes.
9293 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
9295         * config/fr30/fr30.md: Only allow splits of immediate loads
9296         if the destination is a register.
9298 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9300         * Makefile.in (c-common.o, cppinit.o): Update.
9301         * c-common.c: Include except.h.
9302         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9303         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9304         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9305         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9306         CPP_PREDEFINES): Handle here.
9307 config:
9308         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9309         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9310         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9311         TARGET_OS_CPP_BUILTINS.
9312         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9313         (CPP_SPEC, EXTRA_SPECS): Update.
9314         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9315         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9316         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9317         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9318         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9319 doc:
9320         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9321         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9323 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9325         * emit-rtl.c (global_rtl): Update comment.
9326         (const_double_htab, const_double_htab_hash,
9327         const_double_htab_hash, lookup_const_double): New.
9328         (const_int_htab_hash, const_int_htab_eq): Remove const
9329         qualifiers, which cause tons of warnings with RTL checking on.
9330         (gen_rtx_CONST_DOUBLE): Deleted.
9331         (const_double_from_real_value): New function - bears some
9332         resemblance to the former immed_real_const_1.
9333         (immed_double_const): Moved here from varasm.c and
9334         simplified.
9335         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9336         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9337         (gen_rtx): Use immed_double_const.
9338         (init_emit_once): Initialize the const_double_htab.  Use
9339         REAL_VALUE_FROM_INT where possible.  Can now use
9340         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9341         * varasm.c (struct varasm_status): Remove x_const_double_chain.
9342         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9343         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9344         (init_varasm_status, mark_varasm_status): Don't touch
9345         x_const_double_chain.
9347         * output.h: Delete prototype for clear_const_double_mem.
9348         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
9349         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
9350         const_double_from_real_value, not immed_real_const_1, and use
9351         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
9352         CONST_DOUBLE_ATOF.
9353         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9354         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9355         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9356         (gen_rtx_REG): Second arg is unsigned.
9358         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9359         (excluded_rtx): New, return true for CONST_DOUBLE.
9360         (genmacro): Write nothing for excluded codes.
9361         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9362         * expr.c (expand_expr): Likewise.
9363         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9364         CONST_DOUBLE_CHAIN.
9365         * toplev.c (rest_of_compilation): Don't call
9366         clear_const_double_mem.
9368         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9369         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9370         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9371         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9372         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9373         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9374         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9375         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9377 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9379         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9381 2002-05-12  Tom Tromey  <tromey@redhat.com>
9383         * tree.h (copy_node): Don't mention TREE_PERMANENT.
9385 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9387         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9388         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
9389         * gensupport.h: Prototype new routines.
9390         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
9391         use of printf.
9392         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9393         (next_comma_elt): Use scan_comma_elt.
9395         * config/i386/i386.md: Use new attribute notation to break up
9396         long lines in define_attr forms.
9398 2002-05-12  Richard Henderson  <rth@redhat.com>
9400         * expr.c (compress_float_constant): New.
9401         (emit_move_insn): Use it.
9402         (float_extend_from_mem): New.
9403         (init_expr_once): Initialize it.
9404         * real.c (exact_real_truncate): New.
9406         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9407         dropped into memory; penalize for size.
9408         (RTX_COSTS): FLOAT_EXTEND is free.
9409         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9410         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9412 2002-05-12  Richard Henderson  <rth@redhat.com>
9414         * profile.h (profile_info): Add missing extern to declaration.
9415         * profile.c (profile_info): Define it.
9417 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9419         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9420         used for DImode and TImode.
9422 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9424         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9425         fake a newline.
9427 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
9429         * config/rs6000/rs6000.c (rs6000_default_long_calls,
9430         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9431         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9432         (rs6000_override_options): Handle -m(no-)longcall.
9433         (init_cumulative_args, output_mi_thunk): Check for both
9434         longcall and shortcall attributes on the function.
9435         (rs6000_attribute_table): Add "shortcall".
9436         (rs6000_handle_longcall_attribute): Update comment.
9437         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9438         altivec_expand_ternop_builtin): Add default clauses to switches
9439         to silence warnings.
9441         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9442         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
9443         (TARGET_OPTIONS): Add longcall and no-longcall.
9445         * config/rs6000/rs6000.md (call_nonlocal_sysv,
9446         call_value_nonlocal_sysv): Split by alternatives.  One pair
9447         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9448         the call cookie.  The other pair accepts only LR/CTR and has
9449         no restriction.
9451         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9452         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9453         tmake_file.
9454         * config/rs6000/rs6000-c.c: New file.
9455         * config/rs6000/t-rs6000-c-rule: New file.
9456         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9457         Prototype rs6000_pragma_longcall.
9459         * doc/extend.texi: Document shortcall attribute.
9460         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9462 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9464         * reorg.c (dbr_schedule): Remove unnecessary test.
9466 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9468         * i386.md (testsi to testqi spliters): New.
9470         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
9472         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9474         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
9476         * basic-block.h: New flag EDGE_CAN_FALLTHRU
9477         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9478         that can be made fallthru.
9480         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
9482         * cfglayout.c (cleanup_unconditional_jumps): New static function.
9483         (cfg_layout_initialize): Use it.
9485 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9487         * config/avr/avr.c (avr_mcu_types): Update supported devices.
9488         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9489         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9491 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
9493         * dbxout.c: Fix formatting.
9494         * dependence.c: Likewise.
9495         * df.c: Likewise.
9496         * diagnostic.c: Likewise.
9497         * doloop.c: Likewise.
9498         * dominance.c: Likewise.
9499         * doschk.c: Likewise.
9500         * dwarf2asm.c: Likewise.
9501         * dwarf2out.c: Likewise.
9502         * dwarfout.c: Likewise.
9504 2002-05-10  Richard Henderson  <rth@redhat.com>
9506         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
9507         Convert integers constants as needed.  Replace "nwords" field with
9508         "sizeof_bb".
9509         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9510         * function.h: Fix typo in comment.
9511         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9513 2002-05-10  Roger Sayle  <roger@eyesopen.com>
9515         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9516         into the equivalent (signed char)c > 0.
9518 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
9520         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9521         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9522         (struct prefetch_info): Fix spelling of member bytes_accessed.
9523         (emit_prefetch_instructions): Make dump messages more regular;
9524         restructure code to add more dump messages; use new macros for
9525         heuristics. (There are no code generation changes in any of this).
9527 2002-05-10  David S. Miller  <davem@redhat.com>
9529         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9530         (struct rtx_def): Update unchanging flag comment.
9531         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9532         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9533         to be handled to INSN too.
9534         (dbr_schedule): Likewise.
9535         * resource.c (next_insn_no_annul): Likewise.
9537         * cse.c (rtx_cost): Remove multiplication by power of 2 special
9538         casing.
9540 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9542         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9543         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9544         (possibly) work around broken /bin/sh.
9546 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9548         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9549         . as N64/N32 libgcc_s.so subdirs.
9551 2002-05-10  David S. Miller  <davem@redhat.com>
9553         * config/sparc/sparc.md: Use define_constants for unspec numbers.
9555         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9556         more accurately.
9557         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9558         comment.
9559         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9560         * doc/rtl.texi: Document these macros more accurately.
9561         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9562         JUMP_INSNs and CALL_INSNs.
9563         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9564         or INSN_FROM_TARGET_P if the code is appropriate.
9566 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9568         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9569         before using SYMBOL_REF_FLAG (addr).
9571         * config/avr/avr-protos.h (avr_io_address_p): Declare.
9572         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9573         Make non-static.  Update all callers.
9574         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9575         New insns to clear/set/test a single bit in I/O address space.
9577 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9579         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9581 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9583         * Makefile.in: Update.
9584         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9585         builtin_define_std): New.
9586         (c_common_init): Register CPP builtins callback.
9587         * c-common.h (flag_iso, flag_undef): New.
9588         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9589         * c-lex.c: Don't include target.h.
9590         (cb_register_builtins): Move to c-common.c.
9591         (init_c_lex): Don't register hook here.
9592         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9593         (cpp_define, cpp_assert): Remove.
9594         * gcc.c (cc1_options): Pass -undef to front end.
9595         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9596         (TARGET_INITIALIZER): Update.
9597         * target.h (struct cpp_reader): Don't predeclare.
9598         (struct gcc_target): Remove cpp builtin hook.
9599         * tree.c (default_register_cpp_builtins): Remove.
9600 doc:
9601         * tm.texi: Update.
9603 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9605         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9607 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9609         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9610         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9612 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9614         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9615         * config/sparc/libgcc-sparc-glibc.ver: New file.
9616         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9617         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9619 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9621         PR target/6429
9622         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9623         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9624         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9625         base multilibs.
9626         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9627         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9628         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9629         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9631 2002-05-09  Richard Henderson  <rth@redhat.com>
9633         * config/ia64/ia64.md: Use define_constants for unspec numbers.
9634         * config/ia64/ia64.c: Likewise.
9636 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
9638         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9639         (save_restore_insns): Likewise.
9640         (mips_expand_prologue, mips_expand_epilogue): Update callers.
9641         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9643 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
9645         * athlon.md, k6.md, pentium.md, ppro.md): New files.
9646         * i386.md: Move scheduling information into new files.
9648         * i386.md (type attribute): Add "rotate" for rotate insns.
9649         (rotate insns): Set type to "rotate".
9650         (various attributes and function units): Treat rotate like shift.
9651         (pent_pair attribute): Only rotates by one bit position are
9652         pairable.
9653         (sbb insns): Explicitly set pent_pair attribute on a couple
9654         that were missing it.
9656 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9658         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9659         make sure that buffer starts on odd word address.
9660         (sh_va_arg): Skip odd fp registers when reading a double precision
9661         value.
9663 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9665         * tree.h (preserve_data, object_permanent_p, type_precision):
9666         Remove.
9668 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9670         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9671         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9672 doc:
9673         * cpp.texi: Update for removal of obsolete features.
9675 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
9676                           Jeffrey A Law  (law@redhat.com)
9678         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
9679         the DFA interface for Pentium processors.
9680         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9681         (attr_pent_pair, ix86_pent_find_pair): Remove.
9682         (ix86_sched_reorder_pentium): Remove.
9683         (ix86_sched_reorder): Remove reordering for Pentium.
9684         * i386.md (Pentium scheduling): Rewrite using DFA description.
9686 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
9688         * cfganal.c (can_fallthru): Fix fast path.
9689         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9690         with edges to the next block.
9692 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
9693                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
9695         * final.c (end_final): Use C trees to output data structures for profiling.
9697         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9698         (profile.o): New dependency profile.h
9699         (final.o): New dependency profile.h
9700         * profile.h: New file. New global structure profile_info.
9701         * final.h (count_edges_instrumented_now): Declare.
9702         (current_function_cfg_checksum): Declare.
9703         (function_list): New structure.
9704         (functions_head, functions_tail): New static variables.
9705         (end_final): Emits more data, removed some -ax stuff.
9706         (final): Stores function names and chcksums.
9707         * gcov-io.h (__write_gcov_string): New function.
9708         (__read_gcov_string): New function.
9709         * gcov.c (read_profile): New function.
9710         (create_program_flow_graph): Uses read_profile instead of reading
9711         da_file.
9712         (read_files): Removed da_file checking, it's done by read_profile now.
9713         * libgcc2.c (bb_function_info): New structure.
9714         (bb): New field in structure, removed some -ax stuff.
9715         (__bb_exit_func): Changed structure of da_file.
9716         * profile.c (count_edges_instrumented_now): New global variable.
9717         (current_function_cfg_checksum): New global variable.
9718         (max_counter_in_program): New global variable.
9719         (get_exec_counts): New function.
9720         (compute_checksum): New function.
9721         (instrument_edges): Sets count_edges_instrumented_now.
9722         (compute_branch_probabilities): Uses get_exec_counts instead of
9723         reading da_file.
9724         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9725         (init_branch_prob): Removed da_file checking, done in get_exec_counts
9726         now.
9727         (end_branch_prob): Removed da_file checking, done in get_exec_counts
9728         now.
9729         * gcov.texi: Updated information about gcov file format.
9731 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
9733         * sbitmap.c: Fix formatting.
9734         * scan.c: Likewise.
9735         * scan-decls.c: Likewise.
9736         * sched-deps.c: Likewise.
9737         * sched-ebb.c: Likewise.
9738         * sched-rgn.c: Likewise.
9739         * sched-vis.c: Likewise.
9740         * sdbout.c: Likewise.
9741         * sibcall.c: Likewise.
9742         * simplify-rtx.c: Likewise.
9743         * ssa.c: Likewise.
9744         * ssa-ccp.c: Likewise.
9745         * ssa-dce.c: Likewise.
9746         * stmt.c: Likewise.
9747         * stor-layout.c: Likewise.
9748         * stringpool.c: Likewise.
9750 2002-05-09  David S. Miller  <davem@redhat.com>
9752         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9754 2002-05-07  David S. Miller  <davem@redhat.com>
9756         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9757         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9758         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9759         library implementation clobbers the output before the inputs
9760         are fully consumed, use stack temporary for the output.
9762 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
9764         * config/netbsd.h (CPP_SPEC): Remove.
9765         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9766         * config/i386/netbsd.h (CPP_SPEC): Define.
9767         * config/ns32k/netbsd.h (CPP_SPEC): Define.
9768         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9769         * config/sparc/netbsd.h (CPP_SPEC): Define.
9770         * config/vax/netbsd.h (CPP_SPEC): Define.
9772 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
9774         * read-rtl.c: Fix formatting.
9775         * real.c: Likewise.
9776         * recog.c: Likewise.
9777         * regclass.c: Likewise.
9778         * regmove.c: Likewise.
9779         * reg-stack.c: Likewise.
9780         * reload1.c: Likewise.
9781         * reload.c: Likewise.
9782         * resource.c: Likewise.
9783         * rtlanal.c: Likewise.
9784         * rtl.c: Likewise.
9785         * rtl-error.c: Likewise.
9787 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9789         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9790         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9792 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
9794         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9795         use __SSE2__ macro instead.
9796         * config/i386/xmmintrin.h: Likewise.
9798 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
9800         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9801         and use it in all invocations of these macros.  Clean up comments.
9802         * rtl.c (rtl_check_failed_flag): Add an argument for the name
9803         of the flag access macro whose check failed.
9804         * doc/rtl.texi (Flags): Document additional flag uses.
9806 2002-05-08  Robert Spier <rspier@pobox.com>
9807             Neil Booth  <neil@daikokuya.demon.co.uk>
9809         PR preprocessor/6521
9810         * cppfiles.c (handle_missing_header): Don't do anything
9811         different for <> includes.
9812 doc:
9813         * cppopts.texi: Update documentation for -MG.
9815 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9817         * cpplex.c (cpp_interpret_charconst): Truncate as well as
9818         sign-extend.
9819 doc:
9820         * cpp.texi: Clarify multichar charconst valuation.
9822 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9824         * doc/invoke.texi: Document -mwindiss option.
9826 2002-05-08  Jason Merrill  <jason@redhat.com>
9828         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9830         * dwarf2out.c (gen_type_die): Abort on broken recursion.
9832         PR c++/6381
9833         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9834         REAL_CST.
9836 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
9838         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9839         little-endian multilibs to override arm/thumb multilibs.
9840         Do not build hardware floating point multilibs, nor apcs-26
9841         multilibs for the Thumb.
9843 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9845         PR c/6569.
9846         * varasm.c (mark_weak): New function.
9847         (merge_weak): Use it.  Do not call declare_weak.
9848         (declare_weak): Use merge_weak.
9850 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
9852         * cse.c (dead_libcall_p): Update counts.
9853         (delete_trivially_dead_insns): Update call of dead_libcall_p.
9855 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9857         * cfglayout.c (function_tail_eff_head): Rename to ...
9858         (function_footer): ... this one.
9859         (unlink_insn_chain): New functions.
9860         (label_for_bb): Only call block_label and emit debug message.
9861         (record_effective_endpoints): Actually unlink the headers and footers.
9862         (fixup_reorder_cahin): Re-insert the unlinked sequences.
9863         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9864         * cfglayout.h (struct reorder_block_def): New fields footer/header;
9865         remove eff_head/eff_end.
9866         * rtl.h (set_first_insn): Declare.
9867         * emit-rtl.c (set_first_insn): New function.
9869         * cfglayout.c (fixup_reorder_chain): Dump duplicated
9870         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9871         cfg_layout_duplicate_bb): New global function.
9872         (duplicate_insn_chain): New static function.
9873         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9874         cfg_layout_duplicate_bb): Declare.
9875         (struct reorder_block_def): Add "original" field.
9876         * emit-rtl.c (emit_copy_of_insn_after): New function.
9877         * rtl.h (emit_copy_of_insn_after): Declare.
9879         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9880         (fixup_reorder_chain): properly handle edges to exit block.
9882 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9883                                Jan Hubicka  <jh@suse.cz>
9885         * basic-block.h (note_prediction_to_br_prob): declare.
9886         * c-semantics.c: Inlucde predit.h
9887         (expand_stmt): predict GOTO_STMT as not taken.
9888         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9889         (cleanup_cfg): Do not free tail_recursion_list.
9890         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9891         (flow_delete_block): Kill predictions past end of basic block.
9892         * output.h (delete_unreachable_blocks): Declare.
9893         * predict.c (predicted_by_p, process_note_predictions,
9894         process_note_prediction, last_block_p): New function.
9895         (estimate_probability): Bypass loop on PRED_CONTINUE;
9896         do not handle noreturn heuristics; kill PRED_RETURN; add
9897         PRED_EARLY_RETURN.
9898         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9899         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9900         * predict.h (IS_TAKEN): New constant.
9901         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9902         * rtl.c (NOTE_INSN_PREDICTION): New.
9903         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9904         New macro.
9905         (insn_note): add NOTE_INSN_PREDICTION.
9906         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9907         CFG; free tail_recursion_label_list.
9908         * stmt.c: Include predict.h;
9909         (return_prediction): New.
9910         (expand_value_return): Use it.
9911         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9913 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
9915         * config/mips/mips.md: Name the unspecs with define_constant.
9916         (*HILO_delay): Rename to 'hilo_delay' (no star).
9917         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9918         (reload_outdi, reload_outsi): Likewise.
9920 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
9922         * toplev.c: Fix formatting.
9924 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
9926         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9927         * configure.in (ac_rtlflag_checking): New.
9928         * doc/install.texi (--enable-checking): Document RTL flag checking.
9930 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9932         * c-common.c (c_common_init): Set options->unsigned_wchar.
9933         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9934         group target dependencies.
9935         (init_builtins, cpp_handle_option): Update.
9936         * cpplex.c (cpp_interpret_charconst): Update.
9937         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9938         signed_char to unsigned_char, group target dependencies.
9939         * defaults.h (WCHAR_UNSIGNED): Remove.
9940         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9941 config:
9942         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9943         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9944         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9945         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9946         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9947 doc:
9948         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9950 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9952         * fixinc/inclhack.def (windiss_math1): New fix.
9953         (windiss_math2): Likewise.
9954         (windiss_valist): Likewise.
9955         * fixinc/fixincl.x: Regenerated.
9957 2002-05-07  Andreas Jaeger  <aj@suse.de>
9959         * genautomata.c (output_internal_min_issue_delay_func): Add
9960         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9961         (output_internal_trans_func): Likewise.
9963 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
9965         * pa.c (hppa_profile_hook): Use force_reg to get the address
9966         of the profile hook into an appropriate pseudo register.
9968 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9970         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9971         (LINK_START_SPEC): Handle it.
9972         (LINK_OS_SPEC): Likewise.
9973         (CPP_SPEC): Likewise.
9974         (STARTFILE_SPEC): Likewise.
9975         (LIB_SPEC): Likewise.
9976         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
9977         all platforms.
9978         (CRTSAVRES_DEFAULT_SPEC): New macro.
9979         (LIB_WINDISS_SPEC): New macro.
9980         (CPP_OS_WINDISS_SPEC): Likewise.
9981         (STARTFILE_WINDISS_SPEC): Likewise.
9982         (ENDFILE_WINDISS_SPEC): Likewise.
9983         (LINK_START_WINDISS_SPEC): Likewise.
9984         (LINK_OS_WINDISS_SPEC): Likewise.
9985         * config/rs6000/windiss.h: New file.
9987 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
9989         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9991 2002-05-06  David S. Miller  <davem@redhat.com>
9993         * config/sparc/sparc.md (shift insns): Do not mask off
9994         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9995         take care of it.
9997 2002-05-06  Richard Henderson  <rth@redhat.com>
9999         PR c++/6212
10000         * expr.c (highest_pow2_factor_for_type): New.
10001         (expand_assignment): Use it.
10003 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
10005         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10006         unspec_volatile.
10007         ("altivec_mfvscr"): Same.
10009 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
10011         * rtl.h (struct rtx_def): Update comments.
10012         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
10013         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
10014         RTL_FLAG_CHECK macros with list of expected RTL codes.
10015         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10016         (rtl_check_failed_flag): New.
10017         * reload1.c (reload): Use REG macro before changing rtx to MEM.
10018         (reload_cse_noop_set_p): Check rtx code before using access macro.
10019         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10020         before using access macro.
10022 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
10024         * doc/rtl.texi (Flags): Update to reflect current usage.
10026 2002-05-06  Roger Sayle  <roger@eyesopen.com>
10028         PR opt/3995
10029         * fold-const.c (sign_bit_p): New function.
10030         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10031         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10032         Reapply fold when converting (A & C) == C into (A & C) != 0.
10033         (fold_binary_op_with_conditional_arg): Fix typo in comment.
10035 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10037         * c-common.c (warn_multichar): New.
10038         (c_common_init): Set CPP's warn_multichar.
10039         * c-common.h (warn_multichar): New.
10040         * c-decl.c (warn_multichar): Remove.
10041         * c-lex.c (lex_charconst): Update.
10042         * c-tree.h (warn_multichar): Remove.
10043         * cppexp.c (eval_token): Sign-extend charconst value.
10044         * cppinit.c (cpp_create_reader): Set warn_multichar.
10045         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10046         each character.  Update prototype.  Sign-extend the result.
10047         * cpplib.h: Fix conditions.
10048         (struct cpp_options): Add new warning flag.
10049         (cpp_interpret_charconst): Update prototype.
10050 doc:
10051         * cpp.texi: Update documentation.
10053 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
10055         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10056         Fix typo in usage of allof instead of unit.
10058 2002-05-06  Richard Henderson  <rth@redhat.com>
10060         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10061         and any jump or call for IN.
10063 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
10065         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10066         -msse2.
10067         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10069 2002-05-06  Roger Sayle  <roger@eyesopen.com>
10071         * fold-const.c (lshift-double): Cast the high word to an unsigned
10072         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10073         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10074         avoid compiler warning.  (fold): Remove redundant code from
10075         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10077 2002-05-06  Jeff Law  <law@redhat.com>
10079         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10080         * pa.c (pa_adjust_cost): Remove all true dependency cost
10081         adjustments.  Also remove support for non-DFA scheduling.
10082         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10083         to adjust true dependency costs.  Update various comments.
10084         (7100lc, 7200, 7300 scheduling): Simplify by combining the
10085         FP ALU & MPY units into a single unit.
10087 2002-05-06  Catherine Moore  <clm@redhat.com>
10089         * config/v850/v850.c (compute_register_save_size): Make sure
10090         to count all of the registers that will be saved.
10092 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
10094         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10096 2002-05-06  David S. Miller  <davem@redhat.com>
10098         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10099         allow result to overlap input operands in memory.
10101 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10103 doc:
10104         * cpp.texi: Update multichar charconst docs.
10106 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10108         * cpplex.c (cpp_interpret_charconst): Sign-extend each
10109         character.  Don't ignore excess characters.  Treat
10110         multicharacter character constants as signed.
10111         (cpp_parse_escape): Clarify diagnostic.
10113 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
10115         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10116         use add instead of shift.
10117         (ashldi3_sp64): Likewise.
10118         (ashlsi3_const1, ashldi3_const1): Remove.
10119         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10120         * config/sparc/sparc.c (const1_operand): New.
10122 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
10124         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10126 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
10128         PR target/6561
10129         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10131 2002-05-05  Richard Henderson  <rth@redhat.com>
10133         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10134         memory latency adjustments.
10135         (alpha_variable_issue): Remove.
10136         (alpha_use_dfa_pipeline_interface): New.
10137         (alpha_multipass_dfa_lookahead): New.
10138         * config/alpha/alpha.md: Remove define_function_unit scheduling;
10139         include new dfa scheduling.
10140         (attr type): Add none.
10141         (blockage): Use it.
10142         * config/alpha/ev4.md: New.
10143         * config/alpha/ev5.md: New.
10144         * config/alpha/ev6.md: New.
10146 2002-05-05  David S. Miller  <davem@redhat.com>
10148         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10150 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
10152         * cse.c: Fix formatting.
10153         * emit-rtl.c: Likewise.
10155 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
10157         * genautomata.c (initiate_states): Add additional guard to
10158         initialize `units_array'.
10160 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
10162         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10163         process_unit_to_form_the_same_automaton_unit_lists,
10164         form_the_same_automaton_unit_lists
10165         check_unit_distributions_to_automata): New prototypes and
10166         functions.
10167         (check_automata): Rename it into `check_automata_insn_issues'.
10168         (unit_decl): New fields `the_same_automaton_unit' and
10169         `the_same_automaton_message_reported_p'.
10170         (unit_decl_t): New typedef.
10171         (the_same_automaton_lists): New gloval variable.
10172         (unit_regexp, unit_set_el, units_array, units_cmp,
10173         output_get_cpu_unit_code_func): Use the typedef.
10174         (evaluate_max_reserv_cycles): Increment
10175         `description->max_insn_reserv_cycles'.
10176         (initiate_states): Don't increment `max_cycles_num'.
10177         (transform_insn_regexps): Move code around transformation of
10178         regexps from `generate'.
10179         (generate): Remove call of `transform_insn_regexps'.
10180         (expand_automata): Call `transform_insn_regexps' and
10181         `check_unit_distributions_to_automata'.  Check errors before
10182         `generate'.
10184         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10185         automaton `ultrasparc3_1'.
10187 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10189         * c-common.c (c_common_init): Set up CPP arithmetic.
10190         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10191         something reasonable for the host.
10192         (sanity_checks): Add checks.
10193         (cpp_read_main_file): Call sanity_checks() from here...
10194         (cpp_post_options): ... not here.
10195         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10196         * cpplib.h (struct cpp_options): New member int_precision.
10198 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10200         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10202 2002-05-04  David S. Miller  <davem@redhat.com>
10204         * config/sparc/linux.h, config/sparc/linux64.h
10205         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10207         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10208         more RTX codes.
10209         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10211         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10212         of SETs.
10214 2002-05-05  Tim Josling  <tej@melbpc.org.au>
10216         * treelang; New directory for new sample language treelang.
10218 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10220         * Makefile.in (c-lex.o): Update.
10221         * c-lex.c: Include target.h.
10222         (cb_register_builtins): New.
10223         (init_c_lex): Set builtins callback.
10224         * c-lex.h (cpp_define, cpp_assert): New prototypes.
10225         * cppinit.c (init_builtins): Use callback, including for
10226         GXX_WEAK.
10227         * cpplib.h (struct cpp_callbacks): New member.
10228         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10229         (TARGET_INITIALIZER): Update.
10230         * target.h (struct gcc_target): New hook.
10231         * tree.c (default_register_cpp_builtins): New.
10232         * tree.h (default_register_cpp_builtins): New.
10233 doc:
10234         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10236 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10238         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10239         (cpp_post_options): Move sanity checks to...
10240         (sanity_checks): New.
10241         * cpplex.c (maybe_read_ucs): Fix prototype.
10242         (parse_string, cpp_parse_escape): Cast for %c format specifier.
10243         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10244         if necessary.
10246 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
10248         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10249         builtins.  Use V2DI patterns instead of TI for logical operations.
10250         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10251         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10252         (ix86_expand_builtins): Change the pattern used for movntdq.
10253         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10254         sse2_nandv2di3): New patterns.
10255         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10256         on operands.
10257         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10258         (cvtdq2pd): Correct mode on operand 1.
10259         (sse2_umulsidi3): Describe without unspec.
10260         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10261         machine modes.
10262         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10263         (ashlv2di3): Likewise, from sse2_ashlv2di3.
10264         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10265         ashlv4si3, ashlv2di3): Use SImode for shift count.
10266         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10267         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10268         New patterns.
10269         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10270         New typedefs.
10271         (__m128i, __m128d): New macros.
10272         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10273         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10274         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10275         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10276         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10277         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10278         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10279         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10280         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10281         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10282         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10283         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10284         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10285         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10286         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10287         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10288         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10289         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10290         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10291         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10292         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10293         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10294         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10295         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10296         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10297         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10298         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10299         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10300         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10301         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10302         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10303         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10304         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10305         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10306         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10307         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10308         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10309         functions.
10310         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10311         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10313 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
10315         * dwarf2out.c: Fix formatting.
10316         * varasm.c: Likewise.
10318 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
10320         PR c/6543
10321         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10322         clobber and use result as temporary value.
10324 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
10326         * expr.c (force_operand): Use expand_simple_* to handle more
10327         cases.
10329 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10331         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10332         and sign-extension.
10333         (lex_charconst): Update for change in prototype of
10334         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
10335         appropriately.
10336         * cpphash.h (BITS_PER_CPPCHAR_T): New.
10337         * cppinit.c (cpp_create_reader): Initialize them for no
10338         change in semantics.
10339         (cpp_post_options): Add sanity checks.
10340         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10341         and truncation issues.  Calculate in type cppchar_t.
10342         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10343         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
10344         run-time dependent precision correctly.  Return whether the
10345         result is signed or not.
10346         * cpplib.c (dequote_string): Use cppchar_t; update.
10347         * cpplib.h (cppchar_signed_t): New.
10348         struct cpp_options): New precision members.
10349         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10350         * cppexp.c (eval_token): Update.
10352 2002-05-03  David S. Miller  <davem@redhat.com>
10354         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10355         * config/sparc/sparc.c (sparc_rtx_costs): New function
10356         implementing RTX_COSTS and CONST_COSTS.
10357         * config/sparc/sparc.h (CONST_COSTS): Delete.
10358         (RTX_COSTS_CASES): Define.
10359         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10360         the work.
10362         * config/sparc/sparc.md (DFA schedulers): Split out...
10363         * config/sparc/cypress.md, config/sparc/hypersparc.md,
10364         config/sparc/sparclet.md, config/sparc/supersparc.md,
10365         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10367         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10368         checks on it, always defined for Sparc.
10370         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10371         Tweak, and add more detailed comments.
10373 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
10375         * Re-apply patch accidentally reverted with
10376         DFA scheduler merge: remove all rules and variables to slurp
10377         source files out of libiberty and rebuild them with HOST_CC.
10378         ($(HOST_PREFIX_1)varray.o): New rule.
10379         (genattrtab rule): Word wrap.
10381 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10383         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10384         (CPP_SUBTARGET_SPEC): Define.
10385         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10386         cpp_subtarget specs.
10387         (CPP_SPEC): Redefine to include %(cpp_subtarget).
10389 2002-05-03  David S. Miller  <davem@redhat.com>
10391         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10392         * target.h (struct gcc_target): Delete cycle_display member.
10394         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10395         (rtx_needs_barrier): Delete reference to cycle_display unspec.
10396         (ia64_sched_reorder2): Mention need for cycle display handling
10397         once such notes exist.
10399 2002-05-03  Richard Henderson  <rth@redhat.com>
10401         * real.c (etoasc): Strip most trailing zeros for clarity.
10402         * sched-vis.c: Include real.h.
10403         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10404         * Makefile.in (sched-vis.o): Add real.h.
10406 2002-05-03  David S. Miller  <davem@redhat.com>
10408         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10409         no longer needed.
10411 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
10413         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10414         when we get an out of range literal.
10415         (altivec_expand_ternop_builtin): Same.
10416         (altivec_expand_unop_builtin): Same.
10417         (altivec_expand_builtin): Same, for dss.
10418         (altivec_expand_builtin): Use trees instead of rtl when
10419         determining literal argument validity.
10421 2002-05-03  David S. Miller  <davem@redhat.com>
10423         Delete cycle display scheduling hook.
10424         * config/ia64/ia64.c (ia64_cycle_display,
10425         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10426         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10427         and use emit_insn_before instead of ia64_emit_insn_before.
10428         * config/ia64/ia64.md (unspec usage): Delete cycle display.
10429         (cycle_display): Delete insn pattern.
10430         * config/sparc/sparc.md (unspec usage): Delete cycle display.
10431         (cycle_display): Delete insn pattern.
10432         * config/sparc/sparc.c (sparc_cycle_display,
10433         TARGET_SCHED_CYCLE_DISPLAY): Delete.
10434         * doc/md.texi (cycle_display): Don't mention.
10435         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10437 2002-05-03  Richard Henderson  <rth@redhat.com>
10439         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10440         * recog.h: Declare them.
10442         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10443         * config/sparc/sparc.md: Use store_data_bypass_p instead.
10444         * config/sparc/sparc-protos.h: Update.
10446 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10448         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10449         -D__arch64__.  Add -D_LP64.
10450         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10451         from sparc.h.
10452         (CPP_ARCH64_SPEC): Likewise.
10453         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10454         (NO_BUILTIN_SIZE_TYPE): Undef.
10456 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
10458         * genautomata.c (min_issue_delay_pass_states): Change return type
10459         in the prototype.
10460         (min_issue_delay_pass_states): Change the algorithm.
10461         (min_issue_delay): Set up min_insn_issue_delay for the state.
10462         (output_min_issue_delay_table): Interchange the nested loops and
10463         and initiate min_insn_issue_delay for states.
10465 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
10467         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
10468         jump is simplejump.
10470 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
10472         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
10473         sequence.
10475 2002-05-03  Richard Henderson  <rth@redhat.com>
10477         PR opt/6534
10478         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10479         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10480         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10481         code before JUMP, not EARLIEST.
10483 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10485         * c-format.c (check_format_info_main): Don't check for presence of
10486         parameter for * width until after operand number has been read,
10487         and only check for it if format parameters are available.
10488         Fixes PR c/6547.
10490 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10492         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10493         (LINK_SPEC): Undef before defining.
10495 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10497         PR preprocessor/6489
10498         * tradcpp.c (fixup_newlines): New.
10499         (main, finclude): Use it.
10501 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
10503         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10504         * config/mips/mips.c (mips_unique_section): Strip encoding from
10505         decl name.
10507 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10509         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10510         mode.
10512 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10514         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10515         (Specific): Removed buildstats references.
10516         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10517         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10518         Accomodate Solaris versions beyond 8.
10519         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10520         (Specific, *-*-solaris2.8): Removed, obsolete.
10522 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10524         PR target/6542
10525         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10526         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10527         fill leaf_reg_remap with identity.
10528         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10530 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10532         * config/h8300/crti.asm: Remove trailing spaces.
10533         * config/h8300/h8300.c: Likewise.
10534         * config/h8300/lib1funcs.asm: Likewise.
10536 2002-05-02  Jason Merrill  <jason@redhat.com>
10538         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10539         * c-decl.c (c_init_decl_processing): Use it.
10540         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10541         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10542         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10544 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10546         * regrename.c: Fix formatting.
10547         * tree.c: Likewise.
10549 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
10551         * i386.md (attribute memory): Handle compares properly.
10553 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
10555         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10556         to none.
10558 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
10560         * function.c: Fix formatting.
10562 2002-05-02  Jan Hubicka  <jh@suse.cz>
10564         * haifa-sched.c (schedule_insn): Print table of instructions and
10565         reservations.
10566         (sched_block): Do not print ready list at verbosity level 1.
10567         * sched-vis.c (print_insn): Make global.
10568         * sched-ebb.c (ebb_print_insn): Rename from...
10569         (print_insn): ... this one.
10570         * sched-int.h (print_insn): Declare
10572 2002-05-02  Richard Henderson  <rth@redhat.com>
10574         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10575         emitted by cycle_display.
10577 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
10579         * doc/install.texi (*-*-freebsd*): Update to latest status.
10581 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
10583         PR target/6540
10584         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10585         * config/float-sparc.h: Assume 128-bit long double if
10586         __LONG_DOUBLE_128__ is defined.
10588 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
10590         * genattrtab.c (write_function_unit_info): Add a dummy element
10591         when num_units == 0.
10593 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10595         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10596         TYPE_MODE (double_type_node) instead of DFmode.
10598 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
10600         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10601         jumps post reload.
10602         * toplev.c (rest_of_compilation): Revert Richard's patch.
10604 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10606         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10608 2002-05-02  Catherine Moore  <clm@redhat.com>
10610         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10612 2002-05-02  Kazu Hirata  <kazu@hxi.com>
10614         * combine.c: Fix comment typos.
10615         * expr.c: Likewise.
10616         * genautomata.c: Likewise.
10617         * stmt.c: Likewise.
10618         * tree.h: Likewise.
10620 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10622         * doc/install.texi: State GNAT version requirements.
10624 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
10626         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10627         of the frame pointer or arg pointer register which strict register
10628         checking is not enabled.
10630 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
10632         * gcc.dg/altivec-8.c: New.
10634         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10635         PRE_INC and PRE_DEC for altivec modes.
10637 2002-05-01  Bruce Korb  <bkorb@gnu.org>
10639         * fixinc/check.tpl(set-writable): make sure the function exists first
10640         * fixinc/inclhack.def(alpha_assert): fix test_text
10641         * fixinc/tests/base/assert.h: add in missing result
10643 2002-05-01  Jeff Law  <law@redhat.com>
10645         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10646         'T' constraint.
10648 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
10650         * dbxout.c (dbxout_type): Emit size information for range types,
10651         as well, but only when using GDB extensions.
10653 2002-05-01  Richard Henderson  <rth@redhat.com>
10655         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10656         target-independent gnu binutils date test.
10658 2002-05-01  Richard Henderson  <rth@redhat.com>
10660         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10661         info before expunging the block.
10663 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10665         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10666         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
10667         -M -or -MM is in effect.
10669 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
10671         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
10672         A29k configurations.
10673         * doc/install.texi: Update to match.
10675 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10677         PR bootstrap/6514
10678         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10679         for duplicates. Always loop over whole list.
10681 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10683         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10685 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10687         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10688         support routines.
10690 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10692         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10694 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
10696         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10697         (nabs_nopower): Same.
10698         (floatdisf2): New pattern.
10699         (absdi2): Convert to define_insn_and_split.
10700         (nabsdi2): Same.
10701         (trunctfsf2): Same.
10702         (floatditf2): Same.
10703         (floatsitf2): Same.
10704         (fix_trunctfdi2): Same.
10705         (fix_trunctfsi2): Same.
10707 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10709         * doc/install.texi: Update Texinfo version requirement
10710         documentation.
10712 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10714         PR target/6512, PR target/5628
10715         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10716         when memory is not aligned.
10717         (movdf_insn_v9only_vis): Likewise.
10718         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10719         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10720         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10722 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
10724         * gcc.dg/altivec-7.c: New.
10726         * config/rs6000/altivec.h: Cleanup.
10728 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
10730         * doc/invoke.texi (Option Summary): Add -mvrsave=.
10731         (RS/6000 and PowerPC Options): Document -mvrsave=.
10733         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10734         (rs6000_altivec_vrsave_string): Same.
10735         (rs6000_override_options): Call rs6000_parse_vrsave_option.
10736         (rs6000_parse_vrsave_option): New.
10737         (rs6000_stack_info): Only generate vrsave instructions when
10738         TARGET_ALTIVEC_VRSAVE.
10740         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10741         (rs6000_altivec_vrsave_string): Define extern.
10742         (rs6000_altivec_vrsave): Same.
10743         (TARGET_ALTIVEC_VRSAVE): New.
10745 2002-04-30  Richard Henderson  <rth@redhat.com>
10747         PR opt/6516
10748         * toplev.c (rest_of_compilation): Don't run cross-jump before
10749         bb-reorder.
10751 2002-04-30  Tom Rix  <trix@redhat.com>
10753         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10754         check which_alternative.
10756 2002-04-30  Kazu Hirata  <kazu@hxi.com>
10758         * cpplex.c: Fix comment formatting.
10759         * function.c: Likewise.
10760         * integrate.c: Likewise.
10761         * regrename.c: Likewise.
10762         * sibcall.c: Likewise.
10763         * simplify-rtx.c: Likewise.
10764         * tree-inline.c: Likewise.
10766 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10768         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10769         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10770         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10771         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10772         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10773         * pa/x-ada: New file.  Define ADA_CFLAGS.
10775 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
10777         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10778         from MMIX_LAST_REGISTER_FILE_REGNUM.
10779         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10780         (struct machine_function): New member highest_saved_stack_register
10781         previously static variable in mmix.c.
10782         (MACHINE_DEPENDENT_REORG): Define.
10783         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10784         (MMIX_OUTPUT_REGNO): New.
10785         (mmix_target_asm_function_prologue): Move calculation of last used
10786         saved-stack-register into...
10787         (mmix_machine_dependent_reorg): New function.  Update to also handle
10788         !TARGET_ABI_GNU.
10789         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10790         register names, simplify somewhat by new variable regno.
10791         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
10792         register.
10793         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10794         emitting register names.
10795         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10796         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10797         Remove fixed FIXME.
10798         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10799         Declare.
10801         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10803 2002-04-30  Richard Henderson  <rth@redhat.com>
10805         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10806         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10807         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10808         emit_tfmode_cvt): New.
10809         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10810         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10811         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10812         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10813         * config/sparc/sparc-protos.h: Update.
10815 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
10817         * install.texi (Final install): Add to the list of info to include
10818         in a report of a successful bootstrap, and add link to 3.1 list.
10820 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
10822         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10823         (mode): Add vector modes
10824         (i387): Kill attribute.
10825         (unit): New attribute.
10826         (length_immediate): Grok new types.
10827         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10828         (modrm): Use "unit".
10829         (memory): Handle MMX/SSE properly.
10830         (scheduling descriptions): Kill uses of fop1.
10831         (sse, mmx, fp patterns): Set type and mode properly.
10833 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
10835         * pa.c (override_options): Default to PA8000 scheduling.
10836         * doc/invoke.texi (HP-PA options): Mention newly added 7300
10837         scheduling parameter.
10839         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10840         handling of double precision multiplies.
10842         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10843         fpdiv and fpsqrt instructions.
10844         (7200 & 7300 scheduling): Fix typo in handling of
10845         store-load and store-store penalties.
10847 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10849         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10850         mips.  Add two missing commas.
10852 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
10854         * doc/contrib.texi (Contributors): Update Paolo Carlini's
10855         and Benjamin Kosnik's entries.
10857 2002-04-29  David S. Miller  <davem@redhat.com>
10859         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10860         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10861         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10862         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10864 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10866         * combine.c (find_split_point): Use gen_int_mode.
10868 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10870         Merging code from dfa-branch:
10872         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
10874         * genautomata.c (output_reserv_sets): Fix typo.
10876         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
10878         * genautomata.c (output_reserv_sets): Remove
10879         next_cycle_output_flag.
10881         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
10883         * sched-rgn.c (init_ready_list): Make the DFA code handle
10884         USE/CLOBBER insns in the same way as the traditional
10885         scheduler.
10886         (new_ready): Similarly..
10888         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
10890         * haifa-sched.c (schedule_block): Change the DFA state only after
10891         issuing insn.
10893         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
10895         * pa.c (hppa_use_dfa_pipeline_interface): New function.
10896         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10897         (override_options): Add PA7300 scheduling support.
10898         (pa_adjust_cost): Update various comments.  Properly
10899         handle anti and output dependencies when using the
10900         DFA scheduler.
10901         (pa_issue_rate): Add PA7300 scheduling support.
10902         (pa_can_combine_p): Call extract_insn before calling
10903         constrain_operands (taken from mainline tree).
10904         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10905         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
10906         descriptions using DFA descriptions.  Add PA7300
10907         scheduling support.
10909         2002-03-30  David S. Miller  <davem@redhat.com>
10911         Add UltraSPARC-III DFA scheduling support.
10912         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10913         Update FP conditional move on register insn patterns to use it, as
10914         appropriate.
10915         (define_attr cpu): Add ultrasparc3.
10916         (define_attr us3load_type): New, update integer load patterns to
10917         set it, as appropriate.
10918         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10919         (rest): Add UltraSPARC3 scheduling description.
10920         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10921         (PROCESSOR_ULTRASPARC3): New.
10922         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10923         ({ASM,CPP}_CPU_SPEC): Likewise.
10924         (REGISTER_MOVE_COST): Likewise.
10925         (RTX_COSTS): Likewise.
10926         * config/sparc/sparc.c (sparc_override_options,
10927         sparc_initialize_trampoline, sparc64_initialize_trampoline,
10928         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10929         sparc_issue_rate): Likewise.
10930         * config/sparc/sol2.h: Likewise.
10931         * config/sparc/sol2-sld-64.h: Likewise.
10932         * config/sparc/linux64.h: Likewise.
10934         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10936         * doc/md.texi: Add comments about usage the latency time for the
10937         different dependencies and about case when two or more conditions
10938         in different define_insn_reservations returns TRUE for an insn.
10940         * doc/md.texi: Add reference for automaton based pipeline
10941         description.
10943         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
10945         * doc/passes.texi: Add missed information about genattrtab.
10947         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10949         * genautomata.c (output_automata_list_transition_code): Check
10950         automata_list on NULL.
10952         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
10954         * genautomata.c (output_insn_code_cases,
10955         output_automata_list_min_issue_delay_code,
10956         output_automata_list_transition_code,
10957         output_automata_list_state_alts_code): Comment the functions.
10959         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10961         * genautomata.c (automata_list_el_t): New typedef.
10962         (get_free_automata_list_el,free_automata_list_el,
10963         free_automata_list, automata_list_hash, automata_list_eq_p,
10964         initiate_automata_lists, automata_list_start, automata_list_add,
10965         automata_list_finish, finish_automata_lists,
10966         output_insn_code_cases, output_automata_list_min_issue_delay_code,
10967         output_automata_list_transition_code,
10968         output_automata_list_state_alts_code, add_automaton_state,
10969         form_important_insn_automata_lists): New functions and prototypes.
10970         (insn_reserv_decl): Add members important_automata_list and
10971         processed_p.
10972         (ainsn): Add members important_p.
10973         (automata_list_el): New structure.
10974         (first_free_automata_list_el, current_automata_list,
10975         automata_list_table): New global variables.
10976         (create_ainsns): Initiate member important_p.
10977         (output_internal_min_issue_delay_func): Generate the switch and
10978         call output_insn_code_cases.
10979         (output_internal_trans_func, output_internal_state_alts_func):
10980         Ditto.
10981         (generate): Call initiate_automata_lists.
10982         (automaton_states): New global variable.
10983         (expand_automata): Call form_important_insn_automata_lists.
10984         (write_automata): Call finish_automata_lists.
10986         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
10988         * genautomata.c (add_excls, add_presence_absence): Check that
10989         cpu units in the sets belong the same automaton.
10991         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10992         about that cpu units in the sets belong the same automaton.
10994         * doc/md.texi: Ditto.
10996         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
10997                     Nitin Gupta  <niting@noida.hcltech.com>
10999         * config/sh/sh.c (sh_use_dfa_interface): New function.
11001         (sh_issue_rate): New Function.
11002         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11003         TARGET_SCHED_ISSUE_RATE: define.
11005         * config/sh/sh.md: Add DFA based pipeline description for SH4.
11007         (define_attr insn_class): New attribute used for DFA
11008          scheduling.
11009         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11010         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11011          cmpeqdi_t): Likewise.
11013         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11014          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11015          ex_group.
11016         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11018         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
11020         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11021         break.
11023         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
11025         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11026         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11027         necessary.
11028         (output_dfa_start_func): Initiate new variable insn_codes_length,
11029         (write_automata): Output definition of the new variable.
11031         2001-10-02  David S. Miller  <davem@redhat.com>
11033         * haifa-sched.c (advance_one_cycle): New function.
11034         (schedule_block): Use it.
11035         (queue_to_ready): Use it, and also make sure to advance the DFA
11036         state on all stall cycles, not just those where insn_queue links
11037         are found.
11039         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
11041         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
11042         non-zero if the highest-priority instruction could be scheduled.
11043         (choose_ready): Remove last argument from max_issue call.
11045         2001-09-28  David S. Miller  <davem@redhat.com>
11047         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11048         ultrasparc and 3 for other multi-issue sparcs.
11050         2001-09-27  David S. Miller  <davem@redhat.com>
11052         * config/sparc/sparc.md (cycle_display): New pattern.
11053         * config/sparc/sparc.c (sparc_cycle_display): New.
11054         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11056         2001-09-25  David S. Miller  <davem@redhat.com>
11058         Convert all of Sparc scheduling to DFA
11059         * config/sparc/sparc.md: Kill all define_function_unit
11060         directives and replace with DFA equivalent.
11061         * config/sparc/sparc.c (ultrasparc_adjust_cost,
11062         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11063         ultra_fpmode_conflict_exists, ultra_find_type,
11064         ultra_build_types_avail, ultra_flush_pipeline,
11065         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11066         ultrasparc_variable_issue, ultrasparc_sched_init,
11067         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11068         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11069         ultra_cur_hist, ultra_cycles_elapsed): Kill.
11070         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11071         ultrasparc_store_bypass_p): New.
11072         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11073         Declare.
11075         2001-09-24  David S. Miller  <davem@redhat.com>
11077         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11078         ready->vec[foo] not ready[foo].
11080         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
11082         * doc/md.texi: Correct examples for define_insn_reservations
11083         `mult' and `div'.
11085         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
11087         * genautomata.c (create_automata): Print message about creation of
11088         each automaton.
11089         (generate): Remove printing meease about creation of
11090         automata.
11092         2001-09-05  David S. Miller  <davem@redhat.com>
11094         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11095         * config/sparc/linux64.h: Likewise.
11097         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
11099         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11100         schedule_block, sched_init, sched_finish): Add missed calls of
11101         use_dfa_pipeline_interface.
11103         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11104         Ditto.
11106         * sched-vis.c (get_visual_tbl_length): Ditto.
11108         2001-08-27  Richard Henderson  <rth@redhat.com>
11110         * genattr.c (main): Emit state_t even when not doing scheduling.
11112         2001-08-27  Richard Henderson  <rth@redhat.com>
11114         * genautomata.c (expand_automata): Always create a description.
11116         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
11118         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11119         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11120         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11121         RTL constructions.
11123         * genattr.c (main): New variable num_insn_reservations.  Increase
11124         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
11125         pipeline hazard recognizer interface.
11127         * genattrtab.h: New file.
11129         * genattrtab.c: Include genattrtab.h.
11130         (attr_printf, check_attr_test, make_internal_attr,
11131         make_numeric_value): Move protypes into genattrtab.h.  Define them
11132         as external.
11133         (num_dfa_decls): New global variable.
11134         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11135         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11136         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11137         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
11139         * genautomata.c: New file.
11141         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11143         * sched-int.h: (curr_state): Add the external definition for
11144         automaton pipeline interface.
11145         (haifa_insn_data): Add comments for members blockage and units.
11147         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11148         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11149         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11150         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11151         TARGET_SCHED_DFA_POST_CYCLE_INSN,
11152         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11153         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11154         macros.
11155         (TARGET_SCHED): Use the new macros.
11157         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11158         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11159         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11160         dfa_bubble): New members in gcc_target.sched.
11162         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11163         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11164         (insn_queue): Redefine it as pointer to array.
11165         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11166         INSN_QUEUE_SIZE.
11167         (max_insn_queue_index_macro_value): New variable.
11168         (curr_state, dfa_state_size, ready_try): New varaibles for
11169         automaton interface.
11170         (ready_element, ready_remove, max_issue): New function prototypes
11171         for automaton interface.
11172         (choose_ready): New function prototype.
11173         (insn_unit, blockage_range): Add comments.
11174         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11175         FUNCTION_UNITS_SIZE == 0.
11176         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11177         actual_hazard, potential_hazard): Add comments.
11178         (insn_cost): Use cost -1 as undefined value.  Remove
11179         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
11180         pipeline interface.
11181         (ready_element, ready_remove): New functions for automaton
11182         interface.
11183         (schedule_insn): Add new code for automaton pipeline interface.
11184         (queue_to_ready): Add new code for automaton pipeline interface.
11185         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11186         (debug_ready_list): Print newline when the queue is empty.
11187         (max_issue): New function for automaton pipeline interface.
11188         (choose_ready): New function.
11189         (schedule_block): Add new code for automaton pipeline interface.
11190         Print ready list before scheduling each insn.
11191         (sched_init): Add new code for automaton pipeline interface.
11192         Initiate insn cost by -1.
11193         (sched_finish): Free the current automaton state and finalize
11194         automaton pipeline interface.
11196         * sched-rgn.c: Include target.h.
11197         (init_ready_list, new_ready, debug_dependencies): Add new code for
11198         automaton pipeline interface.
11200         * sched-vis.c: Include target.h.
11201         (get_visual_tbl_length): Add code for automaton interface.
11202         (target_units, print_block_visualization):  Add comments.
11204         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11205         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11206         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11207         (getruntime.o, genautomata.o): New entries.
11208         (genattrtab.o): Add new dependency file genattrtab.h.
11209         (genattrtab): Add new dependencies.  Link it with `libm.a'.
11210         (getruntime.o, hashtab.o): New entries for canadian cross.
11212         * doc/md.texi: Description of automaton based model.
11214         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11215         Add comments.
11216         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11217         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11218         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11219         TARGET_SCHED_DFA_POST_CYCLE_INSN,
11220         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11221         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11222         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11223         hook descriptions.
11224         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11225         MAX_DFA_ISSUE_RATE): New macro descriptions.
11227         * doc/contrib.texi: Add dfa based scheduler contribution.
11229         * doc/gcc.texi: Add more information about genattrtab.
11231 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11233         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11234         adjust_address_nv call.
11236 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
11238         * doc/install.texi (Testing): Provide additional information, and
11239         a stronger encouragement, for running the testsuites.
11241 2002-04-29  DJ Delorie  <dj@redhat.com>
11243         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11244         given in upper case.
11246 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11248         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11249         Solaris 2 <widec.h> if missing.
11250         * fixinc/fixincl.x: Regenerate.
11251         * fixinc/tests/base/widec.h: New file.
11253 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
11255         * toplev.c (f_options): Add "profile" switch so that
11256         -fno-profile can be used to disable -p.
11258 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
11260         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11261         UV2DImode.
11262         * tree.c (build_common_tree_nodes_2): Likewise.
11263         * tree.h (enum tree_index): Likewise.
11264         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11266         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11267         entries.
11268         (init_mmx_sse_builtins): Initialize SSE2 builtins.
11269         (ix86_expand_builtin): Add support for SSE2 builtins.
11270         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11271         (VALID_SSE_REG_MODE): Use it.
11272         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11273         (enum ix86_builtins): Add SSE2 builtins.
11274         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11275         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11276         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11277         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11278         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11279         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11280         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11281         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11282         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11283         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11284         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11285         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11286         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11287         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11288         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11289         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11290         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11291         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11292         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11293         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11294         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11295         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11296         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11297         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11298         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11299         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11300         lfence_insn): New patterns.
11301         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11302         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11304 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
11306         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11308 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11310         * doc/contrib.texi (Contributors): Add Paolo Carlini and
11311         Janis Johnson.
11312         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11313         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11314         and CPU instead of cpu.
11316 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
11318         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11319         variables.
11320         (lang_independent_options): Add -fif-conversion, -fif-conversion2
11321         (rest_of_compilation): Do if conversion only when asked for.
11322         (parse_options_and_default_flags): Set new variables to 1 for -O1
11323         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11325 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
11327         * i386.c (dbx64_register_map): Fix typo.
11329 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
11331         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11332         real_one_half, real_bb_freq_max): New static variables.
11333         (debug_profile_bbauxs): Kill.
11334         (process_note_predictions): Kill unused variable.
11335         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11336         volatile double.
11337         (propagate_freq): Use REAL_ARITHMETICS.
11338         (estimate_bb_frequencies): Likevise; init new static variables.
11339         * Makefile.in (predict.o): Add dependency on real.h
11341 2002-04-28  David S. Miller  <davem@redhat.com>
11343         PR target/6500
11344         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11345         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
11346         several {reads,writes} instead.
11347         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11348         Define.
11350 2002-04-27  David S. Miller  <davem@redhat.com>
11352         PR target/6494
11353         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11354         of the stack bias.
11356         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11357         including signal.h and sys/ucontext.h, not needed.
11359 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
11361         * varasm.c (output_constant_def): Correct test for not calling
11362         ENCODE_SECTION_INFO for INTEGER_CST.
11364 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11366         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11367         keep most cases as function eval_token.
11368         (eval_token): New function.
11369         (_cpp_parse_expr): Read token here for improved diagnostics.
11370         Don't use op_as_text.  Detect bad ':' here.
11371         (reduce): Don't detect bad ':' here.
11372         (op_as_text): Remove.
11373         * cpphash.h (_cpp_test_assertion): Change prototype.
11374         * cpplib.c (_cpp_test_assertion): Change prototype.
11376 2002-04-28  Richard Henderson  <rth@redhat.com>
11378         PR c/5154
11379         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11380         (ggc_mark_rtx_children): New.
11382 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11384         PR target/6496
11385         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11386         after call peepholes for UltraSPARC.
11387         (call + jump 64-bit peepholes): Remove.
11389 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11391         PR c/6497
11392         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11393         result as temporary value.
11395 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11397         PR c++/6396
11398         * toplev.c (rest_of_compilation): Only run regrename and copy
11399         propagation if optimizing.
11401 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11403         PR optimization/6475
11404         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11405         register of REGNO_DECL (i).
11406         * Makefile.in (reload1.o): Add $(TREE_H).
11408 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11410         * cppexp.c (lex): Update to use state.skip_eval.
11411         (struct op): Remove prio and flags members.
11412         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11413         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11414         (LEFT_ASSOC): New macro.
11415         (optab): New table of operator priorities and flags.
11416         (SHIFT): Update.
11417         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
11418         malloc-ed parser stack.
11419         (reduce): New; reduce the operator stack.
11420         (_cpp_expand_op_stack): Expand the operator stack as necessary.
11421         * cpphash.h (struct op): Predeclare.
11422         (struct cpp_reader): New members op_stack, op_limit.
11423         (struct lexer_state): New member skip_eval.
11424         (_cpp_parse_expr): Update.
11425         (_cpp_expand_op_stack): New.
11426         * cpplib.c (do_if): Update.
11427         * cppinit.c (cpp_create_reader): Create op stack.
11428         (cpp_destroy): And destroy it.
11429         * cpplib.h (CPP_LAST_CPP_OP): Correct.
11430         (TTYPE_TABLE): Correct.
11432 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11434         PR c/6343
11435         * c-decl.c (duplicate_decls): Call merge_weak.
11436         * c-pragma.c (apply_pragma_weak): Warn about misuse.
11437         * output.h (merge_weak): Prototype merge_weak.
11438         * varasm.c (merge_weak): New function.
11439         (declare_weak): Make sure we don't give an error on VAR_DECLs.
11440         Mark RTL with SYMBOL_REF_WEAK.
11442 2002-04-27  Kurt Garloff <garloff@suse.de>
11444         * tree-inline.c (inlinable_function_p): Improve heuristics
11445         by using a smoother function to cut down allowable inlinable size.
11446         * param.def: Add parameters max-inline-insns-single,
11447         max-inline-slope, min-inline-insns that determine the exact
11448         shape of the above function.
11449         * param.h: Likewise.
11451 2002-04-26  Richard Henderson  <rth@redhat.com>
11453         * c-parse.in (malloced_yyss, malloced_yyvs): New.
11454         (yyoverflow): Re-add.  Set them.
11455         (free_parser_stacks): New.
11456         * c-common.h: Declare it.
11457         * c-lex.c (c_common_parse_file): Call it.
11459 2002-04-26  Richard Henderson  <rth@redhat.com>
11461         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11462         for fallthru search.
11464 2002-04-26  Eric Christopher  <echristo@redhat.com>
11466         PR optimization/3700
11467         * config/mips/mips.c (mips_issue_rate): Define.  New function.
11468         (TARGET_SCHED_ISSUE_RATE): Use.
11470 2002-04-25  David S. Miller  <davem@redhat.com>
11472         PR target/6422
11473         * reorg.c (optimize_skip): Do not allow exception causing
11474         instructions to be considered for delay slots.
11475         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11476         (relax_delay_slots): Do not try to consider exception causing
11477         instructions as redundant.
11479 2002-04-26  Richard Henderson  <rth@redhat.com>
11481         PR c/5225
11482         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11484 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
11486         PR bootstrap/6445
11487         * config/i386/i386.md (untyped_call): Return the value in a float
11488         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11489         TARGET_80387.
11491 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
11493         * tree.c (tree_int_cst_lt): Compare constants whose types differ
11494         in unsigned-ness correctly.
11496 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11498         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11499         portable runtime model.
11501 2002-04-26  Richard Henderson  <rth@redhat.com>
11503         * c-parse.in (yyoverflow): Revert.
11505 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
11506             Richard Henderson  <rth@redhat.com>
11508         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11509         result as temporary value.
11511 2002-04-26  Richard Henderson  <rth@redhat.com>
11513         PR c/3581
11514         * c-common.c (fix_string_type): Split out of ...
11515         (combine_strings): ... here.  Take a varray, not a tree list.
11516         (c_expand_builtin_printf): Use fix_string_type.
11517         * c-common.h: Update decls.
11518         * c-parse.in (string): Remove.  Update all uses to use STRING
11519         instead, and not call combine_strings.
11520         (yylexstring): New.
11521         (_yylex): Use it.
11522         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11523         (build_asm_stmt): Likewise.
11524         * objc/objc-act.c (my_build_string): Use fix_string_type.
11525         (build_objc_string_object): Build varray for combine_strings.
11527 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
11529         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11530         x86-64.
11532 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11534         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11535         (HAVE_NO_R_OPERAND): Remove.
11536         (HAVE_VALUE): Remove.
11537         (op_to_prio): Update.
11538         (UNARY): Don't alter flags.
11539         (_cpp_parse_expr): want_value used to indicate whether
11540         a number or unary operator is expected next.  Distinguish
11541         unary and binary +/-.
11542         (op_as_text): Update for unary operators.
11544 2002-04-25  Richard Henderson  <rth@redhat.com>
11546         PR c/2161
11547         * c-parse.in (yyoverflow): New.
11549 2002-04-25  Richard Henderson  <rth@redhat.com>
11551         PR c/2098
11552         * c-common.c (shorten_compare): Simplfy conditions leading to
11553         the generation of a warning.
11555 2002-04-25  Richard Henderson  <rth@redhat.com>
11557         PR c/2035
11558         * expmed.c (extract_bit_field): Fall through to generic code rather
11559         than aborting on subreg special case.
11561 2002-04-25  David S. Miller  <davem@redhat.com>
11563         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11564         for DECL being NULL.
11566 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
11568         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11570 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
11572         * c-decl.c (grokdeclarator): Remove outdated ??? note
11573         on invalid declaration of flexible array members.
11575 2002-04-25  Richard Henderson  <rth@redhat.com>
11577         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11579 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
11581         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11582         needed by the compiler, even if they are used as global regs.
11584 2002-04-25  Matt Hiller  <hiller@redhat.com>
11586         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11587         functions.
11588         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11589         of the corresponding functions.
11590         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11591         New prototypes.
11593 2002-04-25  Matt Hiller  <hiller@redhat.com>
11595         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11597         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11598         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11599         registers, adjust comment accordingly.
11600         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11601         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11602         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11603         for coprocessor registers.
11604         (ADDITIONAL_REGISTER_NAMES): Include
11605         ALL_COP_ADDITIONAL_REGISTER_NAMES.
11607         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11608         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11609         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11610         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11611         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11613         (mips_char_to_class): Adjust comment to include coprocessor
11614         constraint letters.
11616         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11617         New functions.
11618         (mips_reg_names, mips_regno_to_class): Include coprocessor
11619         information.
11620         (mips_sw_reg_names): Ditto, make non-static.
11621         (mips_move_1word): Handle moves to and from coprocessor registers.
11622         (mips_move_2words): Handle moves to and from coprocessor
11623         registers.
11624         (mips_class_max_nregs, mips_register_move_cost): Handle
11625         coprocessor register classes.
11626         (override_options): Initialize mips_char_to_class and
11627         mips_hard_regno_mode_ok properly for coprocessor registers.
11629         * config/mips/mips.md (movdi_internal, movdi_internal2,
11630         movsi_internal1, movsi_internal2): Add constraint-sets for
11631         coprocessor registers.
11632         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11633         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11634         isn't mips.
11635         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11636         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11637         isn't mips.
11638         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11639         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11640         isn't mips.
11641         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11642         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11643         isn't mips.
11645         * doc/tm.texi: Document feature.
11647 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11649         * integrate.c (function_attribute_inlinable_p): Simplify.
11650         Check the table pointer is not NULL.
11652 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
11654         * doc/c-tree.texi: Fix typo in introduction.
11656 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11658         * c-common.h (c_common_parse_file): Update.
11659         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11660         * c-lex.c (YYDEBUG): Get from c-lex.h.
11661         (c_common_parse_file): Update.
11662         * c-lex.h (YYDEBUG, yydebug): New.
11663         * c-parse.in (YYDEBUG): Get from c-lex.h.
11664         (c_set_yydebug): Remove.
11665         * c-tree.h (c_set_yydebug): Remove.
11666         * langhooks-def.h (lhd_do_nothing_i): New.
11667         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11668         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11669         * langhooks.c  (lhd_do_nothing_i): New.
11670         (lhd_set_yydebug): Remove.
11671         * langhooks.h (struct lang_hooks): Update.
11672         * toplev.c (set_yydebug): New.
11673         (compile_file): Update call to parse_file hook.
11674         (decode_d_option): Update.
11675 objc:
11676         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11678 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
11680         * loop.c (load_mems): Don't change the interface of called functions.
11682         * calls.c (expand_call): Take current_function_pretend_args_size
11683         into account when setting argblock for sibcalls.
11685 2002-04-24  Matt Hiller  <hiller@redhat.com>
11687         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11688         * c-lex.c: Ditto.
11690         * cpplex.c (skip_line_comment): Process comment one multibyte
11691         character at a time rather than one char at a time, if
11692         appropriate.
11693         (parse_string): Process string one multibyte character at a time
11694         rather than one char at a time, if appropriate.
11695         * c-lex.c (lex_string): Lex and copy multibyte strings
11696         appropriately.
11697         * cpplib.h (cppchar_t): Change to unsigned.
11699 2002-04-24  Richard Henderson  <rth@redhat.com>
11701         PR c/3467
11702         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11703         for c99.
11705 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
11707         * sh.c (sh_va_arg): If argument was passed by reference,
11708         dereference the pointer.
11710         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11712         * sh.md (divsi3_i4_media): Use match_operand for input values
11713         rather than hard registers.
11714         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11715         unnecessarily through hard registers.  Keep copies of pseudo
11716         registers outside of the libcall sequence.
11718         * sh.md (casesi_shift_media): Add modes.
11720         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11721         values in memory.
11723 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11725         * attribs.c (c_common_attribute_table): Move table and handlers
11726         to c-common.c.
11727         (format_attribute_table, lang_attribute_table,
11728         lang_attribute_common): Remove.
11729         (init_attributes): Replace NULL pointers with pointers to the
11730         empty table.
11731         (handle_packed_attribute, handle_nocommon_attribute,
11732         handle_common_attribute, handle_noreturn_attribute,
11733         handle_noinline_attribute, handle_always_inline_attribute,
11734         handle_used_attribute, handle_unused_attribute,
11735         handle_const_attribute, handle_transparent_union_attribute,
11736         handle_constructor_attribute, handle_destructor_attribute,
11737         handle_mode_attribute, handle_section_attribute,
11738         handle_aligned_attribute, handle_weak_attribute,
11739         handle_alias_attribute, handle_visibility_attribute,
11740         handle_no_instrument_function_attribute, handle_malloc_attribute,
11741         handle_no_limit_stack_attribute, handle_pure_attribute,
11742         handle_deprecated_attribute, handle_vector_size_attribute,
11743         vector_size_helper): Move to c-common.c.
11744         * c-common.c (c_common_attribute_table,
11745         handle_packed_attribute, handle_nocommon_attribute,
11746         handle_common_attribute, handle_noreturn_attribute,
11747         handle_noinline_attribute, handle_always_inline_attribute,
11748         handle_used_attribute, handle_unused_attribute,
11749         handle_const_attribute, handle_transparent_union_attribute,
11750         handle_constructor_attribute, handle_destructor_attribute,
11751         handle_mode_attribute, handle_section_attribute,
11752         handle_aligned_attribute, handle_weak_attribute,
11753         handle_alias_attribute, handle_visibility_attribute,
11754         handle_no_instrument_function_attribute, handle_malloc_attribute,
11755         handle_no_limit_stack_attribute, handle_pure_attribute,
11756         handle_deprecated_attribute, handle_vector_size_attribute,
11757         vector_size_helper): Move from attribs.c.
11758         * c-common.h (c_common_attribute_table,
11759         c_common_format_attribute_table): New.
11760         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11761         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11762         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11763         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11764         (LANG_HOOKS_INITIALIZER): Update.
11765         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11766         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11767         * target.h: Update comment.
11768         * tree.c (default_target_attribute_table): Remove.
11769         * tree.h (default_target_attribute_table, format_attribute_table,
11770         lang_attribute_table, lang_attribute_common): Remove.
11771 objc:
11772         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11773         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11775 2002-04-24  Jason Merrill  <jason@redhat.com>
11777         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11778         * dwarf2out.c (dwarf_attr_name): Support it.
11779         (gen_array_type_die): Emit it.
11780         (lookup_type_die): No special handling for VECTOR_TYPE.
11781         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11783 2002-04-24  Richard Henderson  <rth@redhat.com>
11785         * config/mips/mips.md (movdi_usd): Renumber.
11787 2002-04-24  David S. Miller  <davem@redhat.com>
11789         PR target/6420
11790         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11791         32-bit Sparc and current_function_returns_struct is true.
11793 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11795         * loop.c (canonicalize_condition): Use gen_int_mode.
11797 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
11799         * config/rs6000/altivec.h: Cleanup file.  Add non individual
11800         variants.
11801         (vec_vaddubm): New.
11802         (vec_vadduhm): New.
11803         (vec_vadduwm): New.
11804         (vec_vaddfp): New.
11805         (vec_vaddcuw): New.
11806         (vec_vaddubs): New.
11807         (vec_vaddsbs): New.
11808         (vec_vadduhs): New.
11809         (vec_vadduws): New.
11810         (vec_vaddsws): New.
11811         (vec_vand): New.
11812         (vec_vandc): New.
11813         (vec_vavgub): New.
11814         (vec_vavgsb): New.
11815         (vec_vavguh): New.
11816         (vec_vavgsh): New.
11817         (vec_vavguw): New.
11818         (vec_vavgsw): New.
11819         (vec_vrfip): New.
11820         (vec_vcmpbfp): New.
11821         (vec_vcmpequb): New.
11822         (vec_vcmpequh): New.
11823         (vec_vcmpequw): New.
11824         (vec_vcmpeqfp): New.
11825         (vec_vcmpgefp): New.
11826         (vec_vcmpgtub): New.
11827         (vec_vcmpgtsb): New.
11828         (vec_vcmpgtuh): New.
11829         (vec_vcmpgtsh): New.
11830         (vec_vcmpgtuw): New.
11831         (vec_vcmpgtsw): New.
11832         (vec_vcmpgtfp): New.
11833         (vec_vcmpgefp): New.
11834         (vec_vcfux): New.
11835         (vec_vcfsx): New.
11836         (vec_vctsxs): New.
11837         (vec_vctuxs): New.
11838         (vec_vexptefp): New.
11839         (vec_vrfim): New.
11840         (vec_lvx): New.
11841         (vec_lvebx): New.
11842         (vec_lvehx): New.
11843         (vec_lde): Add vector float variant.
11844         (vec_lvewx): New.
11845         (vec_lvxl): New.
11846         (vec_vlogefp): New.
11847         (vec_vmaddfp): New.
11848         (vec_vmhaddshs): New.
11849         (vec_vmaxub): New.
11850         (vec_vmaxsb): New.
11851         (vec_vmaxuh): New.
11852         (vec_vmaxsh): New.
11853         (vec_vmaxuw): New.
11854         (vec_vmaxsw): New.
11855         (vec_vmaxsw): New.
11856         (vec_vmaxfp): New.
11857         (vec_vmrghb): New.
11858         (vec_vmrghh): New.
11859         (vec_vmrghw): New.
11860         (vec_vmrglb): New.
11861         (vec_vmrglh): New.
11862         (vec_vmrglw): New.
11863         (vec_vminub): New.
11864         (vec_vminsb): New.
11865         (vec_vminuh): New.
11866         (vec_vminsh): New.
11867         (vec_vminuw): New.
11868         (vec_vminsw): New.
11869         (vec_vminfp): New.
11870         (vec_vmladduhm): New.
11871         (vec_vmhraddshs): New.
11872         (vec_msumubm): New.
11873         (vec_vmsummbm): New.
11874         (vec_vmsumuhm): New.
11875         (vec_vmsumshm): New.
11876         (vec_vmsumuhs): New.
11877         (vec_vmsumshs): New.
11878         (vec_vmuleub): New.
11879         (vec_vmulesb): New.
11880         (vec_vmuleuh): New.
11881         (vec_vmulesh): New.
11882         (vec_vmuloub): New.
11883         (vec_mulosb): New.
11884         (vec_vmulouh): New.
11885         (vec_vmulosh): New.
11886         (vec_vnmsubfp): New.
11887         (vec_vnor): New.
11888         (vec_vor): New.
11889         (vec_vpkuhum): New.
11890         (vec_vpkuwum): New.
11891         (vec_vpkpx): New.
11892         (vec_vpkuhus): New.
11893         (vec_vpkshss): New.
11894         (vec_vpkuwus): New.
11895         (vec_vpkswss): New.
11896         (vec_vpkshus): New.
11897         (vec_vpkswus): New.
11898         (vec_vperm): New.
11899         (vec_vrefp): New.
11900         (vec_vrlb): New.
11901         (vec_vrlh): New.
11902         (vec_vrlw): New.
11903         (vec_vrfin): New.
11904         (vec_vrsqrtefp): New.
11905         (vec_vsel): New.
11906         (vec_vslb): New.
11907         (vec_vslh): New.
11908         (vec_vslw): New.
11909         (vec_vsldoi): New.
11910         (vec_vsl): New.
11911         (vec_vslo): New.
11912         (vec_vspltb): New.
11913         (vec_vsplth): New.
11914         (vec_vspltw): New.
11915         (vec_vspltisb): New.
11916         (vec_vspltish): New.
11917         (vec_vspltisw): New.
11918         (vec_vsrb): New.
11919         (vec_vsrh): New.
11920         (vec_vsrw): New.
11921         (vec_vsrab): New.
11922         (vec_vsrah): New.
11923         (vec_vsraw): New.
11924         (vec_vsr): New.
11925         (vec_vsro): New.
11926         (vec_stvx): New.
11927         (vec_stvebx): New.
11928         (vec_stvehx): New.
11929         (vec_stvewx): New.
11930         (vec_stvxl): New.
11931         (vec_vsububm): New.
11932         (vec_vsubuhm): New.
11933         (vec_vsubuwm): New.
11934         (vec_vsubfp): New.
11935         (vec_vsubcuw): New.
11936         (vec_vsububs): New.
11937         (vec_vsubsbs): New.
11938         (vec_vsubuhs): New.
11939         (vec_vsubshs): New.
11940         (vec_vsubuws): New.
11941         (vec_vsubsws): New.
11942         (vec_vsum4ubs): New.
11943         (vec_vsum4sbs): New.
11944         (vec_vsum4shs): New.
11945         (vec_vsum2sws): New.
11946         (vec_vsumsws): New.
11947         (vec_vrfiz): New.
11948         (vec_vupkhsb): New.
11949         (vec_vupkhpx): New.
11950         (vec_vupkhsh): New.
11951         (vec_vupklsb): New.
11952         (vec_vupklpx): New.
11953         (vec_vupklsh): New.
11954         (vec_vxor): New.
11956 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
11958         PR c/5430
11959         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11960         added literals from substracted literals.
11961         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11962         (fold) [associate]: Preserve MINUS_EXPR if needed.
11964 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
11966         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11967         are obsoleted.
11969 2002-04-23  Tom Tromey  <tromey@redhat.com>
11971         * gcc.c: Added --resource.  For PR java/6314.
11973 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11975         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
11976         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11977         these libraries.
11979 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11981         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11983 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11985         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11986         workaround.
11987         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11988         (ix86_expand_clrstr): Fix typo.
11989         * loop.c (gen_load_of_final_value): New.
11990         (loop_givs_rescan, strength_reduce, check_dbra_loop):
11991         Use it.
11993 2002-04-23  Roger Sayle  <roger@eyesopen.com>
11995         * builtins.c (builtin_memset_gen_str): New function.
11996         (expand_builtin_memset): Optimize the case of constant length, but
11997         unknown value.
11999 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
12001         * config/rs6000/altivec.h (vec_step): Remove extraneous
12002         parentheses.
12003         (vec_ctu): Cast return.
12005 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
12007         PR target/6413
12008         * function.h: (struct function): Add profile_label_no field.
12009         (current_function_profile_label_no): Define.
12010         * function.c: (profile_label_no): New static var.
12011         (expand_function_start): Increment it, and copy to
12012         current_function_profile_label_no.
12013         * output.h (profile_label_no): Delete.
12014         * final.c (profile_label_no): Delete.
12015         (profile_function): Use current_function_profile_label_no.
12016         (final_end_function): Don't increment profile_label_no here.
12017         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12018         profile_label_no with current_function_profile_label_no.
12019         * config/pa/pa.c (current_function_number): Delete.
12020         (pa_output_function_prologue): Don't output profile label here.
12021         (hppa_profile_hook): Use label_no param rather than
12022         current_function_number.
12023         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12024         * config/pa/pa.h: .. here.
12025         (FUNCTION_PROFILER): Output profile label here.
12027 2002-04-22  Eric Christopher  <echristo@redhat.com>
12029         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12030         patch of 2002-04-09 due to binutils issues.
12031         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12033 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
12035         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12036         constraint to 'o' for m=r and r=m alternatives.
12037         ("*movv8hi_internal1"): Same.
12038         ("*movv16qi_internal1"): Same.
12039         ("*movv4sf_internal1"): Same.
12041 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
12043         * rtl.h (RTX_FLAG): New macro.
12044         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12045         * final.c (alter_subreg): Use macro to access rtx flag.
12046         * integrate.c (copy_rtx_and_substitute): Use new access macro.
12047         * print-rtl.c (print_rtx): Use new access macro.
12049         * cse.c (insert): Check rtx code before accessing flag.
12051         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12052         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12053         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12054         convert_const_symbol_ref, make_canonical, make_alternative_compare,
12055         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12056         simplify_test_exp, optimize_attrs, simplify_by_exploding,
12057         find_and_mark_used_attributes, unmark_used_attributes,
12058         add_values_to_cover, simplify_with_current_value,
12059         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12060         copy_rtx_unchanging, main): Use new access macros.
12062 2002-04-22  Tom Rix  <trix@redhat.com>
12064         * expmed.c (init_expmed): Generate shifted constant once.
12066 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
12068         * c-lex.c (lex_charconst): Call convert to get constant in
12069         proper type; don't just smash the type field.
12070         Fixes PR c/6300.
12072         * config.gcc: Add list of obsolete configurations.  Disallow
12073         building these without --enable-obsolete.
12074         * doc/install.texi: Document --enable-obsolete and obsoletion
12075         policy.  Mention obsoletion of individual targets in
12076         appropriate places.
12078 2002-04-22  Richard Henderson  <rth@redhat.com>
12080         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12082 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
12084         PR f/6138.
12085         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12086         (walk_fixup_memory_subreg): Likewise.
12087         (fixup_var_refs_insn): Adjust accordingly.
12088         (fixup_var_refs_1): Likewise.
12090 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
12092         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12093         LIBPATH_ARCH64_SPEC): Define.
12094         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12095         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12096         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12097         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12099 2002-04-22      Joel Sherrill <joel@OARcorp.com>
12101         * gthr-rtems.h: Correct prototypes to remove warnings.
12103 2002-04-22  Richard Henderson  <rth@redhat.com>
12105         PR c/6344
12106         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12108         * gcse.c (free_insn_expr_list_list): New.
12109         (clear_modify_mem_tables): Use it.  Fix bit set usage.
12110         (canon_list_insert): Use EXPR_LISTs for expressions.
12111         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12113 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12115         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
12116         file change and include code to _cpp_pop_buffer.
12117         * cpphash.h (struct pending_option): Predeclare.
12118         (struct cpp_reader): New member next_include_file.
12119         (_cpp_pop_file_buffer): Update.
12120         (_cpp_push_next_buffer): Update, rename.
12121         * cppinit.c (cpp_destroy): Free include chain and pending here.
12122         (cpp_finish_options): Simplify.
12123         (_cpp_push_next_buffer): Rename and clean up.
12124         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12125         Clarify.
12126         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12128 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
12130         * config/rs6000/altivec.h (vec_xor): Add variant for both args
12131         being vector signed int.
12132         (vec_andc): Same.
12133         (vec_xor): Add variant for both args being vector signed char.
12134         Remove redundant variant.
12135         (vec_andc): Same.
12137 2002-04-21  David S. Miller  <davem@redhat.com>
12139         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12140         compare mode in output RTL.
12142 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
12144         * config/rs6000/rs6000.c (rs6000_override_options): Correct
12145         style and formatting of previous patch.
12147 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
12149         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12150         flag_pic for ABI_AIX.
12152 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12154         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12155         * cppfiles.c (read_include_file): Similarly.
12156         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12157         uxstrdup ustrchr, ufputs): Similarly.
12158         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12159         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12160         cpp_ideq, parse_identifier, parse_number): Similarly.
12161         * cpplib.c (struct directive, dequote_string, D, run_directive,
12162         cpp_push_buffer): Similarly.
12163         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12164         _cpp_create_definition, check_trad_stringification,
12165         cpp_macro_definition): Similarly.
12167 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12169         * cppmacro.c (funlike_invocation_p): Don't step back
12170         over CPP_EOF.
12172 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
12174         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12175         labelno.
12177 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12179         * doc/invoke.texi: Remove Chill references.
12180         * doc/gcc.texi: Update last modified date.
12182 2002-04-20  Kazu Hirata  <kazu@hxi.com>
12184         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12185         push and pop.  Replace add.l with add.w.
12187 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12189         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12190         multiply instructions for H8/300H case.
12192 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12194         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12195         Bum three instructions from each routine.
12197 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12199         * Makefile.in: Update.
12200         * decl.c (push_c_function_context, pop_c_function_context,
12201         mark_c_function_context): Rename for consistency.
12202         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12203         * c-tree.h (push_c_function_context, pop_c_function_context,
12204         mark_c_function_context): Rename for consistency.
12205         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12206         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12207         * function.c (init_lang_status, save_lang_status,
12208         restore_lang_status, mark_lang_status, free_lang_status):
12209         Move to langhooks.h.
12210         (push_function_context_to, pop_function_context_from,
12211         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12212         Update.
12213         * function.h (init_lang_status, save_lang_status,
12214         restore_lang_status, mark_lang_status, free_lang_status):
12215         Move to langhooks.h.
12216         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12217         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12218         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12219         LANG_HOOKS_FUNCTION_INITIALIZER): New.
12220         (LANG_HOOKS_INITIALIZER): Update.
12221         (lhd_do_nothing_f): New.
12222         * langhooks.h (struct lang_hooks_for_functions): New.
12223         (struct lang_hooks): New hooks.
12224         * langhooks.c (lhd_do_nothing_f): New.
12225 objc:
12226         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12227         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12229 2002-04-19  David S. Miller  <davem@redhat.com>
12231         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12232         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12234 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
12236         PR optimization/3756
12237         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12238         x = ((int) y < 0) ? cst1 : cst2.
12240 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
12242         PR c/6358
12243         * function.c: Reapply patch for c/6358.
12244         (expand_function_end): Copy decl_rtl's mode, not
12245         current_function_return_rtx mode.
12247 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
12249         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12250         targets.
12252 2002-04-19  Tom Tromey  <tromey@redhat.com>
12254         * doc/install.texi (Specific): Update status of Solaris 2.8.
12255         For PR libgcj/6158.
12257 2002-04-19  Andreas Schwab  <schwab@suse.de>
12259         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12260         (PUT_REAL): Restore old definition.
12262 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
12263             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12265         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12266         binutils 2.11.2 and higher generate smaller binaries than Sun's
12267         native tools.
12269 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
12271         PR c++/6352
12272         * toplev.c (rest_of_compilation): Do not defer functions for which
12273         TREE_SYMBOL_REFERENCED has already been set.
12275 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
12277         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12278         alternative.
12280 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12282         * builtins.c: Include langhooks.h.
12283         (lang_type_promotes_to): Remove.
12284         (expand_builtin_va_arg): Use new hook.
12285         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12286         (simple_type_promotes_to): Move to c-typeck.c.
12287         * c-common.h (simple_type_promotes_to): Remove.
12288         * c-decl.c (duplicate_decls, grokdeclarator): Update.
12289         * c-format.c: Include langhooks.h.
12290         (check_format_types): Update.
12291         * c-tree.h (c_type_promotes_to): New.
12292         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12293         (type_lists_compatible_p): Update.
12294         * langhooks-def.h (lhd_type_promotes_to): New.
12295         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12296         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12297         * langhooks.c (lhd_type_promotes_to): New.
12298         * langhooks.h (struct lang_hooks_for_types): New hook.
12299         * tree.h (lang_type_promotes_to): Remove.
12300 objc:
12301         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12303 2002-04-18  Richard Henderson  <rth@redhat.com>
12305         * function.c: Revert patch for c/6358.
12307 2002-04-18  Richard Henderson  <rth@redhat.com>
12309         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12310         blocks.  Handle multiple references to the TRAP block.  Handle
12311         non-adjacent THEN and OTHER blocks.
12313 2002-04-18  Richard Henderson  <rth@redhat.com>
12315         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12316         crash with no type for by-mode libcalls.
12318         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12320 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
12322         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12323         __xtensa_nonlocal_goto): Use a syscall instructions to flush
12324         the register windows.
12326 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12328         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12329         appropriate.  Document need for extended precision even when
12330         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
12331         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
12332         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
12333         instead of relying on later syntax error when REAL_WIDTH > 5.
12334         * real.c: Define NE based only on whether or not we have a
12335         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12336         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
12337         define GET_REAL and PUT_REAL as simple memcpy operations; no
12338         need to byteswap or round.
12339         Use #error instead of #ifdef-ing out the entire file, for
12340         prompt error detection.
12342         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12344 2002-04-18  David S. Miller  <davem@redhat.com>
12346         * config/sparc/sparc.h (BRANCH_COST): Define.
12348         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12349         does it.
12351 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
12353         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12354         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12355         propagate_block calls after relaxation loop using new variable
12356         stabilized_prop_flags.
12358 2002-04-18  Richard Henderson  <rth@redhat.com>
12360         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12361         (ia64_va_arg): Expect variable sized types by reference.
12362         * config/ia64/ia64-protos.h: Update.
12363         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12364         ia64_function_arg_pass_by_reference.
12366 2002-04-18  Richard Henderson  <rth@redhat.com>
12368         * ifcvt.c: Include except.h.
12369         (block_has_only_trap): Break out from find_cond_trap.
12370         (find_cond_trap): Use it.  Always delete the trap block.
12371         (merge_if_block): Allow then block null.  Be less simplistic about
12372         what insns can end a block.
12373         * Makefile.in (ifcvt.o): Depend on except.h.
12375         * config/ia64/ia64.md (trap, conditional_trap): New.
12377 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12379         PR c/6358
12380         * function.c (assign_parms): Assign hard current_function_return_rtx
12381         register here...
12382         (expand_function_end): ...not here.
12384 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12386         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12387         * c-tree.h (c_incomplete_type_error): New.
12388         * c-typeck.c (require_complete_type, build_component_ref): Update.
12389         (incomplete_type_error): Rename.
12390         * langhooks-def.h (lhd_incomplete_type_error): New.
12391         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12392         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12393         * langhooks.c (lhd_incomplete_type_error): New.
12394         * langhooks.h (struct lang_hooks_for_types): New hook.
12395         * tree.c (size_in_bytes): Use new hook.
12396         * tree.h (incomplete_type_error): Remove.
12397 objc:
12398         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12400 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12402         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12403         TARGET_FLOAT_FORMAT blocks.
12405 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12407         * doc/install.texi (Downloading the source): Do not mention Chill
12408         any longer, but mention Ada.
12409         (Configuration): Do not mention Chill any longer.
12411 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
12413         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12415 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
12417         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12418         in last patch.
12420 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12422         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12423         instead of unsigned_type.
12425 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12427         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12428         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12429         later.
12431 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
12433         * attribs.c (vector_type_node_list): New static variable.
12434         (handle_vector_size_attribute): Use it to avoid generating a
12435         new type node each time we are called.
12437         * combine.c (subst): Avoid trying to make a vector mode subreg of
12438         an integer constant.
12439         (gen_lowpart_for_combine): Likewise.
12441 2002-04-18  Roger Sayle  <roger@eyesopen.com>
12442             Jakub Jelinek  <jakub@redhat.com>
12444         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12445         for integer constant c (if x has unsigned type or sign bit is not
12446         set in c).  This folds the zero/sign extension into the bit-wise and
12447         operation.
12449 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12451         PR middle-end/6205
12452         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12453         otherwise xorps.
12455 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
12457         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12459 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
12461         * gcc.c (read_specs): Detect and fail if an attempt is made to
12462         rename a spec string to an already existing string.
12464 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12466         * config/s390/s390.c (legitimize_pic_address): Do not generate
12467         illegal address constant without CONST.
12469 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12471         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12472         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12474 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12476         PR optimization/6305
12477         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12478         to make sure previous reloads are taken into account.  Generate
12479         better code if one operand is an in-range immediate constant.
12481 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
12483         * doc/install.texi (Building): libgcj requires GNU make.
12485 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
12487         PR bootstrap/6315
12488         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12489         even if hard quad and register is not floating.
12490         (movtf reg<-mem split): Disallow splitting if hard quad and
12491         register is floating.
12492         (movtf mem<-reg split): Likewise.
12493         * config/sparc/sparc.c (fp_register_operand): New predicate.
12494         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12496 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
12498         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12499         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12500         (unprotoize.o): Ditto.  Build from protoize.c.  Define
12501         UNPROTOIZE on command line.
12502         * protoize.c: Include cppdefault.h.  Delete include_defaults.
12503         (in_system_include_dir): Use cpp_include_defaults (defined in
12504         cppdefault.o).
12505         * unprotoize.c: Delete file.
12507 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
12509         * config/rs6000/altivec.h (vec_ld): Add array variants.
12510         (vec_lde): Same.
12511         (vec_ldl): Same.
12513 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
12514             Aldy Hernandez <aldyh@redhat.com>
12516         * config/rs6000/altivec.h: Define __ALTIVEC__.
12517         (bool): New.
12518         (__pixel): New.
12519         (pixel): New.
12520         (vec_cfux): New.
12521         (vec_vmaddfp): New.
12522         (vec_vsldoi): New.
12523         Add parentheses to all macro arguments.
12525 2002-04-16  Richard Henderson  <rth@redhat.com>
12527         PR c++/6320
12528         * except.c (remove_eh_handler): Insert inner regions at beginning
12529         of sibling chain.  Refactor expressions.
12531 2002-04-16  Richard Henderson  <rth@redhat.com>
12533         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12534         * config/sparc/sol2-gas-bi.h: New file.
12535         * config.gcc (sparc*-solaris): Add it as needed.
12536         * configure.in (AS_SPARC64_FLAG): Remove check.
12537         * config.in, configure: Regenerate.
12539         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12541 2002-04-16  Richard Henderson  <rth@redhat.com>
12543         * config/mips/mips.c (override_options): Don't override N32 for
12544         a 64-bit ISA.
12546         PR 6202
12547         * config/mips/mips.md (can_delay): Split out of existing define_delays.
12548         (HILO_delay): Set can_delay false.
12550 2002-04-16  Dale Johannesen <dalej@apple.com>
12552         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12553         instruction addresses.
12554         (rs6000_output_function_epilogue): Likewise.
12556 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
12558         * c-parse.in (poplevel, compstmt_start,
12559         compstmt_primary_start): Add ending ';', in accordance
12560         with POSIX.
12562 2002-04-16  Richard Henderson  <rth@redhat.com>
12564         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12565         Adjust tm_file order to get TARGET_DEFAULT set properly.
12566         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12567         * doc/install.texi (sparc-solaris): Update.
12569 2002-04-16  Dale Johannesen <dalej@apple.com>
12571         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12572         comparison operands do not match each other or if modes of
12573         conditions do not match result.
12575 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
12577         PR target/6305
12578         * config/s390/s390.md (mulsidi3): Set both subregs of the
12579         multiword register.
12581 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
12583         * config/rs6000/altivec.h (vec_addc): Type check.
12585 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12587         PR middle-end/6279
12588         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12590         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12592 2002-04-15  Richard Henderson  <rth@redhat.com>
12594         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12595         call_really_used_regs too.
12597 2002-04-15  Richard Henderson  <rth@redhat.com>
12599         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12601 2002-04-15  David S. Miller  <davem@redhat.com>
12603         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12604         as being CLOBBERed.
12606 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12608         PR c/6290
12609         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12610         CONST_VECTOR is { 0, ... 0 }.
12612 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
12614         * doc/install.texi (Installing GCC: Configuration): Clarify
12615         the only supported ways to configure gcc.
12617 2002-04-15  Roland McGrath  <roland@frob.com>
12619         * config.gcc (alpha*-*-gnu*): New target configuration.
12620         * config/alpha/gnu.h: New file for it.
12621         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12623 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12625         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12626         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12627         * tree.h (expand_start_stmt_expr): Update prototype.
12628         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12629         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12630         on the STMT_EXPR created for the inline function.
12632 2002-04-15  Richard Henderson  <rth@redhat.com>
12634         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12635         config/i386/linux-aout.h, config/i386/linux-oldld.h,
12636         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12637         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12638         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12639         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12640         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12641         Define __gnu_linux__, not gnu_linux.
12642         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12644 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
12646         Remove Chill front end.
12647         * gcc.c (default_compilers): Remove Chill entries.
12648         * ch: Remove directory.
12649         * doc/frontends.texi: Remove information about Chill.
12650         * doc/sourcebuild.texi: Likewise.
12651         * doc/standards.texi: Likewise.
12653 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
12655         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12656         (LONGLONG_STANDALONE): Define.
12658 2002-04-15  David S. Miller  <davem@redhat.com>
12660         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12661         Call emit_library_call with LCT_NORMAL.
12662         (sparc_initialize_trampoline): Use LCT_foo instead of
12663         magic constant in emit_library_call invocations.
12664         (sparc64_initialize_trampoline): Likewise.
12665         (sparc_profile_hook): Likewise.
12666         * config/sparc/sparc.md: Likewise.
12668         * config/sparc/sparc.c (sparc_extra_constraint_check):
12669         Fix type of argument 'c'.
12670         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12671         Likewise.
12673 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12675         * diagnostic.h (output_buffer_state): Redefine.
12676         (output_format_decoder): New macro.
12677         (output_prefixing_rule): Likewise.
12678         (output_line_cutoff): Likewise.
12679         (diagnostic_format_decoder): Adjust.
12680         (diagnostic_prefixing_rule): Likewise.
12681         (diagnostic_line_cutoff): Likewise.
12682         (diagnostic_state): Likewise.
12683         (diagnostic_kind_count): Likewise.
12684         (diagnostic_buffer): Now a macro.
12686         * diagnostic.c (diagnostic_buffer): Remove definition.
12687         (output_is_line_wrapping): Adjust.
12688         (set_real_maximum_length): Likewise.
12689         (output_set_maximum_length): Likewise.
12690         (init_output_buffer): Likewise.
12691         (lhd_print_error_function): Likewise.
12692         (output_do_verbatim): Likewise.
12694 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12696         * cpperror.c (print_location): Don't print include chain
12697         if line == 0.
12698         (cpp_begin_message): Update to use DL_ macros.
12699         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12700         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12701         cpp_notice, cpp_notice_from_errno): Remove.
12702         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12703         level.
12704         (cpp_errno): New.
12705         * cppexp.c (CPP_ICE): Remove.
12706         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12707         lex, integer_overflow, _cpp_parse_expr): Update.
12708         * cppfiles.c (read_include_file, find_include_file,
12709         handle_missing_header, _cpp_read_file, remap_filename): Update.
12710         * cpphash.h (enum error_type): Remove.
12711         (_cpp_begin_message): Update.
12712         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12713         cpp_handle_option, cpp_post_options): Update.
12714         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12715         skip_whitespace, parse_identifier, parse_slow, parse_string,
12716         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12717         cpp_interpret_charconst): Update.
12718         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12719         lex_macro_node, do_undef, glue_header_name, parse_include,
12720         do_include_common, read_flag, do_line, do_linemarker, do_ident,
12721         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12722         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12723         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12724         _cpp_pop_buffer, do_diagnostic): Update.
12725         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12726         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12727         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12728         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12729         cpp_notice, cpp_notice_from_errno): Remove.
12730         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12731         level.
12732         (cpp_errno): New.
12733         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12734         collect_args, enter_macro_context, save_parameter, parse_params,
12735         _cpp_create_definition, check_trad_stringification,
12736         cpp_macro_definition): Update.
12737         * cppmain.c (cpp_preprocess_file): Update.
12738         * fix-header.c (read_scan_file): Update.
12740 2002-04-14  Andreas Schwab  <schwab@suse.de>
12742         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12744 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12746         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12748 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12750         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12751         not gnu_hurd.
12753 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
12755         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12757 2002-04-13      Joel Sherrill <joel@OARcorp.com>
12759         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
12760         sparc-elf and sparc-rtems targets.
12762 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12764         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12765         defined, and __gnu_hurd__ wherever __GNU__ is defined.
12766         * arm/linux-elf.h: Likewise.
12767         * cris/aout.h: Likewise.
12768         * cris/linux.h: Likewise.
12769         * i370/linux.h: Likewise.
12770         * i386/gnu.h: Likewise.
12771         * i386/linux-aout.h: Likewise.
12772         * i386/linux-oldld.h: Likewise.
12773         * i386/linux.h: Likewise.
12774         * i386/linux64.h: Likewise.
12775         * ia64/linux.h: Likewise.
12776         * m68k/linux-aout.h: Likewise.
12777         * m68k/linux.h: Likewise.
12778         * mips/linux.h: Likewise.
12779         * pa/pa-linux.h: Likewise.
12780         * pj/linux.h: Likewise.
12781         * rs6000/sysv4.h: Likewise.
12782         * s390/linux.h: Likewise.
12783         * sh/linux.h: Likewise.
12784         * sparc/linux-aout.h: Likewise.
12785         * sparc/linux.h: Likewise.
12786         * sparc/linux64.h: Likewise.
12787         * xtensa/linux.h: Likewise.
12789 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
12791         * stmt.c (check_unique_operand_names): Expect operand names to
12792         be strings rather than identifiers.  Use simple_cst_equal to
12793         compare them.
12794         (resolve_operand_name_1): Make same identifier to string change here.
12795         * c-parse.in (asm_operand): Convert a named operand into a string.
12796         * cp/parse.y (asm_operand): Likewise.
12798 2002-04-13  Andreas Schwab  <schwab@suse.de>
12800         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12802 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
12804         Revert these changes:
12806         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
12808         PR c++/5571
12809         * stor-layout.c (layout_decl): Reset the RTL for the decl.
12811 2002-04-12  Richard Henderson  <rth@redhat.com>
12813         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12814         (sparc*-*-solaris): Clean up header files.
12815         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12816         and plan on generating 64-bit code.
12817         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12818         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12819         * config/sparc/sol2-sld-64.h: Rename ...
12820         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
12821         for AS_SPARC64_FLAG not defined.
12822         * config/sparc/sol2-gld-bi.h: New.
12823         * config/sparc/sol2-sld.h: Remove.
12824         * config/sparc/sol26-sld.h: New.
12825         * config/sparc/sol2.h: Tidy comments.
12826         * doc/install.texi: Document sparc-solaris configury changes.
12828 2002-04-12  Richard Henderson  <rth@redhat.com>
12830         * recog.c (offsettable_address_p): Match the logic in adjust_address.
12832         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12833         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
12835 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12837         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12839 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
12841         * pa.c (pa_can_combine_p): Call extract_insn before calling
12842         constrain_operands.
12844 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
12846         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12847         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12848         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12849         (CPP_PREDEFINES): Handle __declspec.
12850         * config/i386/t-interix (USER_H): Remove.
12852 2002-04-12  DJ Delorie  <dj@redhat.com>
12854         * integrate.c (compare_blocks): Make comparisons safe for when
12855         sizeof(int) < sizeof(char *).
12856         (find_block): Likewise.
12858 2002-04-12  Jan Hubicka  <jh@suse.cz>
12859             David Edelsohn  <edelsohn@gnu.org>
12861         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12862         registers.
12863         (symbol_ref_operand): New.
12864         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12865         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12867 2002-04-12  Andreas Schwab  <schwab@suse.de>
12869         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12870         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12871         overrides the definition in config/svr4.h.
12873 2002-04-12      Eric Norum <eric.norum@usask.ca>
12875         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12876         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12877         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12878         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12879         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12880         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12881         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12882         definitions to config/rtems.h and make the targets more similar.
12884 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12886         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12887         POINTERS_EXTEND_UNSIGNED.
12888         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12889         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12891         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12892         not specified.
12894 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
12896         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12897         depends on TARGET_SHMEDIA, not TARGET_SH5.
12899 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
12901         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12902         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12904 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
12906         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12907         no r0 clobber.
12909 2002-04-12  Andreas Schwab  <schwab@suse.de>
12911         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12913 2002-04-12  Richard Henderson  <rth@redhat.com>
12915         PR bootstrap/4191
12916         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12918         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12919         modes spanning multiple hard regs.
12921         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12923 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12925         * pa.c (pa_output_function_prologue): Don't accumulate the total
12926         number of code bytes when using TARGET_64BIT, or gas, SOM and not
12927         the portable runtime.
12928         (output_deferred_plabels): Handle 64bit plabels.
12929         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12930         generating pic code using the GAS assembler for object formats that
12931         are not SOM (ie., ELF32 and ELF64).
12932         (output_millicode_call): Check attribute type if attribute length is 28.
12933         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
12934         dbr_sequence_length once.
12935         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12936         dbr_sequence_length once.
12937         * pa.h (TARGET_SOM): Define if not defined.
12938         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12939         with GAS and not SOM.
12940         (jump, call_internal_reg, call_value_internal_reg): Likewise.
12941         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
12943 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12945         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12946         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12947         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12948         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12949         elfos.h and dbxelf.h values are fine now.
12950         * config/i386/freebsd.h, config/alpha/freebsd.h
12951         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12953 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12955         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12956         or set Acpu or Amachine.  Reformat.
12957         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12958         define.
12959         (LINK_SPEC): Do not need to undef.
12960         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12961         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12962         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12963         define.
12964         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12965         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12966         (LINK_SPEC): Do not need to undef.
12967         (DONT_USE_BUILTIN_SETJMP): Do not define.
12968         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12969         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
12970         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12971         Remove trailing spaces.
12972         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12973         __ELF__, or set Acpu or Amachine.  Reformat.
12974         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12975         define.
12977 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12979         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12980         all other *-*-freebsd* targets.
12982 2002-04-11  Richard Henderson  <rth@redhat.com>
12984         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12986 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12988         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12989         Include {cpu}/{cpu}.h thru tm_file.
12990         (alpha*-*-linux*ecoff): Remove target.
12991         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12992         (LINK_SPEC): Remove, is not OS independent.
12993         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12994         (LINK_SPEC): Do not need to #undef any longer.
12995         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12996         any longer.
12997         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12998         __ELF__.
12999         (LINK_SPEC): Moved here from alpha/elf.h.
13000         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13001         SUB_CPP_PREDEFINES.
13002         * config/alpha/linux-ecoff.h: Remove.
13003         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13004         (CPP_SPEC): Define _POSIX_SOURCE as needed.
13005         (CPP_SUBTARGET_SPEC): Do not define.
13006         (LINK_SPEC): Do not need to #undef any longer.
13007         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13008         * config/alpha/vms.h: Likewise.
13010 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
13012         * doc/extend.texi: Remove old claim that typedefs cannot have
13013         an alignment attribute.
13015 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
13017         PR optimization/6177
13018         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13019         bitpos is 0 and bitsize CONCAT size.
13021 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
13023         PR c/6223
13024         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13026 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
13028         * config/alpha/freebsd.h: Minor reformatting.
13029         (CPP_SPEC): Define ELF and add cpp_subtarget.
13030         (ASM_SPEC): No longer needed.
13032 2002-04-11  Richard Henderson  <rth@redhat.com>
13034         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13035         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
13036         (dimode mem/zero splitter): New.
13038 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
13040         * config/cris/cris.c (cris_override_options): Tweak error message
13041         for PIC not implemented.
13043         * config/cris/cris.h: Tweak comments related to parameter-passing.
13045         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13047 2002-04-10  Richard Henderson  <rth@redhat.com>
13049         * except.c (add_ehl_entry): Allow duplicates after landing pad
13050         creation.
13052 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
13054         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13056 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
13058         * c-decl.c (c_init_decl_processing): Move generation of
13059         decls for g77_integer_type_node and friends from here ...
13060         * c-common.c (c_common_nodes_and_builtins): ... to here.
13062 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
13064         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13065         is only used as frame pointer when frame_pointer_needed is true.
13067 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
13069         PR target/817
13070         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13071         for the fact that the pool entry uses two words.
13072         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
13073         1k bytes.
13074         (movdf_soft_insn): Similarly.
13075         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13076         for the fact that the pool entry uses three words.
13078 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
13080         * config/mips/mips.c (mips_va_arg): When using the struct version
13081         of the EABI va_list, allow arguments in the register save area to
13082         take up less room than a stack argument.
13084 2002-04-10  Richard Henderson  <rth@redhat.com>
13086         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13087         if EXPAND_INITIALIZER.
13089 2002-04-09  Richard Henderson  <rth@redhat.com>
13091         * config/alpha/alpha.md (movdi_er_maybe_g): New.
13092         * config/alpha/alpha.c (alpha_expand_mov): Use it.
13094 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
13096         PR optimization/6233
13097         * rtlanal.c (pure_call_p): New function.
13098         * rtl.h (pure_call_p): Declare.
13099         * loop.c (prescan_loop): Use it to set has_nonconst_call.
13100         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13102 2002-04-09  Eric Christopher  <echristo@redhat.com>
13104         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13105         information to .comm directive.
13107 2002-04-09  Richard Henderson  <rth@redhat.com>
13109         PR c/5078
13110         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13112 2002-04-09  Richard Henderson  <rth@redhat.com>
13114         * basic-block.h (flow_delete_block_noexpunge): Declare.
13115         (expunge_block_nocompact): Declare.
13116         * cfg.c (expunge_block_nocompact): Split out from ...
13117         (expunge_block): ... here.
13118         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13119         (flow_delete_block_noexpunge): Split out from ...
13120         (flow_delete_block): ... here.
13121         * cfgcleanup.c (delete_unreachable_blocks): Compact while
13122         removing dead blocks.
13123         * except.c (exception_handler_labels): Remove.
13124         (exception_handler_label_map): New.
13125         (struct eh_region): Add aka member.
13126         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13127         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13128         (for_each_eh_label, for_each_eh_label_1): New.
13129         (init_eh): Register exception_handler_label_map.
13130         (free_eh_status): Use free_region.
13131         (find_exception_handler_labels): Use the map, not the list.
13132         (remove_exception_handler_label): Likewise.
13133         (maybe_remove_eh_handler): Likewise.
13134         (remove_eh_handler): Use the region aka bitmap.
13135         * except.h (exception_handler_labels): Remove.
13136         (for_each_eh_label): Declare.
13137         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13138         * loop.c (invalidate_loops_containing_label): New.
13139         (find_and_verify_loops): Use it.  Use for_each_eh_label.
13140         * sched-rgn.c (is_cfg_nonregular): Use
13141         current_function_has_exception_handlers.
13143 2002-04-09  Richard Henderson  <rth@redhat.com>
13145         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13146         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13147         Do not return changed status.
13148         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13149         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13150         New functions that do return changed status.
13151         * sbitmap.h: Update decls.
13152         * gcse.c, lcm.c: Use _cg functions as needed.
13154 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13156         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13157         (sh64-*-elf*, sh-*-rtemself*): Likewise.
13158         * config/sh/embed_bb.c: New file.
13159         * config/sh/embed-elf.h: New file.
13160         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13161         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
13162         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13163         __PTRDIFF_TYPE__ .
13164         (SUBTARGET_CPP_PTR_SPEC): Don't define.
13165         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13166         Add subtarget_asm_endian_spec.
13167         (ASM_SPEC): Use subtarget_asm_endian_spec.
13168         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13169         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13170         (WCHAR_UNSIGNED): Define.
13171         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13172         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13173         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13174         Fix value.
13175         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13176         (sh_adjust_cost): Likewise.
13177         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13178         __PTRDIFF_TYPE__ .
13179         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13180         (WCHAR_TYPE_SIZE): Likewise.
13181         (ASM_SPEC): Use subtarget_asm_endian_spec.
13182         (SH_ELF_WCHAR_TYPE): #undef/ #define.
13183         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13184         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13185         (MAX_WCHAR_TYPE_SIZE): Don't #define .
13186         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13187         (USER_LABEL_PREFIX): Don't #undef /#define .
13188         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13189         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13190         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13191         (ASM_SPEC): Likewise.
13192         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13193         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13194         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13195         (LIB2FUNCS_EXTRA): Define.
13196         * t-sh64 (LIB2FUNCS_EXTRA): Define.
13197         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13198         (LIB1ASMFUNCS_CACHE): Define.
13199         (LIB2FUNCS_EXTRA): Redefine empty.
13201 2002-04-08  Richard Henderson  <rth@redhat.com>
13203         * reorg.c (get_branch_condition): Use reversed_comparison_code.
13205 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13207         * config/m68hc11/larith.asm (__map_data_section): Fix condition
13208         and optimize for size.
13209         (__do_global_ctors): Fix pointer comparison.
13210         (__do_global_dtors): Likewise.
13212 2002-04-09  David S. Miller  <davem@redhat.com>
13214         * config/sparc/sparc.c (sparc_extra_constraint_check): New
13215         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
13216         allow reloading pseudos.
13217         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13218         * config/sparc/sparc-protos.h: Declare it.
13220         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13221         unsigned comparison warning.
13222         (output_restore_regs): Mark leaf_function as unused.
13224 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13226         * expr.c (is_aligning_offset): New function.
13227         (expand_expr, case COMPONENT_EXPR): Call it.
13229 2002-04-08  David S. Miller  <davem@redhat.com>
13231         PR target/6082
13232         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13234         Make init_priority work on Sparc when using GNU ld.
13235         * config/sparc/linux.h, config/sparc/linux64.h,
13236         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13237         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13238         * config/sparc/sol2-gld.h: New file to do the same.
13239         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13240         sparc/sol2-gld.h to tm_file.
13242         PR optimization/4328
13243         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13244         * doc/md.texi: Document it.
13245         * config/sparc/sparc.md (movdi_insn_sp64_novis,
13246         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13247         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13248         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13249         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13251 2002-04-08  Andreas Jaeger  <aj@suse.de>
13253         * stmt.c (expand_asm_operands): Revert last patch from Richard
13254         Henderson.
13256 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13258         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13259         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
13261 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13263         * doc/contrib.texi (Contributors): Add David O'Brien.
13265 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
13267         * configure.in (auto-build.h): Use target_alias and build_alias
13268         when running configure.
13269         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13270         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13271         * configure: Regenerate.
13273 2002-04-07  David S. Miller  <davem@redhat.com>
13275         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13277 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13279         PR 5933
13280         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13281         generating 32-bit pic code.
13283 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
13285         * cppinit.c (cpp_create_reader): Initialize
13286         discard_comments_in_macro_exp.
13287         (COMMAND_LINE_OPTIONS): Add "-CC" option.
13288         (cpp_handle_option): Handle "-CC" option.
13289         * cpplex.c (save_comment): If saving a C++ comment in
13290         a directive, convert it to a C comment.
13291         (_cpp_lex_direct): Pass second comment start character to
13292         save_comment to indicate comment type.
13293         * cpplib.c (_cpp_handle_directive): If processing
13294         a "#define" directive and discard_comments_in_macro_exp
13295         is false,  re-enable saving of comments.
13296         (lex_macro_node): If discard_comments_in_macro_exp is false,
13297         discard any comments before the macro identifier.
13298         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13299         member.
13300         * cppmacro.c (cpp_get_token): If expanding a macro while
13301         processing a directive, discard any comments we might encounter.
13302         (parse_params): If discard_comments_in_macro_exp is false,
13303         ignore comments in the macro parameter list.
13304         * gcc.c (cpp_unique_options): Add "-CC" option.
13305         (option_map): Map "--comments-in-macros" to "-CC".
13306         * doc/cppopts.texi: Document "-CC" option.
13307         * f/lang-specs.h: Add "-CC" option.
13308         * testsuite/gcc.dg/cpp/maccom1.c: New test.
13309         * testsuite/gcc.dg/cpp/maccom2.c: New test.
13310         * testsuite/gcc.dg/cpp/maccom3.c: New test.
13311         * testsuite/gcc.dg/cpp/maccom4.c: New test.
13312         * testsuite/gcc.dg/cpp/maccom5.c: New test.
13313         * testsuite/gcc.dg/cpp/maccom6.c: New test.
13315 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13317         PR middle-end/6180
13318         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13320 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
13322         PR c++/5571
13323         * stor-layout.c (layout_decl): Reset the RTL for the decl.
13325         PR opt/5120
13326         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13327         RTX_UNCHANGING_P for the functions arguments when a tail call
13328         is made.
13330 2002-04-06  Jason Merrill  <jason@redhat.com>
13332         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13333         (parse_options_and_default_flags): Set them appropriately.
13334         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13336 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
13338         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13339         here.
13341         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13342         semicolon.
13344         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13345         types come in by-reference.  Fix typo in comment.
13347 2002-04-05  David S. Miller  <davem@redhat.com>
13349         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13350         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13351         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13352         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13354 2002-04-05  David S. Miller  <davem@redhat.com>
13356         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13357         are not going to emit return instructions, emit at least a nop
13358         for the sake of sane backtraces.
13360 2002-04-05  Richard Henderson  <rth@redhat.com>
13362         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13364 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
13366         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13368 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
13370         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13371         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13372         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13374 2002-04-05  Andreas Schwab  <schwab@suse.de>
13376         * c-convert.c: Include c-common.h.
13377         * Makefile.in (c-convert.o): Updated.
13379 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13381         * mklibgcc.in: Use separate libgcc.map for each multilib.
13382         * Makefile.in (distclean): Don't remove libgcc.map here.
13384 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13386         * Makefile.in (s-mlib): Handle --disable-multilib by separate
13387         genmultilib invocation.
13389 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
13391         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13392         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
13393         to num_gprs for symmetry.
13394         * config/mips/mips.c: Adjust accordingly.
13396 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13398         * c-common.c (truthvalue_conversion): Rename, update.
13399         * c-common.h (c_common_truthvalue_conversion): New.
13400         * c-convert.c (convert): Update.
13401         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13402         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13403         * c-typeck.c (build_binary_op, build_unary_op,
13404         build_conditional_expr): Update.
13405         * fold-const.c (constant_boolean_node, fold): Use langhook.
13406         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13407         * langhooks.h (struct lang_hooks): New hook.
13408         * stmt.c (expand_decl_cleanup): Use langhook.
13409         * tree.h (truthvalue_conversion): Remove.
13410 objc:
13411         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13413 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
13415         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13416         Add rules to make null object file.
13418 2002-04-04  Jim Blandy  <jimb@redhat.com>
13420         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13421         macro formal parameter names.
13423 2002-04-04  David S. Miller  <davem@redhat.com>
13425         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13427 2002-04-04  Richard Henderson  <rth@redhat.com>
13429         PR middle-end/5099
13430         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13431         Support copies into and out of memory.  Don't accept allows_reg
13432         and allows_mem as gospel.
13434 2002-04-04  Richard Henderson  <rth@redhat.com>
13436         PR opt/6165
13437         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13438         (write_dependence_p): Likewise.
13440 2002-04-04  Richard Henderson  <rth@redhat.com>
13442         * predict.c (estimate_bb_frequencies): Do frequency calculation
13443         with a volatile temporary.
13445 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
13447         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13449 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13451         PR c++/6119
13452         * final.c (final_start_function): Don't bump profile_label_no here...
13453         (final_end_function): ...but here.
13455 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13457         * config/sparc/sparc.md (pic): New attribute.
13458         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13459         into stack slots.
13460         (split after do_builtin_setjmp_setup): New.
13462 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13464         PR fortran/6106
13465         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13466         change.
13468 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13470         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13471         UNITS_PER_WORD for zero sized aggregates.
13473 2002-04-03  David S. Miller  <davem@redhat.com>
13475         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13476         one-character spec for this, just use %(link_gcc_c_sequence).
13478 2002-04-03  David S. Miller  <davem@redhat.com>
13480         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13481         handling.
13483 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13485         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13486         (DWARF_FRAME_RETURN_COLUMN): Move.
13487         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13488         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13489         * pa.c (except.h, predict.h): Include.
13490         (FRP): Delete.
13491         (store_reg_modify, set_reg_plus_d): Revise prototypes.
13492         (output_ascii): Add cast.
13493         (store_reg_modify): Revise to add frame notes.
13494         (set_reg_plus_d): Likewise.
13495         (compute_frame_size): Include space for eh data registers in frame if
13496         the current function calls eh_return.
13497         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
13498         function calls eh_return.  Save eh data registers if the current
13499         function calls eh_return.  Fix code to add frame notes.  Emit
13500         blockage to prevent insns with frame notes being scheduled in the
13501         delay slot of calls.
13502         (hppa_expand_epilogue): Restore eh data registers and do final stack
13503         adjustment if the current function calls eh_return.  Don't add frame
13504         notes.
13505         (output_call): Revise for change in length of call insn.  Don't do
13506         return pointer adjustment for an unconditional jump in the delay slot
13507         of a call when using frame notes.
13508         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13509         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13510         (ARG_POINTER_CFA_OFFSET): Define.
13511         * pa.md (return_external_pic): New pattern.
13512         (prologue): Correct formatting.  Use return_external_pic if current
13513         function calls eh_return.
13514         (call_internal_symref, call_value_internal_symref,
13515         sibcall_internal_symref, sibcall_value_internal_symref): Change default
13516         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13517         respectively.
13518         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13520         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13521         list of targets to check using "nop" insn.
13522         * configure: Rebuilt.
13524 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
13526         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13528 2002-04-03  David S. Miller  <davem@redhat.com>
13530         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13531         library sequence passed to the linker.
13532         (LINK_COMMAND_SPEC): Use it.
13533         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13534         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13535         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13537 2002-04-03  Jason Merrill  <jason@redhat.com>
13539         * except.c (struct eh_status): Remove protect_list.
13540         (begin_protect_partials, end_protect_partials): Remove.
13541         (add_partial_entry): Remove.
13542         * except.h: Remove prototypes.
13544         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13545         expand_decl_cleanup_eh.
13547         PR c++/5636
13548         * tree.h (CLEANUP_EH_ONLY): New macro.
13549         * stmt.c (expand_decl_cleanup_eh): New fn.
13550         (expand_cleanups): Check CLEANUP_EH_ONLY.
13551         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13552         Use expand_decl_cleanup_eh.
13553         (expand_stmt): Adjust.
13554         * c-common.h: Adjust prototype.
13556 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
13558         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13559         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13560         (cris_target_asm_function_epilogue): Ditto.
13561         (cris_initial_frame_pointer_offset): Ditto.
13562         (cris_simple_epilogue): Ditto.
13563         (cris_expand_builtin_va_arg): Variable-size types come in
13564         by-reference.
13566 2002-04-03  David S. Miller  <davem@redhat.com>
13568         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13569         little-endian.
13570         (set_fast_math): Correct 'fsr' type.
13572 2002-04-03  Richard Henderson  <rth@redhat.com>
13574         PR opt/3569
13575         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13576         * toplev.c (check_global_declarations): Use it.
13577         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13578         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13579         (LANG_HOOKS_DECLS): Add it.
13580         * langhooks.c (lhd_warn_unused_global_decl): New.
13581         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13582         * c-objc-common.c (c_warn_unused_global_decl): New.
13583         * c-tree.h (c_warn_unused_global_decl): Declare.
13584         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13586 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13588         * langhooks-def.h (lhd_set_decl_assembler_name,
13589         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13590         (LANG_HOOKS_INITIALIZER): Update.
13591         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13592         * langhooks.h (struct lang_hooks): New hook.
13593         * tree.c (set_decl_assembler_name): Move to langhooks.c.
13594         (lang_set_decl_assembler_name): Remove.
13595         (init_obstacks): Don't set hook.
13596         (decl_assembler_name): New function.
13597         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13598         (decl_assembler_name): New.
13599         (lang_set_decl_assembler_name): Remove.
13601 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13603         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13604         works properly with .hidden symbols.
13605         * configure: Rebuilt.
13606         * config.in: Rebuilt.
13607         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13608         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13609         properly with .hidden symbols.
13611 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13613         PR middle-end/6102
13614         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13615         USE argument.
13617 2002-04-03  Richard Henderson  <rth@redhat.com>
13619         PR opt/4120
13620         * sched-rgn.c (sets_likely_spilled): New.
13621         (sets_likely_spilled_1): New.
13622         (add_branch_dependences): Use it.
13624 2002-04-02  Richard Henderson  <rth@redhat.com>
13626         PR opt/4311
13627         * loop.h (LOOP_FIRST_PASS): New.
13628         * loop.c (strength_reduce): Mind it when deciding to unroll.
13629         * toplev.c (rest_of_compilation): Set it.
13631 2002-04-02  David S. Miller  <davem@redhat.com>
13633         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13634         mems_ok_for_ldd_peep when the order of the loads being examined
13635         is reversed.
13636         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13637         existing comment to increase comprehension of this situation.
13639 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
13641         * config/sh/sh.md: Don't use union real_extract.
13643 2002-04-02  Richard Henderson  <rth@redhat.com>
13645         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13647 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13649         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13650         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13651         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13652         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13653         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13654         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13655         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13656         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13657         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13658         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13659         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13660         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13661         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13662         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13663         Include as many configury headers via tm_file as possible.  This
13664         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13665         * config/openbsd-oldgas.h: New file.
13666         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13667         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13668         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13669         config/i386/i386-coff.h, config/i386/i386-interix.h,
13670         config/i386/iscdbx.h, config/i386/linux-aout.h,
13671         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13672         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13673         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13674         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13675         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13676         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13677         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13678         config/i386/vxi386.h: Do not directly include configury headers.
13679         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13680         Directly include configury headers that are no longer automatically
13681         included by the above headers.
13682         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13683         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13684         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13685         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13686         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13687         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13688         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13689         (TARGET_VERSION): Define.
13690         * config/i386/beos-elf.h, config/i386/freebsd.h,
13691         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13692         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13693         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13694         config/i386/sco5.h, config/i386/sysv4.h
13695         (TARGET_VERSION): Do not need to protect.
13696         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13697         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13698         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13699         config/i386/i386-interix.h, config/i386/linux-aout.h,
13700         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13701         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13702         (YES_UNDERSCORES): Do not define - not needed.
13703         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13704         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13705         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13706         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13707         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13708         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13709         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13710         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13712 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
13713             Richard Henderson  <rth@redhat.com>
13715         PR c/5484
13716         * function.c (assign_temp): Accept either type or decl argument.
13717         Detect variables whose size is too large to fit into an integer.
13718         * stmt.c (expand_decl): Pass the decl, not the type.
13720 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13722         * protoize.c: Match include directory usage with cppdefault.c.
13724 2002-04-03  Jeffrey A Law  (law@redhat.com)
13725             Hans-Peter Nilsson  <hp@bitrange.com>
13727         * combine.c (simplify_comparison): Avoid narrowing a comparison
13728         with a paradoxical subreg when doing so would drop signficant bits.
13730 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
13732         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13733         if POINTERS_EXTEND_UNSIGNED is defined.
13735 2002-04-02  Richard Henderson  <rth@redhat.com>
13737         PR opt/3967
13738         * local-alloc.c (contains_replace_regs): LO_SUM may contain
13739         replace regs.
13741 2002-04-02  Richard Henderson  <rth@redhat.com>
13743         * doc/standards.texi: Document required freestanding libc entry points.
13745 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
13747         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13748         associated splitter.  Remove MQ constraint.
13749         (ctrdi_internal4): Correct CCmode clobber.
13751 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13753         * milli64.S ($$dyncall): New function.
13754         * t-linux (LIB1ASMFUNCS): Revise module list.
13755         (LIB1ASMSRC): Use pa/milli64.S.
13757 2002-04-02  Richard Henderson  <rth@redhat.com>
13759         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13760         rename solaris_sys_varargs_h.
13762 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13764         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13765         the same mode as its component.
13767 2002-04-02  Richard Henderson  <rth@redhat.com>
13769         PR opt/190
13770         * final.c (this_is_asm_operands): Export.
13771         * output.h (this_is_asm_operands): Declare.
13772         * config/i386/i386.c (print_operand): Error odd asm operands.
13774 2002-04-02  Richard Henderson  <rth@redhat.com>
13776         PR opt/420
13777         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13779 2002-04-01  Richard Henderson  <rth@redhat.com>
13781         PR target/1538
13782         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13783         * fixinc/fixincl.x: Rebuild.
13785 2002-04-01  Richard Henderson  <rth@redhat.com>
13787         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13788         (atomic_alloc, atomic_free): New.
13789         (SIZE, MASK_FOR, PTR_IN): New.
13790         (emergency_reg_state, emergency_reg_state_free): New.
13791         (emergency_labeled_state, emergency_labeled_state_free): New.
13792         (reg_state_alloced, labeled_state_alloced): New.
13793         (alloc_reg_state, free_reg_state): New.
13794         (alloc_label_state, free_label_state, free_label_states): New.
13795         (push, pop, dup_state_stack, free_state_stack): Use them.
13796         (desc_label_state): Likewise.
13797         (uw_frame_state_for): Free label states and state stack.
13798         (uw_update_reg_address): Eliminate warnings.
13800 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
13802         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13803         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13805 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13807         * c-decl.c (grokdeclarator): Update.
13808         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13809         * c-tree.h (c_mark_addressable): New.
13810         * c-typeck.c (default_function_array_conversion, build_unary_op,
13811         build_array_ref, convert_for_assignment): Update.
13812         (mark_addressable): Rename.
13813         * calls.c (try_to_integrate, expand_call): Use langhook.
13814         * expr.c (expand_expr): Use langhook.
13815         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13816         * langhooks.h (struct lang_hooks): New hook.
13817         * stmt.c (expand_asm_operands): Use langhook.
13818         * tree.h (mark_addressable): Remove.
13819 objc:
13820         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13822 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13824         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13825         in previous change.
13827 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13829         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13830         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13832 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13834         * c-common.c (unsigned_conversion_warning, convert_and_check,
13835         unsigned_type, signed_type, shorten_compare,
13836         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13837         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13838         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13839         New.
13840         * c-decl.c (grokdeclarator): Update.
13841         * c-format.c (check_format_types): Update.
13842         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13843         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13844         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13845         * convert.c (convert_to_integer): Use new hooks.
13846         * expmed.c (make_tree): Use new hooks.
13847         * expr.c (store_expr): Use new hooks.
13848         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13849         all_ones_mask_p, unextend, fold): Use new hooks.
13850         * langhooks.h (struct lang_hooks_for_types): New hooks.
13851         * tree.h (signed_or_unsigned_type, signed_type,
13852         unsigned_type): Remove.
13853 objc:
13854         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13855         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13857 2002-03-31  Richard Henderson  <rth@redhat.com>
13859         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13860         (desc_frgr_mem): Fix reference to f16-f31.
13862 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13864         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13865         RTVEC_ELT): Const-ify.
13866         * varray.h (VARRAY_CHECK): Const-ify.
13867         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13868         ggc_mark_rtvec, ggc_mark): Const-ify.
13870 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13872         * diagnostic.c: Include langhooks-def.h.
13873         * Makefile.in (diagnostic.o): Update.
13875 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13877         * c-common.c (c_unsafe_for_reeval): Rename.
13878         * c-common.h (c_unsafe_for_reeval): Rename.
13879         * c-decl.c (finish_incomplete_decl): Rename.
13880         (c_init_decl_processing): Don't set langhook.
13881         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13882         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13883         * c-objc-common.c (c_objc_common_init): Don't set langhook.
13884         * c-tree.h (finish_incomplete_decl): Rename.
13885         * langhooks-def.h (lhd_unsafe_for_reeval): New.
13886         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13887         (LANG_HOOKS_INITIALIZER): Update.
13888         * langhooks.c (lhd_unsafe_For_reeval): New.
13889         * langhooks.h (struct langhooks): New hooks.
13890         * toplev.c (incomplete_decl_finalize_hook): Remove.
13891         (wrapup_global_declarations): Update.
13892         * tree.c (lang_unsafe_for_reeval): Remove.
13893         (unsafe_for_reeval): Update.
13894         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13895         Remove.
13896 objc:
13897         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13898         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13900 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13902         * diagnostic.c (print_error_function): Remove.
13903         (default_print_error_function): Rename.
13904         (report_error_function): Update.
13905         * diagnostic.h (print_error_function): Remove.
13906         (default_print_error_function): Remove.
13907         * langhooks-def.h (struct diagnostic_context): Predeclare.
13908         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13909         (LANG_HOOKS_INITIALIZER): Update.
13910         * langhooks.h (struct diagnostic context): Predeclare.
13911         (struct lang_hooks): New hook.
13913 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13915         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13916         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13917         !flag_pic.
13918         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13919         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13920         of PIC_OFFSET_TABLE_REGNUM thruout.
13921         * config/rs6000/rs6000.md: Likewise.
13922         * config/rs6000/darwin.h: Likewise.
13924 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13926         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13927         unsigned HOST_WIDE_INT, not unsigned int.
13929 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13931         PR middle-end/6096, middle-end/6098, middle-end/6099
13932         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13933         CODE_LABELs.
13934         (fill_slots_from_thread): Likewise.
13936 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13938         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13939         floating fields in float regs.
13940         (function_arg_record_value_2): Likewise.
13942 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13944         * config/mmix/mmix.md (define_constants): Remove misleading
13945         FIXME.  Add MMIX_fp_rO_OFFSET.
13946         ("nonlocal_goto_receiver"): Don't have stack-frame address of
13947         saved rO as part of the pattern.  Remove FIXME.
13948         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
13949         here, at output-time.
13951 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13953         PR middle-end/6100
13954         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13955         REG_BR_PRED.
13956         (output_v9branch): Likewise.
13958 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13960         * gcc.c: Revert previous patch for now.
13961         * config/i386/djgpp.h: Likewise.
13963 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13965         * config/mmix/crti.asm (_init): Register _fini with atexit.
13966         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13968 2002-03-31  Richard Henderson  <rth@redhat.com>
13970         PR target/3997
13971         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13972         (ASM_OUTPUT_DEF_FROM_DECLS): New.
13974 2002-03-31  Richard Henderson  <rth@redhat.com>
13976         * libgcc2.c (__bb_exit_func): Make static.
13978         * config/alpha/alpha.md (trap): New.
13980 2002-03-31  Richard Henderson  <rth@redhat.com>
13982         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13983         promoted argument types; build trap.
13984         (expand_builtin_trap): New.
13985         (expand_builtin): Use it.
13986         * stmt.c (expand_nl_goto_receivers): Likewise.
13987         * expr.h (expand_builtin_trap): Declare.
13988         * libfuncs.h (LTI_abort, abort_libfunc): New.
13989         * optabs.c (init_optabs): Init abort_libfunc.
13991 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13993         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13994         (LINK_COMMAND_SPEC): ... from here.
13995         (init_gcc_specs): Duplicate it here too, omitting
13996         shared_name in the second copy.
13997         (init_spec): Test for duplicate
13998         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14000 2002-03-30  David S. Miller  <davem@redhat.com>
14002         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14003         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14005 2002-03-30  Roger Sayle <roger@eyesopen.com>
14006             Richard Henderson  <rth@redhat.com>
14008         * regmove.c (combine_stack_adjustments_for_block): Avoid
14009         emitting a stack adjustment of zero bytes.  Let delete_insn
14010         update bb->head.
14012 2002-03-30  Richard Henderson  <rth@redhat.com>
14014         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14015         (sparc_emitting_epilogue): New.
14016         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14017         * config/sparc/sparc-protos.h: Update.
14018         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14019         (TARGET_SWITCHES): Update.
14020         * config/sparc/sparc.md (return): Remove.
14021         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14022         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14023         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14024         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14025         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14026         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14027         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14028         Remove MASK_EPILOGUE.
14029         * doc/invoke.texi: Update.
14031 2002-03-30  Daniel Berlin  <dan@dberlin.org>
14033         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14034         CPP will start the file for us.
14036 2002-03-30  Richard Henderson  <rth@redhat.com>
14038         PR target/5446
14039         * config/ia64/ia64.c (group_barrier_needed_p): Special case
14040         prologue_allocate_stack.
14041         (ia64_single_set): Use insn codes for recognition of special
14042         cases, not rtl matching.
14043         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14045 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
14047         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14049 2002-03-30  Richard Henderson  <rth@redhat.com>
14051         PR target/6032
14052         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14053         or -fomit-frame-pointer with profiling.
14054         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14055         (FUNCTION_PROFILER): Do nothing.
14056         (PROFILE_HOOK): New.
14057         * config/sparc/sparc.c (sparc_override_options): Don't check
14058         code models for profiling.
14059         (sparc_function_profiler): Remove.
14060         (sparc_profile_hook): New.
14061         * config/sparc/sparc-protos.h: Update.
14063 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
14065         PR optimization/6086
14066         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14067         of SUBREG of volatile MEM or because the MEM was mode dependent,
14068         return CLOBBER instead of unmodified SUBREG.
14070 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
14072         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14073         when not optimizing.
14075         * toplev.c (rest_of_compilation): Cann mark_constant_function
14076         only when optimizing.
14078         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14079         are NULL.
14081         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14082         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14083         (try_optimize_cfg): clear all AUX fields.
14085         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14086         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14087         (ix86_address_cost): Be prepared for SUBREGed registers.
14088         (legitimate_address_p): Accept SUBREGed registers.
14090 2002-03-29  Richard Henderson  <rth@redhat.com>
14092         PR target/5672
14093         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14095 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14097         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14098         for aggregate and TFmode types.
14100 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
14102         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14104 2002-03-29  Richard Henderson  <rth@redhat.com>
14106         PR target/5886
14107         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14108         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14110 2002-03-29  Richard Henderson  <rth@redhat.com>
14112         PR target/6041
14113         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14114         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14115         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14116         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14117         conditional.
14118         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14120 2002-03-29  Dale Johannesen <dalej@apple.com>
14122         * loop.c (combine_movables): Do allow combination of pseudos.
14124 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
14126         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14127         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14128         No functional change except ...
14129         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
14130         * doc/install.texi (*-*-freebsd*): Document port configuration.
14132 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14134         * Makefile.in (convert.o, calls.o, expmed.o): Update.
14135         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14136         Use new hooks.
14137         * builtin-types.def (BT_PTRMODE): Update.
14138         * c-common.c (type_for_size): Rename c_common_type_for_size.
14139         (type_for_mode): Similarly.
14140         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14141         Use new hook.
14142         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14143         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14144         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14145         Redefine.
14146         * c-typeck.c (common_type, comptypes, default_conversion):
14147         Use new hooks.
14148         * calls.c: Include langhooks.h.
14149         (emit_library_call_value_1): Use new hooks.  Avoid redundant
14150         calls.
14151         * convert.c: Include langhooks.h
14152         (convert_to_pointer, convert_to_integer): Use new hooks.
14153         * except.c (init_eh): Similarly.
14154         * expmed.c: Include langhooks.h.
14155         (expand_mult_add): Use new hooks.
14156         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14157         try_casesi): Similarly.
14158         * fold-const.c (optimize_bit_field_compare, make_range,
14159         decode_field_reference, fold_truthop, fold): Similarly.
14160         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14161         put_var_into_stack): Similarly.
14162         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14163         LANG_HOOKS_TYPE_FOR_SIZE): New.
14164         (LANG_HOOKS_TYPES_INITIALIZER): Update.
14165         * langhooks.h (lang_hooks_for_types): New hooks.
14166         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14167         * tree.c (get_unwidened, get_narrower): Similarly.
14168         * tree.h (type_for_mode, type_for_size): Remove.
14169         * varasm.c (force_const_mem): Use new hooks.
14170         * utils2.c (nonbinary_modular_operation): Update.
14171 objc:
14172         * objc-act.c (handle_impent): Update.
14173         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14174         Redefine.
14176 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
14178         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14179         * config/ia64/ia64.c (basereg_operand): New.
14180         * config/ia64/ia64-protos.h (basereg_operand): Declare.
14181         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14183 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
14185         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14186         unwind information when frame_pointer_needed.
14187         (mmix_assemble_integer): Tweak wording in comment.
14189 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14191         * Makefile.in (except.o): Update.
14192         * except.c: Include langhooks.h.
14193         (init_eh): Use langhook.
14194         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14195         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14196         (LANG_HOOKS_INITIALIZER): Update.
14197         * langhooks.h (lang_hooks_for_types): New.
14198         (struct lang_hooks): Add it.
14199         * tree.c (make_lang_type_fn, make_lang_type): Remove.
14200         * tree.h (make_lang_type_fn, make_lang_type): Remove.
14201 config:
14202         * alpha/alpha.c: Include langhooks.h.
14203         (alpha_build_va_list): Use langhook.
14204         * d30v/d30v.c: Include langhooks.h.
14205         (d30v_build_va_list): Use langhook.
14206         * i386/i386.c: Include langhooks.h.
14207         (ix86_build_va_list): Use langhook.
14208         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14209         * s390/s390.c: Include langhooks.h.
14210         (s390_build_va_list): Use langhook.
14211         * stormy16/stormy16.c: Include langhooks.h.
14212         (stormy16_build_va_list): Use langhook.
14214 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
14216         PR c++/5964
14217         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14218         attributes.
14219         (length): Compute variable length for branches/calls/jumps here.
14220         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14221         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14222         define branch_type attribute.
14223         (divsi3_sp32): Maximum length is 6 not 7.
14224         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14225         call_address_untyped_struct_value_sp32,
14226         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14227         * config/sparc/sparc.c (empty_delay_slot): New function.
14228         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14229         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14231 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
14233         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14234         nonzero_bits if not needed.
14235         (nonzero_bits) [XOR]: Likewise.
14236         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14237         reg_last_set_mode and mode are both MODE_INT, but not equal.
14238         (record_value_for_reg): Compute reg_last_set_nonzero_bits
14239         in nonzero_bits_mode for MODE_INT modes.
14241 2002-03-28  Richard Henderson  <rth@redhat.com>
14243         PR target/5715
14244         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14245         to GAS.  Correct drift between alternatives.
14247 2002-03-28  Richard Henderson  <rth@redhat.com>
14249         PR target/6087
14250         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14252 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
14254         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14255         emulation to the linker.
14257 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
14259         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14260         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14262 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
14264         * combine.c (simplify_and_const_int): Make sure to apply mask
14265         when force_to_mode returns a constant integer.  PR3311.
14267 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14269         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14271 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14273         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14274         and Objective-C Dialect Options.
14276 2002-03-28  Richard Henderson  <rth@redhat.com>
14278         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14279         comparison should be done vs !=0 not >0 return code.  Tidy cases.
14281 2002-03-28  Richard Henderson  <rth@redhat.com>
14283         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
14284         on to c_expand_body.
14285         * c-tree.h (finish_function): Update decl.
14286         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14288 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14290         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14292 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
14294         * rtlanal.c: Include flags.h
14295         (may_trap_p): Do not mark FP operations if trapping
14296         if !flag_trapping_math
14297         * Makefile.in (rtlanal.o): Add dependency on flag.h
14298         * ifcvt.c (noce_operand_ok): Avoid the lameness.
14300 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
14302         * mips.md: Use dconst1, not 1.0, as first argument of
14303         REAL_VALUE_LDEXP.  Don't use union real_extract.
14305 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
14307         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14308         rather than $target.  Heed program_prefix and
14309         program_transform_name.  Search for gas in cross-compiler case too.
14310         "test -x" rather than "test -f".
14311         (gcc_cv_ld): Likewise.
14312         (gcc_cv_nm): Heed program_prefix and program_transform_name.
14313         (gcc_cv_objdump): Likewise.
14314         * configure: Regenerate.
14316 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14318         * Makefile.in (attribs.o): Update.
14319         * attribs.c: Include langhooks.h.
14320         (decl_attributes): Use langhook.
14321         * c-decl.c (insert_default_attributes): Rename.
14322         * c-tree.h (c_insert_default_attributes): New.
14323         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14324         (LANG_HOOKS_INITIALIZER): Update.
14325         * langhooks.h (struct lang_hooks): New hook.
14326         * tree.h (insert_default_attributes): Remove.
14327 objc:
14328         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14330 2002-03-27  Andreas Schwab  <schwab@suse.de>
14332         * config/i386/i386.c (classify_argument): Also check for
14333         QUAL_UNION_TYPE.
14335 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14337         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14338         any more.
14340 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14342         * i960.md (ret): Set PC.
14343         (nonlocal_goto): Fix expander.
14344         * builtins.c (epxand_builin_longjmp): Check that we've emitted
14345         some jump or call.
14347 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14349         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14350         of libcall regions.
14352 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14354         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14355         assigning to BLOCK_FOR_INSN directly.
14357 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14359         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14361 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14363         * c-common.c (c_expand_expr): Fix prototype.
14364         * c-common.h (c_expand_expr): Always declare, update.
14365         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14366         * c-objc-common.c (c_objc_common_init): No global hook.
14367         * expr.c (expand_expr): Use langhook.
14368         * expr.h (enum expand_modifier): Conditionally declare.
14369         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14370         (LANG_HOOKS_INITIALIZER): Update.
14371         * langhooks.c (lhd_expand_expr): New.
14372         * langhooks.h (struct lang_hooks): New hook.
14373         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14374         (lang_independent_init): Don't default hook.
14375 objc:
14376         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14378 2002-03-27  Richard Henderson  <rth@redhat.com>
14380         PR target/6054
14381         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14382         TARGET_CONST_GP.  Simplify conditions.
14384 2002-03-27  Richard Henderson  <rth@redhat.com>
14386         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14387         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14388         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14390 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
14392         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14393         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14394         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14395         Remove unnecessary masks.
14396         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14397         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14398         -mwindows, -mdll switches and their negations.
14400 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14402         * gcc-common.c (lang_mark_false_label_stack): Remove.
14403         * ggc.h (lang_mark_false_label_stack): Similarly.
14405 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14407         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14409         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14410         or __rtems_ is defined.
14412 2002-03-26  Richard Henderson  <rth@redhat.com>
14414         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14415         if a non-trivial load was emitted.
14416         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
14417         in high+extra+low case.
14419 2002-03-26  Richard Henderson  <rth@redhat.com>
14421         * config.gcc (sparc*-solaris): Use float_format=sparc.
14423 2002-03-26  Richard Henderson  <rth@redhat.com>
14425         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14426         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14427         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14428         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14429         (WINT_TYPE_SIZE): Fix at 32.
14431 2002-03-26  Richard Henderson  <rth@redhat.com>
14433         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14434         until after eh landing pad generation.
14435         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14436         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14438 2002-03-26  Richard Henderson  <rth@redhat.com>
14440         * expr.h (ADD_PARM_SIZE): One more convert for INC.
14442 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
14444         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
14445         and warning switches.
14446         (cc1_options):  Likewise.
14448 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
14450         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14451         Restore more of the signal context.  Set no_reg_stack_frame.
14452         * config/ia64/unwind-ia64.c (unw_state_record):
14453         Add no_reg_stack_frame, comments.
14454         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14455         (uw_update_context): Adjust bsp when unwinding from leaf,
14456         but not signal frame.
14458 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
14460         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14462 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14464         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14466 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14468         PR target/5621
14469         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14470         "Add a pool_range attribute", which was lost during the ARM/Thumb
14471         merge.
14473 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14475         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14476         a register into the MAC16 accumulator.
14478 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
14480         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14481         (Warning Options): Document -Wswitch-enum.
14482         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
14483         -Wswitch.
14484         (warn_switch_enum): Define variables.
14485         * flags.h (warn_switch_enum): Declare variables.
14486         * stmt.c (expand_end_case_type): When warn_switch_enum /
14487         -Wswitch-enum, perform switch checks.
14488         Fix PR c/5044.
14490 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14492         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14493         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14494         (reload_muladdsi_compare0_scratch): Delete.
14496 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
14498         * doc/install.texi (*-*-freebsd*): Update.
14500 2002-03-26  Richard Henderson  <rth@redhat.com>
14502         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14503         (SUB_PARM_SIZE): Cast DEC to ssizetype.
14505         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14506         types from the normal argument frame.
14508         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14509         variable sized objects by reference.
14510         (sparc_va_arg): Receive them by reference too.
14512 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
14514         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14515         code to not restoring global registers.
14517 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14519         * Makefile.in (ggc-common.o): Update.
14520         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14521         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14522         * c-tree.h (c_mark_tree): New.
14523         * ggc-common.c: Include langhooks.h.
14524         (gcc_mark_trees): Use new langhook.
14525         * ggc-callbacks.c: Delete file.
14526         * ggc.h (lang_mark_tree): Remove.
14527         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14528         (LANG_HOOKS_INITIALIZER): Update.
14529         * langhooks.h (struct lang_hooks): New hook.
14530 objc:
14531         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14533 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14535         * doc/cpp.texi: Exclude entire Top node from printed manual.
14536         Move option index after directive index.  Insert page breaks
14537         before GFDL and concept index.  Index environment variables
14538         with command line options.
14539         * doc/cppenv.texi: Use @vtable for environment variable list.
14540         Add paragraph explaining semantics of empty elements in path
14541         variables.  Exclude a cross-reference to Fishkill from the
14542         manpage.  Remove an unnecessary cross-reference of the entry
14543         right above the referer.  Don't use @anchor in text that goes
14544         into manpage.
14545         * doc/cppopts.texi: Cross-reference the environment variables
14546         section, not the specific environment variable, for consistency.
14548 2002-03-25  Richard Henderson  <rth@redhat.com>
14550         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14551         anywhere in the block.  Don't refer to insns that have been
14552         removed from the chain.  Iterate backward through the new insns.
14553         Don't refer to edges that have been removed.
14555 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
14557         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14558         test for overflow of constant.
14560 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
14562         PR target/2623
14563         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14564         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14565         these patterns on arm_archv4.
14567 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
14569         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14570         int".
14572 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14574         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
14575         float_handled, float_handler, float_signal, set_float_handler,
14576         and do_float_handler.  Set handler for SIGFPE to crash_signal.
14577         * toplev.h: Don't prototype do_float_handler.
14579         * c-lex.c: Fold parse_float into lex_number.  Make warning
14580         about portability of hex float constants more informative, and
14581         don't issue it on top of a syntax error.
14582         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14583         their callers.
14584         * real.h: Define REAL_VALUE_ABS here...
14585         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
14586         simplify_unary_real, simplify_binary_real, and
14587         simplify_binary_is2orm1 into their callers.
14588         * tree.c: Fold build_real_from_int_cst_1 into caller.
14590         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14592         * tsystem.h: Include float.h here...
14593         * libgcc2.c: ... not here.
14595 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
14597         Fixes for: PR bootstrap/3591, target/5676
14598         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14599         defined.  Do not disable exceptions or rtti.
14600         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14601         mcore.h.  Disable exceptions and rtti, since they are not
14602         supported by EPOC.
14604 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14606         * c-decl.c (maybe_build_cleanup): Remove.
14607         * expr.c (expand_expr): Use langhook.
14608         * langhooks-def.h (lhd_return_null_tree,
14609         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14610         (LANGHOOKS_INITIALIZER): Update.
14611         * langhooks.c (lhd_return_null_tree): New.
14612         * langhooks.h (struct lang_hooks): New hook.
14613         * tree-inline.c (initialize_inlined_parameters): Use langhook.
14614         * tree.h (maybe_build_cleanup): Remove.
14616 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14618         * regrename.c (build_def_use): Move recog_memoized
14619         before extract_insn.
14621 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14623         PR target/6043
14624         * expr.c (emit_group_store): Handle storing into CONCAT.
14626 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14628         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14629         corresponding MATCH_DUP.
14631 2002-03-24  Richard Henderson  <rth@redhat.com>
14633         * unroll.c (unroll_loop): Zero label_map.
14635         * gcse.c: Include except.h.
14636         * Makefile.in (gcse.o): Update.
14638 2002-03-24  Richard Henderson  <rth@redhat.com>
14640         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14641         Do resolve_unique_section before shared data clause.
14643 2002-03-24  Richard Henderson  <rth@redhat.com>
14645         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14647 2002-03-24  Richard Henderson  <rth@redhat.com>
14649         * recog.c (peephole2_optimize): Split blocks when EH insns are
14650         generated in the middle of a block.  Do global life update if
14651         zapped EH edges.
14653 2002-03-24  Richard Henderson  <rth@redhat.com>
14655         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14657 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14659         preprocessor/3951
14660         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14661         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14662         (init_dependency_output): Don't make no_output decision here.
14664 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
14666         * stmt.c (check_for_full_enumeration_handling): Remove tests of
14667         warn_switch.  Update description.
14668         (expand_end_case_type): Call check_for_full_enumeration_handling
14669         when warn_switch.
14671 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14673         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14674         (m68hc11_split_move): Call it to see if the source and destination
14675         operands use the same direction auto inc/dec mode, otherwise make the
14676         source an offsetable memory operand and generate an add.
14678 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14680         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14681         register for operand 2.
14682         ("*subsi3_zero_extendqi"): Likewise.
14683         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14684         bits so that it is compatible with a pop.
14685         ("*andhi3_gen"): Likewise.
14686         ("xorhi3"): Likewise.
14688 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14690         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14691         -pedantic here...
14692         (cpp_post_options): ... not here.
14694 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14695             Aldy Hernandez  <aldyh@redhat.com>
14697         Removal of separate preprocessor cpp0.
14699         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14700         cpp0, install-common): Update.
14701         * c-common.c (flag_preprocess_only): New.
14702         (c_common_init): Preprocess for -E.
14703         * c-common.h (flag_preprocess_only): New.
14704         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14705         * c-objc-common.c (c_init_decl_processing): Exit quickly
14706         for NULL return from c_common_init.
14707         * cpplib.h (cpp_preprocess_file): New.
14708         * cppmain.c (main, general_init, pfile, progname): Remove.
14709         (do_preprocessing): Rename cpp_preprocess_file, don't call
14710         cpp_finish.  Don't close stdout here.
14711         (setup_callbacks): Update prototype.
14712         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14713         Update.
14714         * tradcpp.c (main): Ignore -quiet.
14715 objc:
14716         * lang-specs.h (default_compilers): Preprocess with cc1obj.
14718 2002-03-24  Richard Henderson  <rth@redhat.com>
14720         PR optimization/5742
14721         * machmode.def: Add inner mode field to complex modes.
14722         * config/mips/mips.c (mips_function_value): Always define.  Add
14723         new argument to handle libcalls.
14724         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14725         (FUNCTION_VALUE): Likewise.
14726         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14727         * config/mips/mips-protos.h: Update.
14729 2002-03-23  Richard Henderson  <rth@redhat.com>
14731         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14732         * config/sparc/sparc-protos.h: Update.
14733         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14735 2002-03-23  Richard Henderson  <rth@redhat.com>
14737         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14738         _start or _init begins the text segment.
14740 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
14742         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
14743         not HOST_WIDEST_INT.
14744         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14746 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
14748         PR java/5489
14749         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14750         operand argument to output_return_instruction.
14751         * arm.c (arm_print_operand, case 'd'): If the operand is
14752         const_true_rtx then just return.
14753         (arm_print_operand, case 'D'): If the operand is const_true_rtx
14754         then abort.
14756 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
14758         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14759         (Warning Options): Document -Wswitch-default.
14760         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
14761         -Wswitch.
14762         (warn_switch_default): Define variable.
14763         (warn_switch): Update comment.
14764         * flags.h (warn_switch_default): Declare variable.
14765         (warn_switch): Update comment.
14766         * stmt.c (expand_end_case): Check for and, when
14767         warn_switch_no_default, warn of a missing default case.
14769 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
14771         * real.h (N): Special case 128 bit doubles.
14773         * combine.c (simplify_comparison): When widening modes, ignore
14774         sign extension on CONST_INTs.
14776 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14778         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14779         passed to adjust_address.  Fix comment formatting.
14782 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
14784         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14785         Always make REAL_VALUE_TYPE a struct containing an array of
14786         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
14787         big it is.  Don't declare or use union real_extract.
14789         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14790         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14791         (print_operand), config/arm/arm.c (output_move_double),
14792         config/arm/arm.md (consttable_4, consttable_8),
14793         config/romp/romp.c (output_fpops), config/s390/s390.h
14794         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14795         (xtensa_output_literal): Don't use union real_extract.
14797         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14798         (sfmode_constant_to_ulong), config/ns32k/merlin.h
14799         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14800         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14801         (PRINT_OPERAND): Don't use local version of union
14802         real_extract.
14804         * config/convex/convex.c (check_float_value), config/vax/vax.c
14805         (vax_float_literal), config/m88k/m88k.md (divdf3),
14806         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14807         config/pdp11/pdp11.c (output_move_quad): Don't do host
14808         arithmetic on target floating point quantities.
14810         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14811         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14813         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14814         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14816         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14817         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14818         INFINITY.
14819         * print-rtl.c (print_rtx): Disable code which needs
14820         floating-point emulator.
14821         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14822         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14823         depending on HOST_FLOAT_FORMAT to be defined properly.
14825         * config/1750a/1750a.c (get_double, float_label): Delete.
14826         (print_operand): Delete huge commented-out chunk.  Use
14827         REAL_VALUE_TO_DECIMAL.
14828         * config/1750a/1750a-protos.h: Delete prototypes of deleted
14829         functions.
14830         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14831         IEEE_FLOAT_FORMAT.
14832         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14833         Use REAL_VALUE_TO_DECIMAL as ELF version does.
14834         * config/m88k/m88k.c (real_power_of_2_operand,
14835         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14836         real_extract out of the union; run the input through
14837         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14838         from that into the union.
14839         * config/pdp11/pdp11.c (output_move_double): Rearrange
14840         parentheses to make automatic indenter happy.
14842         * doc/tm.texi (Cross-compilation): Rename node to "Floating
14843         Point" and rewrite to describe current situation.  Also adjust
14844         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14845         match code.
14846         * doc/rtl.texi: Adjust cross reference.
14848 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14850         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14851         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14852         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14853         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14854         prevent use of sp as a reload register.
14855         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14856         non_acc_reg_operand.
14857         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14858         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14859         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14860         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14862 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14864         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14865         * cpplex.c (unterminated): Delete.
14866         (parse_string): No string literal may extend over multiple
14867         lines.  Suppress the error when preprocessing assembly.
14868         * cppmain.c (scan_translation_unit): Strings are single-line.
14870         * doc/cpp.texi: Update to match.
14872 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14874         PR optimization/5854
14875         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14876         Shut up warnings.
14877         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14878         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14879         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14880         const0 if scratch register was not allocated.
14881         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14882         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14883         with GEN_INT (...).
14884         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14885         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14886         with GEN_INT (...) everywhere.  Remove constraints in define_split
14887         patterns.
14888         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14889         require scratch register for setting 0 into regs/non-pushable memory.
14891 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14893         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14894         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14896 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
14898         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
14899         * cppinit.c (cpp_create_reader):  On by default.
14900         (cpp_handle_option):  Handle -W[no-]endif-labels.
14901         (cpp_post_options):  Also enable if -pedantic.
14902         * cpplib.c (do_else):  Use it.
14903         (do_endif):  Likewise.
14904         * doc/cppopts.texi:  Document new option.
14905         * doc/invoke.texi:  Document new option.
14907 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
14909         * config/i386/i386.c, config/i386/i386.md: Change all occurences
14910         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14912 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14914         * flow.c (calculate_global_regs_live): Clear aux fields of
14915         ENTRY and EXIT.
14917 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14919         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14920         REG or MEM subregs, pass rtx * instead of rtx to it.
14921         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14922         rtx * instead of rtx to alter_subreg.
14923         * config/m32r/m32r.c (gen_split_move_double): Likewise.
14924         * config/pj/pj.c (pj_output_rval): Likewise.
14926 2002-03-22  Richard Henderson  <rth@redhat.com>
14928         PR target/3177
14929         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14930         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14931         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14932         (ia64_expand_prologue): Look at int_regs, not words, for number
14933         of incomming int regs.
14935 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
14937         * expr.c (expand_expr): A RESULT_DECL is part of a call.
14939 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
14941         * toplev.c (flag_loop_optimize, flag_crossjumping):
14942         New static variables.
14943         (rest_of_compilation): Conditionalize crossjumping and
14944         loop optimizer.
14945         (parse_options_and_default_flags): Default loop_optimize and
14946         crossjumping.
14947         (lang_independent_options): Add -fcrossjumping and -floop-optimize
14948         * invoke.texi (crossjumping, loop-optimize): Document.
14950 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14952         * real.c (eiisneg): Move outside #ifdef NANS.
14954 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14956         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14957         frequencies match; avoid match on different loop depths.
14958         (try_crossjump_to_bb): Kill tests that no longer brings time
14959         savings.
14960         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14961         updating code.
14962         (split_edge): Likewise.
14964         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14965         variable.
14967         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14968         * cfgrtl.c: Include insn-config.h
14969         (split_block) Dirtify block in presence of conditional execution
14971 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14973         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14974         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14975         (function_arg): Constify CUMULATIVE_ARGS.
14976         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14977         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14978         (UNITS_PER_DOUBLE): New macro.
14979         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
14980         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
14981         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
14982         fp_regs and stack_words.
14983         (EABI_FLOAT_VARARGS_P): New macro.
14984         * config/mips/mips.c (struct mips_arg_info): New.
14985         (mips_arg_info): New function.
14986         (function_arg_advance): Use it.  Add adjustment instructions here
14987         rather than in function_arg.
14988         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
14989         for VOIDmode at the beginning of the function.
14990         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
14991         (function_arg_pass_by_reference): Likewise.
14992         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14993         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14994         (mips_va_start): Likewise.  Use the new stack_words field of
14995         CUMULATIVE_ARGS to set up overflow area.  Reformat.
14996         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
14997         doubles and other types, aligning the overflow pointer for non-doubles
14998         too.  Remove some code duplication.  Replace hard-coded constants.
15000 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
15002         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15003         (CLASS_UNITS): Undefine.
15004         (CLASS_MAX_NREGS): Use FP_INC.
15005         * config/mips/mips.c (compute_frame_size): Likewise.
15006         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15008 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
15010         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15011         prototype, and handle lexing numbers and identifiers.
15012         (parse_identifier): Update to new form of parse_slow.
15013         (parse_number): Fast path only, use parse_slow otherwise.
15014         (_cpp_lex_direct): Update calls to parse_number.
15016 2002-03-21  DJ Delorie  <dj@redhat.com>
15018         * bb-reorder.c (make_reorder_chain_1): Protect against
15019         when redundant edges are omitted.
15020         * predict.c (dump_prediction): Likewise.
15022 2002-03-21  Richard Henderson  <rth@redhat.com>
15024         PR target/5996
15025         * fixinc/inclhack.def (solaris_stdio_tag): New.
15026         * fixinc/fixincl.x: Regenerate.
15028 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
15030         PR c/5597
15031         * c-typeck.c (process_init_element): Flag non-static
15032         initialization of a flexible array member as illegal.
15034 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
15036         * config/rs6000/t-linux64: New.
15037         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15038         t-ppccomm.  Use t-rs6000 and t-linux64.
15039         (powerpc64-*-gnu* <tmake_file>): Likewise.
15040         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15041         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15042         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15044 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
15046         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15047         flag_really_no_inline instead of optimize == 0.
15049         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15051         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15053         * flags.h (flag_really_no_inline): New.
15055         * c-common.c (c_common_post_options): Initialize
15056         flag_really_no_inline.
15058         * toplev.c (flag_really_no_inline): New.
15060 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
15062         * config/avr/avr.md (length): Fix length computation for
15063         conditional branches.
15065 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15067         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15068         sdbout.o, profile.o): Update.
15069         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15070         langhook.
15071         * c-common.h (gettags): Move here from tree.h.
15072         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15073         insert_block, getdecls, kept_level_p, global_bindings_p): New.
15074         * dbxout.c (dbxout_init): Use getdecls langhook.
15075         * expr.c (expand_expr): Use insert_block langhook.
15076         * fold-const.c: Include langhooks.h.
15077         (fold_range_test, fold_binary_op_with_conditional_arg,
15078         fold): Use global_bindings_p langhook.
15079         * integrate.c (expand_inline_function): Use insert_block langhook.
15080         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15081         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15082         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15083         LANG_HOOKS_GETDECLS): New.
15084         (LANG_HOOKS_INITIALIZER): Update.
15085         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15086         langhook.
15087         * langhooks.h (struct lang_hooks_for_decls): New.
15088         (struct lang_hooks): Update.
15089         * profile.c: Include langhooks.h.
15090         (output_func_start_profiler): Use new langhooks.
15091         * sdbout.c: Include langhooks.h.
15092         (sdbout_init, sdbout_finish): Use getdecls langhook.
15093         * stmt.c: Include langhooks.h.
15094         (expand_fixup, fixup_gotos): Use new langhooks.
15095         * stor-layout.c: Include langhooks.h.
15096         (variable_size): Use global_bindings_p langhook.
15097         * toplev.c (compile_file): Use getdecls langhook.
15098         * tree-inline.c (remap_block): Use insert_block langhook.
15099         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15100         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15102 2002-03-21  Richard Henderson  <rth@redhat.com>
15104         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15105         constants in .data when -fpic.
15107 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15109         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15110         where appropriate.
15112 2002-03-21  Tom Tromey  <tromey@redhat.com>
15114         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
15116 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15118         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15120         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15122 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
15123             Richard Henderson  <rth@redhat.com>
15125         PR c/5354
15126         * c-common.c (c_expand_expr): Preserve result of a statement
15127         expression if needed.
15129 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
15131         PR bootstrap/4195
15132         * genrecog.c (maybe_both_true_mode): Remove.
15133         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15134         * machmode.def (Pmode): Likewise.
15136 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
15138         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15139         (nonlocal_mentioned_p_1): New function.
15140         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15141         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15142         (mark_constant_function): Recognize pure functions.
15143         * rtl.h (global_reg_mentioned_p): New prototype.
15144         * rtlanal.c (global_reg_mentioned_p,
15145         global_reg_mentioned_p_1): New function.
15147 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15149         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15150         UNIX assert.h.
15151         * fixinc/fixincl.x: Regenerate.
15153 2002-03-20  Jason Merrill  <jason@redhat.com>
15155         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15157 2002-03-20  Michael Meissner  <meissner@redhat.com>
15159         * doc/invoke.texi (Optimize Options): Document that -O2 sets
15160         -fstrict-aliasing.
15162 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
15164         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15165         ".literal_position" directive before the constant pool.
15167 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15169         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15170         Add Craig Rodrigues.
15171         Add Brad Lucier to testers.
15173 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15175         PR target/4792
15176         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15177         to if_then_else.
15178         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15179         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15180         instead of insn_extract.
15182 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15184         PR bootstrap/4192
15185         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15187         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15188         stmt if some case has been output.
15190 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15192         PR c/5972
15193         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15194         movsfcc_1, movdfcc_1): Add %O2.
15195         * config/i386/i386.c (print_operand): Handle %ON.
15196         Print . before float condition codes in Sun as cmov syntax.
15197         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15198         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15199         no longer true.
15201 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
15203         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15204         return instruction if PC was popped.
15206 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
15208         * config/xtensa/xtensa.md: Remove unused type attributes.
15209         (adddi_carry, subddi_carry): Change type attribute to "multi".
15211 2002-03-19  Dale Johannesen  <dalej@apple.com>
15213         PR optimization/5999, middle-end/5731
15214         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15215         multiplications by reciprocals.
15217 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15219         * Makefile.in: Update.
15220         * c-common.c: Include langhooks.h.
15221         (inline_forbidden_p): Use new hook.
15222         * diagnostic.c: Include langhooks.h.
15223         (format_with_decl, announce_function,
15224         default_print_error_function): Use new hook.
15225         * dwarf2out.c (dwarf2_name): Use new hook.
15226         * function.c: Include langhooks.h.
15227         (init_function_start): Use new hook.
15228         * langhooks-def.h (lhd_decl_printable_name): New.
15229         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15230         (LANGHOOKS_INITIALIZER): Update.
15231         * langhooks.c (lhd_decl_printable_name): New.
15232         * langhooks.h (struct lang_hooks): New hook.
15233         * toplev.c (decl_name, decl_printable_name): Remove.
15234         (open_dump_file): Use new hook.
15235         (process_options): Remove old hook.
15236         * tree.h (decl_printable_name): Remove.
15237 objc:
15238         * objc-act.c (objc_init): Remove old hook.
15239         (objc_printable_name): Export.
15240         * objc-act.h (objc_printable_name): New.
15241         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15243 2002-03-19  Jim Blandy  <jimb@redhat.com>
15245         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15246         the start_source_file debug hook, not the current line number.
15248 2002-03-19  Richard Henderson  <rth@redhat.com>
15250         * flow.c (EH_USES): Provide default.
15251         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15252         * doc/tm.texi (EH_USES): New.
15254         * config/ia64/ia64.c (ia64_eh_uses): New.
15255         * config/ia64/ia64-protos.h: Update.
15256         * config/ia64/ia64.h (EH_USES): New.
15258 2002-03-19  Richard Henderson  <rth@redhat.com>
15260         * varasm.c (output_constant_def): Fix stupid typo.
15262 2002-03-19  Richard Henderson  <rth@redhat.com>
15264         PR 5879
15265         * except.c (current_function_has_exception_handlers): New.
15266         * except.h: Declare it.
15267         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15268         Combine tests that disable all sibcalls for the function.
15270 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
15272         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15273         for INTEGER_CST.
15275 2002-03-19  Richard Henderson  <rth@redhat.com>
15277         PR 5977, 5991
15278         * config/ia64/ia64.c: Revert 2002-03-01 patch.
15279         * config/ia64/ia64.h (INIT_EXPANDERS): New.
15281 2002-03-19  Jim Blandy  <jimb@redhat.com>
15283         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15284         name, even if the replacement list contains no tokens, as required
15285         by Dwarf.
15287 2002-03-19  Jason Merrill  <jason@redhat.com>
15289         * varasm.c (globalize_decl): Get the name from the RTL, not
15290         DECL_ASSEMBLER_NAME.
15292         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15294 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
15296         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15297         subdi_carry): Define.
15299 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15301         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15302         about -fpic/-fPIC if extra_warnings set.
15304 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15306         * expr.c (expand_expr): Sign-extend CONST_INT generated from
15307         TREE_STRING_POINTER.
15308         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15310 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15312         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15313         in favor of SP if FRAME_POINTER_REQUIRED is false.
15315 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
15317         * emit-rtl.c (gen_int_mode): New function.
15318         * rtl.h: Prototype for it.
15319         * combine.c (make_extraction, simplify_comparison), expmed.c
15320         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15321         (convert_modes, store_field), optabs.c (expand_fix),
15322         simplify-rtx.c (neg_const_int, simplify_unary_real),
15324         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15325         Use it instead of GEN_INT (trunc_int_for_mode (...)).
15327 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
15329         PR c/5656
15330         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15331         convert_parm_for_inlining.
15332         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15333         Define.
15334         * langhooks-def.h: Likewise.
15335         * objc/objc-lang.c: Likewise.
15336         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15337         function.
15338         * tree-inline.c (initialize_inlined_parameters):
15339         Call convert_parm_for_inlining lang hook if needed.
15340         * c-typeck.c (c_convert_parm_for_inlining): New function.
15341         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15343 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
15345         * calls.c (precompute_arguments): Do not assume that temporaries
15346         can be destroyed after expanding the argument.
15347         (expand_call): Likewise.
15349 2002-03-15  Eric Christopher  <echristo@redhat.com>
15351         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15352         Fix register preference on last change.
15353         * config/mips/mips.c (mips_return_in_memory): New function.
15354         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15355         * config/mips/mips-protos.h: Declare.
15356         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15357         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15359 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
15361         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15362         a register too.
15363         (anddi3, iorsi3): Likewise.
15365         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15366         use %gprel for symbols that are going to be placed in linkonce
15367         sections.
15369         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15370         RETURN_ADDRESS_POINTER_REGNUM to $ra.
15371         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15372         not needed.  Disregard leaf_function_p().
15373         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15374         mips16 frame pointer.
15375         * config/mips/mips.md (store ra): Only to small SP offsets.
15376         2001-08-22  Graham Stott  <grahams@redhat.com>
15377         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15378         return a REG rtx for the return address register.
15380 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
15382         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15383         constant-pool addresses as "mode-dependent".
15384         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15386 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
15388         PR target/5740
15389         * expr.c (emit_group_load): Use extract_bit_field if
15390         needed for CONCAT arguments.
15392 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
15394         PR target/4863
15395         * arm.md (tablejump): Make this a define_expand.  For PIC add the
15396         offset to the base of the table.
15397         (thumb_tablejump): Matcher for Thumb tablejump insn.
15398         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15399         as the difference of two labels.
15400         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15401         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15402         tables in the code.
15403         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15404         * arm.c (get_jump_table_size): If the table is not in the text
15405         section, return zero.
15407 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
15409         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15410         of gen_rtx_SUBREG.
15411         (arm_reload_out_hi): Use gen_lowpart instead of
15412         gen_rtx_SUBREG to access QImode components.
15413         * config/arm/arm.md: Disable zero_extend split for QImode
15414         subregs in BIG_ENDIAN mode.
15415         (storehi_bigend): Match use of least significant byte.
15416         (storeinthi): Remove extraneous SUBREG.
15417         Add missing construction of operands[2].
15418         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15419         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15420         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15422 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
15424         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15425         any_operand.
15427 2002-03-17  Richard Henderson  <rth@redhat.com>
15429         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15430         explicitly.
15432 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15434         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15435         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15437 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15439         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15441         * predict.c (estimate_bb_frequencies): Delete unused variables.
15443 2002-03-17  Richard Henderson  <rth@redhat.com>
15445         * config/ia64/ia64.c (ia64_attribute_table): Move before
15446         targetm definition.  Make static.
15448 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
15450         * c-common.h (yyparse, c_common_parse_file): New.
15451         * c-lang.c: Include c-common.h.
15452         (LANG_HOOKS_PARSE_FILE): Redefine.
15453         * c-lex.c: Include c-common.h.
15454         (yyparse): Rename c_common_parse_file.  Call yyparse.
15455         * c-parse.in (yyparse): Remove macro.
15456         * c-tree.h (yyparse_1): Remove.
15457         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15458         (LANG_HOOKS_INITIALIZER): Update.
15459         * langhooks.h (struct lang_hoooks): New hook parse_file.
15460         * toplev.c (compile_file): Use parse_file hook.
15461         * tree.h (yyparse): Remove.
15462         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15464 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15466         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15467         float_truncate, not fix.
15468         ("*truncdfsf2_real"): Ditto.
15469         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15471         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15473 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
15475         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15476         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
15477         where appropriate.  Make the second reference to
15478         leaf_function_p a function call, as intended.  Reindented.
15480         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15481         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15483         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15484         add register to non-constant into sp.
15486         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15487         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15488         (mips16_gp_pseudo_rtx): Lose.
15489         (INIT_EXPANDERS): Deleted.
15490         * config/mips/mips.c (mips_init_machine_status): New.
15491         (mips_free_machine_status): New.
15492         (mips_mark_machine_status): New.
15493         (override_options): Set them.
15494         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15495         (struct machine_function): ... new.  Replaced all references.
15496         (mips_add_gc_roots): Don't mark them.
15497         (embedded_pic_fnaddr_reg): New, extracted from...
15498         (embedded_pic_offset): ... here.
15499         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15500         (movsi): Likewise.
15502 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15504         * cppinit.c: Revert -MD removal.
15506 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15508         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15509         soft registers by default for 68HC12.
15510         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15511         when compiling with -fomit-frame-pointer.
15512         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15513         (expand_epilogue): Likewise.
15514         (m68hc11_gen_rotate): Use exg when rotating by 8.
15516 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15518         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15519         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15520         (splits): Remove unused add splits.
15521         ("*addhi3_68hc12"): Tune constraints.
15522         ("addhi_sp"): Try to use X instead of Y in all cases and if the
15523         constant fits in 8-bits and D is dead use abx/aby instructions.
15524         ("*addhi3"): Remove extern declaration of ix_reg.
15525         ("*subsi3"): Optimize and provide new split.
15526         ("subhi3"): Cleanup.
15527         ("*subhi3_sp"): Avoid saving X if we know it is dead.
15528         (arith splits): For 68hc12 save the address register on the stack
15529         and do the arithmetic operation with a pop.
15531 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15533         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15534         allocating QImode in address registers.
15535         ("*movqi_m68hc11"): Likewise.
15537 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
15539         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15541 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15543         * cppinit.c (print_help): Display -MD and -MMD.
15544         Don't display usage string.  Update assertion syntax and
15545         typo.
15546         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15547         (cpp_handle_option): Update.
15549 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
15551         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15552         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15553         and define it so that regardless of target CPU size,
15554         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15555         of "int" rather than "long."
15557 2002-03-15  Richard Henderson  <rth@redhat.com>
15559         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15560         size as a tree.
15562 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15564         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15565         ("tstqi" split): Avoid using memory for tstqi on address register.
15566         (splits): Remove constraints.
15567         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15568         ("cmpdf", "cmpsf"): Remove since not used.
15569         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15570         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15572 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15574         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15575         ("neghi2"): Tighten constraints.
15576         ("one_cmplsi2"): Optimize and simplify split.
15577         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15579 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15581         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15582         and split of AND operation to clear the upper bits.
15583         ("*logicalsi3_zextqi"): Likewise.
15584         ("*logicallhi3_zexthi_ashift8"): Likewise.
15585         ("*logicalsi3_silshr16"): Likewise.
15586         ("logicalsi3_silshl16"): Likewise.
15587         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15589 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15591         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15592         (m68hc11_indirect_p): New function.
15593         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15594         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15595         TARGET_M6812.
15596         (asm_print_register): Likewise.
15597         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15598         (m68hc11_indirect_p): Declare.
15599         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15600         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15601         (TARGET_SWITCHES): New option -mrelax.
15602         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15603         destination.
15604         ("iorsi3", "xorsi3"): Likewise.
15605         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15606         ("*andhi3_mem"): New to handle destination in memory with bclr
15607         and a scratch register.
15608         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15609         ("*andhi3_const"): New when operand2 is constant.
15610         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15611         ("*andhi3_gen"): Cleanup of the old "andhi3".
15612         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15613         ("xorqi3"): Update constraints.
15615 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15617         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15618         for reg_equiv_memory_loc when the operand is a register that does
15619         not get a hard register (stack location).
15620         (tst_operand): After reload, accept all memory operand.
15621         (symbolic_memory_operand): Fix detection of symbolic references.
15622         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15623         accept symbols and any constant.
15625 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15627         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15628         note on the insn that sets the soft frame register.
15629         (must_parenthesize): ix and iy are also reserved names.
15630         (print_operand_address): One more place where parenthesis are required
15631         to avoid confusion with register names.
15632         (m68hc11_gen_movhi): Allow push of stack pointer.
15633         (m68hc11_check_z_replacement): Fix handling of parallel with a
15634         clobber.
15635         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15636         the replacement register is.
15637         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15638         and D8_REGS classes.
15639         (MODES_TIEABLE_P): All modes are tieable except QImode.
15641 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15643         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15644         (___subdi3): Likewise.
15645         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15646         (__map_data_section): Optimize 68hc11 case.
15648 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15650         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15651         than a shift to avoid adding a register with itself.
15652         (m68hc11_memory_move_cost): Take into account NO_REGS.
15653         (m68hc11_register_move_cost): Update and use memory move cost
15654         for soft registers.
15655         (m68hc11_address_cost): Make cost of valid offset not 0 so that
15656         it gives more opportunities to cse to optimize.
15657         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15658         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15660 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
15662         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15663         * c-common.def (CLEANUP_STMT): New tree node.
15664         * c-common.h (CLEANUP_DECL): New macro.
15665         (CLEANUP_EXPR): Likewise.
15666         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15667         * expr.c (expand_expr): Tidy.
15668         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15669         * tree-inline.c (initialize_inlined_parameters): Clean up
15670         new local variables.
15672 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15674         PR bootstrap/4128
15675         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15676         before movrXX only, use reg_overlap_mentioned_p.
15677         Only special case NE if just one insn can be generated.
15679 2002-03-15  Jason Merrill  <jason@redhat.com>
15681         * varasm.c (assemble_variable): Call resolve_unique_section before
15682         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
15683         of error_mark_node.
15685 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15687         PR target/5170
15688         * arm.md (split pattern for thumb shiftable immediates): Add comment
15689         explaining non-obvious test.
15691 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15693         PR target/5712
15694         * arm.md (movaddr, movaddr_insn): Delete.
15696 2002-03-15  Jason Merrill  <jason@redhat.com>
15698         * toplev.c (wrapup_global_declarations): Clarify variable handling.
15699         -fkeep-static-consts doesn't apply to comdats.
15701 2002-03-14  Richard Henderson  <rth@redhat.com>
15703         * c-decl.c: Include c-pragma.h.
15704         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15705         (finish_function): Tidy.
15706         * c-pragma.c: Include c-common.h.
15707         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15708         (handle_pragma_weak): Use them.
15709         (init_pragma): Register pending_weaks.
15710         * c-pragma.h (maybe_apply_pragma_weak): Declare.
15711         * print-tree.c (print_node): Print DECL_WEAK.
15712         * varasm.c (mark_weak_decls): Remove.
15713         (remove_from_pending_weak_list): Remove.
15714         (add_weak): Remove.
15715         (asm_emit_uninitialised): Call globalize_decl for weak commons.
15716         (weak_decls): Make a tree_list.
15717         (declare_weak): Cons weak_decls directly.
15718         (globalize_decl): Remove weak_decls elements directly.
15719         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
15720         symbols.  Don't pretend to handle aliases.
15721         (init_varasm_once): Update weak_decls registry.
15722         * Makefile.in: Update dependencies.
15724 2002-03-14  Richard Henderson  <rth@redhat.com>
15726         PR target/5312
15727         * config/ia64/ia64.c: Include tm_p.h last.
15728         (gen_nop_type): Remove duplicate definition.
15729         (cycle_end_fill_slots): Set sched_data for second L slot.
15730         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15731         (nop_cycles_until): Fix typos.
15733 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15735         PR optimization/5891
15736         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15738 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15740         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15741           descriptors correctly.
15743 2002-03-14  Michael Meissner  <meissner@redhat.com>
15745         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15746         100, allowing MAX_UNROLLED_INSNS to be overridden.
15748         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15749         --param.
15751         * unroll.c (params.h): Include.
15752         (MAX_UNROLLED_INSNS): Delete, now in params.h.
15754         * doc/invoke.texi (--param max-unroll-insns): Document.
15756         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15758 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15760         * arm.md: Fix warnings about constraints in peepholes and splits.
15762 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
15764         * cpphash.h (struct lexer_state): Remove line_extension member.
15765         * cpplib.c (dequote_string, do_linemarker): New functions.
15766         (linemarker_dir): New data object.
15767         (DIRECTIVE_TABLE): No longer need to interpret #line in
15768         preprocessed source.  Delete obsolete comment about return
15769         values of handlers.
15770         (end_directive, directive_diagnostics, _cpp_handle_directive):
15771         Don't muck with line_extension.
15772         (directive_diagnostics): No need to issue warnings for
15773         linemarkers here.
15774         (_cpp_handle_directive): Issue warnings for linemarkers here,
15775         when appropriate.  Dispatch linemarkers to do_linemarker, not
15776         do_line.
15777         (do_line): Code to handle linemarkers split out to do_linemarker.
15778         Convert escape sequences in filename argument, both places.
15780         * cppmacro.c (quote_string): Rename cpp_quote_string and
15781         export.  All callers changed.
15782         * cpplib.h (cpp_quote_string): Prototype.
15783         * cppmain.c (print_line): Call cpp_quote_string on to_file
15784         before printing it.
15786         * doc/cpp.texi: Document that escapes are now interpreted in
15787         #line and in linemarkers, and that non-printing characters are
15788         converted to octal escapes when linemarkers are generated.
15790 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
15792         * emit-rtl.c (try_split): Use delete_insns.
15793         * recog.c (split_all_insns): Fix terminating condition.
15795 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15796             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
15798         PR target/5828
15799         * arm.c (arm_output_epilogue): Fix floating-point register save
15800         adjustment when using a frame pointer.
15802 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
15804         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15805         * config/mips/mips.c (compute_frame_size): Retrofit them here.
15806         (save_restore_insns, mips_expand_epilogue): And here.
15807         (build_mips16_call_stub): And here.
15808         (mips_function_value): Use the new macros to decide whether a single
15809         or complex float can be returned in floating-point registers.  Return
15810         a parallel rtx in the complex case.
15812 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15814         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15815         call after liveness analysis.
15817         * recog.c (split_insn): Use delete_insn_and_edges.
15819         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15820         instructions to have branch prediction notes.
15821         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15823 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
15825         * configure.in: Don't pass -Wno-long-long to a ADA compiler
15826         that doesn't support it.
15827         * configure: Regenerate.
15829 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15831         PR target/5626
15832         * config/sparc/sparc.md (normal_branch, inverted_branch,
15833         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15834         inverted_fp_branch): Adjust calls to output_cbranch.
15835         Set length attribute.
15836         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15837         output_v9branch.  Set length attribute.
15838         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15839         predicates.
15840         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15841         (output_cbranch): Likewise.  Handle far branches.
15842         (output_v9branch): Handle far branches.
15843         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15844         Adjust prototypes.
15845         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15846         noov_compare64_op predicates.
15848 2002-03-13  Jason Merrill  <jason@redhat.com>
15850         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15851         into the function and constify it.
15852         * gthr-dce.h, gthr-solaris.h: Likewise.
15854 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
15856         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15857         * config/rs6000/rs6000.c (rs6000_va_arg): Use
15858         std_expand_builtin_va_arg if not ABI_V4.
15860 2002-03-13  Jason Merrill  <jason@redhat.com>
15862         * varasm.c (globalize_decl): New fn.
15863         (assemble_start_function): Use it.
15864         (asm_emit_uninitialized): Use it.
15865         (assemble_alias): Use it.
15866         (assemble_variable): Use it.
15868 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
15870         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15871         2002-03-12 internal visibility change.
15872         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15873         visibility into SYMBOL_REF_FLAG.
15875 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
15877         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15878         VOIDmode operand.  Add compile-time optimization for constant results.
15880 2002-03-12  Jason Merrill  <jason@redhat.com>
15882         * c-typeck.c (convert_for_assignment): Don't allow conversions
15883         between pointers and references.  Only allow lvalues to convert to
15884         reference.
15886 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
15888         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15889         before prologue, to avoid scheduling problems.
15891 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15893         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15894         (ELIMINABLE_REGS): Add sfp->sp.
15895         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15897 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15899         PR optimization/5892
15900         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15902 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15904         * loop.c (basic_induction_var): Don't call convert_modes if mode
15905         classes are different.
15907 2002-03-12  Richard Henderson  <rth@redhat.com>
15909         PR optimization/5901
15910         * function.c (reposition_prologue_and_epilogue_notes): Position
15911         the markers after/before the last/first insn not deleted.
15913 2002-03-12  Richard Henderson  <rth@redhat.com>
15915         PR optimization/5878
15916         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15917         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15918         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15920         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15921         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15922         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15924         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15925         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15926         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15927         also.  Don't set it if not flag_pic.
15928         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15929         to be INVALID_REGNUM when not used.
15931 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
15933         * expmed.c (store_bit_field): Reset alias set for memory.
15934         (extract_bit_field): Same.
15936 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15938         * c-common.c (c_tree_code_type, c_tree_code_length,
15939         c_tree_code_name, add_c_tree_codes): Delete.
15940         * c-common.h (add_c_tree_codes): Delete.
15941         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15942         Define.
15943         * c-objc-common.c (c_objc_common_init): Don't call
15944         add_c_tree_codes, instead set lang_unsafe_for_reeval.
15945         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15946         objc_tree_code_name, add_objc_tree_codes): Delete.
15947         (objc_init): Don't call add_objc_tree_codes.
15948         * objc/objc-lang.c (tree_code_type, tree_code_length,
15949         tree_code_name): Define.
15950         * toplev.c (lang_independent_init): Don't set
15951         tree_code_length[IDENTIFIER_NODE].
15952         * tree.c (tree_code_type, tree_code_length, tree_code_name):
15953         Delete definitions, moved to language front-ends.
15954         * tree.def (IDENTIFIER_NODE): Hardwire the length.
15955         * tree.h (tree_code_type, tree_code_length, tree_code_name):
15956         Const-ify.
15957         (tree_code_length): Change type to unsigned char.
15959 2002-03-12  Richard Henderson  <rth@redhat.com>
15961         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15962         internal visibility change.
15964 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15966         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15967         validize_mem() instead of change_address to avoid clobbering
15968         memory attributes.
15970 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15972         * c-lex.h (position_after_whitespace): Remove.
15974 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
15976         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15977         (lex_string): Use unsigned char pointers.
15979 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
15981         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15982         is not a valid memory_operand.
15984 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15986         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15987         * config/xtensa/lib1funcs.asm: Fix copyright to include
15988         special case for libgcc files.
15989         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15990         (__divsi3): Likewise.
15991         (__umodsi3): Likewise.
15992         (__modsi3): Likewise.
15993         * config/xtensa/lib2funcs.S: Fix copyright to include
15994         special case for libgcc files.
15996 2002-03-12  Tom Rix  <trix@redhat.com>
15998         * collect2.c (resolve_lib_name): Move outside of
15999         OBJECT_FORMAT_COFF ifdef.
16000         (ignore_library): Same.
16002 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
16004         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16006 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
16008         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16009         to function_section before writing out the constant pool.
16011 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
16013         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16014         zero_constant.
16015         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16017 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
16019         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16020         (adddi3): Likewise.
16021         (movdf): Likewise.
16022         (movdi): Likewise.
16023         (cmpsi splitter): Likewise.
16024         (modsi3): Fail if <= 0.
16025         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16026         redundant test when HOST_BITS_PER_WIDE_INT != 32.
16027         (reg_or_sub_cint64_operand): Likewise.
16028         (num_insns_constant_wide): Optimize sign extension.
16029         (rs6000_legitimize_address): Likewise.
16031 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
16033         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16034         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16036 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
16038         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16039         address calculation.
16041 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
16043         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16044         scratch register to DImode / TImode.
16045         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16046         register used does not overlap the target.
16048 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16050         * Makefile.in (debug.o): Depend on debug.h.
16051         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16052         * debug.c (do_nothing_debug_hooks): Likewise.
16053         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16054         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16055         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16056         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16057         * dwarfout.c (dwarf_debug_hooks): Likewise.
16058         * integrate.c (output_inline_function): Likewise.
16059         * objc/objc-act.c (synth_module_prologue): Likewise.
16060         * sdbout.c (sdb_debug_hooks): Likewise.
16061         * toplev.c (debug_hooks): Likewise.
16062         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16064 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16066         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16067         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16068         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16069         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16070         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16071         * defaults.h (POINTER_SIZE): Define.
16072         * doc/tm.texi (POINTER_SIZE): Document default.
16074 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16076         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16078 2002-03-11  Richard Henderson  <rth@redhat.com>
16080         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16081         if rebuild_label_notes_after_reload.
16083 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
16085         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
16086         emit pic register load if "internal" visibility.
16087         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16088         (cris_expand_builtin_va_arg): Do all computations on trees.
16090 2002-03-11  Richard Henderson  <rth@redhat.com>
16092         * rtlanal.c: Include recog.h.
16093         (keep_with_call_p): Fix thinko.
16094         * Makefile.in (rtlanal.o): Update dependencies.
16096 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
16098         * genflags.c (gen_insn): Use IS_VSPACE.
16099         * genoutput.c (output_insn_data): Likewise.
16100         (process_template): Likewise.
16102 2002-03-11  Richard Henderson  <rth@redhat.com>
16104         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16106 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
16108         * Makefile.in: Update.
16109         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16110         Update documentation.
16111         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16112         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16114 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
16116         * Makefile.in: Give texi2pod its input file as a command line
16117         argument, not on stdin.
16119 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
16120             Daniel Berlin  <dan@dberlin.org>
16122         C++ alias analysis improvement.
16123         * alias.c (record_component_aliases): Record aliases for base
16124         classes too.
16126 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
16128         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16130 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
16132         * toplev.c (vms_fopen): Remove, not needed.
16134         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16136         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16138         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16139         for FP, already done later.
16141         * toplev.c (debug_args): Add entry for VMS_DEBUG.
16142         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16144 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
16146         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16147         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16148         LARGEST_EXPONENT_IS_NORMAL for the given mode.
16149         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16150         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16151         (ediv, emul, eldexp, esqrt): Likewise.
16152         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16153         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16154         (saturate): New function.
16155         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16156         (make_nan): Use a saturation value instead of a NaN if
16157         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
16158         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16159         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
16160         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
16161         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16162         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16163         !ROUND_TOWARDS_ZERO.
16164         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16165         (ROUND_TOWARDS_ZERO): Document.
16167 2002-03-11  Andreas Jaeger  <aj@suse.de>
16169         * cfg.c (dump_flow_info): Remove unused variable.
16171 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
16173         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16174         computations on trees.
16176 2002-03-10  Richard Henderson  <rth@redhat.com>
16178         PR 5693:
16179         * reload.c (copy_replacements_1): New.
16180         (copy_replacements): Use it to recurse through the rtx.
16182 2002-03-10  Richard Henderson  <rth@redhat.com>
16184         * loop.c (strength_reduce): Compute number of iterations as
16185         unsigned HOST_WIDE_INT.
16187 2002-03-10  Richard Henderson  <rth@redhat.com>
16189         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16190         to move away from the end of the block.
16192 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
16194         PR preprocessor/5899
16195         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16197 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16199         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16201         * attribs.c (decl_attributes): Fix signed/unsigned warning.
16203 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
16205         * config/mmix/mmix.c: Improve comments.
16206         (mmix_target_asm_function_prologue): Drop variable
16207         empty_stack_frame.  Don't allocate unused slot above fp.
16208         (mmix_target_asm_function_epilogue): Mirror prologue changes.
16209         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16210         brace in first column.
16211         (enum reg_class): Ditto.
16212         (FIRST_PARM_OFFSET): Now 0.
16213         (USER_LABEL_PREFIX): Remove #if 0:d definition.
16215 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16217         * combine.c (make_extraction): Fix error in last change.
16219 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16221         * c4x.c (c4x_fp_reglist): Const-ify.
16222         * cris.c (cris_print_operand): Likewise.
16223         * i386.c (ix86_va_arg): Likewise.
16224         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16225         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16226         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16227         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16228         * mcore.h (regno_reg_class): Likewise.
16229         * mips.c (gen_int_relational): Likewise.
16230         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16231         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16232         * pdp11.c (move_costs): Likewise.
16233         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16234         * s390.c (s390_branch_condition_mnemonic, regclass_map):
16235         Likewise.
16236         * s390.h (regclass_map): Likewise.
16237         * sh.c (shift_amounts): Likewise.
16238         * sh.md (rotlsi3): Likewise.
16240 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
16242         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16243         (ne0+5): Use new clobber to generate proper shift pattern.
16244         Patch by Michael Matz <matz@kde.org>.
16246 2002-03-09  Andreas Schwab  <schwab@suse.de>
16248         * gcc.c (validate_all_switches): Also handle `%W{...}'.
16250 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
16252         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16254 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
16256         PR middle-end/5877
16257         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16258         even for non-representable constants.
16260 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16262         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16263         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16264         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16265         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16266         (pop_function_context): Compute MAY_SHARE parameter for
16267         fixup_var_refs.
16268         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16269         (gen_mem_addressof): Call fixup_var_refs with new parm.
16271         * combine.c (make_extraction): Don't make extension of CONST_INT.
16273 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
16275         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16276         in o32 and o64 ABIs.
16277         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16278         but getting fixed-size structs passed in registers regardless of
16279         padding in o32 and o64 ABIs.
16281         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16282         offset before loading address of argument passed by transparent
16283         reference.
16285 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16287         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16289 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
16291         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16292         marker such that registers after it are saved.
16294 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16296         * sparc.c (arith_4096_operand): Fix error in last change.
16298 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
16300         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16301         defaults for MEABI.
16303 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16305         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16306         vectors.
16308 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16310         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16312 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16314         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16315         removed; fix return value.
16316         * combine.c (combine_instructions): Dirtify blocks where we failed to
16317         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16318         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16320 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16322         * gcse.c (insert_insn_end_bb): Fix typo in last change.
16324 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
16326         * recog.c (peephole2_optimize): Re-distribute EH edges.
16328 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16330         * expr.c (expand_expr): Use unsave lang hook.
16331         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16332         (LANG_HOOKS_INITIALIZER): Update.
16333         * langhooks.h (struct lang_hooks): New hook unsave.
16334         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16335         (unsave_expr_1): Remove unused lang_unsave_expr_now.
16336         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
16337         (unsave_expr_now): Remove.
16338         * tree.h (unsave_expr_now, lang_unsave,
16339         lang_unsave_expr_now): Remove.
16340         (lhd_unsave): New.
16342 2002-03-08  Andreas Jaeger  <aj@suse.de>
16344         * flow.c (propagate_block_delete_insn): Remove unused variable.
16346 2002-03-08  Kazu Hirata  <kazu@hxi.com>
16348         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16349         insn length for memory load/store.
16351 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16353         * doc/install.texi (--with-libiconv-prefix): Document.
16355 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
16357         * doc/sourcebuild.texi: Fix typo.
16359 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
16361         PR c/3711
16362         * builtins.c (std_expand_builtin_va_arg): Do all computations on
16363         trees.
16365 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16367         * rtl.c (copy_most_rtx): Move from here ...
16368         * emit-rtl.c (copy_most_rtx): ... to here.
16370 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
16372         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16373         SUBTARGET_CPP_SIZE_SPEC.
16374         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16376         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16378 2002-03-07  Matt Hiller  <hiller@redhat.com>
16380         * gensupport.c (first_dir_md_include): Renamed from include;
16381         change all references.
16382         (last_dir_md_include): Renamed from last_include; change all
16383         references.
16384         (init_md_reader): Unconditionally initialize base_dir whether or
16385         not filename is a relative path.
16387 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
16389         * config/fp-bit.c (_unord_f2): Compile it in even if
16390         US_SOFTWARE_GOFAST is enabled.
16392         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16393         NULL_RTX.  Set all HFmode operations as NULL_RTX.
16394         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16395         NULL_RTX, try reversing the comparison and the operands.
16397 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16399         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16400         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16401         and MATCH_OP_DUP.
16403 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
16405         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16407 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16409         * basic-block.h (fixup_abnormal_edges): Declare.
16410         * reload1.c (fixup_abnormal_edges): New function.
16411         * reg-stack.c (convert_regs): Use it.
16413         * gcse.c (insert_insn_end_bb): Handle trapping insns.
16415         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16417 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
16419         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16420         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16421         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16422         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16423         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16424         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16425         unless x and y could be infinite.
16426         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16427         Check that the common type of both arguments is a real, even for
16428         targets without unordered comparisons.  Allow an integer argument
16429         to be compared against a real.
16430         (expand_tree_builtin): Use expand_unordered_cmp.
16431         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16432         * cse.c (fold_rtx): Likewise.  Fix indentation.
16433         * fold-const.c (fold_real_zero_addition_p): New.
16434         (fold): Use it, and the new HONOR_... macros.
16435         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16436         * jump.c (reversed_comparison_code_parts): After searching for
16437         the true comparison mode, use HONOR_NANS to decide whether it
16438         can be safely reversed.
16439         (reverse_condition_maybe_unordered): Remove IEEE check.
16440         * simplify-rtx.c (simplify_binary_operation): Use the new macros
16441         to decide which simplifications are valid.  Allow the following
16442         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16443         and (a - -b) to (a + b).
16444         (simplify_relational_operation): Use HONOR_NANS.
16445         * doc/tm.texi: Document the MODE_HAS_... macros.
16447 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
16449         * combine.c (simplify_comparison): If simplifying a logical shift
16450         right and compare with constant, force the comparison to unsigned.
16452 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
16454         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16456         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16457         -mabi=no-altivec
16458         (alt_reg_names): Remove % for vrsave.
16460 2002-03-06  Richard Henderson  <rth@redhat.com>
16462         PR optimization/5844
16463         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
16464         if used indicates we've already emitted one copy of an operand.
16465         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16466         (gen_split): Supply a non-null used.
16468 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16470         * reload1.c (reload): Unshare all rtl after reload is done.
16472         * simplify-rtx.c (simplify_plus_minus): Do not abort,
16473         but simply fail if the expression is too complex to simplify.
16474         (simplify_gen_binary): Handle simplify_plus_minus failures.
16476 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
16478         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16479         consistently call delete_trivially_dead_insns after CSE and GCSE;
16480         fix DFI_life dumping; do jump threading after liveness; do crossjumping
16481         after liveness2; update comment in last crossjumping.
16482         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16484 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
16486         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16487         after completing fast dead code elimination.
16489         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16490         COMPARE operator.
16492 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
16494         * version.c:  Fix misplaced leading blanks on first line.
16496 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
16498         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16500 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
16502         * cfgcleanup.c (mentions_nonequal_regs): New function.
16503         (thread_jump): Use it.
16504         * toplev.c (rest_of_compilation): Run jump threading after
16505         liveness.
16507 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
16509         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16510         patch.
16512 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
16514         * predict.c (estimate_bb_frequencies): Do not reload the
16515         frequencies from notes.
16517 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
16519         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16520         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16522         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16523         delete_noop_moves): Return indeger.
16524         * flow.c (ndead): New variable.
16525         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16526         BB argument; update callers.
16527         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16528         (life_analysis): Do not call purge_all_dead_edges.
16529         (update_life_info): Return number of deleted insns; print statistics.
16530         (update_life_info_in_dirty_blocks): likewise.
16531         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16532         return number of insns deleted.
16534         * cse.c: Include timevar.h
16535         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16536         iterate until stabilizes; print statistics; return number of killed
16537         insns.
16538         * Makefile.in: (cse.o): Add timevar.h dependency
16539         * rtl.h (delete_trivially_dead_insns): New.
16540         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16541         * toplev.c (rest_of_compilation): Update callers.
16543         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16544         (try_optimize_cfg): Do not update liveness.
16545         (cleanup-cfg): Loop until try_optimize_cfg and dead code
16546         removal stabilizes; use delete_trivially_dead_insns.
16548         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16550 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
16552         * cppmain.c (setup_callbacks): Disable #pragma and #ident
16553         callbacks when processing assembly language.
16555 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16557         * pa.h (ASM_FILE_END): Define.
16558         * som.h (ASM_FILE_END): Delete.
16560         * pa.c (function_arg): Don't pass floats in general registers in
16561         indirect calls if TARGET_ELF32.
16563 2002-03-05  Richard Henderson  <rth@redhat.com>
16565         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16567 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
16569         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16571 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16573         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16574         -r command line.  Don't hide any symbols if not building
16575         shared libgcc.
16577 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
16579         * cfg.c (dump_flow_info): Warn about profile mismatches.
16580         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16581         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16583 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16585         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16586         wide volatile memory by parts.
16588 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16590         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16591         is NULL.
16593 2002-03-05  Richard Henderson  <rth@redhat.com>
16595         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16597 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16599         * toplev.c (documented_lang_options): Document more
16600         language-specific options.
16601         * doc/invoke.texi (Warning Options): Correct documentation for
16602         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16603         * c-decl.c (c_decode_option): Use a table to handle warning options.
16605 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
16607         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16608         parameter to mmix_encode_section_info.
16609         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16610         relocatably.  Always produce ELF, not mmo if linking relocatably.
16611         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16612         first is non-zero, don't add symbol prefix.
16613         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16614         prototype accordingly.
16616 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
16618         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16620 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
16622         * configure.in: Increase required makeinfo version to 4.1.
16623         * configure: Regenerate.
16625 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16627         * .cvsignore: Remove *.info* and genrtl*; these files are generated
16628         elsewhere now.
16630 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16632         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16633         * doc/invoke.texi: Fix @math uses.
16635 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16637         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16638         removal
16640 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
16642         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16643         (powerpc-*-eabisimaltivec*): Same.
16645         * config/rs6000/t-ppcendian: New.
16647 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16649         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16650         nonimmediate_src_operand and nonimmediate_lsrc_operand to
16651         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16653 2002-03-03  Richard Henderson  <rth@redhat.com>
16655         * toplev.c (rest_of_decl_compilation): Revert last two changes.
16657 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
16659         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16660         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16661         tree.c, config/m68k/m68k.c:
16662         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16663         REAL_ARITHMETIC blocks unconditional.  Delete some further
16664         #ifdef blocks predicated on REAL_ARITHMETIC.
16665         * flags.h, toplev.c: Delete remaining references to
16666         flag_pretend_float.
16668         * doc/invoke.texi: Remove documentation of -fpretend-float.
16669         * doc/tm.texi: Describe the various REAL_* macros as provided by
16670         real.h, not by the target configuration files.
16672         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16673         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16674         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16675         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16676         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16677         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16678         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16679         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16680         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16681         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16682         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16683         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16684         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16685         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16686         config/xtensa/xtensa.h:
16687         Do not define, undefine, or mention in comments any of
16688         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16689         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16690         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16691         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16692         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16693         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16694         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16695         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16696         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16698 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16700         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16701         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16702         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16703         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16704         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16705         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16706         Delete.
16707         * defaults.h (BITS_PER_WORD): Define.
16708         * doc/tm.texi (BITS_PER_WORD): Document default value.
16710         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16711         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16712         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16714 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16716         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16717         lieu of explicit sizeof/sizeof.
16718         * i386.c (override_options, ix86_init_mmx_sse_builtins,
16719         ix86_expand_builtin): Likewise.
16720         * mips.c (mips_add_gc_roots): Likewise.
16721         * mmix.c (mmix_output_condition): Likewise.
16722         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16723         altivec_init_builtins): Likewise.
16724         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16725         * cppexp.c (Nsuff, parse_number): Likewise.
16726         * cppinit.c (builtin_array_end): Likewise.
16727         * gcc.c (n_default_compilers, process_command): Likewise.
16728         * genpreds.c (output_predicate_decls): Likewise.
16729         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16730         * lcm.c (N_ENTITIES): Likewise.
16731         * stor-layout.c (set_sizetype): Likewise.
16733 2002-03-03  Richard Henderson  <rth@redhat.com>
16735         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16736         for types or labels.
16738 2002-03-03  Richard Henderson  <rth@redhat.com>
16740         * c-decl.c (start_decl): Initialized variables are not common.
16742 2002-03-02  Per Bothner  <per@bothner.com>
16744         * gcc.c (option_map):  Suport new --bootclasspath option.
16745         --CLASSPATH is now just an alias for --classpath.
16747 2002-03-02  Richard Henderson  <rth@redhat.com>
16749         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16750         load if "internal" visibility.
16751         * doc/extend.texi: Document visibility meanings.
16753 2002-03-02  Richard Henderson  <rth@redhat.com>
16755         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16756         to functions as well.
16758 2002-03-02  Richard Henderson  <rth@redhat.com>
16760         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16761         (handle_visibility_attribute): Don't call assemble_visibility.
16762         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16763         without asmspec.  Invoke assemble_alias when needed.
16764         * varasm.c (maybe_assemble_visibility): New.
16765         (assemble_start_function, assemble_variable, assemble_alias): Use it.
16767 2002-03-02  Richard Henderson  <rth@redhat.com>
16769         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16770         invoke ENCODE_SECTION_INFO with first call flag.
16772         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16773         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16774         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16775         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16776         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16777         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16778         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16779         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16780         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16781         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16782         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16783         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16784         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16785         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16786         config/mcore/mcore-protos.h, config/mcore/mcore.c,
16787         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16788         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16789         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16790         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16791         config/sh/sh.h, config/sparc/sparc.h,
16792         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16793         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16794         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16795         FIRST argument.  As needed, examine it and do nothing.
16797         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16798         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16799         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16801         * config/arm/t-pe (pe.o): Add dependencies.
16803 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16805         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16806         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16807         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16808         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16809         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16810         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16811         * defaults.h (BITS_PER_UNIT): Define.
16812         * doc/tm.texi (BITS_PER_UNIT): Document default value.
16814 2002-03-02  Kazu Hirata  <kazu@hxi.com>
16816         * config/h8300/h8300-protos.h: Add a prototype for
16817         compute_a_shift_length.
16818         * config/h8300/h8300.c (h8300_asm_insn_count): New.
16819         (compute_a_shift_length): Likewise.
16820         (h8300_adjust_insn_length): Do not adjust insn length of shift
16821         insns.
16822         * config/h8300/h8300.md (anonymous shift patterns): Use
16823         compute_a_shift_length.
16825 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16827         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16828         trunc_int_for_mode.
16830         * emit-rtl.c (offset_address): Call update_temp_slot_address.
16832 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16834         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16835         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16836         * flags.h (flag_zero_initialized_in_bss): Declare.
16837         * toplev.c (flag_zero_initialized_in_bss): New flag.
16838         (lang_independent_options): Add flag_zero_initialized_in_bss.
16839         * tree.c (initializer_zerop): New function.
16840         * tree.h (initializer_zerop): Declare.
16841         * varasm.c (assemble_variable): If we can emit bss, put zero
16842         initializers in the bss section.
16844 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
16846         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16847         like more than one symbol per .weak directive.
16849 2002-03-01  Richard Henderson  <rth@redhat.com>
16851         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16852         adjust argument_pointer by pretend_args_size.
16853         (ia64_va_start): Adjust va_start address by -pretend_args_size.
16855 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16857         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16859 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
16861         * toplev.c (rest_of_compilation): Delete dead jumptables before
16862         loop.
16863         * flow.c (delete_dead_jumptables): Make global.
16864         * rtl.h (delete_dead_jumptables): Declare.
16866 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
16868         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16869         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16870         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16872 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16874         * config/h8300/h8300-protos.h: Fix formatting.
16875         * config/h8300/h8300.c: Likewise.
16876         * config/h8300/h8300.h: Likewise.
16878 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16880         * config/h8300/h8300.c (print_operand): Support 16-bit
16881         constant addresses.
16882         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16884 2002-02-28  Richard Henderson  <rth@redhat.com>
16886         * expmed.c (store_bit_field): Prevent generation of CONCATs;
16887         pun complex values as integers; use gen_lowpart instead of
16888         gen_rtx_SUBREG.
16889         (extract_bit_field): Likewise.
16891 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
16892             David Edelsohn  <edelsohn@gnu.org>
16894         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16895         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16896         (SUPPORTS_WEAK): Likewise.
16897         * output.h (add_weak): Add tree param.
16898         * varasm.c (add_weak): Likewise.  Save decl.
16899         (struct weak_syms): Add decl field.
16900         (mark_weak_decls): New function.
16901         (init_varasm_once): ggc_add_root mark_weak_decls.
16902         (assemble_start_function): Use ASM_WEAKEN_DECL.
16903         (assemble_variable): Likewise.
16904         (assemble_alias): Likewise.
16905         (declare_weak): Pass decl to add_weak.
16906         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16907         (remove_from_pending_weak_list): Declare and define for
16908         ASM_WEAKEN_DECL.
16909         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16910         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16911         * defaults.h (SUPPORTS_WEAK): Likewise.
16912         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16913         .weak for code sym.  Do emit .size for descriptor sym.
16914         (ASM_DECLARE_FUNCTION_SIZE): Define.
16915         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16916         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
16917         .lglobl unless TARGET_XCOFF.  Formatting fixes.
16918         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16919         .weak for code sym.
16920         (HANDLE_PRAGMA_WEAK): Remove.
16921         (ASM_WEAKEN_LABEL): Remove.
16922         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16924 2002-03-01  Jason Merrill  <jason@redhat.com>
16926         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16927         (TARGET_EXPR_CLEANUP): New macro.
16929 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
16931         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16932         to take ptr_extend into account as third type of extension.
16933         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16934         fields used by SUBREG_PROMOTED_UNSIGNED_P.
16935         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16936         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16937         * calls.c (precompute_arguments): Use new macro.
16938         (expand_call): Ditto.
16939         * combine.c (nonzero_bits): Ditto.
16940         (record_promoted_value): Ditto.
16941         * expr.c (store_expr): Ditto.
16942         (expand_expr): Ditto.
16943         * function.c (assign_parms): Ditto.
16945 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
16947         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16948         override -shared and -shared-libgcc.
16950 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
16952         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16953         of "ultrasparc".
16954         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
16955         to be broken.
16957 2002-02-28  Richard Henderson  <rth@redhat.com>
16959         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16960         4 cycle latency from MM producers.
16961         (ia64_internal_sched_reorder): Likewise with pipeline flush.
16963 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
16965         * mklibgcc.in: Don't use GNU make extension.
16967 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16969         * c-parse.in (STATIC): New terminal.
16970         (scspec): New non-terminal.  Update productions accordingly.
16971         (program): Remove bogus ifc / end ifc.
16972         (array_declarator): Simplify production using STATIC.
16974 2002-02-28  Jim Meyering  <meyering@lucent.com>
16976         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16977         \a still means TARGET_BELL.
16979 2002-02-28  Richard Henderson  <rth@redhat.com>
16981         * haifa-sched.c (sched_emit_insn): New.
16982         (schedule_block): Use last_scheduled_insn to track last insn.
16983         * sched-int.h (sched_emit_insn): Prototype.
16984         * config/ia64/ia64.c (last_issued): Remove.
16985         (ia64_variable_issue): Don't set it.
16986         (nop_cycles_until): Use sched_emit_insn.
16988 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
16990         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16991         extended constants.
16993 2002-02-28  Kazu Hirata  <kazu@hxi.com>
16995         * config/h8300/h8300.c: Fix formatting.
16996         * config/h8300/h8300.h: Likewise.
16998 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
17000         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17001         which may overwrite the high byte of the frame pointer.
17003 2002-02-28  Bo Thorsen  <bo@suse.de>
17005         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17006         (STARTFILE_SPEC): Add 64 bit files.
17007         (ENDFILE_SPEC): Likewise.
17009 2002-02-28  Jason Merrill  <jason@redhat.com>
17011         * c-decl.c (finish_function): Only warn about missing return
17012         statement with -Wreturn-type.
17014 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
17016         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17018         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17019         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17021 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
17023         * basic-block.h (BB_REACHABLE): Renumber.
17024         (BB_DIRTY, BB_NEW): New flags.
17025         (clear_bb_flags): Declare.
17026         (update_life_info_in_dirty_blocks): Declare.
17027         * cfg.c (clear_bb_flags): New function.
17028         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17029         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17030         reorder_insns, emit_insn_after): Mark block as dirty.
17031         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17032         (update_life_info_in_dirty_blocks): New function.
17033         * recog.c (apply_change_group): Dirtify block.
17035         * cse.c (cse_insn): Reorder emitting of jump insn to keep
17036         cfg consistent.
17037         * gcse.c (delete_null_pointer_checks): Likewise.
17039         * toplev.c (dump_file_index): Move cse2 after bp,
17040         add DFI_null
17041         (dump_file_info): Similary.
17042         (rest_of_compilation): Avoid most of CFG rebuilds;
17043         do first if converision after null pointer checks, do cse2
17044         after branch prediction; avoid full liveness rebuild after
17045         initializing subregs.
17046         * invoke.texi (-d options): Document -du, renumber.
17048         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17049         (notice_new_block): Do not set BB_UPDATE_LIFE.
17050         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17051          merge_blocks_move_successor_nojumps, merge_blocks,
17052          try_crossjump_to_edge): Likewise.
17053         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17054         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17055         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17056         (merge_of_block): Do not use life_data_ok.
17057         (find_if_case_1): Do not use SET_UPDATE_LIFE.
17058         (if_convert): Use BB_DIRTY mechanizm to update life.
17059         * lcm.c (optimize_mode_switching): Update
17060         update_life_info_in_dirty_blocks
17062 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
17064         * Makefile.in (integrate.o): Update.
17065         * c-decl.c (copy_lang_decl): Rename.
17066         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17067         * integrate.c: Include langhooks.h.
17068         (copy_decl_for_inlining): Update to use langhook.
17069         * langhooks-def.h (lhd_do_nothing_t,
17070         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17071         (LANG_HOOKS_INITIALIZER): Update.
17072         * langhooks.c (lhd_do_nothing_t): New.
17073         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17074         * tree.h (copy_lang_decl): Remove.
17075 objc:
17076         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17078 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
17080         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17081         POST_DEC, and POST_MODIFY.
17083 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17085         * c-typeck.c (digest_init): Remove unused parameter; all
17086         callers changed.
17088 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
17090         * expmed.c (expand_shift): Correctly test for low part of a
17091         subreg.
17093 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
17095         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17096         insn UIDs with insn addresses.
17098 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17100         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17101         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17102         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17103         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17104         gcc.c, toplev.c: Delete code implementing -traditional mode.
17106         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17107         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17108         Document removal of -traditional mode for compilation, and
17109         remove documentation only relevant to that mode.
17111         * config/nextstep.h, config/ptx4.h, config/svr4.h,
17112         config/convex/convex.h, config/d30v/d30v.h,
17113         config/i386/dgux.h, config/i386/osf1elf.h,
17114         config/i386/osfelf.h, config/i386/osfrose.h,
17115         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17116         config/m68k/hp310.h, config/m88k/dgux.h,
17117         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17118         config/m88k/m88k.h, config/m88k/openbsd.h,
17119         config/mips/abi64.h, config/mips/osfrose.h,
17120         config/mips/svr4-5.h, config/mips/svr4-t.h,
17121         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17122         config/stormy16/stormy16.h: Remove all references to
17123         -traditional from target specs.  Delete all mention of the
17124         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
17125         delete a couple of commented-out definitions of
17126         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17127         to -traditional.
17129         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17130         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17132 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17134         * mklibgcc.in: Don't use \n in a line subject to
17135         interpretation by echo.
17137 2002-02-27  Graham Stott  <grahams@redhat.com>
17139         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17140         Constify NAME.
17142         * loop.c (prescan_loop): Handle PARALLEL.
17144         * unroll.c (loop_iterations): Return 0 if the add_val for
17145         a BIV is REG.
17147         * final.c (output_operand_lossage): Constify PFX_STR.
17149         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17151 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
17153         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17154         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17156 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
17158         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17160 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
17162         * cpplex.c (_cpp_lex_token): Handle directives in macro
17163         arguments.
17164         * cpplib.c (_cpp_handle_directive): Save and restore state
17165         if parsing macro args when entering a directive.
17166         * cppmacro.c (collect_args): No need to handle directives
17167         in macro arguments.
17168         (enter_macro_context, replace_args): Use the original macro
17169         definition in case it was redefined whilst collecting arguments.
17170 doc:
17171         * cpp.texi: Update.
17173 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
17175         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17176         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17177         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17178         method on AIX.
17179         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17180         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17181         (load_toc_v4_PIC_2): Same.
17183 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
17185         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17187 2002-02-26  Richard Henderson  <rth@redhat.com>
17189         * config/alpha/alpha.md (ashldi_se): Re-enable.
17191 2002-02-26  Richard Henderson  <rth@redhat.com>
17193         * config/alpha/alpha.c (alpha_encode_section_info): Examine
17194         MODULE_LOCAL_P; improve commentary.
17196 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
17198         * doc/cpp.texi: Clarify documentation of relationship between
17199         #line and #include.
17201 2002-02-26  Kazu Hirata  <kazu@hxi.com>
17203         * config/h8300/h8300-protos.h: Update the prototype for
17204         compute_logical_op_length.  Add the prototype for
17205         compute_logical_op_cc.
17206         * config/h8300/h8300.c (compute_logical_op_length): Figure out
17207         code from operands.
17208         (compute_logical_op_cc): New.
17209         * config/h8300/h8300.md: Combine all the logical op patterns
17210         in HImode and SImode.  Use compute_logical_op_cc.
17212 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
17214         * config/i386/i386.c (print_operand): Don't append ATT-style
17215         length suffixs to x87 opcodes when in Intel mode.
17217 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
17219         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17220         (init_emit_once): Update calls.
17221         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17222         (init_syntax_once): Prototype.
17224 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17226         * pa-linux.h (LIB_SPEC): Update definition.
17227         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17229 2002-02-26  Richard Henderson  <rth@redhat.com>
17231         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17232         if we emitted a stop bit.
17234 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17236         * configure.in (libgcc_visibility): Substitute.
17237         * configure: Rebuilt.
17238         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17239         defined symbols .hidden.
17241 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17243         * attribs.c (c_common_attribute_table): Add visibility.
17244         (handle_visibility_attribute): New function.
17245         * varasm.c (assemble_visibility): New function.
17246         * output.h (assemble_visibility): Add prototype.
17247         * tree.h (MODULE_LOCAL_P): Define.
17248         * crtstuff.c (__dso_handle): Use visibility attribute.
17249         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17250         for MODULE_LOCAL_P symbols too.
17251         * config/ia64/ia64.c (ia64_encode_section_info): Handle
17252         MODULE_LOCAL_P symbols the same way as local symbols.
17253         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17254         into .sdata/.sbss by the user.
17255         * doc/extend.texi (Function Attributes): Document visibility
17256         attribute.
17258 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17260         PR debug/5770
17261         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17262         STRING_CST initializer spanning the whole variable without
17263         embedded zeros.
17264         If expand_expr returned MEM, don't use it.
17266 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
17268         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17269         generate a die for the lexical block.
17271 2002-02-26  Kazu Hirata  <kazu@hxi.com>
17273         * config/h8300/h8300-protos.h: Add a prototype for
17274         compute_logical_op_length.
17275         * config/h8300/h8300.c (compute_logical_op_length): New.
17276         * config/h8300/h8300.md (anonymous logical patterns): Use
17277         compute_logical_op_length for length.
17279 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17281         * dwarf2out.c (modified_type_die): Do not call type_main_variant
17282         for vectors.
17283         (gen_type_die): Same.
17285         * attribs.c (handle_vector_size_attribute): Set debug information.
17287 2002-02-26  Daniel Egger  <degger@fhm.edu>
17289         * config/rs6000/rs6000.md: Swap define_insn attributes to
17290         fix incorrect generation of merge high instructions instead
17291         of merge low.
17293 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17295         * c-typeck.c (really_start_incremental_init): Use
17296         bitsize_zero_node for vectors.
17298 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17300         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17301         ("*set_vrsave_internal"): Same.
17303 2002-02-25  Richard Henderson  <rth@redhat.com>
17305         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17306         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
17308 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
17310         PR target/5755
17311         * config/i386/i386.c (ix86_return_pops_args): Only pop
17312         fake structure return argument if it was passed on the stack.
17314 2002-02-25  Jason Merrill  <jason@redhat.com>
17316         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17317         RESULT_DECL.
17319 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17321         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17322         link with shared_name only.
17323         * doc/invoke.texi (Link Options): Document new behavior.
17325 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17327         * c-typeck.c (push_init_level): Handle vectors.
17329 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17331         * config/sparc/sparc.c (const64_high_operand): Zero-extend
17332         operands of SPARC_SETHI_P.
17333         (input_operand): Likewise.
17334         (sparc_emit_set_const32): Likewise.
17335         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17336         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17337         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
17338         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17339         (movdi_insn_sp64_vis): Likewise.
17340         (movdi split, movdf split): Use SETHI32.
17341         * doc/md.texi: Document SPARC constraints L, M and N.
17343 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17345         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17346         ("*set_vrsave_internal"): use mfspr for Darwin.
17348         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17349         gen_get_vrsave_internal.
17351 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17353         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17355 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17357         * cpplex.c (cpp_interpret_charconst): Get signedness or
17358         otherwise of wide character constants correct.
17359         * cppexp.c (lex): Get signedness of wide charconsts correct.
17361 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17363         * optabs.c (widen_operand): Only call convert_modes for
17364         promoted SUBREG if signedness matches.
17365         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17367 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17369         * cpplib.c (glue_header_name): Use local buffer to build up
17370         header name.
17372 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17374         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17376 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17378         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17379         H8/300[HS] separately.
17380         * config/h8300/h8300.md: Remove the early clobber constraint
17381         from bit field patterns.
17383 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17385         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17386         register_operand.
17387         (mulhisi3): Likewise.
17388         (umulqisi3): Likewise.
17389         (umulhisi3): Likewise.
17391 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17393         * cppinit.c (output_deps): Correct test for stdout output.
17394         (init_dependency_output): Cure warning.
17396 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17398         * expr.c (store_expr): When converting expression to promoted
17399         equivalent type, allow using SUBREG_REG of TARGET as the target
17400         of the expansion of EXP.
17401         * loop.c (basic_induction_var, case SUBREG): Always look inside.
17402         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17403         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17404         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17405         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17407 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
17409         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17410         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17411         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17413 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
17415         PR optimization/5747
17416         * loop.c (scan_loop): Update reg info if move_movables created new
17417         pseudos.
17419 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17421         * gcc.c (init_gcc_spec): Revert last change.
17423 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17425         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17426         gpc_reg_operand constraint.
17428 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
17430         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17431         Simplify comparison of `low'.
17432         (add_operand): Fix formatting.
17433         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17434         (mask_operand): Disallow mask to wrap in 64-bit mode.
17435         (rs6000_stack_info): Remove redundant test setting push_p.
17436         (output_toc): Fix formatting.
17437         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17438         cc_reg_not_cr0_operand constraint.
17439         (booldi3, boolcdi3 splitters): Same.
17441 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
17443         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17445 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
17447         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17448         gcc invoked with -shared-libgcc.
17450 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
17452         PR c++/5748
17453         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17454         decl if any of elements was TREE_USED.
17456 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
17458         * config/sparc/sol2.h: Don't include sys/mman.h.
17459         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17460         (arith_4096_operand): Don't throw high bits away.
17461         (const64_operand): Take sign extension of CONST_INTs into account.
17462         (const64_high_operand, sparc_emit_set_const32): Likewise.
17463         (GEN_HIGHINT64): Likewise.
17464         (sparc_emit_set_const64_quick1): Likewise.
17465         (const64_is_2insns): Likewise.
17466         (print_operand): Use trunc_int_for_mode for sign extension.
17467         * config/sparc/sparc.h (SMALL_INT32): Likewise.
17468         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17469         chars.  Assume CONST_INT is already properly sign-extended.
17470         (movdi split): Sign-extend each SImode part.
17471         (andsi3 split): Don't mask high bits off, so that result
17472         remains properly sign-extend.
17473         (iorsi3 split): Likewise.
17474         (xorsi3 split): Likewise.
17476 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
17478         * fold-const.c (fold): Fix typo in comments.
17480 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17482         * Makefile.in (langhooks.o): Update dependencies.
17484 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17486         * langhooks.c: Include flags.h.
17488 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
17490         * testsuite/gcc.dg/attr-alwaysinline.c: New.
17492         * c-common.c (c_common_post_options): Set inline trees by
17493         default.
17495         * doc/extend.texi (Function Attributes): Document always_inline
17496         attribute.
17497         Update documentation about inlining when not optimizing.
17499         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17501         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17502         unless DECL_ALWAYS_INLINE.
17504         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17505         unless DECL_ALWAYS_INLINE.
17506         (c_disregard_inline_limits): Disregard if always_inline set.
17508         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17509         Disregard if always_inline set.
17510         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17511         unless DECL_ALWAYS_INLINE.
17513         * attribs.c (handle_always_inline_attribute): New.
17514         (c_common_attribute_table): Add always_inline.
17516         * config/rs6000/altivec.h: Add prototypes for builtins
17517         requiring the always_inline attribute.
17519 2002-02-21  Eric Christopher  <echristo@redhat.com>
17521         * expmed.c (store_bit_field): Try to simplify the subreg
17522         before generating a new one when when the mode size of
17523         value is less than maxmode.
17525 2002-02-21  Richard Henderson  <rth@redhat.com>
17527         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17528         than gen_rtx_PLUS to form the sum.
17529         * explow.c (force_reg): Rearrange to not allocate new pseudo
17530         when force_operand returns a register.
17531         * expr.c (expand_assignment): Allow offset_rtx expansion to
17532         return a sum.  Do not force addresses into registers.
17533         (expand_expr): Likewise.
17534         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17535         to canonicalize arithmetic that didn't simpify.
17536         (simplify_plus_minus): New argument force; update
17537         all callers.  Don't split CONST unless we can do something with it,
17538         and wouldn't lose the constness of the operands.
17540         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17541         that we generated earlier.
17543 2002-02-21  Tom Tromey  <tromey@redhat.com>
17545         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17546         (output_line_info): Use constant `1', with a long explanatory
17547         comment.
17548         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17550 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
17552         * jump.c (redirect_jump): If old label has no UID, don't try to
17553         delete it.
17555 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
17557         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17558         If input is constant, do shifts at compile time.
17560 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17562         * doc/extend.texi: Fix some more overfull hboxes.
17564 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17566         PR optimization/4994
17567         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17568         register moves.
17570 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17572         PR c++/4574
17573         * expr.h (expand_and): Add mode argument.
17574         * expmed.c (expand_and): Add mode argument.
17575         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17576         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17577         * except.c (expand_builtin_extract_return_addr): Likewise.
17578         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17579         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17580         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17581         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17582         * config/c4x/c4x.md: Use GEN_INT (x) instead of
17583         gen_rtx (CONST_INT, VOIDmode, x).
17585 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17587         PR c/4697:
17588         * stmt.c (warn_if_unused_value): Move side effects test once more.
17590 2002-02-20  Torbjorn Granlund  <tege@swox.com>
17592         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17593         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17595 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
17597         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17598         SUBREG or ZERO_EXTEND.
17600 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
17602         * sh.h (current_function_anonymous_args): Remove.
17603         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17604         of current_function_varargs and current_function_stdarg is set.
17605         * sh.c (sh_expand_prologue): Check current_function_varargs /
17606         current_function_stdarg / TARGET_SH5 instead of
17607         current_function_anonymous_args.
17609         * sh64.h (TARGET_VERSION): Define.
17611 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
17613         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17614         VRSAVE_REGNO on TARGET_ALTIVEC.
17616 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
17618         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17619         bits of SImode const_int.
17620         (includes_rshift_p): Likewise.
17621         (print_operand): Call mask_operand and mask64_operand with correct
17622         mode.
17623         (rs6000_output_function_epilogue): Pad traceback table to word.
17624         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17625         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17626         mask64_operand with correct mode.
17627         (FUNCTION_ARG_REGNO_P): Correct parentheses.
17629 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17631         PR debug/4461
17632         * varasm.c (get_pool_constant_mark): New.
17633         * rtl.h (get_pool_constant_mark): Add prototype.
17634         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17635         be represented if it has not been output.
17637 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17639         * combine.c (do_SUBST): Sanity check substitutions of
17640         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17641         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17642         CONST_INT into its operand.
17643         (known_cond): Likewise, for ZERO_EXTEND.
17644         * simplify-rtx.c (simplify_unary_operation): Fix condition to
17645         allow for simplification of wide modes.  Reject CONST_INTs in
17646         ZERO_EXTEND when their actual mode is not given.
17648 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17650         * c-decl.c (pushdecl): If no global declaration is found for an
17651         extern declaration in block scope, try a limbo one.
17653 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17655         PR c++/4401
17656         * c-common.c (pointer_int_sum): Moved from...
17657         * c-typeck.c (pointer_int_sum): ...here.
17658         * c-common.h (pointer_int_sum): Add prototype.
17660 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17662         PR c++/5713
17663         * c-decl.c (duplicate_decls): Return 0 if issued error about
17664         redeclaration.
17666 2002-02-20  Roger Sayle  <roger@eyesopen.com>
17667             Jakub Jelinek  <jakub@redhat.com>
17669         PR c/4389
17670         * tree.c (host_integerp): Ensure that the constant integer is
17671         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17672         when pos is zero or non-zero respectively.  Clarify comment.
17673         * c-format.c (check_format_info_recurse): Fix host_integerp
17674         usage; the pos argument should be zero when assigning to a
17675         signed HOST_WIDE_INT.
17677 2002-02-20  Richard Henderson  <rth@redhat.com>
17679         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17680         of the operand, rather than assuming TImode.
17681         (ix86_expand_binop_builtin): Cope with commutative patterns
17682         using nonimmediate_operand for both operands.
17683         (ix86_expand_timode_binop_builtin): Likewise.
17684         (ix86_expand_store_builtin): Validate operand 1.
17685         (ix86_expand_unop1_builtin): Likewise.
17687 2002-02-20  Philip Blundell  <philb@gnu.org>
17689         PR 5705
17690         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17692 2002-02-20  Richard Henderson  <rth@redhat.com>
17694         PR c/5615
17695         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17697 2002-02-20  Tom Tromey  <tromey@redhat.com>
17699         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17700         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17701         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17702         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17703         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17704         unconditionally.
17706 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17708         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17709           for (const_int 0) in X not just INTVAL.
17711 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
17713         * doc/extend.texi: Avoid or reduce overfull hboxes.
17715 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
17717         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17718         operations if the field does not start at a mode boundary.
17720 2001-02-20      Joel Sherrill <joel@OARcorp.com>
17722         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17723         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17724         Also done for -Acpu and -Amachine.
17726 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17728         * cppinit.c (init_dependency_output): Take deps output file
17729         from -o if none given with -MF.  Suppress normal output.
17730         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17731         * doc/cpp.texi, doc/invoke.texi: Update.
17733 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17735         * toplev.c (output_quoted_string): Write unprintable
17736         characters with octal escapes.
17738 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17740         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17741         really_call_used[VRSAVE_REGNO] if not Altivec.
17743 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
17745         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17746         MODE_MASK.
17747         (constant_pool_expr_1): Fix formatting.
17748         (rs6000_legitimize_reload_address): Likewise.
17750 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17752         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17753         now that we have one.
17755 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17757         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
17758         end of first block of bitfields (which was only seven bits);
17759         rename dummy to unused_1; remove comment which is no longer true.
17761 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17763         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17765 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17767         PR 5399
17768         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17769         if generating PIC.
17771         PR 5054
17772         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17773         arm_is_longcall_p rather than inspecting call-type cookie
17774         directly.
17775         (call_value_insn) [TARGET_THUMB]: Likewise.
17777 2002-02-19  Graham Stott  <grahams@redhat.com>
17779         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17781 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17783         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17784         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17785         (FP_SAVE_INLINE): Delete.
17787         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17788         * config/rs6000/eabi.asm: Remove ABI save restore routines.
17789         * config/rs6000/t-ppccomm: Build crtsavres.o.
17790         * config/rs6000/crtsavres.asm: New file.
17792 2002-02-19  Philip Blundell  <philb@gnu.org>
17794         * config/arm/arm.c (use_return_insn): Don't reject interrupt
17795         functions.
17796         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17797         (output_return_instruction): Allow interrupt functions to return with
17798         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
17799         (arm_expand_prologue): Subtract 4 before stacking LR in an
17800         interrupt function.
17802 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17804         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17805         decl, not just FUNCTION_DECL.
17806         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17807         (arm_assemble_integer): Likewise.
17808         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17809         marked local.
17811 2002-02-19  matthew green  <mrg@eterna.com.au>
17813         * config.gcc (sparc-*-netbsdelf*): Enable target.
17814         (sparc64-*-netbsd*): New target.
17815         * config/sparc/netbsd-elf.h: New file.
17816         * config/sparc/t-netbsd64: New file.
17818 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17820         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17822 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
17824         * doc/invoke.texi: explicitly list the style guidelines that
17825         -Weffc++ checks for.
17827 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
17829         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17831 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
17833         PR other/5718
17834         * gcc.c (cpp_unique_options): Treat -o as indicating object file
17835         only if not -E.  If -E, pass -o through to the preprocessor.
17837 2002-02-19  Kazu Hirata  <kazu@hxi.com>
17839         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17840         register number with an appropriate macro.
17842 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
17844         * doc/rtl.texi (Constants): Close @code tag.
17846 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
17848         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17849         ("mmx_uavgv4hi3"): Same.
17850         ("pmulhrwv4hi3"): Same.
17852         * tree-inline.c (walk_tree): Handle vectors.
17854         * c-common.c (constant_expression_warning): Handle vectors.
17855         (overflow_warning): Same.
17857         * sched-deps.c (sched_analyze_2): Handle vectors.
17859         * rtlanal.c (rtx_unstable_p): Handle vectors.
17860         (rtx_varies_p): Same.
17861         (count_occurrences): Same.
17862         (regs_set_between_p): Same.
17863         (modified_between_p): Same.
17864         (modified_in_p): Same.
17865         (volatile_insn_p): Same.
17866         (volatile_refs_p): Same.
17867         (side_effects_p): Same.
17868         (may_trap_p): Same.
17869         (inequality_comparisons_p): Same.
17870         (replace_regs): Same.
17871         (computed_jump_p_1): Same.
17873         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17874         argument.
17875         (inner_mode_array): New.
17876         (copy_rtx): Handle vectors.
17877         (copy_most_rtx): Same.
17878         (rtx_equal_p): Same.
17879         (get_mode_alignment): Adjust for vectors.
17881         * resource.c (mark_referenced_resources): Handle vectors.
17882         (mark_set_resources): Same.
17884         * reload1.c (eliminate_regs): Handle vectors.
17885         (elimination_effects): Same.
17886         (scan_paradoxical_subregs): Same.
17888         * reload.c (subst_reg_equivs): Handle vectors.
17890         * regrename.c (scan_rtx): Handle vectors.
17892         * regclass.c (reg_scan_mark_refs): Handle vectors.
17894         * recog.c (find_single_use_1): Handle vectors.
17896         * local-alloc.c (equiv_init_varies_p): Handle vectors.
17897         (contains_replace_regs): Same.
17898         (memref_referenced_p): Same.
17900         * integrate.c (copy_rtx_and_substitute): Handle vectors.
17901         (subst_constants): Same.
17903         * genattrtab.c (attr_copy_rtx): Handle vectors.
17904         (encode_units_mask): Same.
17905         (clear_struct_flag): Same.
17906         (count_sub_rtxs): Same.
17908         * gcse.c (want_to_gcse_p): Handle vectors.
17909         (oprs_unchanged_p): Same.
17910         (hash_expr_1): Same.
17911         (oprs_not_set_p): Same.
17912         (expr_killed_p): Same.
17913         (compute_transp): Same.
17914         (store_ops_ok): Same.
17916         * function.c (purge_addressof_1): Do not allow paradoxical subregs
17917         of vectors.
17918         (fixup_var_refs_1): Same.
17919         (instantiate_virtual_regs_1): Same.
17921         * fold-const.c (operand_equal_p): Handle vectors.
17922         (fold): Same.
17923         (rtl_expr_nonnegative_p): Same.
17925         * flow.c (mark_used_regs): Handle vectors.
17927         * df.c (df_uses_record): Handle vectors.
17929         * cselib.c (cselib_subst_to_values): Handle vectors.
17930         (cselib_mem_conflict_p): Same.
17931         (hash_rtx): Same.
17933         * cse.c (canon_reg): Handle vectors.
17934         (fold_rt): Same.
17935         (cse_process_notes): Same.
17936         (count_reg_usage): Same.
17937         (canon_hash): Same.
17939         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17941         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17943         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17944         (gen_rtx): Handle CONST_VECTOR.
17945         (gen_const_vector_0): New.
17946         (copy_rtx_if_shared): CONST_VECTORs can be shared.
17947         (reset_used_flags): Same.
17948         (copy_insn_1): Same.
17949         (initializer_constant_valid_p): Handle VECTOR_CST.
17951         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17953         * doc/rtl.texi (Constants): Document const_vector.
17954         (CONST0_RTX): Update for vectors.
17955         (RTL sharing): Same.
17957         * print-tree.c (print_node): Add case for VECTOR_CST.
17959         * tree.h (TREE_VECTOR_CST_ELTS): New.
17960         (struct tree_vector): New.
17961         (union tree_node): Add vector node.
17962         (build_vector): Add prototype.
17964         * tree.def (VECTOR_CST): New.
17966         * tree.c (build_vector): New.
17968         * expmed.c (make_tree): Handle CONST_VECTOR.
17970         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17971         (CONST_VECTOR_ELT): New.
17972         (CONST_VECTOR_NUNITS): New.
17974         * machmode.h (GET_MODE_INNER): New.
17975         (DEF_MACHMODE): Accept 8th arg.
17977         * machmode.def: Add 8th argument for vector inner mode.
17978         Add inner vector modes for vectors.
17980         * rtl.def (VEC_CONST): Remove.
17981         (CONST_VECTOR): New.
17983         * expr.c (clear_storage): Allow vectors.
17984         (is_zeros_p): Handle VECTOR_CST.
17986         * varasm.c (output_constant_pool): Handle vectors.
17987         (rtx_const): Add veclo and vechi fields.
17988         (kind): Add RTX_VECTOR.
17989         (decode_rtx_const): Add case for vector.
17991         * config/rs6000/rs6000-protos.h: Add zero_constant.
17993         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17994         constants.  Force easy vector constants into memory.
17995         (easy_vector_constant): New.
17996         (emit_easy_vector_constant): New.
17997         (rs6000_legitimize_reload_address): Do not generate bad reloads on
17998         darwin.
18000         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18001         instruction does.
18002         ("altivec_lvxl"): Same.
18003         (altivec_lvebx): Same.
18004         (altivec_lvehx): Same.
18005         (altivec_lvewx): Same.
18006         ("*movv4si_const0"): New.
18007         ("*movv4sf_const0"): New.
18008         ("*movv8hi_const0"): New.
18009         ("*movv16qi_const0"): New.
18011 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18013         * config/h8300/h8300.c (notice_update_cc): Use
18014         cc_status.value2.
18016 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18018         * config/h8300/h8300.md (divmod patterns): Change the
18019         constraints for operands[1] to register_operand.
18021 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18023         * config/h8300/h8300-protos.h: Remove the prototype for
18024         p_operand.
18025         * config/h8300/h8300.c (p_operand): Remove.
18026         * config/h8300/h8300.md: Replace p_operand with
18027         const_int_operand.
18029 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18031         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18032         comment.
18033         (output_return_instruction): Allow use of LDR to unstack
18034         return addresss even for interrupt handlers or when
18035         interworking.  If compiling for ARMv5, use interworking-safe
18036         return instructions by default.  Remove duplicated code and
18037         lengthy "strcat" sequences.
18039 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18041         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18042         (LINK_EH_SPEC): Define.
18043         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18045 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
18047         * config/s390/s390.c (s390_emit_prologue): Do not set the
18048         frame_related flag for call-clobbered registers.
18050 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
18052         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18053         (construct_container): Fix handling of SSE operands.
18054         (ix86_expand_builtin): Fix handling of 64bit pointers.
18055         (mmx_maskmovq_rex): New pattern.
18057 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
18059         * regrename.c (kill_set_value): Handle subregs properly.
18061 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
18063         * objc/objc-act.c (handle_impent): Remove leading '*'
18064         from objc_class_name.
18066 2002-02-17  Richard Henderson  <rth@redhat.com>
18068         * config/alpha/alpha.c (some_small_symbolic_operand,
18069         some_small_symbolic_operand_1, split_small_symbolic_operand,
18070         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18071         Handle small SYMBOL_REFs anywhere, not just inside memories.
18072         * config/alpha/alpha-protos.h: Update.
18073         * config/alpha/alpha.h (PREDICATE_CODES): Update.
18074         * config/alpha/alpha.md (small symbolic operand splitter): Update.
18076 2002-02-17  Roland McGrath  <roland@frob.com>
18078         * config.gcc (powerpc-*-gnu-gnualtivec*,
18079         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18080         * config/rs6000/gnu.h: New file.
18081         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18082         Grok "gnu" in rs6000_abi_name.
18083         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18084         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18085         Grok -mcall-gnu analogous to -mcall-linux et al.
18086         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18087         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18088         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18090 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
18092         PR c/3444:
18093         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18094         shortening.
18096 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18098         * config/cris/cris.h: Undefine STARTFILE_SPEC and
18099         ENDFILE_SPEC before (re)defining them.
18101 2002-02-17  Kazu Hirata  <kazu@hxi.com>
18103         * config/h8300/h8300.c: Fix formatting.
18104         * config/h8300/h8300.h: Likewise.
18106 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18108         * doc/tm.texi: Explain why empty strings should not be
18109         marked for translation.
18111 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18113         * final.c (output_operand_lossage): Changed to accept
18114         printf style arguments. Change calls where necessary.
18115         * output.h (output_operand_lossage): Change declaration
18116         accordingly. Update copyright.
18117         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18118         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18119         Update copyright date where necessary.
18121         * config/i386/i386.c (print_operand): Likewise. Remove use of
18122         sprintf.
18124         * config/cris/cris.c (cris_operand_lossage): Likewise.
18125         Rename parameter so that exgettext recognizes it as
18126         translatable message.
18127         (LOSE_AND_RETURN): Rename parameter to msgid.
18129 2002-02-17  Kazu Hirata  <kazu@hxi.com>
18131         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18132         hard coded register number with an appropriate macro.
18133         (HARD_REGNO_MODE_OK): Likewise.
18134         (ARG_POINTER_REGNUM): Likewise.
18135         (STATIC_CHAIN_REGNUM): Likewise.
18136         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18137         * config/h8300/h8300.md (define_constants): Define more
18138         register numbers.
18140 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18142         * config/i386/i386.h: Don't mark empty strings for translation.
18144 2002-02-16  H.J. Lu <hjl@gnu.org>
18146         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18148 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
18150         * cppinit.c (merge_include_chains): Check for brack being
18151         NULL before attempting to merge it with qtail.
18153 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
18155         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18156         DBX_DEBUG.
18158 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18160         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18162 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18164         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18165         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18166         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18168 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18170         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18171         now only if !TARGET_FIX.
18172         (*movsi_nt_vms_fix): New pattern.
18174 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
18176         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18177         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18178         (alpha_sa_mask, alpha_sa_size): Reflect above change.
18179         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18180         (alpha_start_function, alpha_expand_epilogue): Likewise.
18181         (unicosmk_gen_dsib): Likewise.
18183 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18185         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18187 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
18189         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18190         check_and_change_labels, s390_final_chunkify): Delete.
18191         (s390_split_branches, s390_chunkify_pool): New functions.
18192         (s390_function_prologue): Call them.
18194         * config/s390/s390.h (S390_REL_MAX): Delete.
18195         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18197         * config/s390/s390.md (cjump, icjump, jump): Fix length
18198         attribute calculation.
18201 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
18203         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18204         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18206 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18208         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18209         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18210         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18212 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
18214         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18216 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
18218         * reload.c (find_dummy_reload): Check that an output register
18219         is valid for its mode.
18221 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
18223         * combine.c (known_cond): After replacing the REG of a SUBREG, try
18224         to simplify it.
18226         * function.c (assign_parms): Demote promoted argument passed by
18227         transparent reference.
18229 2001-02-14      Joel Sherrill <joel@OARcorp.com>
18231         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18232         -Acpu() and -Amachine() to eliminate warnings.
18234 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
18236         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18238 2002-02-14  Kazu Hirata  <kazu@hxi.com>
18240         * config/h8300/h8300-protos.h: Update the prototype for
18241         const_costs.
18242         * config/h8300/h8300.c (const_costs): Treat SET as a little
18243         more expensive operation.
18244         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18245         reference to const_costs.
18247 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
18249         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18251 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
18253         PR c/5503:
18254         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18255         use arguments from newtype.
18257 2002-02-13  Eric Christopher  <echristo@redhat.com>
18259         * config/mips/mips.c (override_options): Add check for march/mipsX
18260         on the same command line. Fix error message in cpu processing.
18261         Remove architecture and ISA checks.
18263 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
18265         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18267         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18269 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
18271         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18272         alternatives.
18273         ("*movv8hi_internal1"): Same.
18274         ("*movv16qi_internal1"): Same.
18275         ("*movv4sf_internal1"): Same.
18277         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18278         not push_reload for altivec modes.
18280 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
18282         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18283         all RTEMS targets including removal of #includes from config/*/rtems*.h
18284         file and adding them to tm_file setting. Added xm_defines=POSIX to
18285         many targets.
18286         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18287         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18288         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18289         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18290         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18291         config/m68k/rtemself.h: Ditto.
18292         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18293         config/mips/rtems64.h: Ditto.
18294         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18295         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18296         Ditto.
18297         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18298         config/sparc/rtemself.h: Ditto.
18299         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18300         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18301         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18302         more like arm-elf.
18303         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18304         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18305         target made more similar to i386-elf.
18306         * config/i386/t-rtems-i386: Added soft float support and multilibs.
18307         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18308         be similar to config/m68k/t-m68kelf.
18309         * gthr-rtems.h: Encapsulate with extern "C" for C++.
18311 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
18313         * regmove.c (kill_value): Handle subregs.
18315 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
18317         * i386.md (mul patterns): Allow memory operand to be first;
18318         add expanders where needed; fix constraints.
18319         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18320         Allow memory operand to be the first.
18322         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18323         operands.
18325 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18327         PR c/5681:
18328         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18329         GET_MODE (x).
18331 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18333         PR optimization/5547:
18334         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18335         all valid IA-32 address modes involving non-scaled %ebx and
18336         GOT/GOTOFF as displacement.
18338 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
18340         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18341         after emitting ltorg insns.
18343         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18344         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18345         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18346         *abssf2): Fix "op_type" attribute.
18348 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
18350         * mkconfig.sh: Avoid using a subshell redirect.
18351         ($output.T): Change to $(output)T.
18352         (ENABLE_NLS): Remove unneeded undef.
18354         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18355         * config/alpha/x-vms (libsubdir): Define.
18357         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18358         register frame procedures. Optimize retrieving context.
18360         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18361         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18362         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18364 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18366         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18367         Make same change as for find_base_value.
18369 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18371         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18372         of QImode and SImode.
18374 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18376         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18377         length computation of movsi.
18378         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18380 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18382         * config/h8300/h8300.md (subqi3): Tighten the predicate for
18383         operands[2] to register_operand.
18385 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18387         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18389 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
18391         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18392         for altivec_lvx* and altivec_stvx*.
18393         ("*movv4si_internal"): Add constraint for loading from GPRs.
18394         ("*movv8hi_internal1"): Same.
18395         ("*movv16qi_internal1"): Same.
18396         ("*movv4sf_internal1"): Same.
18398         * config/rs6000/rs6000.c (altivec_register_operand): New.
18400         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18401         altivec_register_operand.
18403 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
18405         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18406         handle SYMBOL_REF.
18408 2002-02-13  Stan Shebs  <shebs@apple.com>
18410         * c-typeck.c (digest_init): Handle vectors.
18411         (really_start_incremental_init): Same.
18412         (pop_init_level): Same.
18413         (process_init_element): Same.
18415         * varasm.c (output_constant): Same.
18417         * expr.c (clear_storage): Same.
18418         (store_constructor): Same.
18420 2002-02-12  Eric Christopher  <echristo@redhat.com>
18422         * explow.c (hard_function_value): Add comment explaining
18423         signed/unsigned comparison.
18425 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
18427         * jump.c (never_reached_warning): Add finish argument.
18428         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18429         real insn after end.
18430         * rtl.h (never_reached_warning): Adjust prototype.
18431         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18432         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18433         never_reached_warning.
18435 2002-02-12  Graham Stott  <grahams@redhat.com>
18437         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18439 2002-02-12  Kazu Hirata  <kazu@hxi.com>
18441         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18442         logical shifts on H8/300.
18443         (shift_alg_si): Improve several shifts on H8/300.
18444         (get_shift_alg): Likewise.
18446 2002-02-12  Graham Stott  <grahams@redhat.com>
18448         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18450 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18452         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18453         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18455 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
18457         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18458         non-CONST_INT through default_assemble_integer.
18459         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18460         <case 8>: Abort for CONST_DOUBLE.
18462 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18464         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18465         is specified.
18466         * config/pa/pa-linux.h (LIB_SPEC): Delete.
18467         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18469 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
18471         * config/stormy16/stormy16.md (zero_extendqihi2): New.
18473 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
18475         * regrename.c (regrename_optimize): Don't accept a
18476         part-clobbered register if the replaced register is not part
18477         clobbered.
18479         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18480         take padding into account when computing the argument value.
18482         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18484         * combine.c (try_combine): Apply substitutions in
18485         CALL_INSN_FUNCTION_USAGE too.
18487 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
18489         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18490         __builtin_altivec_abs*.
18491         (bdesc_abs): New.
18493         * config/rs6000/rs6000.h (rs6000_builtins): Add
18494         ALTIVEC_BUILTIN_ABS*.
18496         * config/rs6000/altivec.h: Use const char for builtins expecting
18497         literals.
18498         (vec_abs): New versions for C and C++.
18499         (vec_abss): Same.
18501 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18503         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18504         using Pmode.
18506 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18508         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18509         constant definition from h8300.md.
18510         (FRAME_POINTER_REGNUM): Likewise.
18511         * config/h8300/h8300.md (define_constants): Add FP_REG.
18513 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18515         * config/h8300/h8300.c (print_operand): Remove redundant code.
18517 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18519         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18520         * config/h8300/h8300.c (byte_reg): Make it static.
18522 2002-02-10  Richard Henderson  <rth@redhat.com>
18524         PR c/5623
18525         * c-typeck.c (incomplete_type_error): Handle flexible array members.
18527 2002-02-10  Richard Henderson  <rth@redhat.com>
18529         PR c++/5624
18530         * tree.c (append_random_chars): Don't abort if main_input_filename
18531         does not exist.
18533 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
18535         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18537 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18539         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18540         (pushhi1): Likewise.
18542 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18544         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18545         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18547 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
18549         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18550         remove MASK_VIS.
18551         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
18553 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18555         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18556         a half of an SImode register on H8/300.
18558 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
18560         * i386.md (movdi_2): Add missing '!'.
18562 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18564         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
18565         definitions.
18567 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18569         * config/h8300/h8300.md (length): Correct the distance valid
18570         for the short branch.
18572 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18574         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18576 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18578         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18579         registers in SImode.
18580         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18581         part-clobbered.
18583         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18584         patch.
18586         Contribute sh64-elf.
18587         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18588         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18589         (sh_cannot_modify_jumps_p): New function.
18590         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18591         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18592         (sh_ms_bitfield_layout_p): New function.
18593         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
18594                     Zack Weinberg  <zack@codesourcery.com>
18595         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18596         expand_simple_binop instead of expand_binop.
18597         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
18598         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18599         use of .quad and .uaquad.
18600         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18601         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18602         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18603         * config/sh/sh.md (movdi_const, movdi_const_32bit,
18604         movdi_const_16bit): Make sure all CONSTs have modes.
18605         (sym2PIC): Ditto, but by adjusting all callers.
18606         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18607         if the prologue calls the SHmedia argument decoder or register
18608         saver.
18609         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18610         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18611         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18612         (sh_expand_epilogue): Don't emit USE of return target register.
18613         (prepare_move_operands): Legitimize DImode PIC addresses.
18614         (sh_media_register_for_return): Skip tr0, used to initialize the
18615         PIC register.
18616         (sh_expand_prologue): Remove explicit USE of return register.
18617         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
18618         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
18619         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18620         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18621         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18622         EXTRA_CONSTRAINT_T.
18623         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18624         (MOVI_SHORI_BASE_OPERAND_P): New.
18625         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18626         (EXTRA_CONSTRAINT_T): Define in terms of them.
18627         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18628         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18629         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18630         alternatives supporting TARGET_REGS.
18631         (UNSPEC_GOTPLT): New constant.
18632         (movdi split): Move incrementing of LABEL_NUSES...
18633         (movdi_const, movdi_const_32bit): Here.  Use
18634         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18635         (movdi_const_16bit): New.
18636         (call, call_value) [flag_pic]: Use GOTPLT.
18637         (call_pop, call_value_pop): New expands.
18638         (call_pop_compact, call_pop_rettramp): New insns.
18639         (call_value_pop_compact, call_value_pop_rettramp): New insns.
18640         (sibcall) [flag_pic]: Use GOT.
18641         (builtint_setjmp_receiver): Remove bogus, unused expand.
18642         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18643         (*pt, *ptb, ptrel): New insns.
18644         (sym2GOT): Handle DImode GOT.
18645         (sym2GOTPLT, symGOTPLT2reg): New expands.
18646         (sym2PIC): New expand.
18647         (shcompact_return_tramp): Use GOTPLT to return trampoline.
18648         (shcompact_return_tramp_i): Use return register explicitly.
18649         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18650         disable flag_reorder_blocks.
18651         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18652         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18653         clobbers, for clarity.
18654         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18655         restoring of r0 in macl as MAYBE_DEAD.
18656         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
18657         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18658         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18659         alter_subreg all over.
18660         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18661         reload, instead of emitting instructions that would require
18662         reloading.
18663         (casesi_load_media): Add missing modes.
18664         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
18665         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18666         as used if the argument decoder is called.
18667         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18668         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18669         Pmode, then extend it to DImode if necessary.
18670         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18671         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18672         constants in FPU-enabled SHmedia, let them be loaded from memory.
18673         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18674         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18675         Adjust whitespace in assembly output templates.
18676         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18677         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18678         mode of if_then_else.
18679         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
18680         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18681         sh.h.
18682         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
18683                     Joern Rennecke <amylaar@redhat.com>
18684         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18685         (SUBTARGET_CPP_PTR_SPEC): New.
18686         (SUBTARGET_CPP_SPEC): Remove.
18687         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18688         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18689         Fix typo in previous checkin.
18690         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
18691         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18692         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
18693                     Alexandre Oliva  <aoliva@redhat.com>
18694         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18695         what single FP register can hold for SHmedia target.
18696         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18697                     Alexandre Oliva  <aoliva@redhat.com>
18698         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18699         Do not split into SUBREG.
18700         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
18701         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18702         and added new functions as specified in SH5 ABI r9.
18703         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
18704         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18705         8-byte boundary.
18706         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
18707         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18708         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
18709         and consttable_window_ends.
18710         2001-06-03  Graham Stott  <grahams@redhat,com>
18711         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18712         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
18713         * config/sh/sh.c (print_operand): Handle floating-point pair,
18714         vector and matrix registers.
18715         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18716         vector modes into account.
18717         * config/sh/sh.md (movv2sf): Split move between registers into
18718         movdf.
18719         (movv4sf, movv16sf): Introduce insns that get split only after
18720         reload.
18721         * config/sh/shmedia.h: Fix Copyright dates.
18722         * config/sh/ushmedia.h: Likewise.  Move loop counter
18723         declarations into conditionals that uses them.
18724         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18725         loop boundary.
18726         * config/sh/sshmedia.h: Fix Copyright dates.
18727         (sh_media_PUTCFG): Fix constraints.
18728         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
18729         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18730         ptrmemfunc_vbit_in_delta for SH5.
18731         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
18732         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18733         * invoke.texi: Likewise.
18734         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
18735         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18736         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18737         GCC_pop_shmedia_regs_nofpu): New global symbols.
18738         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18739         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18740         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18741         compact function with nonlocal labels.
18742         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18743         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18744         (initial_elimination_offset): Account for their stack space.
18745         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18746         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18747         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18748         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18749         least one of the operands to be a register.
18750         (movv2sf): Likewise.  Renamed to movv2sf_i.
18751         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18752         prepare_move_operands() before emitting SHmedia insns.
18753         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
18754         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18755         Don't save nor initialize r12.  Don't mis-align the stack.
18756         Pad the code with a nop.
18757         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
18758         stack.
18759         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
18760         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18761         [__SHMEDIA__]: Implement.
18762         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
18763         * config/sh/sh.md: Set latency of `pt' closer to reality.
18764         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18765         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18766         Set move, load and store type attributes.
18767         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18768         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18769         profiling.
18770         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18771         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18772         * config/sh/sh.c (sh_media_register_for_return): New function.
18773         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18774         branch-target register.
18775         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18776         * config/sh/sh.md (return_media_i): Use any call-clobbered
18777         branch-target register.
18778         (return_media): If r18 wasn't copied in the prologue, copy it
18779         here.
18780         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18781         Clear class FP0_REGS.
18782         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18783         from elf.h.
18784         2001-03-08  DJ Delorie  <dj@redhat.com>
18785         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18786         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
18787         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18788         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
18789         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18790         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
18791         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18792         return value correctly for call_cookie.
18793         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
18794         * config/sh/crt1.asm (start): Modified so as to call
18795         ___setup_argv_and_call_main.
18796         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
18797         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18798         SHmedia mode.
18799         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
18800         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18801         (STRIP_NAME_ENCODING): Use it.
18802         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
18803         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
18804         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18805         prepare_scc_operands().
18806         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18807         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18808         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
18809         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18810         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
18811         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18812         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18813         used in shcompact_incoming_args.
18814         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18815         change.
18816         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18817         mode.
18818         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18819         Adjust accordingly.
18820         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18821         Simplify.  Adjust.  Add sanity check.
18822         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18823         FPU_SINGLE_BIT.
18824         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18825         TARGET_SHCOMPACT.
18826         (udivsi3, divsi3): Use them.
18827         (force_mode_for_call): New insn.
18828         (call, call_value, sibcall_value): Emit it before SHcompact
18829         calls.
18830         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
18831         * config/sh/sh.md (call, call_value, sibcall): Make sure the
18832         call cookie is non-NULL before taking its value.
18833         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
18834         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18835         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
18836         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18837         block.
18838         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18839         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18840         temporary for stack adjusts.  Use MACL and MACH to pass
18841         arguments to shcompact_incoming_args.
18842         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
18843         clobber r1.
18844         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18845         (nested_trampoline): Load static chain address into r1.
18846         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18847         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
18848         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18849         fp_arith_reg_operand().
18850         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
18851         * config/sh/sh.md (casesi): Sign-extend the first two operands,
18852         and use signed compares for them.
18853         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18854         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
18855         ones properly aligned.
18856         (find_barrier): Account for extra alignment needed for 8-byte wide
18857         constants.
18858         (machine_dependent_reorg): Require a label for the second 4-byte
18859         constant after an 8-byte one.
18860         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18861         change.
18862         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18863         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18864         last_float when switching float modes.
18865         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18866         auto-increment for general-purpose registers.
18867         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18868         result.
18869         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18870         for stack adjust.
18871         * config/sh/sh.c (sh_builtin_saveregs): Support using all
18872         registers for varargs.
18873         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
18874         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18875         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18876         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18877         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18878         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
18879         call_cookie accordingly.
18880         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18881         (SHCOMPACT_BYREF): Likewise.
18882         (SHCOMPACT_FORCE_ON_STACK): New macro.
18883         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18884         (sh_builtin_saveregs): Likewise.
18885         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18886         shcompact_incoming_args): Use new shift values.  Support
18887         sequences of consecutive and non-consecutive pushes/pops.
18888         * config/sh/sh.md (return): Don't explicitly use PR_REG.
18889         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
18890         * config/sh/sh.h (TEXT_SECTION): Define.
18891         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18892         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18893         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18894         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18895         return values on FPU-enabled SHmedia.
18896         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18897         FPU-enabled SHmedia.
18898         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18899         value is returned in a non-FP reg and is not returned by
18900         reference.
18901         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18902         jump_ind.
18903         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
18904         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18905         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18906         quad-aligned to be passed by callee-copy reference.
18907         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
18908         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18909         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18910         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
18911         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18912         copying low-numbered FP regs to r7 and r8.
18913         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18914         FP regs to general-purpose regs only if the copy was passed on the
18915         stack.
18916         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18917         copying FP reg to r9.
18918         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18919         copy FP regs to general-purpose regs only in outgoing calls.
18920         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18921         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
18922         HOST_WIDE_INT.
18923         * config/sh/sh.h (struct sh_args): Document all fields.
18924         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18925         passed partially on the stack should not consider making
18926         sibcalls.
18927         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18928         stack_regs only for incoming calls.  When passing FP args,
18929         make sure there are FP regs available before modifying
18930         call_cookie.
18931         (SHCOMPACT_BYREF): Pass double args in general-purpose
18932         registers by reference.
18933         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
18934         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18935         attempt to generate sibcalls if the caller got any arguments
18936         by reference.
18937         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18938         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18939         to 8-byte boundaries.
18940         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18941         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18942         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18943         stored in the stack.
18944         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18945         for the offsets to have the ISA bit set.
18946         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
18947         invocation.  Use beq instead of bgt to mark end of sequence of
18948         loads.
18949         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
18950         bgt to mark end of sequence of stores.
18951         * config/sh/sh.c (arith_operand): Don't check whether
18952         CONST_OK_FOR_J for now.
18953         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18954         instead of long for conversion.
18955         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
18956         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18957         before passing it to fprintf.
18958         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
18959         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18960         Call set_fpscr before reading/writing SR.
18961         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18962         Call set_fpscr.
18963         * config/sh/lib1funcs.asm: Add `.align 2' directives before
18964         SHmedia code.
18965         (FMOVD_WORKS): Define on SH5 with FPU.
18966         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
18967         setting.
18968         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18969         _fpscr_values.
18970         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
18971         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18972         address.
18973         (ia_main_table): Ditto.
18974         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
18975         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18976         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18977         the definitions from sh.h.
18978         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18979         TARGET_SH5.
18980         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18981         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18982         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18983         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
18984         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18985         Increment LABEL_NUSES.
18987         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18988         TARGET_SH5.
18989         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18990         defined.
18991         * config/sh/elf.h (SIZE_TYPE): Likewise.
18992         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18993         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18994         shcompact_incoming_args): Load switch table addresses using
18995         datalabel.
18996         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18997         (NO_BUILTIN_SIZE_TYPE): Define.
18998         (SIZE_TYPE): Don't define.
18999         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19000         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19001         definition of __SH5__=32 for -m5-compact-nofpu.
19002         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19003         ADDR_DIFF_VEC.
19004         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
19005         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19006         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
19007         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19008         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19009         (INSN_LENGTH_ALIGNMENT): Likewise.
19010         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19011         * config/sh/sh.md (call, call_value, sibcall): Simplify
19012         copying of non-branch-target register.
19013         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19014         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
19015         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19016         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19017         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19018         floating-point values as structs.
19019         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19020         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19021         general-purpose register.
19022         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19023         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
19024         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19025         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19026         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19027         (ENCODE_SECTION_INFO): Enclose variables and constants in
19028         DATALABEL unspecs.
19029         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19030         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19031         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19032         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19033         only for LABEL_REFs.  For SYMBOL_REFs, prepend
19034         SH_DATALABEL_ENCODING to the symbol name.
19035         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19036         convert_mode().
19037         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
19038         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19039         UNSPEC_DATALABEL.
19040         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19041         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19042         (DATALABEL_REF_P): Don't require CONST.
19043         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19044         REL label.
19045         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
19046         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19047         right.
19048         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
19049         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19050         Use shallow_copy_rtx and PUT_MODE to change the mode of
19051         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19052         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19053         on SHmedia using GENERAL_REGs.
19054         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19055         bltu_media_i): Fix reversion of conditions.
19056         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
19057         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19058         * config/sh/sh.c (output_far_jump): Save r13 in macl.
19059         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
19060         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19061         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
19062         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19063         (GCC_nested_trampoline): Likewise.
19064         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19065         * config/sh/sh.c (gen_datalabel_ref): Define.
19066         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19067         (INITIALIZE_TRAMPOLINE): Likewise.
19068         (TRAMPOLINE_ADJUST_ADDRESS): Define.
19069         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19070         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19071         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19072         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19073         (ic_invalidate): Adjust for SH5.
19074         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19075         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19076         _nested_trampoline.
19077         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
19078         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19079         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19080         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
19081         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19082         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19083         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
19084         * config/sh/sh.c (target_reg_operand): Match only target-branch
19085         registers and pseudos that aren't virtual registers.
19086         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19087         Copy operands that don't match target_reg_operand to pseudos.
19088         (call_media, call_value_media, sibcall_media): Use
19089         target_reg_operand instead of target_operand.
19090         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
19091         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19092         * config/sh/sh.c (target_reg_operand): Match hardware registers
19093         other than branch-target registers.
19094         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19095         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19096         (fpscr_values) [SH5 == 32]: Define.
19097         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19098         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19099         Handle function addresses coming in SUBREGs.
19100         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
19101         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19102         shcompact_return_trampoline): Use datalabel where appropriate.
19103         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
19104         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19105         general-purpose register to copy one branch-target register to
19106         another.
19107         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
19108         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19109         SYMBOL_REFs with VOIDmode.
19110         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19111         bltu_media_i): New insns.
19112         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
19113         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19114         (INIT_CUMULATIVE_ARGS): Likewise.
19115         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
19116         * machmode.def (V16SFmode): New mode.
19117         * c-common.c (type_for_mode): Support V2SF and V16SF.
19118         * tree.c (build_common_tree_nodes_2): Likewise.
19119         * tree.h (tree_index): Likewise.
19120         * calls.c (emit_call_1): Take args_so_far.  Adjust all
19121         callers.  Introduce CALL_POPS_ARGS.
19122         * tm.texi (CALL_POPS_ARGS): Document.
19123         * config/sh/crt1.asm: Implement in SHmedia mode.
19124         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19125         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19126         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19127         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19128         Implement divsi and udivsi in SHmedia mode.  Introduce
19129         SHcompact trampolines.
19130         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19131         only in SHmedia64.
19132         (regno_reg_class): Rewrite.
19133         (fp_reg_names): Remove.
19134         (sh_register_names, sh_additional_register_names): New.
19135         (print_operand): Added `u'.  Support SUBREGs in addresses.
19136         Add parentheses around shifted CONSTs.
19137         (output_file_start): Output .mode and .abi directives.
19138         (shiftcosts, addsubcosts, multcosts): Adjust.
19139         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
19140         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
19141         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
19142         bytes, not registers.  Take into account the need for the
19143         SHcompact incoming args trampoline.  Adjust all callers.
19144         (sh_expand_prologue): Take stack_regs into account.  Call
19145         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
19146         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
19147         stack aligned as per SH5 ABI.
19148         (sh_builtin_saveregs): Support SH5 ABI.
19149         (sh_build_va_list, sh_va_start): Likewise.
19150         (initial_elimination_offset): Take alignment into account.
19151         Compute location of PR according to the SH5 stack frame.
19152         (arith_reg_operand): Reject branch-target registers.
19153         (shmedia_6bit_operand): New.
19154         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19155         (target_reg_operand): Match DImode only.  Accept SUBREGs.
19156         (target_operand): New.
19157         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19158         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
19159         SIBCALL_REGS for SHmedia.
19160         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19161         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19162         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19163         (TARGET_SWITCHES): New SH5 flags.
19164         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
19165         VALID_REGISTER_P to disable unsupported registers.
19166         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19167         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19168         (FUNCTION_ARG_PADDING): Define.
19169         (FASTEST_ALIGNMENT): Adjust.
19170         (SH_REGISTER_NAMES_INITIALIZER): New.
19171         (sh_register_names): Declare.
19172         (DEBUG_REGISTER_NAMES): Define.
19173         (REGISTER_NAMES): Define based on sh_register_names.
19174         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19175         (sh_additional_register_names): Declare.
19176         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19177         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19178         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19179         (REGISTER_NATURAL_MODE): Define.
19180         (FIRST_PSEUDO_REGISTER): Adjust.
19181         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19182         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19183         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19184         (VECTOR_MODE_SUPPORTED_P): Define.
19185         (REG_CLASS_CONTENTS): Adjust.
19186         (SMALL_REGISTER_CLASSES): Adjust.
19187         (REG_ALLOC_ORDER): Adjust.
19188         (INDEX_REG_CLASS): Adjust.
19189         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19190         (CONST_OK_FOR_LETTER_P): Adjust.
19191         (PREFERRED_RELOAD_CLASS): Adjust.
19192         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19193         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19194         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19195         (FIRST_FP_PARM_REG): Adjust.
19196         (CALL_POPS_ARGS): Define.
19197         (FUNCTION_ARG_REGNO_P): Adjust.
19198         (struct sh_args): New fields.
19199         (GET_SH_ARG_CLASS): Adjust.
19200         (INIT_CUMULATIVE_ARGS): Adjust.
19201         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19202         (FUNCTION_ARG_ADVANCE): Adjust.
19203         (FUNCTION_ARG): Adjust.
19204         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19205         (FUNCTION_ARG_CALLEE_COPIES): Define.
19206         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19207         (STRICT_ARGUMENT_NAMING): Define.
19208         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19209         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19210         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19211         (SETUP_INCOMING_VARARGS): Adjust.
19212         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19213         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19214         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19215         (SUBREG_OK_FOR_INDEX_P): Adjust.
19216         (EXTRA_CONSTRAINT_S): Update.
19217         (EXTRA_CONSTRAINT_T): New.
19218         (EXTRA_CONSTRAINT): Adjust.
19219         (GO_IF_LEGITIMATE_INDEX): Adjust.
19220         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19221         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19222         (MOVE_MAX): Adjust.
19223         (MAX_MOVE_MAX): Define.
19224         (Pmode): Adjust.
19225         (CONST_COSTS): Adjust.
19226         (REGISTER_MOVE_COST): Adjust.
19227         (BRANCH_COST): Adjust.
19228         (TEXT_SECTION_ASM_OP): Adjust.
19229         (DBX_REGISTER_NUMBER): Adjust.
19230         (ASM_OUTPUT_DOUBLE_INT): New.
19231         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19232         (PREDICATE_CODES): Adjust.
19233         (PROMOTE_MODE): Adjust.
19234         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19235         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19236         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19237         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19238         (DR0_REG, DR2_REG, DR4_REG): Renumber.
19239         (TR0_REG, TR1_REG, TR2_REG): New.
19240         (XD0_REG): Renumber.
19241         (UNSPEC_COMPACT_ARGS): New.
19242         (type): Added pt and ptabs.
19243         (length): Default to 4 on SHmedia.  Default pt length to 12
19244         and     20 on SHmedia32 and SHmedia64, respectively.
19245         (pt): New function unit.
19246         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
19247         Add whitespace between operands of SHmedia instructions.
19248         (movdicc): Fix.
19249         (adddi3_media, addsi3_media): Adjust constraints.
19250         (subsi3) [SHmedia]: Force operand 1 into a register.
19251         (udivsi3_i1_media, udivsi3_i4_media): New.
19252         (udivsi3): Support SHmedia.
19253         (divsi3_i1_media, divsi3_i4_media): New.
19254         (divsi3): Support SHmedia.
19255         (anddi3, iordi3, xordi3): Adjust constraints.
19256         (zero_extendhidi2, zero_extendqidi2): New.
19257         (extendsidi2, extendhidi2, extendqidi2): New.
19258         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19259         (pop_e, pop_fpul, pop_4): Likewise.
19260         (movsi_media): Support FP and BT registers.
19261         (movsi_media_nofpu): New.  Adjust splits to DImode.
19262         (lduw, ldub): Renamed to zero_extend* above.
19263         (movqi_media): Fix typo.
19264         (movdi_media): Support FP and BT registers.
19265         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
19266         (movdi_const_32bit): New.
19267         (shori_media): Require immediate operand.  Use `u' for output.
19268         (movdf_media, movsf_media): Simplified.
19269         (movdf_media_nofpu, movsf_media_nofpu): New.
19270         (movdf, movsf): Adjust
19271         (movv2sf, movv2sf, movv16sf): New.
19272         (beq_media, beq_media_i): Adjust constraints.  Don't use
19273         scratch BT register.
19274         (bne_media, bne_media_i): Likewise.
19275         (bgt_media, bgt_media_i): Likewise.
19276         (bge_media, bge_media_i): Likewise.
19277         (bgtu_media, bgtu_media_i): Likewise.
19278         (bgeu_media, bgeu_media_i): Likewise.
19279         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19280         bunordered): Emit jump insn.  Force operands to registers when
19281         needed.
19282         (jump_media, jump): Simplify.
19283         (call_compact, call_compact_rettramp): New.
19284         (call_value_compact, call_value_compact_rettramp): New.
19285         (call_media, call_value_media): Simplify.
19286         (sibcall_compact, sibcall_media): New.
19287         (call, call_value): Adjust for SHmedia and SHcompact.
19288         (sibcall, sibcall_value, untyped_call): Likewise.
19289         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19290         (indirect_jump): Adjust for SHmedia.
19291         (casesi_jump_media): New.
19292         (nop): Re-enable for SHmedia.
19293         (call_site): Restrict to SH1.
19294         (casesi): Adjust for SHmedia.
19295         (casesi_shift_media, casesi_load_media): New.
19296         (return): Explicitly use PR register.  Call return trampoline
19297         on SHcompact.
19298         (return_i): Explicitly use PR register.
19299         (shcompact_return_tramp, shcompact_return_tramp_i): New.
19300         (return_media): Adjust.
19301         (shcompact_incoming_args): New.
19302         (epilogue): Adjust.
19303         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19304         (movstrsi): Disable on SH5.
19305         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19306         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19307         (subsf3, subsf3_media): Likewise.
19308         (mulsf3, mulsf3_media, mac_media): Likewise.
19309         (divsf3, divsf3_media): Likewise.
19310         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
19311         (floatsisf2, fux_truncsfsi2): Likewise.
19312         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
19313         constraints.
19314         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19315         (cmpunsf_media, cmpsf): Likewise.
19316         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19317         (abssf2, abssf2_media): Likewise.
19318         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19319         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19320         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
19321         (floatsidf2, fix_truncdfsi2): Likewise.
19322         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
19323         constraints.
19324         (cmpeqdf_media, cmpgtdf_media): Likewise.
19325         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19326         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19327         (absdf2, absdf2_media): Likewise.
19328         (extendsfdf2, extendsfdf2_media): Likewise.
19329         (truncsfdf2, truncsfdf2_media): Likewise.
19330         * config/sh/sh64.h: New file.
19331         * config/sh/t-sh64: New file.
19332         * config/sh/shmedia.h: New file.
19333         * config/sh/ushmedia.h: New file.
19334         * config/sh/sshmedia.h: New file.
19335         * configure.in: Added sh64-*-elf.
19336         * configure: Rebuilt.
19337         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
19338         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19339         (reg_class_from_letter): Use `b' for TARGET_REGS.
19340         (print_operand): Support `%M', `%m', `AND' and
19341         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
19342         (andcosts): Adjust for SHmedia.
19343         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19344         Likewise.
19345         (target_reg_operand): New function.
19346         * config/sh/sh-protos.h (target_reg_operand): Declare.
19347         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19348         FP registers on SH5.
19349         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19350         on SH4.
19351         (TARGET_REGISTER_P): New macro.
19352         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19353         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19354         (EXTRA_CONSTRAINT_S): New macro.
19355         (EXTRA_CONSTRAINT): Adjust.
19356         (FLOAT_TYPE_SIZE): Define to 32.
19357         (Pmode): DImode on SHmedia.
19358         (CONST_COSTS): Adjust for SHmedia literals.
19359         (PREDICATE_CODES): Added target_reg_operand.
19360         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19361         * config/sh/sh.md: Remove all attrs from SHmedia insns.
19362         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19363         (cmpdi): Accept SHmedia.
19364         (movdicc_false, movdicc_true): New insns.
19365         (movdicc): New expand.
19366         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19367         no_new_pseudos.
19368         (addsi3_media): Match `S' constraint.
19369         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19370         (negdi2): Expand for SHmedia.
19371         (one_cmpldi2): New expand.
19372         (zero_extendsidi2): Change from expand to insn.
19373         (extendsidi2): Add constraints.
19374         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
19375         LD/ST address.  Fix SI immediate loading split.
19376         (movhi_media, movqi_media, lduw, ldub): New insns.
19377         (movhi, movqi): Accept SHmedia.
19378         (shori_media, movdi_media): Relax input constraints.  Split
19379         symbolic constants.
19380         (movdf_media, movsf_media): New insn.  New split to movdi.
19381         (movdf, movsf): Match on SHmedia.
19382         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19383         bgeu_media): New insns and splits.  New insns with `_i' suffix.
19384         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19385         (bunordered): New expand.
19386         (jump_compact): Renamed from `jump'.
19387         (jump_media): New insn.
19388         (jump): New expand.
19389         (call_media, call_value_media): New insns.
19390         (call, call_value): Adjust.
19391         (indirect_jump_compact): Renamed from `indirect_jump'.
19392         (indirect_jump_media): New insn.
19393         (indirect_jump): New expand.
19394         (untyped_call, return): Accept SHmedia.
19395         (return_media): New insn.
19396         (prologue, epilogue, blockage): Accept SHmedia.
19397         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19398         (sunordered): New expand.
19399         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19400         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19401         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19402         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19403         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19404         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19405         abssf2_media): New insns.
19406         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19407         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19408         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19409         floatdidf2, floatsidf2_media, fix_truncdfdi2,
19410         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19411         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19412         absdf2_media): New insns.
19413         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19414         (extendsfdf2_media, truncdfsf2_media): New insns.
19415         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
19416         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19417         * config/sh/sh.h (CONST_OK_FOR_J): Document.
19418         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19419         * config/sh/sh.md (adddi3): New expand.
19420         (adddi3_media, adddi3z_media): New insns.
19421         (adddi3_compact): Renamed from adddi3.
19422         (addsi3_media): Use add.l r63 to add constant zero.
19423         (subdi3): New expand.
19424         (subdi3_media): New insn.
19425         (subdi3_compact): Renamed from subdi3.
19426         (mulsidi3): New expand.
19427         (mulsidi3_media): New insn.
19428         (mulsidi3_compact): Renamed from mulsidi3.
19429         (umulsidi3): New expand.
19430         (umulsidi3_media): New insn.
19431         (umulsidi3_compact): Renamed from umulsidi3.
19432         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19433         (ashlsi3, ashrsi3, lshrsi3): Use them.
19434         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19435         (ashldi3, ashrdi3, lshrdi3): Use them.
19436         (zero_extendsidi2): New expand.
19437         (extendsidi2): New insn.
19438         (movsi_media): New insn.  Split to movdi to load constants.
19439         (movsi): Enable for shmedia.
19440         (movdi_media): New insn.  Use shori_media to load wide constants.
19441         (short_media): New insn.
19442         (movdi): Enable for shmedia.
19443         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
19444         * config/sh/sh.h (CPP_SPEC): Added `m5'.
19445         (SUBTARGET_CPP_SPEC): Added `!m5'.
19446         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19447         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
19448         to all other SH variants.
19449         (TARGET_DEFAULT): Set to SH1_BIT.
19450         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19451         (BITS_PER_WORD): Raise to 64 on shmedia.
19452         (MAX_BITS_PER_WORD): Change to 64.
19453         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19454         (INT_TYPE_SIZE): Keep as 32.
19455         (UNITS_PER_WORD): Raise to 8 on shmedia.
19456         (MIN_UNITS_PER_WORD): Keep as 4.
19457         (POINTER_SIZE): Raise to 64 on shmedia.
19458         (CONST_OK_FOR_J): New macro.
19459         (CONST_OK_FOR_LETTER_P): Use it.
19460         (processor_type): Add PROCESSOR_SH5.
19461         * config/sh/sh.md: Conditionalize all expands, insns and
19462         splits to TARGET_SH1.
19463         (cpu): Added sh5.
19464         (addsi3_compact): Renamed from...
19465         (addsi3): Now an expand.
19466         (addsi3_media, subsi3_media): New insns.
19467         (subsi3): Don't negate constants with SHmedia.
19469         * hooks.c: New file.
19470         * hooks.h: New file.
19471         * Makefile.in (HOOKS_H): New.
19472         (TARGET_DEF_H): Added $(HOOKS_H).
19473         (OBJS): Added hooks.o.
19474         (cfgcleanup.o, bb-reorder.o): Added target.h.
19475         (hooks.o): Added dependencies.
19476         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19477         (TARGET_INITIALIZER): this.
19478         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19479         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19480         * bb-reorder.c: Include target.h.
19481         (reorder_basic_blocks): Skip if cannot modify jumps.
19482         * cfgcleanup.c: Include target.h.
19483         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19485 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19487         * config/mips/mips.md (casesi_internal, casesi_internal_di):
19488         Protect jump delay slot instructions with .set noreorder and
19489         .set nomacro.
19491 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19493         * config/mips/mips.md (casesi_internal_di): Calculate
19494         the index into the target offset table correctly.
19496 2002-02-08  Richard Henderson  <rth@redhat.com>
19498         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19499         * final.c (output_addr_const): Accept and discard SUBREG.
19500         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19501         mark them unknown instead.
19502         (simplify_subtraction): Handle RTX_UNKNOWN.
19503         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19505 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
19507         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19509 2002-02-08  Richard Henderson  <rth@redhat.com>
19511         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19513 2002-02-08  Andreas Jaeger  <aj@suse.de>
19515         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19516         * config/i386/t-linux64: New file.
19518 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
19520         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19521         * c-parse.in (compstmt): Clear last_expr_type.
19523 2002-02-07  Richard Henderson  <rth@redhat.com>
19525         * loop.c (strength_reduce): Sink final_value when not
19526         eliminating a biv.
19528 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
19530         * config/sparc/freebsd.h: Fix mismatched spec {.
19532 2002-02-07  Richard Henderson  <rth@redhat.com>
19534         * cfgrtl.c: Include recog.h and insn-config.h.
19535         (keep_with_call_p): Fix general_operand invocation.
19536         * Makefile.in (cfgrtl.o): Update dependencies.
19538 2002-02-07  Kazu Hirata  <kazu@hxi.com>
19540         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19541         comment.  Accept HImode only if TARGET_H8300.
19543 2002-02-07  Eric Christopher  <echristo@redhat.com>
19545         * config/mips/crtn.asm: Cleanup #ifdefs.
19547 2002-02-07  Eric Christopher  <echristo@redhat.com>
19549         * config/mips/crti.asm: Add changes for mips16. mips16 uses
19550         register 7 as RA instead of $31.
19551         * config/mips/crtn.asm: Ditto.
19552         * config/mips/mips.c (mips_move_2words): Add case for
19553         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19554         (compute_frame_size): Fix typo.
19555         (save_restore_insns): Ditto.  Make documentation about using
19556         register $7 as return register more precise.
19557         (mips_expand_epilogue): Fix comment. Add code to work around not
19558         being able to add to the stack pointer directly.
19559         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19560         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19561         epilogue.
19563 2002-02-07  Tom Rix  <trix@redhat.com>
19565         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19566         immediates in ldu and stdu DS opcode field.
19567         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19568         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19569         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19571 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
19573         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19574         offset for stack bias.
19576 2002-02-07  H.J. Lu <hjl@gnu.org>
19578         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19580 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
19582         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19584 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
19586         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19587         * i386.c (x86_order_regs_for_local_alloc): New global function.
19588         * i386.h (REG_ALLOC_ORDER): CLeanup.
19589         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19591 2002-02-07  Richard Henderson  <rth@redhat.com>
19593         PR optimization/2463
19594         * alias.c (find_base_value): Recall base values for fixed hard regs.
19595         * loop.c (loop_regs_update): Don't use single_set on non-insns.
19597 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
19599         * config/mips/mips.md (define_delay) [mips16]: Adjust required
19600         length.
19602 2002-02-06  Richard Henderson  <rth@redhat.com>
19604         PR c/5609
19605         * stmt.c (resolve_operand_name_1): Take more care with mixed
19606         named and unnamed operands.
19608 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
19609             Jan Hubicka  <jh@suse.cz>
19611         * loop.c (remove_constant_addition): Avoid clobbering a shared
19612         CONST expression.
19614 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19616         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19617         * config/s390/t-linux64: New file.
19618         * config/s390/libgcc-glibc.ver: New file.
19620 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19622         * config/s390/linux64.h: Delete file.
19623         * config/s390/s390x.h: New file.
19624         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19625         as target header file.
19626         * config/s390/linux.h (TARGET_VERSION): Define depending on
19627         DEFAULT_TARGET_64BIT.
19628         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19629         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19630         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19631         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19632         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19633         (EXTRA_SPEC): New define.
19634         * config/s390/s390.h (TARGET_VERSION): Define depending on
19635         DEFAULT_TARGET_64BIT.
19636         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19638 2002-02-06  Jason Merrill  <jason@redhat.com>
19640         * c-decl.c (finish_function): Warn about a non-void function with
19641         no return statement and no abnormal exit.
19642         (current_function_returns_abnormally): New variable.
19643         (start_function): Clear it.
19644         (struct c_language_function): Add returns_abnormally.
19645         (push_c_function_context): Save it.
19646         (pop_c_function_context): Restore it.
19647         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19648         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19649         an explicit return type.
19650         * c-tree.h: Declare current_function_returns_abnormally.
19651         (C_FUNCTION_IMPLICIT_INT): New macro.
19652         * c-typeck.c (build_function_call): Set it.
19653         (c_expand_return): Set current_function_returns_value even if the
19654         value is erroneous.
19656 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19658         PR c/5420:
19659         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19660         unsafe for reevaluation.
19662 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19664         PR c/5482:
19665         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19666         EXPR_STMT, but COMPOUND_STMT, recurse into it.
19668 2002-02-06  Richard Henderson  <rth@redhat.com>
19670         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19671         be a general_operand.  Dest for function value must be a pseudo.
19673 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
19675         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19676         as SYMBOL_REFs from the constant pool.
19678 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
19680         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19681         passed by invisible reference.
19683 2002-02-05  Richard Henderson  <rth@redhat.com>
19685         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19687 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
19689         Implement using "base addresses" in insn operands as default.
19690         * config/mmix/mmix.c (mmix_conditional_register_usage): if
19691         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19692         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19693         used to read the rtx value.
19694         (mmix_target_asm_function_epilogue): Fix spacing.
19695         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19696         (mmix_legitimate_address): Ditto.
19697         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19698         should be loaded with a GETA insn.  Don't allocate needless extra
19699         char for nul termination and fix misleading comment.
19700         (mmix_print_operand_address): Handle constants if
19701         TARGET_BASE_ADDRESSES.
19702         (mmix_output_register_setting): Use base addressing if
19703         TARGET_BASE_ADDRESSES and the number of insns is 3.
19704         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19705         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19706         to use R as constraint, add LDA to match s.
19707         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19708         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19709         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19710         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19711         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19712         order with other fixed registers.
19713         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19714         other parameter/call-clobbered registers.
19715         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19716         -mbase-addresses, -mno-base-addresses.
19717         (MMIX Options): Ditto.
19719 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19721         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19723 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
19725         * config/rs6000/altivec.h: Change elem to _S_elem.
19727 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19729         * config/netbsd.h (WCHAR_TYPE): Define.
19730         (WCHAR_TYPE_SIZE): Ditto.
19731         (WINT_TYPE): Ditto.
19732         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19733         (WCHAR_UNSIGNED): Ditto.
19734         (WCHAR_TYPE_SIZE): Ditto.
19735         (WINT_TYPE): Ditto.
19736         * config/arm/netbsd.h: Likewise.
19737         * config/i386/netbsd-elf.h: Likewise.
19738         * config/i386/netbsd.h: Likewise.
19739         * config/m68k/netbsd-elf.h: Likewise.
19740         * config/m68k/netbsd.h: Likewise.
19741         * config/ns32k/netbsd.h: Likewise.
19742         * config/sparc/netbsd.h: Likewise.
19743         * config/vax/netbsd.: Likewise.
19745 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
19747         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19748         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
19749         (TARGET_INITIALIZER): this.
19750         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19751         (BITFIELD_NBYTES_LIMITED): Markup fix.
19752         * tree.h (default_ms_bitfield_layout_p): Declare.
19753         (record_layout_info): Added prev_field.
19754         * tree.c (default_ms_bitfield_layout_p): New fn.
19755         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19756         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19757         * stor-layout.c: Include target.h.
19758         (start_record_layout): Initialize prev_field.
19759         (place_field): Handle MS bit-field layout, and disregard
19760         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19761         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
19762         * Makefile.in (stor-layout.o): Adjust dependencies.
19764 2002-02-05  Jason Merrill  <jason@redhat.com>
19766         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19768 2002-02-05  Andreas Jaeger  <aj@suse.de>
19770         * crtstuff.c: Fix comments.
19772 2002-02-05  Richard Henderson  <rth@redhat.com>
19774         PR fortran/3393
19775         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19776         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19778         PR fortran/3392
19779         * config/mips/mips.c (function_arg): Handle TImode.
19780         (function_arg_advance): Likewise.
19782 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19784         * config/rs6000/altivec.h (vec_step_help): Rename to
19785         __vec_step_help.
19787 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19789         * config/rs6000/altivec.h: Fix typos.
19791 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19793         * config/arm/netbsd.h: Correct a comment.
19795 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19797         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19798         building void typed builtins.
19800         * config/rs6000/altivec.h (vec_ld*): Fix typos.
19801         (vec_step): Implement for C++.
19803 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19805         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19807 2002-02-04  Richard Henderson  <rth@redhat.com>
19809         * combine.c (nonzero_bits): Re-introduce special case for
19810         sp/fp/ap wrt REGNO_POINTER_ALIGN.
19812 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19814         * doc/extend.texi: Warn about unsupported usage of altivec
19815         builtins.
19817         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19818         (altivec_predicate_*): New.
19820         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19821         Add C++ version of vec_*() functions.
19823         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19824         (bdesc_2arg): Remove altivec predicates.
19825         (altivec_expand_builtin): Handle predicates.
19826         (altivec_init_builtins): Handle predicates.
19827         (altivec_expand_predicate_builtin): New.
19829 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19831         * pa.c (DO_FRAME_NOTES): Move forward.
19832         (store_reg): Revise handling of frame notes.
19833         (load_reg): Likewise.
19834         (set_reg_plus_d): Likewise.
19835         (hppa_expand_prologue): Likewise.
19836         (hppa_expand_epilogue): Likewise.
19838 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19840         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19842 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19844         PR c/4475, c++/3780:
19845         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19846         * c-common.h (SWITCH_TYPE): Define.
19847         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19848         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19849         Rename spareness variable to sparseness.
19850         (expand_end_case_type): Renamed from expand_end_case, use orig_type
19851         if non-NULL instead of TREE_TYPE (orig_index).
19852         * tree.h (expand_end_case_type): Renamed from expand_end_case.
19853         (expand_end_case): Define using expand_end_case_type.
19854         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19855         to expand_end_case_type.
19856         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19858 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19860         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19861         (BIGGEST_ALIGNMENT): Change to 128.
19863 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19865         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19867 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19869         * pa.md (call_internal_reg_64bit): Remove unused variable.
19871 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
19873         * config/arm/arm.h (machine_function): Add uses_anonymous_args
19874         field.
19875         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19876         * config/arm/arm.c (current_function_anonymous_args): Delete,
19877         replace uses with cfun->machine->uses_anonymous_args.
19878         (arm_reorg): Do not reset uses_anonymous_args.
19880         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19881         any geenral register.
19883 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
19885         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19886         the entry block.
19888 2002-02-04  Richard Henderson  <rth@redhat.com>
19890         * combine.c (force_to_mode): Remove STACK_BIAS code.
19891         (nonzero_bits): Likewise.  Replace sp/fp special case with
19892         REGNO_POINTER_ALIGN.
19894         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19895         (HARD_FRAME_POINTER_REGNUM): New.
19896         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19897         (FIXED_REGS, CALL_USED_REGS): Update.
19898         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19899         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19900         (HARD_REGNO_NREGS): Update for SFP.
19901         (STACK_POINTER_OFFSET): Include bias here ...
19902         (FIRST_PARM_OFFSET): ... not here.
19903         (STACK_BIAS): Remove.
19904         (INIT_EXPANDERS): New.
19905         (STARTING_FRAME_OFFSET): Do not include bias.
19906         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19907         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19908         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19909         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19910         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19911         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19912         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19913         (MUST_SAVE_REGISTER): Likewise.
19914         (sparc_flat_function_prologue): Likewise.
19915         (sparc_flat_function_epilogue): Likewise.
19916         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19917         (sparc_init_modes): SFP is GENERAL_REGS.
19918         (sparc_builtin_saveregs): SFP does not have bias applied.
19920 2002-02-04  Richard Henderson  <rth@redhat.com>
19922         * config/alpha/alpha.c (current_function_is_thunk): Don't check
19923         current_function_is_thunk.
19924         (alpha_sa_mask): Distinguish between current_function_is_thunk
19925         called from ASM_OUTPUT_MI_THUNK and not.
19926         (alpha_does_function_need_gp): Thunks always need gp.
19927         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19928         (alpha_output_mi_thunk_osf): New.
19929         * config/alpha/alpha-protos.h: Update.
19930         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19932 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
19934         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19935         function types, not when they're taken away.
19937 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
19939         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19940         CODE_LABEL and jump table when replacing a table jump with a
19941         simple jump.
19943 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19945         * config/s390/s390-protos.h (legitimize_la_operand,
19946         s390_secondary_input_reload_class, s390_plus_operand,
19947         s390_expand_plus_operand): Add prototypes.
19949         config/s390/s390.c (s390_secondary_input_reload_class,
19950         s390_plus_operand, s390_expand_plus_operand): New functions.
19952         (struct s390_address): New member 'pointer'.
19953         (s390_decompose_address): Compute it.
19954         (legitimate_la_operand_p): Use it.
19955         (legitimize_la_operand): New function.
19956         (movti, movdi, movdf splitters): Call it.
19958         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19959         (PREDICATE_CODES): Add s390_plus_operand.
19961         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19962         (la_ccclobber): Allow GENERAL_REGS as output operand.
19964         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19965         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19966         (*la_64, *la_31, reload_indi, reload_insi): ... these.
19968 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19970         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19971         register names for regular asm () construct.
19973 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19975         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19976         registers.
19978 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19980         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19981         pat for recog.
19983 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
19985         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19986         constant pool to be identical by string address and index.
19988 2002-02-04  Anthony Green  <green@redhat.com>
19990         * output.h (SECTION_OVERRIDE): Define.
19991         * varasm.c (named_section): Obey SECTION_OVERRIDE.
19993 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
19995         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19996         by existing arm*-*-netbsd* (a.out) target.
19997         (ns32k-*-netbsdelf*): Likewise.
19998         (sparc-*-netbsdelf*): Likewise.
19999         (vax-*-netbsdelf*): Likewise.
20001 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
20003         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20004         headers and libobjc headers.
20006 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
20008         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20009         (_mingw.h): Remove duplicate include.
20011 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
20013         * config.gcc: Set cpu_type to m68k for 68010, as well.
20014         (m68010-*-netbsdelf*): New...
20015         (m68k*-*-netbsdelf*): ...targets.
20016         * config/m68k/netbsd-elf.h: New file.
20018 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20020         * config/h8300/h8300.c (hand_list): Move inside function_arg.
20022 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20024         * config/h8300/h8300.c (h8_push_ops): Move inside
20025         h8300_init_once.
20026         (h8_pop_ops): Likewise.
20027         (h8_move_ops): Likewise.
20029 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20031         * config/h8300/h8300.c (os_task): Make it static.
20032         (monitor): Likewise.
20033         (pragma_saveall): Likewise.
20035 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
20037         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20038         constant is a valid sign-extension for Pmode.
20040 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20042         * config/h8300/h8300.c: Fix formatting.
20044 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20046         * config/h8300/h8300.md: Fix formatting.
20048 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20050         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20051         predicates of operands[1].  Split the patterns for each
20052         processor variant.
20054 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20056         * config/h8300/h8300.md (xor patterns): Tighten the predicates
20057         of operands[1] to register_operand.
20059 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
20061         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20062         * cpphash.c (_cpp_init_hashtable): Similarly.
20063         * cppinit.c (cpp_create_reader): Default the signed_char flag.
20064         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20065         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20066         (cpp_handle_option): Handle the new options.
20067         * cpplex.c (cpp_interpret_charconst): Use new flag.
20068         * cpplib.h (struct cpp_options): New member signed_char.
20069         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20070         (cpp_options): Handle -fsigned-char and -funsigned-char.
20071         (static_specs): Remove signed_char_spec.
20072         (do_spec1): Don't handle %c.
20073         * system.h: Poison SIGNED_CHAR_SPEC.
20074         * tradcif.y (yylex): Use flag_signed_char.
20075         * tradcpp.h (flag_signed_char): New.
20076         * tradcpp.c (flag_signed_char): New.
20077         (main): Handle new command-line options.
20078         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20079 config:
20080         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20081         * avr/avr.h: Remove old comments.
20082         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20083         (CC1_SPEC): Pass -fsigned-char if -mic*.
20084         (SIGNED_CHAR_SPEC): Remove.
20085 doc:
20086         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20088 2002-02-01  Eric Christopher  <echristo@redhat.com>
20090         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20091         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20092         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20093         (ASM_OUTPUT_REG_POP): Ditto.
20095 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
20097         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20098         patch.
20100 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
20102         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20104 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
20106         PR c/5304:
20107         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20108         unconditionally.
20110 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
20112         * cfganal.c: Include tm_p.h.
20113         (keep_with_call_p): Fix the test that determines if a register holds
20114         the return value of a call.
20116 2002-02-01  DJ Delorie  <dj@redhat.com>
20118         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20119         we are given conflicting registers, switch to the other one we
20120         had allocated for us.
20121         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20122         as TImode so we know when the "other" register is available.
20124 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
20126         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20127         sparc/sparc_bi.h.
20129 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
20131         * cfganal.c (keep_with_call_p): New function.
20132         (flow_call_edges_add): Prevent splitting a block between a call and
20133         a single-set instruction that should be kept in the same block.
20135 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20137         * doc/install.texi (avr): Update outdated URL.
20139 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
20141         * config/stormy16/stormy16.md (pushqi): New.
20142         (popqi): New.
20143         (pushhi): New.
20144         (pophi): New.
20145         (movhi): Remove stack operands.
20146         (movqi): Likewise.
20147         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20148         nonimmediate_nonstack_operand.
20149         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20150         New.
20151         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20152         New.
20154 2002-01-31  Jason Merrill  <jason@redhat.com>
20156         * Makefile.in (c-parse.c): Handle .output file.
20157         * objc/Make-lang.in (objc-parse.c): Likewise.
20159 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
20161         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20162         the -me[lb] option is given.  Don't output the default flag
20163         twice.
20165 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
20167         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20168         the primary source file; this has not been done yet.
20169         * c-decl.c (c_expand_body): Reset input_filename from
20170         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20172 2002-01-31  Kazu Hirata  <kazu@hxi.com>
20174         * rtlanal.c (subreg_regno_offset): Do not use
20175         SUBREG_REGNO_OFFSET.
20176         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20177         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20179 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
20181         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
20182         version rather than GNATS version in --version output.
20184 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
20186         * ifcvt.c (noce_process_if_block): Make a copy of the destination
20187         when copying back from a temporary.
20189 2002-01-30  Richard Henderson  <rth@redhat.com>
20191         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20192         and new_dest are the same.
20194 2002-01-30  Richard Henderson  <rth@redhat.com>
20196         PR opt/5076
20197         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20198         * rtl.c (note_insn_name): Update.
20199         * emit-rtl.c (remove_unnecessary_notes): Kill it.
20200         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
20201         to perform loop rotation.
20202         (expand_exit_loop_top_cond): New.
20203         * tree.h (expand_exit_loop_top_cond): Declare it.
20204         * c-semantics.c (genrtl_while_stmt): Use it.
20205         (genrtl_for_stmt): Likewise.
20207 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
20209         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20210         arguments to 64-bit boundaries on 64-bit ABIs.
20212 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
20214         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20216 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
20218         * c-decl.c (grokdeclarator): Handle type being a typedef for an
20219         invalid type.
20221 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
20223         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20224         * config/sparc/sparc_bi.h: Remove file.
20225         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20227 2002-01-30  Richard Henderson  <rth@redhat.com>
20229         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20231 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
20233         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20235 2002-01-30  Jason Merrill  <jason@redhat.com>
20237         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20238         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20239         (reg_save): Use DW_CFA_offset_extended_sf instead.
20241         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20243 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20245         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20246         in cselib_lookup.
20248 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
20250         * rs6000.md ("*call_value_local32"): Remove constraints.
20251         ("*call_value_local64"): Same.
20252         ("*call_value_indirect_nonlocal_aix32"): Same.
20253         ("*call_value_nonlocal_aix32"): Same.
20254         ("*call_value_indirect_nonlocal_aix64"): Same.
20255         ("*call_value_nonlocal_aix64"): Same.
20256         ("*call_value_nonlocal_sysv"): Same.
20258 2002-01-29  Richard Henderson  <rth@redhat.com>
20260         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20262 2002-01-29  Richard Henderson  <rth@redhat.com>
20264         * expr.c (force_operand): Ignore flag_pic for detecting pic
20265         address loads.
20266         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20267         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20268         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20269         instead of open-coded loop.
20270         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20271         be fixed when in use.
20273 2002-01-29  Richard Henderson  <rth@redhat.com>
20275         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20276         * sched-rgn.c (propagate_deps): Update them.
20277         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
20278         clobbers list when either gets too long.
20280 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20282         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20283         and INDEX_REGS the same as GENERAL_REGS.
20284         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20286 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
20288         * tree.c (build_nonstandard_integer_type): Correct prototype.
20290 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
20292         * config/s390/s390.md (movstrsico, movstrdix_64,
20293         movstrsix_31): Remove, replace by ...
20294         (movstrdi_short, movstrsi_short, movstrdi_long,
20295         movstrsi_long): ... these.  New.
20296         (movstrdi, movstrsi): Adapt.
20298         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20299         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20300         Remove unnecessary CC clobber.
20301         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20302         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20304         (divmoddi4): Don't partially initialize TImode register.
20306 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
20308         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20310 2002-01-29  Richard Henderson  <rth@redhat.com>
20312         * flow.c (print_rtl_and_abort): Remove.
20313         (print_rtl_and_abort_fcn): Remove.
20314         (verify_local_live_at_start): Use dump_bb instead.
20315         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20316         (verify_wide_reg_1): Return 2 on mode test failure.
20318 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
20320         PR c/3325, c/3326, c/2511, c/3347
20321         * c-decl.c (enum_decl_context): Remove BITFIELD.
20322         (grokdeclarator): Take bitfield width as an input.
20323         Ensure bitfields are given the correct type.  Perform
20324         bitfield width validation with build_bitfield_integer_type
20325         rather than waiting for finish_struct.
20326         (grok_typename, grok_typename_in_parm_context, start_decl,
20327         push_parmdecl, grokfield, start_function): Update calls to
20328         grokdeclarator.
20329         (build_bitfield_integer_type): New function.
20330         (finish_struct): Move bitfield validation to grokdeclarator
20331         and build_bitfield_integer_type.
20332         * tree.c (build_nonstandard_integer_type): New function.
20333         * tree.h (build_nonstandard_integer_type): New prototype.
20334 objc:
20335         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20337 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20339         PR other/1502:
20340         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20341         don't ignore unrecognized -W* options.
20342         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20343         * cpplib.h (cpp_handle_option): Adjust prototype.
20344         * c-decl.c (c_decode_options): Pass 0 as last argument to
20345         cpp_handle_option.
20347         PR c/2896:
20348         * gcc.c (cpp_unique_options): Split from cpp_options.
20349         (cpp_options): Source cpp_unique_options.
20350         (default_compilers): Use cpp_unique_options instead of cpp_options
20351         when used together with cc1_options.
20352         (static_specs): Add cpp_unique_options.
20353         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20354         when used together with cc1_options.
20356 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20358         * config/h8300/h8300-protos.h: Update the prototype of
20359         output_a_shift.
20360         * config/h8300/h8300.c (output_a_shift): Remove an unused
20361         argument 'insn'.  Remove redundant code.
20362         * config/h8300/h8300.md: Adust to the new prototype of
20363         output_a_shift.
20365 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20367         * config/h8300/h8300-protos.h: Update the prototypes of
20368         emit_a_rotate and expand_a_rotate.
20369         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20370         first argument to 'enum rtx_code'.
20371         (expand_a_rotate): Likewise.
20373 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20375         * config/h8300/h8300-protos.h: Update the prototype of
20376         output_simode_bld.
20377         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20378         'log2'.
20379         * config/h8300/h8300.md: Adjust to the new prototype.
20381 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20383         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20384         redundant code.
20386 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20388         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20389         is a fixed register before returning pic_offset_table_rtx.
20390         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20391         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20393 2002-01-28  Jason Merrill  <jason@redhat.com>
20395         * dwarf2.h: Sync with src version.
20397 2002-01-28  Paul Koning  <pkoning@equallogic.com>
20399         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20400         BT_FN_VOID_PTR_VAR.
20401         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20402         * doc/extend.texi (__builtin_prefetch): Update documentation:
20403         first argument is now const void ptr.
20405 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20407         * config/h8300/h8300-protos.h: Remove an unused prototype.
20409 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
20411         * toplev.c (lang_independent_init): Round up identifier size.
20413 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20415         * config.gcc: Revert previous change.
20417 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
20419         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20421 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20423         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20424         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
20425         other non-elf netbsd config frags.
20426         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20427         collect2 will does that.
20428         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20429         shared-lib frobbing will work.
20431 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20433         * config/h8300/h8300.h: Fix formatting.
20434         * config/h8300/h8300.md: Likewise.
20436 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
20438         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20439         the old, removed AAA_standards fix.
20440         * fixinc/fixincl.x: Rebuilt.
20442 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
20444         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20445         atexit call in crtbegin, hooked in after call to frame_dummy;
20446         register EH before registering __fini__start.
20448 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
20450         * config/rs6000/altivec.h: Remove spurious semicolons.
20452 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20454         * config/h8300/h8300.md: Replace dead bit extraction patterns
20455         with ones that work.
20457 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20459         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20460         if not STRICT_ALIGNMENT.
20461         * rtl.h (MEM_ALIGN): Likewise.
20463 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20465         * doc/invoke.texi (-fdump-translation-unit): Revert this
20466         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20468 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20470         * config/h8300/h8300.md (define_constants): New.
20471         (anonymous patterns) Use defined constants appropriately.
20473 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20475         * config/h8300/h8300.c (function_arg): Remove redundant code.
20477 2002-01-26  Richard Henderson  <rth@redhat.com>
20479         * sched-deps.c (reg_pending_uses_head): New.
20480         (reg_pending_barrier): Rename from reg_pending_sets_all.
20481         (find_insn_list): Don't mark inline.
20482         (find_insn_mem_list): Remove.
20483         (add_dependence_list, add_dependence_list_and_free): New.
20484         (flush_pending_lists): Replace only_write param with separate
20485         for_read and for_write parameters.  Update all callers.  Use
20486         add_dependence_list_and_free.
20487         (sched_analyze_1): Do not add reg dependencies here; just set
20488         the pending bits.  Use add_dependence_list.
20489         (sched_analyze_2): Likewise.
20490         (sched_analyze_insn): Replace schedule_barrier_found with
20491         reg_pending_barrier.  Add all dependencies for pending reg
20492         uses, sets, and clobbers.
20493         (sched_analyze): Don't add reg dependencies for calls, just
20494         set pending bits.  Use regs_invalidated_by_call.  Treat
20495         sched_before_next_call as a normal list, not a fake insn.
20496         (init_deps): No funny init for sched_before_next_call.
20497         (free_deps): Free pending mems lists.  Don't zero reg_last.
20498         (init_deps_global): Init reg_pending_uses.
20499         (finish_deps_global): Free it.
20500         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
20501         (find_insn_mem_list): Remove.
20502         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20503         (propagate_deps): Use them.  Zero temp mem lists.
20505 2002-01-26  Richard Henderson  <rth@redhat.com>
20507         * Makefile.in (CRTSTUFF_CFLAGS): New.
20508         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20509         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20510         crtstuff.c instead of alpha assembly version.
20511         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20512         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
20513         not FORCE_{INIT,FINI}_SECTION_ALIGN.
20514         (__do_global_dtors_aux): Mark used.
20515         (frame_dummy, __do_global_ctors_aux): Mark used.
20516         (fini_dummy, init_dummy): Remove.
20518         * config/alpha/crtbegin.asm: Remove file.
20519         * config/alpha/crtend.asm: Remove file.
20520         * config/alpha/t-crtbe: Remove file.
20521         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20522         (LINK_EH_SPEC): New.
20524         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20525         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
20526         calling constructors.
20527         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20529         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20530         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20531         CRT_END_INIT_DUMMY hack.
20532         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20533         FORCE_{INIT,FINI}_SECTION_ALIGN.
20535         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20536         FORCE_{INIT,FINI}_SECTION_ALIGN.
20538         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20539         invocation sequence.
20540         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20542         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20543         (FORCE_CODE_SECTION_ALIGN): New.
20545 2002-01-26  Richard Henderson  <rth@redhat.com>
20547         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20549 2002-01-26  Richard Henderson  <rth@redhat.com>
20551         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20552         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20554 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20556         * config/h8300/h8300.md: Remove bit extraction patterns that
20557         cannot be triggered.
20558         Restrict each bit extraction pattern to a variant on which the
20559         pattern is tested.
20561 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
20563         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20565 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20567         * config/h8300/h8300.md: Remove bit test patterns that cannot
20568         be triggered.
20569         Restrict each bit test pattern to a variant on which the
20570         pattern is tested.
20572 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20574         * builtins.c (expand_builtin_strncat): Remove redundant check for
20575         INTEGER_CST.
20577 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20579         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20580         default setting.
20581         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20582         existing setting.
20584 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20586         * dbxout.c (dbxout_init): Use assemble_name rather than just
20587         stripping off the first character.
20588         (dbxout_source_file): Likewise.
20590 2002-01-25  DJ Delorie  <dj@redhat.com>
20592         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20593         using rtx_equal_p, not by comparing pointers.
20595 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
20597         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20598         for PIC_OFFSET_TABLE_REGNUM.
20599         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20601 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20603         * config.gcc (x86_64-*-freebsd*): New target.
20604         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20605         value.
20606         (i[34567]86-*-freebsd*): Don't include svr4.h.
20607         * config/i386/freebsd64.h: New file.
20609 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
20611         * config/alpha/x-vms (version): Make static.
20613         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20614         in previous checkin.
20616         * Makefile.in (install-headers-cp): New target.
20617         * config.gcc (alpha-dec-*vms*): Install headers with
20618         install-headers-cp
20620 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
20622         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20623         avoid it's copies.
20625 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20627         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20628         of compare_tree_int.
20629         (expand_builtin_strncat): Likewise.
20630         * c-decl.c (finish_struct): Use tree_low_cst.
20631         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20632         * tree.c (compare_tree_int): Likewise.
20634 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
20636         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20637         adjustments even if they are implemented by more than two insns.
20639 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
20641         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20642         * df.h (struct ref): Kill B.
20643         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20645         * basic-block.h (PROP_EQUAL_NOTES): New flag.
20646         * flow.c (propagate_one_insn): Use it.
20647         (mark_used_regs): Handle NIL.
20649 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20651         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20652         to help folding.
20654 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
20656         * rs6000.md (prefetch): Make address V4SI mode so that the address
20657         is restricted to legitimate form for instruction.
20659 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
20661         * doc/install.texi (xtensa-*-elf): New target.
20662         (xtensa-*-linux*): New target.
20663         * doc/contrib.texi: Add myself.
20665 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
20667         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20668         purpose register to hold an SImode (or smaller) value.
20670 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
20672         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20673         registry only.
20674         * crtstuff.c: Likewise.
20676 2002-01-25  Kazu Hirata  <kazu@hxi.com>
20678         * config/h8300/h8300.md (negation patterns): Tighten
20679         predicates to register_operand.
20681 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
20683         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20684         mode, not Pmode.
20686         * builtins.c (expand_builtin_prefetch): Same.
20688 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20690         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20691         modes.
20693 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20695         * config/h8300/h8300.c (print_operand): Remove support for
20696         operand character 'A'.
20697         * config/h8300/h8300.md (three anonymous patterns): Replace
20698         operand character 'A' with either 'T' or 'S'.
20700 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20702         * config/h8300/h8300.c (print_operand): Remove support for
20703         operand character 'U'.
20705 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
20707         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20709 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
20711         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20712         values to be assigned to the stack pointer.
20714 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20716         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20717         to const_double needs to be done right for big-endian systems.
20719 2002-01-24  Jason Merrill  <jason@redhat.com>
20721         PR c++/2432
20722         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20723         to can_throw_internal.
20725 2002-01-23  Richard Henderson  <rth@redhat.com>
20727         * fold-const.c (fold): Change UINT_MAX test to check vs precision
20728         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
20730 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20732         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20733         (symGOT2reg): Use them, then set as GOT value as unchanging.
20734         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
20735         as a temporary, if possible.
20736         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
20737         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20739 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20741         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20742         accept to accept 0x80 as operands[2].
20744 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20746         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20748 2002-01-23  Richard Henderson  <rth@redhat.com>
20750         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20752 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
20754         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20755         (parmlist_or_identifiers_1): Verify that only a parmlist follows
20756         an attribute.
20758 2002-01-23  Richard Henderson  <rth@redhat.com>
20760         * expr.c (move_by_pieces_1): Extend size before negation.
20762         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20763         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20764         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20765         * config/m68k/t-m68kelf: Likewise.
20767 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
20769         * config/xtensa/elf.h: New file.
20770         * config/xtensa/lib1funcs.asm: New file.
20771         * config/xtensa/lib2funcs.S: New file.
20772         * config/xtensa/linux.h: New file.
20773         * config/xtensa/t-xtensa: New file.
20774         * config/xtensa/xtensa-config.h: New file.
20775         * config/xtensa/xtensa-protos.h: New file.
20776         * config/xtensa/xtensa.c: New file.
20777         * config/xtensa/xtensa.h: New file.
20778         * config/xtensa/xtensa.md: New file.
20779         * config.gcc (xtensa-*-elf*): New target.
20780         (xtensa-*-linux*): New target.
20781         * cse.c (canon_hash): Compare rtx pointers instead of register
20782         numbers.  This is required for the Xtensa port.
20783         * integrate.c (copy_insn_list): Handle case where the static
20784         chain is in memory and the memory address has to be copied to
20785         a register.
20786         * doc/invoke.texi (Option Summary): Add Xtensa options.
20787         (Xtensa Options): New node.
20788         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20790 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20792         * diagnostic.c (internal_error): Do ICE suppression only
20793         when ENABLE_CHECKING is not defined.
20795         * c-typeck.c (require_complete_type): Return error_mark_node
20796         if type is error_mark_node.
20798 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
20800         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20801         -Os and issue a warning.
20803 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20805         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20806         current (lack of) need for host configuration by hand.
20808         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20809         references.  Documentation of some target macros moved from
20810         hostconfig.texi to tm.texi.
20812 2002-01-23  Will Cohen  <wcohen@redhat.com>
20814         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20815         defined.
20817 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20819         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20820         operand[3].
20822 2002-01-23  Jason Merrill  <jason@redhat.com>
20824         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20826         * function.c (assign_parms): Don't put args of inline functions
20827         into registers when not optimizing.
20829 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
20831         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20832         (prologue_use): New pattern.
20833         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20834         preference to gen_rtx_USE.
20835         (thumb_expand_prologue): Use gen_prologue_use in preference to
20836         gen_rtx_USE.
20837         (thumb_expand_epilogue): Use gen_prologue_use in preference to
20838         gen_rtx_USE.
20840 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
20842         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20844 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20846         PR c/3504
20847         * doc/extend.texi: Correct documentation of __alignof__.
20849 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
20851         * params.h: Rename arguments of DEFPARAM so that it will be
20852         recognized as a translation keyword.
20854 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20856         * extend.texi: Document altivec functions.
20857         Fix N-bit adjectives in X86 builtin documentation.
20859 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20861         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20862         auto_inc_dec values.
20864 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
20866         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20867         after backslash.
20868         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20870 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20872         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20874 2002-01-22  Richard Henderson  <rth@redhat.com>
20876         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20877         copy_insn not copy_rtx.
20879 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
20881         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20882         "nonzero" as that might add "1" bits.  Ensure "constop" is
20883         properly sign extened.
20884         (force_to_mode): Tweak for sign extended constop.
20886 2002-01-22  Richard Henderson  <rth@redhat.com>
20888         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20889         for_each_rtx instead of assuming we're already looking at the MEM.
20890         (split_small_symbolic_mem_operand): Likewise.
20891         * config/alpha/alpha.h (PREDICATE_CODES): Update.
20892         * config/alpha/alpha.md (small symbolic memory splitters): Update.
20894 2002-01-22  Richard Henderson  <rth@redhat.com>
20896         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20897         sequence number for the literal.
20898         (divmoddi_internal_er): Likewise.
20900 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20902         PR java/4972
20903         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20904         in LIBICONV variable.
20905         * configure: Regenerated.
20907 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
20909         * dependence.c (build_def_use): Remove array_idx.
20911         * dwarfout.c (last_filename): Remove.
20912         (output_compile_unit_die): Remove last_filename.
20914 2002-01-22  Roger Sayle  <roger@eyesopen.com>
20915             Richard Henderson  <rth@redhat.com>
20917         PR opt/3640
20918         * fold-const.c (fold): Optimize unsigned comparisons against
20919         UINT_MAX (and similar unsigned constants).
20921 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
20923         * Makefile.in (loop.o): Depend on OPTABS_H.
20924         * loop.c (emit_prefetch_instructions): Check the prefetch operand
20925         against the predicate.
20927         PR target/5379
20928         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20929         for the address operand.
20931 2002-01-22  Richard Henderson  <rth@redhat.com>
20933         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20935 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20937         PR other/5450
20938         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20939         preprocessor flags.
20941 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
20943         * config.gcc (x86_64-*-netbsd*): New target.
20944         * config/i386/netbsd64.h: New file.
20946 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20948         * regrename.c (kill_value): Fix typo.
20950 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20952         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
20954         * config/rs6000/rs6000.h: Same.
20956         * function.c (instantiate_virtual_regs): Remove
20957         STARTING_FRAME_PHASE.
20958         (assign_stack_local_1): Same.
20959         Calculate frame phase.
20961 2002-01-22  Nick Clifton  <nickc@redhat.com>
20963         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20964         variable declaration to outer scope in order to simplify
20965         future extensions.
20966         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20967         arm_hard_regno_mode_ok.
20968         * config/arm/arm-protos.h: Add a prototype for
20969         arm_hard_regno_mode_ok.
20970         * config/arm/arm.c (soft_df_operand): Remove now redundant
20971         check for DImode values using IP_REGNUM.
20972         (nonimmediate_soft_df_operand): Remove now redundant check for
20973         DImode values using IP_REGNUM.
20974         (arm_hard_regno_mode_ok): New function. New check: make sure
20975         that DImode values are not stored in IP_REGNUM.
20977         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20978         note with a USE.
20979         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20981 2002-01-22  Jason Merrill  <jason@redhat.com>
20983         * c-semantics.c (genrtl_compound_stmt): Only check nesting
20984         consistency if this COMPOUND_STMT is scoped.
20986 2002-01-22  Kazu Hirata  <kazu@hxi.com>
20988         * predict.c: Fix formatting.
20989         * print-tree.c: Likewise.
20990         * protoize.c: Likewise.
20991         * real.h: Likewise.
20992         * rtl.h: Likewise.
20993         * sbitmap.h: Likewise.
20994         * scan.c: Likewise.
20995         * sched-deps.c: Likewise.
20996         * sched-vis.c: Likewise.
20997         * sdbout.c: Likewise.
20998         * sibcall.c: Likewise.
20999         * ssa.c: Likewise.
21000         * ssa-ccp.c: Likewise.
21001         * ssa-dce.c: Likewise.
21002         * stmt.c: Likewise.
21003         * stor-layout.c: Likewise.
21004         * system.h: Likewise.
21006 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21008         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21009         if fits in bounds of base type.
21011         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21012         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21013         (add_bound_info, default): If can't find a context, make a
21014         SAVE_EXPR.
21015         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21017 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
21019         * c-typeck.c (parser_build_binary_op): If result from
21020         build_binary_op is ERROR_MARK just return error_mark_node without
21021         further processing.
21023 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
21025         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21026         Split a.out-specific bits into...
21027         * config/netbsd-aout.h: ...this.
21028         * config/netbsd-elf.h: New file.
21029         * config/alpha/netbsd-elf.h: Remove.
21030         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21031         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21032         (STARTFILE_SPEC): Remove redundant definition.
21033         (ENDFILE_SPEC): Likewise.
21034         (LINK_SPEC): Likewise.
21035         (CPP_SPEC): Likewise.
21036         (ASM_SPEC): Likewise.
21037         (LIB_SPEC): Likewise.
21038         (SWITCH_TAKES_ARG): Likewise.
21039         (TARGET_MEM_FUNCTIONS): Likewise.
21040         (CPP_PREDEFINES): Redefine.
21041         (ASM_FINAL_SPEC): Remove redefinition.
21042         (ASM_COMMENT_START): Redefine.
21043         (FUNCTION_PROFILER): Define.
21044         (TARGET_VERSION): Redefine.
21045         Comment and formatting cleanup.
21046         * config/i386/netbsd.h: Include <netbsd-aout.h>.
21047         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21048         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21049         big- or little-endian.
21050         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21051         * config.gcc (*-*-netbsd*): Add definitions common to all
21052         NetBSD configs.
21053         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21054         gnu_ld definitions.  Add netbsd-elf.h to and remove
21055         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
21056         tmake_file, and don't lose previous tmake_file contents.
21057         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21058         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21059         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
21060         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21061         (mipsel-*-netbsd*): Rename this to...
21062         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
21063         mips/little.h to tm_file for mips*el-*.
21064         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21065         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21066         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21068 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21070         * pa-protos.h (reg_before_reload_operand): New function prototype.
21071         * pa.c (reg_before_reload_operand): New function implementation.
21072         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
21073         contraints to "*m".
21075 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21077         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21079 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21081         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21082         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21083         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21084         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21085         (ENDFILE_SPEC): Undefine.
21086         (STARTFILE_SPEC): Redefine for PA.
21088 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21090         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21092 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
21094         * config.gcc: Add entries to supported PowerPC --with-cpu
21095         types.
21097 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
21099         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21100         true for 64-bit mode only SSE registers in 32-bit mode.
21102 2002-01-21  Kazu Hirata  <kazu@hxi.com>
21104         * unwind-dw2.c: Fix formatting.
21105         * unwind-dw2-fde.c: Likewise.
21106         * unwind-dw2-fde.h: Likewise.
21107         * unwind-pe.h: Likewise.
21108         * varasm.c: Likewise.
21109         * varray.h: Likewise.
21111 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
21113         Remove workaround for register stack overwrite bug in mmix.
21114         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21115         support for TARGET_REG_STACK_FILL_BUG.
21116         * config/mmix/mmix.h: Remove member has_call_without_parameters.
21117         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21118         Delete.
21119         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21120         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21121         -mno-reg-stack-fill-bug-workaround.
21122         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21123         machine member has_call_without_parameters.
21124         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21125         -mreg-stack-fill-bug-workaround and
21126         -mno-reg-stack-fill-bug-workaround.
21127         (MMIX Options): Ditto.
21129 2002-01-21  Kazu Hirata  <kazu@hxi.com>
21131         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21132         as appropriate.
21133         Remove redundant code.
21135 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
21137         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21138         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21139         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21140         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21141         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21142         out target macro definitions and non-target-specific comments
21143         mostly taken from old versions of the manual.
21145 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21147         * config/h8300/h8300.h: Fix comment formatting.
21148         * config/ia64/aix.h: Likewise.
21149         * config/ia64/ia64-protos.h: Likewise.
21150         * config/ia64/ia64.c: Likewise.
21151         * config/ia64/ia64.h: Likewise.
21152         * config/ia64/ia64intrin.h: Likewise.
21153         * config/ia64/linux.h: Likewise.
21154         * config/ia64/unwind-aix.c: Likewise.
21155         * config/ia64/unwind-ia64.c: Likewise.
21157 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21159         * config/h8300/h8300.c: Revise comments about shift code.
21161 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21163         * config/h8300/h8300.c (function_arg): Update a comment.
21165 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21167         * config/h8300/h8300.md: Update the comments at the beginning
21168         of the file.
21170 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21172         * config/i370/i370.c: Fix comment formatting.
21173         * config/i370/i370.h: Likewise.
21174         * config/i370/i370.md: Likewise.
21175         * config/i370/linux.h: Likewise.
21177 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21179         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21181         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21182         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21183         in incomplete case.
21185 2002-01-20  Graham Stott  <grahams@redhat.com>
21187         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21189 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21191         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21193 2002-01-19  Tom Rix  <trix@redhat.com>
21195         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21197 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
21199         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21201         * function.c (assign_stack_local_1): Adjust x_frame_offset with
21202         STARTING_FRAME_PHASE.
21203         (STARTING_FRAME_PHASE): New.
21204         (instantiate_virtual_regs): Check saneness of
21205         STARTING_FRAME_PHASE.
21207         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21209 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
21211         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21213 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21215         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21216         be used for bootstrapping GCC 3.0.
21218 2002-01-18  Kazu Hirata  <kazu@hxi.com>
21220         * config/h8300/h8300.md: Fix an insn length.
21222 2002-01-18  Kazu Hirata  <kazu@hxi.com>
21224         * bitmap.h: Fix comment formatting.
21225         * combine.c: Likewise.
21226         * cppfiles.c: Likewise.
21227         * c-pragma.h: Likewise.
21228         * c-typeck.c: Likewise.
21229         * df.c: Likewise.
21230         * dwarf2out.c: Likewise.
21231         * function.c: Likewise.
21232         * gcc.c: Likewise.
21233         * genattrtab.c: Likewise.
21234         * gthr-win32.h: Likewise.
21235         * haifa-sched.c: Likewise.
21236         * predict.c: Likewise.
21237         * rtlanal.c: Likewise.
21238         * rtl.h: Likewise.
21239         * unwind-dw2-fde.h: Likewise.
21240         * unwind-pe.h: Likewise.
21241         * vmsdbgout.c: Likewise.
21243 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21245         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21246         if type_required and passed decl.
21248 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
21250         * config.gcc (cpu_type): Include altivec.h in powerpc
21251         extra_headers.
21252         Same for darwin.
21254         * config/rs6000/altivec.h: New.
21256 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
21258         * doc/install.texi (*-ibm-aix*): Update assembler and exception
21259         handling information.
21260         * doc/trouble.texi (Interoperation): Add libstdc++ information
21261         for AIX.
21262         (Misunderstandings): Add template instantiation and static template
21263         member information for AIX.
21265 2002-01-17  Jason Merrill  <jason@redhat.com>
21267         * dbxout.c (dbxout_type): Support const and volatile.
21269         * except.c (add_partial_entry): Remove backwards compatibility code.
21270         (end_protect_partials): Likewise.
21272 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
21274         * config/ia64/ia64.md (prologue_use): New.
21275         * config/ia64/ia64.c (ia64_expand_prologue): Use
21276         gen_prologue_use instead of gen_rtx_USE.
21277         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21278         as CODE_FOR_pred_rel_mutex.
21279         (ia64_sched_reorder2): Likewise.
21281 2002-01-16  Eric Christopher  <echristo@redhat.com>
21283         * config/mips/r3900.h: Reformat.
21284         (SUBTARGET_CPP_SIZE_SPEC): Remove.
21285         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21286         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21287         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21288         * config/mips/t-elf: Remove mips3 multilib.
21290 2002-01-16  H.J. Lu <hjl@gnu.org>
21292         * config/mips/linux.h: Include "mips/abi64.h".
21294 2002-01-16  H.J. Lu <hjl@gnu.org>
21296         * config/mips/t-linux: New.
21298         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21300         * config/mips/linux.h: Don't include "gofast.h".
21301         (INIT_SUBTARGET_OPTABS): Removed.
21303 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21305         * config/h8300/h8300-protos.h: Replace emit_a_shift with
21306         output_a_shift.
21307         * config/h8300/h8300.c: Likewise.
21308         * config/h8300/h8300.md: Likewise.
21310 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21312         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21313         spaces after an opcode name.
21314         (pushqi1_h8300hs): Likewise.
21315         (pushhi1_h8300hs): Likewise.
21317 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21319         * doc/extend.texi: Replace "option" with "attribute"
21320         appropriately.
21322 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21324         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21325         (and:DI () (const_int -8)).
21326         (split_small_symbolic_mem_operand): Split
21327         (mem (and:DI () (const_int -8)).
21329 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21331         PR target/5309:
21332         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21333         same way as TYPE_IMUL.
21334         (ultrasparc_sched_reorder): Likewise.
21335         * config/sparc/sparc.md (type): Add comment to update
21336         ultrasparc_sched_reorder when making changes.
21338 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21340         * doc/invoke.texi: Change the dump file name of block
21341         reordering pass from 28.bbro to 29.bbro.
21342         Mention -dk option.
21344 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21346         * i386.md (minsf splitter): Fix pasto.
21348 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21350         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21351         to frame pointer initialisation instruction.
21352         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21353         initialisation instruction.
21354         (soft_df_operand): Do not accept the IP register.
21355         (nonimmediate_soft_df_operand): Do not accept the IP register.
21357 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21359         PR target/5357:
21360         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21361         MASK_V8 being both set.
21363 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
21365         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21366         insn for GOT register; add REG_MAYBE_DEAD notes instead.
21367         config/s390/s390.md (call, call_value): Add GOT register to
21368         CALL_INSN_FUNCTION_USAGE where needed.
21369         (call_exp, call_value_exp): New.
21371 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21373         * config/arm/arm.c: General formatting tidy up.
21375 2002-01-16  Graham Stott  <grahams@redhat.com>
21377         * calls.c (try_to_integrate): Use "(size_t)" intermediate
21378         cast and when casting an integer literal to "rtx" pointer.
21379         (expand_call): Likewise.
21380         * flow.c (try_pre_increment): Likewise.
21381         (find_use_as_address): Likewise.
21382         * integrate.c (expand_iline_function): Likewise.
21383         * regmove.c (try_auto_increment): Likewise.
21385 2002-01-16  Graham Stott  <grahams@redhat.com>
21387         * sched-rgn.c (passed): Use sbitmap_free.
21388         (header): Likewise.
21389         (inner): Likewise.
21390         (in_queue): Likewise.
21391         (in_stack): Likewise.
21393 2002-01-15  Eric Christopher  <echristo@redhat.com>
21395         * flow.c (propagate_one_insn): Change to use fatal_insn.
21397 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21399         * expmed.c (extract_fixed_bit_field): Remove unused code.
21400         * system.h: Poison SLOW_ZERO_EXTEND.
21401         * doc/tm.texi: Remove.
21402         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21403         * config/arm/arm.h: Likewise.
21404         * config/avr/avr.h: Likewise.
21405         * config/clipper/clipper.h: Likewise.
21406         * config/convex/convex.h: Likewise.
21407         * config/d30v/d30v.h: Likewise.
21408         * config/dsp16xx/dsp16xx.h: Likewise.
21409         * config/elxsi/elxsi.h: Likewise.
21410         * config/fr30/fr30.h: Likewise.
21411         * config/h8300/h8300.h: Likewise.
21412         * config/i370/i370.h: Likewise.
21413         * config/i386/i386.h: Likewise.
21414         * config/m68k/m68k.h: Likewise.
21415         * config/mips/mips.h: Likewise.
21416         * config/ns32k/ns32k.h: Likewise.
21417         * config/pdp11/pdp11.h: Likewise.
21418         * config/pj/pj.h: Likewise.
21419         * config/s390/s390.h: Likewise.
21420         * config/sh/sh.h: Likewise.
21421         * config/stormy16/stormy16.h: Likewise.
21422         * config/v850/v850.h: Likewise.
21423         * config/vax/vax.h: Likewise.
21424         * config/we32k/we32k.h: Likewise.
21426 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21428         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21429         (altivec_lvsl): Change constraint to b.
21430         (altivec_lvsr): Same.
21431         (altivec_lvebx): Same.
21432         (altivec_lvehx): Same.
21433         (altivec_lvewx): Same.
21434         (altivec_lvxl): Same.
21435         (altivec_lvx): Same.
21436         (altivec_stvx): Add parallel.
21437         (altivec_stvxl): Same.
21438         (altivec_stvehx): Same.
21439         (altivec_stvebx): Same.
21440         (altivec_stvebx): Same.
21442 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21444         * config.gcc: Change altivec.h to altivec-defs.h.
21446         * config/rs6000/altivec.h: Delete.
21448         * config/rs6000/altivec-defs.h: Add.
21450 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21452         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21453         and UMOD modes.
21455         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21456         less than or equal to eight bytes.
21458         * vax.md (andsi3): Remove constraints and change SET destination
21459         operand type to nonimmediate_operand.
21460         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
21461         when it is a CONST_INT.
21463 2002-01-15  Jason Merrill  <jason@redhat.com>
21465         * c-common.def (FILE_STMT): New code.
21466         * c-common.c (statement_code_p): It's a statement.
21467         * c-common.h (stmt_tree_s): Add x_last_filename.
21468         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21469         (last_expr_filename): New macro.
21470         * c-semantics.c (begin_stmt_tree): Initialize it.
21471         (add_stmt): If the filename changed, also insert a
21472         FILE_STMT.
21473         (expand_stmt): Handle seeing one.
21475 2002-01-15  Eric Christopher  <echristo@redhat.com>
21477         * flow.c (propagate_one_insn): Add error message and print out
21478         insn for debugging.
21480 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21482         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21483         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21484         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21485         TRAMPOLINE_ALIGNMENT.
21486         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
21487         to be in bits.
21488         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21489         PCC_BITFIELD_TYPE_MATTERS.
21490         * config/interix.h (STDC_VALUE): Remove.  Use
21491         STDC_0_IN_SYSTEM_HEADERS.
21492         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21493         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21494         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21496 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21498         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21499         not work on this platform currently.
21501 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21503         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21504         readonly_warning in _().
21506 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
21508         * gcc.c (delete_if_ordinary): Backout previous change.
21510 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21512         * config/h8300/h8300.c (print_operand): Remove support for
21513         unused operand characters.
21515         * read-rtl.c: Fix formatting.
21516         * real.c: Likewise.
21517         * recog.c: Likewise.
21518         * regclass.c: Likewise.
21519         * regmove.c: Likewise.
21520         * reg-stack.c: Likewise.
21521         * reload1.c: Likewise.
21522         * rtlanal.c: Likewise.
21524 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21526         * config/i386/i386.c: Fix formatting.
21528 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
21530         * c-typeck.c (process_init_element): Don't save_expr
21531         COMPOUND_LITERAL_EXPR if just its initializer will be used.
21533 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
21535         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21536         emit optional traceback table if optimize_size or TARGET_ELF.
21537         * config/rs6000/rs6000.md (prefetch): New.
21539 2002-01-15  Andreas Jaeger  <aj@suse.de>
21541         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21543 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21545         * mips-tfile.c: Fix formatting.
21547 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21549         * unroll.c (final_reg_note_copy): Fix previous commit.
21551 2002-01-14  Kazu Hirata  <kazu@hxi.com>
21553         * config/h8300/h8300-protos.h: Remove the prototype for
21554         eq_operator.
21555         * config/h8300/h8300.c (eq_operator): Remove.
21557 2002-01-14  Richard Henderson  <rth@redhat.com>
21559         * config/i386/i386.md (prefetch): Tidy.
21560         (prefetch_3dnow): Fix locality operand.
21562 2002-01-14  Richard Henderson  <rth@redhat.com>
21564         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21565         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21567 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
21569         * reload1.c (reload_combine): Pass reg_sum replacement through
21570         copy_rtx in loop performing multiple changes.
21572 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
21574         * except.c (remove_unreachable_regions): New.
21575         (free_eh_status): Clear exception_handler_labels.
21576         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21577         (find_exception_handler_labels): Don't add the same label more than
21578         once.
21579         (remove_exception_handler_label): Don't die if
21580         find_exception_handler_labels hasn't been called for the current
21581         function yet.
21583 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
21585         * toplev.c (rest_of_compilation): Rebuild jump labels after
21586         gcse.
21588 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
21590         * doc/extend.texi: Move documentation of X86 built-in functions
21591         here.
21592         * doc/invoke.texi: From here.
21593         * doc/sourcebuild.texi: Document location of documentation for
21594         machine built-in functions.
21596 2002-01-13  Christopher Faylor  <cgf@redhat.com>
21598         * cppfiles.c (TEST_THRESHOLD): New macro.
21599         (SHOULD_MMAP): Ditto.
21600         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21601         be used.
21603 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
21605         * unroll.c (final_reg_note_copy): Properly handle
21606         REG_LABEL
21607         (unroll_loops): Fix LOOP_CONDITION heuristics.
21609 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
21611         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21612         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21614 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21616         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21617         threaded loop.
21619 2002-01-14  Tom Rix  <trix@redhat.com>
21621         * config/rs6000/rs6000.md: Fix typo with sradi.
21623 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
21625         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21626         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21627         (clrstrdi, clrstrsi): Adapt callers.
21629         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21631         (movti splitter): Never use register 0 as base register.
21633 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
21635         * combine.c (simplify_shift_const): Always generate new rtx
21636         for shift expression instead of reusing given expression.
21638 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21640         * config/alpha/alpha.c (alpha_expand_mov): Don't call
21641         alpha_legitimize_address unless mode is Pmode.
21643 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
21645         * doc/md.texi (Modifiers): Document the '*' constraint for the
21646         user.
21648         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21649         * doc/extend.texi (Function Attributes): 'interrupt' is valid
21650         for xstormy16 too.
21652 2002-01-13  Richard Henderson  <rth@redhat.com>
21654         * reload.c (find_reloads): Use a hard reg destination as reload reg
21655         for an input reload of the source.
21657 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21659         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21660         more generic.
21662 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
21664         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21665         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21667         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21669 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21671         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21673 2002-01-12  Tom Rix  <trix@redhat.com>
21675         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21676         TARGET_POWERPC64.
21678 2002-01-12  Richard Henderson  <rth@redhat.com>
21680         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21682         * doc/invoke.texi: Update Alpha options.
21684         * doc/invoke.texi: Update i386 built-in function lists.
21686 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21688         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21689         referencing outside.
21691 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21693         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21694         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21695         offsets, and change line folding.
21696         * optabs.c (expand_binop): Remove warnings.
21697         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21699 2002-01-12  Graham Stott <grahams@redhat.com>
21701         * attribs.c (handle_deprecated_attribute): constify WHAT.
21702         * diagnostic.c (warn_deprecated_use): Add braces, fixes
21703         dangling else warning and constify WHAT.
21704         * except.h (struct function, struct inline_remap): Move
21705         struct tag forward defs before all prototypes.
21706         (duplicate_eh_regions): Whitespace.
21708 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
21710         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21711         MODE_BASE_REG_CLASS.
21712         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21714 2002-01-12  Richard Henderson  <rth@redhat.com>
21716         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21717         (ix86_expand_vector_move): New.
21718         (bdesc_2arg): Remove andps, andnps, orps, xorps.
21719         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
21720         Remove old prefetch builtins.  Special case the logicals removed above.
21721         (ix86_expand_builtin): Likewise.
21722         (safe_vector_operand): Use V4SFmode, not TImode.
21723         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
21724         (ix86_expand_timode_binop_builtin): New.
21725         * config/i386/i386-protos.h: Update.
21726         * config/i386/i386.h (enum ix86_builtins): Update.
21727         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21728         Use ix86_expand_vector_move in vector move expanders.
21729         (movti_internal, movti_rex64): Add xorps alternative.
21730         (sse_clrv4sf): Rename and adjust from sse_clrti.
21731         (prefetch): Don't work so hard.
21732         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21733         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21734         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21736 2002-01-11  Richard Henderson  <rth@redhat.com>
21738         * config/i386/mmintrin.h: New file.
21739         * config/i386/xmmintrin.h: New file.
21740         * config.gcc (i?86-*-*): Add extra_headers.
21741         * simplify-rtx.c (simplify_unary_operation): Handle saturating
21742         truncation codes.
21743         (simplify_binary_operation): Handle saturating arithmetic codes.
21744         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21745         not the lowpart subreg.
21746         (ix86_expand_builtin): Return a TImode dummy register instead of 0
21747         on error.
21748         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21750 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21752         * conflict.c (conflict_graph_compute): Free regsets when finished.
21753         * ssa.c (compute_coalesced_reg_partition): Likewise.
21755 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21757         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21758         every where we allocate a register.
21760 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21762         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21763         * lcm.c (compute_earliest, compute_farthest): Likewise.
21765 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21767         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21769 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21771         * doc/rtl.texi (Insns): Fix 2 typos.
21773 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
21775         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
21776         options.  Use @table @gcctabopt for MMIX options.  Add index
21777         entries for MMIX options.  Start new paragraph with first
21778         heading of the machine-dependent options.
21780 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21782         PR other/5299
21783         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21784         * combine.c (force_to_mode): Same.
21785         * reload1.c (clear_reload_reg_in_use): Same.
21787 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
21789         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21790         and 'subtargets'.
21792 2002-01-11  Andreas Jaeger  <aj@suse.de>,
21793             Brad Lucier <lucier@math.purdue.edu>
21795         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21796         mcpu.
21798 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
21800         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21801         Protect with IN_LIBGCC.
21802         (LINK_EH_SPEC): Add required trailing space.
21804 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
21806         * c-tree.h: Move function declarations so that they are listed
21807         under the filename which contains them.
21808         (check_identifier, finish_decl_top_level,
21809         lookup_name_current_level_global, shadow_record_fields): Remove.
21811 2002-01-11  Andreas Jaeger  <aj@suse.de>
21813         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21814         march.
21816 2002-01-10  Richard Henderson  <rth@redhat.com>
21818         * config/alpha/alpha.c (print_operand): Add 'J'.
21819         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21820         new operand with the sequence number for the lituse.  When splitting
21821         the insns, use gen_movdi_er_high_g and generate a sequence number.
21822         (gen_movdi_er_high_g): Print the sequence number if non-zero.
21824 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
21826         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21827         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21828         stvxl.
21829         (altivec_expand_builtin): Same.
21830         (altivec_expand_stv_builtin): New.
21832         * config/rs6000/rs6000.h (rs6000_builtins): Same.
21834         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21835         ("altivec_lvehx"): New.
21836         ("altivec_lvewx"): New.
21837         ("altivec_lvxl"): New.
21838         ("altivec_lvx"): New.
21839         ("altivec_stvx"): New.
21840         ("altivec_stvebx"): New.
21841         ("altivec_stvehx"): New.
21842         ("altivec_stvewx"): New.
21843         ("altivec_stvxl"): New.
21845 2002-01-10  Richard Henderson  <rth@redhat.com>
21847         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21848         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
21849         care not to delete instructions twice.
21851 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21853         * toplev.c: Don't declare environ (it's not used anywhere).
21854         * configure.in: Don't check for declaration of environ.
21855         * config/i386/xm-mingw32.h: Don't #define environ.
21856         * config.in, configure: Regenerate.
21858 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21860         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21861         * configure: Regenerate.
21863         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21864         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21865         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21866         alpha/xm-vms.h.
21867         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21868         LIMITS_H_TEST here, not in m68k/x-next.
21869         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21870         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21872         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21873         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21874         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
21876         * config/i386/x-djgpp: Renamed i386/t-djgpp.
21877         * config/m88k/x-dolph: Renamed m88k/t-dolph.
21878         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21879         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
21880         replacement of quadlib.asm with quadlib.c.
21882         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21883         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21884         config/rs6000/xm-beos.h: Delete file.
21886         * config.gcc: Update to match above changes.
21888 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21890         * config/h8300/h8300.h: Fix comment typos.
21891         * config/h8300/h8300.md: Likewise.
21892         * config/h8300/lib1funcs.asm: Likewise.
21894 2002-01-10  Dale Johannesen  <dalej@apple.com>
21896         PR optimization/5269
21897         * unroll.c (precondition_loop_p): Make *increment be the correct
21898         sign when n_iterations known, to avoid confusing caller.
21900 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21902         * doc/extend.texi (deprecated): Fix a typo.
21904 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21906         * basic-block.h (update_br_prob_note): Declare.
21907         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21908         (try_forward_edges): Care negative frequencies and update note.
21909         (outgoing_edges_match): Tweek conditional merging heuristics.
21910         (try_crossjump_to_edge): use update_br_prob_note.
21911         * cfglayout.c (fixup_reorder_chain): Likewise.
21912         * cfrtl.c (update_br_prob_note): New.
21913         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21915         * i386.c (ix86_decompose_address): Return -1 if address contains
21916         shift.
21917         (legitimate_address_p): Require ix86_decompose_address to return 1.
21919         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21920         (cprop_insn): Likewise.
21922 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21924         * toplev.c: Fix formatting.
21925         * tree.c: Likewise.
21926         * tree-dump.c: Likewise.
21927         * unroll.c: Likewise.
21928         * unwind-dw2.c: Likewise.
21929         * unwind-dw2-fde.c: Likewise.
21930         * unwind-dw2-fde-glibc.c: Likewise.
21931         * unwind-sjlj.c: Likewise.
21933 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
21935         * doc/invoke.texi: Document PDP-11 options.
21937 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21939         * config/h8300/h8300.h: Fix formatting.
21941 2002-01-10  Ira Ruben   <ira@apple.com>
21943         Add __attribute__ ((deprecated)).
21944         * extend.texi: Document __attribute__ ((deprecated)).
21945         * invoke.texi: Document -Wno-deprecated-declarations.
21946         * testsuite/g++.dg/other/deprecated.C: New C++ test.
21947         * testsuite/gcc.dg/deprecated.c: New C test.
21948         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21949         (c_common_attribute_table): Add "deprecated" entry.
21950         (handle_deprecated_attribute): New function.
21951         * c-decl.c (deprecated_states): New enum.
21952         deprecated_state: State of "deprecated" handling.
21953         (start_decl): Set deprecated_state based on attributes.
21954         (grokdeclarator): Test for deprecated uses, propagate attribute.
21955         * c-typeck.c (build_component_ref): Test for deprecated fields.
21956         (build_external_ref): Test for deprecated primaries.
21957         * diagnostic.c (warn_deprecated_use) New function to issue
21958         warnings about __attribute__ ((depricated)) references.
21959         * flags.h (warn_deprecated_decl): Extern declared for
21960         -W[no-]deprecated-declarations option.
21961         * print-tree.c (print_node): Show deprecated flag status.
21962         * toplev.c (warn_deprecated_decl): Defined.
21963         (W_options): Added "deprecated-declaration".
21964         * toplev.h (warn_deprecated_use): Extern declared.
21965         * tree.h (struct tree_common): Define deprecated_flag.
21966         (TREE_DEPRECATED): New macro to access flag.
21967         * cp/call.c (build_call): Test for deprecated calls.
21968         * cp/class.c (add_implicitly_declared_members): Set global
21969         flag to tell grokdeclarator to not issue deprecated warnings.
21970         * cp/cp-tree.h: Add extern for adding_implicit_members.
21971         * cp/decl.c (deprecated_states): New enum.
21972         (start_decl): Set deprecated_state based on attributes.
21973         (grokdeclarator): Test for deprecated uses, propagate attribute.
21974         * cp/lex.c (do_identifier): Test for deprecated primaries.
21975         * cp/typeck.c (build_component_ref): Test for deprecated fields.
21977 2002-01-10  Ira Ruben   <ira@apple.com>
21979         Fix to assign attributes to inline member functions.
21980         * cp/decl.c (start_method): Handle attrlist.
21982 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21984         * combine.c (expand_field_assignment): Use subreg_lsb().
21986 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
21988         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21989         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21990         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21991         Recurse for any operand of AND as long as constant is non-zero.
21993 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21995         * config/h8300/h8300.md: Remove constraints from expanders.
21997 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21999         * varasm.c: Fix formatting.
22000         * varray.c: Likewise.
22001         * vmsdbgout.c: Likewise.
22002         * xcoffout.c: Likewise.
22004 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
22006         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22007         update edge probabilities to match.
22009 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
22011         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22012         dependencies.
22013         * doc/languages.texi, doc/sourcebuild.texi: New files.
22014         * doc/configfiles.texi: Make a subsubsection.  Update.
22015         * doc/configterms.texi: Add @node.  Remove warning that this isn't
22016         instructions for building GCC.
22017         * doc/makefile.texi: Make a subsection.
22018         * doc/gccint.texi: Update.
22020 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
22022         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22024 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
22026         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22028 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
22030         * optabs.c (expand_fix): Look for wider integer modes first.
22032         * i386.md (mov?f): Avoid the fake const double trick for medium
22033         memory model.
22034         (min?f*/max?f*): Prohibit memory operands for i387 variant.
22035         (fop_df_4): Disable for SSE compilation.
22037 2002-01-10  Graham Stott  <grahams@redhat.com>
22039         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22040         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22042 2002-01-10  Richard Henderson  <rth@redhat.com>
22044         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22046 2002-01-10  Richard Henderson  <rth@redhat.com>
22048         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22049         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
22051 2002-01-10  Kazu Hirata  <kazu@hxi.com>
22053         * combine.c (can_combine_p): Fix a comment typo.
22055 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
22057         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22058         empty list correctly.  Change loop index $t to $f for
22059         consistency with rest of Makefile.
22061 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
22063         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22064         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22066         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22067         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22068         (altivec_init_builtins): Same.
22069         (altivec_expand_unop_builtin): Return NULL_RTX on error.
22070         (altivec_expand_binop_builtin): Same.
22071         (altivec_expand_ternop_builtin): Same.
22072         (bdesc_dst): New.
22074         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22075         ("altivec_vctuxs"): Fix typo.
22076         ("altivec_vnmsubfp"): Same.
22077         ("altivec_dssall"): New.
22078         ("altivec_mfvscr"): New.
22079         ("altivec_dss"): New.
22080         ("altivec_lvsl"): New.
22081         ("altivec_lvsr"): New.
22082         ("altivec_dstt"): New.
22083         ("altivec_dstst"): New.
22084         ("altivec_dststt"): New.
22085         ("altivec_dst"): New.
22087         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22088         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22090 2002-01-09  Richard Henderson  <rth@redhat.com>
22092         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22094 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
22096         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22097         function.
22098         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22099         prototype.
22100         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22102 2002-01-09  Kazu Hirata  <kazu@hxi.com>
22104         * read-rtl.c: Fix formatting.
22105         * real.c: Likewise.
22106         * regclass.c: Likewise.
22107         * regrename.c: Likewise.
22108         * reg-stack.c: Likewise.
22109         * reload1.c: Likewise.
22110         * reload.c: Likewise.
22111         * rtl.c: Likewise.
22113 2002-01-09  Kazu Hirata  <kazu@hxi.com>
22115         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22116         to extract items in the expr_list chain.
22118 2002-01-09  Richard Henderson  <rth@redhat.com>
22120         * config/vax/vax.c (vax_rtx_cost): Never abort.
22122         * config/vax/vax.h (REAL_ARITHMETIC): Define.
22124 2002-01-09  Jan Hubicka  <jh@suse.cz>
22126         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22128 2002-01-09  Richard Henderson  <rth@redhat.com>
22130         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22131         Unify code from various alternatives.
22133 2002-01-09  Richard Henderson  <rth@redhat.com>
22135         * regrename.c (copy_value): Ignore the copy if the source register
22136         is present in the value chain with a narrower mode.
22138 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
22140         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22141         for the c4x target. Also improve layout.
22143 2002-01-09  Richard Henderson  <rth@redhat.com>
22145         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22146         * config/m32r/m32r.md (and ior xor splitters): Swap operands
22147         to match insn patterns.
22149 2002-01-09  Richard Henderson  <rth@redhat.com>
22151         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22152         (copyprop_hardreg_forward_1): Likewise.
22154 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22156         * pa.md (decrement_and_branch_until_zero): Change predicate for
22157         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22159 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
22161         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22162         gets undefined. For Darwin.
22164 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22166         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22168 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
22170         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22172 2002-01-08  Richard Henderson  <rth@redhat.com>
22174         * regrename.c (copy_value): Ignore overlapping copies.
22176 2002-01-08  Richard Henderson  <rth@redhat.com>
22178         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22179         as needed to avoid shared structure.
22181 2002-01-08  Kazu Hirata  <kazu@hxi.com>
22183         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22184         H8/300H and H8/S.
22186 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22188         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22189         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22190         documentation of obsolete macros.
22191         * system.h: Poison these macros.
22192         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22193         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22194         config/c4x/c4x.h, config/clipper/clipper.h,
22195         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22196         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22197         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22198         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22199         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22200         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22201         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22202         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22203         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22204         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22205         config/sparc/sparc.h, config/stormy16/stormy16.h,
22206         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22207         definitions and commented out definitions of obsolete macros.
22208         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22209         of MAX_INT_TYPE_SIZE.
22211 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
22213         * config/s390/s390.c (s390_preferred_reload_class): Never
22214         return ADDR_REGS if it isn't a subset of the given class.
22215         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22216         FP_REGS, but all superclasses as well.
22218         * config/s390/s390.c (s390_function_profiler): Fix thinko.
22220         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22221         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22222         must not be a const_int.
22224 2002-01-08  Richard Henderson  <rth@redhat.com>
22226         * Makefile.in (toplev.o): Depend on options.h.
22227         (gcc.o): Depend on specs.h.
22229 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
22231         * expr.c (store_expr): Convert VOIDmode constants back to target's
22232         mode.
22234 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
22236         * doc/invoke.texi: Markup gcc as @command.  Refer to
22237         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22238         of http://gcc.gnu.org/thanks.html.
22240 2002-01-08  Dale Johannesen  <dalej@apple.com>
22242         * config/rs6000/rs6000.md: Add missing int register
22243         target case to movdf_low.
22245 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
22247         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22248         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
22249         (cppinit.o): Depend on except.h.
22250         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22251         s-specs): New rules.
22253         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22254         Don't create specs.h/options.h/gencheck.h here.  Remove
22255         unnecessary variable settings from last argument of AC_OUTPUT.
22256         * config.in, configure: Regenerate.
22257         * intl.c: Hardcode package name as "gcc".
22259         * cppinit.c: Include except.h.
22260         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22261         appropriate.
22262         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22263         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22264         (!)USING_SJLJ_EXCEPTIONS.
22265         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22267 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22269         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22270         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22271         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22272         documentation of obsolete macros.
22273         * system.h: Poison these macros.
22274         * config/d30v/d30v.h, config/ns32k/encore.h,
22275         config/stormy16/stormy16.h: Remove definitions and commented out
22276         definitions of obsolete macros.
22278 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
22280         * objc/objc-act.c (handle_class_ref): Mark the declaration of
22281         %sobjc_class_ref_%s as used - to prevent unwanted compiler
22282         warnings.
22284 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
22286         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22287         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22288         to insn adjusting stack/frame pointer.
22289         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22290         accept operands that cause the insn to be non-splittable.
22292 2002-01-08  Graham Stott  <grahams@redhat.com>
22294         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22295         (C_TYPE_FIELDS_VOLATILE): Likewise.
22296         (C_TYPE_BEING_DEFINED): Likewise.
22297         (C_IS_RESERVED_WORD): Likewise.
22298         (C_TYPE_VARIABLE_SIZE): Likewise.
22299         (C_DECL_VARIABLE_SIZE): Likewise.
22300         (C_MISSING_PROTOTYPE_WARNED): Likewise.
22301         (C_SET_EXP_ORIGINAL_CODE): Likewise.
22302         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22303         parenthesis.
22304         (C_DECL_ANTICIPATED): Likewise.
22305         (c_build_type_variant): Add parenthesis.
22307 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22309         * gcc.c (option_map): Remove --version.
22310         (process_command): Handle -fversion following the GNU Coding
22311         Standards.  Partially addresses PR other/704.
22313 2002-01-08  Graham Stott  <grahams@redhat.com>
22315         * combine.c (combine_instructions): Fix typo.
22317 2002-01-08  Graham Stott  <grahams@redhat.com>
22319         * debug.h: Use "tree" and "rtx" throughout.
22321         * debug.c: Likewise.
22323 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
22325         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22326         constant pool, use the pool's version of the symbol instead.
22328 2002-01-07  Richard Henderson  <rth@redhat.com>
22330         * regrename.c (find_oldest_value_reg): Ignore the value chain if
22331         the original register was copied in a mode with a fewer number of
22332         hard registers than the desired mode.
22333         (copyprop_hardreg_forward_1): Likewise.
22334         (debug_value_data): Fix loop test.
22335         * toplev.c (parse_options_and_default_flags): Reenable
22336         -fcprop-registers at -O1.
22338 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22340         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22341         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22343         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22344         predicates.
22346         * config/rs6000/rs6000.md: Add altivec predicate patterns.
22348 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22350         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22351         (pa_output_function_prologue): Output local label at the beginning of
22352         the prologue when profiling.
22353         (hppa_profile_hook): Use the local label rather than the function label.
22354         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22356 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22358         * config/rs6000/rs6000.c (print_operand): Remove extra space.
22359         (altivec_expand_unop_builtin): Fix thinko.
22360         (altivec_expand_binop_builtin): Same.
22361         (altivec_expand_ternop_builtin): Same.
22362         (altivec_expand_builtin): Same.
22364 2002-01-07  Richard Henderson  <rth@redhat.com>
22366         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22368 2002-01-07  Jason Merrill  <jason@redhat.com>
22370         * unwind-dw2.c (execute_cfa_program): Use < again.
22372 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22374         * predict.c (combine_predictions_for_insn): Avoid division by zero.
22376 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22378         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22379         Don't allow -1 - x -> ~x simplifications in the first pass.
22381 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22383         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22384         arguments.
22385         (altivec_expand_binop_builtin): Same.
22386         (altivec_expand_unop_builtin): Same.
22387         (print_operand): Fix typo.
22388         (bdesc_1arg): Add vupk* variants.
22390         * rs6000.h (rs6000_builtins): Add vupk* enums.
22392         * rs6000.md: Add altivec_vupk* variants.
22394 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
22396         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22397         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22398         and last update dates.
22400 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
22402         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22404 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
22406         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22407         * config/avr/avr.h (CPP_SPEC): Likewise.
22408         (LINK_SPEC): Likewise.
22409         (CRT_BINUTILS_SPECS): Likewise.
22410         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22411         * doc/invoke.texi (AVR Options): Document them.
22413 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
22415         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22416         LABEL_NUSES.
22418 2002-01-07  Graham Stott  <grahams@redhat.com>
22420         * config/i386/i386.h: Update copyright date.
22421         (HALF_PIC_PTR): Add parenthesis.
22422         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22423         (CONSTANT_ALIGNMENT): Add parenthesis.
22424         (DATA_ALIGNMENT): Likewise.
22425         (LOCAL_ALIGNMENT): Likewise.
22426         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22427         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22428         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22429         (HARD_REGNO_NREGS): Add paranethesis.
22430         (VALID_SSE_REG_MODE): Whitespace.
22431         (VALID_MMX_REG_MODE): Whitespace.
22432         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22433         (ix86_hard_regno_mode_ok): Add parenthesis.
22434         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22435         (RETURN_IN_MEMORY): Whitespace.
22436         (N_REG_CLASSES): Add parenthesis.
22437         (INTEGER_CLASS_P): Add parenthesis and wrap.
22438         (FLOAT_CLASS_P): Likewise.
22439         (SSE_CLASS_P): Likewise.
22440         (MMX_CLASS_P): Likewise.
22441         (MAYBE_INTEGER_CLASS_P): Likewise.
22442         (MAYBE_FLOAT_CLASS_P): Likewise.
22443         (MAYBE_SSE_CLASS_P): Likewise.
22444         (MAYBE_MMX_CLASS_P): Likewise.
22445         (Q_CLASS_P): Likewise.
22446         (GENERAL_REGNO_P): Uppercase macro parameter.
22447         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22448         (FP_REGNO_P): Likewise.
22449         (ANY_FP_REGNO_P): Uppercase macro parameter.
22450         (SSE_REGNO_P): Likewise.
22451         (SSE_REGNO): Likewise.
22452         (SSE_REG_P): Likewise.
22453         (SSE_FLOAT_MODE_P): Likewise.
22454         (MMX_REGNO_P): Likewise.
22455         (MMX_REG_P):Likewise.
22456         (STACK_REG_P): Likewise.
22457         (NON_STACK_REG_P): Likewise.
22458         (STACK_TOP_P): Likewise.
22459         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22460         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22461         (SECONDARY_MEMORY_NEEDED): Likewise.
22462         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22463         (MD_ASM_CLOBBERS): Whitespace and wrap.
22464         (MUST_PASS_IN_STACK): Whitespace and wrap.
22465         (RETURN_POPS_ARGS): Add parenthesis.
22466         (INIT_CUMULATIVE_ARGS): Likewise.
22467         (FUNCTION_ARG): Likewise.
22468         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22469         (SETUP_INCOMING_VARARGS): Likewise.
22470         (BUILD_VA_LIST_TYPE):  Add parenthesis.
22471         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22472         parenthsis.
22473         (EXPAND_BUILTIN_VA_ARG): Likewise.
22474         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22475         (INITIALIZE_TRAMPOLINE): Add parenthesis.
22476         (INITIAL_ELIMINATION_OFFSET): Likewise.
22477         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22478         (REGNO_OK_FOR_BASE_P): Likewise.
22479         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22480         (REGNO_OK_FOR_DIREG_P): Likewise.
22481         (REG_OK_FOR_INDEX_P): Whitespace.
22482         (REG_OK_FOR_BASE_P): Whitespace.
22483         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22484         parenthesis.
22485         (FIND_BASE_TERM): Fix typo.
22486         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
22487         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22488         (SYMBOLIC_CONST; Whitespace.
22489         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
22490         (ENCODE_SECTION_INFO): Whitespace.
22491         (FINALIZE_PIC): Remove do { ... } while (0).
22492         (PROMOTE_MODE): Wrap in do { ... } while (0).
22493         (CONST_COSTS): Whitespace.
22494         (RTX_COSTS): Add paramethesis, whitespace and wrap.
22495         (REGISTER_MOVE_COST): Add parenthesis.
22496         (MEMORY_MOVE_COST): Likewise.
22497         (EXTRA_CC_MODES): Whitespace.
22498         (SELECT_CC_MODE): Add parenthesis and whitespace.
22499         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22500         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22501         (ASM_OUTPUT_LABEL): Add paramethesis.
22502         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22503         (ASM_OUTPUT_REG_POP): Likewise.
22504         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22505         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22507         * config/i386/i386.c: Update copyright.
22508         (CHECK_STACK_LIMIT): Add parenthesis.
22509         (AT_BP): Uppercase macro parameter.
22510         (x86_64_int_parameter_registers): Constify.
22511         (x86_64_int_return_registers): Likewise.
22512         (ix86_compare_op0): Use rtx.
22513         (construct_container): Constify INTREG parameter.
22514         (function_arg): Use rtx.
22516         * diagnostic.h: Update copyright date.
22517         (output_buffer_state): Add parenthesis.
22518         (output_buffer_format_args): Likewise.
22520         * combine.c (combine_instructions): Replace XEXP (links, 0)
22521         with link.
22523 2002-01-06  H.J. Lu <hjl@gnu.org>
22525         * cfgcleanup.c (thread_jump): Fix 2 typos.
22527 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
22529         * config.gcc: Add support for --enable-altivec.
22531 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22533         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22535 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
22537         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22538         __objc_class_name_*.
22540 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22542         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22544 2002-01-06  Richard Henderson  <rth@redhat.com>
22546         * reorg.c (emit_delay_sequence): Remove death notes, not merely
22547         nop them out.  Increment label reference count for REG_LABEL.
22548         (fill_slots_from_thread): Frob label reference count around
22549         delete_related_insns.
22551 2002-01-05  Richard Henderson  <rth@redhat.com>
22553         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22554         jump threading.
22556 2002-01-05  Richard Henderson  <rth@redhat.com>
22558         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22559         * integrate.c (output_inline_function): Likewise.
22560         * toplev.c (rest_of_compilation): Do it here instead.  Move call
22561         to remove_unnecessary_notes after emitting abstract instance.
22562         Force an emitted nested function to have its parent emited as well.
22563         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22564         for null.
22565         (rtl_for_decl_location): Do not look at reload data structures
22566         before reload has run.
22568 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22570         * cse.c: Fix formatting.
22571         * dwarf2asm.c: Likewise.
22572         * dwarf2out.c: Likewise.
22573         * explow.c: Likewise.
22574         * expmed.c: Likewise.
22575         * function.c: Likewise.
22576         * gcov.c: Likewise.
22577         * gencheck.c: Likewise.
22578         * genrecog.c: Likewise.
22579         * ggc-common.c: Likewise.
22580         * ggc-page.c: Likewise.
22581         * global.c: Likewise.
22583 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22585         * combine.c: Fix formatting.
22587 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
22589         PR middle-end/1557
22590         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22592 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
22594         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22595         as 1 for __powerpc64__ as well.
22597         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22599         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22600         return it.
22602 2002-01-05  Daniel Berlin  <dan@dberlin.org>
22604         * lcm.c: Revert change, due to performance regression it causes on
22605         SPEC because it's slightly more conservative (sigh, I hate
22606         edge-based LCM).
22608 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
22610         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22612 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
22614         * doc/cppinternals.texi: Update.
22616 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
22618         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22619         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22620         negatives.
22621         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
22622         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22623         kludge for pre-october-14th mmix versions to handle new-found bug
22624         with PUSHJ/PUSHGO and the register stack.
22625         * config/mmix/mmix.h (struct machine_function): Rename member
22626         has_call_value_without_parameters to has_call_without_parameters.
22627         All referers changed.
22628         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22629         TARGET_MASK_BRANCH_PREDICT): New macros.
22630         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22631         -mno-reg-stack-fill-bug-workaround.
22632         * config/mmix/mmix.md ("call"): Set struct machine member
22633         has_call_without_parameters.
22635 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
22637         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22639 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
22641         * cfgcleanup.c: Include tm_p.h
22642         (mark_effect): Fix handling of hard register; fix handling of SET
22644 2002-01-04  Kazu Hirata  <kazu@hxi.com>
22646         * config/h8300/h8300.md (anonymous patterns): Check that
22647         operands are registers before using REGNO on them.
22649 2002-01-03  Roland McGrath  <roland@frob.com>
22651         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22653 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
22655         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22656         * c-common.h (genrtl_expr_stmt_value): Likewise.
22657         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22658         (expand_expr_stmt_value): Add maybe_last argument.
22659         Don't warn about statement with no effect if it is the last statement
22660         in expression statement.
22661         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22662         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22663         expand_expr_stmt_value.
22664         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22665         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22666         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22667         as maybe_last to expand_expr_stmt_value.
22669 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
22671         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22672         be passed in, do not build it.
22673         (c_begin_if_stmt): New function.
22674         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22675         * c-common.h (c_expand_start_cond): Update prototype.
22676         (c_begin_if_stmt): Prototype new function.
22677         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22678         * c-parse.in (if_prefix): Use c_begin_if_stmt,
22679         c_begin_while_stmt and c_finish_while_stmt_cond.
22681 2002-01-04  William Cohen  <wcohen@redhat.com>
22683         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22684         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22685         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22686         * config/pa/som.h (ASM_FILE_START): Likewise.
22688 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
22690         * lcm.c: Include df.h.
22691         Add available_transfer_function prototype.
22692         (compute_available): Rework to use iterative dataflow framework.
22693         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22694         with bb_info in df.h
22695         (available_transfer_function): New function.
22697         * Makefile.in (lcm.o): add df.h to dependencies.
22699 2002-01-04  Richard Henderson  <rth@redhat.com>
22701         * config/alpha/alpha.c (some_operand): Accept HIGH.
22702         (input_operand): Likewise; accept simple references to globals.
22703         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22704         (alpha_const_double_ok_for_letter_p): Likewise.
22705         (alpha_extra_constraint): Likewise.
22706         (alpha_preferred_reload_class): Likewise.  Do not force
22707         symbolic constants to memory.
22708         (alpha_legitimate_address_p): Accept simple references
22709         to small_symbolic_operand.
22710         (alpha_legitimize_address): New arg scratch.  Be prepared to be
22711         called when no_new_pseudos.  Emit simple symbolic references.
22712         Split integers into low, high, and rest.
22713         (alpha_expand_mov): Use alpha_legitimize_address.
22714         (some_small_symbolic_mem_operand): New.
22715         (split_small_symbolic_mem_operand): New.
22716         * config/alpha/alpha-protos.h: Update.
22717         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22718         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22719         (EXTRA_CONSTRAINT): Likewise.
22720         (PREFERRED_RELOAD_CLASS): Likewise.
22721         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22722         (PREDICATE_CODES): Update.
22723         * config/alpha/alpha.md: New post-reload splitters to convert
22724         simplfied symbolic operands to the form that references $29.
22725         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22726         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22728 2002-01-03  Richard Henderson  <rth@redhat.com>
22730         * local-alloc.c (function_invariant_p): Update commentary.
22732 2002-01-04  H.J. Lu <hjl@gnu.org>
22734         * toplev.c (rest_of_compilation): Fix a typo when calling
22735         cleanup_cfg.
22737 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22739         * c-common.c: Fix formatting.
22740         * diagnostic.c: Likewise.
22741         * doloop.c: Likewise.
22742         * dwarf2out.c: Likewise.
22744 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22746         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22747         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22749 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22751         * cpperror.c: Update comments and copyright.
22752         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22753         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22755 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22757         * collect2.c (main): Use strcmp when testing for "-shared".
22759 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22761         * cppmacro.c: Don't include intl.h.  Update comments.
22762         (new_number_token): Allocate enough buffer for 64-bit unsigned
22763         integers; update prototype.
22764         * cppmain.c: Update comments.
22766 2002-01-03  William Cohen  <wcohen@redhat.com>
22768         * function.h (struct function): Add profile.
22769         (current_function_profile): New.
22770         doc/extend.texi: Update documentation.
22771         * final.c (final_start_function): Use current_function_profile
22772         instead of profile_flag.
22773         (profile_after_prologue): Likewise.
22774         * function.c (expand_function_start): Likewise.
22775         (expand_function_start): Likewise.
22776         * config/alpha/alpha.c (direct_call_operand):
22777         (alpha_does_function_need_gp): Likewise.
22778         (alpha_expand_prologue): Likewise.
22779         * config/arm/arm.c (arm_expand_prologue): Likewise.
22780         thumb_expand_prologue: Likewise.
22781         * config/d30v/d30v.c (d30v_stack_info): Likewise.
22782         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22783         (fr30_expand_prologue): Likewise.
22784         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22785         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22786         * config/i386/i386.h (FINALIZE_PIC): Likewise.
22787         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22788         * config/i960/i960.c (i960_output_function_prologue): Likewise.
22789         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22790         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22791         (m32r_expand_prologue): Likewise.
22792         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22793         (m88k_expand_prologue): Likewise.
22794         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22795         * config/mips/mips.c (compute_frame_size): Likewise.
22796         (mips_expand_prologue): Likewise.
22797         (mips_can_use_return_insn): Likewise.
22798         * config/pa/elf.h (ASM_FILE_START): Likewise.
22799         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22800         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22801         * config/pa/som.h (ASM_FILE_START): Likewise.
22802         * config/romp/romp.c (romp_using_r14): Likewise.
22803         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22804         (rs6000_stack_info): Likewise.
22805         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22806         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22807         * config/v850/v850.c (compute_register_save_size): Likewise.
22809 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
22811         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22812         gen_lowpart_common fails, use gen_lowpart_SUBREG.
22814 2002-01-03  Turly O'Connor  <turly@apple.com>
22816         * darwin.c (machopic_output_possible_stub_label): Don't generate
22817         stub routines for pseudo-stubs which we've just defined.
22819 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22821         * builtins.c: Fix formatting.
22822         * c-typeck.c: Likewise.
22823         * combine.c: Likewise.
22824         * expr.c: Likewise.
22825         * loop.c: Likewise.
22827 2002-01-03  Andreas Schwab  <schwab@suse.de>
22829         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22830         and return true if _cpp_push_next_buffer pushed a new include
22831         file.
22832         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22833         _cpp_pop_file_buffer did not push a new file.
22834         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22836 2002-01-02  Eric Christopher  <echristo@redhat.com>
22838         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22839         FIND_REG_INC_NOTE call. Update copyright.
22840         * loop.c (canonicalize_condition): Ditto.
22841         * reorg.c (delete_scheduled_jump): Ditto.
22843 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22845         * gcse.c: Fix formatting.
22847 2002-01-03  Graham Stott  <grahams@redhat.com>
22849         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22850         forward defs for struct tags rtx_def, union_tree, rtvec_def
22851         also output corresponding typedefs for rtx, tree, and rtvec.
22853         * system.h: Move forward defs for struct tags rtx_def, union_tree,
22854         rtvec_def along with corresponding typedefs for rtx, tree, and
22855         rtvec to config.h, hconfig.h, tconfig.h.
22857 2002-01-03  Graham Stott  <grahams@redhat.com>
22859         * tree.h: Update copyright date.
22860         (IS_EXPR_CODE_CLASS): Add parenthesis.
22861         (TREE_SET_CODE): Add whitespace.
22862         (TREE_CHECK): Add parenthesis.
22863         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22864         (CST_OR_CONSTRUCTOR_CHECK):
22865         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22866         (TREE_SYMBOL_REFERENCED): Whitespace.
22867         (INT_CST_LT): Likewise.
22868         (INT_CST_LT_UNSIGNED): Likewise.
22869         (tree_real_cst): Unwrap comment.
22870         (tree_string): Likewise.
22871         (tree_complex): Likewise.
22872         (IDENTIFIER_POINTER): correct cast.
22873         (SAVE_EXPR_CONTEXT): Whitespace.
22874         (EXPR_WFL_FILENAME_NODE): Likewise.
22875         (EXPR_WFL_FILENAME): Remove parenthesis.
22876         (DECL_ORIGIN): Add parenthesis.
22877         (DECL_FROM_INLINE): Use NULL_TREE.
22878         (build_int_2): Whitespace.
22879         (build_type_variant): Add parenthesis.
22881         * gcc/jcf-parse.c: Update copyright date.
22882         (yyparse): Constify resource_filename.
22884 2002-01-03  Graham Stott  <grahams@redhat.com>
22886         * rtl.h: Update copyright date.
22887         (RTL_CHECK1): Wrap long line.
22888         (RTL_CHECK2): Likewise.
22889         (RTL_CHECKC1): Wrap long line and whitespace.
22890         (RTL_CHECKC2): Likewise.
22891         (XWINT): Whitespace.
22892         (XINT): Likewise.
22893         (XSTR): Likewise.
22894         (XEXP): Likewise.
22895         (XVEC): Likewise.
22896         (XMODE): Likewise.
22897         (XBITMAP): Likewise.
22898         (XTREE): Likewise.
22899         (XBBDEF): Likewise.
22900         (XTMPL): Likewise.
22901         (X0WINT): Likewise.
22902         (X0INT):Likewise.
22903         (X0UINT): Likewise.
22904         (X0STR): Likewise.
22905         (X0EXP): Likewise.
22906         (X0VEC): Likewise.
22907         (X0MODE): Likewise.
22908         (X0BITMAP): Likewise.
22909         (X0TREE): Likewise.
22910         (X0BBDEF): Likewise.
22911         (X0ADVFLAGS): Likewise.
22912         (X0CSELIB): Likewise.
22913         (X0MEMATTR): Likewise.
22914         (XCWINT): Likewise.
22915         (XCINT): Likewise.
22916         (XCUINT): Likewise.
22917         (XCSTR): Likewise.
22918         (XCEXP): Likewise.
22919         (XCVEC): Likewise.
22920         (XCMODE): Likewise.
22921         (XCBITMAP): Likewise.
22922         (XCTREE): Likewise.
22923         (XCBBDEF): Likewise.
22924         (XCADVFLAGS): Likewise.
22925         (XCCSELIB): Likewise.
22926         (XC2EXP): Likewise.
22927         (INSN_UID): Likewise.
22928         (PREV_INSN): Likewise.
22929         (PATTERN): Likewise.
22930         (INSN_CODE): Likewise.
22931         (PUT_REG_NOTE_KIND): Likewise.
22932         (CODE_LABEL_NUMBER): Likewise.
22933         (NOTE_SOURCE_FILE): Likewise.
22934         (NOTE_BLOCK): Likewise.
22935         (NOTE_EH_HANDLER): Likewise.
22936         (NOTE_RANGE_INFO): Likewise.
22937         (NOTE_LIVE_INFO): Likewise.
22938         (NOTE_BASIC_BLOCK): Likewise.
22939         (NOTE_EXPECTED_VALUE): Likewise.
22940         (NOTE_LINE_NUMBER): Likewise.
22941         (LABEL_NAME): Likewise.
22942         (LABEL_NUSES): Likewise.
22943         (LABEL_ALTERNATE_NAME): Likewise.
22944         (ADDRESSOF_DECL): Likewise.
22945         (JUMP_LABEL): Likewise.
22946         (LABEL_NEXTREF): Likewise.
22947         (REGNO): Likewise.
22948         (ORIGINAL_REGNO: Likewise.
22949         (HARD_REGISTER_NUM_P): Add parenthesis.
22950         (SUBREG_REG): Whitespace.
22951         (SUBREG_BYTE): Likewise.
22952         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22953         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22954         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22955         (ASM_OPERANDS_INPUT_VEC): Likewise.
22956         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22957         (ASM_OPERANDS_INPUT): Likewise.
22958         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22959         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22960         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22961         (ASM_OPERANDS_INPUT_MODE): Likewise.
22962         (ASM_OPERANDS_SOURCE_FILE): Likewise.
22963         (ASM_OPERANDS_SOURCE_LINE): Likewise.
22964         (MEM_SET_IN_STRUCT_P): Minor reformat.
22965         (TRAP_CONDITION): Whitespace.
22966         (TRAP_CODE): Likewise.
22967         (COND_EXEC_TEST): Likewise.
22968         (COND_EXEC_CODE): Likewise.
22969         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22970         (PHI_NODE_P): Add parenthesis.
22971         (plus_constant): Whitespace and add parenthesis.
22973 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22975         * config/avr/avr.c: Fix comment typos.
22976         * config/c4x/c4x.md: Likewise.
22977         * config/dsp16xx/dsp16xx.h: Likewise.
22978         * config/dsp16xx/dsp16xx.md: Likewise.
22979         * config/i386/i386.md: Likewise.
22980         * config/ia64/ia64.c: Likewise.
22981         * config/m32r/m32r.h: Likewise.
22982         * config/m68hc11/m68hc11.md: Likewise.
22983         * config/mmix/mmix.c: Likewise.
22984         * config/mn10200/mn10200.c: Likewise.
22985         * config/romp/romp.c: Likewise.
22986         * config/sh/sh.c: Likewise.
22987         * config/stormy16/stormy16.c: Likewise.
22988         * config/stormy16/stormy16.h: Likewise.
22989         * config/stormy16/stormy16.md: Likewise.
22991 2002-01-03  Graham Stott  <grahams@redhat.com>
22993         * loop.h: Update copyright date.
22994         (LOOP_MOVABLES): Fix typo.
22995         (LOOP_REGS): Likewise.
22996         (LOOP_IVS): Likewise.
22998 2002-01-03  Graham Stott  <grahams@redhat.com>
23000         * cppinit.c: Update copyright date.
23001         Don't include output.h
23002         * Makefile.in: Update copyright date.
23003         Update dependency.
23005 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23007         PR c/5226
23008         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23009         (-pthread) Add to RS/6000 options.
23011 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23013         * except.c: Fix comment typos.
23014         * loop.c: Likewise.
23015         * varasm.c: Likewise.
23016         * doc/tm.texi: Fix a typo.
23018 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
23020         * c-typeck.c (output_init_element): Allow initializing static storage
23021         duration objects with compound literals.
23023 2002-01-02  Richard Henderson  <rth@redhat.com>
23025         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23026         after abusing it.
23028 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23030         * gcc.c (default_compilers): Const-ify.
23031         * mips-tdump.c (stab_names): Likewise.
23032         * mips-tfile.c (map_coff_types, map_coff_storage,
23033         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23034         pseudo_ops_t, pseudo_ops): Likewise.
23035         * protoize.c (default_include): Likewise
23037         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23038         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23039         Add array size in declaration.
23040         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23041         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23042         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23043         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23044         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23045         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23046         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23047         emtens, make_nan): Const-ify.
23048         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23049         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23051 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
23053         * config.gcc (ia64-*-*): Set extra_headers.
23054         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
23055         * config/alpha/t-osf: Remove.
23056         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23058 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
23060         * config/rs6000/t-aix43: Revert previous change.
23062 2002-01-02  Jason Merrill  <jason@redhat.com>
23064         * c-decl.c (c_expand_body): Call outlining_inline_function when
23065         emitting an inline function out of line.
23067 2002-01-02  Richard Henderson  <rth@redhat.com>
23069         * dwarf2out.c (limbo_die_node): Add created_for member.
23070         (new_die): New argument created_for.  Update all callers.
23071         (mark_limbo_die_list): New.
23072         (dwarf2out_init): Register limbo_die_list as a root.
23073         (dwarf2out_finish): Force insert limbo dies into their function
23074         context.
23076 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
23078         PR c++/5089
23079         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23081 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23083         * config/h8300/fixunssfsi.c: Update copyright.
23084         Fix comment typos.
23085         Fix formatting.
23086         * config/h8300/h8300.c: Update copyright.
23087         Eliminate warnings.
23089 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23091         * config/romp/romp.c: Fix comment formatting.
23092         * config/romp/romp.h: Likewise.
23093         * config/romp/romp.md: Likewise.
23094         * config/s390/s390.c: Likewise.
23095         * config/stormy16/stormy16.c: Likewise.
23096         * config/stormy16/stormy16.h: Likewise.
23098 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
23100         * c-common.h (genrtl_expr_stmt_value): Declare.
23101         * c-semantics.c (genrtl_goto_stmt): Redirect to...
23102         (genrtl_goto_stmt_value): ... this new function.  Pass new
23103         argument down to expand_expr_stmt_value, taking
23104         TREE_ADDRESSABLE into account.
23105         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23106         STMT_EXPR as addressable, i.e., one whose result we want.
23107         * expr.c (expand_expr): Don't save expression statement value
23108         of labeled_blocks or loop_exprs.
23109         * stmt.c (expand_expr_stmt): Redirect to...
23110         (expand_expr_stmt_value): ... this new function.  Use new
23111         argument to tell whether to save expression value.
23112         (expand_end_stmt_expr): Reset last_expr_type and
23113         last_expr_value if we don't have either.
23114         * tree-inline.c (declare_return_variable): Mark its use
23115         statement as addressable.
23116         * tree.h: Document new use of TREE_ADDRESSABLE.
23117         (expand_expr_stmt_value): Declare.
23119 2002-01-01  Tom Rix  <trix@redhat.com>
23121         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23122         rs6000_emit_allocate_stack.
23124 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
23126         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23127         ${srcdir}/ginclude/ to every entry in extra_headers.
23128         * configure: Regenerate.
23129         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23130         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23131         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23132         * ginclude/proto.h: Rename to config/convex/proto.h.
23134 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23136         * attribs.c (handle_vector_size_attribute): Use host_integerp
23137         and tree_int_cst; remove warnings.
23138         * caller-save.c (insert_restore): Add cast to get rid of warning.
23139         (insert_save): Likewise.
23140         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23141         * regmove.c (find_matches): Add temporary var to kill a warning.
23143 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
23145         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23146         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23147         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23148         (vms-dwarf2eh.o): Add Makefile rule.
23149         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23150         * config/alpha/vms-dwarf2eh.asm: New file.
23152         * gcc.c (delete_if_ordinary): Delete all versions.
23154 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
23156         * config/mmix/mmix.md: Update FIXME to not mention
23157         define_constants.
23158         (MMIX_rJ_REGNUM): New define_constants constant.
23159         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23160         "*movdicc_real"): Adjust contraints formatting.
23161         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23162         for branch prediction.
23163         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23164         output template.
23165         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23166         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23167         number.  Delete related FIXMEs.
23168         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23169         from number to MMIX_rJ_REGNUM.
23170         (TARGET_MASK_BRANCH_PREDICT): New.
23171         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23172         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
23173         value.  Add -mbranch-predict and -mno-branch-predict.
23174         (TARGET_VERSION): Drop date.
23175         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23176         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23177         for finding out global symbols.
23178         (mmix_asm_output_labelref): Revert condition for global symbol.
23179         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23180         (mmix_print_operand_punct_valid_p): A '+' is valid.
23182 See ChangeLog.6 for earlier changes.