* reload1.c (fixup_abnormal_edges): Remove unused variable.
[official-gcc.git] / gcc / ChangeLog
blob3d4ad2769b1efc43502b4dcd6a31f35c4a469b66
1 2002-07-21  Andreas Jaeger  <aj@suse.de>
3         * reload1.c (fixup_abnormal_edges): Remove unused variable.
5 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
7         Improvements for the ifcvt pass from Michael Meissner, with patches
8         by Richard Sandiford <rsandifo@redhat.com>
9         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
10         * ifcvt.c (cond_exec_changed_p): New static variable.
11         (last_active_insn): New function, renamed from last_active_insn_p
12         and changed to return the last active insn in a basic block. All
13         callers updated.
14         (block_fallthru): New function.
15         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
16         IFCVT_MODIFY_INSN.  All callers updated.
17         Return false if START or END are NULL.
18         Handle case where we're processing an insn that is already
19         conditional.
21         (noce_process_if_block): CE_INFO argument rather than
22         multiple args containing the involved basic blocks.  All callers
23         changed.
24         (process_if_block, merge_if_block, find_if_block,
25         cond_exec_process_if_block): Likewise.
27         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
28         changed.
29         Use new function last_active_insn to simplify some code.
30         New code to handle multiple tests.
31         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
32         cond_exec_changed_p to TRUE.
34         (process_if_block): New code to handle multiple tests.
35         (merge_if_block): Likewise.
36         (find_if_header): New arg PASS.  Changed to return the currently
37         processed basic block or NULL instead of true/false. All callers
38         changed.
39         Call IFCVT_INIT_EXTRA_FIELDS.
40         (block_jumps_and_fallthru_p): New function.
41         (find_if_block): Discover opportunities to convert multiple tests.
42         Add additional debugging output.
43         Update the ce_info structure before returning.
45         (if_convert): Run multiple passes of if-conversion.
46         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
47         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
48         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
49         these macros.
51 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
53         * gcse.c: Include cselib.h
54         (constptop_register): Break out from ...
55         (cprop_insn): ... here; kill basic_block argument.
56         (do_local_cprop, local_cprop_pass): New functions.
57         (one_cprop_pass): Call local_cprop_pass.
59 2002-07-20  Roger Sayle  <roger@eyesopen.com>
61         * simplify-rtx.c (simplify_relational_operation): Optimize
62         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
64 2002-07-20  Michae Matz  <matz@suse.de>
66         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
68 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
70         * cppexp.c (struct op): Add token pointer.
71         (check_promotion, CHECK_PROMOTION): New.
72         (optab): Update.
73         (_cpp_parse_expr): Update, use token pointer of struct op.
74         (reduce): Warn about change of sign owing to promotion.
75         * cppinit.c (cpp_handle_option): New warning if -Wall.
76         * cpplib.h (struct cpp_options): New member.
78 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
80         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
81         fpu list.  Separate Power4 compare and delayed_compare.  Correct
82         Power4 fpcompare.
83         (fix_truncdfsi2_internal): Restore FPR preference.
84         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
85         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
87 2002-07-19  Momchil Velikov <velco@fadata.bg>
89         * reload1.c (reload_as_needed): Duplicate oldpat.
91 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
93         PR optimization/7130
94         * loop.h (struct loop_info): Add "preconditioned".
95         * unroll.c (unroll_loop): Set it.
96         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
98 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
100         * rtl.def (CODE_LABEL): Remove slot 8.
101         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
102         (LABEL_ALTERNATE_NAME): Delete.
103         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
104         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
106         * final.c (output_alternate_entry_point): New.
107         (final_scan_insn): Use it instead of
108         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
109         of a case label being an alternate entry point.
111         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
112         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
113         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
114         (field deleted).
115         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
117         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
118         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
119         * doc/tm.texi: Delete documentation of
120         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
122 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
124         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
125         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
126         (LINK_SPEC): Define.
127         (STARTFILE_SPEC): Define.
128         (ENDFILE_SPEC): Define.
130         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
131         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
133         * config/mips/iris6-o32-gas.h: New file.
134         * config.gcc (mips-sgi-irix6*o32): Use it.
136         * config/mips/t-iris5-gas: New file.
137         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
139 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
141         * cppexp.c (ALWAYS_EVAL): Remove.
142         (optab, reduce): Always evaluate.
143         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
144         only if not skipping evaluation.
146 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
148         * config/avr/avr.c (debug_hard_reg_set): Remove.
150 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
152         * gcc.c (cpp_options): Include "%1" (cc1_spec).
154 2002-07-19  Richard Henderson  <rth@redhat.com>
156         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
158 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
160         * prefix.c (update_path): Don't zap single `.' path components
161         unless followed by another `.' and fix typo last patch.
163 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
165         * cppexp.c (cpp_num_mul): Remove unused parameter.
166         (UNARY, BINARY, OTHER, binary_handler): Remove.
167         (ALWAYS_EVAL): New.
168         (optab): Update.
169         (reduce): Refactor to a large switch, don't use a function
170         pointer.
172 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
174         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
176 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
178         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
179         (sh_expand_binop_v2sf): Likewise.
180         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
181         (int_gpr_dest, trunc_hi_operand): New functions.
182         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
183         trunc_hi_operand.
184         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
185         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
186         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
187         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
188         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
189         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
190         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
191         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
192         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
193         (movsf_ie+1): Likewise.
194         (loaddi_trunc): Use int_gpr_dest predicate.
195         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
196         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
197         (casesi_worker_0+[12], casesi_worker): Likewise.
198         (shcompact_preserve_incoming_args): Likewise.
199         (mov_nop): Use any_register_operand predicate.
200         (mperm_w0): Use trunc_hi_operand predicate.
202 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
204         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
205         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
206         numbering.
208 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
210         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
212 2002-07-18  Richard Henderson  <rth@redhat.com>
214         PR optimization/7147
215         * ifcvt.c (noce_get_condition): Make certain that the condition
216         is valid at JUMP.
218 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
220         * sh.c (barrier_align, push): Shut up compiler warnings.
221         (initial_elimination_offset,sh_media_init_builtins): Likewise.
222         (reg_no_subreg_operand): Delete.
224 2002-07-17  Bo Thorsen  <bo@suse.de>
226         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
227         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
228         (STARTFILE_SPEC): Remove hardcoded library paths.
229         (ENDFILE_SPEC): Likewise.
231 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
233         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
235         * gcse.c (try_replace_reg): Do not return false positives.
237 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
239         * prefix.c: (update_path): Strip ".." components when prior dir
240         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
242         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
243         (ASM_OUTPUT_REG_POP): Likewise.
245 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
247         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
248         adjustments to first_reg for profiling case.
249         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
250         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
251         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
252         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
253         (ASM_OUTPUT_REG_POP): Define.
254         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
255         (ASM_OUTPUT_REG_POP): Undef.
257 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
259         * cpplib.c (do_sccs): Handle #sccs on all systems.
260         * system.h (SCCS_DIRECTIVE): Poison.
261         * config/darwin.h, config/freebsd.h, config/netbsd.h,
262         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
263         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
264         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
265         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
266         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
267         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
268         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
269         Remove all references to SCCS_DIRECTIVE.
270         * doc/cpp.texi, doc/tm.texi: Update.
272 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
274         * regrename.c (maybe_mode_change): New function.
275         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
277 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
279         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
280         suppress addition when either ct or cf are zero.
282 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
283             Glen Nakamura <glen@imodulo.com>
285         PR optimization/6713
286         * loop.c (loop_givs_rescan): Explicitly delete the insn that
287         sets a non-replaceable giv after issuing the new one.
289 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
291         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
292         eval_token): Clarify and correct use of "bool" variables.
293         * cpplib.h (struct cpp_options): Similarly.
294         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
295         * cpptrad.c (recursive_macro): Similarly.
297 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
299         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
300         SHmedia code.
302         * sh.md (cmpgtudi_media): Remove spurious @.
304         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
305         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
307         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
308         * sh-protos.h (sh_initialize_trampoline): Declare.
309         * sh.c (sh_initialize_trampoline): New function.
310         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
311         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
312         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
313         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
314         * sh.md (initialize_trampoline, double_shori): New patterns.
315         (initialize_trampoline_compact): Likewise.
316         (shmedia32_initialize_trampoline_big): Remove.
317         (shmedia32_initialize_trampoline_little): Likewise.
319         * sh-protos.h (binary_float_operator): Remove declaration.
320         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
321         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
322         (unary_float_operator, sh_expand_unop_v2sf): New functions.
323         (sh_expand_binop_v2sf): Likewise.
324         (zero_vec_operand): Delete.
325         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
326         all non-shared ones.
327         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
328         Enable nsb and byterev.
329         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
330         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
331         in general regs.
332         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
333         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
334         immediate operands.
335         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
336         Add DF_HI_REGS.
337         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
338         lowpart fp regs - only for big endian for now.
339         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
340         when FPU is in use.
341         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
342         (LOAD_EXTEND_OP): NIL for SImode.
343         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
344         general and fp registers is 4.
345         PREDICATE_CODES: Amend binary_float_operator entry.
346         Remove zero_vec_operand.  Add unary_float_operator.
347         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
348         subreg SET_DEST.
349         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
350         (truncdiqi2): Do sign extension.
351         (movsi_media, movdi_media): Allow to use r63 to an fp register.
352         (movdf_media, movsf_media): Likewise.
353         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
354         Collapse to one define_insn_and_split.  Allow immediate sources.
355         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
356         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
357         (movv4sf): Allow immediate sources.
358         (movsf_media_nofpu+1): Don't split moves to FP registers.
359         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
360         (movv8qi_i+3): Check against CONST0_RTX.
361         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
362         for input and output operands.  Fix argument 3 to gen_mextr_rl.
363         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
364         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
365         (mshf0_w, fipr, ftrv): Likewise.
366         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
368 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
370         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
371         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
372         * arm.c: Similarly.
374 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
376         * config/mips/mips-protos.h (mips_sign_extend): Declare.
377         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
378         (TARGET_SWITCHES): Remove debugh.
379         (ISA_HAS_TRUNC_W): New macro.
380         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
381         (PREDICATE_CODES): Remove se_nonimmediate_operand.
382         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
383         any SImode move_operand.
384         (se_nonimmediate_operand): Remove.
385         (mips_sign_extend): New.
386         (mips_move_2words): Use it for sign-extended source operands.
387         (override_options): Allow integers to be put into single FPRs.
388         (mips_secondary_reload_class): Handle integers in float registers.
389         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
390         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
391         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
392         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
393         (fix_truncdfdi2): Provide only a single alternative, in which the
394         integer is in a float register.  Depend on TARGET_FLOAT64 rather
395         than TARGET_64BIT.
396         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
397         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
398         (movdi_internal2): Don't allow the source operand to be sign-extended.
399         Add alternatives for float registers.
400         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
401         allows sign-extension.
402         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
403         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
404         float registers.  Remove TARGET_DEBUG_H_MODE test.
405         (movhi_internal1): Rename to movhi_internal.  Don't check
406         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
407         (movqi_internal1): Rename to movqi_internal and remove
408         TARGET_DEBUG_H_MODE dependency.
409         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
411 2002-07-16  Jim Wilson  <wilson@redhat.com>
413         * toplev.c (lang_dependent_init): Create function context for
414         init_expr_once.
416 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
418         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
419         --gc-sections if -r.
420         * config/cris/cris.h: Ditto.
422 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
424         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
425         the comparison directly gives a mask suppress addition when cf is
426         zero by complementing the mask.
428 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
430         * Makefile.in: Delete references to enquire.
431         * enquire.c: Move to contrib.
433 2002-07-16  Stan Shebs  <shebs@apple.com>
435         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
436         config/rs6000/darwin.h.
437         (ASM_OUTPUT_SKIP): Ditto.
438         (TEXT_SECTION_ASM_OP): Ditto.
439         (DATA_SECTION_ASM_OP): Ditto.
440         (ASM_APP_ON): Define.
441         (ASM_APP_OFF): Define.
442         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
443         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
445         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
446         (machopic_function_base_name): Declare result to be const.
447         (machopic_non_lazy_ptr_name): Ditto.
448         (machopic_stub_name): Ditto.
449         * config/darwin-protos.h: Ditto for the prototypes.
451 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
453         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
455 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
457         * i386.md (prefetch): Fix for 64bit mode.
458         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
460 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
462         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
463         * i386.c (x86_machine_dependent_reorg): New function.
464         * i386-protos.h (x86_machine_dependent_reorg): Declare.
466 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
468         * builtins.c (std_expand_builtin_va_start): Remove unused
469         first argument.
470         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
471         std_expand_builtin_va_start with just two arguments.
472         * expr.h: Update prototypes.
474         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
475         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
476         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
477         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
478         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
479         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
480         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
481         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
482         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
483         argument from all implementations of EXPAND_BUILTIN_VA_START
484         and all uses of std_expand_builtin_va_start.
486 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
488         * regrename.c (copy_value): Don't record high part copies.
490 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
492         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
493         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
494         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
496 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
498         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
500         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
501         into addsi3 using register class "x" and "y".
503         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
504         "earlyclobber" constraint modifier for some alternative.
506         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
507         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
508         unordered.
509         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
511         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
512         (TARGET_SWITCHES): Add -mieee-compare option.
513         (OVERRIDE_OPTIONS): 32332 is a subset of
514         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
515         (TARGET_SWITCHES): Fix description of bitfield option.
516         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
517         -mieee-compare option. Remove 32332 flag.
519 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
521         * explow.c (convert_memory_address): Remove special handling
522         when POINTERS_EXTEND_UNSIGNED < 0.
523         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
524         (movedi_symbolic): Fix typo.
525         (load_fptr): Remove mode restriction so it works for SI and DI.
526         (load_fptr_internal1): Ditto.
527         (load_gprel): Ditto.
528         (load_symptr_internal1): Ditto.
529         (call_pic): Ditto.
530         * config/ia64.c (call_operand): Modify mode check.
531         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
532         (ia64_expand_move): Ditto.
533         (ia64_assemble_integer): Handle SImode function pointers.
534         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
535         (ia64_expand_op_and_fetch): Ditto.
536         (ia64_expand_compare_and_swap): Ditto.
537         (ia64_expand_lock_test_and_set): Ditto.
538         (ia64_expand_lock_release): Ditto.
540 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
542         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
544 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
545             Richard Earnshaw  <rearnsha@arm.com>
547         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
548         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
550 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
552         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
553         understands to be a memory clobber.
554         * arm.c (arm_expand_prologue): Use it.
556 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
558         * ra-rewrite.c: #include reload.h, insn-config.h
559         * ra-build.c: #include reload.h
560         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
561         depend on reload.h, insn-config.h.
563 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
565         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
566         the same size as a word.
568         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
569         BYTES_BIG_ENDIAN into account.
571 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
573         * i386.md (prefetch): Fix for 64bit mode.
574         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
576         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
578 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
580         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
582 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
584         * ginclude/varargs.h: Replace with stub which issues #error.
585         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
586         __builtin_va_start.
588         * builtins.def (BUILT_IN_VARARGS_START): Delete.
589         (BUILT_IN_VA_START): New.
590         * builtins.c (expand_builtin_va_start): Eliminate first
591         argument and code to implement pre-ISO varargs.
592         (std_expand_builtin_va_start): Ignore first argument; it is
593         always 1.
594         (expand_builtin): Handle BUILT_IN_VA_START and
595         BUILT_IN_STDARG_START identically.  Delete
596         BUILT_IN_VARARGS_START case.
598         * function.c (assign_parms): Delete hide_last_arg and all
599         its uses.
600         (mark_varargs): Delete function.
601         * function.h (struct function): Delete 'varargs' bit.
602         (current_function_varargs): Delete macro.
603         * tree.h: Don't declare mark_varargs.
605         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
606         (c_expand_body): Don't call mark_varargs.
607         * c-objc-common.c: Handle BUILT_IN_VA_START and
608         BUILT_IN_STDARG_START identically.  Delete
609         BUILT_IN_VARARGS_START case.
610         * c-tree.h: Don't declare c_mark_varargs.
611         * c-parse.in: Remove grammar rules for '&...' (which has been
612         commented out since before 2.7.2) and for '...' in K+R
613         argument declarations.
615         * builtins.c, function.c, integrate.c, sibcall.c,
616         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
617         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
618         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
619         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
620         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
621         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
622         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
623         config/stormy16/stormy16.c: Delete all references to
624         current_function_varargs, and code predicated on that flag.
626         * config/alpha/alpha.c (alpha_va_start),
627         config/arc/arc.c (arc_va_start),
628         config/i386/i386.c (ix86_va_start),
629         config/mips/mips.c (mips_va_start),
630         config/mn10300/mn10300.c (mn10300_va_start),
631         config/rs6000/rs6000.c (rs6000_va_start),
632         config/s390/s390.c (s390_va_start),
633         config/sh/sh.c (sh_va_start),
634         Ignore first argument; it is always 1.
636         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
637         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
638         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
639         Delete m68hc11_va_start.
640         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
641         No need to define EXPAND_BUILTIN_VA_START.
643         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
644         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
646 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
648         PR optimization/7153
649         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
650         dies in more than one insn.
652 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
654         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
656 2002-07-15  Michael Matz  <matz@suse.de>,
657             Daniel Berlin  <dberlin@dberlin.org>,
658             Denis Chertykov  <denisc@overta.ru>
660         Add a new register allocator.
662         * ra.c: New file.
663         * ra.h: New file.
664         * ra-build.c: New file.
665         * ra-colorize.c: New file.
666         * ra-debug.c: New file.
667         * ra-rewrite.c: New file.
669         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
670         (ra-rewrite.o): New .o files for libbackend.a.
671         (GTFILES): Add basic-block.h.
673         * toplev.c (flag_new_regalloc): New.
674         (f_options): New option "new-ra".
675         (rest_of_compilation): Call initialize_uninitialized_subregs()
676         only for the old allocator.  If flag_new_regalloc is set, call
677         new allocator, instead of local_alloc(), global_alloc() and
678         friends.
680         * doc/invoke.texi: Document -fnew-ra.
681         * basic-block.h (FOR_ALL_BB): New.
682         * config/rs6000/rs6000.c (print_operand): Write small constants
683         as @l+80.
685         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
686         (df_reg_table_realloc): Make size at least as large as max_reg_num().
687         (df_insn_table_realloc): Size argument now is absolute, not relative.
688         Changed all callers.
690         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
691         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
693         2002-06-20  Michael Matz  <matz@suse.de>
695         * df.h (struct ref.id): Make unsigned.
696         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
698         2002-06-13  Michael Matz  <matz@suse.de>
700         * df.h (DF_REF_MODE_CHANGE): New flag.
701         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
702         involving subregs with invalid mode changes, when
703         CLASS_CANNOT_CHANGE_MODE is defined.
705         2002-05-07  Michael Matz  <matz@suse.de>
707         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
709         2002-05-03  Michael Matz  <matz@suse.de>
711         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
713         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
715         * regclass.c (regclass): Work with all regs which have sets or
716         refs.
717         (reg_scan_mark_refs): Count regs inside (clobber ...).
719         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
721         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
722         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
723         add new refs.
724         (df_bb_refs_update): Don't clear insns_modified here, ...
725         (df_analyse): ... but here.
727         * sbitmap.c (dump_sbitmap_file): New.
728         (debug_sbitmap): Use it.
730         * sbitmap.h (dump_sbitmap_file): Add prototype.
732         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
734         * df.c (df_insn_modify): Grow the UID table if necessary, rather
735         than assume all emits go through df_insns_modify.
737         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
739         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
740         increase REG_N_REFS (like flow does), so that regclass doesn't
741         think a reg is useless, and thus, not calculate a class, when it
742         really should have.
744         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
746         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
747         dataflow analysis.
749 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
751         PR middle-end/7245
752         * config/i386/i386.c (const_int_1_31_operand): New.
753         * config/i386/i386.h (PREDICATE_CODES): Add it.
754         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
755         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
756         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
758 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
760         PR target/7282
761         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
762         (floatunssidf2): Likewise.
763         (floatsidf_ppc64): New insn_and_split.
764         (floatunssidf_ppc64): Likewise.
766 2002-07-14  Andreas Jaeger  <aj@suse.de>
768         * config.gcc (sh64): Remove unused
769         target_requires_64bit_host_wide_int.
771 2002-07-12  Roger Sayle  <roger@eyesopen.com>
773         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
774         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
775         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
776         whether clear_by_pieces should be used to clear storage.
777         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
779         * doc/tm.texi: Document these two new target macros.
781 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
783         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
784         the scratch register.
785         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
786         of it, forbid reload to use it.
788 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
790         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
791         usage on 64-bit hosts, return value was truncated to 32 bits.
793 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
795         * simplify-rtx.c (simplify_subreg): Handle floating point
796         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
797         the element mode is requested, compute a subreg with an
798         integer mode of the same size as the element mode first.
800 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
802         * combine.c (try_combine): When converting a paradoxical subreg
803         to an extension, take LOAD_EXTEND_OP into account.
805 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
807         * config.gcc (mips-sgi-irix6*o32): New configuration.
809         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
810         configurations.
811         * configure: Regenerate.
813         * config/mips/iris6-o32-as.h: New file.
814         * config/mips/iris6-o32.h: New file.
816         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
817         (NM_FLAGS): Define.
818         (HAVE_AS_SHF_MERGE): Undefine.
820         * config/mips/t-iris5-as: New file.
821         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
823         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
824         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
825         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
826         dp-bit.c, fp-bit.c): Move ...
827         * config/mips/t-iris5-6: ... here.
828         New file, shared by IRIX 5 and IRIX 6.
829         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
830         mips-sgi-irix5*): Use it.
832         * config/mips/iris6.h: Remove duplicate comment.
834         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
835         !TARGET_IRIX6]: Define.
836         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
838         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
840 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
842         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
843         and delete code to force constant to register.
844         * pa-protos.h (adddi3_operand): Add prototype.
845         * pa.c (adddi3_operand): New function.
847 2002-07-11  Roger Sayle  <roger@eyesopen.com>
849         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
850         non-ANSI builtin functions.
852 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
854         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
855         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
856         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
857         (gen_const_vector_0): Use it.
859 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
861         * pa.md (adddi3): For 32-bit targets, force constants to a register
862         if they don't fit in an 11-bit immediate.  Change insn predicate to
863         arith11_operand.  Remove comment.
864         * pa.c (cint_ok_for_move): Fix comment.
865         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
866         targets.
868 2002-07-11  Tim Josling  <tej@melbpc.org.au>
870         Remove front end hard coding from gengtype.c.
872         * Makefile.in
873         (STAGESTUFF): add gtyp-gen.h
874         (GTFILES): Remove front end specific files.
875         (GTFILES_FILES_LANGS): New, from configure..
876         (GTFILES_FILES_FILES): Likewise.
877         (GTFILES_LANG_DIR_NAMES): Likewise.
878         (GTFILES_SRCDIR): Likewise.
879         (gtyp-gen.h): Build from configure information.
880         (s-gtype): Remove command line parameters from gengtype.
881         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
882         (mostlyclean): Delete files generated by and for gengtype.
884         * c-config-lang.in: New file.
886         * configure.in (all_gtfiles_files_langs): New. Accumulate files
887         for each language.
888         (all_gtfiles_files_files): New. Accumulate language for each file
889         accumulated.
890         (gtfiles): Pick up value for C.
891         (srcdir): AC-SUBST this variable.
892         (all_gtfiles_files_langs): AC-SUBST this variable.
893         (all_gtfiles_files_files): AC-SUBST this variable.
895         * configure: Regenerate.
897         * gengtype-lex.l (parse_file): Make parameter const.
899         * gengtype.c (toplevel): include gtyp-gen.h.
900         (BASE_FILE_<language> unnamed enum): Delete.
901         (lang_names): Delete (replaced by gtyp-gen.h)
902         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
903         all references.
904         (NUM_GT_FILES): New.
905         (NUM_LANG_FILES): New.
906         (srcdir_len): New.
907         (NUM_BASE_FILES): Change calculation.
908         (open_base_files): Change prototype to avoid warning.
909         (startswith): Delete.
910         (get_file_basename): Iterate through generated language list not
911         hard coded list.
912         (get_base_file_bitmap): Use generated list of files and languages.
913         (close_output_files): Add prototype to rmove warning.
914         (main): Iterate through list of generated files from gtyp-gen.h
915         rather than command line paramaters.  Ignore duplicated file
916         names.
918         * gengtype.h (parse_file): Amend prototype for const parameter.
920         * doc/sourcebuild.texi: Document gtfiles variable.
922         * doc/gty.texi: Document changes to gtfiles variable for front
923         ends.
925         * objc/config-lang.in (gtfiles): Add files needed for objc front
926         end.
928 2002-07-10  Roger Sayle  <roger@eyesopen.com>
930         PR c/2454
931         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
932         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
934 2002-07-10  Roger Sayle  <roger@eyesopen.com>
935             Zack Weinberg <zack@codesourcery.com>
937         * builtins.def: Make the argument types of abort and exit
938         independent of the front-end.
940 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
942         * config/rs6000/linux64.h (ASM_SPEC): Define.
944 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
946         * config/rs6000/rs6000.c (emit_frame_save): New.
947         (rs6000_frame_related): Replace reg2 before reg.
948         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
949         and eh_return registers.
951 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
953         Revert all patches for optimization of Complex .op. Real.
954         * complex_part_zero_p: Remove
955         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
956         with x.
957         * expand_cmplxdiv_wide: Ditto.
958         * expand_binop: Ditto.
960 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
962         * config/avr/avr.md: Fix two 0x80000000 constants to make them
963         negative also on 64-bit hosts.
965         Default to -fno-reorder-blocks when optimizing for size.
966         * config/avr/avr-protos.h (avr_optimization_options): Declare.
967         * config/avr/avr.c (avr_optimization_options): New function.
968         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
970         Optimize returning from simple functions.
971         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
972         * config/avr/avr.c (avr_simple_epilogue): New function.
973         * config/avr/avr.md (return): New insn.
975 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
977         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
978         HAS_INIT_SECTION to protection.
980 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
982         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
983         deprecated.
985 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
987         * combine.c (gen_lowpart_for_combine): Handle vector modes.
988         Supply non-VOID mode to simplify_gen_subreg.
990 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
992         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
994 2002-07-10  Jeffrey A Law  <law@redhat.com>
996         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
997         as appropriate.
999         * mn10200.c (expand_epilogue): Fix test to determine which scratch
1000         register to use.
1002 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
1004         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1005         Get mode from dest.
1006         If simplify_gen_subreg fails, try next equivalent.
1008 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
1010         * diagnostic.h: #include location.h
1011         (location_t): Move definition to..
1012         * location.h: ... here.  New file.
1013         * tree.h: #include location.h
1014         (DECL_SOURCE_LOCATION): New macro.
1015         (DECL_SOURCE_FILE): Use.
1016         (DECL_SOURCE_LINE): Likewise.
1017         (struct tree_decl): REplace filename and linenum with locus.
1018         * Makefile.in (TREE_H): add location.h
1019         (diagnostic.o): Depends on gt-location.h
1020         (gt-location.h): Depends on s-gtype
1022 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
1024         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1025         TARGET_OS_CPP_BUILTINS.
1026         * config/rs6000/aix31.h: Likewise.
1027         * config/rs6000/aix41.h: Likewise.
1028         * config/rs6000/aix43.h: Likewise.
1029         * config/rs6000/aix51.h: Likewise.
1030         * config/rs6000/beos.h: Likewise.
1031         * config/rs6000/darwin.h: Likewise.
1032         * config/rs6000/eabi.h: Likewise.
1033         * config/rs6000/eabisim.h: Likewise.
1034         * config/rs6000/linux.h: Likewise.
1035         * config/rs6000/linux64.h: Likewise.
1036         * config/rs6000/lynx.h: Likewise.
1037         * config/rs6000/mach.h: Likewise.
1038         * config/rs6000/rtems.h: Likewise.
1039         * config/rs6000/sysv4.h: Likewise.
1040         * config/rs6000/vxppc.h: Likewise.
1042 2002-07-09 Devang Patel <dpatel@apple.com>
1043         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1044         Do not allow ObjC objects as a parameter type for Objective-C methods.
1045         My previous patch restricted  'struct' also.
1047 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
1049         * cpperror.c (cpp_error): Default to directive_line within
1050         directives here.
1051         * cppexp.c (cpp_interpret_integer): Only use traditional
1052         number semantics in directives.
1053         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1054         (do_include_common): Similarly.
1055         * cpptrad.c (scan_out_logical_line): Implement accurate
1056         quoting of <> in #include.
1057         * doc/cpp.texi: Update.
1059 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
1060                           J"orn Rennecke <joern.rennecke@superh.com>
1062         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1063         * sh.md (attribute issues): Replace with:
1064         (attribute pipe_model).  All users changed.
1065         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1066         All users changed.
1067         (function units sh5issue, sh5fds): New.
1068         (attribute is_mac_media): New.
1069         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1070         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1071         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1072         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1073         (call_media, call_value_media, sibcall_media): Likewise.
1074         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1075         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1076         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1077         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1078         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1079         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1080         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1081         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1082         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1083         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1084         (truncdfsf2_media): Likewise.
1085         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1086         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1088 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
1090         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1091         * sh.c (general_extend_operand, inqhi_operand): New functions.
1092         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1093         alternatives using 'N' modifier.  Add type.
1094         (adddi3z_media): Likewise.  Enable generator function generation.
1095         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1096         exact predicates / constraints.  Add type.
1097         (subsi3): Allow 0 for SHMEDIA.
1098         (udivsi3_i4_media): Use match_operand for input values
1099         rather than hard registers.
1100         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1101         unnecessarily through hard registers.  Keep copies of pseudo
1102         registers outside of the libcall sequence.
1103         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
1104         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1105         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1106         (extendhidi2, extendqidi2): Likewise.
1107         (andsi3_compact): Name.
1108         (andcdi3): Enable generator function generation.
1109         (zero_extendhisi2, zero_extendqisi2): Rename to
1110         (zero_extendhisi2_compact, zero_extendqisi2_compact).
1111         (extendhisi2, extendqisi2): Rename to
1112         (extendhisi2_compact, extendqisi2_compact).
1113         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1114         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1115         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1116         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1117         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1118         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1119         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1120         (shmedia32_initialize_trampoline_big): Likewise.
1121         (shmedia32_initialize_trampoline_little): Likewise.
1122         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1123         (negdi2): Remove spurious T clobber.
1124         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1125         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1126         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1127         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1128         (ic_invalidate_line_media): Write back data cache before invalidating
1129         instruction cache.  Add type.
1130         (movsf_media): Sign-extend when the destination is a general
1131         purpose register.  Add type.
1132         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1133         (casesi_worker_0+1): Only increment ref count for proper label.
1134         (casesi_worker_0+2): Likewise.
1136 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
1138         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
1140 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
1142         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
1143         from Pmode to ptr_mode.
1144         (get_exception_pointer): Ditto.
1145         (connect_post_landing_pads): Ditto.
1146         (dw2_build_landing_pads): Ditto.
1148 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
1149         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
1150         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
1151         (handle_pragma_redefine_extname): Change to use new function.
1153 2002-07-08  Roger Sayle  <roger@eyesopen.com>
1155         * combine.c (combine_simplify_rtx): Add an explicit cast
1156         to avoid signed/unsigned comparison warning.
1157         (simplify_if_then_else): Likewise.
1158         (extended_count): Likewise.
1159         (simplify_shift_const): Likewise.
1160         (simplify_comparison): Likewise.
1162 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
1164         * config/mips/mips.md: Add imadd type.  Update scheduler description
1165         to use imadd as well as imul.
1166         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
1167         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
1168         (*mul_sub_si): Likewise for first alternative.  Change second
1169         alternative from imul to multi.
1171 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
1173         * c-common.c (c_common_post_options): Update prototype;
1174         don't init backends if preprocessing only.
1175         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
1176         * langhooks.h (struct lang_hooks): Update post_options to
1177         return a boolean.
1178         * toplev.c (parse_options_and_default_flags, do_compile,
1179         lang_independent_init): Update prototypes.  Allow the
1180         front end to specify that there is no need to initialize
1181         the back end.
1182         (general_init): Move call to hex_init here...
1183         (toplev_main): ...from here.  Pass flag for back end init
1184         suppression.
1186 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1188         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
1189         (PREDICATE_CODES): Add entries for equality_comparison_operator,
1190         greater_comparison_operator and less_comparison_operator.
1191         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
1192         more operators.
1193         (equality_comparison_operator): New function.
1194         (greater_comparison_operator, less_comparison_operator): Likewise.
1195         * sh.md (beq_media_i): Disable generator function generation.
1196         Use match_operator to handle a whole class of comparisons.  Add
1197         modifier in output template to provide branch prediction.  Add type.
1198         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
1199         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
1200         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
1201         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
1203 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
1205         Emit MMIX function prologue and epilogue as rtl.
1206         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
1207         not unprototyped get_hard_reg_initial_val.
1208         ("call_value", "nonlocal_goto_receiver"): Ditto.
1209         ("return"): Make define_expand.  Move real insn to...
1210         ("*expanded_return"): New pattern.
1211         ("prologue", "epilogue"): New define_expands.
1212         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
1213         (struct machine_function): New member in_prologue.
1214         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
1215         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
1216         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
1217         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
1218         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
1219         (LOCAL_REGNO): Define.  Adjust comment.
1220         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
1221         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
1222         leaf_function_p.
1223         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
1224         the prologue.
1225         (mmix_target_asm_function_prologue): Make static.  Just mark that
1226         the prologue is being emitted.  Move guts to...
1227         (mmix_expand_prologue): New function.  Adjust for emitting
1228         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
1229         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
1230         \n.  Move guts to...
1231         (mmix_expand_epilogue): New function.  Adjust for emitting
1232         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
1233         (mmix_target_asm_function_end_prologue): Mark that the prologue
1234         has ended.
1235         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1236         (mmix_conditional_register_usage): Improve comments.
1237         (mmix_local_regno): New function.
1238         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
1239         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
1240         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
1241         (mmix_get_hard_reg_initial_val): Ditto.
1243 2002-07-06  Andreas Jaeger  <aj@suse.de>
1245         * toplev.c (set_fast_math_flags): Don't use ISO C style function
1246         definitions.
1247         * gengtype.c (open_base_files): Likewise.
1248         (close_output_files): Likewise.
1249         * tracer.c (find_best_predecessor): Likewise.
1250         (find_best_successor): Likewise.
1251         (ignore_bb_p): Likewise.
1253 2002-07-05  Roger Sayle  <roger@eyesopen.com>
1255         PR c++/7099
1256         * builtin-attrs.def: Define new attribute lists for use in
1257         builtins.def.
1258         * builtins.def [DEF_BUILTIN]: Modify to take an additional
1259         ATTRS argument, an enumerated value defined in builtin-attrs.def
1260         that represents the attribute list for the builtins.  Modify
1261         all builtin functions to pass an appropriate attribute list.
1262         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
1263         their required noreturn attributes.
1264         * tree.h (enum_builtin_function): Ignore the additional parameter
1265         to DEF_BUILTIN.
1266         * builtins.c (built_in_names): Likewise.
1267         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
1268         argument with a tree representing the functions attribute list.
1269         Pass this "attrs" argument to builtin_function.  No longer handle
1270         the noreturn_p processing manually.
1271         (built_in_attributes): Move the definitions from builtin-attrs.def
1272         before c_common_nodes_and_builtins.
1273         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
1274         DEF_BUILTIN, passing it to both builtin_function and the changed
1275         builtin_function_2.
1277         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
1278         __builtin__exit and __builtin__Exit.
1280 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1282         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1283         QI mode registers in soft registers.
1284         ("zero_extendqihi2"): Do not take into account soft registers
1285         for register allocation (use '*' constraint).
1287 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1289         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1290         it is dead.
1291         ("*ashrsi3"): Likewise.
1292         ("*lshrsi3"): Likewise.
1294 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
1296         * genautomata.c (output_max_insn_queue_index_def): Take latencies
1297         into account.
1299 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1301         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1302         address computation and memory moves.
1304 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
1306         PR c++/6706
1307         * dwarfout.c (output_reg_number): Fix warning message.
1308         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1309         before using it.
1311 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1313         * gcc/gcc.c (asm_debug): Move initialization ...
1314         (init_spec): ... here.
1316 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1318         * c-parse.in (extdef): Append ';'.
1319         (old_style_parm_decls): Append ';'.
1321 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
1323         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
1324         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
1325         to gcc_cv_as_gstabs_flag.
1326         * configure: Rebuilt.
1328 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
1330         * ggc.h (ggc_add_root): Document as obsolete.
1332 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
1334         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
1335         (mshflo_w): Likewise.
1337 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1339         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
1340         vector mode subregs of constants to finding integer mode
1341         subregs of constants.
1342         * cse.c (cse_insn): Use simplify_gen_subreg.
1343         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
1344         From a vector mode expression of different size than the
1345         target mode.
1347 2002-07-03  Eric Christopher  <echristo@redhat.com>
1349         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
1350         * config/mips/mips.h: Remove deprecated -m<processor> options
1351         and cc1_cpu_spec associated.
1352         (CONSTANT_ADDRESS_P): Fix last patch.
1353         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
1354         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
1355         sunge_sf): Remove.
1357 2002-07-03  Stan Shebs  <shebs@apple.com>
1359         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
1360         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
1361         (CPP_SPEC): Remove insertion of APPLE_CC definition.
1363 2002-07-03  Roger Sayle  <roger@eyesopen.com>
1365         * combine.c (struct_undo): Change types of recorded substitutions
1366         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1367         (do_SUBST_INT): Change types of the substitution from unsigned int
1368         to int, to avoid compilation warning from SUBST_INT's only caller.
1370         (make_extraction): Add cast to avoid compilation warning.
1371         (force_to_mode): Remove cast to avoid compilation warning.
1373 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
1374             Jeff Law  <law@redhat.com>
1376         * i386.md (length_immediate attribute): Fix typo.
1377         (length_address attribute): Likewise.
1378         (modrm attribute): Set it to 0 for immediate call instructions.
1379         (jcc_1 pattern): Set modrm attribute to 0.
1380         (jcc_2 pattern ): Likewise.
1381         (jump pattern): Likewise.
1382         (doloop_end_internal pattern): Explicitly set length.
1383         (leave pattern): Fix typo.
1384         (leave_rex64 pattern): Likewise.
1386 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
1388         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1389         in FPR as preference.
1390         (fctiwz): Same.
1391         (floatdidf2, fix_truncdfdi2): Same.
1392         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1393         (floatditf2): Same.
1394         (floatsitf2, fix_trunctfsi2): SImode in GPR.
1395         (ctrdi): Remove FPR alternative and splitter.
1397 2002-07-03  Will Cohen  <wcohen@redhat.com>
1399         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1401 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
1403         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1404         than UNITS_PER_WORD, unless this is little endian and the first unit
1405         in this word.  Let extract_bit_field decide how to load an element.
1406         Force arguments to matching mode.
1407         (expand_vector_unop): Likewise.
1409         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1410         consist of word_mode elements.
1411         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1412         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1413         (build_unary_op): Allow vector types for BIT_NOT_EPR.
1414         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1415         CONST_VECTOR.
1416         * optabs.c (expand_vector_binop): Try to perform operation in
1417         smaller vector modes with same inner size.  Add handling of AND, IOR
1418         and XOR.  Reject expansion to inner-mode sized scalars when using
1419         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
1420         (expand_vector_unop): Try to perform operation in smaller vector
1421         modes with same inner size.  Add handling of one's complement.
1422         When there is no vector negate operation, try a vector subtract
1423         operation.  Use simplify_gen_subreg on constants.
1424         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1425         constants into smaller vectors with same inner mode, and to
1426         integer CONST_DOUBLEs.
1428 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1430         * c-parse.in (parsing_iso_function_signature): New variable.
1431         (extdef_1): New, copied from...
1432         (extdef): ... here.  Reset parsing_iso_function_signature.
1433         (old_style_parm_decls):  Reset parsing_iso_function_signature.
1434         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1435         Warn about ISO C style function definitions.
1436         (nested_function, notype_nested_function): Reset
1437         parsing_iso_function_signature.
1438         (parmlist_2): Set parsing_iso_function_signature.
1440         * doc/invoke.texi (-Wtraditional): Document new behavior.
1442 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
1444         * config.gcc (mips*el-*-*): Use tm_defines to set
1445         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1446         * config/mips/little.h: Remove.
1448 2002-07-02 Devang Patel <dpatel@apple.com>
1450         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1451         object as parameter. Prevent something like 'NSObject' to be
1452         used as the type for a method argument.
1454 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
1456         * cpptrad.c: Update comment.
1458 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1460         * doc/cpp.texi: Update for traditional preprocessing changes.
1461         * goc/cppopts.texi: Similarly.
1463 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
1465         * c-parse.in (designator): Enable designated initializers if ObjC.
1466         (objcmessageexpr): Remove references to objc_receiver_context.
1467         * objc/objc-act.h (objc_receiver_context): Remove decl.
1468         * objc/objc-act.c (objc_receiver_context): Remove.
1469         (lookup_objc_ivar): Test objc_method_context instead of
1470         objc_receiver_context.
1472 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
1474         * sh.c (print_operand, case 'N'): Allow zero vector.
1475         (arith_reg_or_0_operand): Likewise.
1476         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1477         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
1478         IOR, XOR, PLUS and SET and take their respective constant
1479         ranges into account.
1480         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1481         * sh.md (subdi3, subdi3_media): Allow zero operand.
1482         (movv8qi_i+3): Only vector that is not split is the zero vector.
1483         Fix operand 3 to simplify_subreg.
1484         (movv2si_i): Split alternative 1.
1485         (mshfhi_l_di_rev+1): New splitter.
1487 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
1489         PR preprocessor/7029
1490         * cppinit.c (cpp_handle_option):  Suppress warnings with an
1491         implicit "-w" for "-M" and "-MM".
1492         * doc/cppopts.texi: Update.
1494 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1496         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1497         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
1498         builtin_function.
1500 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
1502         * README.Portability: Fix typos.
1504 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
1506         PR target/7177
1507         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1508         of indirections for register inside sign-extended mem part.
1510 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1512         * tree.h:  Modify builtin_function interface to take an extra
1513         argument ATTRS, which is a tree representing an attribute list.
1515         * c-decl.c (builtin_function): Accept additional parameter.
1516         * objc/objc-act.c (builtin_function): Likewise.
1517         * f/com.c (builtin_function): Likewise.
1518         * java/decl.c (builtin_function): Likewise.
1519         * ada/utils.c (builtin_function): Likewise.
1520         * cp/decl.c (builtin_function): Likewise.
1521         (builtin_function_1): Likewise.
1523         * c-common.c (c_common_nodes_and_builtins): Pass an additional
1524         NULL_TREE argument to builtin_function.  (builtin_function_2):
1525         Likewise.
1526         * cp/call.c (build_java_interface_fn_ref): Likewise.
1527         * objc/objc-act.c (synth_module_prologue): Likewise.
1528         * java/decl.c (java_init_decl_processing): Likewise.
1529         * f/com.c (ffe_com_init_0): Likewise.
1531         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1532         NULL_TREE argument to builtin_function.
1533         * config/arm/arm.c (def_builtin): Likewise.
1534         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1535         * config/i386/i386.c (def_builtin): Likewise.
1536         * config/ia64/ia64.c (def_builtin): Likewise.
1537         * config/rs6000/rs6000.c (def_builtin): Likewise.
1539 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
1541         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1542         * config/mips/t-isa3264: Likewise.
1543         * config/mmix/t-mmix: Likewise.
1545 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1547         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1549 2002-07-01  Roger Sayle  <roger@eyesopen.com>
1551         PR opt/4046
1552         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1553         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1554         B are truth values.
1556 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1558         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1560 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
1562         * README.Portability (Function prototypes): Give an example of
1563         declaring and defining a function with no arguments.
1565         * README.Portability (Function prototypes): Document new
1566         variable-argument function macros.
1568 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
1570         * sh.c (langhooks.h): Include.
1571         (sh_init_builtins, sh_media_init_builtins): New functions.
1572         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1573         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1574         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1575         (builtin_description): New struct tag.
1576         (signature_args, bdesc): New arrays.
1577         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1578         (print_operand): Add 'N' modifier.
1579         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1580         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1581         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1582         (CONST_COSTS): Add special case for SHmedia AND.
1583         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1584         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1585         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1586         target_operand can also be const or unspec.
1587         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1588         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1589         (attribute type): Add new types.
1590         (anddi3): Add splitter.
1591         (movdi_const_16bit+1): Add code to handle vector constants and
1592         bitmasks efficiently.
1593         (shori_media): Have generator function made.
1594         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1595         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1596         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1597         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1598         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1599         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1600         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1601         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1602         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1603         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1604         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1605         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1606         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1607         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1608         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1609         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1610         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1611         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1612         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1613         (ftrv): Likewise.
1615         (fpu_switch+1, fpu_switch+2): Remove constraint.
1617 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
1619         * tree.c (build_function_type_list): Update function comment.
1620         Rename first argument to return_type.
1622 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1624         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1625         tradcif.y and related files.
1627 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
1629         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1631 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1633         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1635 2002-06-30  Devang Patel  <dpatel@apple.com>
1637         * objc/objc-act.c (finish_file): Avoid finish_objc() if
1638         -fsyntax-only.
1640 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
1641                           Frank Ch. Eigler  <fche@redhat.com>
1642                           Matthew Green  <mrg@redhat.com>
1643                           Richard Henderson <rtl@redhat.com>
1644                           Dave Hudson  <dave.hudson@ubicom.com>
1645                           Jeff Johnston  <jjohnstn@redhat.com>
1646                           Alan Lehotsky <apl@alum.mit.edu>
1647                           Bernd Schmidt  <bernds@redhat.com>
1648                           Graham Stott  <grahams@redhat.com>
1650         * doc/extend.texi: Add ip2k port to description of attribute
1651         naked.
1652         * doc/install.texi (Specific): Add ip2k description.
1653         * doc/install-old.texi (Configurations): Add ip2k to possible
1654         cpu types.
1655         * doc/md.texi: Document ip2k constraints.
1656         * config/ip2k/crt0.S: New file.
1657         * config/ip2k/ip2k-protos.h: New file.
1658         * config/ip2k/ip2k.c: New file.
1659         * config/ip2k/ip2k.h: New file.
1660         * config/ip2k/ip2k.md: New file.
1661         * config/ip2k/libgcc.S: New file.
1662         * config/ip2k/t-ip2k: New file.
1664 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
1666         * config/mmix/mmix.md ("return"): New pattern.
1667         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1668         (TARGET_USE_RETURN_INSN): New macros.
1669         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1670         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1671         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1672         (MMIX_POP_ARGUMENT): New macro.
1673         (mmix_target_asm_function_prologue): When no epilogue is executed,
1674         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
1675         (mmix_print_operand) <case '.'>: New case.
1676         (mmix_print_operand_punct_valid_p): Match '.'.
1677         (mmix_use_simple_return): New function.
1678         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1679         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1680         -msingle-exit, -mno-single-exit.
1681         (MMIX Options): Ditto.
1683 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
1685         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1687 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1689         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1691 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
1693         * unroll.c (loop_iterations): Handle EQ loops.
1695 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
1697         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1698         constraint in define_expand, not splitter.
1699         Formatting.
1701 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
1703         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1704         build_function_type_list instead of build_function_type.
1706         * config/ia64/ia64.c (ia64_init_builtins): Same.
1708         * config/alpha/alpha.c (alpha_init_builtins): Same.
1710         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1712         * config/arm/arm.c (arm_init_builtins): Same.
1714         * tree.h: Add build_function_type_list prototype.
1716         * tree.c (build_function_type_list): New.
1718 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1720         * collect2.c (scan_prog_file): Fix typo in message.
1722 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
1724         * fold-cont.c: Remove unused CHARMASK.
1726 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
1728         PR preprocessor/7150
1729         * cppmain.c (scan_translation_unit_trad): Simplify.
1730         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1732 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1734         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1735         Don't use CPP_PREDEFINES.
1736         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1737         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1738         * config/i386/djgpp.h, config/i386/i386-coff.h,
1739         config/i386/i386-interix.h, config/i386/i386-interix3.h,
1740         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1741         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1742         config/i386/uwin.h: Similarly.
1744 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1746         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1747         flag_inline_trees to enable inlining.
1749 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
1751         * configure.in (gcc_gxx_include_dir):  Change to match versioned
1752         C++ headers if --enable-version-specific-runtime-libs is used.
1753         * configure:  Regenerate.
1755 2002-06-28  Jan Hubicka  <jh@suse.cz>
1757         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1759 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
1761         * combine.c (combine_simplify_rtx): Pass the mode of the
1762         shift count, not the shift operation when trying to simplify
1763         a shift on a SHIFT_COUNT_TRUNCATED target.
1765 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1767         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1768         avoid the auto increment addressing modes.
1769         ("*subsi3"): Likewise.
1770         (split for add/sub on address): For 68HC12 push the value on
1771         the stack and do the operation with a pop.
1773 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1775         * cpplib.c (_cpp_handle_directive): Move #define-specific
1776         code to the #define handler...
1777         (do_define): ...here.
1778         (lex_macro_node): No longer a need to check for comments here.
1780 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1782         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1783         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1784         Declare.
1785         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1786         do not reorder basic blocks at the end when optimizing for size.
1788 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1790         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1791         (m68hc11_make_autoinc_notes): New function.
1792         (m68hc11_split_move): Be very cautious when spliting a move with
1793         auto increment/decrement modes because this may result in incompatible
1794         directions; add REG_INC notes to the resulting insn for CSE reg.
1796 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
1798         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1799         can be a valid address.
1801 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
1803         * config/rs6000/rs6000.c: Remove unusued variables from last
1804         patch.
1806 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1808         Revert:
1809         * config/rs6000/rs6000.c (rs6000_override_options): Move
1810         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1812 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1814         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1815         lvx/stv/dst builtins...
1816         (altivec_expand_ld_builtin): ...to here.
1817         (altivec_expand_st_builtin): ...here.
1818         (altivec_expand_dst_builtin): ...and here (respectively).
1820 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
1822         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1824 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
1826         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1827         subregs.
1828         * recog.c (general_operand, register_operand): Disallow them.
1830 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
1832         PR preprocessor/7138
1833         * cpplib.c (_cpp_handle_directive): Do traditional
1834         preparation after setting state.angled_headers.
1835         * cpptrad.c (scan_out_logical_line): Fix potential
1836         quote bug.
1838 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
1840         * config/rs6000/rs6000.c (rs6000_override_options): Move
1841         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1843 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
1845         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1846         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1847         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1849 2002-06-27  Roger Sayle  <roger@eyesopen.com>
1851         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1852         * config/stormy16/stormy16.h: Likewise.
1854         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1855         with #define.
1857 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1859         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
1860         Hitachi entry.  Make punctuation more consistent.
1862 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
1864         * doc/install.texi: Change ` bit' to `-bit'.
1865         * doc/md.texi: Change `-bits' to `-bit'.
1866         * doc/tm.texi: Change `-bits' to ` bits'.
1868 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
1870         * gcse.c (hoist_code): Rewrite to only get list of dominated
1871         blocks once per BB. Also fix reversed test (by removing need for
1872         the test at all).
1874 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1876         * cpphash.h (_cpp_set_trad_context): Remove.
1877         * cpplib.c (prepare_directive_trad): Do nothing for #define.
1878         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1879         * cpptrad.c: Update comments.
1880         (_cpp_read_logical_line_trad): Let scan_logical_line handle
1881         updating the current context.
1882         (scan_logical_line): Update the current context.
1883         (_cpp_create_trad_definition): Similarly.
1884         (_cpp_set_trad_context): Remove.
1886 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1888         PR preprocessor/7070
1889         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1891 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
1893         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1894         config/xtensa/xtensa.c (xtensa_return_addr): New function.
1895         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1896         config/xtensa/xtensa.md (fix_return_addr): New pattern.
1898 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1900         * mips.c (coprocessor_operand, coprocessor2_operand,
1901         symbolic_operand): Move prototypes from here...
1902         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1903         symbolic_operand): ...to here.
1905 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1907         * config/sh/crt1.asm: remove _stack label definition
1908         and sentinel value.
1910 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1912         * varasm.c: Include real.h before output.h.
1914 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
1916         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1917         check for TARGET_ALTIVEC.
1919 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1921         * config.gcc (vax-*-vms*): Make obselete.
1923 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1925         * gcc.c (warn_std): Delete.
1927 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
1929         * doc/extend.texi: Fix formatting of last checkin.
1931 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1933         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1934         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1936 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
1938         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1939         discrepancies from motorola's documentation.
1941 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
1943         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1944         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
1946         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
1947         produce a 32 bit result before normalization, then normalize with a
1948         left shift.  Compute approximative error of 2nd reciprocal
1949         approximation in 2's complement.  Fix mask generation from upper
1950         longword of second divide stage result.
1951         For large divisor, fix shift count used to truncate first stage
1952         divide result; make decision if to adjust upwards based on comparison
1953         of higher parts of normalized values.
1954         (udivdi): Likewise.  Undo normalization of result for large divisor
1955         case.
1957 2002-06-25  David S. Miller  <davem@redhat.com>
1959         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1961 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
1963         * cpplib.c (do_include_common): Revert to correct line number
1964         if -traditional.
1965         * cpptrad.c (scan_out_logical_line): Treat null directive as
1966         white space.  Invlidate MI optimization for non-whitespace
1967         text outside a directive.
1969 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1971         * Makefile.in (SHELL): Set to @SHELL@.
1972         * fixinc/Makefile.in (SHELL): Likewise.
1974         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1975         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1976         initialization.
1978 2002-06-24  Jeff Law <law@redhat.com>
1980         * flow.c (propagate_one_insn): When removing an insn
1981         with a REG_LIBCALL note but not the entire libcall sequence,
1982         delete the associated REG_RETVAL note.
1984 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
1986         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1987         (udivsi3): Likewise.  Rewrite SH1 implementation.
1988         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1989         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1990         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1991         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1992         (_moddi3): Likewise.
1994         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
1996         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1997         arguments into account for stack_regs.
1999 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
2001         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2002         in examples.
2004 2002-06-24  Art Haas  <ahaas@neosoft.com>
2006         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2007         * doc/tm.texi (Frame Layout): Likewise.
2009 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
2011         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2012         Set float_format to i128.
2014 2002-06-24  David S. Miller  <davem@redhat.com>
2016         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2017         32-bit ABI libfuncs to NULL.
2019         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
2020         strings instead of quoted strings for code blocks.
2022         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2023         optabs if op1 is const0_rtx.
2025         * Makefile.in (GTFILES): Add basic-block.h
2026         * basic-block.h (label_value_list, tail_recursion_label_list):
2027         Mark with GTY.
2029 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
2031         * cpptrad.c (scan_out_logical_line): Check recursing only when
2032         we know we have a macro invocation in the function-like case.
2033         Only call _cpp_handle_directive if we know we have a good
2034         directive, or we want to reject a bad directive.
2036 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
2038         * doloop.c (doloop_valid_p): Correct comment.
2039         (doloop_modify_runtime <abs_inc != 1>): Simplify.
2040         (doloop_modify_runtime <do-while>): Don't emit code when NE.
2042 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
2044         * config.gcc: Add support for ip2k.
2046 2002-06-23  Jan Hubicka  <jh@suse.cz>
2047             Jeff Law <law@redhat.com>
2049         * function.h (struct emit_status): Clarify potential contents
2050         of regno_reg_rtx array.
2051         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
2052         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2054         * reg-stack.c (convert_regs_exit): Push the registers to stack in
2055         proper order.
2057 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2059         PR middle-end/6963
2060         * function.c (assign_stack_temp_for_type): Do not return
2061         the same MEM rtx for multiple uses of a stack slot.
2063 2002-06-22  David S. Miller  <davem@redhat.com>
2065         PR target/6841 target/6770 target/6719
2066         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2067         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2068         GENERAL_OR_EXTRA_FP_REGS.
2070 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
2072         * cpptrad.c (struct fun_macro): Add line number.
2073         (scan_out_logical_line): Set it, and use it to report unterminated
2074         macro invocations.
2076 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2078         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2079         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2080         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2081         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2082         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2083         REGEXP_ONEOF, check_name): Const-ify.
2085 2002-06-21  Matt Thomas  <matt@3am-software.com>
2087         * config/vax/vax.c (vax_output_function_prologue): Use
2088         REGISTER_PREFIX.  Fix some indentation.
2089         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2090         (VAX_ISTREAM_SYNC): Define.
2091         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
2092         i-stream sync to the end.
2093         (REGISTER_PREFIX): Define as "".
2094         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2096 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
2098         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2099         configurations.
2101 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2103         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2104         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2106 2002-06-21  Matt Thomas  <matt@3am-software.com>
2108         * config/vax/netbsd.h: Adjust a comment.
2109         (TARGET_DEFAULT): Redefine as 0.
2111 2002-06-21  Richard Henderson  <rth@redhat.com>
2113         * bb-reorder.c (make_reorder_chain_1): Search harder for the
2114         vax casesi fallthru edge.
2115         * cfglayout.c (cleanup_unconditional_jumps): Use
2116         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
2117         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2118         block after ADDR_VEC.
2120 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2122         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2124 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
2126         * cpperror.c (cpp_error): For traditional CPP, default to
2127         diagnostics on pfile->line.
2128         * cpplib.c (prepare_directive_trad): Set line number for
2129         diagnostics for #define too.
2130         * cpptrad.c (skip_whitespace): Skip comments properly.
2131         (_cpp_expansions_different_trad): Initialize quote2.
2133 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
2135         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2136         * config/mmix/mmix.h: Ditto.
2137         * config/mmix/mmix-protos.h: Ditto.
2138         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
2139         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
2140         comment.  Comment extra CC modes.
2142 2002-06-20 Jan Hubicka  <jh@suse.cz>
2144         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
2145         (scope_to_insns_finalize): Do not call set_block_levels; handle
2146         sequences.
2147         (choose_inner_scope): New.
2148         * rtl.h (choose_inner_scope): Declare.
2150 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2152         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
2153         HOST_WIDE_INT.
2154         * pa.c (pa_asm_output_mi_thunk): Likewise.
2155         (n_deferred_plabels): Change type to size_t.
2156         (output_deferred_plabels, output_call): Use size_t instead of int.
2158 2002-06-20  Richard Henderson  <rth@redhat.com>
2160         PR target/4041
2161         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
2162         pattern and adjust constraints for coldfire.
2164 2002-06-20  Richard Henderson  <rth@redhat.com>
2166         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
2168 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
2170         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
2172 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
2174         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
2176 2002-06-20  Stan Shebs  <shebs@apple.com>
2178         * dominance.c: Include errors.h instead of error.h.
2180 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
2182         * cppexp.c (cpp_interpret_integer): Don't force traditional
2183         numbers to be unsigned.
2184         * cpplib.c (prepare_directive_trad): Set line number for
2185         diagnostics.
2186         * cpptrad.c (scan_out_logical_line): Continue scanning out
2187         at start of buffer.
2188         * gcc.c (trad_capable_cpp): Use cc1 always.
2190 2002-06-20  Jeffrey Law  <law@redhat.com>
2192         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
2193         elimination in leaf functions by default yet.
2195 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
2197         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
2199 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2201         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
2202         multilibs.
2203         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2204         Fixes PR other/6836.
2206 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
2207                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
2209         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
2211         * basic-block.h: Do not include et-forest.h
2212         (dominance_info): Declare as struct dominance-info.
2213         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
2214         deleting block.
2215         * dominance.c (struct dominance_info): Define.
2216         (BB_NODE, SET_BB_NODE): New macros.
2217         (bb_hash_func, bb_eq_func): Kill.
2218         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
2219         nearest_common_dominator, dominated_by_p, recount_dominator,
2220         add_to_dominance_info, delete_from_dominance_info): update for new
2221         representation.
2222         (get_dominated_by, redirect_immediate_dominators): Rewrite using
2223         enumerate_sons.
2224         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
2225         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
2226         structure.
2228         * et-forest.h: Update copyright; revamp all function to operate on
2229         nodes
2230         (et_forest_value): Kill.
2231         (et_forest_enumerate_sons, et_forest_node_value): New.
2232         * et-forest.c: Update copyright.
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.
2238         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2240         * basic-block.h: Inlude et-forest.h
2241         (basic_block_def): Kill dominator.
2242         (dominance_info): New type.
2243         (loops): Use dominace_info.
2244         (dominace handling functions): Take dominace_info as argument
2245         instead of bitmaps.
2246         (create_preheader): Likewise.
2247         * cfg.c (entry_exit_blocks): Kill dominator.
2248         (dump_flow_info): Do not dump dominators.
2249         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
2250         dominators.
2251         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
2252         (flow_loops_pre_header_scan, make_forwarder_block,
2253         canonicale_loop_headers, flow_loops_find): Likewise.
2254         * dominance.c: Include error.h
2255         (idoms_to_doms): Kill.
2256         (bb_hash_func, bb_eq_func): New static functions.
2257         (debug_dominace_info): New global function.
2258         (calculate_dominance_info): Use new et forest structure.
2259         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
2260         get_dominated_by, redirect_immediate_dominators,
2261         nearest_common_dominator, dominated_by_p, verify_dominators,
2262         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
2263         delete_from_dominance_info): New global functions.
2264         * gcse.c (domnators): CHange to dominance_info.
2265         (alloc_hoist_mem): Do not alloc dominators
2266         (free_code_hoist_mem): Use free_dominance_info.
2267         (compute_code_hoist_data): Use dominance_info.
2268         (hoist_code): Likewise.
2269         * ifcvt.c (post_dominators): Likewise.
2270         (find_if_case_2, if_convert): Likewise.
2271         * predict.c (process_note_predictions, process_note_prediction,
2272         estimate-probability): Likewise.
2273         * sched-rgn.c (find_rgns, init_regions): Likewise.
2274         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
2275         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
2276         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
2277         find_evaluations, convert_to_ssa): Likewise.
2278         * ssa.h (compute_dominance_frontiers): Likewise.
2280         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
2282         * Makefile.in (et-forest.c): Add.
2283         * et-forest.c: New file.
2284         * at-forest.h: New file.
2286 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2288         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
2289         array size calculation.
2290         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
2291         Likewise.
2293         * diagnostic.c (diagnostic_kind_text): Const-ify.
2294         * gengtype.c (lang_names): Likewise.
2296 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
2298         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
2300 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2302         * config/sol2.h: New file.
2303         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
2304         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
2305         (sparc-*-chorusos*): Likewise.
2306         (sparc-*-elf*): Likewise.
2307         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
2308         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
2309         (sparc-hal-solaris2*): Likewise.
2310         (sparc-*-solaris2*): Likewise.
2311         (sparclite-*-elf*): Likewise.
2312         (sparc86x-*-elf*): Likewise.
2313         (sparc64-*-elf*): Likewise.
2315         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
2316         config/sol2.h.
2317         (ASM_SPEC): Override config/sol2.h version for now.
2318         Removed obsolete GAS_REJECTS_MINUS_S variant.
2319         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
2320         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2321         (TARGET_OS_CPP_BUILTINS): Likewise.
2322         Assert system=unix.
2323         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
2324         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
2325         config/sol2.h.
2326         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2327         (ASM_CPU_SPEC): Define.
2328         (SUBTARGET_EXTRA_SPECS): Define.
2330         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
2331         in config/sparc/sol2.h.
2332         (ASM_SPEC): Moved to config/sol2.h.
2333         (CPP_CPU_SPEC): Simplified.
2334         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
2335         consistency.
2336         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
2337         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
2338         STARTFILE_ARCH64_SPEC.
2339         (STARTFILE_SPEC): Moved to config/sol2.h
2340         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
2341         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
2342         (LINK_ARCH64_SPEC): Simplified.
2343         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
2344         (LINK_SPEC): Moved to config/sol2.h
2346         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
2347         config/sol2.h.
2348         Use BITS_PER_WORD for size.
2349         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
2350         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
2351         (CPP_PREDEFINES): Removed OS-specific part handled by
2352         TARGET_OS_CPP_BUILTINS.
2353         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
2354         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
2355         (ASM_SPEC): Moved to config/sol2.h.
2356         (PREFERRED_DEBUGGING_TYPE): Likewise.
2357         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
2358         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
2359         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
2360         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
2362         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
2363         * config/i386/sol2gas.h: Removed.
2365 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2367         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2369 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
2371         * gcc.c-torture/execute/simd-1.c: New.
2373         * gcc.dg/simd-1.c: New.
2375         * doc/extend.texi (Vector Extensions): Document that we can
2376         specify simd types not specifically supported by the hardware.
2377         Document that simd types can be used as function arguments.
2378         Document that signness does make a difference in SIMD types.
2379         Misc cleanups and revisions to the vector extensions section.
2381         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2382         constants.
2384         * expr.c (vector_mode_valid_p): New.
2386         * expr.h: Add vector_mode_valid_p.
2388         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2390         * c-common.c (type_for_mode): Always build vector nodes regardless
2391         of VECTOR_MODE_SUPPORTED_P.
2392         (handle_mode_attribute): Error if we can't emulate a nonexisting
2393         vector mode.
2394         (handle_vector_size_attribute): Same.
2396         * optabs.c (expand_binop): Open-code vector operations.
2397         (expand_unop): Open-code vector unops.
2398         (expand_vector_binop): New.
2399         (expand_vector_unop): New.
2401         * c-typeck.c (build_binary_op): Allow vectors in binops.
2402         Allow vectors in conditional operatiors.
2403         (build_unary_op): Allow vectors in unary minus.
2405         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2406         TARGET_ALTIVEC.
2408 2002-05-20  Richard Henderson  <rth@redhat.com>
2410         * c-common.c (c_common_get_alias_set): Correctly handle characters.
2411         Rearrange order of expressions; don't handle vectors here.
2412         * alias.c (get_alias_set): Let vectors match their components.
2414 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
2416         * config/mips/mips.c (mips_emit_prefetch): Use hints which
2417         match desired locality.
2419 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
2421         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2422         (h8300_insert_attributes): New.
2424 2002-06-19  Akim Demaille  <akim@epita.fr>
2426         * c-parse.in (initelt: identifier ':' initval): Add an empty
2427         action to fix a type clash.
2428         (aliasdecl, classdef): Add the missing closing `;'.
2429         Whitespace changes.
2430         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2431         $$ = $1 type clashes.
2433 2002-06-19  Eric Christopher  <echristo@redhat.com>
2435         * config/mips/mips.c (symbol_operand): New function.
2436         (mips_emit_prefetch): Ditto.
2437         * config/mips/mips-protos.h: Define.
2438         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2439         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2440         (LEGITIMIZE_ADDRESS): Ditto.
2441         * config/mips/mips.md (prefetch, prefetch_si_address,
2442         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2444 2002-06-19  Eric Christopher  <echristo@redhat.com>
2446         * config/fp-bit.h: Add unordered defines for gofast.
2448 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
2450         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2451         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2452         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2453         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2454         checking and without it.
2455         (decl_name, decl_mode_check_failed, regexp_name,
2456         regexp_mode_check_failed): New functions.
2457         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2458         gen_presence_set, gen_absence_set, gen_automaton,
2459         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2460         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2461         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2462         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
2463         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2464         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
2465         (decl_hash, decl_eq_p): Use the macros.
2466         (find_decl): Ditto.  Set up mode of work_decl.
2467         (process_excls, process_presence_absence, process_decls,
2468         check_automaton_usage, process_regexp, process_regexp_decls,
2469         check_usage, loop_in_regexp, check_loops_in_regexps,
2470         process_regexp_cycles, add_advance_cycle_insn_decl,
2471         initiate_states, initiate_excl_sets,
2472         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2473         transform_2): Use the macros.
2474         (transform_3): Ditto.  Check mode before making transformations of
2475         ALLOF.
2476         (regexp_transform_func, transform_insn_regexps,
2477         process_unit_to_form_the_same_automaton_unit_lists,
2478         form_the_same_automaton_unit_lists_from_regexp,
2479         form_the_same_automaton_unit_lists,
2480         process_seq_for_forming_states, process_alts_for_forming_states,
2481         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2482         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2483         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2484         units_to_automata_heuristic_distr, create_ainsns,
2485         units_to_automata_distr, create_automata): Use the macros.
2486         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
2487         (longest_path_length, min_issue_delay_pass_states,
2488         output_dead_lock_vect, output_tables, output_insn_code_cases,
2489         output_internal_insn_latency_func, output_print_reservation_func,
2490         output_description, output_automaton_units, generate): Use the
2491         macros.
2492         (make_insn_alts_attr): Ditto.  Check case when there are not
2493         alternatives in the reservation.
2494         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2495         make_bypass_attr, form_important_insn_automata_lists,
2496         expand_automata): Use the macros.
2498 2002-06-20  Tim Josling  <tej@melbpc.org.au>
2500         * Makefile.in: Clean up code to check for misspecified languages
2501         in enable-languages.
2503 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
2505         * cpptrad.c (_cpp_replacement_text_len): initialize len.
2507 2002-06-19  Jason Merrill  <jason@redhat.com>
2509         * Makefile.in (unstrap, restrap): New targets.
2510         (bootstrap): Mention restrap.
2512 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
2514         * except.c (ehl_free): Remove.
2516         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2517         builtin_define and builtin_define_std.
2519 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2521         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2522         (sCOND): Restrict operand class so that gcc knows how to reload them.
2523         (bitfield_set): Merge two unnamed insn's using alternatives.
2524         (call_value): Remove constraint on unused uperand.
2525         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2526         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2528         * longlong.h (count_trailing_zeros): Escape newline and beautify.
2530 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
2532         * Makefile.in (QMTEST_DIR): Simplify definition.
2534 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
2536         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2537         #define.
2539 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
2541         * cpphash.h (struct cpp_reader): Make date and time strings.
2542         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2543         _cpp_replacement_text_len): New.
2544         * cppinit.c (cpp_create_reader): Update.
2545         (init_builtins): Register appropriate builtins for -traditional-cpp.
2546         * cppmacro.c (new_number_token): Remove.
2547         (_cpp_builtin_macro_text): New.
2548         (builtin_macro): Use it.
2549         (cpp_macro_definition): Update to handle traditional macros.
2550         * cppmain.c (cb_line_change): Don't do column positioning for
2551         traditional output.
2552         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
2553         state ls_fun_close.
2554         (skip_whitespace): Fix.
2555         (maybe_start_funlike): Don't set state.parsing_args.
2556         (scan_out_logical_line): Remove duplicate error.  Use lex_state
2557         rather than state.parsing_args.
2558         (push_replacement_text): Handle builtins.
2559         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2561 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2562             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2564         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2565         attribute __always_inline__.
2567 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
2569         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2570         when generating the call to _mcount.
2571         (NO_PROFILE_COUNTERS): Define.
2573 2002-06-18  Richard Henderson  <rth@redhat.com>
2575         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2576         2002-06-02 change.
2578 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
2580         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2581         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2582         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2583         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2585         * sh-protos.h (sh_pr_interrupt): Declare.
2586         * sh.c (sh_pr_interrupt): New function.
2587         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2588         (sh_hard_regno_rename_ok): Likewise.
2589         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2591 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
2593         * rtl.def (DEFINE_AUTOMATON): Add description of new options
2594         `time' and `v'.  Fix incorrect description of option `w'.
2596         * doc/md.texi: Ditto.
2598         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2599         (gen_automata_option): Process the new options.
2600         (transform_2, transform_3): Initialize some variables.
2601         (initiate_automaton_gen): Use the new macros.
2603 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
2605         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2606         (mips_set_return_address, mips_restore_gp): Declare.
2607         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2608         (current_frame_info): Remove.
2609         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2610         * config/mips/mips.c: Remove uses of current_frame_info.
2611         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
2612         (struct machine_function): Add 'frame' and 'insns_len'.
2613         (current_frame_info, zero_frame_info): Remove.
2614         (mips_restore_gp, mips_set_return_address): New.
2615         (mips_initial_elimination_offset): New.
2616         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2617         (eh_return define_split): Use mips_set_return_address.
2619 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2621         * cpplib.c (dtable): Update.
2622         (end_directive): Decrement expansion prevention count.
2623         Clear state.in_expression.
2624         (prepare_directive_trad): Set state.in_expression.
2625         Increment expansion prevention count.
2626         * cpptrad.c (enum ls): New.
2627         (_cpp_overlay_buffer): Set overlaid_buffer.
2628         (_cpp_remove_overlay): Use overlaid_buffer.
2629         (_cpp_read_logcial_line_trad): Update buffer when it might
2630         have changed.
2631         (scan_out_logical_line): Handle state transitions for assertions
2632         and defined() in #if, and for funlike invocations including the
2633         directive case.  Handle '<' and '>' as a quote mechanism in
2634         #include.  Warn about unterminated macro invocations.
2635         * cpphash.h (struct lexer_state): New member in_expression.
2636         (struct cpp_reader): New member overlaid buffer.
2638 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
2640         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2641         __always_inline__.
2643 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
2645         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2647         * doloop.c (doloop_optimize): Extract pattern from insn.
2649 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
2651         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2653 2002-06-17  Jeff Law <law@redhat.com>
2655         * libgcc2.c: Do not include symcat.h or machmode.h.
2657 2002-06-17  Richard Henderson  <rth@redhat.com>
2659         PR target/6922
2660         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2662 2002-06-17  Tom Tromey  <tromey@redhat.com>
2664         * dwarfout.c: Include function.h.
2666 2002-06-17  Andreas Schwab  <schwab@suse.de>
2668         * print-rtl.c (print_rtx): Print space before vector, not after.
2669         (debug_rtx): Clear sawclose before printing.
2670         (debug_rtx_list): Print newline after each list element.
2671         (debug_rtx_range): Likewise.
2673 2002-06-17  Richard Henderson  <rth@redhat.com>
2675         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2676         (current_function_funcdef_no): Similarly.
2677         * function.c (funcdef_no): Similarly.
2678         (prepare_function_start): Set current_function_funcdef_no.
2679         (expand_function_start): Don't set current_function_profile_label_no.
2680         * dwarf2out.h (current_funcdef_number): Remove.
2681         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
2682         current_function_funcdef_no throughout.
2683         * dwarfout.c, vmsdbgout.c: Similarly.
2684         * except.c (sjlj_funcdef_number): Remove.
2685         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2686         (output_function_exception_table): Likewise.
2687         * final.c (profile_function): Use current_function_funcdef_no
2688         instead of current_function_profile_label_no.
2690 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
2692         * sched-ebb.c (init_ready_list): Check INSN_P first.
2694 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
2696         * sh.md (divsi3): Update way how to find insns in a sequence.
2698         * reload1.c (merge_assigned_reloads): Don't change reloads
2699         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2700         to RELOAD_OTHER when there are conflicting input reloads.
2702 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
2704         * function.c (epilogue_done): Correctly build a sequence of insns for
2705         a sibcall epilogue.
2707 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
2709         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2710         #define.
2712         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2714 2002-06-16  Richard Henderson  <rth@redhat.com>
2716         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2717         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2719 2002-06-16  Richard Henderson  <rth@redhat.com>
2721         PR opt/6722
2722         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2724 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2726         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2727         * config/i386/i386-aout.h, config/i386/i386elf.h,
2728         config/i386/sysv4.h: Remove CPP_PREDEFINES.
2729         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2730         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2731         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2732         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2733         CPP_PREDEFINES and part of CPP_SPEC.
2734         * config/i386/sysv4-cpp.h: New.
2736 2002-06-16  Richard Henderson  <rth@redhat.com>
2738         PR c/7030
2739         * dwarf2out.c (modified_type_die): Don't assign the qualified die
2740         to the unqualified type.
2742 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
2744         * i386-protos.h (x86_field_alignment): Declare.
2745         * i386.c (x86_field_alignment): Define.
2746         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2747         (BIGGEST_FIELD_ALIGNMENT): Kill.
2749 2002-06-16  Richard Henderson  <rth@redhat.com>
2751         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
2753 2002-06-16  Richard Henderson  <rth@redhat.com>
2755         * c-common.c (flag_ms_extensions): Move from c++ front end.
2756         * c-common.h (flag_ms_extensions): Declare.
2757         * c-decl.c (c_decode_option): Add -fms-extensions.
2758         (grokfield): Don't accept anonymous structures in ISO C mode;
2759         accept only unnamed anonymous structures in GNU C mode; accept
2760         Plan 9 extensions in MS mode.
2761         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2762         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2763         (extension): Clear flag_iso.
2764         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2766 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
2768         PR target/7042
2769         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2770         early if current_function_epilogue_delay_list is non-empty.
2771         * config/cris/cris.md ("return"): Add sanity check asserting that
2772         current_function_epilogue_delay_list is empty.
2774 2002-06-16  Jeff Law <law@redhat.com>
2776         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2777         sharing of hard registers.
2779         * toplev.c (rest_of_compilation): Remove redundant conditional.
2781         * toplev.c (rest_of_compilation): Perform a simpler, less costly
2782         cleanup of the CFG when not optimizing.
2784 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
2786         * gcc.c (main): Correct startfile_prefix_spec check.
2788 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
2790         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
2791         include both darwin.o and rs6000-c.o.
2793 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2795         * expr.c (compare_from_rtx): Call simplify_relational_operation
2796         on all comparisons, not just those between integer constants,
2797         with the correct (possibly unsigned) comparison code.
2798         (do_compare_rtx_and_jump): Likewise.
2800 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2802         * Makefile.in (tm_defines): New configuration variable.
2803         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2804         Pass tm_defines in TM_DEFINES.
2805         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
2806         * config.gcc (tm_defines): New configuration variable.
2807         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2808         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
2809         * configure.in: Substitute tm_defines.
2810         * configure: Rebuilt.
2811         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
2812         * doc/install.texi: Update.
2813         * pa/pa-700.h: Delete file.
2814         * pa/pa-7100.h: Delete file.
2816 2002-06-15  Roger Sayle  <roger@eyesopen.com>
2818         * fold-const.c (comparison_to_compcode): New function to convert
2819         an comparison TREE CODE into a bit-based representation.
2820         (compcode_to_comparison): New function to convert from this bit
2821         based representation back to a comparison TREE CODE.
2822         (fold_truthop): Simplify (x<y) && (x==y) and related composite
2823         comparisons.
2825 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
2827         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2829         * stor-layout.c (compute_record_mode): Remove check for
2830         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2831         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
2832         MEMBER_TYPE_FORCES_BLK.
2834         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2836         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2838 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
2840         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2842 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
2844         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2845         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2846         * configure, config.in: Regenerate.
2848 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2850         * loop.c (check_final_value): Use v->always_executed
2851         instead of v->always_computable.
2852         * unroll.c (final_giv_value): Don't calculate the final
2853         value as a function of the biv if the giv is not computed
2854         for every loop iteration.
2856 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2858         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2860 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
2862         PR c/6677
2863         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2864         the truncation down when the target type is signed.
2865         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2866         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2867         the conversion if the target type is a smaller type.
2869 2002-06-14  Richard Henderson  <rth@redhat.com>
2871         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2872         earlier.  Re-factor comparisons vs extrema.
2874 2002-06-14  Richard Henderson  <rth@redhat.com>
2876         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2878 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2880         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2881         * sched-deps.c (add_dependence): Likewise.
2882         (group_leader): Likewise.
2883         * sched-rgn.c (init_ready_list): Likewise.
2884         * doc/rtl.texi: Adjust accordingly.
2886 2002-06-13  Jeffrey Law  <law@redhat.com>
2888         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2889         null pointer checks were eliminated.  Update prototype.
2890         (delete_null_pointer_checks): Similarly.
2891         * rtl.h (delete_null_pointer_checks): Update prototype.
2892         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2893         delete_null_pointer_checks deletes one or more null
2894         pointer checks.  Do not run cleanup_cfg before gcse, the
2895         CFG is accurate and optimized at that point..
2897         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2898         of hard registers.
2900 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
2902         * Makefile.in (libgcc.mk): Depend on specs.
2904 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
2906         * sh.md (mulsi3): Update way how to find insns in a sequence.
2908 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
2910         * sh.h: Define HARD_REGNO_RENAME_OK
2911         * sh.c: sh_hard_regno_rename_ok: New. If current function has
2912         interrupt_handler attribute, only registers saved on stack are OK.
2913         * sh-protos.h: Declare sh_hard_regno_rename_ok.
2915 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2917         * config/sh/sh.md (jump): Emit jump insn.
2918         (call_pcrel): Get pattern of the result of gen_call_site.
2919         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2921 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2923         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2924         * cpptrad.c: Update comments.
2925         (skip_whitespace, copy_comment): Take a new parameter.
2926         (skip_escaped_newlines): Don't duplicate escaped newline test.
2927         (copy_comment): Different location for CUR, decide here how
2928         to copy / replace the comment.
2929         (skip_whitespace): Copy whitespace.
2930         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2931         (scan_out_logical_line): Let copy comment handle keeping or
2932         replacing comments.
2933         (scan_parameters, _cpp_create_trad_definition): Update.
2935 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
2937         * reload.c (get_secondary_mem,find_reloads_address,
2938         find_reloads_address_1): Pass reference to MEM to find_reloads_address
2939         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
2941 2002-06-13  Jessica Han  <jessica@cup.hp.com>
2943         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2944         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2945         * doc/tm.texi: Document them.
2946         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2947         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2948         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2949         (ASM_OUTPUT_FDESC): Likewise.
2951 2002-06-13  Eric Christopher  <echristo@redhat.com>
2953         * diagnostic.c (output_format): Fix thinko.
2955 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2957         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2958         (DWARF2_UNWIND_INFO): Define to 0.
2960         * config/sh/sh.c (calc_live_regs): Don't use initial_value
2961         optimization for PR_MEDIA_REG.
2963 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2965         * cpphash.h (_cpp_lex_identifier_trad): Remove.
2966         * cpplib.c (end_directive): Don't skip, always remove overlay
2967         apart from #define.
2968         (prepare_directive_trad): Handle NULL pfile->directive.
2969         (_cpp_handle_directive): Always call prepare_directive_trad
2970         if traditional.
2971         * cppmain.c (check_multiline_token): Rename account_for_newlines,
2972         generalize inputs.
2973         (scan_translation_unit_trad): Use it.
2974         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2975         output, get escaped newline in comment close correct.
2976         (check_output_buffer, skip_whitespace): Update.
2977         (_cpp_lex_identifier_trad): Remove.
2978         (scan_out_logical_line): Handle -C and comments in directives
2979         properly.
2981 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2983         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2984         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2985         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2986         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2987         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2988         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2989         (SELECT_SH5_COMPACT_NOFPU): Likewise.
2990         (TARGET_SWITCHES): Use them.
2991         (TARGET_CPU_DEFAULT): Define if not already defined.
2992         (TARGET_DEFAULT): Use it.
2993         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2994         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2995         * config/sh/t-monolib: New file.
2997 2002-06-13  Roger Sayle  <roger@eyesopen.com>
2999         * toplev.c (rest_of_compilation): Simplify (and correct) the
3000         logic of the first delete-null-pointer-checks pass.
3002 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3004         * i386.c (ix86_expand_movstr):  Fix pasto.
3006 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
3008         * reload.c (find_valid_class):  Fix thinko in my previous patch.
3010 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3012         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3013         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3014         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3015         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3017 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
3019         * tree-inline.c (expand_call_inline): Don' mess with _DECL
3020         fields.
3022 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
3024         * diagnostic.c (output_format): Recognize "%H" as a format
3025         specifier for a location_t.
3026         (text_specifies_location): New function.
3027         (diagnostic_set_info): Use it.
3029 2002-06-13  Jeffrey Law  <law@redhat.com>
3031         * emit-rtl.c (static_regno_reg_rtx): Define.
3032         (init_emit_once): Initialize static_regno_reg_rtx.
3033         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3034         of building new hard reg objects once per function.
3035         (gen_rtx_REG): Try to share hard regs.
3036         * regclass.c (init_fake_stack_mems): New function broken out from
3037         init_regs.
3038         * rtl.h (init_fake_stack_mems): Declare.
3039         * toplev.c (lang_independent_init): Call init_regs before
3040         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
3042         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3044         * alias.c (argument_registers): Remove.
3045         (init_alias_once): Initialize static_reg_base_value here.  Remove
3046         initialization of argument_registers.
3047         (init_alias_once_per_function): Remove.
3048         (init_alias_analysis): Copy all the entries from static_reg_base_value
3049         into new_reg_base_value all at once.
3050         * rtl.h (init_alias_once_per_function): Remove declaration.
3051         * function.c (prepare_function_start): Do not call
3052         init_alias_once_per_function.
3054         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3055         starting a sequence and emitting an INSN.
3057 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
3059         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3061 2002-06-13  David S. Miller  <davem@redhat.com>
3063         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3065 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3067         * cpplib.c (end_directive): Handle line skipping.  Only remove
3068         the rest of the line if the directive was valid.
3069         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3070         expanding a traditional macro.
3071         * cpptrad.c (recursive_macro): New.
3072         (read_logical_line_trad): Handle skipping.
3073         (scan_out_logical_line): Continue after a successful directive.
3074         Don't expand macros whilst skipping, or if recursing.
3075         (_cpp_create_trad_definition): scan_out_logical_line now sets
3076         the output current position.
3078 2002-06-12  Eric Christopher  <echristo@redhat.com>
3080         From Chris Demetriou  <cgd@broadcom.com>
3081         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3082         comment.
3083         (ISA_HAS_MADD_MSUB): Ditto.
3084         (ISA_HAS_NMADD_NMSUB): Ditto.
3086 2002-06-12  Eric Christopher  <echristo@redhat.com>
3088         * config.gcc: Consolidate little endian handling and
3089         little/big endian targets.
3090         * config/mips/elfl.h: Remove file.
3091         * config/mips/elfl64.h: Ditto.
3092         * config/mips/ecoffl.h: Ditto.
3093         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3095 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
3097         * gengtype.h (xvasprintf): New prototype.
3098         (xasprintf): New prototype.
3099         (struct outf): New.
3100         (get_output_file): Return an outf_p.
3101         (header_file): Is now an outf_p.
3102         (base_files): Now are outf_p.
3103         (oprintf): New.
3104         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3105         rather than stdio operations.  Use xasprintf in a few places,
3106         when appropriate.
3107         (xvasprintf): New.
3108         (xasprintf): New.
3109         (struct filemap): Delete.
3110         (files): Delete.
3111         (output_files): New.
3112         (oprintf): New.
3113         (create_file): Create an outf_p.  Add parameter to indicate output
3114         file name, change all callers.
3115         (open_base_files): Create gtype-desc.c here.
3116         (get_output_file_with_visibility): Rewrite.
3117         (get_output_file_name): Just look at 'name' field in struct outf.
3118         (close_output_files): Rewrite.
3120 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
3122         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3123         (MASK_G_FLOAT): Define.
3124         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3125         (TARGET_SWITCHES): Likewise.
3126         (TARGET_DEFAULT): Likewise.
3128 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
3130         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3131         * config/mips/mips.c (mips_output_filename): Don't print a
3132         ".file" directive if we are using DWARF-2.
3133         (mips_output_function_prologue): Do not emit source file
3134         name for TARGET_GAS.
3136 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
3138         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3139         decide whether emit the short opcode.
3140         * i386.h (x86_shift1): Declare.
3141         (TARGET_SHIFT1): New macro.
3142         * i386.c (x86_shift1): New global variable.
3144         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
3145         unconditionally; make loop to rebuild CFG; kill unnecesary
3146         find_basic_block calls; kill compute_bb_for_insn call.
3147         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
3148         * haifa-sched.c (sched_init): Likewise.
3149         * ssa-ccp.c (ssa_const_prop): Likewise.
3150         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3152 2002-06-11  David S. Miller  <davem@redhat.com>
3154         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
3155         active_insn_p.
3157 2002-06-11  Richard Henderson  <rth@redhat.com>
3159         * c-common.c (builtin_define_type_max): New.
3160         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
3161         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
3163         From Joseph S. Myers:
3164         * glimits.h: Rewrite to expect the double underscore definitions
3165         from the compiler.
3167         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
3168         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
3169         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
3170         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3171         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
3172         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
3173         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
3174         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
3176 2002-06-11  Richard Henderson  <rth@redhat.com>
3178         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
3179         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
3180         (code_for_builtns): Update.
3181         (alpha_init_builtins): Add __builtin_thread_pointer and
3182         __builtin_set_thread_pointer.
3183         (alpha_expand_builtin): Handle void builtins.
3184         * doc/extend.texi (Alpha Built-in Functions): Update.
3186 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
3188         PR target/6997
3189         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
3191 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
3193         * config.gcc: Make the name of the extra-modes file adjustable
3194         by target stanzas.
3195         (s390x, strongarm, xscale stanzas): Use this facility.
3196         * configure.in: Update to match.
3197         * configure: Regenerate.
3199 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
3201         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
3202         max/mins as unsigned GE compares.
3204 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
3206         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
3207         * config/vax/bsd.h: New file.
3208         * config/vax/netbsd.h: Add missing notice.
3209         (CPP_PREDEFINES): Remove.
3210         (TARGET_OS_CPP_BUILTINS): Define.
3211         (CPP_SPEC): Use NETBSD_CPP_SPEC.
3212         * config/vax/openbsd.h: Update copyright years.
3213         (CPP_PREDEFINES): Remove.
3214         (TARGET_OS_CPP_BUILTINS): Define.
3215         * config/vax/ultrix.h: Likewise.
3216         * config/vax/vaxv.h: Likewise.
3217         * config/vax/vms.h: Likewise.
3218         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
3219         (CPP_PREDEFINES, CPP_SPEC): Remove.
3221 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
3223         * i386.md (addqi_1_slp, subqi_1_slp
3224         (andqi_ext0, testqi_ext0): Remove unnecesary check.
3225         (addhi*, addqi*): Simplify "dec" condition.
3226         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
3227         (and, or, xor to QImode splitters): New.
3228         (iorqi_ext*): New.
3229         (xorqi_ext_0): New.
3230         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
3231         (andqi_ext_1_rex64): New.
3232         (ashrqi*_slp): New.
3233         (ashlqi*_slp): New.
3234         (lshlqi*_slp): New.
3235         (rotrqi3*_slp): New.
3236         (rotlqi3*_slp): New.
3238 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
3240         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
3241         softfloat.h.
3242         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
3243         (CPP_ENDIAN_LITTLE_SPEC): Delete.
3244         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
3245         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
3246         __LONG_DOUBLE_128__ setting, _CALL_* setting.
3247         (CPP_DEFAULT_SPEC): Delete.
3248         (CPP_FLOAT_DEFAULT_SPEC): Delete.
3249         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
3250         (CPP_SYSV_DEFAULT_SPEC): Delete.
3251         (CPP_ENDIAN_BIG_SPEC): Delete.
3252         (CPP_ENDIAN_LITTLE_SPEC): Delete.
3253         (CPP_ENDIAN_SPEC): Delete.
3254         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
3255         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
3256         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
3257         cpp_longdouble_default.
3258         * config/rs6000/softfloat.h: Delete.
3259         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
3260         (EXTRA_SPECS): Delete cpp_cpu.
3261         (TARGET_CPU_CPP_BUILTINS): New.
3262         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
3263         prototype.
3264         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
3265         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
3266         (CPP_DEFAULT_SPEC): Delete.
3267         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
3268         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
3269         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
3270         (CPP_DEFAULT_SPEC): Delete.
3271         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3272         (CPLUSPLUS_CPP_SPEC): Likewise.
3273         (CPP_CPU_SPEC): Delete.
3274         (CPP_DEFAULT_SPEC): Delete.
3275         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
3276         (CPLUSPLUS_CPP_SPEC): Likewise.
3277         (CPP_CPU_SPEC): Delete.
3278         (CPP_DEFAULT_SPEC): Delete.
3279         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
3280         (CPP_DEFAULT_SPEC): Delete.
3281         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
3282         (CPP_DEFAULT_SPEC): Delete.
3284         * doc/gty.texi: Small updates.
3286 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
3288         * objc/objc-act.c (warn_with_ivar): Adjust calls to
3289         diagnostic_count_error.
3290         (warn_with_method): Likewise.
3292         * diagnostic.h (warnings_are_errors_message): New field of
3293         diagnostic_context.
3294         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
3295         match semantics.
3296         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
3297         (diagnostic_count_diagnostic): Make aware of other kinds of
3298         diagnostics.
3299         (diagnostic_initialize): Initialize warnings_are_errors_message field.
3301 2002-06-11  Tom Tromey  <tromey@redhat.com>
3303         For PR java/6520:
3304         * fold-const.c (fold_convert): Don't modify existing tree's type.
3306 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
3308         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
3310 2002-06-11  Richard Henderson  <rth@redhat.com>
3312         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
3314 2002-06-11  Richard Henderson  <rth@redhat.com>
3316         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
3317         DWARF2_UNWIND_INFO is false.
3319 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
3321         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
3323         * config/s390/s390.c (emit_prologue): gen_store_multiple
3324         returns an insn now, not a pattern.
3326 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3328         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
3329         $(TEXI2DVI) -o.
3331 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
3333         * i386.c (x86_promote_QImode): Set for Athlon
3334         (x86_fast_prefix): New global variable.
3335         (x86_arch_always_fancy_math_387): Fix formating.
3336         * i386.h (x86_fast_prefix): Declare
3337         (TARGET_FAST_PREFIX): define.
3338         * i386.md (and to strict_low_part, HI to SI
3339         promoting splitter): Use new macro.
3341         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
3343 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
3345         * Makefile.in (distclean): Delete junk left in testsuite
3346         directory, too.
3348 2002-06-11  Jeffrey Law <law@redhat.com>
3350         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
3351         last insn created by the splitter.
3353         * caller-save.c (init_caller_save): Move creation of SAVEINSN
3354         and RESTINSN into into the scope of the sequence.
3356         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
3357         RETURN insns.
3359         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
3361         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
3362         not the pattern.  So extract the pattern from the insn.
3364         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
3366 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3368         * config/s390/s390.md (movsi): Only use floating point
3369         register alternatives when operands are already fprs.
3370         (movdi_31, movdi_64): Likewise.
3372 2002-06-11  David S. Miller  <davem@redhat.com>
3374         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3375         Only run RTX equality checks on INSN_P rtl.
3377 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
3379         * config/s390/s390.md (reload_base, ltorg): Remove.
3380         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3381         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3382         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3383         s390_asm_output_pool_prologue): Likewise.
3384         * s390.h (s390_pool_start_insn): Likewise.
3386         * s390.c (s390_output_symbolic_const): Remove support for
3387         old-style pool chunks.
3388         (s390_function_epilogue): Likewise.
3389         (s390_output_constant_pool): Likewise.  Also, fix incorrect
3390         alignment for 64-bit literal pools.
3391         (print_operand_address): Remove 'y' and 'Y' format flags.
3392         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3393         old-style pool chunks.
3394         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3395         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3396         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3398         * s390.c (consttable_operand): New function.
3399         * s390-protos.h (consttable_operand): Declare it.
3400         * s390.h (PREDICATE_CODES): Add consttable_operand.
3401         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3402         consttable_sf, consttable_df, pool_start_31, pool_end_31,
3403         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3404         * s390.c (struct constant, struct constant_pool): New data types.
3405         (constant_modes, gen_consttable): New variables.
3406         (s390_start_pool, s390_end_pool, s390_add_pool,
3407         s390_dump_pool, s390_free_pool): New functions.
3408         (s390_chunkify_pool): Completely reimplement literal pool
3409         overflow handling.
3411         * s390.c (s390_pool_overflow): New variable.
3412         * s390.h (s390_pool_overflow): Declare it.
3413         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3414         jumps in literal pool overflow situations.
3416         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3417         (s390_frame_info): Account for possible use of RETURN_REGNUM
3418         by new literal pool overflow code.
3419         (s390_emit_prologue): Likewise.
3421 2002-06-05  David S. Miller  <davem@redhat.com>
3423         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3424         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3425         emit_insns_before_scope, emit_insns_after,
3426         emit_insns_after_scope): Delete declaration.
3427         * ada/misc.c (insert_code_for): Use emit_insn* instead of
3428         emit_insns_foo.
3429         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3430         (alpha_set_memflags): Fix comment.
3431         (set_frame_related_p): Use get_insns instead of gen_sequence.
3432         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3433         emitting no insns.
3434         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3435         gen_sequence.
3436         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3437         * config/fr30/fr30.c (fr30_move_double): Likewise.
3438         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3439         Likewise.
3440         * config/ia64/ia64.c (spill_restore_mem): Likewise.
3441         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3442         no insns.
3443         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3444         instead of gen_sequence.
3445         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3446         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3447         * config/sh/sh.c (sh_need_epilogue): Likewise.
3448         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3449         attributes.
3450         (setjmp pattern and split): Use them to avoid splitter which emits
3451         no RTL.
3452         * genattrtab.c (main): Emit include of function.h
3453         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3454         get_insns instead of gen_sequence.
3455         * config/cris/cris.c (cris_split_movdx): Likewise.
3456         * emit-rtl.c (emit_insns*): Kill.
3457         (try_split): Expect insn list instead of SEQUENCE.
3458         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3459         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3460         Make them abort if a SEQUENCE is given and RTL checking is
3461         enabled.
3462         (emit_*_scope): Don't forget to set scope on final insn.
3463         (gen_sequence): Move from here...
3464         * ssa.c (gen_sequence): To here as private function.
3465         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3466         comments.
3467         (expand_builtin_return, expand_builtin_mathfn): Likewise.
3468         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3469         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3470         (expand_builtin_expect_jump): Use get_insns and fix comments.
3471         * calls.c (try_to_integrate): Use emit_insn_foo.
3472         (expand_call, emit_library_call_value_1): Likewise.
3473         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3474         (emit_move_insn_1): Use get_insns instead of gen_sequence.
3475         (expand_expr): Use emit_insn_foo.
3476         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3477         * except.c (build_post_landing_pads): Likewise.
3478         * flow.c (attempt_auto_inc): Likewise.
3479         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3480         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3481         * function.c (fixup_var_refs_insn): Use get_insns instead of
3482         gen_sequence.
3483         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3484         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3485         (fixup_stack_1, purge_addressof_1, expand_main_function,
3486         get_arg_pointer_save_area): Likewise.
3487         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3488         expand_function_end): Use emit_insn_foo.
3489         (record_insns, keep_stack_depressed): Work with insn list instead
3490         of SEQUENCE, fix comments.
3491         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3492         noce_try_store_flag_constants, noce_try_store_flag_inc,
3493         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3494         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3495         (noce_process_if_block): Use get_insns instead of gen_sequence.
3496         * optabs.c (add_equal_note): Work with insn list, fix comments.
3497         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3498         (expand_unop, expand_complex_abs, expand_unop_insn,
3499         expand_no_conflict_block): Likewise.
3500         (gen_move_insn): Use get_insns instead of gen_sequence.
3501         (gen_cond_trap): Likewise.
3502         * integrate.c (copy_rtx_and_substitute): Likewise.
3503         (emit_initial_value_sets): Use emit_insn_foo.
3504         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3505         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3506         now that RTL generators give insn lists.
3507         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3508         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3509         instead of gen_sequence.
3510         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3511         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3512         instead of gen_sequence.
3513         * loop.c (move_movables, emit_prefetch_instructions,
3514         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3515         Likewise.
3516         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3517         (product_cheap_p): Likewise, and add commentary about RTL wastage
3518         here.
3519         * lcm.c (optimize_mode_switching): Use get_insns instead of
3520         gen_sequence.
3521         * profile.c (gen_edge_profiler): Likewise.
3522         * regmove.c (copy_src_to_dest): Likewise.
3523         * reg-stack.c (compensate_edge): Likewise and fix comment.
3524         * gcse.c (process_insert_insn): Likewise.
3525         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3526         * jump.c (delete_prior_computation): Update comment.
3527         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3528         of gen_sequence, update comments to match.
3529         * recog.c (peephole2_optimize): Work with insn lists instead of
3530         SEQUENCE rtl.
3531         * sched-vis.c (print_pattern): Abort on SEQUENCE.
3532         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3533         Use get_insns instead of gen_sequence.
3534         (copy_loop_body): Likewise and don't emit dummy NOTE.
3535         * genrecog.c: Don't mention SEQUENCE rtl in comments.
3536         * combine.c (try_combine): Expect insn lists from split generator.
3537         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3538         hand.
3540 2002-06-11  Roger Sayle  <roger@eyesopen.com>
3541             Andreas Jaeger <aj@suse.de>
3543         * cfgbuild.c: Update copyright years.
3545 2002-06-11  Andreas Schwab  <schwab@suse.de>
3547         * config/m68k/m68k.h (PREDICATE_CODES): Define.
3549 2002-06-11  Eric Christopher  <echristo@redhat.com>
3551         * doc/tm.texi (Run-time Target): Add comment about flag_iso
3552         and strict ANSI.
3553         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3554         * config/mips/ecoffl.h: Ditto.
3555         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3556         (CPP_PREDEFINES): Ditto.
3557         * config/mips/elfl64.h: Ditto.
3558         * config/mips/elfl.h: Ditto.
3559         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3560         out until irix header consolidation.
3561         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3562         with SUBTARGET_OS_CPP_BUILTINS.
3563         * config/mips/iris6.h: Ditto.
3564         (CPLUSPLUS_CPP_SPEC): Remove.
3565         * config/mips/linux.h: Ditto.
3566         * config/mips/netbsd.h: Ditto.
3567         * config/mips/openbsd.h: Ditto.
3568         * config/mips/rtems.h: Ditto.
3569         * config/mips/rtems64.h: Ditto.
3570         * config/mips/sni-svr4.h: Ditto.
3571         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3572         ISA_MIPS32, ISA_MIPS64): New defines.
3573         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3574         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3575         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3576         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3577         (TARGET_CPU_CPP_BUILTINS): Define.
3578         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3579         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3580         (movdicc): Remove check for ISA_MIPS32.
3581          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3582         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3583         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3584         sunge_sf, sunle_df, sunle_sf): New patterns.
3586 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3588         * Makefile.in: Update cppmain.o.
3589         * cpphash.h (struct cpp_reader): Move some members to a
3590         nested structure.
3591         (trad_line): Rename saved_line.
3592         (_cpp_read_logical_line_trad): Update.
3593         (_cpp_remove_overlay): New.
3594         * cppinit.c (cpp_create_reader): No need to set saved_line.
3595         (cpp_destroy): Update.
3596         (cpp_read_main_file): Only overlay if compiling.
3597         * cpplex.c (continue_after_nul): Return false if in directive.
3598         * cpplib.c (EXPAND): New.
3599         (directive_table, SEEN_EOL): Update.
3600         (end_directive): Remove overlay if traditional; don't skip
3601         line in traditional #define.
3602         (prepare_directive_trad): New.
3603         (_cpp_handle_directive, run_directive): Update for traditional
3604         directives.
3605         (lex_macro_node): Simplify, don't use lex_identifier_trad.
3606         * cpplib.h (struct options): Add preprocess_only.
3607         * cppmain.c: Don't include intl.h.
3608         (cpp_preprocess_file): Set options->preprocess_only.
3609         (scan_translation_unit_trad): Fix, and print line numbers.
3610         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3611         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3612         save_replacement_text, _cpp_create_trad_definition): Update for
3613         variable renaming.
3614         (_cpp_overlay_buffer): Save line number.
3615         (_cpp_remove_overlay): Rename from restore_buff, restore line.
3616         (_cpp_read_logical_line_trad): Don't handle overlays here.
3617         (scan_out_logical_line): Process directives.
3619 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
3621         * gthr-win32.h: Wrap functions in extern "C".
3622         (__gthread_key_t): Typedef as unsigned long,
3623         not win32 DWORD.
3624         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3625         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3626         (__gthr_win32_once, __gthr_win32_key_create,
3627         __gthr_win32_key_delete, __gthr_win32_getspecific,
3628         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3629         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3630         __gthr_win32_mutex_unlock): Declare.
3631         (__gthread_once,__gthread_key_create,
3632         __gthread_key_delete, __gthread_getspecific,
3633         __gthread_setspecific, __gthread_mutex_init_function,
3634         __gthread_mutex_lock,__gthread_mutex_trylock,
3635         __gthread_mutex_unlock): Call corresponding
3636         __gthr_win32_* extern implementations if #defined
3637         __GTHREAD_HIDE_WIN32API.
3638         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3639         $(srcdir)/config/i386/gthr-win32.c
3640         * config/i386/gthr-win32.c: New implementation file.
3641         (__gthr_win32_once, __gthr_win32_key_create,
3642         __gthr_win32_key_delete, __gthr_win32_getspecific,
3643         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3644         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3645         __gthr_win32_mutex_unlock): New functions, based on
3646         static inlines in gthr-win32.h.
3648 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
3650         * config/xtensa/xtensa.c (override_options): Don't warn about
3651         using -fpic or -fPIC when PIC is enabled by default.
3653 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3655         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3657 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3659         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3660         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3661         exists, substitute its pathname as @extra_modes_file@, define
3662         EXTRA_MODES_FILE to be an appropriate string to #include it
3663         with, and define EXTRA_CC_MODES to 1.
3665         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
3666         it's defined.  Get rid of redundancy in calling sequence for
3667         CC; don't use it to define CCmode, to avoid a warning.
3668         * libgcc2.c: Include symcat.h for the sake of machmode.def.
3670         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3671         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3672         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3673         New files.
3674         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3675         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3677         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3678         defining extra CC modes.
3680 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3681             Andreas Jaeger <aj@suse.de>
3683         * cfgrtl.c (create_basic_block_structure):  Remove index argument
3684         and use last_basic_block++ instead.  (create_basic_block): Update.
3685         * cfgbuild.c (find_basic_blocks_1): Likewise.
3687         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3688         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3689         * sched-ebb.c (schedule_ebbs): Likewise.
3690         * sched-rgn.c (schedule_insns): Likewise.
3691         * ssa-ccp.c (ssa_const_prop): Likewise.
3692         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3693         * toplev.c (rest_of_compilation): Likewise.
3694         * config/ia64/ia64.c (ia64_reorg): Likewise.
3696 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3698         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3699         of matching registers.
3701 2002-06-10  Roger Sayle  <roger@eyesopen.com>
3703         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3704         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3706 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
3708         * config/mmix/mmix.h: Improve comments.
3709         (CPP_SPEC, CPP_PREDEFINES): Don't define.
3710         (TARGET_CPU_CPP_BUILTINS): Define.
3711         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3712         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3713         unused predicate.
3714         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3715         compiler warning.
3716         (mmix_constant_address_p): Remove another
3717         redundant test before case.
3718         (mmix_canonicalize_comparison): Remove unused function.
3719         (mmix_print_operand_address): Don't test and adjust for operand in
3720         non-canonical format.
3721         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3722         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3724 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3726         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3727         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3728         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3729         (gen_compare): Use CCmode unconditionally.
3731 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3733         PR optimization/6759
3734         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3735         the REQ_EQUAL note.
3737 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3739         PR c/6660
3740         * c-decl.c (grokfield): Allow user defined types if they declare
3741         structs or unions for unnamed fields.
3743 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3745         PR c/6809
3746         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3748 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3750         PR optimization/6842
3751         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3752         operand subreg cannot be simplified.
3754 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3756         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3757         (compare_constant): Likewise.
3758         (output_addressed_constants): Likewise.
3760 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
3762         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3763         merge bb with itself.
3765 2002-06-10  Richard Henderson  <rth@redhat.com>
3767         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3768         (builtin_zapnot): Likewise.
3770         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3771         reservation.
3773 2002-06-10  Eric Christopher  <echristo@redhat.com>
3775         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3776         prototype and function.
3777         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3778         (call_insn_operand): Remove half pic references.
3779         (legitimate_address_p): Ditto.
3780         * config/i386/i386.h: Remove half pic defines.
3782 2002-06-10  Eric Christopher  <echristo@redhat.com>
3784         * doc/extend.texi (Return Address): Add note explaining the side-
3785         effects of inlining on __builtin_return_address.
3787 2002-06-10  Tom Tromey  <tromey@redhat.com>
3789         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3790         (c-common.o): Depend on langhooks.h.
3792 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3794         * cpphash.h (_cpp_read_logical_line_trad,
3795         _cpp_expansions_different_trad): Update prototypes.
3796         * cpplex.c (continue_after_nul): New.
3797         * cppmain.c: Include cpphash.h.
3798         (scan_translation_unit_trad): New.
3799         (cpp_preprocess_file): Call it.
3800         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3801         overlay.
3802         (_cpp_expansions_different_trad): Update prototype.
3804 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3806         Fix cfi generation for SH[1-4]:
3808         * sh.c (frame_insn): New function.
3809         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
3810         (push): Now returns rtx.  Use frame_insn.
3811         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3812         of a DF register.
3813         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3815 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
3817         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3818         and gtype-desc.c.
3819         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3820         (distclean): ... not here.  But do delete all testsuite/*.log,
3821         testsuite/*.sum files here.  Delete mkheaders.  Delete
3822         po/*.gmo and the testsuite directory in a split tree build.
3824 2002-06-10  Jeffrey Law  <law@redhat.com>
3826         * alias.c (static_reg_base_value): New to hold RTL for
3827         items allocated once per function for the aliasing code.
3828         (init_alias_once_per_function): Initialize static_reg_base_value.
3829         (init_alias_analysis): Avoid throw-away allocations of RTL by
3830         using pre-computed values in static_reg_base_value.
3831         * function.c (prepare_function_start): Call
3832         init_alias_once_per_function appropriately.
3833         * rtl.h (init_alias_once_per_function): Declare.
3834         * caller-save (init_caller_save): Restructure slightly to
3835         avoid lots of silly RTL generation.
3836         * expr.c (init_expr_once): Likewise.
3837         * reload1.c (reload_cse_regs_1): Allocate throw-away register
3838         RTL object here.  Pass it into children.
3839         (reload_cse_simplify_operands): Use passed-in register RTL
3840         object.
3841         (reload_cse_simplify): Pass through throw-away register
3842         RTL object.
3844 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
3846         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3848 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
3850         * gcc.c (process_command): Avoid assignment to read-only location.
3851         Fix sizeof calculation.
3853 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3855         * cpphash.h (struct cpp_macro): Put comments on their own lines.
3856         (_cpp_expansions_different_trad): New.
3857         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3858         * cpptrad.c (canonicalize_text): New.
3859         (scan_out_logical_line): Handle no arguments correctly.
3860         (save_replacement_text): Commit memory when finished.
3861         (_cpp_expansions_different_trad): New.
3863 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3865         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3866         TREELANG and COBOL.
3867         (lang_names): Add treelang and cobol.
3868         (get_file_basename): Add code to support treelang and cobol as
3869         4th and 5th users of c-common.c.
3871 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
3873         * Makefile.in (install-driver): Install driver as
3874         $(target_alias)-gcc-$(version).
3875         * gcc.c (spec_version): Make const.
3876         (process_command): Handle -V and -b by using exec.
3877         * doc/invoke.texi (Target Options): Restore -V option,
3878         update docs for -b option.
3880 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3882         * configure.in (remaining_languages_check):
3883         Added check that all languages specified were found.
3884         Exit if not found. Previous behaviour was silent failure.
3885         * configure: Regenerated.
3887 2002-06-10  Tim Josling  <tej@melbpc.org.au>
3889          First steps to making treelang documentation compliant, based on
3890          instructions in sourcebuild.texi. Also add to gcc.c list of
3891          default languages.
3893         * doc/contrib.texi: Add self as contributor of treelang.
3895         * doc/frontends.texi: Add mention of treelang.
3897         * doc/invoke.texi (Overall Options): Add mention of treelang.
3899         * doc/standards.texi:  Add mention of treelang.
3901 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
3903         * config/cris/cris.c: Include ggc.h
3905 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3907         * cpphash.h (_cpp_push_text_context): Update.
3908         (_cpp_arguments_ok): New.
3909         * cppmacro.c (_cpp_arguments_ok): New, split out from...
3910         (collect_args): ...here.
3911         (_cpp_push_text_context): Change inputs.
3912         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3913         replace_args_and_push): New.
3914         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3915         Don't use IS macros directly.
3916         (scan_out_logical_line): Handle function-like macro argument
3917         collection.
3918         (push_replacement_text): Update.
3919         (replacement_length): Remove.
3920         (_cpp_create_trad_definition): Don't skip whitespace before
3921         checking for '('.
3923 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3925         * config/avr/avr.c (avr_mcu_types): Update for new devices.
3926         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3927         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3928         * config/avr/avr.md ("type" and "length" attributes): New type
3929         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
3930         output a single "call" or "rcall" insn depending on device size.
3931         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3933 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
3935         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3936         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
3937         assembler option.
3938         (CPP_CPU_SPEC): Add power3 and power4.
3939         (PROCESSOR_DEFAULT): Change to 604e.
3940         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3941         (CPP_CPU_SPEC): Similar additions.
3942         (enum process_type): Add POWER4.
3943         (RTX_COSTS): Add POWER4.
3944         (CPP_CPU_SPEC): Similar additions.
3945         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
3946         (PROCESSOR_DEFAULT64): Define.
3947         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3948         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3949         branch adjustment.
3950         (rs6000_issue_rate): Add Power4.
3951         * config/rs6000/rs6000.md (cpu attr): Add power4.
3952         (iu compare): Remove 604, 604e, 620, 630.
3953         Add basic Power4 scheduling information.
3954         (mfcr/mtcrf): Change type attribute to cr_logical.
3956 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3958         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
3959         ATTRIBUTE_PRINTF_2.
3960         * gengtype-lex.l: Fix format specifier warning.
3962         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
3963         not isspace.
3964         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3965         lieu of isspace/IDchar.
3966         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3967         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
3968         ISSPACE.
3970 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
3972         * Makefile.in (LIBCPP_OBJS): Take out version.o.
3973         * cpphash.h (cpp_reader): Take out print_version member.
3974         * cppinit.c: (cpp_handle_option): Don't do anything with
3975         -version.  Just set help_only for --version, --target-help.
3976         Just set verbose option for -v.
3977         (cpp_post_options): Don't print a version string.
3979 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3981         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3982         (avr_section_type_flags): New, handle .noinit* sections.
3984 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3986         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3987         and include netbsd_entry_point.
3988         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3989         (NETBSD_ENTRY_POINT): Define.
3991 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
3993         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3994         if not already defined.
3995         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3997 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3999         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4000         in a noreturn function.
4001         (avr_output_function_prologue, avr_output_function_epilogue):
4002         Correct function size calculation.  Do not crash on empty function.
4003         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4005 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4007         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4008         netbsd_link_spec and netbsd_entry_point.
4009         (LINK_SPEC): Use %(netbsd_link_spec).
4010         (NETBSD_ENTRY_POINT): Define.
4012 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4014         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4015         linker emulation.
4016         (LINK_ARCH64_SPEC): Likewise.
4017         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4018         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4020 2002-06-08  Marc Espie  <espie@openbsd.org>
4022         * lists.c (free_list):  Fix typo in comment.
4024 2002-06-08  Andreas Jaeger  <aj@suse.de>
4026         * lcm.c (optimize_mode_switching): Add unused attribute for
4027         variable.
4029         * sched-deps.c (sched_analyze): Remove unused variable.
4031 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
4033         * diagnostic.def: Don't capitalize diagnostict descriptors.
4035 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4037         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4038         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4039         (NETBSD_ENTRY_POINT): Define.
4041 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4043         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4044         NETBSD_LINK_SPEC_ELF.
4045         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4046         (NETBSD_ENTRY_POINT): Define.
4047         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4048         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4049         netbsd_entry_point.
4050         (NETBSD_ENTRY_POINT): Define.
4052 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4054         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4055         netbsd_link_spec and netbsd_entry_point.
4056         (LINK_SPEC): Use %(netbsd_link_spec).
4057         (NETBSD_ENTRY_POINT): Define.
4059 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
4061         * config/netbsd-elf.h (LINK_SPEC): Rename to...
4062         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
4063         to specify program entry point.
4065 2002-06-07  Jeff Law <law@redhat.com
4067         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4068         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4069         than creating a new register.
4070         (distribute_notes): Likewise.
4071         * df.c (df_reg_use_gen): Likewise.
4072         (df_reg_clobber_gen): Likewise.
4073         (df_ref_record): Likewise.
4074         * expr.c (use_regs): Likewise.
4075         * flow.c (propagate_one_insn): Likewise.
4076         (mark_set_1): Likewise.
4077         (mark_used_reg): Likewise.
4078         * reload.c (emit_reload_insns): Likewise.
4080 2002-06-07  Roger Sayle  <roger@eyesopen.com>
4082         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4083         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4084         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4085         comparison code comp can be reversed.
4087 2002-06-07  Roger Sayle  <roger@eyesopen.com>
4089         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
4090         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
4091         equivalent x > -1.0 when -ffast-math.
4093 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4095         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4096         * config/mips/t-netbsd: New file.
4098 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
4100         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4101         options their own entries.
4102         (parse_option): Clarify comment.
4103         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4104         special case.  Replace if/strcmp chain for -W options with
4105         use of new OPT_* entries for them.
4106         (cpp_handle_options): Update to match.
4107         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4108         * c-decl.c: Update call to cpp_handle_option.
4110 2002-06-07  Akim Demaille  <akim@epita.fr>
4112         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4113         Whitespace changes.
4115 2002-06-07  Jeffrey Law  <law@redhat.com>
4117         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4118         on empty lists.
4120 2002-06-07  H.J. Lu  (hjl@gnu.org)
4122         * configure.in: Add --enable-__cxa_atexit.
4123         * configure: Regenerated.
4124         * config.in: Likewise.
4126         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4127         not defined.
4129 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
4131         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4133 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4135         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4137 2002-06-07  Jason Merrill  <jason@redhat.com>
4139         * cppexp.c (num_equality_op): Use a temporary variable to work
4140         around gcc 3.0.4 bug.
4142 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
4144         * diagnostic.c (diagnostic_build_prefix): Tidy.
4146 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4148         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
4149         scan_parameters, save_replacement_text, replacement_length): New.
4150         (scan_out_logical_line): Take a macro and save parameters if
4151         non-NULL.
4152         (_cpp_logical_line_trad): Update.
4153         (_cpp_create_trad_definition): Update to handle function-like
4154         macros.
4155         * cpplex.c (new_buff): Update.
4156         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
4157         * cpphash.h: ...here.
4158         (CPP_ALIGN2, _cpp_save_parameter): New.
4159         * cppmacro.c (save_parameter): Rename, export.
4160         (parse_params): Update.
4162 2002-06-07  Andreas Jaeger  <aj@suse.de>
4164         * config/mmix/mmix.c: Remove extra broken prototype for
4165         mmix_init_machine_status.
4167 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
4169         * gengtype.c: Add comments before all the routines.
4171 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
4173         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
4174         from and add t-sh64 to ${tmake_file}.
4175         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
4176         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
4177         * config/sh/t-netbsd-sh5-32: Remove.
4178         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
4179         MULTILIB_ENDIAN.
4180         (MULTILIB_DIRNAMES): Define.
4182 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
4184         * i386.md (and promoting splitters): Disable QI to SImode promoting
4185         when doing so changes immediate to be 32bit.
4187         * rtl.h (emit_*_scope): Declare.
4188         * emit-rtl.c (emit_*_scope): New global functions.
4189         (try_split): Copy scope.
4190         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4191         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4192         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4193         noce_process_if_block, find_cond_trap): Copy scopes.
4194         * recog.c (peephole2_optimize): likewise.
4196 2002-06-06  Jeffrey Law  <law@redhat.com>
4198         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
4200 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4202         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
4204 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4206         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
4207         ($(docdir)/gccinstall.info): New target.
4208         (info): Depend on it.
4209         (gccinstall.dvi): New target.
4210         (dvi): Depend on it.
4211         * doc/.cvsignore: Ignore new info files.
4212         * doc/install.texi (@setfilename): Reflect new info filename.
4214 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
4216         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
4217         on an UNSPEC.
4219 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4221         PR objc/6834
4222         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
4223         c_common_get_alias_set.
4224         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
4226 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4228         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
4229         functions.
4230         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
4231         * avr/avr.c (avr_output_function_epilogue): Use above to determine
4232         function size.
4233         * pa/pa.c (pa_output_function_prologue): Likewise.
4235 2002-06-05  David S. Miller  <davem@redhat.com>
4237         * integrate.c (subst_constants): Handle 'B' RTL format.
4239 2002-06-05  Eric Christopher  <echristo@redhat.com>
4241         * varasm.c (make_decl_rtl): Fix comment for removed
4242         halfpic.c.
4244 2002-06-05  Eric Christopher  <echristo@redhat.com>
4246         * Makefile.in: Remove missed halfpic bits.
4248 2002-06-05  Eric Christopher  <echristo@redhat.com>
4250         * toplev.c: Remove half-pic.
4251         * config/mips/mips.c: Ditto.
4252         * config/mips/mips.h: Ditto. Remove unused defines.
4253         * config/mips/openbsd.h: Update comment to reflect above.
4254         * config/mips/mips.md: Remove half-pic constraints.
4255         * halfpic.h: Delete.
4256         * halfpic.c: Ditto.
4258 2002-06-05  Jeffrey Law  <law@redhat.com>
4260         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
4261         rejects (mem (lo_sum (reg) (unspec))), but will allow
4262         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
4264 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4266         * cpphash.h (_cpp_create_definition): Update prototype.
4267         (_cpp_push_text_context, _cpp_create_trad_definition): New.
4268         ( cpp_lex_identifier_trad): New.
4269         (_cpp_set_trad_context): New.
4270         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
4271         * cpplib.c (SEEN_EOL): Update.
4272         (lex_macro_node): Update for -traditional.
4273         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
4274         * cppmacro.c (_cpp_create_definition): Split into
4275         create_iso_definition() and _cpp_create_trad_definition().
4276         (warn_of_redefinition): Update prototype; handle traditional
4277         macros.
4278         (_cpp_push_text_context): New.
4279         * cpptrad.c (skip_whitespace, push_replacement_text): New.
4280         (lex_identifier): Call ht_lookup with correct start.
4281         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
4282         _cpp_set_trad_context): New.
4283         (scan_out_logical_line): Update to handle changing contexts.
4285 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
4287         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
4288         (shl*-*-elf*): Add.
4289         * config/sh/t-be (MULTILIB_ENDIAN): Set.
4290         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
4291         * t-sh (MULTILIB_ENDIAN): Set.
4292         (MULTILIB_OPTIONS): Use it.
4293         * t-sh64 (MULTILIB_OPTIONS): Likewise.
4294         (MULTILIB_DIRNAMES): Likewise.
4296 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
4298         * toplev.h (report_error_function): Remove.
4300         * diagnostic.h (location_t): New datatype.
4301         (text_info): Likewise.
4302         (diagnostic_info): Likewise.
4303         (output_prefix): New macro.
4304         (diagnostic_last_function_changed): Likewise.
4305         (diagnostic_set_last_function): Likewise.
4306         (diagnostic_last_module_changed): Likewise.
4307         (diagnostic_set_last_module): Likewise.
4308         (report_diagnostic): Now macro.
4309         (diagnostic_set_info): Declare.
4311         * diagnostic.c (report_problematic_module): Rename to
4312         diagnostic_repor_current_module.
4313         (set_diagnostic_context): Remove.
4314         (count_error): Rename to diagnostic_error_count.
4315         (error_function_changed): Remove.
4316         (record_last_error_function): Likewise.
4317         (error_module_changed): Likewise.
4318         (record_last_error_module): Likewise.
4319         (context_as_prefix): Rename to diagnostic_build_prefix.
4320         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
4321         (diagnostic_set_info): New function.
4323         * objc/objc-act.c: #include diagnostic.h
4324         (error_with_ivar): Adjust call to count_error.
4325         (warn_with_method): Likewise.
4326         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
4328 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
4330         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
4331         lang_hooks.types.make_type instead of make_node; set up
4332         __va_list_tag type decl.
4333         (xtensa_builtin_saveregs): Remove broken use of
4334         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
4335         for saved registers; add varargs alias set.
4337 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4339 config:
4340         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
4341         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4342         CPP_PREDEFINES and part of CPP_SPEC.
4343         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
4344         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
4346 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
4348         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
4350 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
4352         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
4354 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
4356         * gengtype-yacc.y: Make sure all rules end with a semicolon.
4358 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
4360         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
4361         typo in function prototype and include "ggc.h" header.
4363 2002-06-04  Richard Henderson  <rth@redhat.com>
4365         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
4366         (print_operand) ['U']: Likewise.
4367         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4368         (alpha_expand_unaligned_store_words): Likewise.
4369         (alpha_expand_builtin_vector_binop): Fix typo.
4370         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4371         umulh, and cix insns.
4372         (one_arg_builtins): Add cix builtins.
4373         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4374         (alpha_expand_builtin): Fix typo in arity.
4375         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4376         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4377         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4378         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4379         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4380         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4381         builtin_ctlz, builtin_ctpop): New.
4382         * doc/extend.texi (Alpha Built-in Functions): Update.
4384 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
4386         * gengtype.c (write_gc_root): Don't unnecessarily prevent
4387         global variable-length arrays being roots.
4389         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4390         * configure.in (config_gtfiles): New variable.
4391         (all_gtfiles): Initialise from config_gtfiles.
4392         * configure: Regenerate.
4394 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4396 config/i386:
4397         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4398         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4399         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4400         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4401         win32.h (CPP_SPEC): Remove cpp_cpu.
4402         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4403         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4405 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
4407         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4409 2002-06-04  Jeff Law <law@redhat.com.
4410             David Edelsohn <edelsohn@gnu.org>
4411             Michael Matz <matz@kde.org>
4413         * sched-int.h (struct deps): New field libcall_block_tail_insn.
4414         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4415         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4416         is set, then mark the current insn as being part of a libcall
4417         scheduling group.
4418         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4420         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4421         insns against the issue rate.
4423 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
4425         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4426         * final.c (final_scan_insn): Likewise.
4427         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4428         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4429         * haifa-sched.c (unlink_other_notes): Likeewise.
4430         (reemit_notes): Likewise.
4431         * print-rtl.c (print_rtx): Likewise.
4432         * sched-deps (sched-analyze): Likewise.
4433         * rtl.c (note_insn_name): Likewise.
4434         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4435         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4436         (RANGE_*): Kill.
4438 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
4440         * varasm.c (mark_constants): Handle RTX format 'B'.
4442 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4444         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4445         (struct cpp_context): Add traditional fields.
4446         * cppmacro.c (paste_all_tokens, push_ptoken_context,
4447         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4448         * cpptrad.c (skip_comment, lex_identifier,
4449         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4451 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
4453         * gbl-ctors.h: Fix formatting.
4454         * gcc.c: Likewise.
4455         * gccspec.c: Likewise.
4456         * gcov.c: Likewise.
4457         * gcov-io.h: Likewise.
4458         * gcse.c: Likewise.
4459         * ggc-common.c: Likewise.
4460         * ggc.h: Likewise.
4461         * ggc-page.c: Likewise.
4462         * ggc-simple.c: Likewise.
4463         * global.c: Likewise.
4464         * graph.h: Likewise.
4465         * gthr-dce.h: Likewise.
4466         * gthr.h: Likewise.
4467         * gthr-posix.h: Likewise.
4468         * gthr-rtems.h: Likewise.
4469         * gthr-solaris.h: Likewise.
4470         * gthr-win32.h: Likewise.
4472 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
4474         Merge from pch-branch:
4476         * gengtype.h (UNION_OR_STRUCT_P): New macro.
4477         * gengtype.c (write_gc_structure_fields): Use it.
4478         (write_gc_root): Use it here too.
4480         * gengtype.c (write_gc_structure_fields): Assume that lengths
4481         of typenames fit into an 'int'; don't pass a size_t to "%d" in
4482         printf.
4483         (write_gc_marker_routine_for_structure): Likewise.
4484         (write_gc_types): Likewise.
4485         (write_gc_root): Likewise.
4487         * varray.h (VARRAY_CLEAR): New.
4488         (varray_clear): Prototype.
4489         * varray.c (varray_clear): New.
4490         * cselib.c (reg_values_old): New.
4491         (used_regs_old): New.
4492         (cselib_init): Use cached varrays if available to avoid
4493         generating large amounts of garbage.
4494         (cselib_finish): Don't throw away old varrays.
4496         * final.c (insn_addresses_): Move out of ifdef.
4498         * varray.c (uses_ggc): Make more varray kinds GCable.
4499         * varray.h (union varray_data_tag): Let gengtype see
4500         fields 'generic' and 'te'.
4501         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4502         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4503         (reg_to_stack): Don't call VARRAY_FREE.
4504         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4505         (insn_addresses_): Use gengtype to mark.
4506         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4507         pointers; handle generic pointers in unused union fields.
4508         (get_output_file_with_visibility): Include cselib.h,
4509         insn-addr.h in gtype-desc.c.
4510         * function.c (prologue): Use gengtype to mark.
4511         (epilogue): Likewise.
4512         (sibcall_epilogue): Likewise.
4513         * dependence.c: Include gt-dependence.h, ggc.h.
4514         (struct def_use): Use gengtype to mark.
4515         (struct loop): Likewise.
4516         (struct induction): Likewise.
4517         (struct dependence): Likewise.
4518         (def_use_chain): Likewise.
4519         (dep_chain): Likewise.
4520         (loop_chain): Likewise.
4521         (induction_chain): Likewise.
4522         (init_dependence_analysis): Don't free anything, just clear pointers.
4523         (build_def_use): Use GGC to allocate def_use.
4524         (add_loop): Use GGC to allocate loop.
4525         (find_induction_variable): Use GGC to allocate induction.
4526         (check_node_dependence): Use GGC to allocate induction, dependence.
4527         (dump_node_dependence): Don't free varrays.
4528         (end_dependence_analysis): Likewise.
4529         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4530         (struct elt_loc_list): Likewise.
4531         (struct elt_list): Likewise.
4532         * cselib.c: Don't include obstack.h.
4533         (hash_table): Use gengtype to mark.
4534         (reg_values): Use gengtype to mark.
4535         (used_regs): Use gengtype to mark.
4536         (cselib_obstack): Delete.
4537         (cselib_startobj): Delete.
4538         (empty_vals): Mark as deletable.
4539         (empty_elt_lists): Mark as deletable.
4540         (empty_elt_loc_lists): Mark as deletable.
4541         (new_elt_list): Use GGC to allocate struct elt_list.
4542         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4543         (clear_table): Don't delete obstack; don't unnecessarily clear
4544         deletable variables.
4545         (new_cselib_val): Use GGC to allocate struct cselib_val.
4546         (cselib_init): Don't set up obstacks.  Use GGC to allocate
4547         hash table.
4548         (cselib_finish): Just clear variables, don't free anything.
4549         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4550         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4551         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4552         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4553         (gt-reg-stack.h): New rule.
4554         (gt-dependence.h): New rule.
4555         (gtype-desc.o): Add cselib.h, insn-addr.h.
4557         * varray.c: Use only necessary headers.
4558         (element_size): New.
4559         (uses_ggc): New.
4560         (varray_init): Take type, not size.  Use GGC if appropriate.
4561         (varray_grow): Update for change to struct varray_head_tag.
4562         Use GGC if appropriate.
4563         * varray.h (struct const_equiv_data): Use gengtype.
4564         (enum varray_data_enum): New.
4565         (union varray_data_tag): Use gengtype.
4566         (struct varray_head_tag): Use gengtype.  Replace size field with
4567         enum varray_data_enum.
4568         (varray_init): Update prototype.
4569         (VARRAY_SCHED_INIT): Delete.
4570         (VARRAY_*_INIT): Update for change to varray_init.
4571         (VARRAY_SCHED): Delete.
4572         (VARRAY_PUSH_SCHED): Delete.
4573         (VARRAY_TOP_SCHED): Delete.
4574         * tree.h: Update for change to length specifier.
4575         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4576         (clone_body): Likewise.
4577         * ssa.h (ssa_definition): Use gengtype to mark.
4578         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4579         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4580         * rtl.h (struct rtvec_def): Update for change to length specifier.
4581         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4582         (struct initial_value_struct): Update for change to length specifier.
4583         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4584         (ggc_add_tree_varray_root): Delete prototype.
4585         (ggc_mark_rtx_varray): Delete prototype.
4586         (ggc_mark_tree_varray): Delete prototype.
4587         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4588         (ggc_add_tree_varray_root): Delete.
4589         (ggc_mark_rtx_varray): Delete.
4590         (ggc_mark_tree_varray): Delete.
4591         (ggc_mark_rtx_varray_ptr): Delete.
4592         (ggc_mark_tree_varray_ptr): Delete.
4593         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4594         (create_varray): Delete prototype.
4595         * gengtype.c (varrays): Delete.
4596         (create_varray): Delete.
4597         (adjust_field_type): Detect array of string pointers.
4598         (process_gc_options): Remove code to handle varray_type option.
4599         (set_gc_used_type): Remove TYPE_VARRAY case.
4600         (output_escaped_param): New.
4601         (write_gc_structure_fields): Use output_escaped_param on all
4602         parameters.  Handle 'skip' with 'use_param' option.  Handle
4603         arrays of strings.  Remove TYPE_VARRAY handling.
4604         (write_gc_roots): Use boolean to detect 'length' option.
4605         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4606         (struct_fields): Call adjust_field_type on array fields.
4607         (type): Remove VARRAY_TYPE case.
4608         (type_option): Likewise.
4609         * gengtype-lex.l: Don't consider varray_type a keyword.
4610         * function.h: Update for change to length specifier.
4611         (free_eh_status): Delete prototype.
4612         * function.c (free_after_compilation): Don't call free_eh_status.
4613         (reorder_blocks): Don't use VARRAY_FREE.
4614         * except.c (struct eh_status): Update for change to length specifier.
4615         remove varray_type specifier.
4616         (free_eh_status): Delete.
4617         * dwarf2out.c: Include gt-dwarf2out.h.
4618         (used_rtx_varray): Use gengtype to mark, move
4619         outside ifdefs.
4620         (incomplete_types): Likewise.
4621         (decl_scope_table): Likewise.
4622         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4623         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4624         * c-tree.h (struct lang_type): Update for change to length specifier.
4625         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4626         * c-objc-common.c: Include gt-c-objc-common.h.
4627         (deferred_fns): Mark for gengtype.
4628         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4629         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4630         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4631         (gtype-desc.o): Update dependencies.
4632         (dwarf2out.o): Add gt-dwarf2out.h.
4633         (varray.o): Update dependencies.
4634         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4635         (gt-c-objc-common.h): New rule.
4636         (gt-dwarf2out.h): New rule.
4637         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4639         * doc/gty.texi (GTY Options): Correct spelling.
4640         (GGC Roots): Likewise.
4641         * Makefile.in (TEXI_CPP_FILES): New.
4642         (TEXI_GCC_FILES): New.
4643         (TEXI_GCCINT_FILES): New.
4644         (TEXI_CPPINT_FILES): New.
4645         ($(docdir)/cpp.info): Use new macros.
4646         ($(docdir)/gcc.info): Likewise.
4647         ($(docdir)/gccint.info): Likewise.
4648         ($(docdir)/cppinternals.info): Likewise.
4649         (cpp.dvi): Likewise.
4650         (gcc.dvi): Likewise.
4651         (gccint.dvi): Likewise.
4652         (cppinternals.dvi): Likewise.
4654         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4655         * doc/gccint.texi (Top): Include gty.texi.
4656         * doc/gty.texi: New file.
4658         * bitmap.c: Include ggc.h, gt-bitmap.h.
4659         (bitmap_ggc_free): New.
4660         (bitmap_elem_to_freelist): New.
4661         (bitmap_element_free): Use bitmap_elem_to_freelist.
4662         (bitmap_element_allocate): Allow use of GGC.
4663         (bitmap_clear): Use bitmap_elem_to_freelist.
4664         (bitmap_copy): Update for change to bitmap_element_allocate.
4665         (bitmap_set_bit): Likewise.
4666         (bitmap_operation): Update for changes elsewhere.
4667         (bitmap_initialize): Allow to create bitmaps that will use GGC.
4668         * bitmap.h (struct bitmap_element_def): Use gengtype.
4669         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
4670         (bitmap_initialize): Add extra parameter.
4671         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4672         (BITMAP_ALLOCA): Delete.
4673         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4674         (BITMAP_GGC_ALLOC): New.
4675         * Makefile.in (gtype-desc.o): Add bitmap.h.
4676         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4677         (GTFILES): Add bitmap.c.
4678         (gt-bitmap.h): New rule.
4679         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4680         * basic-block.h: Update for changes to bitmap_initialize.
4681         * except.c (exception_handler_label_map): Move into...
4682         (struct eh_status): Here.
4683         (struct eh_region): Make 'aka' GCable.
4684         (free_eh_status): Don't need to specially handle
4685         exception_handler_label_map.
4686         (add_ehl_entry): Update for changes to exception_handler_label_map.
4687         (find_exception_handler_labels): Likewise.
4688         (remove_exception_handler_label): Likewise.
4689         (maybe_remove_eh_handler): Likewise.
4690         (for_each_eh_label): Likewise.
4691         (remove_eh_handler): Allocate 'aka' using GGC.
4692         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4693         to list of includes.
4695         * gengtype.c (write_gc_marker_routine_for_structure): Name
4696         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4697         (write_gc_types): Arrange for the tests with NULL to be inlined.
4698         (write_gc_roots): Update uses of procedure pointers.
4699         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4701         * Makefile.in (explow.o): Add dependency on gt-explow.h.
4702         (sdbout.o): Add dependency on gt-sdbout.h.
4704         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4705         (mem_attrs_htab): Likewise.
4706         (init_emit_once): Don't call ggc_add_deletable_htab.
4707         * fold-const.c (size_htab): Use gengtype to clear unused entries.
4708         (size_int_type_wide): Don't call ggc_add_deletable_htab.
4709         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4710         parameters, use them, change callers.
4711         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4712         (write_gc_roots): Handle 'if_marked' option.
4713         (main): Don't need to call set_gc_used_type any more.
4714         * ggc.h (ggc_htab_marked_p): Delete.
4715         (ggc_htab_mark): Delete.
4716         (struct ggc_cache_tab): New.
4717         (gt_ggc_cache_rtab): New declaration.
4718         * ggc-common.c (struct d_htab_root): Delete.
4719         (d_htab_roots): Delete.
4720         (ggc_add_deletable_htab): Delete.
4721         (ggc_htab_delete): Handle new htab-deleting mechanism.
4722         (ggc_mark_roots): Use new htab-deleting mechanism.
4723         * tree.c (type_hash_table): Use gengtype to clear unused entries.
4724         Make static.
4725         (init_obstacks): Don't call ggc_add_deletable_htab.
4727         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4728         (struct hashed_entry): Likewise.
4729         (nst_method_hash_list): Likewise.
4730         (cls_method_hash_list): Likewise.
4731         (HASH_ALLOC_LIST_SIZE): Delete.
4732         (ATTR_ALLOC_LIST_SIZE): Delete.
4733         * objc/objc-act.c (hash_init): Use ggc to allocate
4734         nst_method_hash_list, cls_method_hash_list.
4735         (hash_enter): Use ggc to allocate; allocate one entry at a time.
4736         (hash_add_attr): Likewise.
4737         (ggc_mark_hash_table): Delete.
4738         (objc_act_parse_init): Delete.
4739         (objc_init): Delete reference to objc_act_parse_init.
4740         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
4741         obstack.h.  Replace references to 'struct hash_table' with htab_t.
4742         (struct symbol_hash_entry): Replace hash header with key field.
4743         (struct file_hash_entry): Replace hash header with key field.
4744         (struct demangled_hash_entry): Replace hash header with key field.
4745         (hash_string_eq): New.
4746         (hash_string_hash): New.
4747         (symbol_hash_newfunc): Delete.
4748         (symbol_hash_lookup): Modify to use htab_t.
4749         (file_hash_newfunc): Delete.
4750         (file_hash_lookup): Modify to use htab_t.
4751         (demangled_hash_newfunc): Delete.
4752         (demangled_hash_lookup): Modify to use htab_t.
4753         (tlink_init): Modify to use htab_t.
4754         * hash.h: Delete.
4755         * hash.c: Delete.
4756         * ggc.h: Delete forward structure declarations.
4757         Delete prototypes for deleted functions.
4758         * ggc-common.c: Don't include hash.h.
4759         (ggc_add_tree_hash_table_root): Delete.
4760         (ggc_mark_tree_hash_table_entry): Delete.
4761         (ggc_mark_tree_hash_table): Delete.
4762         (ggc_mark_tree_hash_table_ptr): Delete.
4763         * gengtype.c (write_gc_structure_fields): Allow param_is option.
4764         (write_gc_marker_routine_for_structure): Use visibility of
4765         the parameter if there is one.
4766         * function.c: Replace hash.h with hashtab.h.  Replace references
4767         to 'struct hash_table *' with htab_t.
4768         (struct insns_for_mem_entry): Include a plain key.
4769         (fixup_var_refs_insns_with_hash): Update to use htab_t.
4770         (insns_for_mem_newfunc): Delete.
4771         (insns_for_mem_hash): Update to use htab_t.
4772         (insns_for_mem_comp): Likewise.
4773         (insns_for_mem_walk): Likewise.
4774         * c-lang.c: Include ggc.h.
4775         * Makefile.in (OBJS): Remove hash.o.
4776         (c-lang.o): Add GGC_H.
4777         (COLLECT2_OBJS): Remove hash.o.
4778         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4779         (ggc-common.o): Remove hash.h.
4780         (function.o): Remove hash.h, add HASHTAB_H.
4781         (genautomata.o): Remove hash.h, add HASHTAB_H.
4783         * varasm.c (mark_const_str_htab_1): Delete.
4784         (mark_const_str_htab): Delete.
4785         (const_str_htab_del): Delete.
4786         (const_str_htab): Use gengtype to mark.
4787         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
4788         allocate them.
4789         * tree.c (mark_tree_hashtable_entry): Delete.
4790         (mark_tree_hashtable): Delete.
4791         * tree.h (mark_tree_hashtable): Delete prototype.
4792         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4793         (ggc_mark): Likewise.
4794         (ggc_calloc): New.
4795         (htab_create_ggc): New.
4796         * ggc-common.c (ggc_calloc): New.
4797         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4798         (struct type): Add param_struct structure.
4799         * gengtype.c (param_structs): New.
4800         (adjust_field_type): Handle param_is option.
4801         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4802         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4803         (write_gc_structure_fields): Add new PARAM parameter.  Update
4804         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
4805         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4806         Use it to generate function name.  Update callers.
4807         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
4808         Process them.
4809         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
4810         option.
4811         (main): Define PTR as pointer-to-scalar.  Don't specially
4812         mark deferred_string or ehl_map_entry.
4813         * gengtype-yacc.y (PARAM_IS): Add new token.
4814         (externstatic): Use adjust_field_type.
4815         (type_option): Add PARAM_IS.
4816         * gengtype-lex.l: Add rule for typedef of function pointers.
4817         Add rule for PARAM_IS.
4818         (IWORD): Add size_t.
4819         * except.c (exception_handler_label_map): Use gengtype to mark.
4820         (type_to_runtime_map): Likewise.
4821         (mark_ehl_map_entry): Delete.
4822         (mark_ehl_map): Delete.
4823         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4824         (t2r_mark_1): Delete.
4825         (t2r_mark): Delete.
4826         * Makefile.in (gtype-desc.o): Correct dependencies.
4827         (GTFILES): Add hashtab.h.
4828         (genautomata.o): Actually uses hashtab.h.
4830         * Makefile.in (stringpool.o): Add $(GGC_H).
4831         (dwarf2asm.o): Likewise.
4832         (GTFILES): Add hashtable.h.
4833         * c-common.h (struct c_common_identifier): Use gengtype.
4834         * c-decl.h (c_mark_tree): Delete.
4835         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4836         * c-tree.h (struct lang_identifier): Use gengtype.
4837         (union lang_tree_node): New.
4838         (c_mark_tree): Delete prototype.
4839         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4840         dwarf2_debug_hooks.
4841         * gengtype-lex.l (IWORD): Allow 'bool'.
4842         (ptr_alias): Match.
4843         * gengtype-yacc.y (ALIAS): New token.
4844         (type_option): New rule.
4845         (option): Use type_option.
4846         * gengtype.c (process_gc_options): New.
4847         (set_gc_used_type): Use it.
4848         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4849         Add new variable 't' to hold the type of the field being processed.
4850         Add more error checking.  Use UNION_P when looking at 'desc' option.
4851         Handle language-specific structures containing other
4852         language-specific structures.
4853         (write_gc_types): Handle 'ptr_alias' option.
4854         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4855         * ggc-common.c (ggc_pending_trees): Delete.
4856         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4857         (ggc_mark_trees): Delete.
4858         (gt_ggc_m_tree_node): Delete.
4859         * ggc.h (ggc_pending_trees): Delete.
4860         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4861         * hashtable.h (ht_identifier): Use gengtype.
4862         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4863         * langhooks.h (struct lang_hooks): Delete mark_tree.
4864         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4865         anyway.
4866         * system.h: Poison LANG_HOOKS_MARK_TREE.
4867         * tree.c (tree_node_structure): New.
4868         * tree.h (struct tree_common): Use gengtype.
4869         (struct tree_int_cst): Likewise.
4870         (struct tree_real_cst): Likewise.
4871         (struct tree_string): Likewise.
4872         (struct tree_complex): Likewise.
4873         (struct tree_vector): Likewise.
4874         (struct tree_identifier): Likewise.
4875         (struct tree_list): Likewise.
4876         (struct tree_vec): Likewise.
4877         (struct tree_exp): Likewise.
4878         (struct tree_block): Likewise.
4879         (struct tree_type): Likewise.
4880         (struct tree_decl): Likewise.
4881         (enum tree_structure_enum): New.
4882         (union tree_node): Use gengtype, with an alias.
4883         (tree_node_structure): Prototype.
4884         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4886         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
4887         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
4888         to LANG_HOOKS_FUNCTION_FINAL.
4889         * Makefile.in (GTFILES): Add bitmap.h.
4890         * except.c (struct eh_region): Mark field 'aka' to be skipped.
4892         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4893         (alpha_init_machine_status): Give proper type.
4894         * Makefile.in (c-lang.o): Depend on gtype-c.h.
4895         (optabs.o): Depend on gt-optabs.h.
4896         (GTFILES): Add optabs.o.
4897         (gt-optabs.h): Add rule.
4898         * optabs.c: Include gt-optabs.h.
4900         * gengtype.c (set_gc_used_type): Correct some errors in last change.
4901         (write_gc_structure_fields): If a field which should be NULL is
4902         not, abort.
4903         * c-pragma.c: Move struct align_stack and variable alignment_stack
4904         out from the ifdef.
4906         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4907         * config/xtensa/xtensa.c: Include gt-cris.h.
4908         (struct machine_function): Use gengtype to mark.
4909         * config/mmix/mmix.h (struct machine_function): Use gengtype
4910         to mark.
4911         * config/cris/t-cris: Add dependencies for gt-cris.h.
4912         * config/cris/cris.c: Include gt-cris.h.
4913         (struct machine_function): Use gengtype to mark.
4914         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4915         to mark.
4916         * doc/tm.texi (Per-Function Data): Delete references to
4917         mark_machine_status.
4918         * config/ia64/ia64.c (ia64_override_options): Don't set
4919         mark_machine_status.
4920         * config/i386/i386.c (override_options): Likewise.
4921         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4922         * config/arm/arm.c (arm_init_expanders): Likewise.
4923         * config/alpha/alpha.c (override_options): Likewise.
4924         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
4925         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4926         (write_gc_structure_fields): Don't handle 'really' option.
4927         Handle 'maybe_null' option.
4928         (write_gc_types): Handle 'maybe_null' option.
4929         * function.h (struct function): Don't use "really".
4930         (mark_machine_status): Delete declaration.
4931         (mark_lang_status): Delete declaration.
4932         (gt_ggc_mr_machine_function): Delete prototype.
4933         (gt_ggc_mr_language_function): Delete prototype.
4934         * function.c (mark_machine_status): Delete.
4935         (mark_lang_status): Delete.
4936         (gt_ggc_mr_machine_function): Delete.
4937         (gt_ggc_mr_language_function): Delete.
4938         * c-tree.h (mark_c_function_context): Delete prototype.
4939         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4940         * c-decl.c (struct language_function): Rename from struct
4941         c_language_function.  Update uses.  Use gengtype to mark.
4942         (mark_c_function_context): Delete.
4943         * c-common.h (struct c_language_function): Rename from struct
4944         language_function.
4945         (mark_stmt_tree): Delete prototype.
4946         (c_mark_lang_decl): Delete prototype.
4947         (mark_c_language_function): Delete prototype.
4948         * c-common.c (mark_stmt_tree): Delete.
4949         (c_mark_lang_decl): Delete.
4950         (mark_c_language_function): Delete.
4952         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4953         (lang_bitmap): New typedef.  Use where appropriate.
4954         (struct type): Add gc_used field, lang_struct field.
4955         (UNION_P): New macro.
4956         (new_structure): New prototype.
4957         (find_structure): Remove 'pos' parameter.  Change all callers.
4958         * gengtype-lex.l: Update for changes to find_structure.
4959         * gengtype-yacc.y (typedef_struct): Use new_structure.
4960         (yacc_ids): Suppress warning.
4961         (type): Use new_structure.
4962         * gengtype.c (string_type): Update for changes to struct type.
4963         (find_structure): Just find a structure, don't worry about
4964         creating one.
4965         (new_structure): New.
4966         (note_yacc_type): Use new_structure.
4967         (set_gc_used_type): New.
4968         (set_gc_used): New.
4969         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4970         (write_gc_types): Handle TYPE_LANG_STRUCT.
4971         (write_gc_marker_routine_for_structure): New.
4972         (main): Call set_gc_used.  Add some calls to set_gc_used_type
4973         for places where GCC doesn't use gengtype properly yet.
4974         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4975         (gt_ggc_m_tree_node): Likewise.
4977         * varasm.c (copy_constant): Call expand_constant if we hit
4978         something we can't recognise.
4980         * ggc-common.c (ggc_mark_rtvec_children): Delete.
4981         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4982         (lang_mark_false_label_stack): Delete.
4983         * rtl.h (struct rtvec_def): Use gengtype to mark.
4984         * ggc.h (ggc_mark_rtvec): Delete.
4985         (gt_ggc_m_rtvec_def): Delete.
4986         (ggc_mark_nonnull_tree): Delete.
4987         (ggc_mark_rtvec_children): Delete prototype.
4988         (lang_mark_false_label_stack): Delete declaration.
4990         * gengtype.h (note_yacc_type): Add prototype.
4991         * gengtype.c (note_yacc_type): New function.
4992         * gengtype-lex.l: Add lexer support for yacc files.
4993         * gengtype-yacc.y (start): Extract union from yacc files.
4994         (yacc_union): New rule.
4995         (yacc_typematch): New rule.
4996         (yacc_ids): New rule.
4997         (enum_items): Tweak for efficiency.
4998         (optionseq): Likewise.
5000         * c-common.h (struct language_function): Use gengtype.
5001         (struct c_lang_decl): Likewise.
5002         * c-tree.h (struct lang_decl): Likewise.
5003         (struct lang_type): Likewise.
5004         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5005         tree language substructures.
5007         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5008         ggc_mark_tree.
5009         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5011         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5013         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
5014         mark. Remove 'data.block.cleanup_ptr' field.
5015         (struct stmt_status): Use usual technique to mark struct nesting.
5016         (gt_ggc_mr_nesting_cond): Delete.
5017         (gt_ggc_mr_nesting_loop): Delete.
5018         (gt_ggc_mr_nesting_block): Delete.
5019         (gt_ggc_mr_nesting_case_stmt): Delete.
5020         (expand_start_cond): Set discriminator.
5021         (expand_start_loop): Likewise.
5022         (expand_start_null_loop): Likewise.
5023         (expand_start_bindings_and_block): Set discriminator.  Don't set
5024         deleted fields.
5025         (expand_decl_cleanup): Replace 'cleanup_ptr' with
5026         &thisblock->data.block.cleanups.
5027         (expand_start_case): Set discriminator.
5028         (expand_start_case_dummy): Set discriminator.
5030         * ggc-callbacks.c: Remove.
5032         * gengtype.h (struct type): Add 'u.s.bitmap' field.
5033         (find_structure): Add 'pos' parameter.
5034         * gengtype-lex.l: Update callers to find_structure.
5035         * gengtype-yacc.y: Likewise.
5036         * gengtype.c (find_structure): Allow for structures to be defined
5037         in multiple language backends.
5038         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5039         (counter): Rename to gc_counter.
5040         (write_gc_structure_fields): Fail when writing out fields for
5041         an incomplete structure.  Ignore arrays of scalars.  Handle
5042         'tree_vec' special.
5043         (write_gc_types): Reset counter for each procedure written.
5045         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5046         (free_case_nodes): Delete.
5047         (expand_end_case_type): Delete call to free_case_nodes.
5049         * Makefile.in (cselib.o): Include gt-<filename>.h.
5050         (gcse.o): Likewise.
5051         (profile.o): Likewise.
5052         (alias.o): Likewise.
5053         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5054         alphabetize backend files.
5055         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5056         * alias.c: Use gengtype for roots.
5057         * c-common.h (struct stmt_tree_s): Use gengtype.
5058         * c-decl.c: Use gengtype for roots.
5059         * cselib.c: Use gengtype for roots.
5060         * expr.c: Use gengtype for roots.
5061         * fold-const.c: Use gengtype for roots.
5062         * gcse.c: Use gengtype for roots.
5063         * gengtype-lex.l: Handle typedefs of function types.
5064         Allow for empty array bounds.
5065         Allow processing to stop on initialisers.
5066         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5067         (semiequal): New rule.
5068         * gengtype.c (create_file): Tidy output files.
5069         (get_output_file_with_visibility): Fix paren warning.  Fix bug
5070         involving multiple input files mapping to one output file.
5071         (write_gc_structure_fields): Skip arrays of scalars.
5072         (write_gc_types): Tidy output files.
5073         (write_gc_root): New function.
5074         (write_gc_roots): Fix bugs, add support for roots that are
5075         structures.
5076         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5077         (ggc_mark_tree_ptr): Delete.
5078         (ggc_add_rtx_root): Delete.
5079         (ggc_add_tree_root): Delete.
5080         (ggc_del_root): Delete.
5081         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5082         allocate struct initial_value_struct.
5083         * profile.c: Use gengtype for roots.
5084         * sdbout.c: Use gengtype for roots.
5085         * varasm.c (mark_weak_decls): Delete unused prototype.
5086         (mark_const_hash_entry): Delete unused function.
5087         * config/darwin-protos.h: Use gengtype for roots.
5088         (machopic_add_gc_roots): Delete.
5089         * config/arm/arm.c: Use gengtype for roots.
5090         * config/arm/arm.h: Use gengtype for roots.
5091         * config/c4x/c4x-protos.h: Use gengtype for roots.
5092         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5093         * config/d30v/d30v-protos.h: Use gengtype for roots.
5094         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5095         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5096         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5097         * config/ia64/ia64-protos.h: Use gengtype for roots.
5098         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5099         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5100         * config/m68hc11/m68hc11.c (z_reg): Make global.
5101         (z_reg_qi): Make global.
5102         (m68hc11_add_gc_roots): Delete.
5103         * config/mcore/mcore-protos.h: Use gengtype for roots.
5104         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5105         * config/mips/mips.c (mips_add_gc_roots): Delete.
5106         * config/mips/mips.h: Use gengtype for roots.
5107         * config/mmix/mmix.c (override_options): Use gengtype for roots.
5108         * config/mmix/mmix.h: Use gengtype for roots.
5109         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5110         * config/mn10200/mn10200.h: Use gengtype for roots.
5111         * config/pa/pa.c: Use gengtype for roots, marking.
5112         (struct deferred_plabel): Use GGC, gengtype.
5113         (pa_add_gc_roots): Delete.
5114         (mark_deferred_plabels): Delete.
5115         * config/pj/pj-protos.h: Use gengtype for roots.
5116         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5117         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
5118         machopic_add_gc_roots.
5119         * config/rs6000/rs6000.h: Use gengtype for roots.
5120         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5121         (gt-darwin.h): Add rule.
5122         * config/sh/sh.c: Use gengtype for roots.
5123         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5124         (gt-sh.h): Add rule.
5125         * config/sparc/sparc.c: Use gengtype for roots.
5126         (sparc_add_gc_roots): Delete.
5127         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5128         (mark_ultrasparc_pipeline_state): Delete.
5129         * config/sparc/sparc.h: Use gengtype for roots.
5131         * Makefile.in (c-parse.o): Update dependencies.
5132         (c-common.o): Likewise.
5133         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5134         Add dependencies for the files they generate.
5135         * c-common.c: Replace ggc_add_* uses with GTY annotations.
5136         * c-common.h: Likewise.
5137         * c-decl.c: Likewise.
5138         (gt_ggc_mp_binding_level): Delete.
5139         * c-lang.c: Include gtype-c.h.
5140         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
5141         gt-c-parse.h.
5142         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
5143         (gt_ggc_mp_align_stack): Delete.
5144         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
5145         * function.c: Replace ggc_add_* uses with GTY annotations.
5146         (gt_ggc_mp_function): Delete.
5147         * function.h: Replace ggc_add_* uses with GTY annotations.
5148         * gengtype.c (lang_names): New.
5149         (NUM_BASE_FILES): New.
5150         (open_base_files): Create language base files.
5151         (startswith): New.
5152         (get_file_basename): New.
5153         (get_base_file_bitmap): New.
5154         (get_output_file_with_visibility): Rename from get_output_file.
5155         Add more mappings for various C/Objc filenames.
5156         (finish_root_table): New.
5157         (write_gc_roots): Handle dependencies and scoping properly.
5158         * gengtype.h: Add prototypes for new functions.
5159         * ggc-common.c (struct deletable_root): Delete.
5160         (deletables): Delete.
5161         (ggc_add_deletable_root): Delete.
5162         (ggc_mark_roots): No need to deal with deleted functionality.
5163         * ggc.h (ggc_add_deletable_root): Delete prototype.
5164         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
5165         (gtype-objc.h): Add rule to create.
5166         * objc/config-lang.in (gtfiles): New.
5167         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
5168         ggc_add_* with GTY markers.  Include gtype-objc.h.
5169         (ggc_mark_imp_list): Delete.
5170         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
5171         * objc/objc-lang.c: Random Whitespace Change.
5173         * except.h (exception_handler_labels): Delete.
5174         (get_exception_handler_labels): New.
5175         * except.c (exception_handler_labels): Delete.
5176         (struct eh_status): Add exception_handler_labels field.
5177         (doing_eh): Don't add exception_handler_labels as root.
5178         (free_eh_status): Don't need to free exception_handler_labels.
5179         (get_exception_handler_labels): New.
5180         (find_exception_handler_labels): Update for move of
5181         exception_handler_labels.
5182         (remove_exception_handler_label): Likewise.
5183         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
5184         * jump.c (rebuild_jump_labels): Likewise.
5185         * loop.c (find_and_verify_loops): Likewise.
5186         * sched-rgn.c (is_cfg_nonregular): Likewise.
5188         * gengtype.c (write_gc_structure_fields): Handle variable-length
5189         TYPE_ARRAYs.
5191         * varasm.c (struct weak_syms): Use GGC, gengtype.
5192         (mark_weak_decls): Delete.
5193         (weak_decls): Likewise.
5194         (add_weak): Likewise.
5195         (remove_from_pending_weak_list): Likewise.
5196         (init_varasm_once): Likewise.
5198         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
5199         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
5200         stor-layout.c, regclass.c, and lists.c.
5201         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
5202         gt-regclass.h and gt-lists.h on s-gtype.
5203         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
5204         * except.c: Use gengtype for roots.
5205         * explow.c: Use gengtype for roots.  Include gt-explow.h.
5206         * expr.h (init_stor_layout_once): Delete prototype.
5207         * function.c: Use gengtype for roots.
5208         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
5209         * gengtype-yacc.y (start): Can also be an externstatic.
5210         (externstatic): New production.
5211         (struct_fields): Correct array bounds inversion for 2-d arrays.
5212         * gengtype.c (variables): New variable.
5213         (note_variable): New function.
5214         (get_output_file): Include libfuncs.h into gtype-desc.c.
5215         (get_output_file_name): New function.
5216         (write_gc_structure_fields): Suppress warnings.
5217         (write_gc_types): Make static.
5218         (put_mangled_filename): New function.
5219         (write_gc_roots): New function.
5220         (main): Call write_gc_roots.
5221         * gengtype.h (note_variable): Prototype.
5222         (get_output_file_name): Prototype.
5223         (write_gc_types): Delete prototype.
5224         * ggc.h: Clean up unnecessary structure predefinitions.
5225         (struct ggc_root_tab): Define.
5226         (gt_ggc_m_rtx_def): Make function, not macro.
5227         (gt_ggc_m_tree_node): Likewise.
5228         * libfuncs.h: Use gengtype for roots.
5229         * lists.c: Use gengtype for roots.  Include gt-lists.h.
5230         (init_EXPR_INSN_LIST_cache): Delete.
5231         * optabs.c: Use gengtype for roots.
5232         (gt_ggc_mp_optab): Delete.
5233         * optabs.h: Use gengtype for roots.
5234         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
5235         * rtl.h: Use gengtype for roots.
5236         (init_EXPR_INSN_LIST_cache): Delete prototype.
5237         * stor-layout.c: Use gengtype for roots.
5238         Include gt-stor-layout.h.
5239         (init_stor_layout_once): Delete.
5240         * toplev.c: Use gengtype for roots.  Delete calls to deleted
5241         routines.
5242         * tree.c: Use gengtype for roots.
5243         * tree.h: Use gengtype for roots.
5244         * varasm.c: Use gengtype for roots.
5246         * Makefile.in (GTFILES): Add @all_gtfiles@.
5247         * configure: Regenerate.
5248         * configure.in: Construct all_gtfiles from the gtfiles definitions
5249         in config-lang.in.
5250         * gengtype-yacc.y (type): Warn about duplicate structure names.
5251         * gengtype.c (get_output_file): Handle .c files in language
5252         subdirectories.
5254         * Makefile.in (GTFILES): Run gengtype on all the config files
5255         and on the target .c file.
5256         * except.c (mark_eh_region): Delete.
5257         (init_eh_for_function): Use GGC on struct eh_status.
5258         (mark_eh_status): Delete.
5259         (free_eh_status): Use GGC.
5260         (expand_eh_region_start): Use GGC to
5261         (collect_eh_region_array): Allocate last_region_number using GGC.
5262         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
5263         (remove_eh_handler): Let GGC free struct eh_region.
5264         (add_call_site): Use GGC to reallocate call_site_record array.
5265         * function.c (init_machine_status): Update calling sequence.
5266         (mark_machine_status): Likewise.
5267         (mark_lang_status): Likewise.
5268         (prepare_function_start): Update init_machine_status call.
5269         (mark_function_status): Delete.
5270         (maybe_mark_struct_function): Delete.
5271         (ggc_mark_struct_function): Delete.
5272         (gt_ggc_mp_function): New.
5273         (gt_ggc_mr_machine_function): New.
5274         (gt_ggc_mr_language_function): New.
5275         (init_function_once): Use canonical names.
5276         * function.h (struct function): Use gengtype.
5277         (init_machine_status): Return the structure.
5278         (mark_machine_status): Take a 'void *'.
5279         (mark_lang_status): Likewise.
5280         * ggc-common.c (ggc_mark_trees): Use canonical name for
5281         ggc_mark_struct_function.
5282         * tree.h (ggc_mark_struct_function): Delete prototype.
5283         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
5284         (alpha_init_machine_status): Likewise.
5285         (override_options): Use canonical name for alpha_mark_machine_status.
5286         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
5287         * config/arm/arm.h (struct machine_function): Use gengtype.
5288         * config/arm/arm.c (arm_mark_machine_status): Delete.
5289         (arm_init_machine_status): Update calling sequence.
5290         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
5291         * config/cris/cris.c (cris_init_machine_status): Update
5292         calling sequence.
5293         * config/d30v/d30v.h (struct machine_function): Use gengtype.
5294         * config/d30v/d30v.c (d30v_init_machine_status): Update
5295         calling sequence.
5296         (d30v_mark_machine_status): Delete.
5297         * config/i386/i386.c: Include gt-i386.h.
5298         (struct machine_function): Use gengtype.
5299         (ix86_init_machine_status): Update calling sequence.
5300         (ix86_mark_machine_status): Delete.
5301         (override_options): Use canonical namke for ix86_mark_machine_status.
5302         * config/ia64/ia64.h (struct machine_function): Use gengtype.
5303         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
5304         sequence.
5305         (ia64_mark_machine_status): Delete.
5306         (ia64_override_options): Use canonical name for
5307         ia64_mark_machine_status.
5308         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
5309         sequence.
5310         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
5311         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5312         * gengtype.c (get_output_file): Fix warning.
5313         (main): Add prototype to suppress warning.
5314         * tree.c: Remove tree_hash_mark prototype.
5316         * tree.h (init_stmt): Delete prototype.
5317         * toplev.c (lang_independent_init): Don't call init_stmt.
5318         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
5319         (stmt_obstack): Delete.
5320         (POPSTACK): No need to free 'struct nesting'.
5321         (gt_ggc_mr_nesting_cond): Use canonical names.
5322         (gt_ggc_mr_nesting_loop): Use canonical names.
5323         (gt_ggc_mr_nesting_block): Use canonical names.
5324         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
5325         (mark_stmt_status): Delete.
5326         (init_stmt): Delete.
5327         (clear_last_expr): Clear both last_expr_type and last_expr_value.
5328         Use it everywhere that last_expr_type was cleared.
5329         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
5330         (zap_lists): Delete.
5331         * ggc.h (ggc_add_deletable_root): Prototype.
5332         (mark_stmt_status): Remove prototype.
5333         * ggc-common.c (ggc_add_deletable_root): New.
5334         (ggc_mark_roots): Handle deletable roots.
5335         * function.c (ggc_mark_struct_function): Use canonical name
5336         for mark_stmt_status.
5337         * emit-rtl.c (free_sequence_stack): New.
5338         (start_sequence): Use a freelist for sequences.
5339         (end_sequence): Likewise.
5340         (init_emit_once): Add free_sequence_stack as a deleteable root.
5341         * c-pragma.c Include gt-c-pragma.h.
5342         (struct align_stack): Use gengtype.
5343         (push_alignment): Use GGC for struct align_stack.
5344         (mark_align_stack): Delete.
5345         (gt_ggc_mp_align_stack): New.
5346         (init_pragma): Use canonical name for mark_align_stack.
5347         * c-decl.c: Include gt-c-decl.h.
5348         (struct binding_level): Use gengtype.
5349         (make_binding_level): Use GGC; handle the freelist here.
5350         (pop_binding_level): New.
5351         (pushlevel): Move code into make_binding_level.
5352         (push_label_level): Likewise.
5353         (poplevel): Move code into pop_binding_level.
5354         (pop_label_level): Likewise.
5355         (mark_binding_level): Delete.
5356         (gt_ggc_mp_binding_level): New.
5357         (c_init_decl_processing): Use canonical name for mark_binding_level.
5358         Add free_binding_level as deletable root.
5359         (mark_c_function_context): Use canonical name for mark_binding_level.
5360         * Makefile.in (c-decl.o): Add gt-c-decl.h.
5361         (c-pragma.o): Add gt-c-pragma.h.
5362         (GTFILES): Add c-decl.c and c-pragma.c.
5363         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
5365         * tree.c (struct type_hash): Use gengtype.
5366         (init_obstacks): Use canonical name for type_hash_mark.
5367         (type_hash_mark): Delete.
5368         Include gt-tree.h.
5369         * rtl.h (struct mem_attrs): Use gengtype.
5370         * optabs.h (struct optab): Use gengtype.
5371         * optabs.c (expand_binop): Squish signed/unsigned warning.
5372         (mark_optab): Make local, use canonical name, use autogenerated
5373         marker procedure.
5374         (init_optabs): Use canonical name for mark_optab.
5375         (new_optab): Use GGC to allocate optabs.
5376         * ggc.h: Delete mark_optab prototype.
5377         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5378         mem_attrs marker procedure.
5379         * gengtype.c (get_output_file): Include headers in gtype-desc.c
5380         explicitly rather than deducing them from file names.
5381         (write_gc_structure_fields): Handle arrays of structures.
5382         (main): Return non-zero exit code if errors occur during output.
5383         * emit-rtl.c (mem_attrs_mark): Delete.
5384         (init_emit_once): Use canonical name for mem_attrs marker procedure.
5385         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5386         (tree.o): Depend on gt-tree.h.
5387         (GTFILES): Add rtl.h, optabs.h, tree.c.
5388         (gt-tree.h): Add it to s-gtype rule.
5390         * .cvsignore: Ignore gengtype flex/bison generated files.
5391         * Makefile.in (GGC_H): Add gtype-desc.h.
5392         (OBJS): Add gtype-desc.o.
5393         (GEN): Add gengtype.
5394         (STAGESTUFF): Add gengtype.
5395         (varasm.o): Add gt-varasm.h.
5396         (stmt.o): Add gt-stmt.h.
5397         (except.o): Add gt-except.h.
5398         (integrate.o): Add gt-integrate.h.
5399         (GTFILES): New.
5400         Add new rules for new files.
5401         * configure: Regenerate.
5402         * configure.in: Correct defaults.h paths.
5403         * emit-rtl.c (mark_sequence_stack): Delete.
5404         (mark_emit_status): Delete.
5405         (start_sequence): Allocate sequence structures using GGC.
5406         (end_sequence): Allocate sequence structures using GGC.
5407         * except.c: Use gengtype for various structures.  Include
5408         gt-except.h.
5409         * expr.c (mark_expr_status): Delete.
5410         * function.c: Use gengtype for various structures.  Include
5411         gt-function.h.
5412         (mark_function_status): Use standard gt_ggc names for marker functions.
5413         (ggc_mark_struct_function): Likewise.
5414         * function.h: Use gengtype for various structures.
5415         * gengtype-lex.l: New file.
5416         * gengtype-yacc.y: New file.
5417         * gengtype.c: New file.
5418         * gengtype.h: New file.
5419         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
5420         the standard names.  Remove some now-unnecessary prototypes.
5421         * integrate.c: Use gengtype for various structures.  Include
5422         gt-integrate.h.
5423         (mark_hard_reg_initial_vals): Delete.
5424         * integrate.h (mark_hard_reg_initial_vals): Delete.
5425         * stmt.c: Use gengtype for various structures.  Include
5426         gt-stmt.h.
5427         (mark_case_node): Delete.
5428         (mark_goto_fixup): Delete.
5429         (mark_stmt_status): Use standard gt_ggc names for marker functions.
5430         * system.h: Define GTY to empty.   In flex/bison files,
5431         don't poison malloc or realloc, instead just define them to
5432         xmalloc and xrealloc.
5433         * varasm.c: Use gengtype for various structures.  Include
5434         gt-varasm.h.  Use standard gt_ggc names for marker functions.
5435         (mark_pool_constant): Delete.
5436         (mark_varasm_status): Delete.
5437         (decode_rtx_const): #if 0 out non-typesafe hack.
5439         * function.h (free_lang_status): Mark as obsolete.
5440         * function.c (free_lang_status): Mark as obsolete.
5441         * c-decl.c (push_c_function_context): Use GC to allocate and free
5442         struct language_function.
5443         (pop_c_function_context): Likewise.
5444         * c-common.c (mark_c_language_function): Mark struct
5445         language_function.
5447         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5448         Document that the machine_function structures must be allocated
5449         using GC.  Update mark_machine_status documentation.
5450         * function.h: Don't declare free_machine_status.
5451         * function.c (free_machine_status): Don't define.
5452         (free_after_compilation): Don't call free_machine_status.
5453         (ggc_mark_struct_function): Mark f->machine.  Call
5454         mark_machine_status only on non-NULL pointers.
5455         * system.h: Poison free_machine_status.
5456         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5457         struct machine_function.
5458         (xtensa_free_machine_status): Delete.
5459         (override_options): Don't set free_machine_status.
5460         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5461         free_machine_status.
5462         (rs6000_init_machine_status): Use GC on struct machine_function.
5463         (rs6000_free_machine_status): Delete.
5464         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5465         machine_function.
5466         (ia64_mark_machine_status): Likewise.
5467         (ia64_free_machine_status): Delete.
5468         (ia64_override_options): Don't set free_machine_status.
5469         * config/i386/i386.c (override_options): Don't set
5470         free_machine_status.
5471         (ix86_init_machine_status): Use GC on struct machine_function.
5472         (ix86_mark_machine_status): Likewise.
5473         (ix86_free_machine_status): Delete.
5474         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5475         machine_function.
5476         (d30v_mark_machine_status): Likewise.
5477         (d30v_free_machine_status): Delete.
5478         (d30v_init_expanders): Don't set free_machine_status.
5479         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5480         machine_function.
5481         (arm_init_machine_status): Likewise.
5482         (arm_free_machine_status): Delete.
5483         (arm_init_expanders): Don't set free_machine_status.
5484         * config/alpha/alpha.c (override_options): Don't set
5485         free_machine_status.
5486         (alpha_init_machine_status): Use GC on struct machine_function.
5487         (alpha_mark_machine_status): Likewise.
5488         (alpha_free_machine_status): Delete.
5490         * varasm.c (compare_constant): Fix typo.
5492         * varasm.c: Don't include obstack.h.
5493         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5494         (struct rtx_const): Give substructures names, improve formatting.
5495         (struct constant_descriptor): Delete.
5496         (struct constant_descriptor_tree): New, based on constant_descriptor.
5497         (const_hash_table): Is a hash table of trees.
5498         (mark_const_hash_entry): Is used for hashes of trees.  Mark
5499         constant_descriptor_tree structure.
5500         (mark_const_str_htab_1): Mark deferred_string structure.
5501         (compare_constant): Rewrite to compare trees.
5502         (compare_constant_1): Delete.
5503         (record_constant): Delete.
5504         (record_constant_1): Delete.
5505         (output_constant_def): Use struct constant_descriptor_tree.
5506         Don't duplicate trees twice.
5507         (struct constant_descriptor_rtx): New.
5508         (struct pool_constant): Used for rtx constants.
5509         (init_varasm_status): Update for change to struct varasm_status.
5510         (mark_varasm_status): Likewise.
5511         (free_varasm_status): Delete.
5512         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5513         (record_constant_rtx): Likewise.
5514         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5515         (force_const_mem): Likewise.
5516         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5517         * function.c (free_after_compilation): Don't use free_varasm_status.
5518         * function.h: Don't prototype free_varasm_status.
5520         * ggc-common.c (ggc_realloc): Handle X being NULL.
5522         * ggc-common.c (ggc_realloc): New function.
5523         * ggc.h: Prototype it.
5524         * emit-rtl.c (free_emit_status): Delete.
5525         (init_emit): Allocate emit subarrays using GC.
5526         (gen_reg_rtx): Reallocate subarrays using GC.
5527         (init_emit): Use GC to allocate 'struct emit_status' and its
5528         subarrays.
5529         (mark_emit_status): Mark structure and its subarrays.
5530         * stmt.c (free_stmt_status): Delete.
5531         * expr.c (free_expr_status): Delete.
5532         * function.h: Remove prototypes for deleted functions.
5533         * function.c (free_after_compilation): Don't use deleted functions.
5534         Don't call free() on x_parm_reg_stack_loc.
5535         (free_after_parsing): Don't use free_stmt_status.
5536         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5537         (mark_function_status): Mark x_parm_reg_stack_loc.
5539         * varasm.c (init_varasm_status): Use GC to allocate
5540         'struct varasm_status' and its fields x_const_rtx_hash_table
5541         and x_const_rtx_sym_hash_table.
5542         (mark_varasm_status): Mark them.
5543         (free_varasm_status): Use GC to free them.
5544         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5545         (mark_expr_status): Mark the structure itself.
5546         (free_expr_status): Use GC to free the structure.
5547         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5548         (mark_stmt_status): Mark the 'struct stmt_status' itself.
5549         (init_stmt_for_function): Allocate the structure for GC.
5551         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5552         (equate_type_number_to_die): Likewise.
5553         * tree.h (TYPE_SYMTAB_DIE): New macro.
5554         (struct die_struct): Predeclare.
5555         (struct tree_type): Add field symtab.die.   Add a tag
5556         to the union type of field symtab.
5558         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5559         'struct rtvec_def *', not 'struct rtvec_def'.
5561         * function.h (original_arg_vector): Make a real rtvec.
5562         * function.c (ggc_mark_struct_function): Adjust.
5563         * integrate.c (expand_inline_function): Adjust.
5565 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5567         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5568         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5569         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5570         (TARGET_VERSION_CPU): Define according to the
5571         default target.
5572         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5573         TARGET_VERSION_CPU.
5574         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5575         if TARGET_SHMEDIA64.
5576         (LINK_DEFAULT_CPU_EMUL): Define according to the
5577         default target.
5578         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5579         (SUBTARGET_LINK_SPEC): Define.
5580         (LINK_SPEC): Use SH_LINK_SPEC.
5581         (ASM_SPEC): Remove.
5582         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5583         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5584         and TARGET_SHMEDIA64 which abort, for now.
5585         * config/sh/t-netbsd-sh5: New file.
5586         * config/sh/t-netbsd-sh5-32: New file.
5587         * config/sh/t-netbsd-sh5-64: New file.
5589 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5590             Richard Henderson  <rth@redhat.com>
5592         * config/alpha/alpha.c (reg_or_const_int_operand): New.
5593         (some_operand, input_operand): Accept CONST_VECTOR.
5594         (alpha_extra_constraint): Add 'W'.
5595         (alpha_expand_zap_mask): New.
5596         (alpha_expand_builtin_vector_binop): New.
5597         (enum alpha_builtin): New.
5598         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5599         (alpha_init_builtins, alpha_expand_builtin): New.
5600         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5601         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5602         (PREDICATE_CODES): Update.
5603         * config/alpha/alpha-protos.h: Update.
5604         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5605         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5606         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5607         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5608         (movv2si, movv2si_fix, movv2si_nofix): New.
5609         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5610         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5611         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5612         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5613         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5614         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5615         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5616         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5617         builtin_unpkbw, unpkbw): New.
5618         * doc/extend.texi (Alpha Built-in Functions): New.
5620 2002-06-03  Richard Henderson  <rth@redhat.com>
5622         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5623         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5625 2002-06-03  Richard Henderson  <rth@redhat.com>
5627         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5629         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5630         (const0_operand): New.
5631         (reg_or_fp0_operand, fp0_operand): Remove.
5632         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5633         * config/alpha/alpha-protos.h: Update.
5634         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5635         and fp0_operand with reg_or_0_operand and const0_operand.
5637 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
5639         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5641 2002-06-03  Roger Sayle  <roger@eyesopen.com>
5643         * gcse.c (cprop_jump): Use single_set to get the pattern
5644         from the setcc argument.
5646 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
5648         * diagnostic.h (diagnostic_count): Move from output_buffer to
5649         diagnostic_context.
5650         (diagnostic_kind_count): Adjust definition.
5652 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
5654         * except.c (except.c): Do not rebuild CFG.
5655         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5656         optimization.
5658 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
5660         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5661         * toplev.c: Include cfglahout.h
5662         * Makefile.in (toplev.c): Add dependnecy.
5664 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5666         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5667         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5668         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5670 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5672         * config/ns32k/netbsd.h: Update copyright years.
5673         (TARGET_OS_CPP_BUILTINS): Define.
5674         (CPP_PREDEFINES): Remove.
5675         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5676         (TARGET_CPU_CPP_BUILTINS): Define.
5678 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5680         * emit-rtl.c: Fix formatting.
5681         * errors.h: Likewise.
5682         * except.c: Likewise.
5683         * explow.c: Likewise.
5684         * expmed.c: Likewise.
5685         * expr.c: Likewise.
5686         * expr.h: Likewise.
5688 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
5690         * config/h8300/elf.h: Fix formatting.
5691         * config/h8300/rtems.h: Likewise.
5693 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
5695         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5697 2002-06-02  Tom Tromey  <tromey@redhat.com>
5699         * fixinc/fixincl.x: Rebuilt.
5700         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5702 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5704 config/i370:
5705         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5706         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5707         * mvs.h: Similarly.
5708         * oe.h: Similarly.
5710 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
5712         * final.c (final):  Allow notes to not have computed addresses;
5713         kill no longer needed STACK_REGS ifdef.
5715 2002-06-02  Richard Henderson  <rth@redhat.com>
5717         * gcse.c (bypass_conditional_jumps): Fix typo last change.
5719 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
5721         * loop.c (emit_prefetch_instructions): Properly place the address
5722         computation.
5724 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
5726         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5727         (set_block_for_insn): Turn into macro.
5728         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5729         * cfglayout.c (insn_scopes): Kill.
5730         (scope_to_insns_initialize): Do not use insn_scopes.
5731         (scope_to_insns_finalize): Likewise.
5732         (duplicate_insn_chain): Likewise.
5733         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5734         * cfgrtl.c (basic_block_for_insn): Kill.
5735         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5736         (create_basic_block_structure): Use reorder_insns.
5737         (compute_bb_for_insn): Do not use basic_block_for_insn.
5738         (merge_blocks_nomove): Likewise.
5739         (update_bb_for_insn): Likewise.
5740         (verify_flow_info): Likewise.
5741         (set_block_for_insn): Kill.
5742         * combine.c (try_combine): Update gen_rtx_INSN call.
5743         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5744         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5745         scopes and BBs.
5746         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5747         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5748         Clear BB.
5749         (emit_insns_after): Simplify.
5750         (emit_copy_of_insn_after): Copy scope.
5751         * final.c (final_start_function): Lower scopes.
5752         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5753         * integrate.c (copy_insn_list): Cope scopes.
5754         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5755         * loop.c (loop_optimize): Do not care block notes.
5756         * print-rtl.c (print_rtx): Print BB.
5757         * recog.c (apply_change_group): Simplify.
5758         * rtl.c (copy_rtx): Handle 'B'.
5759         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5760         * rtl.h (Field accessors): Update indexes.
5761         * sched-ebb.c (schedule_ebbs): Do not lower notes.
5762         * sched-rgn.c (schedule_insns): Likewise.
5763         * toplev.c (rest_of_compilation): Lower notes.
5764         * unroll.c (unroll_loop): Do not care scoping notes.
5765         (copy_loop_body): Copy scopes.
5767 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5769 config/h8300:
5770         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5771         SUBTARGET_SPEC.
5772         * rtems.h: Similarly.
5773         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5774         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5775         (TARGET_CPU_CPP_BUILTINS): Use.
5777 2002-06-02  Richard Henderson  <rth@redhat.com>
5779         * alias.c: Include target.h.
5780         (mark_constant_function): Use targetm.binds_local_p instead
5781         of checking TREE_PUBLIC ourselves.
5782         * Makefile.in (alias.o): Add TARGET_H.
5784 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5786         * c-lex.c: Update copyright and file description.
5788 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5790         * config/fr30/fr30.h: Update to new CPP macros.
5792 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5794         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5796 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5797             Zack Weinberg <zack@codesourcery.com>
5799         * c-common.c (c_common_init): Override cpplib's default
5800         warn_long_long setting.
5801         * c-lex.c (lex_number): Replace with interpret_integer,
5802         interpret_float, narrowest_unsigned_type and
5803         narrowest_signed_type, taking advantage of the new
5804         cpplib functionality.
5805         * cpperror.c (_cpp_begin_message): If a warning is turned
5806         into an error, avoid printing "warning:".
5807         * cppexp.c (cpp_num_sign_extend): New.
5808         * cppinit.c: Update comment.
5809         * cpplib.h (cpp_num_sign_extend): New.
5810         * tree.h: Update comment.
5812 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5814         * diagnostic.h (struct diagnostic_context):  Add new member
5815         internal_error.
5816         (internal_error_function): Remove declaration.
5817         * diagnostic.c (internal_error_function): Remove definition..
5818         (internal_error): Adjust use.
5820 2002-06-02  Richard Henderson  <rth@redhat.com>
5822         * rtl.h (CC0_P): New.
5823         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
5824         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
5825         (bypass_block): Save old dest block for dump text.
5826         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5827         Allow only true SET insns, not single_set.
5829 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
5831         * diagnostic.c (diagnostic_finish): Rename to output_flush.
5832         (clear_disgnostic_info): Rename to output_clear_data.  Use false
5833         instead of 0 for boolean value.
5834         Adjust function call throughout.
5836 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5838         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5839         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5841 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5843         * d30v.h (CPP_PREDEFINES): Replace with
5844         (TARGET_CPU_CPP_BUILTINS): New.
5846 2002-06-02  Roger Sayle  <roger@eyesopen.com>
5848         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5850 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
5852         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5854 2002-06-02  Richard Henderson  <rth@redhat.com>
5856         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5858 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5860         Support for C++ constructors/destructors.
5861         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5862         instead of looping if main() returns.
5863         (asm_file_start): Output global symbols that cause .data and .bss
5864         initialization code to be linked in, unconditionally for now.
5865         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5866         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5867         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5868         (LIBSTDCXX): New.
5869         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5870         (__tablejump__): New.
5871         (__do_copy_data, __do_clear_bss): New.
5872         (__do_global_ctors, __do_global_dtors): New.
5873         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5874         _ctors, _dtors.
5876 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5878         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5879         (CPP_SPEC, CPP_PREDEFINES): Kill.
5880         * c4x/rtems.h (CPP_PREDEFINES): Kill.
5881         (TARGET_OS_CPP_BUILTINS): New.
5883 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
5885         * Makefile.in (tracer.o): New.
5886         * params.def (TRACER_*): New options.
5887         * rtl.h (tracer): Declare.
5888         * timevar.def (TV_TRACER): New.
5889         * toplev.c (dump_file_index): Add DFI_tracer.
5890         (dump_file_info): Add tracer.
5891         (flag_tracer): New.
5892         (lang_indepdenent_options): Add tracer.
5893         (rest_of_compilation): Call tracer.
5894         * tracer.c: New file.
5895         * invoke.texi (-ftracer): Document.
5896         (--param tracer-*): Document.
5898 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
5900         * tree-inline.c (expand_call_inline): Make the statement
5901         expression we generate have a COMPOUND_STMT.
5903 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5905         * gcse.c (cprop_cc0_jump): Function deleted.
5906         (cprop_jump): Take an additional argument which is the possibly
5907         NULL cc setting insn immediately before the conditional jump.
5908         When a MODE_CC set is present, substitute it into the JUMP_INSN
5909         before attempting the constant propagation.
5910         (cprop_insn):  Recognize cc setters followed by conditional jumps
5911         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
5912         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
5913         (find_bypass_set): New function based upon find_avail_set used by
5914         cprop, but finds constant expressions available at the end of
5915         basic blocks.
5916         (bypass_block): New function.  Given a basic block that begins
5917         with a conditional jump and multiple incoming edges, perform
5918         the jump bypass optimization.
5919         (bypass_conditional_jumps): New function.  Call bypass_block with
5920         each suitable basic block in the CFG using a simple single pass.
5922 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5924         * tree.c (real_minus_onep): New function to test for -1.0.
5925         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
5927 2002-06-01  Roger Sayle  <roger@eyesopen.com>
5929         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5930         and "!p && !q" into "(p|q) == 0" under suitable conditions.
5932 2002-06-01  Andreas Jaeger  <aj@suse.de>
5934         * cppexp.c (cpp_classify_number): Cast precission to int for
5935         correct printf format.
5937 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5939         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5940         expected, but don't really exist: atmega83, atmega85, attiny10.
5941         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5942         emulations for all devices.
5943         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5944         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5946 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
5948         * config/h8300/h8300-protos.h: Add a prototype for
5949         h8300_shift_needs_scratch_p.
5950         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5951         * config/h8300/h8300.h (OK_FOR_R): New.
5952         (OK_FOR_S): Likewise.
5953         (OK_FOR_T): Likewise.
5954         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5955         * config/h8300/h8300.md (anonymous shift patterns): Use
5956         constraints R, S, and T.
5958 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5960         * basic-block.h (struct basic_block_def): New field loop_father.
5961         (BB_VISITED): New flag.
5962         (struct loop): New field pred, removed field shared.
5963         (struct loops): New field parray.
5964         (LOOP_EXITS_DOMS): Removed.
5965         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5966         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5967         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5968         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5969         verify_loop_structure): Declare.
5970         * cfg.c (entry_exit_blocks): Initialize loop_father field.
5971         * cfganal.c (dfs_enumerate_from): New function.
5972         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5973         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5974         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5975         flow_loop_dump, flow_loops_dump, flow_loops_free,
5976         flow_loop_tree_node_add, flow_loop_level_compute,
5977         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5978         flow_loop_outside_edge_p): Modified for new infrastructure.
5979         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5980         redirect_edge_with_latch_update, flow_loop_free): New static functions.
5981         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5982         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5983         find_common_loop, verify_loop_structure, loop_latch_edge,
5984         loop_preheader_edge): New functions.
5985         (flow_loops_cfg_dump): Do not show dominators, as this information
5986         does not remain up to date long.
5987         (flow_loops_find): Store results in new format.
5988         * predict.c (propagate_freq, estimate_probability,
5989         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5990         infrastructure.
5992 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
5994         * except.c (nothrow_function_p): Walk epilogue delay list
5995         checking the insn, not the chain for potential throws.
5997 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
5999         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6000         (install): Refer to install-cpp directly.
6001         (uninstall-cpp): Folded into uninstall rule.
6002         * configure.in: Delete all code relating to --disable-cpp.
6003         * configure: Regenerate.
6004         * config/t-install-cpp: Delete.
6006 2002-05-31  Richard Henderson  <rth@redhat.com>
6008         * configure.in (HAVE_AS_TLS): Add alpha tests.
6009         * configure: Rebuild.
6010         * config/alpha/alpha.c (TARGET_AS_TLS): New.
6011         (alpha_tls_size, alpha_tls_size_string): New.
6012         (overide_options): Set it.  Always install machine_status hooks.
6013         (input_operand): Accept got tls predicates.
6014         (local_symbol_p): Merge into ...
6015         (local_symbolic_operand): ... here.  Reject tls symbols.
6016         (global_symbolic_operand): Likewise.
6017         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6018         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6019         (tp16_symbolic_operand, tp32_symbolic_operand): New.
6020         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6021         (alpha_encode_section_info): Handle TLS symbols.
6022         (alpha_strip_name_encoding): Likewise.
6023         (alpha_legitimate_address_p): Likewise.
6024         (alpha_legitimize_address): Likewise.
6025         (alpha_expand_mov): Early exit to avoid nop moves.
6026         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
6027         (alpha_init_machine_status, alpha_mark_machine_status,
6028         alpha_free_machine_status): Always define.
6029         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6030         (print_operand, print_operand_address): Add TLS relocs.
6031         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6032         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6033         (TARGET_SWITCHES): Add -mtls-kernel.
6034         (alpha_tls_size, alpha_tls_size_string): New.
6035         (TARGET_OPTIONS): Add -mtls-size=.
6036         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6037         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6038         (ASM_OUTPUT_LABELREF): Skip %.
6039         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6040         (PREDICATE_CODES): Update.
6041         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6042         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6043         UNSPEC_TP, UNSPECV_SET_TP): New.
6044         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6045         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6046         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6047         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6048         (call_value_osf_2_er): Accept anything as op4.
6049         * config/alpha/alpha-protos.h: Update.
6050         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6052 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
6054         * cppinit.c (append_include_chain): Always pay attention to
6055         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
6056         marker on argument.
6058 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
6060         * target.h: Fix formatting.
6061         * timevar.h: Likewise.
6062         * tlink.c: Likewise.
6063         * toplev.c: Likewise.
6064         * toplev.h: Likewise.
6065         * tree.c: Likewise.
6066         * tree-dump.h: Likewise.
6067         * tree.h: Likewise.
6068         * tree-inline.h: Likewise.
6069         * unroll.c: Likewise.
6070         * unwind-dw2.c: Likewise.
6071         * unwind-dw2-fde.c: Likewise.
6072         * unwind-dw2-fde-glibc.c: Likewise.
6073         * unwind-dw2-fde.h: Likewise.
6074         * unwind.h: Likewise.
6075         * unwind-sjlj.c: Likewise.
6076         * varasm.c: Likewise.
6077         * varray.h: Likewise.
6078         * vmsdbg.h: Likewise.
6079         * vmsdbgout.c: Likewise.
6080         * xcoffout.h: Likewise.
6082 2002-05-31  Igor Shevlyakov <igor@microunity.com>
6084         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6085         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6087 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
6089         * gcc.c (cpp_unique_options): Remove "-d" options.
6090         (cpp_debug_options): New spec string.
6091         (default_compilers): Use it.
6092         * objc/lang-specs.h: Likewise.
6094 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
6096         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6097         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6098         * gcc/mklibgcc.in: Likewise.
6099         * gcc/config/arc/t-arc: Likewise.
6100         * gcc/configure.in: Likewise.
6101         * gcc/configure: Regenerate.
6103 2002-05-31  Stan Shebs  <shebs@apple.com>
6104             Turly O'Connor  <turly@apple.com>
6106         * c-decl.c (struct binding_level): Change int field n_incomplete
6107         to tree list incomplete_list.
6108         (clear_binding_level): Init field with NULL.
6109         (pushdecl): Add incomplete type to list.
6110         (mark_binding_level): Mark the incomplete list.
6111         (finish_struct): Scan the incomplete list for types instead
6112         of all decls in the current binding level.
6114 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6116         * pa.c (output_millicode_call): Add missing '%' characters.
6117         (output_call): Likewise.
6119 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
6121         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6122         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6124 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
6126         * varasm.c (mark_constant_pool): Walk epilogue delay list
6127         checking the insn, not the chain for potential constants.
6129 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
6131         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6133 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
6135         * i386.c (classify_argument): Properly handle base types.
6137         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6138         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
6139         registers.
6141 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6143         * gcse.c (gcse_emit_move_after): New.
6144         (pre_delete, hoist_store): Use it.
6146         * reload1.c (emit_input_reload_insns): Use constrain_operands
6147         instead of constraint_accepts_reg_p to verify optimization.
6148         (constraint_accepts_reg_p): Kill
6150         * reload1.c (reload_cse_delete_noop_set): Kill.
6151         (reload_cse_simplify): use delte_insn_and_edges.
6153 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6155         * cfgloop.c (flow_loops_find): Initialize first and last fields
6156         correctly.
6158 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
6160         * c-common.c (builtin_define_std): Correct logic.
6162 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6164         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
6165         (output_call): Likewise.
6167 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6169         * pa.c: Move output.h include after tree.h include.
6170         (pa_asm_output_mi_thunk): Constify identifier lab.
6172 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6174         * config/ns32k/ns32k.h: Define named constants for the
6175         bits in target_flags and use them.
6176         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
6178 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6180         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
6181         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
6182         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
6183         default scheduling model.
6184         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
6185         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
6186         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
6187         * doc/install.texi (hppa*-*-*): Document default scheduling.
6189 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6191         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
6193 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6195         * config.gcc (ns32k-*-netbsd*): Set tm_file to
6196         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
6197         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6198         netbsd.h, or netbsd-aout.h.
6200 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6202         * longlong.h (count_trailing_zeros): Add missing \, and clean up
6203         whitespace in __ns32000__ case.
6205 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
6207         * expr.c (expand_expr): Output partially zeroed out vectors with
6208         output_constant_def.
6210 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6212         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
6213         (sh-*-netbsdelf*)
6214         (shl*-*-netbsdelf*): New targets.
6215         * config/sh/netbsd-elf.h: New file.
6216         * config/sh/t-netbsd: New file.
6218 2002-05-30  Richard Henderson  <rth@redhat.com>
6219             Eric Botcazou  <ebotcazou@multimania.com>
6221         PR optimization/6822
6222         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
6223         to unsigned int for op1 comparisons.  Use gen_int_mode.
6225 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
6227         * expmed.c (const_mult_add_overflow_p): New.
6228         * expr.h: Declare it.
6229         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
6230         Don't eliminate the biv if the giv has a constant multiplier and
6231         the rhs argument of the comparison does satisfy the predicate.
6232         Use expand_mult_add to compute the replacement constant.
6234 2002-05-30  Osku Salerma  <osku@iki.fi>
6236         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
6237         (c_common_get_alias_set): Handle it.
6238         * doc/extend.texi: Document it.
6240 2002-05-30  Richard Henderson  <rth@redhat.com>
6242         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6243         * toplev.c (process_options): Don't check it.
6244         * doc/tm.texi: Don't document it.
6245         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6246         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
6247         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
6248         frame pointer optimization if current_function_profile.
6250 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
6252         * langhooks.c: Fix formatting.
6253         * langhooks.h: Likewise.
6254         * lcm.c: Likewise.
6255         * libgcc2.c: Likewise.
6256         * lists.c: Likewise.
6257         * local-alloc.c: Likewise.
6258         * loop.c: Likewise.
6259         * loop.h: Likewise.
6261 2002-05-30  Marc Espie <espie@openbsd.org>
6263         * config.gcc (sparc64-*-openbsd*): New.
6264         * config/sparc/openbsd1-64.h: New.
6265         * config/sparc/openbsd64.h: New.
6267 2002-05-30  Jeff Law <law@redhat.com>
6269         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
6270         a dead insn with a REG_RETVAL note when the entire libcall is not
6271         dead and remove the associated REG_LIBCALL note at the same time.
6273 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
6275         * lcm.c (output.h): #include.
6276         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
6277         as an ordinary block.
6278         (optimize_mode_switching): Don't pretend that the exit block is
6279         an ordinary block, or handle sucessors of entry block specially.
6280         Instead, split edges from entry block and to exit block, and
6281         put a computing definition on the thus gained post-entry-block,
6282         and a need on the pre-exit-block.
6284 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
6286         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
6287         * rtl.texi: Document 'B'
6289 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6291         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
6292         at run-time.
6293         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
6295 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
6297         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6298         const0_rtx instead of NULL_RTX when in error.
6299         (altivec_expand_abs_builtin): Same.
6300         (rs6000_expand_binop_builtin): Same.
6301         (altivec_expand_predicate_builtin): Same.
6302         (altivec_expand_stv_builtin): Same.
6303         (rs6000_expand_ternop_builtin): Same.
6304         (altivec_expand_builtin): Same.
6306 2002-05-29  David S. Miller  <davem@redhat.com>
6308         * rtl.h (clear_emit_caches): Delete.
6309         * integrate.c (output_inline_function): Don't call it.
6310         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
6311         (clear_emit_caches): Delete definition.
6312         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
6314 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
6316         * config/mmix/mmix.c: Include real.h.
6317         (mmix_constant_address_p): Remove redundant test before switch.
6319 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6321         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
6322         only if not already defined.
6324 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6326         * config/h8300/h8300-protos.h: Remove prototypes for
6327         ok_for_bclr and small_power_of_two.
6328         * config/h8300/h8300.c (small_power_of_two): Remove.
6329         (ok_for_blcr): Likewise.
6330         (fix_bit_operand): Make WHAT deal with an integer instead of a
6331         constraint character.
6332         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
6333         (CONST_OK_FOR_P): Likewise.
6334         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
6335         CONST_OK_FOR_P any more.
6336         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
6337         of fix_bit_operand.
6338         (iorqi3): Likewise.
6339         (xorqi3): Likewise.
6341 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6343         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6344         (CPP_PREDEFINES): Make sure this is undefined.
6345         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
6346         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
6347         or -U__MIPSEB__ before defining one or the other.  Instead,
6348         use %(subtarget_endian_default) if neither -EB nor -EL are
6349         specified.
6350         (SUBTARGET_EXTRA_SPECS): Define.
6351         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
6352         %(netbsd_cpp_spec).
6354 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6356         * doc/md.texi (Patterns): Note pattern condition pitfall
6357         for unnamed insn.
6359 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
6361         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
6362         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
6363         ternary operations from here...
6364         (rs6000_expand_builtin): ...to here.
6365         New argument expandedp.
6366         Change all instances of altivec_expand_binop_builtin to
6367         rs6000_expand_binop_builtin.
6368         (altivec_expand_unop_builtin): Rename to
6369         rs6000_expand_unop_builtin.
6370         (altivec_expand_binop_builtin): Rename to
6371         rs6000_expand_binop_builtin.
6372         (altivec_expand_ternop_builtin): Rename to
6373         rs6000_expand_ternop_builtin.
6375 2002-05-29  Richard Henderson  <rth@redhat.com>
6377         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6378         (TARGET_BI_ARCH): Likewise.
6379         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6380         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6381         (TARGET_64BIT_DEFAULT): Default to 0.
6382         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6384 2002-05-29  Richard Henderson  <rth@redhat.com>
6386         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6387         (get_pc_thunk_name): New.
6388         (output_set_got): Use it.
6389         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6390         into linkonce sections.
6392 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6394         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6395         (CPP_PREDEFINES): Make sure this is undefined.
6396         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6397         (CPP_SUBTARGET_SPEC): Don't provide different versions for
6398         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
6399         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6400         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
6401         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6402         (CPP_PREDEFINES): Make sure this is undefined.
6403         (SUBTARGET_EXTRA_SPECS): Define.
6404         (CPP_SPEC): Use %(netbsd_cpp_spec).
6406 2002-05-29  Jeff Law <law@redhat.com>
6408         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6410         * flow.c (propagate_one_insn): Do not remove a dead insn if it
6411         contains a REG_RETVAL note.
6413         * haifa-sched (sched_analyze): Remove another useless clearing
6414         of SCHED_GROUP_P I missed yesterday.
6416         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6417         * pa.c (pa_asm_output_mi_thunk): New function.
6418         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6420 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6421             Marek Michalkiewicz  <marekm@amelek.gda.pl>
6423         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6424         (avr_asm_only_p): Make non-static.
6425         (enum avr_arch): Remove.
6426         (avr_arch_types): New.
6427         (avr_mcu_types): Update.
6428         (avr_override_options): Use avr_arch_types table instead of switch.
6429         * avr.h (CPP_PREDEFINES): Die.
6430         (avr_base_arch_macro, avr_extra_arch_macro): New.
6431         (TARGET_CPU_CPP_BUILTINS): New.
6432         (CPP_SPEC, EXTRA_SPECS): Simplify.
6433         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6434         CPP_AVR5_SPEC): Die.
6436 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6438         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6439         NETBSD_OS_CPP_BUILTINS_AOUT.
6440         (SUBTARGET_EXTRA_SPECS): Define.
6441         (CPP_SPEC): Use %(netbsd_cpp_spec).
6443 2002-05-29  Richard Henderson  <rth@redhat.com>
6445         * config/i386/i386.c (ix86_output_function_epilogue): New.
6446         (TARGET_ASM_FUNCTION_EPILOGUE): New.
6447         (pic_label_name): Remove.
6448         (pic_labels_used): New.
6449         (ix86_asm_file_end): Emit one pc load stub for each register used.
6450         (output_set_got): Generate deep pc load to any register.
6451         (ix86_select_alt_pic_regnum): New.
6452         (ix86_save_reg): Don't save pic register if we can find a valid
6453         call-clobbered replacement.
6454         (ix86_expand_prologue): If we found a valid replacement, renumber
6455         pic_offset_table_rtx.
6456         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6457         pic_offset_table_rtx after reload.
6458         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6459         * config/i386/i386.md (set_got): Make insn, not expander.
6460         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6462 2002-05-29  Richard Henderson  <rth@redhat.com>
6464         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6465         alignment for alloca.
6467 2002-05-29  Richard Henderson  <rth@redhat.com>
6469         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6470         (print_operand_address): Only add rip for symbolic addresses
6471         for which we do not have another relocation type.
6473 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6475         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6476         (EXTRA_SPECS): Add netbsd_cpp_spec.
6477         (CPP_SPEC): Use %(netbsd_cpp_spec).
6478         (CPP_PREDEFINES): Remove.
6479         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6480         (EXTRA_SPECS): Define.
6481         (CPP_SPEC): Use %(netbsd_cpp_spec).
6482         (CPP_PREDEFINES): Remove.
6484 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6486         PR preprocessor/6844
6487         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6488         NUL.
6490 2002-05-29  Eric Christopher  <echristo@redhat.com>
6492         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6493         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6495 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
6497         * config/fr30/fr30.md: Remove previous restriction on splits.
6498         Enforce conformance through gen_lowpart and cont_int_operand.
6499         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6500         as the assembler does not support ".bss".
6502 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6504         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6505         (CPP_PREDEFINES): Remove.
6506         (SUBTARGET_EXTRA_SPECS): Define.
6507         (CPP_SPEC): Use %(netbsd_cpp_spec).
6508         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6509         (CPP_PREDEFINES): Remove.
6510         (SUBTARGET_EXTRA_SPECS): Define.
6511         (CPP_SPEC): Use %(netbsd_cpp_spec).
6512         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6513         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6514         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6515         Add netbsd_cpp_spec.
6516         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6518 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6519             Zack Weinberg <zack@codesourcery.com>
6521         * cppexp.c (cpp_num): Move to cpplib.h.
6522         (CPP_ERROR): Remove.
6523         (interpret_float_suffix, interpret_int_suffix): New.
6524         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6525         (cpp_classify_number, cpp_interpret_integer): New.
6526         (interpret_number): Remove.
6527         (eval_token): Update to use new routines.
6528         * cpphash.h (cpp_num_part): Move to cpplib.h.
6529         * cppinit.c (cpp_post_options): Set warn_long_long.
6530         * cpplib.h (struct cpp_options): Add warn_long_long.
6531         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6532         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6533         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6534         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6535         cpp_interpret_integer): New.
6537 2002-05-29  Joel Sherrill <joel@OARcorp.com>
6539         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6541 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
6543         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6544         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6545         (CPP_SUBTARGET_SPEC): Define.
6546         (SUBTARGET_EXTRA_SPECS): Define.
6547         (CPP_SPEC): Remove.
6549 2002-05-29  Chris Lattner  <sabre@nondot.org>
6551         * ssa.c (rename_insn_1): Rename uses of undefined registers to
6552         prevent confusion if/when the register is defined.
6554 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
6556         PR target/6838
6557         * config/cris/cris.md: Fix typos and thinkos in comments.
6558         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6559         second alternative.
6560         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6561         ("*mov_sideqi_mem"): Similar, but for operand 3.
6562         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6563         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6564         Remove spurious mode specifier on operand 2.
6566 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
6568         * config/h8300/h8300-protos.h: Remove the prototype for
6569         o_operand.
6570         Add prototypes for single_one_operand and single_zero_operand.
6571         * config/h8300/h8300.c (o_operand): Remove.
6572         (single_one_operand): New.
6573         (single_zero_operand): Likewise.
6574         (print_operand): For 'V' operand, and the operand with 0xff.
6575         For 'V' and 'W' operands, do not and the bit position with 7.
6576         * config/h8300/h8300.md (various anonymous patterns): Replace
6577         use of exact_log2 with single_one_operand/single_zero_operand.
6579 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6581         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6583 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
6585         * config/s390/s390.c (legitimate_pic_operand_p): Do not
6586         accept symbolic LARL operands.
6587         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6588         epilogue insns.
6590 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
6592         * config/s390/s390.md (cmpstr_64/31): Mark whole
6593         input registers as used.
6595 2002-05-28  Richard Henderson  <rth@redhat.com>
6597         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6598         not current_function_uses_pic_offset_table and
6599         current_function_uses_const_pool; examine current_function_profile.
6600         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
6601         input to blockage if needed.
6602         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6603         (legitimize_pic_address): Likewise.  Set regs_ever_live for
6604         pic_offset_table_rtx when invoked during reload.
6605         * config/i386/i386.h (FINALIZE_PIC): Remove.
6606         * config/i386/i386.md (tablejump): Reformat.  Do not set
6607         current_function_uses_pic_offset_table.
6608         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6609         (blockage): Accept anything as operand 0.
6611 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6613         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6614         common CPP built-ins for all NetBSD a.out targets.
6615         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6616         common CPP built-ins for all NetBSD ELF targets.
6617         * config/netbsd.h: Add missing notice.
6618         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6619         for all NetBSD targets.
6620         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6621         for all NetBSD targets using an LP64 code model.
6622         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6623         NetBSD targets.
6625 2002-05-28  Richard Henderson  <rth@redhat.com>
6627         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6628         update if UPDATE_LIFE_LOCAL.
6630 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6632         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6634 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6635                           Jason R. Thorpe <thorpej@wasabisystems.com>
6637         config/sh reorganization to factor out endianness and coff:
6639         * config/sh/little.h: New file.
6640         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6641         defined, define to 0 to select big-endian.
6642         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6643         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6644         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6645         * config/sh/t-be: New file.
6646         * config/sh/t-le: New file.
6648         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6649         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6650         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6651         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6652         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6653         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6654         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6655         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6656         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6657         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6658         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6659         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6660         (LINK_SPEC): Define to SH_LINK_SPEC.
6661         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6662         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6663         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6664         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6665         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6666         * config/sh/coff.h: New file.
6667         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6668         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6669         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6670         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6671         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6672         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6673         (PTRDIFF_TYPE): Likewise.
6674         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6675         (CPP_PREDEFINES): Don't define.
6676         (TARGET_OBJFMT_CPP_BUILTINS): Define.
6677         (LINK_SPEC): Define to SH_LINK_SPEC.
6678         (LINK_EMUL_PREFIX): Redefine.
6679         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6680         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6681         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6682         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6683         (TARGET_OS_CPP_BUILTINS): Define.
6684         (TARGET_DEFAULT): Redefine.
6685         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6686         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6687         (LINK_SPEC): Don't redefine.
6688         (LINK_DEFAULT_CPU_EMUL): Redefine.
6689         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6690         * sh.c (sh_asm_named_section): Don't declare / define.
6691         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6692         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6693         (sh64-*-elf* tm_file): Likewise.
6694         (sh-*-rtemself* tm_file): Likewise.
6695         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
6696         (sh-*-linux* tmake_file): Add sh/t-le.
6697         (sh-*-rtems* tm_file): Add sh/coff.h
6698         (sh-*-* tm_file): Likewise.
6700 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6702         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6703         CONSTANT_POOL_ADDRESS_P.
6705         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6707 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
6708             Jeff Law <law@redhat.com>
6710         * optabs.c (expand_binop): Fix nwords sign warnings.
6711         generate pseudo for add_optab.
6713         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6714         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6716 2002-05-28      Marc Espie <espie@openbsd.org>
6718         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
6719         inherited from gas.h.
6720         (ASM_QUAD):  Undef.  OpenBSD does not support it.
6722 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
6724         * doc/install.texi (binaries): Change mingw binaries
6725         link to www.mingw.org.
6727 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6729         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6731 2002-05-28  Richard Henderson  <rth@redhat.com>
6733         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6734         bottom alignment for leaf functions.
6736 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6738         * config/pa/milli32.S, config/pa/lib1funcs.asm,
6739         config/sparc/sol2-g1.asm: Delete unused files.
6741 2002-05-28  Richard Henderson  <rth@redhat.com>
6743         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6745         * flow.c (calculate_global_regs_live): Rename call_used to
6746         invalidated_by_call.  Initialize from regs_invalidated_by_call
6747         instead of call_used_regs.
6749         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6750         DECL_EXTERNAL.
6752 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
6754         * tree.h: Don't include real.h.
6755         Forward-declare struct realvaluetype.
6756         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6757         contain it.
6758         (TREE_REAL_CST_PTR): New accessor.
6759         (TREE_REAL_CST): Update.
6760         * real.h: Include machmode.h.
6761         (realvaluetype): Make it struct realvaluetype, not a typedef.
6762         (build_real): Prototype here.
6764         * tree.c: Include real.h.
6765         (build_real): Allocate the REAL_VALUE_TYPE as a separate
6766         object in GC memory, set TREE_REAL_CST_PTR to point to it.
6767         (build_real_from_int_cst): Use build_real.
6768         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6769         REAL_CST.
6771         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6772         fold-const.c, print-tree.c, real.c: Include real.h.
6773         * Makefile.in: Update dependency lists.
6775 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6777         * basic-block.h (last_basic_block): Declare.
6778         (expunge_block_nocompact): Declaration removed.
6779         (compact_blocks): Declare.
6780         * cfg.c (last_basic_block): New variable.
6781         (expunge_block_nocompact): Removed.
6782         (expunge_block): Do not compact basic blocks.
6783         (compact_blocks): New.
6784         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6785         longer change.
6786         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6787         last_basic_block.
6788         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6789         real positions of blocks.
6790         (delete_unreachable_blocks): Simplified -- quadratic behavior now
6791         cannot occur.
6792         (cleanup_cfg): Compact blocks.
6793         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6794         basic_block_info varray.
6795         (flow_delete_block): Comment update.
6796         (back_edge_of_syntactic_loop_p): Modify position check code.
6797         (verify_flow_info): Update checking.
6798         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6799         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6800         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6801         indices no longer change.
6802         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6803         last_basic_block.
6804         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6805         * profile.c (branch_prob): Compact blocks.
6806         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6807         last_basic_block.
6809 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
6811         * config/h8300/h8300.md (two anonymous patterns): New.
6813 2002-05-28  David S. Miller  <davem@redhat.com>
6815         * config/sparc/sparc.md (cpu): Tidy.
6816         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6817         'trap'.
6818         (in_call_delay): Delete reference to 'return' type.
6819         (eligible_for_return_delay, in_return_delay, define_delay
6820         referencing those): Delete.
6821         (rest of file): Use new type attributes as appropriate.
6822         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6823         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6824         * config/sparc/ultra1_2.md (us1_single): New reservation.
6825         (us1_ialuX): Likewise.
6826         * config/sparc/ultra3.md (us3_single): Likewise.
6827         (us3_ialuX): Likewise.
6828         (us3_imul, us3_idiv): Tweak.
6830 2002-05-28  Richard Henderson  <rth@redhat.com>
6832         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6833         STRING_CST.
6835 2002-05-28  Richard Henderson  <rth@redhat.com>
6837         * config.gcc: Obsolete mn10200.
6839 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6841         * cppexp.c (interpret_number): Optimize for single-digit
6842         and less-than-half-precision cases.
6843         (num_trim, num_positive, num_div_op): Cast constants.
6845 2002-05-27  Bo Thorsen  <bo@suse.de>
6847         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6848         3.1 branch. The file was made by Jakub Jelinek.
6849         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6850         support so multilib doesn't break. And don't define this at all
6851         when -Dinhibit_libc is used.
6852         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6853         * config/i386/t-linux64: Implement full multilib support. Patch
6854         originally done by Andreas Jaeger and Jakub Jelinek.
6856 2002-05-27  Roger Sayle  <roger@eyesopen.com>
6858         * c-common.c: Add support for __attribute__((nothrow)) to specify
6859         that a function cannot throw an exception (using TREE_NOTHROW).
6860         (handle_nothrow_attribute): New function to process this attribute.
6862         * doc/extend.texi: Document the new nothrow function attribute.
6864 2002-05-27  H.J. Lu  (hjl@gnu.org)
6866         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6867         (num_positive): Likewise.
6868         (num_div_op): Likewise.
6870 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6872         * c-common.c (c_common_init): Always use intmax_t.
6874 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6876         * c-common.c (c_common_init): Use intmax_t for now.
6878 2002-05-24  Andrew Haley  <aph@redhat.com>
6880         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6881         if T is a boolean type.
6883 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6885         * basic-block.h (last_basic_block): Defined as synonym for
6886         n_basic_blocks.
6887         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6888         flow_depth_first_order_compute, flow_preorder_transversal_compute,
6889         flow_dfs_compute_reverse_init): Replaced relevant occurences of
6890         n_basic_blocks with last_basic_block.
6891         * cfgbuild.c (make_edges): Likewise.
6892         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6893         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6894         * combine.c (combine_instructions): Likewise.
6895         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6896         iterative_dataflow_bitmap): Likewise.
6897         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6898         calc_idoms, idoms_to_doms): Likewise.
6899         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6900         Likewise.
6901         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6902         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6903         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6904         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6905         delete_null_pointer_checks, compute_code_hoist_vbeinout,
6906         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6907         compute_store_table, build_store_vectors): Likewise.
6908         * haifa-sched.c (sched_init): Likewise.
6909         * ifcvt.c (if_convert): Likewise.
6910         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6911         pre_edge_lcm, compute_available, compute_nearerout,
6912         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6913         Likewise.
6914         * predict.c (estimate_probability, process_note_prediction,
6915         note_prediction_to_br_prob): Likewise.
6916         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6917         * recog.c (split_all_insns, peephole2_optimize): Likewise.
6918         * regrename.c (copyprop_hardreg_forward): Likewise.
6919         * resource.c (init_resource_info): Likewise.
6920         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6921         init_regions, schedule_insns): Likewise.
6922         * ssa-ccp.c (ssa_const_prop): Likewise.
6923         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6924         * ssa.c (compute_dominance_frontiers,
6925         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6927         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6928         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6929         sizes consistently.
6931 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6933         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6934         new.
6935         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6936         hoist_insn_after, hoist_insn_to_edge): New.
6938 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
6940         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6941         (PROP_FINAL): Include.
6942         * flow.c (life_analysis, update_life_info,
6943         init_propagate_block_info, mark_set_1, mark_used_rgs):
6944         Support SCAN_DEAD_STORE.
6946 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6948         * c-common.c (c_common_init): Set CPP arithmetic precision.
6949         * cppexp.c (cpp_num_part): Move typedef ...
6950         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6951         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6952         (sanity_checks): Update.
6954 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
6956         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6957         (mkheaders): New rule.
6958         (install-mkheaders): New rule.
6959         * configure.in (all_outputs): Add mkheaders.
6960         * configure: Regenerate.
6961         * mkheaders.in: New file.
6963 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
6965         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6967 2002-05-26  Andreas Jaeger  <aj@suse.de>
6969         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6971 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6973         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6974         right_shift): Remove.
6975         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6976         HIGH_PART): New.
6977         (struct op): Use cpp_num.
6978         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6979         num_part_mul, num_unary_op, num_binary_op, num_negate,
6980         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6981         num_div_op, num_lshift, num_rshift, append_digit): New.
6982         (interpret_number, parse_defined, eval_token, reduce): Update
6983         for two-integer arithmetic.
6984         (binary_handler): New typedef.
6985         (optab): Update.
6986         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6987         (_cpp_parse_expr, reduce): Update to handle two-integers.
6988         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6990 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6992         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6993         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6994         branch insn into account, do not assume 1.
6995         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
6996         over single word insn.  Handle upper half of I/O space too.
6997         * config/avr/avr.md (*sbrx_branch): Use it.
6998         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6999         (*sbix_branch, *sbix_branch_bit7): Likewise.
7000         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7001         Use RTL peepholes to optimize register operand sign tests.
7003 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7005         * config/avr/avr.c (avr_asm_only_p): New variable.
7006         (avr_override_options): Set it here if AVR1.
7007         (asm_file_start): Test it here, report an error if set.
7009 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
7011         * alias.c: Fix formatting.
7012         * attribs.c: Likewise.
7013         * bb-reorder.c: Likewise.
7014         * bitmap.c: Likewise.
7015         * bitmap.h: Likewise.
7016         * builtins.c: Likewise.
7018 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
7020         * reload.c (find_valid_class): Accept new argument DEST,
7021         choose class accordingly.
7022         (push_reload): Update callers.
7024 2002-05-26  Andreas Jaeger  <aj@suse.de>
7026         * combine.c (combine_instructions): Do not indent #if for
7027         traditional C.
7029 2002-05-25  Richard Henderson  <rth@redhat.com>
7031         * c-pragma.c (apply_pragma_weak): Convert value identifier to
7032         string for decl_attributes.
7033         (handle_pragma_weak): Call assemble_alias if we're modifying
7034         an existing decl.
7036 2002-05-25  Richard Henderson  <rth@redhat.com>
7038         PR target/6788
7039         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7040         using rtl instead of fprintf.
7041         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7042         * config/sparc/sparc-protos.h: Update.
7044 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7046         * Makefile.in (C_COMMON_H): Fix.
7047         Update other targets.
7048         * c-common.c: Don't include c-lex.h.
7049         (builtin_define_with_value): Make static and prototype.
7050         (builtin_define_std): Move from c-lex.h.
7051         * c-common.h (init_c_lex): Move from c-lex.h.
7052         * c-decl.c: Don't include c-lex.h.
7053         (make_pointer_declarator): Move from c-parse.in.
7054         * c-lex.c: Don't include c-lex.h.
7055         * c-lex.h: Remove.
7056         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7057         (make_pointer_declarator): Move to c-decl.c.
7058         * c-pragma.c: Don't include c-lex.h.
7059         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7060         * c-tree.h (make_pointer_declarator): New.
7061 doc:
7062         * passes.texi, tm.texi: Update.
7063 objc:
7064         * Make-lang.in: Update and correct.
7065         * objc-act.c: Don't include c-lex.h or cpplib.h.
7066 treelang:
7067         * treetree.c: Don't include c-lex.h.
7068 config:
7069         * darwin-c.c: Don't include c-lex.h.
7070         * c4x/c4x-c.c: Don't include c-lex.h.
7071         * c4x/t-c4x: Update.
7072         * i370/i370-c.c: Don't include c-lex.h.
7073         * i370/t-i370: Update.
7074         * i960/i960-c.c: Don't include c-lex.h.
7075         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7076         * i960/t-960bare: Update.
7077         * i960/t-vxworks: Update.
7078         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7079         * rs6000/t-darwin: Update.
7080         * rs6000/t-rs6000-c-rule: Update.
7081         * v850/v850-c.c: Don't include c-lex.h.
7082         * v850/v850.c: Don't include c-lex.h or cpplib.h.
7085 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
7087         * tree.def: Fix typos.
7088         * doc/install.texi: Likewise.
7090 2002-05-25  Richard Henderson  <rth@redhat.com>
7092         * configure.in (HAVE_AS_TLS): Add ia64 test.
7093         * configure: Rebuild.
7094         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7095         (override_options): Set it.
7096         (TARGET_HAVE_TLS): New.
7097         (sdata_symbolic_operand): Look for 's'.
7098         (tls_symbolic_operand): New.
7099         (ia64_expand_load_address): Abort for tls symbols.
7100         (gen_tls_get_addr): New.
7101         (gen_thread_pointer): New.
7102         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
7103         (rtx_needs_barrier): Add new unspecs.
7104         (ia64_encode_section_info): Handle tls symbols.
7105         (ia64_strip_name_encoding): Strip two encoding chars.
7106         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7107         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7108         (TARGET_OPTIONS): Add tls-size.
7109         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7110         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7111         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7112         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7113         (movsf, movdf): Likewise.
7114         (movdi_symbolic): Use match_scratch.  Don't split if we won't
7115         have a scratch availiable.
7116         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7117         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7118         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7119         * config/ia64/ia64-protos.h: Update.
7120         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7121         sdata_symbolic_operand.
7122         (ASM_OUTPUT_LABELREF): Strip two characters.
7124 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
7126         * combine.c (simplify_set): Remove an unnecessary subreg.
7128 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7130         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7132         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7134 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7136         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
7138 2002-05-25  Roger Sayle  <roger@eyesopen.com>
7140         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
7141         (cond (compare x y) 0) into the equivalent (cond x y).
7143 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
7145         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
7147 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
7149         * config.gcc: Remove all stanzas for previously obsoleted
7150         systems.  Where necessary, add explicit error stanzas to
7151         prevent removed systems from being misidentified as something
7152         else.  Begin a fresh obsoletions list, with the systems that
7153         were reprieved last round.
7154         * doc/install.texi: Remove all mention of dead targets.
7155         * fixinc/mkfixinc.sh: Likewise.
7157         * config/arm/arm.h: Bit 31 of target_flags is no longer
7158         reserved.
7160         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
7161         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
7162         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
7163         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
7164         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
7165         config/alpha/osf12.h, config/alpha/osf2or3.h,
7166         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
7167         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
7168         config/clipper/clipper-protos.h, config/clipper/clipper.c,
7169         config/clipper/clipper.h, config/clipper/clipper.md,
7170         config/clipper/clix.h, config/convex/convex-protos.h,
7171         config/convex/convex.c, config/convex/convex.h,
7172         config/convex/convex.md, config/convex/fixinc.convex,
7173         config/convex/proto.h, config/elxsi/elxsi-protos.h,
7174         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
7175         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
7176         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
7177         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
7178         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
7179         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
7180         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
7181         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
7182         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
7183         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
7184         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
7185         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
7186         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
7187         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
7188         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
7189         config/m68k/altos3068.h, config/m68k/apollo68.h,
7190         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
7191         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
7192         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
7193         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
7194         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
7195         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
7196         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
7197         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
7198         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
7199         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
7200         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
7201         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
7202         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
7203         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
7204         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
7205         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
7206         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
7207         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
7208         config/mips/dec-osf1.h, config/mips/elflorion.h,
7209         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
7210         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
7211         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
7212         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
7213         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
7214         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
7215         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
7216         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
7217         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
7218         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
7219         config/ns32k/sequent.h, config/ns32k/tek6000.h,
7220         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
7221         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
7222         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
7223         config/sparc/rtems.h, config/we32k/we32k-protos.h,
7224         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
7225         Delete file.
7227 2002-05-24  Richard Henderson  <rth@redhat.com>
7229         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
7230         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
7231         * config/i386/i386.c (tls_model_chars): Add leading space.
7232         (tls_symbolic_operand): Don't bias by 1.
7233         (legitimize_address): Don't unbias by 1.
7235 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
7237         * lcm.c (optimize_mode_switching): Change bb used as indices
7238         to bb->index.
7240 2002-05-24  Richard Henderson  <rth@redhat.com>
7242         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
7243         of update_life_info_in_dirty_blocks.
7245 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
7247         PR other/6782
7248         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
7250 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7252         PR preprocessor/6780
7253         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
7255 2002-05-24  Jim Blandy  <jimb@redhat.com>
7257         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
7258         entry with a type code of zero, marking the end of the compilation
7259         unit's macro info.
7261 2002-05-24  Richard Henderson  <rth@redhat.com>
7263         * varasm.c (asm_output_bss): Always output one byte.
7264         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7266 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7268         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
7269         namespace.
7271 2002-05-24  Andreas Jaeger  <aj@suse.de>
7273         * ggc-page.c (alloc_page): Cast variables of type size_t to
7274         unsigned long, adjust printf format string.
7275         (ggc_alloc): Likewise.
7276         (ggc_print_statistics): Likewise.
7277         (ggc_print_statistics): Correct printf format string for SCALE to
7278         use unsigned long.
7280 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
7282         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
7284 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
7285             Zack Weinberg     <zack@codesourcery.com>
7287         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
7288         quoted strings.
7289         * dwarf2out.c (lookup_filename): Properly quote filename in .file
7290         directive in assembly file.
7291         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7292         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
7293         * config/pj/pj.h (ASM_FILE_START): Likewise.
7294         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7295         * config/avr/avr.c (asm_file_end): Likewise.
7296         * toplev.c (output_quoted_string): Handle possibly signed plain
7297         char.
7298         * toplev.h (output_clean_symbol_name): Declare
7299         * toplev.c (output_clean_symbol_name): Define.
7300         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
7301         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
7303 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
7305         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
7307 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
7309         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
7310         of size of unsigned.
7312 2002-05-23  Richard Henderson  <rth@redhat.com>
7314         * configure.in (HAVE_AS_TLS): New test.
7315         * config.in, configure: Rebuild.
7316         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
7317         (ix86_tls_dialect_string, ix86_tls_dialect): New.
7318         (override_options): Set it.
7319         (tls_model_chars, tls_symbolic_operand): New.
7320         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
7321         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
7322         (local_exec_symbolic_operand): New.
7323         (get_pic_label_name): Merge into output_set_got.
7324         (ix86_asm_file_end): Emit pic_label_name if defined.
7325         (legitimate_constant_p, constant_address_p): New.
7326         (legitimate_pic_operand_p): New.
7327         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
7328         (legitimate_address_p): Likewise.
7329         (ix86_encode_section_info): Rename from i386_; handle tls decls.
7330         (ix86_strip_name_encoding): New.
7331         (get_thread_pointer): New.
7332         (legitimize_address): Handle tls symbols.
7333         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
7334         Remove UNSPEC_PLT.
7335         (struct machine_function): Add some_ld_name.
7336         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
7337         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
7338         (output_addr_const_extra): New.
7339         (maybe_get_pool_constant): New.
7340         (ix86_split_to_parts): Use it.
7341         (ix86_expand_move): Handle tls symbols.
7342         (ix86_tls_get_addr): New.
7343         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
7344         (TARGET_OPTIONS): Add tls-dialect.
7345         (CONSTANT_ADDRESS_P): Use new out-of-line function.
7346         (LEGITIMATE_CONSTANT_P): Likewise.
7347         (LEGITIMATE_PIC_OPERAND_P): Likewise.
7348         (TARGET_STRIP_NAME_ENCODING): New.
7349         (ASM_OUTPUT_LABELREF): New.
7350         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7351         (OUTPUT_ADDR_CONST_EXTRA): New.
7352         (PREDICATE_CODES): Update.
7353         (ix86_tls_dialect, ix86_tls_dialect_string): New.
7354         * config/i386/i386.md: Regroup and renumber unspec constants.
7355         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
7356         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
7357         (tls_global_dynamic, tls_local_dynamic_base): New.
7358         (tls_local_dynamic_once): New.
7359         * config/i386/i386-protos.h: Update.
7361 2002-05-23  Richard Henderson  <rth@redhat.com>
7363         * genemit.c (gen_insn): Print file:lineno comment before function.
7364         (main): likewise.
7365         * gensupport.c (struct queue_elem): Add filename member.
7366         (queue_pattern): Initialize it; update all callers.
7367         (process_include): Don't free filename.
7368         (read_md_rtx): Set read_rtx_filename.
7370 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
7372         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7374 2002-05-23  Richard Henderson  <rth@redhat.com>
7376         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7378 2002-05-23  Richard Henderson  <rth@redhat.com>
7380         * doc/extend.texi (C++98 Thread-Local Edits): Update with
7381         commentary from Mark.
7383 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7385         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7386         Use FOR_EACH_BB macros to iterate over basic block chain.
7387         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7388         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7389         Likewise.
7390         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7391         find_unreachable_blocks, create_edge_list, verify_edge_list,
7392         remove_fake_edges, add_noreturn_fake_exit_edges,
7393         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7394         Likewise.
7395         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7396         find_sub_basic_blocks): Likewise.
7397         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7398         Likewise.
7399         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7400         Likewise.
7401         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7402         Likewise.
7403         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7404         commit_edge_insertions, commit_edge_insertions_watch_calls,
7405         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7406         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7407         * conflict.c (conflict_graph_compute): Likewise.
7408         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7409         df_modified_p, df_refs_unlink, df_dump): Likewise.
7410         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7411         * final.c (compute_alignments): Likewise.
7412         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7413         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7414         count_or_remove_death_notes): Likewise.
7415         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7416         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7417         classic_gcse, compute_transp, cprop, compute_pre_data,
7418         compute_transpout, invalidate_nonnull_info,
7419         delete_null_pointer_checks_1, delete_null_pointer_checks,
7420         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7421         compute_store_table, build_store_vectors, store_motion): Likewise.
7422         * global.c (global_conflicts, mark_elimination): Likewise.
7423         * graph.c (print_rtl_graph_with_bb): Likewise.
7424         * haifa-sched.c (sched_init): Likewise.
7425         * ifcvt.c (if_convert): Likewise.
7426         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7427         compute_available, compute_nearerout, compute_rev_insert_delete,
7428         optimize_mode_switching): Likewise.
7429         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7430         * predict.c (estimate_probability, note_prediction_to_br_prob,
7431         propagate_freq, counts_to_freqs, expensive_function_p,
7432         estimate_bb_frequencies): Likewise.
7433         * profile.c (instrument_edges, get_exec_counts,
7434         compute_branch_probabilities, compute_checksum, branch_prob,
7435         find_spanning_tree): Likewise.
7436         * recog.c (split_all_insns, peephole2_optimize): Likewise.
7437         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7438         Likewise.
7439         * regclass.c (scan_one_insn, regclass): Likewise.
7440         * regmove.c (mark_flags_life_zones, regmove_optimize,
7441         record_stack_memrefs): Likewise.
7442         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7443         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7444         * resource.c (find_basic_block): Likewise.
7445         * sched-ebb.c (schedule_ebbs): Likewise.
7446         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7447         find_single_block_region, find_rgns, schedule_insns)
7448         * sibcall.c (optimize_sibling_and_tail_recursive_call)
7449         * ssa-ccp.c (optimize_unexecutable_edges,
7450         ssa_ccp_df_delete_unreachable_insns): Likewise.
7451         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7452         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7453         rename_block, convert_to_ssa, compute_conservative_reg_partition,
7454         compute_coalesced_reg_partition, rename_equivalent_regs,
7455         convert_from_ssa): Likewise.
7456         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7457         process_for_unwind_directive): Likewise.
7459         * df.c (FOR_ALL_BBS): Removed.
7460         * gcse.c (struct null_pointer_info): Type of current_block field
7461         changed.
7462         (struct reg_avail_info): Type of last_bb field changed.
7463         * config/ia64/ia64.c (block_num): Removed.
7464         (need_copy_state): Type changed.
7465         (last_block): New.
7467 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7469         * cppinit.c (mark_named_operators): Split out from init_builtins.
7470         (cpp_finish_options): Call it from here instead.
7472 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7474         * builtin-attrs.def: Update copyright years.
7475         (ATTR_NONNULL): New attribute identifier.
7476         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7477         attribute tree lists.
7478         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7479         format operand.
7480         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7481         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7482         attribute lists.  Chain the appropriate nonnull attribute.
7483         * c-format.c (check_format_arg): Remove null format string
7484         warning.
7485         * testsuite/gcc.dg/format/null-1.c: New test.
7487 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7489         * Makefile.in (ADAC): Define.
7490         (SYSLIBS): Define.
7491         (.SUFFIXES): Move before language makefile fragments.
7492         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7494 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
7496         * varasm.c (make_decl_rtl): Don't allow weak variables to be
7497         placed in common.
7499 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7501         * cfg.c (dump_flow_info): Print results of
7502         maybe_hot/probably_never_executed predicates.
7503         * toplev.c (open_dump_file): Print function frequency.
7505 2002-05-23  David S. Miller  <davem@redhat.com>
7507         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7508         regsets.
7510 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7512         * c-common.c (warn_nonnull): Declare.
7513         (c_common_attribute_table): Add "nonnull" attribute.
7514         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7515         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7516         check_function_arguments_recurse): New functions.
7517         * c-common.h (warn_nonnull): Declare extern.
7518         (check_function_arguments, check_function_arguments_recurse): New
7519         prototypes.
7520         * c-decl.c (c_decode_option): Add -Wnonnull option.
7521         * c-format.c (set_Wformat): Set warn_nonnull if enabling
7522         format checking.
7523         (format_check_context): New structure.
7524         (check_format_info_recurse): Remove recursion and rename to...
7525         (check_format_arg): ...this.  Update comment.
7526         (check_format_info): Use check_function_arguments_recurse.
7527         * c-typeck.c (build_function_call): Call check_function_arguments
7528         instead of check_function_format.
7529         * doc/extend.texi: Document "nonnull" attribute.
7530         * doc/invoke.texi: Docuemnt -Wnonnull option.
7531         * testsuite/gcc.dg/nonnull-1.c: New test.
7532         * testsuite/gcc.dg/nonnull-2.c: New test.
7534 2002-05-23  David S. Miller  <davem@redhat.com>
7536         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7537         * cfgcleanup.c (cleanup_cfg): If it is set do not
7538         attempt to delete trivially dead insns.
7539         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7540         * toplev.c (rest_of_compilation): Document non-trivial aspect
7541         the RTL before optimize_save_area_alloca is run.
7543 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7545         * c-lex.c (indent_level): Remove.
7546         (cb_file_change, c_lex): Remove indent level handling.
7547         * c-lex.h (indent_level): Remove.
7548         * input.h (struct file_stack): Remove indent_level.
7549         * toplev.c (push_srcloc): Remove indent_level handling.
7551 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7553         PR target/6753
7554         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7555         of x in constraints for clarity.
7556         (sse_mov?fcc split): abort if op2 == op3.
7557         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7558         sse_movsfcc_const0_4): Add earlyclobber.
7559         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7560         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
7561         Use Y instead of x in constraints.
7563 2002-05-23  Richard Henderson  <rth@redhat.com>
7565         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7566         (C++98 Thread-Local Edits): New subsection.
7568         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7569         (ix86_arch): Set type to enum processor_type.
7571         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7572         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7574 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
7576         * configure.in: Fix as version test for binutils 2.12.1 releases
7577         (without dates).
7578         * configure: Rebuilt.
7580 2002-05-23  Richard Henderson  <rth@redhat.com>
7582         * config/i386/i386.c (get_pic_label_name): New.
7583         (load_pic_register): Remove.
7584         (output_set_got): New.
7585         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7586         * config/i386/i386.md (UNSPEC_SET_GOT): New.
7587         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7588         (prologue_set_got, prologue_get_pc): Remove.
7589         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7590         (builtin_setjmp_receiver): Use gen_set_got.
7591         * config/i386/i386-protos.h: Update.
7593 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
7595         * gcse.c (hash_expr): Do not use alias set for hashing.
7597 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
7599         * dbxout.c (dbxout_class_name_qualifiers): New function.
7600         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7602 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7604         * cpperror.c (_cpp_begin_message): No special casing
7605         of CPP_FATAL_LIMIT.
7606         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7607         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7608         * cpplib.c (do_include_common): Use DL_ERROR.
7609         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7610         (DL_ICE): Renumber.
7611         * fix-header.c (read_scan_file): Update.
7613 2002-05-22  Richard Henderson  <rth@redhat.com>
7615         * config/i386/i386.c (ix86_expand_call): New function, extracted
7616         from md call patterns.  Add pic_offset_table_rtx to
7617         CALL_INSN_FUNCTION_USAGE when needed.
7618         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7619         (call_value_pop, call_value, untyped_call): Likewise.
7620         (call_exp, call_value_exp): Remove.
7621         * config/i386/i386-protos.h: Update.
7623 2002-05-22  Richard Henderson  <rth@redhat.com>
7625         * varasm.c (default_section_type_flags): Check for VAR_DECL
7626         before using DECL_THREAD_LOCAL.
7628 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
7630         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7631         (STARTFILE_SPEC): Delete PE crt0.o.
7632         * config/rs6000/aix51.h: Same.
7633         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7634         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7635         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
7636         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7637         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7639 2002-05-22  Richard Henderson  <rth@redhat.com>
7641         * varasm.c (default_section_type_flags): Handle tls data and
7642         default sections.
7643         (default_unique_section): Handle tls sections.
7645 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
7647         * configure.in (CROSS): Define NATIVE_CROSS.
7648         * configure: Regenerate.
7649         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7650         (startfile_prefix_spec): New var.
7651         (static_specs): Add startfile_prefix_spec.
7652         (do_spec_2): Split out from..
7653         (do_spec): ..here.
7654         (main): Process startfile_prefix_spec.
7655         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7656         dynamic linker.
7657         (STARTFILE_PREFIX_SPEC): Define.
7658         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7659         absolute paths.
7661 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7663         * cpperror.c: Fix formatting.
7664         * cppexp.c: Likewise.
7665         * cppfiles.c: Likewise.
7666         * cpphash.c: Likewise.
7667         * cpphash.h: Likewise.
7668         * cppinit.c: Likewise.
7669         * cpplex.c: Likewise.
7670         * cpplib.c: Likewise.
7671         * cppmacro.c: Likewise.
7672         * cppmain.c: Likewise.
7673         * cppspec.c: Likewise.
7675 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7677         * combine.c (force_to_mode): Use gen_int_mode.
7678         Don't clear CONST_INT bits outside of mode.
7680 2002-05-22  Richard Henderson  <rth@redhat.com>
7682         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7683         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7685 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
7687         PR c/6643
7688         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7689         if DECL_SIZE_UNIT is INTEGER_CST.
7691 2002-05-22  Richard Henderson  <rth@redhat.com>
7693         * flow.c (life_analysis): Delete broken reg_label check.
7695 2002-05-22  Richard Henderson  <rth@redhat.com>
7697         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7698         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7700 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7702         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7703         (embed-bb.c): New rule.
7704         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7705         * config/sh/embed_bb.c: Delete.
7707 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7709         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7711 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
7713         * config/h8300/h8300.md (*andorqi3): New.
7715 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7717         PR preprocessor/6517
7718         * Makefile.in: Update.
7719         * c-common.c (c_common_post_options): Add preprocessor
7720         errors to the error count.
7721         * c-lang.c (c_post_options): Kill.
7722         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7723         * hooks.h: Add header guards.
7724         * langhooks-def.h: Include hooks.h.
7725         (LANG_HOOKS_POST_OPTIONS): Update.
7726         * langhooks.h (struct lang_hooks): Update post_options.
7727         * toplev.c (parse_options_and_default_flags): Update.
7728 objc:
7729         * objc-lang.c (objc_post_options): Kill.
7730         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7732 2002-05-21  Bruce Korb  <bkorb@gnu.org>
7734         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7735         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7736         * fixinc/fixincl.x: regen.
7738 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
7740         * cfgbuild.c: Fix formatting.
7741         * cfg.c: Likewise.
7742         * cfgcleanup.c: Likewise.
7743         * cfglayout.c: Likewise.
7744         * cfgloop.c: Likewise.
7745         * cfgrtl.c: Likewise.
7747 2002-05-21  Richard Henderson  <rth@redhat.com>
7749         * c-common.h (enum rid): Add RID_THREAD.
7750         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7751         (grokdeclarator): Grok __thread.
7752         * c-parse.in (reswords): Add __thread.
7753         (rid_to_yy): Add RID_THREAD.
7755         * tree.h (DECL_THREAD_LOCAL): New.
7756         (struct tree_decl): Add thread_local_flag.
7757         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7758         * tree.c (staticp): TLS variables are not static.
7760         * target-def.h (TARGET_HAVE_TLS): New.
7761         * target.h (have_tls): New.
7762         * output.h (SECTION_TLS): New.
7763         * varasm.c (assemble_variable): TLS variables can't be common for now.
7764         (default_section_type_flags): Handle .tdata and .tbss.
7765         (default_elf_asm_named_section): Handle SECTION_TLS.
7766         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7768         * flags.h (flag_tls_default): Declare.
7769         * toplev.c (flag_tls_default): Define.
7770         (display_help): Display help for it.
7771         (decode_f_option): Set it.
7773         * doc/extend.texi (Thread-Local): New node describing language-level
7774         thread-local storage.
7775         * doc/invoke.texi (-ftls-model): Document.
7777         * fixinc/inclhack.def (thread_keyword): New.
7778         * fixinc/fixincl.x: Rebuild.
7780 2002-05-21  Jeffrey A Law  <law@redhat.com>
7782         * optabs.c (expand_binop): For double-word integer multiplies,
7783         do not compute intermediate results into something that is
7784         not a register (such as a SUBREG or MEM).
7786         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7787         (ix86_sched_reorder): Make sure to initialize scheduling
7788         data even when there's only one insn in the ready queue.
7790 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7792         * genautomata.c (reserv_sets_hash_value): Fix a typo.
7794 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
7796         * genautomata.c (reserv_sets_hash_value): Define hash_value as
7797         set_el_t.  Transform the hash value into unsigned.
7798         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7799         (transform_3): Add code to process `(A,B)+(D,E)'.
7801 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
7803         * reload1.c (do_output_reload): Run delete_output_reload
7804         only if optimizing.
7806 2002-05-21  Roger Sayle  <roger@eyesopen.com>
7808         PR middle-end/6600
7809         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7810         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
7811         (can_store_by_pieces): ... and here to limit the largest mode used.
7812         Add a comment to document this function.
7814 2002-05-21  Richard Henderson  <rth@redhat.com>
7816         * flow.c (life_analysis): Fix test for deleted label.
7818 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7820         * doc/tm.texi: Fix typo.
7822 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
7824         * c-common.c (c_common_init): Set options->unsigned_char from
7825         flag_signed_char.
7826         (cb_register_builtins): Define __STRICT_ANSI__ and
7827         __CHAR_UNSIGNED__ here...
7828         * cppinit.c (init_builtins): Not here.
7829         (cpp_create_reader): unsigned_char option defaults to 0, not
7830         !DEFAULT_SIGNED_CHAR.
7831         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7832         and -funsigned-char.
7834         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7835         * cpphash.c (_cpp_init_hashtable): Don't set it.
7836         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7837         directly.  Clarify comment.
7839 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7841         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7842         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
7843         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
7844         BASIC_BLOCK (n_basic_blocks - 1).
7845         * cfganal.c (can_fallthru, flow_call_edges_add,
7846         flow_preorder_transversal_compute): Too.
7847         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7848         find_sub_basic_blocks): Too.
7849         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7850         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7851         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7852         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7853         * combine.c (this_basic_block): Type changed to basic_block.
7854         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7855         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7856         get_last_value, distribute_notes, distribute_links): Too.
7857         * final.c (compute_alignments): Too.
7858         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7859         * function.c (thread_prologue_and_epilogue_insns): Too.
7860         * gcse.c (compute_code_hoist_vbeinout): Too.
7861         * global.c (build_insn_chain): Too.
7862         * ifcvt.c (find_if_block, find_cond_trap): Too.
7863         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7864         * regmove.c (regmove_optimize): Too.
7865         * resource.c (find_basic_block): Too.
7866         * sched-ebb.c (schedule_ebbs): Too.
7867         * ssa-dce.c (find_control_dependence, find_pdom): Too.
7869 2002-05-21  Andreas Jaeger  <aj@suse.de>
7871         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7873 2002-05-21  Richard Henderson  <rth@redhat.com>
7875         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7876         unspec names, not numbers.
7878 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7880         * doc/sourcebuild.texi: Mention snapshot-README and
7881         snapshot-index.html as needing updating for new front ends.
7883 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7885         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7886         disabling checking, and avoid multiple evaluation of RTX.
7888 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
7890         * bitmap.c (bitmap_find_bit): Return early if we have the correct
7891         element cached.
7893 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7895         * profile.c (gen_edge_profiler):  Set alias set before the memory is
7896         used.
7898 2002-05-20  David S. Miller  <davem@redhat.com>
7900         * cselib.c (max_value_regs): New.
7901         (cselib_lookup, cselib_invalidate_regno): Initialize it when
7902         adding new entries to the REG_VALUES table and we are dealing with
7903         a hard register.
7904         (clear_table): Initialize it.
7905         (cselib_invalidate_regno): Use it to determine which hard
7906         registers to scan when mode is not VOIDmode.
7908 2002-05-20  Duraid Madina   <duraid@fl.net.au>
7910         * tradcpp.c (fixup_newlines): Use old-style function header.
7912 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
7914         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7916 2002-05-20  H.J. Lu  (hjl@gnu.org)
7918         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7920         * config/mips/mips.h (DFMODE_NAN): Defined.
7921         (SFMODE_NAN): Likewise.
7923 2002-05-20  Dale Johannesen  <dalej@apple.com>
7925         * combine.c (cant_combine_insn_p):  Back out my
7926         previous patch.
7928 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
7930         * params.c: Fix formatting.
7931         * params.h: Likewise.
7932         * predict.c: Likewise.
7933         * prefix.c: Likewise.
7934         * print-rtl.c: Likewise.
7935         * print-tree.c: Likewise.
7936         * profile.c: Likewise.
7938 2002-05-20  H.J. Lu  (hjl@gnu.org)
7940         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7942 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
7944         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7945         switches straight on to the assembler, do not abbreviate them.
7946         * config/arm/elf.h (ASM_SPEC): As above.
7947         * config/arm/semi.h (ASM_SPEC): As above.
7948         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7949         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7950         -mcpu=xscale on to the assembler by default.
7951         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7953 2002-05-20  Richard Henderson  <rth@redhat.com>
7955         * cse.c (canon_hash): Reorder do_not_record test.  Always
7956         allow pic_offset_table_rtx.
7958 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
7960         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7961         (expand_binop): Ditto (3 times).
7963 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
7965         * Makefile.in (distclean): Remove QMTest stuff.
7966         (QMTEST_PATH): New variable.
7967         (QMTESTFLAGS): Likewise.
7968         (QMTESTRUNFLAGS): Likewise.
7969         (QMTEST): Likewise.
7970         (QMTEST_GPP_TESTS): Likewise.
7971         (QMTEST_DIR): Likewise.
7972         (QMTEST_DIR/context): New target.
7973         (qmtest-g++): Likeise.
7974         (qmtest-gui): Likewise.
7975         (QMTEST_DIR/gpp-expected.qmr): Likewise.
7977 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
7979         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7980         an altivec register if TARGET_ALTIVEC.
7982         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7983         to ALTIVEC_VECTOR_MODE.
7984         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7985         (rs6000_va_arg): Vectors may go in registers if they are not
7986         altivec vectors.
7988 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
7990         * protoize.c: Fix formatting.
7992 2002-05-19  Richard Henderson  <rth@redhat.com>
7994         * gensupport.c (init_include_reader): Merge into ...
7995         (process_include): ... here.  Simplify composite path creation.
7996         Plug memory leaks.  Fix file/line number tracking.  Do not
7997         process_define_cond_exec.  Return void.
7998         (process_rtx): Don't check process_include return value.
8000 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8002         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8003         fields.
8004         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8005         traversing basic block chain.
8006         (create_basic_block_structure, create_basic_block): Declaration changed.
8007         (link_block, unlink_block): Declare.
8008         * cfg.c (entry_exit_blocks): Initialize new fields.
8009         (link_block, unlink_block): New.
8010         (expunge_block_nocompact): Unlink basic block.
8011         (dump_flow_info): Print prev_bb/next_bb fields.
8012         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8013         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8014         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8015         * cfgrtl.c (create_basic_block_structure, create_basic_block,
8016         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8017         (verify_flow_info): Check that list agrees with numbering.
8019 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8021         * c-common.c (preprocessing_asm): New macro.
8022         * c-lex.h (builtin_define, builtin_assert): Use pfile.
8023 doc:
8024         * tm.texi: Update.
8025 config/alpha:
8026         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8027         (CPP_SPEC): Simplify.
8028         (TARGET_CPU_CPP_BUILTINS): Update.
8029         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8030         (CPP_SPEC): Simplify.
8031         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8032         (TARGET_OS_CPP_BUILTINS): Update.
8033         * osf.h (CPP_XFLOAT_SPEC): Kill.
8034         (TARGET_OS_CPP_BUILTINS): Update.
8035         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8036         * osf5.h (CPP_XFLOAT_SPEC): Kill.
8037         * vms.h (CPP_SUBTARGET_SPEC): Kill.
8038         (TARGET_OS_CPP_BUILTINS): Update.
8040 2002-05-19  Richard Henderson  <rth@redhat.com>
8042         * varasm.c (default_binds_local_p): Fix typo.
8044 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8046         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8047         CONST_INT operand to the correct mode after adding 1 to it.
8049 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
8051         * config.gcc (powerpc-wrs-windiss*): New target.
8053 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8055         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8056         (ashrdi3): Use it.
8058 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
8060         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8061         alphasort.
8062         * config.in: Regenerated.
8063         * configure: Regenerated.
8065 2002-05-19  Richard Henderson  <rth@redhat.com>
8067         * target-def.h (TARGET_BINDS_LOCAL_P): New.
8068         * target.h (struct gcc_target): Move boolean fields to the end.
8069         Add binds_local_p.
8070         * varasm.c (default_binds_local_p): New.
8071         * output.h: Declare it.
8073         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8074         * config/cris/cris.c (cris_encode_section_info): Likewise.
8075         * config/i386/i386.c (i386_encode_section_info): Likewise.
8076         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8077         * config/sh/sh.c (sh_encode_section_info): Likewise.
8079         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8080         (TARGET_BINDS_LOCAL_P): New.
8082 2002-05-19  Richard Henderson  <rth@redhat.com>
8084         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8085         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8086         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8088         * toplev.c (display_help): Kill -a -ax help.
8090         * config/1750a/1750a.h, config/alpha/alpha.h,
8091         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8092         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8093         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8094         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8096         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8097         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8099         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8100         (ix86_output_function_block_profiler): Kill.
8101         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8102         (m68hc11_function_block_profiler): Kill.
8103         * config/m68hc11/m68hc11-protos.h: Update.
8104         * config/m88k/m88k.c (output_block_profiler): Kill.
8105         (output_function_block_profiler): Kill.
8106         * config/m88k/m88k-protos.h: Update.
8108 2002-05-19  Richard Henderson  <rth@redhat.com>
8110         * system.h (STRIP_NAME_ENCODING): Poison it.
8111         * output.h (STRIP_NAME_ENCODING): Remove.
8112         (default_strip_name_encoding): Declare.
8113         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8114         * target.h (strip_name_encoding): New.
8115         * varasm.c (default_strip_name_encoding): New.
8117         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8118         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8119         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8120         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8121         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8122         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8123         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8124         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8125         config/v850/v850.h: Use the hook, not the macro.
8127         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8128         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8129         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8130         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8131         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8132         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8133         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8134         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8135         config/v850/v850.c, config/v850/v850.h:
8136         Move STRIP_NAME_ENCODING to out-of-line function and add
8137         TARGET_STRIP_NAME_ENCODING.
8139         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
8140         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
8141         with TARGET_STRIP_NAME_ENCODING referencing existing function;
8142         make function static.
8144         * xcoffout.c: Include target.h
8145         * Makefile.in (xcoffout.o): Update.
8147         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
8148         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
8149         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
8150         reloc argument unused.
8151         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
8153         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
8154         STRIP_NAME_ENCODING docs.
8156 2002-05-19  Andreas Jaeger  <aj@suse.de>
8158         * gengenrtl.c: Add prototype for excluded_rtx.
8160         * real.h: Add prototype for exact_real_truncate.
8162 2002-05-18  Richard Henderson  <rth@redhat.com>
8164         * system.h (ENCODE_SECTION_INFO): Poison it.
8165         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
8166         * target.h (encode_section_info): New.
8167         * varasm.c (make_decl_rtl, output_constant_def): Use it.
8168         * hooks.c (hook_tree_int_void): New.
8169         * hooks.h: Declare it.
8171         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8172         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
8173         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
8174         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
8175         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
8176         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
8177         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
8178         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
8179         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8180         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8181         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
8182         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
8183         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
8184         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
8185         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
8186         referencing existing function.  Make function static.
8188         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8189         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
8190         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
8191         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
8192         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8193         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
8194         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
8195         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
8196         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
8197         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8198         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
8199         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
8200         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
8201         Move ENCODE_SECTION_INFO to out-of-line function and add
8202         TARGET_ENCODE_SECTION_INFO.
8204         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
8205         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8207         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
8208         from SUBTARGET_*
8209         (switch_to_section): Replace in_rdata case with in_readonly_data.
8211         * config/h8300/h8300.c (h8300_encode_label): Make static.
8212         * config/h8300/h8300-protos.h: Update.
8214         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
8215         from rs6000_encode_section_info; make static.
8216         (rs6000_xcoff_encode_section_info): New.
8218         * config/v850/v850.c (v850_encode_data_area): Make static.
8219         * config/v850/v850-protos.h: Update.
8221         * config/vax/vax.c: Include flags.h.
8222         (vms_select_section): Fix typo.
8224         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
8225         ENCODE_SECTION_INFO docs.
8227 2002-05-18  Richard Henderson  <rth@redhat.com>
8229         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
8230         REGISTER_TARGET_PRAGMAS.
8231         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
8233         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
8235 2002-05-18  Richard Henderson  <rth@redhat.com>
8237         * system.h (SELECT_RTX_SECTION): Poison.
8238         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
8239         * target.h (select_rtx_section): New.
8240         * varasm.c (output_constant_pool): Use it.
8241         (default_select_rtx_section, default_elf_select_rtx_section): New.
8242         * output.h: Declare them.
8244         * config/darwin.h (SELECT_RTX_SECTION): Move ...
8245         * config/darwin.c (machopic_select_rtx_section): ... here.
8246         * config/darwin-protos.h: Update.
8248         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
8249         * config/nextstep.c (machopic_select_rtx_section): ... here.
8250         (nextstep_select_section): Rename variable to avoid macro clash.
8251         * config/nextstep-protos.h: Update.
8253         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
8254         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
8255         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8256         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
8257         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
8258         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8259         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
8260         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
8261         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
8262         (SELECT_RTX_SECTION): Remove.
8264         * config/darwin.h, config/elfos.h, config/nextstep.h,
8265         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
8266         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
8267         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
8268         config/sparc/lynx.h, config/xtensa/xtensa.c
8269         (TARGET_ASM_SELECT_RTX_SECTION): New.
8271         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
8272         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
8273         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
8274         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
8275         (ia64_aix_select_rtx_section): New.
8276         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
8277         redefining.
8278         * config/mips/mips.c (mips_select_rtx_section): Make static.
8279         Support ELF SHF_MERGE features.
8280         * config/mips/mips-protos.h: Update.
8281         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
8282         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
8283         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
8284         make static, fall back to default_elf_select_rtx_section.
8285         * config/rs6000/rs6000-protos.h: Update.
8286         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
8287         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
8288         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
8289         * config/romp/romp.c (romp_select_rtx_section): New.
8290         * config/s390/s390.c (s390_select_rtx_section): New.
8291         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
8292         declarations before target macro definition.
8293         (xtensa_emit_call): Use static buffer.
8294         (xtensa_select_rtx_section): New.
8295         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
8296         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
8297         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
8299         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
8300         SELECT_RTX_SECTION docs.
8302 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
8304         * i386.md (movsi/movdi): Fix template.
8305         (sse2 patterns): Set attributes consistently.
8307         * i386.md (pushqi2, ashrqi_*): Fix constraint.
8309 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
8311         * optabs.c (complex_part_zero_p): New.
8312         * (expand_cmplxdiv_straight): Use it.
8313         * (expand_cmplxdiv_wide): Ditto.
8314         * (expand_binop): Ditto.
8316 2002-05-18  Richard Henderson  <rth@redhat.com>
8318         * final.c (HAVE_READONLY_DATA_SECTION): New.
8319         (shorten_branches): Use it instead of ifdefs.
8320         * varasm.c (enum in_section): Add in_readonly_data.
8321         (text_section, data_section): Tidy.
8322         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
8324         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
8325         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
8326         (READONLY_DATA_SECTION): Don't undef.
8328         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
8329         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
8330         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
8332         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
8333         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
8334         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
8335         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
8337         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
8338         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
8339         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8340         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
8341         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
8342         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
8343         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
8344         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
8345         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
8347         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
8348         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
8349         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
8350         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
8351         config/pa/pa64-hpux.h, config/sparc/litecoff.h
8352         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8354         * config/elfos.h, config/netware.h, config/svr3.h,
8355         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8356         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
8357         config/h8300/h8300.h, config/i386/i386-interix.h,
8358         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8359         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
8361         * config/elfos.h, config/netware.h, config/svr3.h,
8362         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
8363         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
8364         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
8365         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8367         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8368         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8369         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8370         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8371         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8372         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8373         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8374         config/rs6000/sysv4.h, config/v850/v850.h
8375         (EXTRA_SECTIONS): Remove in_const/in_rdata.
8376         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8378         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8379         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8380         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8381         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8382         * config/alpha/alpha.c (alpha_start_function): Likewise.
8383         (alpha_write_linkage): Likewise.
8384         * config/m32r/m32r.c (m32r_select_section): Likewise.
8385         * config/m88k/m88k.c (m88k_select_section): Likewise.
8386         * config/mips/mips.c (mips_select_rtx_section): Likewise.
8387         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8388         (rs6000_elf_select_section): Likewise.
8389         * config/v850/v850.c (v850_select_section): Likewise.
8391         * config/1750a/1750a.h, config/i860/sysv3.h
8392         (READONLY_DATA_SECTION_ASM_OP): New.
8393         READONLY_DATA_SECTION_ASM_OP.
8394         * config/i386/interix.c, config/i386/winnt.c
8395         (i386_pe_unique_section): Always use .rdata prefix.
8396         * config/pa/som.h (readonly_data): Always switch to read-only section.
8397         (READONLY_DATA_SECTION): Predicate on flag_pic.
8398         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8399         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8400         (READONLY_DATA_SECTION): Update.
8402 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
8404         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8405         is used without -Wformat.
8406         * c-common.h (warn_format_zero_length): Declare extern.
8407         * c-decl.c (warn_options): Add "format-zero-length".
8408         * c-format.c (warn_format_zero_length): Declare.
8409         (set_Wformat): Set warn_format_zero_length for -Wformat.
8410         (check_format_info): Only warn about zero-length formats if
8411         warn_format_zero_length is true.  Include the format type
8412         name in the warning message.
8413         * doc/invoke.texi: Document -Wformat-zero-length.
8414         * testsuite/gcc.dg/format/zero-length-1.c: New test.
8416 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
8418         * timevar.c: Fix formatting.
8419         * tlink.c: Likewise.
8420         * toplev.c: Likewise.
8421         * tree-dump.c: Likewise.
8422         * tree-inline.c: Likewise.
8424 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8426         * cppinit.c (cpp_post_options): If preprocessed, turn off
8427         traditional.  If traditional, turn off column numbers.
8428         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8429         * cpptrad.c (handle_newline): Update line_base.
8430         (skip_comment): Handle -Wcomment.
8432 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
8434         * cppinit.c (struct builtin): Remove unused fields.
8435         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8436         (operator_array): New - was second half of builtin_array.
8437         (init_builtins): Simplify loop over builtin_array/operator_array.
8439 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8441         * defaults.h (UNIQUE_SECTION): Remove.
8442         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8444 2002-05-17  Richard Henderson  <rth@redhat.com>
8446         * expr.c (init_expr_once): Don't use start/end_sequence.
8447         Use rtx_alloc instead of emit_insn.
8448         * toplev.c (lang_dependent_init): Run init_expr_once here ...
8449         (lang_independent_init): ... not here.
8451 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
8453         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8455 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8457         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
8458         for fixed registers, possibly used for global register variables.
8459         (initial_elimination_offset, avr_output_function_prologue,
8460         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
8462 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8464         * Makefile.in: Update for cpptrad.c.
8465         * cpphash.h (struct cpp_buffer): New members for buffer
8466         overlays.
8467         (struct cpp_reader): New members for traditional output.
8468         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8469         * cppinit.c (cpp_create_reader): Set trad_line.
8470         (cpp_destroy): Free trad_out_base if used.
8471         (cpp_read_main_file): Overlay an empty buffer if traditional.
8472         (cpp_finish_options): Don't do builtins.
8473         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8474         (cpp_handle_option): Handle it.
8475         * cpplex.c (continue_after_nul): New.
8476         (_cpp_lex_direct): Use handle_nul.
8477         * cpplib.h (struct cpp_options): New traditional option.
8478         * cpptrad.c: New file.
8480 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8482         * c-common.c (c_common_init_options): Use C89 for Objective-C,
8483         and set the options flag.
8484         * cppinit.c (lang_flags): Remove objc.
8485         (lang_defaults): Remove OBJC and OBJCXX.
8486         (set_lang): Update.
8487         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8488         (cpp_handle_option): Remove -+ and -lang-objc++.
8489         For ObjC, just set a flag.
8490         (print_help): Update.
8491         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8493 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8495         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8496         bootstrap with -mips3.
8498 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
8500         * final.c: Fix formatting.
8501         * fix-header.c: Likewise.
8502         * flow.c: Likewise.
8503         * fold-const.c: Likewise.
8504         * function.c: Likewise.
8506 2002-05-17  David S. Miller  <davem@redhat.com>
8508         PR c/6689, PR optimization/6615
8509         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8510         and make it a pointer to rtx.  Update comments.
8511         (update_equiv_regs): When scanning for equivalences, record
8512         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
8513         it while making the equiv replacements.
8515 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8517         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8519 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8521         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8522         when encoding visibility into SYMBOL_REF_FLAG.
8524 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
8526         * expr.c (force_operand): Fix reversed move.
8528 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
8530         * doc/install.texi (Testing): Mention two common DejaGnu warnings
8531         that can be ignored.
8533 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8535         * doc/install.texi (Final install): Recommend to install into a
8536         "clean" target directory.
8538 2002-05-17  Richard Henderson  <rth@redhat.com>
8540         * config/ia64/ia64.md: Use braced strings instead of quoted strings
8541         for code blocks.  Tidy whitespace.
8543 2002-05-17  Richard Henderson  <rth@redhat.com>
8545         * hooks.c (hook_tree_bool_false): New.
8546         * hooks.h: Declare it.
8547         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8548         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8549         * target.h (select_section, unique_section): New.
8550         (in_small_data_p): New.
8551         * varasm.c (resolve_unique_section): Use hooks instead of macros.
8552         (variable_section, output_constant_def_contents): Likewise.
8553         (default_select_section, default_unique_section): New.
8554         (categorize_decl_for_section, default_elf_select_section): New.
8555         * output.h: Declare them.
8557         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8558         (TARGET_ASM_SELECT_SECTION): New.
8559         (SELECT_SECTION): Move ...
8560         * config/darwin.c (machopic_select_section): ... here.
8561         * config/darwin-protos.h: Update.
8563         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8564         (SELECT_SECTION): Move ...
8565         * config/nextstep.c (nextstep_select_section): ... here.
8566         * config/nextstep-protos.h: Update.
8568         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8569         (TARGET_ASM_SELECT_SECTION): New.
8570         * config/svr3.h (SELECT_SECTION): Remove.
8572         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8573         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8574         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8575         (alpha_encode_section_info): Use it.
8576         * config/alpha/alpha-protos.h: Update.
8577         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8578         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8579         (TARGET_ASM_SELECT_SECTION): New.
8580         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8582         * config/arm/pe.h (UNIQUE_SECTION): Remove.
8583         (TARGET_ASM_UNIQUE_SECTION): New.
8585         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8586         (avr_unique_section): Rename from unique_section; make static.
8587         * config/avr/avr-protos.h: Update.
8588         * config/avr/avr.h (UNIQUE_SECTION): Remove.
8590         * config/c4x/c4x.h (SELECT_SECTION): Remove.
8592         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8593         (TARGET_ASM_UNIQUE_SECTION): New.
8594         * config/i386/i386-interix.h: Likewise.
8595         * config/i386/win32.h: Likewise.
8596         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8597         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8598         * config/i386/sco5.h (SELECT_SECTION): Remove.
8599         (TARGET_ASM_SELECT_SECTION): New.
8600         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8602         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8603         instead of SELECT_SECTION.
8604         * config/m68k/dpx2.h: Likewise.
8605         * config/rs6000/lynx.h: Likewise.
8607         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8608         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8609         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8610         (ia64_in_small_data_p): New.
8611         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
8612         (ia64_aix_select_section, ia64_aix_unique_section): New.
8613         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8614         (SELECT_SECTION, UNIQUE_SECTION): Remove.
8616         * config/m32r/m32r.h (SELECT_SECTION): Remove.
8617         (TARGET_ASM_SELECT_SECTION): New.
8618         * config/m32r/m32r.c (m32r_select_section): Take align argument.
8619         * config/m32r/m32r-protos.h: Update.
8621         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8622         (SELECT_SECTION): Move ...
8623         * config/m88k/m88k.c (m88k_select_section): ... here.
8625         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8626         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8627         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8628         (mcore_unique_section): Make static.
8629         * config/mcore/mcore-protos.h: Update.
8631         * config/mips/elf.h (UNIQUE_SECTION): Remove.
8632         (TARGET_ASM_UNIQUE_SECTION): New.
8633         * config/mips/elf64.h: Likewise.
8634         * config/mips/iris6gld.h: Likewise.
8635         * config/mips/linux.h: Likewise.
8636         * config/mips/mips-protos.h: Update.
8637         * config/mips/mips.c (mips_select_section): Add align argument.
8638         * config/mips/mips.h (SELECT_SECTION): Remove.
8639         (TARGET_ASM_SELECT_SECTION): New.
8641         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8642         * config/mmix/mmix.c (mmix_select_section): Remove.
8643         (mmix_unique_section): Remove.
8644         * config/mmix/mmix-protos.h: Update.
8646         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8647         (SELECT_SECTION): Move ...
8648         * config/pa/pa.c (pa_select_section): ... here.
8649         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8651         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8652         from rs6000_select_section and make static.
8653         (rs6000_elf_unique_section): Similarly.
8654         (rs6000_xcoff_select_section): From xcoff.h.
8655         (rs6000_xcoff_unique_section): Likewise.
8656         * config/rs6000/rs6000-protos.h: Update.
8657         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8658         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8659         * config/rs6000/xcoff.h: Likewise.
8661         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8662         (SELECT_SECTION): Move ...
8663         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8665         * config/v850/v850.h (SELECT_SECTION): Move ...
8666         * config/v850/v850.c (v850_select_section): ... here.
8667         (TARGET_ASM_SELECT_SECTION): New.
8669         * config/vax/vms.h (SELECT_SECTION): Move ...
8670         * config/vax/vax.c (vms_select_section): ... here.
8671         (TARGET_ASM_SELECT_SECTION): New.
8673         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8674         for the target hooks.
8676 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
8678         * config/arm/arm.c (emit_multi_reg_push): Do not set
8679         RTX_FRAME_RELATED_P on the SEQUENCE.
8681 2002-05-16  Richard Henderson  <rth@redhat.com>
8683         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8684         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
8686 2002-05-16  Richard Henderson  <rth@redhat.com>
8688         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8690         * config/ia64/ia64.c (saveable_obstack): Do not declare.
8692 2002-05-16  Richard Henderson  <rth@redhat.com>
8694         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8695         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8696         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8697         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8698         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8699         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8700         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8701         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8702         Revert "Basic block renumbering removal", and two followup patches.
8704 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8706         * lcm.c (optimize_mode_switching): Revert previous change.
8708 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8710         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8711         with only extant block numbers.
8713 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
8715         * lcm.c (optimize_mode_switching): Fix typo.
8717 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8719         * flow.c (calculate_global_regs_live): Queue blocks in program order.
8721 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8723         * doc/install.texi (Configuration): Document PWDCMD.
8725 2002-05-16  Dale Johannesen  <dalej@apple.com>
8727         * combine.c (cant_combine_insn_p):  Reenable combinations
8728         involving hard regs unless CLASS_LIKELY_SPILLED_P.
8730 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8732         * c-common.c (cb_register_builtins): Handle more built-ins
8733         here rather than in gcc.c specs.
8734         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8735         (cpp_options): Pass -O flags even when only preprocessing.
8736         * toplev.c (set_fast_math_flags): New prototype.
8737         (fast_math_flags_set_p): New.
8738         (set_no_fast_math_flags): Remove.
8739         (decode_f_option): Update.
8740         * toplev.h (set_fast_math_flags): Update.
8741         (fast_math_flags_set_p): New.
8742         (set_no_fast_math_flags): Remove.
8743 config:
8744         * c4x/c4x.c (c4x_override_options): Update.
8746 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
8748         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8749         Default-define here.
8750         (builtin_define_with_value): Can now wrap the expansion in
8751         quotation marks if such is wanted.
8752         (cb_register_builtins): Update calls to builtin_define_with_value.
8753         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8754         here.
8755         (c_common_init): Set options->stdc_0_in_system_headers.
8756         * c-lex.h: Update prototype of builtin_define_with_value.
8757         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8758         and REGISTER_PREFIX.
8760         * cppinit.c (VERS, ULP, C, X): Kill.
8761         (builtin_array): Remove entries for __VERSION__,
8762         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8763         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
8764         a constant.
8765         (init_builtins): Kill off a bunch of now-dead code.
8766         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8767         -fno-leading-underscore.
8768         (cpp_handle_option): Remove code to set user_label_prefix.
8769         (cpp_post_options): Likewise.
8771         * cpplib.h (struct cpp_options): Remove user_label_prefix.
8772         (stdc_0_in_system_headers): New.
8773         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8774         stdc_0_in_system_headers) too to decide the value of __STDC__.
8776         * tradcpp.c (user_label_prefix): Kill.
8777         (main): Remove code handling -f(no-)leading-underscore.
8778         (initialize_builtins): Don't define __REGISTER_PREFIX__
8779         or __USER_LABEL_PREFIX__.
8780         (install_value): Wrap compound statement in dummy loop so the
8781         macro works properly in an if statement.
8784 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
8786         * loop.h (struct loop_info): Add member has_prefetch.
8787         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8788         (prescan_loop): Initialize has_prefetch.
8789         (struct prefetch_info): Change prefetch_in_loop and
8790         prefetch_before_loop from bit fields to ints.
8791         (emit_prefetch_instructions): Several small fixes.
8792         (check_dbra_loop): Don't reverse loop that uses prefetch.
8794 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8796         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8797         * configure.in: Likewise.
8798         * fixinc/check.tpl: Likewise.
8799         * fixinc/fixinc.dgux: Likewise.
8800         * fixinc/fixinc.svr4: Likewise.
8801         * fixinc/fixinc.winnt: Likewise.
8802         * fixinc/fixincl.sh: Likewise.
8803         * fixproto: Likewise.
8804         * configure: Regenerate.
8806 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8808         Basic block renumbering removal:
8809         * basic_block.h (struct basic_block_def): Renamed index to sindex,
8810         added prev_bb and next_bb fields.
8811         (n_basic_blocks): Renamed to num_basic_blocks.
8812         (last_basic_block): New, index of last basic block.
8813         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8814         traversing basic block chain.
8815         (BLOCK_NUM): index -> sindex.
8816         (create_basic_block_structure, create_basic_block): Declaration changed.
8817         (debug_num2bb): Declare.
8818         (expunge_block_nocompact): Declaration removed.
8819         (link_block, unlink_block, compact_blocks): Declare.
8820         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8821         * cfg.c (entry_exit_blocks): Initialize new fields.
8822         (clear_edges, alloc_block, expunge_block, cached_make_edge,
8823         redirect_edge_pred, dump_flow_info, dump_edge_info,
8824         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8825         free_aux_for_edges): Modified.
8826         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8827         (expunge_block_nocompact): Removed.
8828         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8829         find_unreachable_blocks, create_edge_list, print_edge_list,
8830         verify_edge_list, flow_edge_list_print, remove_fake_successors,
8831         remove_fake_edges, flow_reverse_top_sort_order_compute,
8832         flow_depth_first_order_compute, flow_preorder_transversal_compute,
8833         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8834         flow_dfs_compute_reverse_execute): Modified.
8835         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8836         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8837         Modified.
8838         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8839         merge_blocks_move_predecessor_nojumps,
8840         merge_blocks_move_successor_nojumps, merge_blocks,
8841         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8842         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8843         * cfglayout.c (skip_insns_after_block, label_for_bb,
8844         record_effective_endpoints, scope_to_insns_finalize,
8845         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8846         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8847         cfg_layout_duplicate_bb): Modified.
8848         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8849         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8850         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8851         flow_loops_find, flow_loop_outside_edge_p): Modified.
8852         * cfgrtl.c (create_basic_block_structure, create_basic_block,
8853         flow_delete_block, compute_bb_for_insn, split_block,
8854         try_redirect_by_replacing_jump, redirect_edge_and_branch,
8855         force_nonfallthru_and_redirect, tidy_fallthru_edge,
8856         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8857         commit_edge_insertions, commit_edge_insertions_watch_calls,
8858         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8859         purge_all_dead_edges): Modified.
8860         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8861         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8862         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8863         Modified.
8864         * conflict.c (conflict_graph_compute): Modified.
8865         * df.c (FOR_ALL_BBS): Removed.
8866         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8867         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8868         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8869         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8870         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8871         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8872         * final.c (compute_alignments, final_scan_insn): Modified.
8873         * flow.c (verify_local_live_at_start, update_life_info,
8874         update_life_info_in_dirty_blocks, free_basic_block_vars,
8875         delete_noop_moves, calculate_global_regs_live,
8876         initialize_uninitialized_subregs, allocate_bb_life_data,
8877         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8878         mark_used_reg, count_or_remove_death_notes): Modified.
8879         * function.c (thread_prologue_and_epilogue_insns): Modified.
8880         * gcse.c (struct null_pointer_info): Change typo of current_block
8881         to basic_block.
8882         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8883         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8884         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8885         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8886         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8887         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8888         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8889         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8890         pre_delete, one_pre_gcse_pass, compute_transpout,
8891         invalidate_nonnull_info, delete_null_pointer_checks_1,
8892         free_code_hoist_mem, compute_code_hoist_vbeinout,
8893         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8894         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8895         compute_store_table, build_store_vectors, insert_insn_start_bb,
8896         insert_store, replace_store_insn, free_store_memory, store_motion):
8897         Modified.
8898         * global.c (global_alloc, global_conflicts, mark_elimination,
8899         build_insn_chain): Modified.
8900         * graph.c (print_rtl_graph_with_bb): Modified.
8901         * haifa-sched.c (sched_init): Modified.
8902         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8903         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8904         if_convert): Modified.
8905         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8906         compute_insert_delete, pre_edge_lcm, compute_available,
8907         compute_farthest, compute_nearerout, compute_rev_insert_delete,
8908         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8909         Modified.
8910         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8911         * loop.c (loop_dump_aux): Modified.
8912         * predict.c (combine_predictions_for_insn, estimate_probability,
8913         last_basic_block_p, process_note_prediction, process_note_predictions,
8914         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8915         expensive_function_p, estimate_bb_frequencies,
8916         compute_function_frequency): Modified.
8917         * print-rtl.c (print_rtx): Modified.
8918         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8919         get_exec_counts, compute_branch_probabilities, compute_checksum,
8920         branch_prob, find_spanning_tree): Modified.
8921         * recog.c (split_all_insns, peephole2_optimize): Modified.
8922         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8923         convert_regs_1, convert_regs_2, convert_regs): Modified.
8924         * regclass.c (scan_one_insn, regclass): Modified.
8925         * regmove.c (mark_flags_life_zones, regmove_optimize,
8926         combine_stack_adjustments): Modified.
8927         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8928         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8929         * reorg.c (dbr_schedule): Modified.
8930         * resource.c (find_basic_block, init_resource_info): Modified.
8931         * sbitmap.c (sbitmap_intersection_of_succs,
8932         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8933         sbitmap_union_of_preds): Modified.
8934         * sched-deps.c (init_dependency_caches): Modified.
8935         * sched-ebb.c (schedule_ebbs): Modified.
8936         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8937         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8938         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8939         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8940         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8941         ssa_const_prop): Modified.
8942         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8943         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8944         * ssa.c (remove_phi_alternative, find_evaluations,
8945         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8946         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8947         make_regs_equivalent_over_bad_edges,
8948         make_equivalent_phi_alternatives_equival,
8949         compute_conservative_reg_partition,
8950         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8951         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8952         Modified.
8954 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
8956         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8958 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
8960         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8961         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8962         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8963         calling CONSTANT_POOL_ADDRESS_P.
8964         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8965         to decide whether to define __arm__ or __thumb.
8966         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
8967         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8969 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8971         * config/arc/arc.h (CPP_PREDEFINES): Remove.
8972         (CPP_SPEC): Update.
8973         (TARGET_CPU_CPP_BUILTINS): New.
8975 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8977         * cpphash.h (cpp_macro): Move here, and make expansion a union.
8978         * cppmacro.c (cpp_macro): Remove.
8979         (enter_macro_context, replace_args, warn_of_redefinition,
8980         _cpp_create_definition, cpp_macro_definition): Update.
8982 2002-05-16  Jason Merrill  <jason@redhat.com>
8984         * config/mips/mips.c (mips_output_external): Don't do sdata
8985         optimization for a variable with DECL_COMDAT set.
8987 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
8989         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8990         Cleanups for accepting modifiers on pointers.
8991         Fix predicate typos.
8992         Allow long pointers as well as int pointers.
8994 2002-05-15  Richard Henderson  <rth@redhat.com>
8996         * varasm.c (merge_weak): Remove special case for extern and common.
8998 2002-05-15  Matt Hiller  <hiller@redhat.com>
9000         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9001         XFAILing.
9002         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9003         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9004         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9005         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9006         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9007         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9009 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
9011         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9013 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
9015         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9016         ("altivec_mfvscr"): Read from VSCR.
9018         Add vscr sets for the following insns: altivec_vctuxs,
9019         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9020         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9021         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9022         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9023         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9024         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9025         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9026         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9027         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9028         altivec_vsum2sws, altivec_vsumsws.
9030         * config/rs6000/rs6000.h: Add VSCR fixed register.
9031         (CALL_REALLY_USED_REGISTERS): Add vscr.
9032         (CALL_USED_REGISTERS): Same.
9033         (FIXED_REGISTERS): Same.
9034         (REG_ALLOC_ORDER): Same.
9035         (reg_class): Add VSCR_REGS.
9036         (REG_CLASS_NAMES): Same.
9037         (REG_CLASS_CONTENTS): Same.
9038         (VSCR_REGNO): New.
9039         (REGISTER_NAMES): Add vscr.
9040         (DEBUG_REGISTER_NAMES): Same.
9041         (ADDITIONAL_REGISTER_NAMES): Same.
9042         (FIRST_PSEUDO_REGISTER): Increment.
9043         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9045 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
9047         * fold-const.c (fold): Fix a typo.
9049 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
9051         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9052         comparison against the highest or lowest integer value before
9053         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9054         transformation and that of an unsigned comparison against 0
9055         right after.
9057 2002-05-15  Richard Henderson  <rth@redhat.com>
9059         * varasm.c (merge_weak): Error for any weakening after definition.
9060         Adjust weakening after use warning to catch more cases.
9061         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9062         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9064 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
9066         * invoke.texi (-malign-double): Re-add lost warning.
9068         * i386-protos.h (x86_output_mi_thunk): Declare.
9069         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9070         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9072         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9073         when flag_asynchronous_unwind_tables is set.
9075         * flags.h (flag_reorder_functions): Declare.
9076         * function.c (prepare_function_start): Initialize frequnecy.
9077         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9078         * Makefile.in (predict.o): Add dependency on target.h and params.h
9079         * defaults.h (HOT_TEXT_SECTION_NAME,
9080         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9081         * predict.c (choose_function_section): New function.
9082         (estimate_bb_frequencies): Use it.
9083         * toplev.c (flag_reorder_functions): New global variable.
9084         (lang_independent_options): New.
9085         (parse_options_and_default_flags): Set.
9086         * varasm.c (assemble_start_function): Bypass functdion alignment
9087         for never executed functions.
9088         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9089         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9090         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9091         Document.
9093         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
9095         * predict.c: Inlude profile.h
9096         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9097         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9098         Use the information about maximal counter in the program.
9100         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
9102         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9103         probably_never_executed_bb_p): New functions.
9104         * cfgcleanup.c (outgoing_edges_match): Use them.
9105         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9106         (maybe_hot_bb_p, probably_cold_bb_p,
9107         probably_never_executed_bb_p): New functions.
9109         * function.h (function): Add new field function_frequency.
9110         * predict.c (compute_function_frequency): New function.
9111         (estimate_probability): Call it.
9113 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
9115         PR optimization/5172, optimization/5200
9116         * gcse.c (gcse_main): Disable store_motion.
9118 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
9120         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9121         (c_common_nodes_and_builtins): Use it.
9122         (builtin_define_with_value): New function.
9123         (cb_register_builtins): Define __SIZE_TYPE__,
9124         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9125         using builtin_define_with_value.  Use consistent notation when
9126         defining __GXX_WEAK__.
9127         (WCHAR_TYPE_SIZE): Don't redefine.
9128         (combine_strings): Don't use WCHAR_TYPE_SIZE.
9130         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9131         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9132         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9133         * tradcpp.c (initialize_builtins): Likewise.
9134         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9136         * c-lex.h (builtin_define_with_value): Prototype.
9137         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9138         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9139         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
9141         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
9142         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
9143         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
9144         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
9145         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
9146         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
9147         config/sparc/sol2-bi.h, config/sparc/sparc.h:
9148         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
9149         to __SIZE_TYPE__ etc from all spec strings. When this makes
9150         extra specs empty, delete them.
9152 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9154         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
9155         for PA8000 or generating dwarf2 call frame information.
9156         (output_call): Remove DO_FRAME_NOTES check from return pointer
9157         optimization.
9158         (following_call): Return 0 when scheduling for PA8000 or generating
9159         dwarf2 call frame information.  Revise comment.
9161 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9163 config/alpha:
9164         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
9165         and __IEEE_FP_INEXACT as appropriate.
9166         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
9167         (CPP_SPEC): Remove ieee defines.
9168         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
9170 2002-05-14  Richard Henderson  <rth@redhat.com>
9172         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
9173         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
9175 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9177         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9178         (CPP_SPEC): Update.
9179         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
9180         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
9181         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
9182         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
9183         (EXTRA_SPECS): Update.
9184         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
9185         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
9186         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
9187         define TARGET_OS_CPP_BUILTINS if necessary.
9189 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9191         * gcc.c (cpp_options): Must pass -m* and -f* options
9192         to the front end even when only preprocessing.
9193         (cc1_options): Remove redundant -lang-c.
9194         * tradcpp.c (main): Ignore -m options.
9195 objc:
9196         * lang-specs.h: Similarly.
9198 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
9200         * genautomata.c (transform_3): Add code for transformation
9201         `(A,B,...)+C -> A+C,B,...'.
9203 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
9205         * final.c (end_final): Do not output profile_arcs constructor, when
9206         no functions are instrumented.
9208 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
9210         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
9212 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9214         * doc/install.texi: Remove special markup originally required for
9215         HTML generation with texi2html.
9217 2002-05-14  Andreas Schwab  <schwab@suse.de>
9219         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
9220         SELECT_SECTION.
9221         (UNIQUE_SECTION): Define to get small data correctly.
9223         * varasm.c (resolve_unique_section): Add third parameter
9224         flag_function_or_data_sections and use it instead of
9225         flag_function_sections.
9226         (assemble_start_function): Pass flag_function_sections.
9227         (asm_emit_uninitialised): Pass flag_data_sections.
9228         (assemble_variable): Likewise.
9230 2002-05-14  Richard Henderson  <rth@redhat.com>
9232         * config/i386/i386.md: Use define_constants for unspec numbers.
9233         * config/i386/i386.c: Likewise.
9235 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9237         * doc/contrib.texi: Update my entry.
9239 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
9241         * fixinc/inclhack.def (winidss_valist): Limit applicability.
9242         * fixinc/fixincl.x: Regenerated.
9243         * fixinc/tests/base/math.h: Update.
9244         * fixinc/tests/base/testing.h: Likewise.
9246 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
9248         * genattr.c (gen_attr): Don't emit a comma after the last
9249         enumerator.
9251 2002-05-13  Richard Henderson  <rth@redhat.com>
9253         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
9254         by non-local gotos.
9255         * recog.c (peephole2_optimize): Likewise.
9257 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
9259         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
9260         input to O_BINARY.
9262 2002-05-13  Jeffrey A Law  (law@redhat.com)
9264         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
9265         Update prototype and callers.
9266         (propagate_one_insn): Stack pointer adjustments kill MEMs on
9267         the mem_set_list which reference the stack pointer, as do
9268         calls to constant functions as they may clobber outgoing
9269         argument space.
9271         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
9273         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9274         (ia32_multipass_dfa_lookahead): New function.
9276 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9278         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
9279         (translate_options): Remove 'V'.
9280         (process_command): Similarly.
9281 doc:
9282         * invoke.texi: Remove documentation of 'V'.
9284 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
9286         * config/s390/linux.h: Revert 2002-04-22 changes.
9288 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
9290         * config/fr30/fr30.md: Only allow splits of immediate loads
9291         if the destination is a register.
9293 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9295         * Makefile.in (c-common.o, cppinit.o): Update.
9296         * c-common.c: Include except.h.
9297         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
9298         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
9299         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
9300         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
9301         CPP_PREDEFINES): Handle here.
9302 config:
9303         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
9304         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
9305         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
9306         TARGET_OS_CPP_BUILTINS.
9307         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
9308         (CPP_SPEC, EXTRA_SPECS): Update.
9309         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
9310         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
9311         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
9312         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
9313         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
9314 doc:
9315         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
9316         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
9318 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9320         * emit-rtl.c (global_rtl): Update comment.
9321         (const_double_htab, const_double_htab_hash,
9322         const_double_htab_hash, lookup_const_double): New.
9323         (const_int_htab_hash, const_int_htab_eq): Remove const
9324         qualifiers, which cause tons of warnings with RTL checking on.
9325         (gen_rtx_CONST_DOUBLE): Deleted.
9326         (const_double_from_real_value): New function - bears some
9327         resemblance to the former immed_real_const_1.
9328         (immed_double_const): Moved here from varasm.c and
9329         simplified.
9330         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
9331         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
9332         (gen_rtx): Use immed_double_const.
9333         (init_emit_once): Initialize the const_double_htab.  Use
9334         REAL_VALUE_FROM_INT where possible.  Can now use
9335         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
9336         * varasm.c (struct varasm_status): Remove x_const_double_chain.
9337         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
9338         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
9339         (init_varasm_status, mark_varasm_status): Don't touch
9340         x_const_double_chain.
9342         * output.h: Delete prototype for clear_const_double_mem.
9343         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
9344         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
9345         const_double_from_real_value, not immed_real_const_1, and use
9346         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
9347         CONST_DOUBLE_ATOF.
9348         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
9349         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
9350         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
9351         (gen_rtx_REG): Second arg is unsigned.
9353         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
9354         (excluded_rtx): New, return true for CONST_DOUBLE.
9355         (genmacro): Write nothing for excluded codes.
9356         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
9357         * expr.c (expand_expr): Likewise.
9358         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
9359         CONST_DOUBLE_CHAIN.
9360         * toplev.c (rest_of_compilation): Don't call
9361         clear_const_double_mem.
9363         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
9364         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
9365         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
9366         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9367         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9368         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9369         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9370         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9372 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9374         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9376 2002-05-12  Tom Tromey  <tromey@redhat.com>
9378         * tree.h (copy_node): Don't mention TREE_PERMANENT.
9380 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
9382         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9383         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
9384         * gensupport.h: Prototype new routines.
9385         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
9386         use of printf.
9387         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9388         (next_comma_elt): Use scan_comma_elt.
9390         * config/i386/i386.md: Use new attribute notation to break up
9391         long lines in define_attr forms.
9393 2002-05-12  Richard Henderson  <rth@redhat.com>
9395         * expr.c (compress_float_constant): New.
9396         (emit_move_insn): Use it.
9397         (float_extend_from_mem): New.
9398         (init_expr_once): Initialize it.
9399         * real.c (exact_real_truncate): New.
9401         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9402         dropped into memory; penalize for size.
9403         (RTX_COSTS): FLOAT_EXTEND is free.
9404         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9405         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9407 2002-05-12  Richard Henderson  <rth@redhat.com>
9409         * profile.h (profile_info): Add missing extern to declaration.
9410         * profile.c (profile_info): Define it.
9412 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9414         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9415         used for DImode and TImode.
9417 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9419         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9420         fake a newline.
9422 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
9424         * config/rs6000/rs6000.c (rs6000_default_long_calls,
9425         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9426         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9427         (rs6000_override_options): Handle -m(no-)longcall.
9428         (init_cumulative_args, output_mi_thunk): Check for both
9429         longcall and shortcall attributes on the function.
9430         (rs6000_attribute_table): Add "shortcall".
9431         (rs6000_handle_longcall_attribute): Update comment.
9432         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9433         altivec_expand_ternop_builtin): Add default clauses to switches
9434         to silence warnings.
9436         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9437         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
9438         (TARGET_OPTIONS): Add longcall and no-longcall.
9440         * config/rs6000/rs6000.md (call_nonlocal_sysv,
9441         call_value_nonlocal_sysv): Split by alternatives.  One pair
9442         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9443         the call cookie.  The other pair accepts only LR/CTR and has
9444         no restriction.
9446         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9447         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9448         tmake_file.
9449         * config/rs6000/rs6000-c.c: New file.
9450         * config/rs6000/t-rs6000-c-rule: New file.
9451         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9452         Prototype rs6000_pragma_longcall.
9454         * doc/extend.texi: Document shortcall attribute.
9455         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9457 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9459         * reorg.c (dbr_schedule): Remove unnecessary test.
9461 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9463         * i386.md (testsi to testqi spliters): New.
9465         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
9467         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9469         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
9471         * basic-block.h: New flag EDGE_CAN_FALLTHRU
9472         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9473         that can be made fallthru.
9475         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
9477         * cfglayout.c (cleanup_unconditional_jumps): New static function.
9478         (cfg_layout_initialize): Use it.
9480 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9482         * config/avr/avr.c (avr_mcu_types): Update supported devices.
9483         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9484         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9486 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
9488         * dbxout.c: Fix formatting.
9489         * dependence.c: Likewise.
9490         * df.c: Likewise.
9491         * diagnostic.c: Likewise.
9492         * doloop.c: Likewise.
9493         * dominance.c: Likewise.
9494         * doschk.c: Likewise.
9495         * dwarf2asm.c: Likewise.
9496         * dwarf2out.c: Likewise.
9497         * dwarfout.c: Likewise.
9499 2002-05-10  Richard Henderson  <rth@redhat.com>
9501         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
9502         Convert integers constants as needed.  Replace "nwords" field with
9503         "sizeof_bb".
9504         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9505         * function.h: Fix typo in comment.
9506         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9508 2002-05-10  Roger Sayle  <roger@eyesopen.com>
9510         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9511         into the equivalent (signed char)c > 0.
9513 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
9515         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9516         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9517         (struct prefetch_info): Fix spelling of member bytes_accessed.
9518         (emit_prefetch_instructions): Make dump messages more regular;
9519         restructure code to add more dump messages; use new macros for
9520         heuristics. (There are no code generation changes in any of this).
9522 2002-05-10  David S. Miller  <davem@redhat.com>
9524         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9525         (struct rtx_def): Update unchanging flag comment.
9526         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9527         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9528         to be handled to INSN too.
9529         (dbr_schedule): Likewise.
9530         * resource.c (next_insn_no_annul): Likewise.
9532         * cse.c (rtx_cost): Remove multiplication by power of 2 special
9533         casing.
9535 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9537         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9538         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9539         (possibly) work around broken /bin/sh.
9541 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9543         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9544         . as N64/N32 libgcc_s.so subdirs.
9546 2002-05-10  David S. Miller  <davem@redhat.com>
9548         * config/sparc/sparc.md: Use define_constants for unspec numbers.
9550         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9551         more accurately.
9552         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9553         comment.
9554         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9555         * doc/rtl.texi: Document these macros more accurately.
9556         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9557         JUMP_INSNs and CALL_INSNs.
9558         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9559         or INSN_FROM_TARGET_P if the code is appropriate.
9561 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9563         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9564         before using SYMBOL_REF_FLAG (addr).
9566         * config/avr/avr-protos.h (avr_io_address_p): Declare.
9567         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9568         Make non-static.  Update all callers.
9569         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9570         New insns to clear/set/test a single bit in I/O address space.
9572 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9574         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9576 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9578         * Makefile.in: Update.
9579         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9580         builtin_define_std): New.
9581         (c_common_init): Register CPP builtins callback.
9582         * c-common.h (flag_iso, flag_undef): New.
9583         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9584         * c-lex.c: Don't include target.h.
9585         (cb_register_builtins): Move to c-common.c.
9586         (init_c_lex): Don't register hook here.
9587         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9588         (cpp_define, cpp_assert): Remove.
9589         * gcc.c (cc1_options): Pass -undef to front end.
9590         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9591         (TARGET_INITIALIZER): Update.
9592         * target.h (struct cpp_reader): Don't predeclare.
9593         (struct gcc_target): Remove cpp builtin hook.
9594         * tree.c (default_register_cpp_builtins): Remove.
9595 doc:
9596         * tm.texi: Update.
9598 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9600         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9602 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9604         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9605         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9607 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9609         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9610         * config/sparc/libgcc-sparc-glibc.ver: New file.
9611         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9612         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9614 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
9616         PR target/6429
9617         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9618         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9619         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9620         base multilibs.
9621         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9622         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9623         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9624         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9626 2002-05-09  Richard Henderson  <rth@redhat.com>
9628         * config/ia64/ia64.md: Use define_constants for unspec numbers.
9629         * config/ia64/ia64.c: Likewise.
9631 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
9633         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9634         (save_restore_insns): Likewise.
9635         (mips_expand_prologue, mips_expand_epilogue): Update callers.
9636         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9638 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
9640         * athlon.md, k6.md, pentium.md, ppro.md): New files.
9641         * i386.md: Move scheduling information into new files.
9643         * i386.md (type attribute): Add "rotate" for rotate insns.
9644         (rotate insns): Set type to "rotate".
9645         (various attributes and function units): Treat rotate like shift.
9646         (pent_pair attribute): Only rotates by one bit position are
9647         pairable.
9648         (sbb insns): Explicitly set pent_pair attribute on a couple
9649         that were missing it.
9651 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9653         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9654         make sure that buffer starts on odd word address.
9655         (sh_va_arg): Skip odd fp registers when reading a double precision
9656         value.
9658 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9660         * tree.h (preserve_data, object_permanent_p, type_precision):
9661         Remove.
9663 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9665         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9666         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9667 doc:
9668         * cpp.texi: Update for removal of obsolete features.
9670 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
9671                           Jeffrey A Law  (law@redhat.com)
9673         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
9674         the DFA interface for Pentium processors.
9675         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9676         (attr_pent_pair, ix86_pent_find_pair): Remove.
9677         (ix86_sched_reorder_pentium): Remove.
9678         (ix86_sched_reorder): Remove reordering for Pentium.
9679         * i386.md (Pentium scheduling): Rewrite using DFA description.
9681 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
9683         * cfganal.c (can_fallthru): Fix fast path.
9684         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9685         with edges to the next block.
9687 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
9688                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
9690         * final.c (end_final): Use C trees to output data structures for profiling.
9692         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9693         (profile.o): New dependency profile.h
9694         (final.o): New dependency profile.h
9695         * profile.h: New file. New global structure profile_info.
9696         * final.h (count_edges_instrumented_now): Declare.
9697         (current_function_cfg_checksum): Declare.
9698         (function_list): New structure.
9699         (functions_head, functions_tail): New static variables.
9700         (end_final): Emits more data, removed some -ax stuff.
9701         (final): Stores function names and chcksums.
9702         * gcov-io.h (__write_gcov_string): New function.
9703         (__read_gcov_string): New function.
9704         * gcov.c (read_profile): New function.
9705         (create_program_flow_graph): Uses read_profile instead of reading
9706         da_file.
9707         (read_files): Removed da_file checking, it's done by read_profile now.
9708         * libgcc2.c (bb_function_info): New structure.
9709         (bb): New field in structure, removed some -ax stuff.
9710         (__bb_exit_func): Changed structure of da_file.
9711         * profile.c (count_edges_instrumented_now): New global variable.
9712         (current_function_cfg_checksum): New global variable.
9713         (max_counter_in_program): New global variable.
9714         (get_exec_counts): New function.
9715         (compute_checksum): New function.
9716         (instrument_edges): Sets count_edges_instrumented_now.
9717         (compute_branch_probabilities): Uses get_exec_counts instead of
9718         reading da_file.
9719         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9720         (init_branch_prob): Removed da_file checking, done in get_exec_counts
9721         now.
9722         (end_branch_prob): Removed da_file checking, done in get_exec_counts
9723         now.
9724         * gcov.texi: Updated information about gcov file format.
9726 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
9728         * sbitmap.c: Fix formatting.
9729         * scan.c: Likewise.
9730         * scan-decls.c: Likewise.
9731         * sched-deps.c: Likewise.
9732         * sched-ebb.c: Likewise.
9733         * sched-rgn.c: Likewise.
9734         * sched-vis.c: Likewise.
9735         * sdbout.c: Likewise.
9736         * sibcall.c: Likewise.
9737         * simplify-rtx.c: Likewise.
9738         * ssa.c: Likewise.
9739         * ssa-ccp.c: Likewise.
9740         * ssa-dce.c: Likewise.
9741         * stmt.c: Likewise.
9742         * stor-layout.c: Likewise.
9743         * stringpool.c: Likewise.
9745 2002-05-09  David S. Miller  <davem@redhat.com>
9747         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9749 2002-05-07  David S. Miller  <davem@redhat.com>
9751         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9752         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9753         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9754         library implementation clobbers the output before the inputs
9755         are fully consumed, use stack temporary for the output.
9757 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
9759         * config/netbsd.h (CPP_SPEC): Remove.
9760         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9761         * config/i386/netbsd.h (CPP_SPEC): Define.
9762         * config/ns32k/netbsd.h (CPP_SPEC): Define.
9763         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9764         * config/sparc/netbsd.h (CPP_SPEC): Define.
9765         * config/vax/netbsd.h (CPP_SPEC): Define.
9767 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
9769         * read-rtl.c: Fix formatting.
9770         * real.c: Likewise.
9771         * recog.c: Likewise.
9772         * regclass.c: Likewise.
9773         * regmove.c: Likewise.
9774         * reg-stack.c: Likewise.
9775         * reload1.c: Likewise.
9776         * reload.c: Likewise.
9777         * resource.c: Likewise.
9778         * rtlanal.c: Likewise.
9779         * rtl.c: Likewise.
9780         * rtl-error.c: Likewise.
9782 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9784         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9785         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9787 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
9789         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9790         use __SSE2__ macro instead.
9791         * config/i386/xmmintrin.h: Likewise.
9793 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
9795         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9796         and use it in all invocations of these macros.  Clean up comments.
9797         * rtl.c (rtl_check_failed_flag): Add an argument for the name
9798         of the flag access macro whose check failed.
9799         * doc/rtl.texi (Flags): Document additional flag uses.
9801 2002-05-08  Robert Spier <rspier@pobox.com>
9802             Neil Booth  <neil@daikokuya.demon.co.uk>
9804         PR preprocessor/6521
9805         * cppfiles.c (handle_missing_header): Don't do anything
9806         different for <> includes.
9807 doc:
9808         * cppopts.texi: Update documentation for -MG.
9810 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9812         * cpplex.c (cpp_interpret_charconst): Truncate as well as
9813         sign-extend.
9814 doc:
9815         * cpp.texi: Clarify multichar charconst valuation.
9817 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9819         * doc/invoke.texi: Document -mwindiss option.
9821 2002-05-08  Jason Merrill  <jason@redhat.com>
9823         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9825         * dwarf2out.c (gen_type_die): Abort on broken recursion.
9827         PR c++/6381
9828         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9829         REAL_CST.
9831 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
9833         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9834         little-endian multilibs to override arm/thumb multilibs.
9835         Do not build hardware floating point multilibs, nor apcs-26
9836         multilibs for the Thumb.
9838 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
9840         PR c/6569.
9841         * varasm.c (mark_weak): New function.
9842         (merge_weak): Use it.  Do not call declare_weak.
9843         (declare_weak): Use merge_weak.
9845 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
9847         * cse.c (dead_libcall_p): Update counts.
9848         (delete_trivially_dead_insns): Update call of dead_libcall_p.
9850 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9852         * cfglayout.c (function_tail_eff_head): Rename to ...
9853         (function_footer): ... this one.
9854         (unlink_insn_chain): New functions.
9855         (label_for_bb): Only call block_label and emit debug message.
9856         (record_effective_endpoints): Actually unlink the headers and footers.
9857         (fixup_reorder_cahin): Re-insert the unlinked sequences.
9858         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9859         * cfglayout.h (struct reorder_block_def): New fields footer/header;
9860         remove eff_head/eff_end.
9861         * rtl.h (set_first_insn): Declare.
9862         * emit-rtl.c (set_first_insn): New function.
9864         * cfglayout.c (fixup_reorder_chain): Dump duplicated
9865         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9866         cfg_layout_duplicate_bb): New global function.
9867         (duplicate_insn_chain): New static function.
9868         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9869         cfg_layout_duplicate_bb): Declare.
9870         (struct reorder_block_def): Add "original" field.
9871         * emit-rtl.c (emit_copy_of_insn_after): New function.
9872         * rtl.h (emit_copy_of_insn_after): Declare.
9874         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9875         (fixup_reorder_chain): properly handle edges to exit block.
9877 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9878                                Jan Hubicka  <jh@suse.cz>
9880         * basic-block.h (note_prediction_to_br_prob): declare.
9881         * c-semantics.c: Inlucde predit.h
9882         (expand_stmt): predict GOTO_STMT as not taken.
9883         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9884         (cleanup_cfg): Do not free tail_recursion_list.
9885         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9886         (flow_delete_block): Kill predictions past end of basic block.
9887         * output.h (delete_unreachable_blocks): Declare.
9888         * predict.c (predicted_by_p, process_note_predictions,
9889         process_note_prediction, last_block_p): New function.
9890         (estimate_probability): Bypass loop on PRED_CONTINUE;
9891         do not handle noreturn heuristics; kill PRED_RETURN; add
9892         PRED_EARLY_RETURN.
9893         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9894         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9895         * predict.h (IS_TAKEN): New constant.
9896         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9897         * rtl.c (NOTE_INSN_PREDICTION): New.
9898         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9899         New macro.
9900         (insn_note): add NOTE_INSN_PREDICTION.
9901         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9902         CFG; free tail_recursion_label_list.
9903         * stmt.c: Include predict.h;
9904         (return_prediction): New.
9905         (expand_value_return): Use it.
9906         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9908 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
9910         * config/mips/mips.md: Name the unspecs with define_constant.
9911         (*HILO_delay): Rename to 'hilo_delay' (no star).
9912         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9913         (reload_outdi, reload_outsi): Likewise.
9915 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
9917         * toplev.c: Fix formatting.
9919 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
9921         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9922         * configure.in (ac_rtlflag_checking): New.
9923         * doc/install.texi (--enable-checking): Document RTL flag checking.
9925 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9927         * c-common.c (c_common_init): Set options->unsigned_wchar.
9928         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9929         group target dependencies.
9930         (init_builtins, cpp_handle_option): Update.
9931         * cpplex.c (cpp_interpret_charconst): Update.
9932         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9933         signed_char to unsigned_char, group target dependencies.
9934         * defaults.h (WCHAR_UNSIGNED): Remove.
9935         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9936 config:
9937         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9938         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9939         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9940         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9941         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9942 doc:
9943         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9945 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9947         * fixinc/inclhack.def (windiss_math1): New fix.
9948         (windiss_math2): Likewise.
9949         (windiss_valist): Likewise.
9950         * fixinc/fixincl.x: Regenerated.
9952 2002-05-07  Andreas Jaeger  <aj@suse.de>
9954         * genautomata.c (output_internal_min_issue_delay_func): Add
9955         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9956         (output_internal_trans_func): Likewise.
9958 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
9960         * pa.c (hppa_profile_hook): Use force_reg to get the address
9961         of the profile hook into an appropriate pseudo register.
9963 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
9965         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9966         (LINK_START_SPEC): Handle it.
9967         (LINK_OS_SPEC): Likewise.
9968         (CPP_SPEC): Likewise.
9969         (STARTFILE_SPEC): Likewise.
9970         (LIB_SPEC): Likewise.
9971         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
9972         all platforms.
9973         (CRTSAVRES_DEFAULT_SPEC): New macro.
9974         (LIB_WINDISS_SPEC): New macro.
9975         (CPP_OS_WINDISS_SPEC): Likewise.
9976         (STARTFILE_WINDISS_SPEC): Likewise.
9977         (ENDFILE_WINDISS_SPEC): Likewise.
9978         (LINK_START_WINDISS_SPEC): Likewise.
9979         (LINK_OS_WINDISS_SPEC): Likewise.
9980         * config/rs6000/windiss.h: New file.
9982 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
9984         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9986 2002-05-06  David S. Miller  <davem@redhat.com>
9988         * config/sparc/sparc.md (shift insns): Do not mask off
9989         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9990         take care of it.
9992 2002-05-06  Richard Henderson  <rth@redhat.com>
9994         PR c++/6212
9995         * expr.c (highest_pow2_factor_for_type): New.
9996         (expand_assignment): Use it.
9998 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
10000         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10001         unspec_volatile.
10002         ("altivec_mfvscr"): Same.
10004 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
10006         * rtl.h (struct rtx_def): Update comments.
10007         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
10008         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
10009         RTL_FLAG_CHECK macros with list of expected RTL codes.
10010         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10011         (rtl_check_failed_flag): New.
10012         * reload1.c (reload): Use REG macro before changing rtx to MEM.
10013         (reload_cse_noop_set_p): Check rtx code before using access macro.
10014         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10015         before using access macro.
10017 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
10019         * doc/rtl.texi (Flags): Update to reflect current usage.
10021 2002-05-06  Roger Sayle  <roger@eyesopen.com>
10023         PR opt/3995
10024         * fold-const.c (sign_bit_p): New function.
10025         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10026         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10027         Reapply fold when converting (A & C) == C into (A & C) != 0.
10028         (fold_binary_op_with_conditional_arg): Fix typo in comment.
10030 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10032         * c-common.c (warn_multichar): New.
10033         (c_common_init): Set CPP's warn_multichar.
10034         * c-common.h (warn_multichar): New.
10035         * c-decl.c (warn_multichar): Remove.
10036         * c-lex.c (lex_charconst): Update.
10037         * c-tree.h (warn_multichar): Remove.
10038         * cppexp.c (eval_token): Sign-extend charconst value.
10039         * cppinit.c (cpp_create_reader): Set warn_multichar.
10040         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10041         each character.  Update prototype.  Sign-extend the result.
10042         * cpplib.h: Fix conditions.
10043         (struct cpp_options): Add new warning flag.
10044         (cpp_interpret_charconst): Update prototype.
10045 doc:
10046         * cpp.texi: Update documentation.
10048 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
10050         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10051         Fix typo in usage of allof instead of unit.
10053 2002-05-06  Richard Henderson  <rth@redhat.com>
10055         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10056         and any jump or call for IN.
10058 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
10060         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10061         -msse2.
10062         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10064 2002-05-06  Roger Sayle  <roger@eyesopen.com>
10066         * fold-const.c (lshift-double): Cast the high word to an unsigned
10067         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10068         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10069         avoid compiler warning.  (fold): Remove redundant code from
10070         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10072 2002-05-06  Jeff Law  <law@redhat.com>
10074         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10075         * pa.c (pa_adjust_cost): Remove all true dependency cost
10076         adjustments.  Also remove support for non-DFA scheduling.
10077         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10078         to adjust true dependency costs.  Update various comments.
10079         (7100lc, 7200, 7300 scheduling): Simplify by combining the
10080         FP ALU & MPY units into a single unit.
10082 2002-05-06  Catherine Moore  <clm@redhat.com>
10084         * config/v850/v850.c (compute_register_save_size): Make sure
10085         to count all of the registers that will be saved.
10087 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
10089         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10091 2002-05-06  David S. Miller  <davem@redhat.com>
10093         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10094         allow result to overlap input operands in memory.
10096 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10098 doc:
10099         * cpp.texi: Update multichar charconst docs.
10101 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10103         * cpplex.c (cpp_interpret_charconst): Sign-extend each
10104         character.  Don't ignore excess characters.  Treat
10105         multicharacter character constants as signed.
10106         (cpp_parse_escape): Clarify diagnostic.
10108 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
10110         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10111         use add instead of shift.
10112         (ashldi3_sp64): Likewise.
10113         (ashlsi3_const1, ashldi3_const1): Remove.
10114         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10115         * config/sparc/sparc.c (const1_operand): New.
10117 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
10119         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10121 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
10123         PR target/6561
10124         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10126 2002-05-05  Richard Henderson  <rth@redhat.com>
10128         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10129         memory latency adjustments.
10130         (alpha_variable_issue): Remove.
10131         (alpha_use_dfa_pipeline_interface): New.
10132         (alpha_multipass_dfa_lookahead): New.
10133         * config/alpha/alpha.md: Remove define_function_unit scheduling;
10134         include new dfa scheduling.
10135         (attr type): Add none.
10136         (blockage): Use it.
10137         * config/alpha/ev4.md: New.
10138         * config/alpha/ev5.md: New.
10139         * config/alpha/ev6.md: New.
10141 2002-05-05  David S. Miller  <davem@redhat.com>
10143         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
10145 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
10147         * cse.c: Fix formatting.
10148         * emit-rtl.c: Likewise.
10150 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
10152         * genautomata.c (initiate_states): Add additional guard to
10153         initialize `units_array'.
10155 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
10157         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
10158         process_unit_to_form_the_same_automaton_unit_lists,
10159         form_the_same_automaton_unit_lists
10160         check_unit_distributions_to_automata): New prototypes and
10161         functions.
10162         (check_automata): Rename it into `check_automata_insn_issues'.
10163         (unit_decl): New fields `the_same_automaton_unit' and
10164         `the_same_automaton_message_reported_p'.
10165         (unit_decl_t): New typedef.
10166         (the_same_automaton_lists): New gloval variable.
10167         (unit_regexp, unit_set_el, units_array, units_cmp,
10168         output_get_cpu_unit_code_func): Use the typedef.
10169         (evaluate_max_reserv_cycles): Increment
10170         `description->max_insn_reserv_cycles'.
10171         (initiate_states): Don't increment `max_cycles_num'.
10172         (transform_insn_regexps): Move code around transformation of
10173         regexps from `generate'.
10174         (generate): Remove call of `transform_insn_regexps'.
10175         (expand_automata): Call `transform_insn_regexps' and
10176         `check_unit_distributions_to_automata'.  Check errors before
10177         `generate'.
10179         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
10180         automaton `ultrasparc3_1'.
10182 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10184         * c-common.c (c_common_init): Set up CPP arithmetic.
10185         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
10186         something reasonable for the host.
10187         (sanity_checks): Add checks.
10188         (cpp_read_main_file): Call sanity_checks() from here...
10189         (cpp_post_options): ... not here.
10190         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
10191         * cpplib.h (struct cpp_options): New member int_precision.
10193 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10195         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
10197 2002-05-04  David S. Miller  <davem@redhat.com>
10199         * config/sparc/linux.h, config/sparc/linux64.h
10200         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
10202         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
10203         more RTX codes.
10204         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
10206         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
10207         of SETs.
10209 2002-05-05  Tim Josling  <tej@melbpc.org.au>
10211         * treelang; New directory for new sample language treelang.
10213 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10215         * Makefile.in (c-lex.o): Update.
10216         * c-lex.c: Include target.h.
10217         (cb_register_builtins): New.
10218         (init_c_lex): Set builtins callback.
10219         * c-lex.h (cpp_define, cpp_assert): New prototypes.
10220         * cppinit.c (init_builtins): Use callback, including for
10221         GXX_WEAK.
10222         * cpplib.h (struct cpp_callbacks): New member.
10223         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
10224         (TARGET_INITIALIZER): Update.
10225         * target.h (struct gcc_target): New hook.
10226         * tree.c (default_register_cpp_builtins): New.
10227         * tree.h (default_register_cpp_builtins): New.
10228 doc:
10229         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
10231 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10233         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
10234         (cpp_post_options): Move sanity checks to...
10235         (sanity_checks): New.
10236         * cpplex.c (maybe_read_ucs): Fix prototype.
10237         (parse_string, cpp_parse_escape): Cast for %c format specifier.
10238         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
10239         if necessary.
10241 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
10243         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
10244         builtins.  Use V2DI patterns instead of TI for logical operations.
10245         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
10246         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
10247         (ix86_expand_builtins): Change the pattern used for movntdq.
10248         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
10249         sse2_nandv2di3): New patterns.
10250         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
10251         on operands.
10252         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
10253         (cvtdq2pd): Correct mode on operand 1.
10254         (sse2_umulsidi3): Describe without unspec.
10255         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
10256         machine modes.
10257         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
10258         (ashlv2di3): Likewise, from sse2_ashlv2di3.
10259         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
10260         ashlv4si3, ashlv2di3): Use SImode for shift count.
10261         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
10262         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
10263         New patterns.
10264         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
10265         New typedefs.
10266         (__m128i, __m128d): New macros.
10267         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
10268         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
10269         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
10270         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
10271         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
10272         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
10273         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
10274         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
10275         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
10276         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
10277         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
10278         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
10279         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
10280         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
10281         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
10282         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
10283         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
10284         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
10285         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
10286         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
10287         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
10288         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
10289         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
10290         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
10291         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
10292         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
10293         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
10294         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
10295         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
10296         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
10297         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
10298         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
10299         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
10300         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
10301         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
10302         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
10303         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
10304         functions.
10305         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
10306         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
10308 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
10310         * dwarf2out.c: Fix formatting.
10311         * varasm.c: Likewise.
10313 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
10315         PR c/6543
10316         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
10317         clobber and use result as temporary value.
10319 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
10321         * expr.c (force_operand): Use expand_simple_* to handle more
10322         cases.
10324 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10326         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
10327         and sign-extension.
10328         (lex_charconst): Update for change in prototype of
10329         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
10330         appropriately.
10331         * cpphash.h (BITS_PER_CPPCHAR_T): New.
10332         * cppinit.c (cpp_create_reader): Initialize them for no
10333         change in semantics.
10334         (cpp_post_options): Add sanity checks.
10335         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
10336         and truncation issues.  Calculate in type cppchar_t.
10337         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
10338         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
10339         run-time dependent precision correctly.  Return whether the
10340         result is signed or not.
10341         * cpplib.c (dequote_string): Use cppchar_t; update.
10342         * cpplib.h (cppchar_signed_t): New.
10343         struct cpp_options): New precision members.
10344         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
10345         * cppexp.c (eval_token): Update.
10347 2002-05-03  David S. Miller  <davem@redhat.com>
10349         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
10350         * config/sparc/sparc.c (sparc_rtx_costs): New function
10351         implementing RTX_COSTS and CONST_COSTS.
10352         * config/sparc/sparc.h (CONST_COSTS): Delete.
10353         (RTX_COSTS_CASES): Define.
10354         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
10355         the work.
10357         * config/sparc/sparc.md (DFA schedulers): Split out...
10358         * config/sparc/cypress.md, config/sparc/hypersparc.md,
10359         config/sparc/sparclet.md, config/sparc/supersparc.md,
10360         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
10362         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
10363         checks on it, always defined for Sparc.
10365         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
10366         Tweak, and add more detailed comments.
10368 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
10370         * Re-apply patch accidentally reverted with
10371         DFA scheduler merge: remove all rules and variables to slurp
10372         source files out of libiberty and rebuild them with HOST_CC.
10373         ($(HOST_PREFIX_1)varray.o): New rule.
10374         (genattrtab rule): Word wrap.
10376 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10378         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10379         (CPP_SUBTARGET_SPEC): Define.
10380         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10381         cpp_subtarget specs.
10382         (CPP_SPEC): Redefine to include %(cpp_subtarget).
10384 2002-05-03  David S. Miller  <davem@redhat.com>
10386         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10387         * target.h (struct gcc_target): Delete cycle_display member.
10389         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10390         (rtx_needs_barrier): Delete reference to cycle_display unspec.
10391         (ia64_sched_reorder2): Mention need for cycle display handling
10392         once such notes exist.
10394 2002-05-03  Richard Henderson  <rth@redhat.com>
10396         * real.c (etoasc): Strip most trailing zeros for clarity.
10397         * sched-vis.c: Include real.h.
10398         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10399         * Makefile.in (sched-vis.o): Add real.h.
10401 2002-05-03  David S. Miller  <davem@redhat.com>
10403         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10404         no longer needed.
10406 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
10408         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10409         when we get an out of range literal.
10410         (altivec_expand_ternop_builtin): Same.
10411         (altivec_expand_unop_builtin): Same.
10412         (altivec_expand_builtin): Same, for dss.
10413         (altivec_expand_builtin): Use trees instead of rtl when
10414         determining literal argument validity.
10416 2002-05-03  David S. Miller  <davem@redhat.com>
10418         Delete cycle display scheduling hook.
10419         * config/ia64/ia64.c (ia64_cycle_display,
10420         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10421         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10422         and use emit_insn_before instead of ia64_emit_insn_before.
10423         * config/ia64/ia64.md (unspec usage): Delete cycle display.
10424         (cycle_display): Delete insn pattern.
10425         * config/sparc/sparc.md (unspec usage): Delete cycle display.
10426         (cycle_display): Delete insn pattern.
10427         * config/sparc/sparc.c (sparc_cycle_display,
10428         TARGET_SCHED_CYCLE_DISPLAY): Delete.
10429         * doc/md.texi (cycle_display): Don't mention.
10430         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10432 2002-05-03  Richard Henderson  <rth@redhat.com>
10434         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10435         * recog.h: Declare them.
10437         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10438         * config/sparc/sparc.md: Use store_data_bypass_p instead.
10439         * config/sparc/sparc-protos.h: Update.
10441 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10443         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10444         -D__arch64__.  Add -D_LP64.
10445         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10446         from sparc.h.
10447         (CPP_ARCH64_SPEC): Likewise.
10448         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10449         (NO_BUILTIN_SIZE_TYPE): Undef.
10451 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
10453         * genautomata.c (min_issue_delay_pass_states): Change return type
10454         in the prototype.
10455         (min_issue_delay_pass_states): Change the algorithm.
10456         (min_issue_delay): Set up min_insn_issue_delay for the state.
10457         (output_min_issue_delay_table): Interchange the nested loops and
10458         and initiate min_insn_issue_delay for states.
10460 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
10462         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
10463         jump is simplejump.
10465 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
10467         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
10468         sequence.
10470 2002-05-03  Richard Henderson  <rth@redhat.com>
10472         PR opt/6534
10473         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10474         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10475         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10476         code before JUMP, not EARLIEST.
10478 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10480         * c-format.c (check_format_info_main): Don't check for presence of
10481         parameter for * width until after operand number has been read,
10482         and only check for it if format parameters are available.
10483         Fixes PR c/6547.
10485 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
10487         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10488         (LINK_SPEC): Undef before defining.
10490 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10492         PR preprocessor/6489
10493         * tradcpp.c (fixup_newlines): New.
10494         (main, finclude): Use it.
10496 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
10498         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10499         * config/mips/mips.c (mips_unique_section): Strip encoding from
10500         decl name.
10502 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10504         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10505         mode.
10507 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10509         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10510         (Specific): Removed buildstats references.
10511         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10512         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10513         Accomodate Solaris versions beyond 8.
10514         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10515         (Specific, *-*-solaris2.8): Removed, obsolete.
10517 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
10519         PR target/6542
10520         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10521         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10522         fill leaf_reg_remap with identity.
10523         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10525 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10527         * config/h8300/crti.asm: Remove trailing spaces.
10528         * config/h8300/h8300.c: Likewise.
10529         * config/h8300/lib1funcs.asm: Likewise.
10531 2002-05-02  Jason Merrill  <jason@redhat.com>
10533         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10534         * c-decl.c (c_init_decl_processing): Use it.
10535         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10536         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10537         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10539 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
10541         * regrename.c: Fix formatting.
10542         * tree.c: Likewise.
10544 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
10546         * i386.md (attribute memory): Handle compares properly.
10548 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
10550         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10551         to none.
10553 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
10555         * function.c: Fix formatting.
10557 2002-05-02  Jan Hubicka  <jh@suse.cz>
10559         * haifa-sched.c (schedule_insn): Print table of instructions and
10560         reservations.
10561         (sched_block): Do not print ready list at verbosity level 1.
10562         * sched-vis.c (print_insn): Make global.
10563         * sched-ebb.c (ebb_print_insn): Rename from...
10564         (print_insn): ... this one.
10565         * sched-int.h (print_insn): Declare
10567 2002-05-02  Richard Henderson  <rth@redhat.com>
10569         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10570         emitted by cycle_display.
10572 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
10574         * doc/install.texi (*-*-freebsd*): Update to latest status.
10576 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
10578         PR target/6540
10579         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10580         * config/float-sparc.h: Assume 128-bit long double if
10581         __LONG_DOUBLE_128__ is defined.
10583 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
10585         * genattrtab.c (write_function_unit_info): Add a dummy element
10586         when num_units == 0.
10588 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10590         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10591         TYPE_MODE (double_type_node) instead of DFmode.
10593 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
10595         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10596         jumps post reload.
10597         * toplev.c (rest_of_compilation): Revert Richard's patch.
10599 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10601         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10603 2002-05-02  Catherine Moore  <clm@redhat.com>
10605         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10607 2002-05-02  Kazu Hirata  <kazu@hxi.com>
10609         * combine.c: Fix comment typos.
10610         * expr.c: Likewise.
10611         * genautomata.c: Likewise.
10612         * stmt.c: Likewise.
10613         * tree.h: Likewise.
10615 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10617         * doc/install.texi: State GNAT version requirements.
10619 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
10621         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10622         of the frame pointer or arg pointer register which strict register
10623         checking is not enabled.
10625 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
10627         * gcc.dg/altivec-8.c: New.
10629         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10630         PRE_INC and PRE_DEC for altivec modes.
10632 2002-05-01  Bruce Korb  <bkorb@gnu.org>
10634         * fixinc/check.tpl(set-writable): make sure the function exists first
10635         * fixinc/inclhack.def(alpha_assert): fix test_text
10636         * fixinc/tests/base/assert.h: add in missing result
10638 2002-05-01  Jeff Law  <law@redhat.com>
10640         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10641         'T' constraint.
10643 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
10645         * dbxout.c (dbxout_type): Emit size information for range types,
10646         as well, but only when using GDB extensions.
10648 2002-05-01  Richard Henderson  <rth@redhat.com>
10650         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10651         target-independent gnu binutils date test.
10653 2002-05-01  Richard Henderson  <rth@redhat.com>
10655         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10656         info before expunging the block.
10658 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10660         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10661         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
10662         -M -or -MM is in effect.
10664 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
10666         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
10667         A29k configurations.
10668         * doc/install.texi: Update to match.
10670 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10672         PR bootstrap/6514
10673         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10674         for duplicates. Always loop over whole list.
10676 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10678         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10680 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10682         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10683         support routines.
10685 2002-05-01      Joel Sherrill <joel@OARcorp.com>
10687         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10689 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
10691         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10692         (nabs_nopower): Same.
10693         (floatdisf2): New pattern.
10694         (absdi2): Convert to define_insn_and_split.
10695         (nabsdi2): Same.
10696         (trunctfsf2): Same.
10697         (floatditf2): Same.
10698         (floatsitf2): Same.
10699         (fix_trunctfdi2): Same.
10700         (fix_trunctfsi2): Same.
10702 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10704         * doc/install.texi: Update Texinfo version requirement
10705         documentation.
10707 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
10709         PR target/6512, PR target/5628
10710         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10711         when memory is not aligned.
10712         (movdf_insn_v9only_vis): Likewise.
10713         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10714         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10715         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10717 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
10719         * gcc.dg/altivec-7.c: New.
10721         * config/rs6000/altivec.h: Cleanup.
10723 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
10725         * doc/invoke.texi (Option Summary): Add -mvrsave=.
10726         (RS/6000 and PowerPC Options): Document -mvrsave=.
10728         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10729         (rs6000_altivec_vrsave_string): Same.
10730         (rs6000_override_options): Call rs6000_parse_vrsave_option.
10731         (rs6000_parse_vrsave_option): New.
10732         (rs6000_stack_info): Only generate vrsave instructions when
10733         TARGET_ALTIVEC_VRSAVE.
10735         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10736         (rs6000_altivec_vrsave_string): Define extern.
10737         (rs6000_altivec_vrsave): Same.
10738         (TARGET_ALTIVEC_VRSAVE): New.
10740 2002-04-30  Richard Henderson  <rth@redhat.com>
10742         PR opt/6516
10743         * toplev.c (rest_of_compilation): Don't run cross-jump before
10744         bb-reorder.
10746 2002-04-30  Tom Rix  <trix@redhat.com>
10748         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10749         check which_alternative.
10751 2002-04-30  Kazu Hirata  <kazu@hxi.com>
10753         * cpplex.c: Fix comment formatting.
10754         * function.c: Likewise.
10755         * integrate.c: Likewise.
10756         * regrename.c: Likewise.
10757         * sibcall.c: Likewise.
10758         * simplify-rtx.c: Likewise.
10759         * tree-inline.c: Likewise.
10761 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10763         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10764         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10765         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10766         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10767         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10768         * pa/x-ada: New file.  Define ADA_CFLAGS.
10770 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
10772         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10773         from MMIX_LAST_REGISTER_FILE_REGNUM.
10774         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10775         (struct machine_function): New member highest_saved_stack_register
10776         previously static variable in mmix.c.
10777         (MACHINE_DEPENDENT_REORG): Define.
10778         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10779         (MMIX_OUTPUT_REGNO): New.
10780         (mmix_target_asm_function_prologue): Move calculation of last used
10781         saved-stack-register into...
10782         (mmix_machine_dependent_reorg): New function.  Update to also handle
10783         !TARGET_ABI_GNU.
10784         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10785         register names, simplify somewhat by new variable regno.
10786         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
10787         register.
10788         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10789         emitting register names.
10790         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10791         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10792         Remove fixed FIXME.
10793         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10794         Declare.
10796         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10798 2002-04-30  Richard Henderson  <rth@redhat.com>
10800         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10801         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10802         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10803         emit_tfmode_cvt): New.
10804         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10805         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10806         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10807         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10808         * config/sparc/sparc-protos.h: Update.
10810 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
10812         * install.texi (Final install): Add to the list of info to include
10813         in a report of a successful bootstrap, and add link to 3.1 list.
10815 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
10817         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10818         (mode): Add vector modes
10819         (i387): Kill attribute.
10820         (unit): New attribute.
10821         (length_immediate): Grok new types.
10822         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10823         (modrm): Use "unit".
10824         (memory): Handle MMX/SSE properly.
10825         (scheduling descriptions): Kill uses of fop1.
10826         (sse, mmx, fp patterns): Set type and mode properly.
10828 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
10830         * pa.c (override_options): Default to PA8000 scheduling.
10831         * doc/invoke.texi (HP-PA options): Mention newly added 7300
10832         scheduling parameter.
10834         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10835         handling of double precision multiplies.
10837         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10838         fpdiv and fpsqrt instructions.
10839         (7200 & 7300 scheduling): Fix typo in handling of
10840         store-load and store-store penalties.
10842 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10844         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10845         mips.  Add two missing commas.
10847 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
10849         * doc/contrib.texi (Contributors): Update Paolo Carlini's
10850         and Benjamin Kosnik's entries.
10852 2002-04-29  David S. Miller  <davem@redhat.com>
10854         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10855         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10856         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10857         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10859 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10861         * combine.c (find_split_point): Use gen_int_mode.
10863 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10865         Merging code from dfa-branch:
10867         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
10869         * genautomata.c (output_reserv_sets): Fix typo.
10871         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
10873         * genautomata.c (output_reserv_sets): Remove
10874         next_cycle_output_flag.
10876         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
10878         * sched-rgn.c (init_ready_list): Make the DFA code handle
10879         USE/CLOBBER insns in the same way as the traditional
10880         scheduler.
10881         (new_ready): Similarly..
10883         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
10885         * haifa-sched.c (schedule_block): Change the DFA state only after
10886         issuing insn.
10888         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
10890         * pa.c (hppa_use_dfa_pipeline_interface): New function.
10891         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10892         (override_options): Add PA7300 scheduling support.
10893         (pa_adjust_cost): Update various comments.  Properly
10894         handle anti and output dependencies when using the
10895         DFA scheduler.
10896         (pa_issue_rate): Add PA7300 scheduling support.
10897         (pa_can_combine_p): Call extract_insn before calling
10898         constrain_operands (taken from mainline tree).
10899         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10900         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
10901         descriptions using DFA descriptions.  Add PA7300
10902         scheduling support.
10904         2002-03-30  David S. Miller  <davem@redhat.com>
10906         Add UltraSPARC-III DFA scheduling support.
10907         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10908         Update FP conditional move on register insn patterns to use it, as
10909         appropriate.
10910         (define_attr cpu): Add ultrasparc3.
10911         (define_attr us3load_type): New, update integer load patterns to
10912         set it, as appropriate.
10913         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10914         (rest): Add UltraSPARC3 scheduling description.
10915         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10916         (PROCESSOR_ULTRASPARC3): New.
10917         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10918         ({ASM,CPP}_CPU_SPEC): Likewise.
10919         (REGISTER_MOVE_COST): Likewise.
10920         (RTX_COSTS): Likewise.
10921         * config/sparc/sparc.c (sparc_override_options,
10922         sparc_initialize_trampoline, sparc64_initialize_trampoline,
10923         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10924         sparc_issue_rate): Likewise.
10925         * config/sparc/sol2.h: Likewise.
10926         * config/sparc/sol2-sld-64.h: Likewise.
10927         * config/sparc/linux64.h: Likewise.
10929         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
10931         * doc/md.texi: Add comments about usage the latency time for the
10932         different dependencies and about case when two or more conditions
10933         in different define_insn_reservations returns TRUE for an insn.
10935         * doc/md.texi: Add reference for automaton based pipeline
10936         description.
10938         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
10940         * doc/passes.texi: Add missed information about genattrtab.
10942         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10944         * genautomata.c (output_automata_list_transition_code): Check
10945         automata_list on NULL.
10947         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
10949         * genautomata.c (output_insn_code_cases,
10950         output_automata_list_min_issue_delay_code,
10951         output_automata_list_transition_code,
10952         output_automata_list_state_alts_code): Comment the functions.
10954         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10956         * genautomata.c (automata_list_el_t): New typedef.
10957         (get_free_automata_list_el,free_automata_list_el,
10958         free_automata_list, automata_list_hash, automata_list_eq_p,
10959         initiate_automata_lists, automata_list_start, automata_list_add,
10960         automata_list_finish, finish_automata_lists,
10961         output_insn_code_cases, output_automata_list_min_issue_delay_code,
10962         output_automata_list_transition_code,
10963         output_automata_list_state_alts_code, add_automaton_state,
10964         form_important_insn_automata_lists): New functions and prototypes.
10965         (insn_reserv_decl): Add members important_automata_list and
10966         processed_p.
10967         (ainsn): Add members important_p.
10968         (automata_list_el): New structure.
10969         (first_free_automata_list_el, current_automata_list,
10970         automata_list_table): New global variables.
10971         (create_ainsns): Initiate member important_p.
10972         (output_internal_min_issue_delay_func): Generate the switch and
10973         call output_insn_code_cases.
10974         (output_internal_trans_func, output_internal_state_alts_func):
10975         Ditto.
10976         (generate): Call initiate_automata_lists.
10977         (automaton_states): New global variable.
10978         (expand_automata): Call form_important_insn_automata_lists.
10979         (write_automata): Call finish_automata_lists.
10981         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
10983         * genautomata.c (add_excls, add_presence_absence): Check that
10984         cpu units in the sets belong the same automaton.
10986         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10987         about that cpu units in the sets belong the same automaton.
10989         * doc/md.texi: Ditto.
10991         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
10992                     Nitin Gupta  <niting@noida.hcltech.com>
10994         * config/sh/sh.c (sh_use_dfa_interface): New function.
10996         (sh_issue_rate): New Function.
10997         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10998         TARGET_SCHED_ISSUE_RATE: define.
11000         * config/sh/sh.md: Add DFA based pipeline description for SH4.
11002         (define_attr insn_class): New attribute used for DFA
11003          scheduling.
11004         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11005         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11006          cmpeqdi_t): Likewise.
11008         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11009          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11010          ex_group.
11011         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11013         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
11015         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11016         break.
11018         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
11020         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11021         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11022         necessary.
11023         (output_dfa_start_func): Initiate new variable insn_codes_length,
11024         (write_automata): Output definition of the new variable.
11026         2001-10-02  David S. Miller  <davem@redhat.com>
11028         * haifa-sched.c (advance_one_cycle): New function.
11029         (schedule_block): Use it.
11030         (queue_to_ready): Use it, and also make sure to advance the DFA
11031         state on all stall cycles, not just those where insn_queue links
11032         are found.
11034         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
11036         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
11037         non-zero if the highest-priority instruction could be scheduled.
11038         (choose_ready): Remove last argument from max_issue call.
11040         2001-09-28  David S. Miller  <davem@redhat.com>
11042         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11043         ultrasparc and 3 for other multi-issue sparcs.
11045         2001-09-27  David S. Miller  <davem@redhat.com>
11047         * config/sparc/sparc.md (cycle_display): New pattern.
11048         * config/sparc/sparc.c (sparc_cycle_display): New.
11049         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11051         2001-09-25  David S. Miller  <davem@redhat.com>
11053         Convert all of Sparc scheduling to DFA
11054         * config/sparc/sparc.md: Kill all define_function_unit
11055         directives and replace with DFA equivalent.
11056         * config/sparc/sparc.c (ultrasparc_adjust_cost,
11057         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11058         ultra_fpmode_conflict_exists, ultra_find_type,
11059         ultra_build_types_avail, ultra_flush_pipeline,
11060         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11061         ultrasparc_variable_issue, ultrasparc_sched_init,
11062         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11063         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11064         ultra_cur_hist, ultra_cycles_elapsed): Kill.
11065         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11066         ultrasparc_store_bypass_p): New.
11067         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11068         Declare.
11070         2001-09-24  David S. Miller  <davem@redhat.com>
11072         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11073         ready->vec[foo] not ready[foo].
11075         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
11077         * doc/md.texi: Correct examples for define_insn_reservations
11078         `mult' and `div'.
11080         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
11082         * genautomata.c (create_automata): Print message about creation of
11083         each automaton.
11084         (generate): Remove printing meease about creation of
11085         automata.
11087         2001-09-05  David S. Miller  <davem@redhat.com>
11089         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11090         * config/sparc/linux64.h: Likewise.
11092         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
11094         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11095         schedule_block, sched_init, sched_finish): Add missed calls of
11096         use_dfa_pipeline_interface.
11098         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11099         Ditto.
11101         * sched-vis.c (get_visual_tbl_length): Ditto.
11103         2001-08-27  Richard Henderson  <rth@redhat.com>
11105         * genattr.c (main): Emit state_t even when not doing scheduling.
11107         2001-08-27  Richard Henderson  <rth@redhat.com>
11109         * genautomata.c (expand_automata): Always create a description.
11111         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
11113         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11114         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11115         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11116         RTL constructions.
11118         * genattr.c (main): New variable num_insn_reservations.  Increase
11119         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
11120         pipeline hazard recognizer interface.
11122         * genattrtab.h: New file.
11124         * genattrtab.c: Include genattrtab.h.
11125         (attr_printf, check_attr_test, make_internal_attr,
11126         make_numeric_value): Move protypes into genattrtab.h.  Define them
11127         as external.
11128         (num_dfa_decls): New global variable.
11129         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11130         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11131         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11132         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
11134         * genautomata.c: New file.
11136         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11138         * sched-int.h: (curr_state): Add the external definition for
11139         automaton pipeline interface.
11140         (haifa_insn_data): Add comments for members blockage and units.
11142         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11143         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11144         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11145         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11146         TARGET_SCHED_DFA_POST_CYCLE_INSN,
11147         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11148         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
11149         macros.
11150         (TARGET_SCHED): Use the new macros.
11152         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
11153         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
11154         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
11155         dfa_bubble): New members in gcc_target.sched.
11157         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
11158         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
11159         (insn_queue): Redefine it as pointer to array.
11160         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
11161         INSN_QUEUE_SIZE.
11162         (max_insn_queue_index_macro_value): New variable.
11163         (curr_state, dfa_state_size, ready_try): New varaibles for
11164         automaton interface.
11165         (ready_element, ready_remove, max_issue): New function prototypes
11166         for automaton interface.
11167         (choose_ready): New function prototype.
11168         (insn_unit, blockage_range): Add comments.
11169         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
11170         FUNCTION_UNITS_SIZE == 0.
11171         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
11172         actual_hazard, potential_hazard): Add comments.
11173         (insn_cost): Use cost -1 as undefined value.  Remove
11174         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
11175         pipeline interface.
11176         (ready_element, ready_remove): New functions for automaton
11177         interface.
11178         (schedule_insn): Add new code for automaton pipeline interface.
11179         (queue_to_ready): Add new code for automaton pipeline interface.
11180         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
11181         (debug_ready_list): Print newline when the queue is empty.
11182         (max_issue): New function for automaton pipeline interface.
11183         (choose_ready): New function.
11184         (schedule_block): Add new code for automaton pipeline interface.
11185         Print ready list before scheduling each insn.
11186         (sched_init): Add new code for automaton pipeline interface.
11187         Initiate insn cost by -1.
11188         (sched_finish): Free the current automaton state and finalize
11189         automaton pipeline interface.
11191         * sched-rgn.c: Include target.h.
11192         (init_ready_list, new_ready, debug_dependencies): Add new code for
11193         automaton pipeline interface.
11195         * sched-vis.c: Include target.h.
11196         (get_visual_tbl_length): Add code for automaton interface.
11197         (target_units, print_block_visualization):  Add comments.
11199         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
11200         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
11201         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
11202         (getruntime.o, genautomata.o): New entries.
11203         (genattrtab.o): Add new dependency file genattrtab.h.
11204         (genattrtab): Add new dependencies.  Link it with `libm.a'.
11205         (getruntime.o, hashtab.o): New entries for canadian cross.
11207         * doc/md.texi: Description of automaton based model.
11209         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
11210         Add comments.
11211         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11212         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
11213         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
11214         TARGET_SCHED_DFA_POST_CYCLE_INSN,
11215         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
11216         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11217         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
11218         hook descriptions.
11219         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
11220         MAX_DFA_ISSUE_RATE): New macro descriptions.
11222         * doc/contrib.texi: Add dfa based scheduler contribution.
11224         * doc/gcc.texi: Add more information about genattrtab.
11226 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11228         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
11229         adjust_address_nv call.
11231 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
11233         * doc/install.texi (Testing): Provide additional information, and
11234         a stronger encouragement, for running the testsuites.
11236 2002-04-29  DJ Delorie  <dj@redhat.com>
11238         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
11239         given in upper case.
11241 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11243         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
11244         Solaris 2 <widec.h> if missing.
11245         * fixinc/fixincl.x: Regenerate.
11246         * fixinc/tests/base/widec.h: New file.
11248 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
11250         * toplev.c (f_options): Add "profile" switch so that
11251         -fno-profile can be used to disable -p.
11253 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
11255         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
11256         UV2DImode.
11257         * tree.c (build_common_tree_nodes_2): Likewise.
11258         * tree.h (enum tree_index): Likewise.
11259         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
11261         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
11262         entries.
11263         (init_mmx_sse_builtins): Initialize SSE2 builtins.
11264         (ix86_expand_builtin): Add support for SSE2 builtins.
11265         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
11266         (VALID_SSE_REG_MODE): Use it.
11267         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
11268         (enum ix86_builtins): Add SSE2 builtins.
11269         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
11270         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
11271         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
11272         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
11273         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
11274         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
11275         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
11276         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
11277         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
11278         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
11279         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
11280         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
11281         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
11282         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11283         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
11284         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
11285         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
11286         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
11287         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
11288         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
11289         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
11290         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
11291         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
11292         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
11293         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
11294         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
11295         lfence_insn): New patterns.
11296         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
11297         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
11299 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
11301         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
11303 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11305         * doc/contrib.texi (Contributors): Add Paolo Carlini and
11306         Janis Johnson.
11307         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
11308         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
11309         and CPU instead of cpu.
11311 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
11313         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
11314         variables.
11315         (lang_independent_options): Add -fif-conversion, -fif-conversion2
11316         (rest_of_compilation): Do if conversion only when asked for.
11317         (parse_options_and_default_flags): Set new variables to 1 for -O1
11318         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
11320 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
11322         * i386.c (dbx64_register_map): Fix typo.
11324 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
11326         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
11327         real_one_half, real_bb_freq_max): New static variables.
11328         (debug_profile_bbauxs): Kill.
11329         (process_note_predictions): Kill unused variable.
11330         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
11331         volatile double.
11332         (propagate_freq): Use REAL_ARITHMETICS.
11333         (estimate_bb_frequencies): Likevise; init new static variables.
11334         * Makefile.in (predict.o): Add dependency on real.h
11336 2002-04-28  David S. Miller  <davem@redhat.com>
11338         PR target/6500
11339         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
11340         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
11341         several {reads,writes} instead.
11342         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
11343         Define.
11345 2002-04-27  David S. Miller  <davem@redhat.com>
11347         PR target/6494
11348         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
11349         of the stack bias.
11351         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
11352         including signal.h and sys/ucontext.h, not needed.
11354 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
11356         * varasm.c (output_constant_def): Correct test for not calling
11357         ENCODE_SECTION_INFO for INTEGER_CST.
11359 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11361         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
11362         keep most cases as function eval_token.
11363         (eval_token): New function.
11364         (_cpp_parse_expr): Read token here for improved diagnostics.
11365         Don't use op_as_text.  Detect bad ':' here.
11366         (reduce): Don't detect bad ':' here.
11367         (op_as_text): Remove.
11368         * cpphash.h (_cpp_test_assertion): Change prototype.
11369         * cpplib.c (_cpp_test_assertion): Change prototype.
11371 2002-04-28  Richard Henderson  <rth@redhat.com>
11373         PR c/5154
11374         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11375         (ggc_mark_rtx_children): New.
11377 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11379         PR target/6496
11380         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11381         after call peepholes for UltraSPARC.
11382         (call + jump 64-bit peepholes): Remove.
11384 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11386         PR c/6497
11387         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11388         result as temporary value.
11390 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11392         PR c++/6396
11393         * toplev.c (rest_of_compilation): Only run regrename and copy
11394         propagation if optimizing.
11396 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
11398         PR optimization/6475
11399         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11400         register of REGNO_DECL (i).
11401         * Makefile.in (reload1.o): Add $(TREE_H).
11403 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11405         * cppexp.c (lex): Update to use state.skip_eval.
11406         (struct op): Remove prio and flags members.
11407         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11408         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11409         (LEFT_ASSOC): New macro.
11410         (optab): New table of operator priorities and flags.
11411         (SHIFT): Update.
11412         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
11413         malloc-ed parser stack.
11414         (reduce): New; reduce the operator stack.
11415         (_cpp_expand_op_stack): Expand the operator stack as necessary.
11416         * cpphash.h (struct op): Predeclare.
11417         (struct cpp_reader): New members op_stack, op_limit.
11418         (struct lexer_state): New member skip_eval.
11419         (_cpp_parse_expr): Update.
11420         (_cpp_expand_op_stack): New.
11421         * cpplib.c (do_if): Update.
11422         * cppinit.c (cpp_create_reader): Create op stack.
11423         (cpp_destroy): And destroy it.
11424         * cpplib.h (CPP_LAST_CPP_OP): Correct.
11425         (TTYPE_TABLE): Correct.
11427 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11429         PR c/6343
11430         * c-decl.c (duplicate_decls): Call merge_weak.
11431         * c-pragma.c (apply_pragma_weak): Warn about misuse.
11432         * output.h (merge_weak): Prototype merge_weak.
11433         * varasm.c (merge_weak): New function.
11434         (declare_weak): Make sure we don't give an error on VAR_DECLs.
11435         Mark RTL with SYMBOL_REF_WEAK.
11437 2002-04-27  Kurt Garloff <garloff@suse.de>
11439         * tree-inline.c (inlinable_function_p): Improve heuristics
11440         by using a smoother function to cut down allowable inlinable size.
11441         * param.def: Add parameters max-inline-insns-single,
11442         max-inline-slope, min-inline-insns that determine the exact
11443         shape of the above function.
11444         * param.h: Likewise.
11446 2002-04-26  Richard Henderson  <rth@redhat.com>
11448         * c-parse.in (malloced_yyss, malloced_yyvs): New.
11449         (yyoverflow): Re-add.  Set them.
11450         (free_parser_stacks): New.
11451         * c-common.h: Declare it.
11452         * c-lex.c (c_common_parse_file): Call it.
11454 2002-04-26  Richard Henderson  <rth@redhat.com>
11456         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11457         for fallthru search.
11459 2002-04-26  Eric Christopher  <echristo@redhat.com>
11461         PR optimization/3700
11462         * config/mips/mips.c (mips_issue_rate): Define.  New function.
11463         (TARGET_SCHED_ISSUE_RATE): Use.
11465 2002-04-25  David S. Miller  <davem@redhat.com>
11467         PR target/6422
11468         * reorg.c (optimize_skip): Do not allow exception causing
11469         instructions to be considered for delay slots.
11470         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11471         (relax_delay_slots): Do not try to consider exception causing
11472         instructions as redundant.
11474 2002-04-26  Richard Henderson  <rth@redhat.com>
11476         PR c/5225
11477         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11479 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
11481         PR bootstrap/6445
11482         * config/i386/i386.md (untyped_call): Return the value in a float
11483         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11484         TARGET_80387.
11486 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
11488         * tree.c (tree_int_cst_lt): Compare constants whose types differ
11489         in unsigned-ness correctly.
11491 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11493         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11494         portable runtime model.
11496 2002-04-26  Richard Henderson  <rth@redhat.com>
11498         * c-parse.in (yyoverflow): Revert.
11500 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
11501             Richard Henderson  <rth@redhat.com>
11503         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11504         result as temporary value.
11506 2002-04-26  Richard Henderson  <rth@redhat.com>
11508         PR c/3581
11509         * c-common.c (fix_string_type): Split out of ...
11510         (combine_strings): ... here.  Take a varray, not a tree list.
11511         (c_expand_builtin_printf): Use fix_string_type.
11512         * c-common.h: Update decls.
11513         * c-parse.in (string): Remove.  Update all uses to use STRING
11514         instead, and not call combine_strings.
11515         (yylexstring): New.
11516         (_yylex): Use it.
11517         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11518         (build_asm_stmt): Likewise.
11519         * objc/objc-act.c (my_build_string): Use fix_string_type.
11520         (build_objc_string_object): Build varray for combine_strings.
11522 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
11524         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11525         x86-64.
11527 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11529         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11530         (HAVE_NO_R_OPERAND): Remove.
11531         (HAVE_VALUE): Remove.
11532         (op_to_prio): Update.
11533         (UNARY): Don't alter flags.
11534         (_cpp_parse_expr): want_value used to indicate whether
11535         a number or unary operator is expected next.  Distinguish
11536         unary and binary +/-.
11537         (op_as_text): Update for unary operators.
11539 2002-04-25  Richard Henderson  <rth@redhat.com>
11541         PR c/2161
11542         * c-parse.in (yyoverflow): New.
11544 2002-04-25  Richard Henderson  <rth@redhat.com>
11546         PR c/2098
11547         * c-common.c (shorten_compare): Simplfy conditions leading to
11548         the generation of a warning.
11550 2002-04-25  Richard Henderson  <rth@redhat.com>
11552         PR c/2035
11553         * expmed.c (extract_bit_field): Fall through to generic code rather
11554         than aborting on subreg special case.
11556 2002-04-25  David S. Miller  <davem@redhat.com>
11558         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11559         for DECL being NULL.
11561 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
11563         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11565 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
11567         * c-decl.c (grokdeclarator): Remove outdated ??? note
11568         on invalid declaration of flexible array members.
11570 2002-04-25  Richard Henderson  <rth@redhat.com>
11572         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11574 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
11576         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11577         needed by the compiler, even if they are used as global regs.
11579 2002-04-25  Matt Hiller  <hiller@redhat.com>
11581         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11582         functions.
11583         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11584         of the corresponding functions.
11585         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11586         New prototypes.
11588 2002-04-25  Matt Hiller  <hiller@redhat.com>
11590         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11592         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11593         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11594         registers, adjust comment accordingly.
11595         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11596         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11597         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11598         for coprocessor registers.
11599         (ADDITIONAL_REGISTER_NAMES): Include
11600         ALL_COP_ADDITIONAL_REGISTER_NAMES.
11602         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11603         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11604         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11605         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11606         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11608         (mips_char_to_class): Adjust comment to include coprocessor
11609         constraint letters.
11611         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11612         New functions.
11613         (mips_reg_names, mips_regno_to_class): Include coprocessor
11614         information.
11615         (mips_sw_reg_names): Ditto, make non-static.
11616         (mips_move_1word): Handle moves to and from coprocessor registers.
11617         (mips_move_2words): Handle moves to and from coprocessor
11618         registers.
11619         (mips_class_max_nregs, mips_register_move_cost): Handle
11620         coprocessor register classes.
11621         (override_options): Initialize mips_char_to_class and
11622         mips_hard_regno_mode_ok properly for coprocessor registers.
11624         * config/mips/mips.md (movdi_internal, movdi_internal2,
11625         movsi_internal1, movsi_internal2): Add constraint-sets for
11626         coprocessor registers.
11627         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11628         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11629         isn't mips.
11630         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11631         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11632         isn't mips.
11633         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11634         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11635         isn't mips.
11636         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11637         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11638         isn't mips.
11640         * doc/tm.texi: Document feature.
11642 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11644         * integrate.c (function_attribute_inlinable_p): Simplify.
11645         Check the table pointer is not NULL.
11647 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
11649         * doc/c-tree.texi: Fix typo in introduction.
11651 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11653         * c-common.h (c_common_parse_file): Update.
11654         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11655         * c-lex.c (YYDEBUG): Get from c-lex.h.
11656         (c_common_parse_file): Update.
11657         * c-lex.h (YYDEBUG, yydebug): New.
11658         * c-parse.in (YYDEBUG): Get from c-lex.h.
11659         (c_set_yydebug): Remove.
11660         * c-tree.h (c_set_yydebug): Remove.
11661         * langhooks-def.h (lhd_do_nothing_i): New.
11662         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11663         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11664         * langhooks.c  (lhd_do_nothing_i): New.
11665         (lhd_set_yydebug): Remove.
11666         * langhooks.h (struct lang_hooks): Update.
11667         * toplev.c (set_yydebug): New.
11668         (compile_file): Update call to parse_file hook.
11669         (decode_d_option): Update.
11670 objc:
11671         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11673 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
11675         * loop.c (load_mems): Don't change the interface of called functions.
11677         * calls.c (expand_call): Take current_function_pretend_args_size
11678         into account when setting argblock for sibcalls.
11680 2002-04-24  Matt Hiller  <hiller@redhat.com>
11682         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11683         * c-lex.c: Ditto.
11685         * cpplex.c (skip_line_comment): Process comment one multibyte
11686         character at a time rather than one char at a time, if
11687         appropriate.
11688         (parse_string): Process string one multibyte character at a time
11689         rather than one char at a time, if appropriate.
11690         * c-lex.c (lex_string): Lex and copy multibyte strings
11691         appropriately.
11692         * cpplib.h (cppchar_t): Change to unsigned.
11694 2002-04-24  Richard Henderson  <rth@redhat.com>
11696         PR c/3467
11697         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11698         for c99.
11700 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
11702         * sh.c (sh_va_arg): If argument was passed by reference,
11703         dereference the pointer.
11705         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11707         * sh.md (divsi3_i4_media): Use match_operand for input values
11708         rather than hard registers.
11709         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11710         unnecessarily through hard registers.  Keep copies of pseudo
11711         registers outside of the libcall sequence.
11713         * sh.md (casesi_shift_media): Add modes.
11715         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11716         values in memory.
11718 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11720         * attribs.c (c_common_attribute_table): Move table and handlers
11721         to c-common.c.
11722         (format_attribute_table, lang_attribute_table,
11723         lang_attribute_common): Remove.
11724         (init_attributes): Replace NULL pointers with pointers to the
11725         empty table.
11726         (handle_packed_attribute, handle_nocommon_attribute,
11727         handle_common_attribute, handle_noreturn_attribute,
11728         handle_noinline_attribute, handle_always_inline_attribute,
11729         handle_used_attribute, handle_unused_attribute,
11730         handle_const_attribute, handle_transparent_union_attribute,
11731         handle_constructor_attribute, handle_destructor_attribute,
11732         handle_mode_attribute, handle_section_attribute,
11733         handle_aligned_attribute, handle_weak_attribute,
11734         handle_alias_attribute, handle_visibility_attribute,
11735         handle_no_instrument_function_attribute, handle_malloc_attribute,
11736         handle_no_limit_stack_attribute, handle_pure_attribute,
11737         handle_deprecated_attribute, handle_vector_size_attribute,
11738         vector_size_helper): Move to c-common.c.
11739         * c-common.c (c_common_attribute_table,
11740         handle_packed_attribute, handle_nocommon_attribute,
11741         handle_common_attribute, handle_noreturn_attribute,
11742         handle_noinline_attribute, handle_always_inline_attribute,
11743         handle_used_attribute, handle_unused_attribute,
11744         handle_const_attribute, handle_transparent_union_attribute,
11745         handle_constructor_attribute, handle_destructor_attribute,
11746         handle_mode_attribute, handle_section_attribute,
11747         handle_aligned_attribute, handle_weak_attribute,
11748         handle_alias_attribute, handle_visibility_attribute,
11749         handle_no_instrument_function_attribute, handle_malloc_attribute,
11750         handle_no_limit_stack_attribute, handle_pure_attribute,
11751         handle_deprecated_attribute, handle_vector_size_attribute,
11752         vector_size_helper): Move from attribs.c.
11753         * c-common.h (c_common_attribute_table,
11754         c_common_format_attribute_table): New.
11755         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11756         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11757         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11758         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11759         (LANG_HOOKS_INITIALIZER): Update.
11760         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11761         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11762         * target.h: Update comment.
11763         * tree.c (default_target_attribute_table): Remove.
11764         * tree.h (default_target_attribute_table, format_attribute_table,
11765         lang_attribute_table, lang_attribute_common): Remove.
11766 objc:
11767         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11768         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11770 2002-04-24  Jason Merrill  <jason@redhat.com>
11772         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11773         * dwarf2out.c (dwarf_attr_name): Support it.
11774         (gen_array_type_die): Emit it.
11775         (lookup_type_die): No special handling for VECTOR_TYPE.
11776         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11778 2002-04-24  Richard Henderson  <rth@redhat.com>
11780         * config/mips/mips.md (movdi_usd): Renumber.
11782 2002-04-24  David S. Miller  <davem@redhat.com>
11784         PR target/6420
11785         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11786         32-bit Sparc and current_function_returns_struct is true.
11788 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11790         * loop.c (canonicalize_condition): Use gen_int_mode.
11792 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
11794         * config/rs6000/altivec.h: Cleanup file.  Add non individual
11795         variants.
11796         (vec_vaddubm): New.
11797         (vec_vadduhm): New.
11798         (vec_vadduwm): New.
11799         (vec_vaddfp): New.
11800         (vec_vaddcuw): New.
11801         (vec_vaddubs): New.
11802         (vec_vaddsbs): New.
11803         (vec_vadduhs): New.
11804         (vec_vadduws): New.
11805         (vec_vaddsws): New.
11806         (vec_vand): New.
11807         (vec_vandc): New.
11808         (vec_vavgub): New.
11809         (vec_vavgsb): New.
11810         (vec_vavguh): New.
11811         (vec_vavgsh): New.
11812         (vec_vavguw): New.
11813         (vec_vavgsw): New.
11814         (vec_vrfip): New.
11815         (vec_vcmpbfp): New.
11816         (vec_vcmpequb): New.
11817         (vec_vcmpequh): New.
11818         (vec_vcmpequw): New.
11819         (vec_vcmpeqfp): New.
11820         (vec_vcmpgefp): New.
11821         (vec_vcmpgtub): New.
11822         (vec_vcmpgtsb): New.
11823         (vec_vcmpgtuh): New.
11824         (vec_vcmpgtsh): New.
11825         (vec_vcmpgtuw): New.
11826         (vec_vcmpgtsw): New.
11827         (vec_vcmpgtfp): New.
11828         (vec_vcmpgefp): New.
11829         (vec_vcfux): New.
11830         (vec_vcfsx): New.
11831         (vec_vctsxs): New.
11832         (vec_vctuxs): New.
11833         (vec_vexptefp): New.
11834         (vec_vrfim): New.
11835         (vec_lvx): New.
11836         (vec_lvebx): New.
11837         (vec_lvehx): New.
11838         (vec_lde): Add vector float variant.
11839         (vec_lvewx): New.
11840         (vec_lvxl): New.
11841         (vec_vlogefp): New.
11842         (vec_vmaddfp): New.
11843         (vec_vmhaddshs): New.
11844         (vec_vmaxub): New.
11845         (vec_vmaxsb): New.
11846         (vec_vmaxuh): New.
11847         (vec_vmaxsh): New.
11848         (vec_vmaxuw): New.
11849         (vec_vmaxsw): New.
11850         (vec_vmaxsw): New.
11851         (vec_vmaxfp): New.
11852         (vec_vmrghb): New.
11853         (vec_vmrghh): New.
11854         (vec_vmrghw): New.
11855         (vec_vmrglb): New.
11856         (vec_vmrglh): New.
11857         (vec_vmrglw): New.
11858         (vec_vminub): New.
11859         (vec_vminsb): New.
11860         (vec_vminuh): New.
11861         (vec_vminsh): New.
11862         (vec_vminuw): New.
11863         (vec_vminsw): New.
11864         (vec_vminfp): New.
11865         (vec_vmladduhm): New.
11866         (vec_vmhraddshs): New.
11867         (vec_msumubm): New.
11868         (vec_vmsummbm): New.
11869         (vec_vmsumuhm): New.
11870         (vec_vmsumshm): New.
11871         (vec_vmsumuhs): New.
11872         (vec_vmsumshs): New.
11873         (vec_vmuleub): New.
11874         (vec_vmulesb): New.
11875         (vec_vmuleuh): New.
11876         (vec_vmulesh): New.
11877         (vec_vmuloub): New.
11878         (vec_mulosb): New.
11879         (vec_vmulouh): New.
11880         (vec_vmulosh): New.
11881         (vec_vnmsubfp): New.
11882         (vec_vnor): New.
11883         (vec_vor): New.
11884         (vec_vpkuhum): New.
11885         (vec_vpkuwum): New.
11886         (vec_vpkpx): New.
11887         (vec_vpkuhus): New.
11888         (vec_vpkshss): New.
11889         (vec_vpkuwus): New.
11890         (vec_vpkswss): New.
11891         (vec_vpkshus): New.
11892         (vec_vpkswus): New.
11893         (vec_vperm): New.
11894         (vec_vrefp): New.
11895         (vec_vrlb): New.
11896         (vec_vrlh): New.
11897         (vec_vrlw): New.
11898         (vec_vrfin): New.
11899         (vec_vrsqrtefp): New.
11900         (vec_vsel): New.
11901         (vec_vslb): New.
11902         (vec_vslh): New.
11903         (vec_vslw): New.
11904         (vec_vsldoi): New.
11905         (vec_vsl): New.
11906         (vec_vslo): New.
11907         (vec_vspltb): New.
11908         (vec_vsplth): New.
11909         (vec_vspltw): New.
11910         (vec_vspltisb): New.
11911         (vec_vspltish): New.
11912         (vec_vspltisw): New.
11913         (vec_vsrb): New.
11914         (vec_vsrh): New.
11915         (vec_vsrw): New.
11916         (vec_vsrab): New.
11917         (vec_vsrah): New.
11918         (vec_vsraw): New.
11919         (vec_vsr): New.
11920         (vec_vsro): New.
11921         (vec_stvx): New.
11922         (vec_stvebx): New.
11923         (vec_stvehx): New.
11924         (vec_stvewx): New.
11925         (vec_stvxl): New.
11926         (vec_vsububm): New.
11927         (vec_vsubuhm): New.
11928         (vec_vsubuwm): New.
11929         (vec_vsubfp): New.
11930         (vec_vsubcuw): New.
11931         (vec_vsububs): New.
11932         (vec_vsubsbs): New.
11933         (vec_vsubuhs): New.
11934         (vec_vsubshs): New.
11935         (vec_vsubuws): New.
11936         (vec_vsubsws): New.
11937         (vec_vsum4ubs): New.
11938         (vec_vsum4sbs): New.
11939         (vec_vsum4shs): New.
11940         (vec_vsum2sws): New.
11941         (vec_vsumsws): New.
11942         (vec_vrfiz): New.
11943         (vec_vupkhsb): New.
11944         (vec_vupkhpx): New.
11945         (vec_vupkhsh): New.
11946         (vec_vupklsb): New.
11947         (vec_vupklpx): New.
11948         (vec_vupklsh): New.
11949         (vec_vxor): New.
11951 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
11953         PR c/5430
11954         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11955         added literals from substracted literals.
11956         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11957         (fold) [associate]: Preserve MINUS_EXPR if needed.
11959 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
11961         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11962         are obsoleted.
11964 2002-04-23  Tom Tromey  <tromey@redhat.com>
11966         * gcc.c: Added --resource.  For PR java/6314.
11968 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11970         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
11971         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11972         these libraries.
11974 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
11976         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11978 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
11980         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11981         workaround.
11982         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11983         (ix86_expand_clrstr): Fix typo.
11984         * loop.c (gen_load_of_final_value): New.
11985         (loop_givs_rescan, strength_reduce, check_dbra_loop):
11986         Use it.
11988 2002-04-23  Roger Sayle  <roger@eyesopen.com>
11990         * builtins.c (builtin_memset_gen_str): New function.
11991         (expand_builtin_memset): Optimize the case of constant length, but
11992         unknown value.
11994 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
11996         * config/rs6000/altivec.h (vec_step): Remove extraneous
11997         parentheses.
11998         (vec_ctu): Cast return.
12000 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
12002         PR target/6413
12003         * function.h: (struct function): Add profile_label_no field.
12004         (current_function_profile_label_no): Define.
12005         * function.c: (profile_label_no): New static var.
12006         (expand_function_start): Increment it, and copy to
12007         current_function_profile_label_no.
12008         * output.h (profile_label_no): Delete.
12009         * final.c (profile_label_no): Delete.
12010         (profile_function): Use current_function_profile_label_no.
12011         (final_end_function): Don't increment profile_label_no here.
12012         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12013         profile_label_no with current_function_profile_label_no.
12014         * config/pa/pa.c (current_function_number): Delete.
12015         (pa_output_function_prologue): Don't output profile label here.
12016         (hppa_profile_hook): Use label_no param rather than
12017         current_function_number.
12018         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12019         * config/pa/pa.h: .. here.
12020         (FUNCTION_PROFILER): Output profile label here.
12022 2002-04-22  Eric Christopher  <echristo@redhat.com>
12024         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12025         patch of 2002-04-09 due to binutils issues.
12026         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12028 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
12030         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12031         constraint to 'o' for m=r and r=m alternatives.
12032         ("*movv8hi_internal1"): Same.
12033         ("*movv16qi_internal1"): Same.
12034         ("*movv4sf_internal1"): Same.
12036 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
12038         * rtl.h (RTX_FLAG): New macro.
12039         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12040         * final.c (alter_subreg): Use macro to access rtx flag.
12041         * integrate.c (copy_rtx_and_substitute): Use new access macro.
12042         * print-rtl.c (print_rtx): Use new access macro.
12044         * cse.c (insert): Check rtx code before accessing flag.
12046         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12047         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12048         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12049         convert_const_symbol_ref, make_canonical, make_alternative_compare,
12050         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12051         simplify_test_exp, optimize_attrs, simplify_by_exploding,
12052         find_and_mark_used_attributes, unmark_used_attributes,
12053         add_values_to_cover, simplify_with_current_value,
12054         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12055         copy_rtx_unchanging, main): Use new access macros.
12057 2002-04-22  Tom Rix  <trix@redhat.com>
12059         * expmed.c (init_expmed): Generate shifted constant once.
12061 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
12063         * c-lex.c (lex_charconst): Call convert to get constant in
12064         proper type; don't just smash the type field.
12065         Fixes PR c/6300.
12067         * config.gcc: Add list of obsolete configurations.  Disallow
12068         building these without --enable-obsolete.
12069         * doc/install.texi: Document --enable-obsolete and obsoletion
12070         policy.  Mention obsoletion of individual targets in
12071         appropriate places.
12073 2002-04-22  Richard Henderson  <rth@redhat.com>
12075         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12077 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
12079         PR f/6138.
12080         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12081         (walk_fixup_memory_subreg): Likewise.
12082         (fixup_var_refs_insn): Adjust accordingly.
12083         (fixup_var_refs_1): Likewise.
12085 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
12087         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12088         LIBPATH_ARCH64_SPEC): Define.
12089         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12090         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12091         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12092         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12094 2002-04-22      Joel Sherrill <joel@OARcorp.com>
12096         * gthr-rtems.h: Correct prototypes to remove warnings.
12098 2002-04-22  Richard Henderson  <rth@redhat.com>
12100         PR c/6344
12101         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12103         * gcse.c (free_insn_expr_list_list): New.
12104         (clear_modify_mem_tables): Use it.  Fix bit set usage.
12105         (canon_list_insert): Use EXPR_LISTs for expressions.
12106         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12108 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12110         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
12111         file change and include code to _cpp_pop_buffer.
12112         * cpphash.h (struct pending_option): Predeclare.
12113         (struct cpp_reader): New member next_include_file.
12114         (_cpp_pop_file_buffer): Update.
12115         (_cpp_push_next_buffer): Update, rename.
12116         * cppinit.c (cpp_destroy): Free include chain and pending here.
12117         (cpp_finish_options): Simplify.
12118         (_cpp_push_next_buffer): Rename and clean up.
12119         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12120         Clarify.
12121         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12123 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
12125         * config/rs6000/altivec.h (vec_xor): Add variant for both args
12126         being vector signed int.
12127         (vec_andc): Same.
12128         (vec_xor): Add variant for both args being vector signed char.
12129         Remove redundant variant.
12130         (vec_andc): Same.
12132 2002-04-21  David S. Miller  <davem@redhat.com>
12134         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12135         compare mode in output RTL.
12137 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
12139         * config/rs6000/rs6000.c (rs6000_override_options): Correct
12140         style and formatting of previous patch.
12142 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
12144         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
12145         flag_pic for ABI_AIX.
12147 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12149         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
12150         * cppfiles.c (read_include_file): Similarly.
12151         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
12152         uxstrdup ustrchr, ufputs): Similarly.
12153         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
12154         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
12155         cpp_ideq, parse_identifier, parse_number): Similarly.
12156         * cpplib.c (struct directive, dequote_string, D, run_directive,
12157         cpp_push_buffer): Similarly.
12158         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
12159         _cpp_create_definition, check_trad_stringification,
12160         cpp_macro_definition): Similarly.
12162 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12164         * cppmacro.c (funlike_invocation_p): Don't step back
12165         over CPP_EOF.
12167 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
12169         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
12170         labelno.
12172 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12174         * doc/invoke.texi: Remove Chill references.
12175         * doc/gcc.texi: Update last modified date.
12177 2002-04-20  Kazu Hirata  <kazu@hxi.com>
12179         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
12180         push and pop.  Replace add.l with add.w.
12182 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12184         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
12185         multiply instructions for H8/300H case.
12187 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12189         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
12190         Bum three instructions from each routine.
12192 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12194         * Makefile.in: Update.
12195         * decl.c (push_c_function_context, pop_c_function_context,
12196         mark_c_function_context): Rename for consistency.
12197         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
12198         * c-tree.h (push_c_function_context, pop_c_function_context,
12199         mark_c_function_context): Rename for consistency.
12200         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12201         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12202         * function.c (init_lang_status, save_lang_status,
12203         restore_lang_status, mark_lang_status, free_lang_status):
12204         Move to langhooks.h.
12205         (push_function_context_to, pop_function_context_from,
12206         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
12207         Update.
12208         * function.h (init_lang_status, save_lang_status,
12209         restore_lang_status, mark_lang_status, free_lang_status):
12210         Move to langhooks.h.
12211         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
12212         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
12213         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
12214         LANG_HOOKS_FUNCTION_INITIALIZER): New.
12215         (LANG_HOOKS_INITIALIZER): Update.
12216         (lhd_do_nothing_f): New.
12217         * langhooks.h (struct lang_hooks_for_functions): New.
12218         (struct lang_hooks): New hooks.
12219         * langhooks.c (lhd_do_nothing_f): New.
12220 objc:
12221         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12222         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
12224 2002-04-19  David S. Miller  <davem@redhat.com>
12226         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12227         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
12229 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
12231         PR optimization/3756
12232         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
12233         x = ((int) y < 0) ? cst1 : cst2.
12235 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
12237         PR c/6358
12238         * function.c: Reapply patch for c/6358.
12239         (expand_function_end): Copy decl_rtl's mode, not
12240         current_function_return_rtx mode.
12242 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
12244         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
12245         targets.
12247 2002-04-19  Tom Tromey  <tromey@redhat.com>
12249         * doc/install.texi (Specific): Update status of Solaris 2.8.
12250         For PR libgcj/6158.
12252 2002-04-19  Andreas Schwab  <schwab@suse.de>
12254         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
12255         (PUT_REAL): Restore old definition.
12257 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
12258             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12260         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
12261         binutils 2.11.2 and higher generate smaller binaries than Sun's
12262         native tools.
12264 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
12266         PR c++/6352
12267         * toplev.c (rest_of_compilation): Do not defer functions for which
12268         TREE_SYMBOL_REFERENCED has already been set.
12270 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
12272         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
12273         alternative.
12275 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12277         * builtins.c: Include langhooks.h.
12278         (lang_type_promotes_to): Remove.
12279         (expand_builtin_va_arg): Use new hook.
12280         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
12281         (simple_type_promotes_to): Move to c-typeck.c.
12282         * c-common.h (simple_type_promotes_to): Remove.
12283         * c-decl.c (duplicate_decls, grokdeclarator): Update.
12284         * c-format.c: Include langhooks.h.
12285         (check_format_types): Update.
12286         * c-tree.h (c_type_promotes_to): New.
12287         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
12288         (type_lists_compatible_p): Update.
12289         * langhooks-def.h (lhd_type_promotes_to): New.
12290         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
12291         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12292         * langhooks.c (lhd_type_promotes_to): New.
12293         * langhooks.h (struct lang_hooks_for_types): New hook.
12294         * tree.h (lang_type_promotes_to): Remove.
12295 objc:
12296         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
12298 2002-04-18  Richard Henderson  <rth@redhat.com>
12300         * function.c: Revert patch for c/6358.
12302 2002-04-18  Richard Henderson  <rth@redhat.com>
12304         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
12305         blocks.  Handle multiple references to the TRAP block.  Handle
12306         non-adjacent THEN and OTHER blocks.
12308 2002-04-18  Richard Henderson  <rth@redhat.com>
12310         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
12311         crash with no type for by-mode libcalls.
12313         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
12315 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
12317         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
12318         __xtensa_nonlocal_goto): Use a syscall instructions to flush
12319         the register windows.
12321 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12323         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
12324         appropriate.  Document need for extended precision even when
12325         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
12326         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
12327         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
12328         instead of relying on later syntax error when REAL_WIDTH > 5.
12329         * real.c: Define NE based only on whether or not we have a
12330         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
12331         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
12332         define GET_REAL and PUT_REAL as simple memcpy operations; no
12333         need to byteswap or round.
12334         Use #error instead of #ifdef-ing out the entire file, for
12335         prompt error detection.
12337         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
12339 2002-04-18  David S. Miller  <davem@redhat.com>
12341         * config/sparc/sparc.h (BRANCH_COST): Define.
12343         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
12344         does it.
12346 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
12348         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
12349         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
12350         propagate_block calls after relaxation loop using new variable
12351         stabilized_prop_flags.
12353 2002-04-18  Richard Henderson  <rth@redhat.com>
12355         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
12356         (ia64_va_arg): Expect variable sized types by reference.
12357         * config/ia64/ia64-protos.h: Update.
12358         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
12359         ia64_function_arg_pass_by_reference.
12361 2002-04-18  Richard Henderson  <rth@redhat.com>
12363         * ifcvt.c: Include except.h.
12364         (block_has_only_trap): Break out from find_cond_trap.
12365         (find_cond_trap): Use it.  Always delete the trap block.
12366         (merge_if_block): Allow then block null.  Be less simplistic about
12367         what insns can end a block.
12368         * Makefile.in (ifcvt.o): Depend on except.h.
12370         * config/ia64/ia64.md (trap, conditional_trap): New.
12372 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12374         PR c/6358
12375         * function.c (assign_parms): Assign hard current_function_return_rtx
12376         register here...
12377         (expand_function_end): ...not here.
12379 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12381         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12382         * c-tree.h (c_incomplete_type_error): New.
12383         * c-typeck.c (require_complete_type, build_component_ref): Update.
12384         (incomplete_type_error): Rename.
12385         * langhooks-def.h (lhd_incomplete_type_error): New.
12386         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12387         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12388         * langhooks.c (lhd_incomplete_type_error): New.
12389         * langhooks.h (struct lang_hooks_for_types): New hook.
12390         * tree.c (size_in_bytes): Use new hook.
12391         * tree.h (incomplete_type_error): Remove.
12392 objc:
12393         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12395 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
12397         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12398         TARGET_FLOAT_FORMAT blocks.
12400 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12402         * doc/install.texi (Downloading the source): Do not mention Chill
12403         any longer, but mention Ada.
12404         (Configuration): Do not mention Chill any longer.
12406 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
12408         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12410 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
12412         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12413         in last patch.
12415 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12417         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12418         instead of unsigned_type.
12420 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12422         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12423         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12424         later.
12426 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
12428         * attribs.c (vector_type_node_list): New static variable.
12429         (handle_vector_size_attribute): Use it to avoid generating a
12430         new type node each time we are called.
12432         * combine.c (subst): Avoid trying to make a vector mode subreg of
12433         an integer constant.
12434         (gen_lowpart_for_combine): Likewise.
12436 2002-04-18  Roger Sayle  <roger@eyesopen.com>
12437             Jakub Jelinek  <jakub@redhat.com>
12439         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12440         for integer constant c (if x has unsigned type or sign bit is not
12441         set in c).  This folds the zero/sign extension into the bit-wise and
12442         operation.
12444 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
12446         PR middle-end/6205
12447         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12448         otherwise xorps.
12450 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
12452         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12454 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
12456         * gcc.c (read_specs): Detect and fail if an attempt is made to
12457         rename a spec string to an already existing string.
12459 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12461         * config/s390/s390.c (legitimize_pic_address): Do not generate
12462         illegal address constant without CONST.
12464 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12466         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12467         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12469 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
12471         PR optimization/6305
12472         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12473         to make sure previous reloads are taken into account.  Generate
12474         better code if one operand is an in-range immediate constant.
12476 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
12478         * doc/install.texi (Building): libgcj requires GNU make.
12480 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
12482         PR bootstrap/6315
12483         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12484         even if hard quad and register is not floating.
12485         (movtf reg<-mem split): Disallow splitting if hard quad and
12486         register is floating.
12487         (movtf mem<-reg split): Likewise.
12488         * config/sparc/sparc.c (fp_register_operand): New predicate.
12489         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12491 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
12493         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12494         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12495         (unprotoize.o): Ditto.  Build from protoize.c.  Define
12496         UNPROTOIZE on command line.
12497         * protoize.c: Include cppdefault.h.  Delete include_defaults.
12498         (in_system_include_dir): Use cpp_include_defaults (defined in
12499         cppdefault.o).
12500         * unprotoize.c: Delete file.
12502 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
12504         * config/rs6000/altivec.h (vec_ld): Add array variants.
12505         (vec_lde): Same.
12506         (vec_ldl): Same.
12508 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
12509             Aldy Hernandez <aldyh@redhat.com>
12511         * config/rs6000/altivec.h: Define __ALTIVEC__.
12512         (bool): New.
12513         (__pixel): New.
12514         (pixel): New.
12515         (vec_cfux): New.
12516         (vec_vmaddfp): New.
12517         (vec_vsldoi): New.
12518         Add parentheses to all macro arguments.
12520 2002-04-16  Richard Henderson  <rth@redhat.com>
12522         PR c++/6320
12523         * except.c (remove_eh_handler): Insert inner regions at beginning
12524         of sibling chain.  Refactor expressions.
12526 2002-04-16  Richard Henderson  <rth@redhat.com>
12528         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12529         * config/sparc/sol2-gas-bi.h: New file.
12530         * config.gcc (sparc*-solaris): Add it as needed.
12531         * configure.in (AS_SPARC64_FLAG): Remove check.
12532         * config.in, configure: Regenerate.
12534         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12536 2002-04-16  Richard Henderson  <rth@redhat.com>
12538         * config/mips/mips.c (override_options): Don't override N32 for
12539         a 64-bit ISA.
12541         PR 6202
12542         * config/mips/mips.md (can_delay): Split out of existing define_delays.
12543         (HILO_delay): Set can_delay false.
12545 2002-04-16  Dale Johannesen <dalej@apple.com>
12547         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12548         instruction addresses.
12549         (rs6000_output_function_epilogue): Likewise.
12551 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
12553         * c-parse.in (poplevel, compstmt_start,
12554         compstmt_primary_start): Add ending ';', in accordance
12555         with POSIX.
12557 2002-04-16  Richard Henderson  <rth@redhat.com>
12559         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12560         Adjust tm_file order to get TARGET_DEFAULT set properly.
12561         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12562         * doc/install.texi (sparc-solaris): Update.
12564 2002-04-16  Dale Johannesen <dalej@apple.com>
12566         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12567         comparison operands do not match each other or if modes of
12568         conditions do not match result.
12570 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
12572         PR target/6305
12573         * config/s390/s390.md (mulsidi3): Set both subregs of the
12574         multiword register.
12576 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
12578         * config/rs6000/altivec.h (vec_addc): Type check.
12580 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12582         PR middle-end/6279
12583         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12585         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12587 2002-04-15  Richard Henderson  <rth@redhat.com>
12589         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12590         call_really_used_regs too.
12592 2002-04-15  Richard Henderson  <rth@redhat.com>
12594         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12596 2002-04-15  David S. Miller  <davem@redhat.com>
12598         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12599         as being CLOBBERed.
12601 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
12603         PR c/6290
12604         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12605         CONST_VECTOR is { 0, ... 0 }.
12607 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
12609         * doc/install.texi (Installing GCC: Configuration): Clarify
12610         the only supported ways to configure gcc.
12612 2002-04-15  Roland McGrath  <roland@frob.com>
12614         * config.gcc (alpha*-*-gnu*): New target configuration.
12615         * config/alpha/gnu.h: New file for it.
12616         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12618 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12620         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12621         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12622         * tree.h (expand_start_stmt_expr): Update prototype.
12623         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12624         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12625         on the STMT_EXPR created for the inline function.
12627 2002-04-15  Richard Henderson  <rth@redhat.com>
12629         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12630         config/i386/linux-aout.h, config/i386/linux-oldld.h,
12631         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12632         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12633         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12634         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12635         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12636         Define __gnu_linux__, not gnu_linux.
12637         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12639 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
12641         Remove Chill front end.
12642         * gcc.c (default_compilers): Remove Chill entries.
12643         * ch: Remove directory.
12644         * doc/frontends.texi: Remove information about Chill.
12645         * doc/sourcebuild.texi: Likewise.
12646         * doc/standards.texi: Likewise.
12648 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
12650         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12651         (LONGLONG_STANDALONE): Define.
12653 2002-04-15  David S. Miller  <davem@redhat.com>
12655         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12656         Call emit_library_call with LCT_NORMAL.
12657         (sparc_initialize_trampoline): Use LCT_foo instead of
12658         magic constant in emit_library_call invocations.
12659         (sparc64_initialize_trampoline): Likewise.
12660         (sparc_profile_hook): Likewise.
12661         * config/sparc/sparc.md: Likewise.
12663         * config/sparc/sparc.c (sparc_extra_constraint_check):
12664         Fix type of argument 'c'.
12665         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12666         Likewise.
12668 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12670         * diagnostic.h (output_buffer_state): Redefine.
12671         (output_format_decoder): New macro.
12672         (output_prefixing_rule): Likewise.
12673         (output_line_cutoff): Likewise.
12674         (diagnostic_format_decoder): Adjust.
12675         (diagnostic_prefixing_rule): Likewise.
12676         (diagnostic_line_cutoff): Likewise.
12677         (diagnostic_state): Likewise.
12678         (diagnostic_kind_count): Likewise.
12679         (diagnostic_buffer): Now a macro.
12681         * diagnostic.c (diagnostic_buffer): Remove definition.
12682         (output_is_line_wrapping): Adjust.
12683         (set_real_maximum_length): Likewise.
12684         (output_set_maximum_length): Likewise.
12685         (init_output_buffer): Likewise.
12686         (lhd_print_error_function): Likewise.
12687         (output_do_verbatim): Likewise.
12689 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12691         * cpperror.c (print_location): Don't print include chain
12692         if line == 0.
12693         (cpp_begin_message): Update to use DL_ macros.
12694         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12695         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12696         cpp_notice, cpp_notice_from_errno): Remove.
12697         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12698         level.
12699         (cpp_errno): New.
12700         * cppexp.c (CPP_ICE): Remove.
12701         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12702         lex, integer_overflow, _cpp_parse_expr): Update.
12703         * cppfiles.c (read_include_file, find_include_file,
12704         handle_missing_header, _cpp_read_file, remap_filename): Update.
12705         * cpphash.h (enum error_type): Remove.
12706         (_cpp_begin_message): Update.
12707         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12708         cpp_handle_option, cpp_post_options): Update.
12709         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12710         skip_whitespace, parse_identifier, parse_slow, parse_string,
12711         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12712         cpp_interpret_charconst): Update.
12713         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12714         lex_macro_node, do_undef, glue_header_name, parse_include,
12715         do_include_common, read_flag, do_line, do_linemarker, do_ident,
12716         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12717         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12718         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12719         _cpp_pop_buffer, do_diagnostic): Update.
12720         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12721         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12722         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12723         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12724         cpp_notice, cpp_notice_from_errno): Remove.
12725         (cpp_error, cpp_error_with_line): Update to take a diagnostic
12726         level.
12727         (cpp_errno): New.
12728         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12729         collect_args, enter_macro_context, save_parameter, parse_params,
12730         _cpp_create_definition, check_trad_stringification,
12731         cpp_macro_definition): Update.
12732         * cppmain.c (cpp_preprocess_file): Update.
12733         * fix-header.c (read_scan_file): Update.
12735 2002-04-14  Andreas Schwab  <schwab@suse.de>
12737         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12739 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12741         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12743 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12745         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12746         not gnu_hurd.
12748 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
12750         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12752 2002-04-13      Joel Sherrill <joel@OARcorp.com>
12754         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
12755         sparc-elf and sparc-rtems targets.
12757 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
12759         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12760         defined, and __gnu_hurd__ wherever __GNU__ is defined.
12761         * arm/linux-elf.h: Likewise.
12762         * cris/aout.h: Likewise.
12763         * cris/linux.h: Likewise.
12764         * i370/linux.h: Likewise.
12765         * i386/gnu.h: Likewise.
12766         * i386/linux-aout.h: Likewise.
12767         * i386/linux-oldld.h: Likewise.
12768         * i386/linux.h: Likewise.
12769         * i386/linux64.h: Likewise.
12770         * ia64/linux.h: Likewise.
12771         * m68k/linux-aout.h: Likewise.
12772         * m68k/linux.h: Likewise.
12773         * mips/linux.h: Likewise.
12774         * pa/pa-linux.h: Likewise.
12775         * pj/linux.h: Likewise.
12776         * rs6000/sysv4.h: Likewise.
12777         * s390/linux.h: Likewise.
12778         * sh/linux.h: Likewise.
12779         * sparc/linux-aout.h: Likewise.
12780         * sparc/linux.h: Likewise.
12781         * sparc/linux64.h: Likewise.
12782         * xtensa/linux.h: Likewise.
12784 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
12786         * stmt.c (check_unique_operand_names): Expect operand names to
12787         be strings rather than identifiers.  Use simple_cst_equal to
12788         compare them.
12789         (resolve_operand_name_1): Make same identifier to string change here.
12790         * c-parse.in (asm_operand): Convert a named operand into a string.
12791         * cp/parse.y (asm_operand): Likewise.
12793 2002-04-13  Andreas Schwab  <schwab@suse.de>
12795         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12797 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
12799         Revert these changes:
12801         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
12803         PR c++/5571
12804         * stor-layout.c (layout_decl): Reset the RTL for the decl.
12806 2002-04-12  Richard Henderson  <rth@redhat.com>
12808         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12809         (sparc*-*-solaris): Clean up header files.
12810         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12811         and plan on generating 64-bit code.
12812         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12813         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12814         * config/sparc/sol2-sld-64.h: Rename ...
12815         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
12816         for AS_SPARC64_FLAG not defined.
12817         * config/sparc/sol2-gld-bi.h: New.
12818         * config/sparc/sol2-sld.h: Remove.
12819         * config/sparc/sol26-sld.h: New.
12820         * config/sparc/sol2.h: Tidy comments.
12821         * doc/install.texi: Document sparc-solaris configury changes.
12823 2002-04-12  Richard Henderson  <rth@redhat.com>
12825         * recog.c (offsettable_address_p): Match the logic in adjust_address.
12827         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12828         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
12830 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12832         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12834 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
12836         * pa.c (pa_can_combine_p): Call extract_insn before calling
12837         constrain_operands.
12839 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
12841         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12842         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12843         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12844         (CPP_PREDEFINES): Handle __declspec.
12845         * config/i386/t-interix (USER_H): Remove.
12847 2002-04-12  DJ Delorie  <dj@redhat.com>
12849         * integrate.c (compare_blocks): Make comparisons safe for when
12850         sizeof(int) < sizeof(char *).
12851         (find_block): Likewise.
12853 2002-04-12  Jan Hubicka  <jh@suse.cz>
12854             David Edelsohn  <edelsohn@gnu.org>
12856         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12857         registers.
12858         (symbol_ref_operand): New.
12859         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12860         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12862 2002-04-12  Andreas Schwab  <schwab@suse.de>
12864         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12865         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12866         overrides the definition in config/svr4.h.
12868 2002-04-12      Eric Norum <eric.norum@usask.ca>
12870         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12871         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12872         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12873         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12874         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12875         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12876         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12877         definitions to config/rtems.h and make the targets more similar.
12879 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12881         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12882         POINTERS_EXTEND_UNSIGNED.
12883         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12884         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12886         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12887         not specified.
12889 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
12891         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12892         depends on TARGET_SHMEDIA, not TARGET_SH5.
12894 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
12896         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12897         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12899 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
12901         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12902         no r0 clobber.
12904 2002-04-12  Andreas Schwab  <schwab@suse.de>
12906         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12908 2002-04-12  Richard Henderson  <rth@redhat.com>
12910         PR bootstrap/4191
12911         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12913         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12914         modes spanning multiple hard regs.
12916         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12918 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12920         * pa.c (pa_output_function_prologue): Don't accumulate the total
12921         number of code bytes when using TARGET_64BIT, or gas, SOM and not
12922         the portable runtime.
12923         (output_deferred_plabels): Handle 64bit plabels.
12924         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12925         generating pic code using the GAS assembler for object formats that
12926         are not SOM (ie., ELF32 and ELF64).
12927         (output_millicode_call): Check attribute type if attribute length is 28.
12928         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
12929         dbr_sequence_length once.
12930         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12931         dbr_sequence_length once.
12932         * pa.h (TARGET_SOM): Define if not defined.
12933         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12934         with GAS and not SOM.
12935         (jump, call_internal_reg, call_value_internal_reg): Likewise.
12936         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
12938 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12940         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12941         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12942         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12943         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12944         elfos.h and dbxelf.h values are fine now.
12945         * config/i386/freebsd.h, config/alpha/freebsd.h
12946         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12948 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12950         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12951         or set Acpu or Amachine.  Reformat.
12952         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12953         define.
12954         (LINK_SPEC): Do not need to undef.
12955         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12956         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12957         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12958         define.
12959         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12960         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12961         (LINK_SPEC): Do not need to undef.
12962         (DONT_USE_BUILTIN_SETJMP): Do not define.
12963         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12964         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
12965         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12966         Remove trailing spaces.
12967         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12968         __ELF__, or set Acpu or Amachine.  Reformat.
12969         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12970         define.
12972 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12974         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12975         all other *-*-freebsd* targets.
12977 2002-04-11  Richard Henderson  <rth@redhat.com>
12979         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12981 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
12983         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12984         Include {cpu}/{cpu}.h thru tm_file.
12985         (alpha*-*-linux*ecoff): Remove target.
12986         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12987         (LINK_SPEC): Remove, is not OS independent.
12988         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12989         (LINK_SPEC): Do not need to #undef any longer.
12990         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12991         any longer.
12992         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12993         __ELF__.
12994         (LINK_SPEC): Moved here from alpha/elf.h.
12995         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12996         SUB_CPP_PREDEFINES.
12997         * config/alpha/linux-ecoff.h: Remove.
12998         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12999         (CPP_SPEC): Define _POSIX_SOURCE as needed.
13000         (CPP_SUBTARGET_SPEC): Do not define.
13001         (LINK_SPEC): Do not need to #undef any longer.
13002         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13003         * config/alpha/vms.h: Likewise.
13005 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
13007         * doc/extend.texi: Remove old claim that typedefs cannot have
13008         an alignment attribute.
13010 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
13012         PR optimization/6177
13013         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13014         bitpos is 0 and bitsize CONCAT size.
13016 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
13018         PR c/6223
13019         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13021 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
13023         * config/alpha/freebsd.h: Minor reformatting.
13024         (CPP_SPEC): Define ELF and add cpp_subtarget.
13025         (ASM_SPEC): No longer needed.
13027 2002-04-11  Richard Henderson  <rth@redhat.com>
13029         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13030         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
13031         (dimode mem/zero splitter): New.
13033 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
13035         * config/cris/cris.c (cris_override_options): Tweak error message
13036         for PIC not implemented.
13038         * config/cris/cris.h: Tweak comments related to parameter-passing.
13040         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13042 2002-04-10  Richard Henderson  <rth@redhat.com>
13044         * except.c (add_ehl_entry): Allow duplicates after landing pad
13045         creation.
13047 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
13049         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13051 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
13053         * c-decl.c (c_init_decl_processing): Move generation of
13054         decls for g77_integer_type_node and friends from here ...
13055         * c-common.c (c_common_nodes_and_builtins): ... to here.
13057 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
13059         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13060         is only used as frame pointer when frame_pointer_needed is true.
13062 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
13064         PR target/817
13065         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13066         for the fact that the pool entry uses two words.
13067         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
13068         1k bytes.
13069         (movdf_soft_insn): Similarly.
13070         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13071         for the fact that the pool entry uses three words.
13073 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
13075         * config/mips/mips.c (mips_va_arg): When using the struct version
13076         of the EABI va_list, allow arguments in the register save area to
13077         take up less room than a stack argument.
13079 2002-04-10  Richard Henderson  <rth@redhat.com>
13081         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13082         if EXPAND_INITIALIZER.
13084 2002-04-09  Richard Henderson  <rth@redhat.com>
13086         * config/alpha/alpha.md (movdi_er_maybe_g): New.
13087         * config/alpha/alpha.c (alpha_expand_mov): Use it.
13089 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
13091         PR optimization/6233
13092         * rtlanal.c (pure_call_p): New function.
13093         * rtl.h (pure_call_p): Declare.
13094         * loop.c (prescan_loop): Use it to set has_nonconst_call.
13095         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13097 2002-04-09  Eric Christopher  <echristo@redhat.com>
13099         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13100         information to .comm directive.
13102 2002-04-09  Richard Henderson  <rth@redhat.com>
13104         PR c/5078
13105         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13107 2002-04-09  Richard Henderson  <rth@redhat.com>
13109         * basic-block.h (flow_delete_block_noexpunge): Declare.
13110         (expunge_block_nocompact): Declare.
13111         * cfg.c (expunge_block_nocompact): Split out from ...
13112         (expunge_block): ... here.
13113         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13114         (flow_delete_block_noexpunge): Split out from ...
13115         (flow_delete_block): ... here.
13116         * cfgcleanup.c (delete_unreachable_blocks): Compact while
13117         removing dead blocks.
13118         * except.c (exception_handler_labels): Remove.
13119         (exception_handler_label_map): New.
13120         (struct eh_region): Add aka member.
13121         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13122         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13123         (for_each_eh_label, for_each_eh_label_1): New.
13124         (init_eh): Register exception_handler_label_map.
13125         (free_eh_status): Use free_region.
13126         (find_exception_handler_labels): Use the map, not the list.
13127         (remove_exception_handler_label): Likewise.
13128         (maybe_remove_eh_handler): Likewise.
13129         (remove_eh_handler): Use the region aka bitmap.
13130         * except.h (exception_handler_labels): Remove.
13131         (for_each_eh_label): Declare.
13132         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13133         * loop.c (invalidate_loops_containing_label): New.
13134         (find_and_verify_loops): Use it.  Use for_each_eh_label.
13135         * sched-rgn.c (is_cfg_nonregular): Use
13136         current_function_has_exception_handlers.
13138 2002-04-09  Richard Henderson  <rth@redhat.com>
13140         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
13141         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
13142         Do not return changed status.
13143         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
13144         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
13145         New functions that do return changed status.
13146         * sbitmap.h: Update decls.
13147         * gcse.c, lcm.c: Use _cg functions as needed.
13149 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13151         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
13152         (sh64-*-elf*, sh-*-rtemself*): Likewise.
13153         * config/sh/embed_bb.c: New file.
13154         * config/sh/embed-elf.h: New file.
13155         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
13156         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
13157         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13158         __PTRDIFF_TYPE__ .
13159         (SUBTARGET_CPP_PTR_SPEC): Don't define.
13160         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
13161         Add subtarget_asm_endian_spec.
13162         (ASM_SPEC): Use subtarget_asm_endian_spec.
13163         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
13164         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
13165         (WCHAR_UNSIGNED): Define.
13166         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
13167         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13168         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
13169         Fix value.
13170         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
13171         (sh_adjust_cost): Likewise.
13172         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
13173         __PTRDIFF_TYPE__ .
13174         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
13175         (WCHAR_TYPE_SIZE): Likewise.
13176         (ASM_SPEC): Use subtarget_asm_endian_spec.
13177         (SH_ELF_WCHAR_TYPE): #undef/ #define.
13178         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
13179         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
13180         (MAX_WCHAR_TYPE_SIZE): Don't #define .
13181         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
13182         (USER_LABEL_PREFIX): Don't #undef /#define .
13183         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
13184         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
13185         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
13186         (ASM_SPEC): Likewise.
13187         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
13188         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
13189         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
13190         (LIB2FUNCS_EXTRA): Define.
13191         * t-sh64 (LIB2FUNCS_EXTRA): Define.
13192         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
13193         (LIB1ASMFUNCS_CACHE): Define.
13194         (LIB2FUNCS_EXTRA): Redefine empty.
13196 2002-04-08  Richard Henderson  <rth@redhat.com>
13198         * reorg.c (get_branch_condition): Use reversed_comparison_code.
13200 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13202         * config/m68hc11/larith.asm (__map_data_section): Fix condition
13203         and optimize for size.
13204         (__do_global_ctors): Fix pointer comparison.
13205         (__do_global_dtors): Likewise.
13207 2002-04-09  David S. Miller  <davem@redhat.com>
13209         * config/sparc/sparc.c (sparc_extra_constraint_check): New
13210         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
13211         allow reloading pseudos.
13212         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
13213         * config/sparc/sparc-protos.h: Declare it.
13215         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
13216         unsigned comparison warning.
13217         (output_restore_regs): Mark leaf_function as unused.
13219 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13221         * expr.c (is_aligning_offset): New function.
13222         (expand_expr, case COMPONENT_EXPR): Call it.
13224 2002-04-08  David S. Miller  <davem@redhat.com>
13226         PR target/6082
13227         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
13229         Make init_priority work on Sparc when using GNU ld.
13230         * config/sparc/linux.h, config/sparc/linux64.h,
13231         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
13232         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
13233         * config/sparc/sol2-gld.h: New file to do the same.
13234         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
13235         sparc/sol2-gld.h to tm_file.
13237         PR optimization/4328
13238         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
13239         * doc/md.texi: Document it.
13240         * config/sparc/sparc.md (movdi_insn_sp64_novis,
13241         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
13242         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
13243         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
13244         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
13246 2002-04-08  Andreas Jaeger  <aj@suse.de>
13248         * stmt.c (expand_asm_operands): Revert last patch from Richard
13249         Henderson.
13251 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13253         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
13254         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
13256 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13258         * doc/contrib.texi (Contributors): Add David O'Brien.
13260 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
13262         * configure.in (auto-build.h): Use target_alias and build_alias
13263         when running configure.
13264         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
13265         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
13266         * configure: Regenerate.
13268 2002-04-07  David S. Miller  <davem@redhat.com>
13270         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
13272 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13274         PR 5933
13275         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
13276         generating 32-bit pic code.
13278 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
13280         * cppinit.c (cpp_create_reader): Initialize
13281         discard_comments_in_macro_exp.
13282         (COMMAND_LINE_OPTIONS): Add "-CC" option.
13283         (cpp_handle_option): Handle "-CC" option.
13284         * cpplex.c (save_comment): If saving a C++ comment in
13285         a directive, convert it to a C comment.
13286         (_cpp_lex_direct): Pass second comment start character to
13287         save_comment to indicate comment type.
13288         * cpplib.c (_cpp_handle_directive): If processing
13289         a "#define" directive and discard_comments_in_macro_exp
13290         is false,  re-enable saving of comments.
13291         (lex_macro_node): If discard_comments_in_macro_exp is false,
13292         discard any comments before the macro identifier.
13293         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
13294         member.
13295         * cppmacro.c (cpp_get_token): If expanding a macro while
13296         processing a directive, discard any comments we might encounter.
13297         (parse_params): If discard_comments_in_macro_exp is false,
13298         ignore comments in the macro parameter list.
13299         * gcc.c (cpp_unique_options): Add "-CC" option.
13300         (option_map): Map "--comments-in-macros" to "-CC".
13301         * doc/cppopts.texi: Document "-CC" option.
13302         * f/lang-specs.h: Add "-CC" option.
13303         * testsuite/gcc.dg/cpp/maccom1.c: New test.
13304         * testsuite/gcc.dg/cpp/maccom2.c: New test.
13305         * testsuite/gcc.dg/cpp/maccom3.c: New test.
13306         * testsuite/gcc.dg/cpp/maccom4.c: New test.
13307         * testsuite/gcc.dg/cpp/maccom5.c: New test.
13308         * testsuite/gcc.dg/cpp/maccom6.c: New test.
13310 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13312         PR middle-end/6180
13313         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
13315 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
13317         PR c++/5571
13318         * stor-layout.c (layout_decl): Reset the RTL for the decl.
13320         PR opt/5120
13321         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
13322         RTX_UNCHANGING_P for the functions arguments when a tail call
13323         is made.
13325 2002-04-06  Jason Merrill  <jason@redhat.com>
13327         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
13328         (parse_options_and_default_flags): Set them appropriately.
13329         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
13331 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
13333         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
13334         here.
13336         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
13337         semicolon.
13339         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
13340         types come in by-reference.  Fix typo in comment.
13342 2002-04-05  David S. Miller  <davem@redhat.com>
13344         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
13345         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
13346         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
13347         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
13349 2002-04-05  David S. Miller  <davem@redhat.com>
13351         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
13352         are not going to emit return instructions, emit at least a nop
13353         for the sake of sane backtraces.
13355 2002-04-05  Richard Henderson  <rth@redhat.com>
13357         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
13359 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
13361         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
13363 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
13365         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
13366         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13367         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13369 2002-04-05  Andreas Schwab  <schwab@suse.de>
13371         * c-convert.c: Include c-common.h.
13372         * Makefile.in (c-convert.o): Updated.
13374 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13376         * mklibgcc.in: Use separate libgcc.map for each multilib.
13377         * Makefile.in (distclean): Don't remove libgcc.map here.
13379 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
13381         * Makefile.in (s-mlib): Handle --disable-multilib by separate
13382         genmultilib invocation.
13384 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
13386         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13387         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
13388         to num_gprs for symmetry.
13389         * config/mips/mips.c: Adjust accordingly.
13391 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13393         * c-common.c (truthvalue_conversion): Rename, update.
13394         * c-common.h (c_common_truthvalue_conversion): New.
13395         * c-convert.c (convert): Update.
13396         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13397         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13398         * c-typeck.c (build_binary_op, build_unary_op,
13399         build_conditional_expr): Update.
13400         * fold-const.c (constant_boolean_node, fold): Use langhook.
13401         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13402         * langhooks.h (struct lang_hooks): New hook.
13403         * stmt.c (expand_decl_cleanup): Use langhook.
13404         * tree.h (truthvalue_conversion): Remove.
13405 objc:
13406         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13408 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
13410         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13411         Add rules to make null object file.
13413 2002-04-04  Jim Blandy  <jimb@redhat.com>
13415         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13416         macro formal parameter names.
13418 2002-04-04  David S. Miller  <davem@redhat.com>
13420         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13422 2002-04-04  Richard Henderson  <rth@redhat.com>
13424         PR middle-end/5099
13425         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13426         Support copies into and out of memory.  Don't accept allows_reg
13427         and allows_mem as gospel.
13429 2002-04-04  Richard Henderson  <rth@redhat.com>
13431         PR opt/6165
13432         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13433         (write_dependence_p): Likewise.
13435 2002-04-04  Richard Henderson  <rth@redhat.com>
13437         * predict.c (estimate_bb_frequencies): Do frequency calculation
13438         with a volatile temporary.
13440 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
13442         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13444 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13446         PR c++/6119
13447         * final.c (final_start_function): Don't bump profile_label_no here...
13448         (final_end_function): ...but here.
13450 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13452         * config/sparc/sparc.md (pic): New attribute.
13453         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13454         into stack slots.
13455         (split after do_builtin_setjmp_setup): New.
13457 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13459         PR fortran/6106
13460         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13461         change.
13463 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
13465         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13466         UNITS_PER_WORD for zero sized aggregates.
13468 2002-04-03  David S. Miller  <davem@redhat.com>
13470         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13471         one-character spec for this, just use %(link_gcc_c_sequence).
13473 2002-04-03  David S. Miller  <davem@redhat.com>
13475         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13476         handling.
13478 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13480         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13481         (DWARF_FRAME_RETURN_COLUMN): Move.
13482         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13483         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13484         * pa.c (except.h, predict.h): Include.
13485         (FRP): Delete.
13486         (store_reg_modify, set_reg_plus_d): Revise prototypes.
13487         (output_ascii): Add cast.
13488         (store_reg_modify): Revise to add frame notes.
13489         (set_reg_plus_d): Likewise.
13490         (compute_frame_size): Include space for eh data registers in frame if
13491         the current function calls eh_return.
13492         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
13493         function calls eh_return.  Save eh data registers if the current
13494         function calls eh_return.  Fix code to add frame notes.  Emit
13495         blockage to prevent insns with frame notes being scheduled in the
13496         delay slot of calls.
13497         (hppa_expand_epilogue): Restore eh data registers and do final stack
13498         adjustment if the current function calls eh_return.  Don't add frame
13499         notes.
13500         (output_call): Revise for change in length of call insn.  Don't do
13501         return pointer adjustment for an unconditional jump in the delay slot
13502         of a call when using frame notes.
13503         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13504         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13505         (ARG_POINTER_CFA_OFFSET): Define.
13506         * pa.md (return_external_pic): New pattern.
13507         (prologue): Correct formatting.  Use return_external_pic if current
13508         function calls eh_return.
13509         (call_internal_symref, call_value_internal_symref,
13510         sibcall_internal_symref, sibcall_value_internal_symref): Change default
13511         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13512         respectively.
13513         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13515         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13516         list of targets to check using "nop" insn.
13517         * configure: Rebuilt.
13519 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
13521         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13523 2002-04-03  David S. Miller  <davem@redhat.com>
13525         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13526         library sequence passed to the linker.
13527         (LINK_COMMAND_SPEC): Use it.
13528         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13529         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13530         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13532 2002-04-03  Jason Merrill  <jason@redhat.com>
13534         * except.c (struct eh_status): Remove protect_list.
13535         (begin_protect_partials, end_protect_partials): Remove.
13536         (add_partial_entry): Remove.
13537         * except.h: Remove prototypes.
13539         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13540         expand_decl_cleanup_eh.
13542         PR c++/5636
13543         * tree.h (CLEANUP_EH_ONLY): New macro.
13544         * stmt.c (expand_decl_cleanup_eh): New fn.
13545         (expand_cleanups): Check CLEANUP_EH_ONLY.
13546         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13547         Use expand_decl_cleanup_eh.
13548         (expand_stmt): Adjust.
13549         * c-common.h: Adjust prototype.
13551 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
13553         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13554         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13555         (cris_target_asm_function_epilogue): Ditto.
13556         (cris_initial_frame_pointer_offset): Ditto.
13557         (cris_simple_epilogue): Ditto.
13558         (cris_expand_builtin_va_arg): Variable-size types come in
13559         by-reference.
13561 2002-04-03  David S. Miller  <davem@redhat.com>
13563         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13564         little-endian.
13565         (set_fast_math): Correct 'fsr' type.
13567 2002-04-03  Richard Henderson  <rth@redhat.com>
13569         PR opt/3569
13570         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13571         * toplev.c (check_global_declarations): Use it.
13572         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13573         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13574         (LANG_HOOKS_DECLS): Add it.
13575         * langhooks.c (lhd_warn_unused_global_decl): New.
13576         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13577         * c-objc-common.c (c_warn_unused_global_decl): New.
13578         * c-tree.h (c_warn_unused_global_decl): Declare.
13579         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13581 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13583         * langhooks-def.h (lhd_set_decl_assembler_name,
13584         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13585         (LANG_HOOKS_INITIALIZER): Update.
13586         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13587         * langhooks.h (struct lang_hooks): New hook.
13588         * tree.c (set_decl_assembler_name): Move to langhooks.c.
13589         (lang_set_decl_assembler_name): Remove.
13590         (init_obstacks): Don't set hook.
13591         (decl_assembler_name): New function.
13592         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13593         (decl_assembler_name): New.
13594         (lang_set_decl_assembler_name): Remove.
13596 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13598         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13599         works properly with .hidden symbols.
13600         * configure: Rebuilt.
13601         * config.in: Rebuilt.
13602         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13603         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13604         properly with .hidden symbols.
13606 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
13608         PR middle-end/6102
13609         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13610         USE argument.
13612 2002-04-03  Richard Henderson  <rth@redhat.com>
13614         PR opt/4120
13615         * sched-rgn.c (sets_likely_spilled): New.
13616         (sets_likely_spilled_1): New.
13617         (add_branch_dependences): Use it.
13619 2002-04-02  Richard Henderson  <rth@redhat.com>
13621         PR opt/4311
13622         * loop.h (LOOP_FIRST_PASS): New.
13623         * loop.c (strength_reduce): Mind it when deciding to unroll.
13624         * toplev.c (rest_of_compilation): Set it.
13626 2002-04-02  David S. Miller  <davem@redhat.com>
13628         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13629         mems_ok_for_ldd_peep when the order of the loads being examined
13630         is reversed.
13631         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13632         existing comment to increase comprehension of this situation.
13634 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
13636         * config/sh/sh.md: Don't use union real_extract.
13638 2002-04-02  Richard Henderson  <rth@redhat.com>
13640         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13642 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13644         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13645         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13646         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13647         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13648         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13649         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13650         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13651         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13652         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13653         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13654         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13655         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13656         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13657         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13658         Include as many configury headers via tm_file as possible.  This
13659         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13660         * config/openbsd-oldgas.h: New file.
13661         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13662         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13663         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13664         config/i386/i386-coff.h, config/i386/i386-interix.h,
13665         config/i386/iscdbx.h, config/i386/linux-aout.h,
13666         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13667         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13668         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13669         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13670         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13671         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13672         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13673         config/i386/vxi386.h: Do not directly include configury headers.
13674         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13675         Directly include configury headers that are no longer automatically
13676         included by the above headers.
13677         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13678         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13679         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13680         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13681         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13682         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13683         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13684         (TARGET_VERSION): Define.
13685         * config/i386/beos-elf.h, config/i386/freebsd.h,
13686         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13687         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13688         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13689         config/i386/sco5.h, config/i386/sysv4.h
13690         (TARGET_VERSION): Do not need to protect.
13691         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13692         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13693         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13694         config/i386/i386-interix.h, config/i386/linux-aout.h,
13695         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13696         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13697         (YES_UNDERSCORES): Do not define - not needed.
13698         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13699         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13700         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13701         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13702         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13703         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13704         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13705         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13707 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
13708             Richard Henderson  <rth@redhat.com>
13710         PR c/5484
13711         * function.c (assign_temp): Accept either type or decl argument.
13712         Detect variables whose size is too large to fit into an integer.
13713         * stmt.c (expand_decl): Pass the decl, not the type.
13715 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
13717         * protoize.c: Match include directory usage with cppdefault.c.
13719 2002-04-03  Jeffrey A Law  (law@redhat.com)
13720             Hans-Peter Nilsson  <hp@bitrange.com>
13722         * combine.c (simplify_comparison): Avoid narrowing a comparison
13723         with a paradoxical subreg when doing so would drop signficant bits.
13725 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
13727         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13728         if POINTERS_EXTEND_UNSIGNED is defined.
13730 2002-04-02  Richard Henderson  <rth@redhat.com>
13732         PR opt/3967
13733         * local-alloc.c (contains_replace_regs): LO_SUM may contain
13734         replace regs.
13736 2002-04-02  Richard Henderson  <rth@redhat.com>
13738         * doc/standards.texi: Document required freestanding libc entry points.
13740 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
13742         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13743         associated splitter.  Remove MQ constraint.
13744         (ctrdi_internal4): Correct CCmode clobber.
13746 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13748         * milli64.S ($$dyncall): New function.
13749         * t-linux (LIB1ASMFUNCS): Revise module list.
13750         (LIB1ASMSRC): Use pa/milli64.S.
13752 2002-04-02  Richard Henderson  <rth@redhat.com>
13754         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13755         rename solaris_sys_varargs_h.
13757 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13759         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13760         the same mode as its component.
13762 2002-04-02  Richard Henderson  <rth@redhat.com>
13764         PR opt/190
13765         * final.c (this_is_asm_operands): Export.
13766         * output.h (this_is_asm_operands): Declare.
13767         * config/i386/i386.c (print_operand): Error odd asm operands.
13769 2002-04-02  Richard Henderson  <rth@redhat.com>
13771         PR opt/420
13772         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13774 2002-04-01  Richard Henderson  <rth@redhat.com>
13776         PR target/1538
13777         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13778         * fixinc/fixincl.x: Rebuild.
13780 2002-04-01  Richard Henderson  <rth@redhat.com>
13782         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13783         (atomic_alloc, atomic_free): New.
13784         (SIZE, MASK_FOR, PTR_IN): New.
13785         (emergency_reg_state, emergency_reg_state_free): New.
13786         (emergency_labeled_state, emergency_labeled_state_free): New.
13787         (reg_state_alloced, labeled_state_alloced): New.
13788         (alloc_reg_state, free_reg_state): New.
13789         (alloc_label_state, free_label_state, free_label_states): New.
13790         (push, pop, dup_state_stack, free_state_stack): Use them.
13791         (desc_label_state): Likewise.
13792         (uw_frame_state_for): Free label states and state stack.
13793         (uw_update_reg_address): Eliminate warnings.
13795 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
13797         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13798         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13800 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13802         * c-decl.c (grokdeclarator): Update.
13803         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13804         * c-tree.h (c_mark_addressable): New.
13805         * c-typeck.c (default_function_array_conversion, build_unary_op,
13806         build_array_ref, convert_for_assignment): Update.
13807         (mark_addressable): Rename.
13808         * calls.c (try_to_integrate, expand_call): Use langhook.
13809         * expr.c (expand_expr): Use langhook.
13810         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13811         * langhooks.h (struct lang_hooks): New hook.
13812         * stmt.c (expand_asm_operands): Use langhook.
13813         * tree.h (mark_addressable): Remove.
13814 objc:
13815         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13817 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13819         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13820         in previous change.
13822 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
13824         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13825         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13827 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13829         * c-common.c (unsigned_conversion_warning, convert_and_check,
13830         unsigned_type, signed_type, shorten_compare,
13831         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13832         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13833         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13834         New.
13835         * c-decl.c (grokdeclarator): Update.
13836         * c-format.c (check_format_types): Update.
13837         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13838         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13839         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13840         * convert.c (convert_to_integer): Use new hooks.
13841         * expmed.c (make_tree): Use new hooks.
13842         * expr.c (store_expr): Use new hooks.
13843         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13844         all_ones_mask_p, unextend, fold): Use new hooks.
13845         * langhooks.h (struct lang_hooks_for_types): New hooks.
13846         * tree.h (signed_or_unsigned_type, signed_type,
13847         unsigned_type): Remove.
13848 objc:
13849         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13850         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13852 2002-03-31  Richard Henderson  <rth@redhat.com>
13854         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13855         (desc_frgr_mem): Fix reference to f16-f31.
13857 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13859         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13860         RTVEC_ELT): Const-ify.
13861         * varray.h (VARRAY_CHECK): Const-ify.
13862         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13863         ggc_mark_rtvec, ggc_mark): Const-ify.
13865 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
13867         * diagnostic.c: Include langhooks-def.h.
13868         * Makefile.in (diagnostic.o): Update.
13870 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13872         * c-common.c (c_unsafe_for_reeval): Rename.
13873         * c-common.h (c_unsafe_for_reeval): Rename.
13874         * c-decl.c (finish_incomplete_decl): Rename.
13875         (c_init_decl_processing): Don't set langhook.
13876         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13877         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13878         * c-objc-common.c (c_objc_common_init): Don't set langhook.
13879         * c-tree.h (finish_incomplete_decl): Rename.
13880         * langhooks-def.h (lhd_unsafe_for_reeval): New.
13881         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13882         (LANG_HOOKS_INITIALIZER): Update.
13883         * langhooks.c (lhd_unsafe_For_reeval): New.
13884         * langhooks.h (struct langhooks): New hooks.
13885         * toplev.c (incomplete_decl_finalize_hook): Remove.
13886         (wrapup_global_declarations): Update.
13887         * tree.c (lang_unsafe_for_reeval): Remove.
13888         (unsafe_for_reeval): Update.
13889         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13890         Remove.
13891 objc:
13892         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13893         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13895 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
13897         * diagnostic.c (print_error_function): Remove.
13898         (default_print_error_function): Rename.
13899         (report_error_function): Update.
13900         * diagnostic.h (print_error_function): Remove.
13901         (default_print_error_function): Remove.
13902         * langhooks-def.h (struct diagnostic_context): Predeclare.
13903         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13904         (LANG_HOOKS_INITIALIZER): Update.
13905         * langhooks.h (struct diagnostic context): Predeclare.
13906         (struct lang_hooks): New hook.
13908 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13910         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13911         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13912         !flag_pic.
13913         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13914         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13915         of PIC_OFFSET_TABLE_REGNUM thruout.
13916         * config/rs6000/rs6000.md: Likewise.
13917         * config/rs6000/darwin.h: Likewise.
13919 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13921         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13922         unsigned HOST_WIDE_INT, not unsigned int.
13924 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13926         PR middle-end/6096, middle-end/6098, middle-end/6099
13927         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13928         CODE_LABELs.
13929         (fill_slots_from_thread): Likewise.
13931 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13933         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13934         floating fields in float regs.
13935         (function_arg_record_value_2): Likewise.
13937 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13939         * config/mmix/mmix.md (define_constants): Remove misleading
13940         FIXME.  Add MMIX_fp_rO_OFFSET.
13941         ("nonlocal_goto_receiver"): Don't have stack-frame address of
13942         saved rO as part of the pattern.  Remove FIXME.
13943         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
13944         here, at output-time.
13946 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
13948         PR middle-end/6100
13949         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13950         REG_BR_PRED.
13951         (output_v9branch): Likewise.
13953 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13955         * gcc.c: Revert previous patch for now.
13956         * config/i386/djgpp.h: Likewise.
13958 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
13960         * config/mmix/crti.asm (_init): Register _fini with atexit.
13961         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13963 2002-03-31  Richard Henderson  <rth@redhat.com>
13965         PR target/3997
13966         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13967         (ASM_OUTPUT_DEF_FROM_DECLS): New.
13969 2002-03-31  Richard Henderson  <rth@redhat.com>
13971         * libgcc2.c (__bb_exit_func): Make static.
13973         * config/alpha/alpha.md (trap): New.
13975 2002-03-31  Richard Henderson  <rth@redhat.com>
13977         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13978         promoted argument types; build trap.
13979         (expand_builtin_trap): New.
13980         (expand_builtin): Use it.
13981         * stmt.c (expand_nl_goto_receivers): Likewise.
13982         * expr.h (expand_builtin_trap): Declare.
13983         * libfuncs.h (LTI_abort, abort_libfunc): New.
13984         * optabs.c (init_optabs): Init abort_libfunc.
13986 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
13988         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13989         (LINK_COMMAND_SPEC): ... from here.
13990         (init_gcc_specs): Duplicate it here too, omitting
13991         shared_name in the second copy.
13992         (init_spec): Test for duplicate
13993         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13995 2002-03-30  David S. Miller  <davem@redhat.com>
13997         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13998         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14000 2002-03-30  Roger Sayle <roger@eyesopen.com>
14001             Richard Henderson  <rth@redhat.com>
14003         * regmove.c (combine_stack_adjustments_for_block): Avoid
14004         emitting a stack adjustment of zero bytes.  Let delete_insn
14005         update bb->head.
14007 2002-03-30  Richard Henderson  <rth@redhat.com>
14009         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14010         (sparc_emitting_epilogue): New.
14011         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14012         * config/sparc/sparc-protos.h: Update.
14013         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14014         (TARGET_SWITCHES): Update.
14015         * config/sparc/sparc.md (return): Remove.
14016         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14017         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14018         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14019         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14020         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14021         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14022         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14023         Remove MASK_EPILOGUE.
14024         * doc/invoke.texi: Update.
14026 2002-03-30  Daniel Berlin  <dan@dberlin.org>
14028         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14029         CPP will start the file for us.
14031 2002-03-30  Richard Henderson  <rth@redhat.com>
14033         PR target/5446
14034         * config/ia64/ia64.c (group_barrier_needed_p): Special case
14035         prologue_allocate_stack.
14036         (ia64_single_set): Use insn codes for recognition of special
14037         cases, not rtl matching.
14038         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14040 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
14042         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14044 2002-03-30  Richard Henderson  <rth@redhat.com>
14046         PR target/6032
14047         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14048         or -fomit-frame-pointer with profiling.
14049         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14050         (FUNCTION_PROFILER): Do nothing.
14051         (PROFILE_HOOK): New.
14052         * config/sparc/sparc.c (sparc_override_options): Don't check
14053         code models for profiling.
14054         (sparc_function_profiler): Remove.
14055         (sparc_profile_hook): New.
14056         * config/sparc/sparc-protos.h: Update.
14058 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
14060         PR optimization/6086
14061         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14062         of SUBREG of volatile MEM or because the MEM was mode dependent,
14063         return CLOBBER instead of unmodified SUBREG.
14065 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
14067         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14068         when not optimizing.
14070         * toplev.c (rest_of_compilation): Cann mark_constant_function
14071         only when optimizing.
14073         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14074         are NULL.
14076         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14077         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14078         (try_optimize_cfg): clear all AUX fields.
14080         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14081         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14082         (ix86_address_cost): Be prepared for SUBREGed registers.
14083         (legitimate_address_p): Accept SUBREGed registers.
14085 2002-03-29  Richard Henderson  <rth@redhat.com>
14087         PR target/5672
14088         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14090 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14092         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14093         for aggregate and TFmode types.
14095 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
14097         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14099 2002-03-29  Richard Henderson  <rth@redhat.com>
14101         PR target/5886
14102         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14103         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14105 2002-03-29  Richard Henderson  <rth@redhat.com>
14107         PR target/6041
14108         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14109         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14110         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14111         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14112         conditional.
14113         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14115 2002-03-29  Dale Johannesen <dalej@apple.com>
14117         * loop.c (combine_movables): Do allow combination of pseudos.
14119 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
14121         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14122         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14123         No functional change except ...
14124         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
14125         * doc/install.texi (*-*-freebsd*): Document port configuration.
14127 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14129         * Makefile.in (convert.o, calls.o, expmed.o): Update.
14130         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14131         Use new hooks.
14132         * builtin-types.def (BT_PTRMODE): Update.
14133         * c-common.c (type_for_size): Rename c_common_type_for_size.
14134         (type_for_mode): Similarly.
14135         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14136         Use new hook.
14137         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14138         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14139         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
14140         Redefine.
14141         * c-typeck.c (common_type, comptypes, default_conversion):
14142         Use new hooks.
14143         * calls.c: Include langhooks.h.
14144         (emit_library_call_value_1): Use new hooks.  Avoid redundant
14145         calls.
14146         * convert.c: Include langhooks.h
14147         (convert_to_pointer, convert_to_integer): Use new hooks.
14148         * except.c (init_eh): Similarly.
14149         * expmed.c: Include langhooks.h.
14150         (expand_mult_add): Use new hooks.
14151         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
14152         try_casesi): Similarly.
14153         * fold-const.c (optimize_bit_field_compare, make_range,
14154         decode_field_reference, fold_truthop, fold): Similarly.
14155         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
14156         put_var_into_stack): Similarly.
14157         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
14158         LANG_HOOKS_TYPE_FOR_SIZE): New.
14159         (LANG_HOOKS_TYPES_INITIALIZER): Update.
14160         * langhooks.h (lang_hooks_for_types): New hooks.
14161         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
14162         * tree.c (get_unwidened, get_narrower): Similarly.
14163         * tree.h (type_for_mode, type_for_size): Remove.
14164         * varasm.c (force_const_mem): Use new hooks.
14165         * utils2.c (nonbinary_modular_operation): Update.
14166 objc:
14167         * objc-act.c (handle_impent): Update.
14168         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
14169         Redefine.
14171 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
14173         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
14174         * config/ia64/ia64.c (basereg_operand): New.
14175         * config/ia64/ia64-protos.h (basereg_operand): Declare.
14176         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
14178 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
14180         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
14181         unwind information when frame_pointer_needed.
14182         (mmix_assemble_integer): Tweak wording in comment.
14184 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14186         * Makefile.in (except.o): Update.
14187         * except.c: Include langhooks.h.
14188         (init_eh): Use langhook.
14189         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
14190         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
14191         (LANG_HOOKS_INITIALIZER): Update.
14192         * langhooks.h (lang_hooks_for_types): New.
14193         (struct lang_hooks): Add it.
14194         * tree.c (make_lang_type_fn, make_lang_type): Remove.
14195         * tree.h (make_lang_type_fn, make_lang_type): Remove.
14196 config:
14197         * alpha/alpha.c: Include langhooks.h.
14198         (alpha_build_va_list): Use langhook.
14199         * d30v/d30v.c: Include langhooks.h.
14200         (d30v_build_va_list): Use langhook.
14201         * i386/i386.c: Include langhooks.h.
14202         (ix86_build_va_list): Use langhook.
14203         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
14204         * s390/s390.c: Include langhooks.h.
14205         (s390_build_va_list): Use langhook.
14206         * stormy16/stormy16.c: Include langhooks.h.
14207         (stormy16_build_va_list): Use langhook.
14209 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
14211         PR c++/5964
14212         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
14213         attributes.
14214         (length): Compute variable length for branches/calls/jumps here.
14215         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
14216         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
14217         define branch_type attribute.
14218         (divsi3_sp32): Maximum length is 6 not 7.
14219         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
14220         call_address_untyped_struct_value_sp32,
14221         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
14222         * config/sparc/sparc.c (empty_delay_slot): New function.
14223         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
14224         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
14226 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
14228         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
14229         nonzero_bits if not needed.
14230         (nonzero_bits) [XOR]: Likewise.
14231         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
14232         reg_last_set_mode and mode are both MODE_INT, but not equal.
14233         (record_value_for_reg): Compute reg_last_set_nonzero_bits
14234         in nonzero_bits_mode for MODE_INT modes.
14236 2002-03-28  Richard Henderson  <rth@redhat.com>
14238         PR target/5715
14239         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
14240         to GAS.  Correct drift between alternatives.
14242 2002-03-28  Richard Henderson  <rth@redhat.com>
14244         PR target/6087
14245         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
14247 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
14249         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
14250         emulation to the linker.
14252 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
14254         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
14255         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
14257 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
14259         * combine.c (simplify_and_const_int): Make sure to apply mask
14260         when force_to_mode returns a constant integer.  PR3311.
14262 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14264         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
14266 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14268         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
14269         and Objective-C Dialect Options.
14271 2002-03-28  Richard Henderson  <rth@redhat.com>
14273         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
14274         comparison should be done vs !=0 not >0 return code.  Tidy cases.
14276 2002-03-28  Richard Henderson  <rth@redhat.com>
14278         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
14279         on to c_expand_body.
14280         * c-tree.h (finish_function): Update decl.
14281         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
14283 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14285         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
14287 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
14289         * rtlanal.c: Include flags.h
14290         (may_trap_p): Do not mark FP operations if trapping
14291         if !flag_trapping_math
14292         * Makefile.in (rtlanal.o): Add dependency on flag.h
14293         * ifcvt.c (noce_operand_ok): Avoid the lameness.
14295 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
14297         * mips.md: Use dconst1, not 1.0, as first argument of
14298         REAL_VALUE_LDEXP.  Don't use union real_extract.
14300 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
14302         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
14303         rather than $target.  Heed program_prefix and
14304         program_transform_name.  Search for gas in cross-compiler case too.
14305         "test -x" rather than "test -f".
14306         (gcc_cv_ld): Likewise.
14307         (gcc_cv_nm): Heed program_prefix and program_transform_name.
14308         (gcc_cv_objdump): Likewise.
14309         * configure: Regenerate.
14311 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14313         * Makefile.in (attribs.o): Update.
14314         * attribs.c: Include langhooks.h.
14315         (decl_attributes): Use langhook.
14316         * c-decl.c (insert_default_attributes): Rename.
14317         * c-tree.h (c_insert_default_attributes): New.
14318         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
14319         (LANG_HOOKS_INITIALIZER): Update.
14320         * langhooks.h (struct lang_hooks): New hook.
14321         * tree.h (insert_default_attributes): Remove.
14322 objc:
14323         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
14325 2002-03-27  Andreas Schwab  <schwab@suse.de>
14327         * config/i386/i386.c (classify_argument): Also check for
14328         QUAL_UNION_TYPE.
14330 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14332         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
14333         any more.
14335 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14337         * i960.md (ret): Set PC.
14338         (nonlocal_goto): Fix expander.
14339         * builtins.c (epxand_builin_longjmp): Check that we've emitted
14340         some jump or call.
14342 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14344         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
14345         of libcall regions.
14347 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14349         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
14350         assigning to BLOCK_FOR_INSN directly.
14352 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14354         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
14356 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14358         * c-common.c (c_expand_expr): Fix prototype.
14359         * c-common.h (c_expand_expr): Always declare, update.
14360         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14361         * c-objc-common.c (c_objc_common_init): No global hook.
14362         * expr.c (expand_expr): Use langhook.
14363         * expr.h (enum expand_modifier): Conditionally declare.
14364         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
14365         (LANG_HOOKS_INITIALIZER): Update.
14366         * langhooks.c (lhd_expand_expr): New.
14367         * langhooks.h (struct lang_hooks): New hook.
14368         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14369         (lang_independent_init): Don't default hook.
14370 objc:
14371         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14373 2002-03-27  Richard Henderson  <rth@redhat.com>
14375         PR target/6054
14376         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14377         TARGET_CONST_GP.  Simplify conditions.
14379 2002-03-27  Richard Henderson  <rth@redhat.com>
14381         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14382         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14383         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14385 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
14387         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14388         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14389         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14390         Remove unnecessary masks.
14391         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14392         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14393         -mwindows, -mdll switches and their negations.
14395 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14397         * gcc-common.c (lang_mark_false_label_stack): Remove.
14398         * ggc.h (lang_mark_false_label_stack): Similarly.
14400 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14402         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14404         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14405         or __rtems_ is defined.
14407 2002-03-26  Richard Henderson  <rth@redhat.com>
14409         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14410         if a non-trivial load was emitted.
14411         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
14412         in high+extra+low case.
14414 2002-03-26  Richard Henderson  <rth@redhat.com>
14416         * config.gcc (sparc*-solaris): Use float_format=sparc.
14418 2002-03-26  Richard Henderson  <rth@redhat.com>
14420         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14421         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14422         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14423         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14424         (WINT_TYPE_SIZE): Fix at 32.
14426 2002-03-26  Richard Henderson  <rth@redhat.com>
14428         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14429         until after eh landing pad generation.
14430         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14431         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14433 2002-03-26  Richard Henderson  <rth@redhat.com>
14435         * expr.h (ADD_PARM_SIZE): One more convert for INC.
14437 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
14439         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
14440         and warning switches.
14441         (cc1_options):  Likewise.
14443 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
14445         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14446         Restore more of the signal context.  Set no_reg_stack_frame.
14447         * config/ia64/unwind-ia64.c (unw_state_record):
14448         Add no_reg_stack_frame, comments.
14449         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14450         (uw_update_context): Adjust bsp when unwinding from leaf,
14451         but not signal frame.
14453 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
14455         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14457 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14459         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14461 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14463         PR target/5621
14464         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14465         "Add a pool_range attribute", which was lost during the ARM/Thumb
14466         merge.
14468 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
14470         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14471         a register into the MAC16 accumulator.
14473 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
14475         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14476         (Warning Options): Document -Wswitch-enum.
14477         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
14478         -Wswitch.
14479         (warn_switch_enum): Define variables.
14480         * flags.h (warn_switch_enum): Declare variables.
14481         * stmt.c (expand_end_case_type): When warn_switch_enum /
14482         -Wswitch-enum, perform switch checks.
14483         Fix PR c/5044.
14485 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
14487         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14488         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14489         (reload_muladdsi_compare0_scratch): Delete.
14491 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
14493         * doc/install.texi (*-*-freebsd*): Update.
14495 2002-03-26  Richard Henderson  <rth@redhat.com>
14497         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14498         (SUB_PARM_SIZE): Cast DEC to ssizetype.
14500         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14501         types from the normal argument frame.
14503         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14504         variable sized objects by reference.
14505         (sparc_va_arg): Receive them by reference too.
14507 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
14509         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14510         code to not restoring global registers.
14512 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14514         * Makefile.in (ggc-common.o): Update.
14515         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14516         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14517         * c-tree.h (c_mark_tree): New.
14518         * ggc-common.c: Include langhooks.h.
14519         (gcc_mark_trees): Use new langhook.
14520         * ggc-callbacks.c: Delete file.
14521         * ggc.h (lang_mark_tree): Remove.
14522         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14523         (LANG_HOOKS_INITIALIZER): Update.
14524         * langhooks.h (struct lang_hooks): New hook.
14525 objc:
14526         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14528 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14530         * doc/cpp.texi: Exclude entire Top node from printed manual.
14531         Move option index after directive index.  Insert page breaks
14532         before GFDL and concept index.  Index environment variables
14533         with command line options.
14534         * doc/cppenv.texi: Use @vtable for environment variable list.
14535         Add paragraph explaining semantics of empty elements in path
14536         variables.  Exclude a cross-reference to Fishkill from the
14537         manpage.  Remove an unnecessary cross-reference of the entry
14538         right above the referer.  Don't use @anchor in text that goes
14539         into manpage.
14540         * doc/cppopts.texi: Cross-reference the environment variables
14541         section, not the specific environment variable, for consistency.
14543 2002-03-25  Richard Henderson  <rth@redhat.com>
14545         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14546         anywhere in the block.  Don't refer to insns that have been
14547         removed from the chain.  Iterate backward through the new insns.
14548         Don't refer to edges that have been removed.
14550 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
14552         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14553         test for overflow of constant.
14555 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
14557         PR target/2623
14558         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14559         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14560         these patterns on arm_archv4.
14562 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
14564         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14565         int".
14567 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
14569         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
14570         float_handled, float_handler, float_signal, set_float_handler,
14571         and do_float_handler.  Set handler for SIGFPE to crash_signal.
14572         * toplev.h: Don't prototype do_float_handler.
14574         * c-lex.c: Fold parse_float into lex_number.  Make warning
14575         about portability of hex float constants more informative, and
14576         don't issue it on top of a syntax error.
14577         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14578         their callers.
14579         * real.h: Define REAL_VALUE_ABS here...
14580         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
14581         simplify_unary_real, simplify_binary_real, and
14582         simplify_binary_is2orm1 into their callers.
14583         * tree.c: Fold build_real_from_int_cst_1 into caller.
14585         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14587         * tsystem.h: Include float.h here...
14588         * libgcc2.c: ... not here.
14590 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
14592         Fixes for: PR bootstrap/3591, target/5676
14593         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14594         defined.  Do not disable exceptions or rtti.
14595         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14596         mcore.h.  Disable exceptions and rtti, since they are not
14597         supported by EPOC.
14599 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14601         * c-decl.c (maybe_build_cleanup): Remove.
14602         * expr.c (expand_expr): Use langhook.
14603         * langhooks-def.h (lhd_return_null_tree,
14604         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14605         (LANGHOOKS_INITIALIZER): Update.
14606         * langhooks.c (lhd_return_null_tree): New.
14607         * langhooks.h (struct lang_hooks): New hook.
14608         * tree-inline.c (initialize_inlined_parameters): Use langhook.
14609         * tree.h (maybe_build_cleanup): Remove.
14611 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14613         * regrename.c (build_def_use): Move recog_memoized
14614         before extract_insn.
14616 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14618         PR target/6043
14619         * expr.c (emit_group_store): Handle storing into CONCAT.
14621 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
14623         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14624         corresponding MATCH_DUP.
14626 2002-03-24  Richard Henderson  <rth@redhat.com>
14628         * unroll.c (unroll_loop): Zero label_map.
14630         * gcse.c: Include except.h.
14631         * Makefile.in (gcse.o): Update.
14633 2002-03-24  Richard Henderson  <rth@redhat.com>
14635         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14636         Do resolve_unique_section before shared data clause.
14638 2002-03-24  Richard Henderson  <rth@redhat.com>
14640         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14642 2002-03-24  Richard Henderson  <rth@redhat.com>
14644         * recog.c (peephole2_optimize): Split blocks when EH insns are
14645         generated in the middle of a block.  Do global life update if
14646         zapped EH edges.
14648 2002-03-24  Richard Henderson  <rth@redhat.com>
14650         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14652 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14654         preprocessor/3951
14655         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14656         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14657         (init_dependency_output): Don't make no_output decision here.
14659 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
14661         * stmt.c (check_for_full_enumeration_handling): Remove tests of
14662         warn_switch.  Update description.
14663         (expand_end_case_type): Call check_for_full_enumeration_handling
14664         when warn_switch.
14666 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14668         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14669         (m68hc11_split_move): Call it to see if the source and destination
14670         operands use the same direction auto inc/dec mode, otherwise make the
14671         source an offsetable memory operand and generate an add.
14673 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14675         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14676         register for operand 2.
14677         ("*subsi3_zero_extendqi"): Likewise.
14678         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14679         bits so that it is compatible with a pop.
14680         ("*andhi3_gen"): Likewise.
14681         ("xorhi3"): Likewise.
14683 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14685         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14686         -pedantic here...
14687         (cpp_post_options): ... not here.
14689 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14690             Aldy Hernandez  <aldyh@redhat.com>
14692         Removal of separate preprocessor cpp0.
14694         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14695         cpp0, install-common): Update.
14696         * c-common.c (flag_preprocess_only): New.
14697         (c_common_init): Preprocess for -E.
14698         * c-common.h (flag_preprocess_only): New.
14699         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14700         * c-objc-common.c (c_init_decl_processing): Exit quickly
14701         for NULL return from c_common_init.
14702         * cpplib.h (cpp_preprocess_file): New.
14703         * cppmain.c (main, general_init, pfile, progname): Remove.
14704         (do_preprocessing): Rename cpp_preprocess_file, don't call
14705         cpp_finish.  Don't close stdout here.
14706         (setup_callbacks): Update prototype.
14707         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14708         Update.
14709         * tradcpp.c (main): Ignore -quiet.
14710 objc:
14711         * lang-specs.h (default_compilers): Preprocess with cc1obj.
14713 2002-03-24  Richard Henderson  <rth@redhat.com>
14715         PR optimization/5742
14716         * machmode.def: Add inner mode field to complex modes.
14717         * config/mips/mips.c (mips_function_value): Always define.  Add
14718         new argument to handle libcalls.
14719         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14720         (FUNCTION_VALUE): Likewise.
14721         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14722         * config/mips/mips-protos.h: Update.
14724 2002-03-23  Richard Henderson  <rth@redhat.com>
14726         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14727         * config/sparc/sparc-protos.h: Update.
14728         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14730 2002-03-23  Richard Henderson  <rth@redhat.com>
14732         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14733         _start or _init begins the text segment.
14735 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
14737         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
14738         not HOST_WIDEST_INT.
14739         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14741 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
14743         PR java/5489
14744         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14745         operand argument to output_return_instruction.
14746         * arm.c (arm_print_operand, case 'd'): If the operand is
14747         const_true_rtx then just return.
14748         (arm_print_operand, case 'D'): If the operand is const_true_rtx
14749         then abort.
14751 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
14753         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14754         (Warning Options): Document -Wswitch-default.
14755         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
14756         -Wswitch.
14757         (warn_switch_default): Define variable.
14758         (warn_switch): Update comment.
14759         * flags.h (warn_switch_default): Declare variable.
14760         (warn_switch): Update comment.
14761         * stmt.c (expand_end_case): Check for and, when
14762         warn_switch_no_default, warn of a missing default case.
14764 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
14766         * real.h (N): Special case 128 bit doubles.
14768         * combine.c (simplify_comparison): When widening modes, ignore
14769         sign extension on CONST_INTs.
14771 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14773         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14774         passed to adjust_address.  Fix comment formatting.
14777 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
14779         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14780         Always make REAL_VALUE_TYPE a struct containing an array of
14781         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
14782         big it is.  Don't declare or use union real_extract.
14784         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14785         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14786         (print_operand), config/arm/arm.c (output_move_double),
14787         config/arm/arm.md (consttable_4, consttable_8),
14788         config/romp/romp.c (output_fpops), config/s390/s390.h
14789         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14790         (xtensa_output_literal): Don't use union real_extract.
14792         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14793         (sfmode_constant_to_ulong), config/ns32k/merlin.h
14794         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14795         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14796         (PRINT_OPERAND): Don't use local version of union
14797         real_extract.
14799         * config/convex/convex.c (check_float_value), config/vax/vax.c
14800         (vax_float_literal), config/m88k/m88k.md (divdf3),
14801         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14802         config/pdp11/pdp11.c (output_move_quad): Don't do host
14803         arithmetic on target floating point quantities.
14805         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14806         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14808         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14809         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14811         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14812         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14813         INFINITY.
14814         * print-rtl.c (print_rtx): Disable code which needs
14815         floating-point emulator.
14816         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14817         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14818         depending on HOST_FLOAT_FORMAT to be defined properly.
14820         * config/1750a/1750a.c (get_double, float_label): Delete.
14821         (print_operand): Delete huge commented-out chunk.  Use
14822         REAL_VALUE_TO_DECIMAL.
14823         * config/1750a/1750a-protos.h: Delete prototypes of deleted
14824         functions.
14825         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14826         IEEE_FLOAT_FORMAT.
14827         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14828         Use REAL_VALUE_TO_DECIMAL as ELF version does.
14829         * config/m88k/m88k.c (real_power_of_2_operand,
14830         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14831         real_extract out of the union; run the input through
14832         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14833         from that into the union.
14834         * config/pdp11/pdp11.c (output_move_double): Rearrange
14835         parentheses to make automatic indenter happy.
14837         * doc/tm.texi (Cross-compilation): Rename node to "Floating
14838         Point" and rewrite to describe current situation.  Also adjust
14839         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14840         match code.
14841         * doc/rtl.texi: Adjust cross reference.
14843 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
14845         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14846         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14847         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14848         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14849         prevent use of sp as a reload register.
14850         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14851         non_acc_reg_operand.
14852         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14853         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14854         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14855         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14857 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14859         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14860         * cpplex.c (unterminated): Delete.
14861         (parse_string): No string literal may extend over multiple
14862         lines.  Suppress the error when preprocessing assembly.
14863         * cppmain.c (scan_translation_unit): Strings are single-line.
14865         * doc/cpp.texi: Update to match.
14867 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14869         PR optimization/5854
14870         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14871         Shut up warnings.
14872         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14873         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14874         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14875         const0 if scratch register was not allocated.
14876         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14877         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14878         with GEN_INT (...).
14879         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14880         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14881         with GEN_INT (...) everywhere.  Remove constraints in define_split
14882         patterns.
14883         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14884         require scratch register for setting 0 into regs/non-pushable memory.
14886 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14888         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14889         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14891 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
14893         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
14894         * cppinit.c (cpp_create_reader):  On by default.
14895         (cpp_handle_option):  Handle -W[no-]endif-labels.
14896         (cpp_post_options):  Also enable if -pedantic.
14897         * cpplib.c (do_else):  Use it.
14898         (do_endif):  Likewise.
14899         * doc/cppopts.texi:  Document new option.
14900         * doc/invoke.texi:  Document new option.
14902 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
14904         * config/i386/i386.c, config/i386/i386.md: Change all occurences
14905         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14907 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
14909         * flow.c (calculate_global_regs_live): Clear aux fields of
14910         ENTRY and EXIT.
14912 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
14914         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14915         REG or MEM subregs, pass rtx * instead of rtx to it.
14916         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14917         rtx * instead of rtx to alter_subreg.
14918         * config/m32r/m32r.c (gen_split_move_double): Likewise.
14919         * config/pj/pj.c (pj_output_rval): Likewise.
14921 2002-03-22  Richard Henderson  <rth@redhat.com>
14923         PR target/3177
14924         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14925         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14926         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14927         (ia64_expand_prologue): Look at int_regs, not words, for number
14928         of incomming int regs.
14930 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
14932         * expr.c (expand_expr): A RESULT_DECL is part of a call.
14934 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
14936         * toplev.c (flag_loop_optimize, flag_crossjumping):
14937         New static variables.
14938         (rest_of_compilation): Conditionalize crossjumping and
14939         loop optimizer.
14940         (parse_options_and_default_flags): Default loop_optimize and
14941         crossjumping.
14942         (lang_independent_options): Add -fcrossjumping and -floop-optimize
14943         * invoke.texi (crossjumping, loop-optimize): Document.
14945 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14947         * real.c (eiisneg): Move outside #ifdef NANS.
14949 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14951         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14952         frequencies match; avoid match on different loop depths.
14953         (try_crossjump_to_bb): Kill tests that no longer brings time
14954         savings.
14955         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14956         updating code.
14957         (split_edge): Likewise.
14959         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14960         variable.
14962         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14963         * cfgrtl.c: Include insn-config.h
14964         (split_block) Dirtify block in presence of conditional execution
14966 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14968         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14969         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14970         (function_arg): Constify CUMULATIVE_ARGS.
14971         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14972         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14973         (UNITS_PER_DOUBLE): New macro.
14974         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
14975         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
14976         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
14977         fp_regs and stack_words.
14978         (EABI_FLOAT_VARARGS_P): New macro.
14979         * config/mips/mips.c (struct mips_arg_info): New.
14980         (mips_arg_info): New function.
14981         (function_arg_advance): Use it.  Add adjustment instructions here
14982         rather than in function_arg.
14983         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
14984         for VOIDmode at the beginning of the function.
14985         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
14986         (function_arg_pass_by_reference): Likewise.
14987         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14988         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14989         (mips_va_start): Likewise.  Use the new stack_words field of
14990         CUMULATIVE_ARGS to set up overflow area.  Reformat.
14991         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
14992         doubles and other types, aligning the overflow pointer for non-doubles
14993         too.  Remove some code duplication.  Replace hard-coded constants.
14995 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
14997         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14998         (CLASS_UNITS): Undefine.
14999         (CLASS_MAX_NREGS): Use FP_INC.
15000         * config/mips/mips.c (compute_frame_size): Likewise.
15001         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15003 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
15005         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15006         prototype, and handle lexing numbers and identifiers.
15007         (parse_identifier): Update to new form of parse_slow.
15008         (parse_number): Fast path only, use parse_slow otherwise.
15009         (_cpp_lex_direct): Update calls to parse_number.
15011 2002-03-21  DJ Delorie  <dj@redhat.com>
15013         * bb-reorder.c (make_reorder_chain_1): Protect against
15014         when redundant edges are omitted.
15015         * predict.c (dump_prediction): Likewise.
15017 2002-03-21  Richard Henderson  <rth@redhat.com>
15019         PR target/5996
15020         * fixinc/inclhack.def (solaris_stdio_tag): New.
15021         * fixinc/fixincl.x: Regenerate.
15023 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
15025         PR c/5597
15026         * c-typeck.c (process_init_element): Flag non-static
15027         initialization of a flexible array member as illegal.
15029 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
15031         * config/rs6000/t-linux64: New.
15032         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15033         t-ppccomm.  Use t-rs6000 and t-linux64.
15034         (powerpc64-*-gnu* <tmake_file>): Likewise.
15035         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15036         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15037         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15039 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
15041         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15042         flag_really_no_inline instead of optimize == 0.
15044         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15046         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15048         * flags.h (flag_really_no_inline): New.
15050         * c-common.c (c_common_post_options): Initialize
15051         flag_really_no_inline.
15053         * toplev.c (flag_really_no_inline): New.
15055 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
15057         * config/avr/avr.md (length): Fix length computation for
15058         conditional branches.
15060 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15062         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15063         sdbout.o, profile.o): Update.
15064         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15065         langhook.
15066         * c-common.h (gettags): Move here from tree.h.
15067         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15068         insert_block, getdecls, kept_level_p, global_bindings_p): New.
15069         * dbxout.c (dbxout_init): Use getdecls langhook.
15070         * expr.c (expand_expr): Use insert_block langhook.
15071         * fold-const.c: Include langhooks.h.
15072         (fold_range_test, fold_binary_op_with_conditional_arg,
15073         fold): Use global_bindings_p langhook.
15074         * integrate.c (expand_inline_function): Use insert_block langhook.
15075         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15076         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15077         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15078         LANG_HOOKS_GETDECLS): New.
15079         (LANG_HOOKS_INITIALIZER): Update.
15080         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15081         langhook.
15082         * langhooks.h (struct lang_hooks_for_decls): New.
15083         (struct lang_hooks): Update.
15084         * profile.c: Include langhooks.h.
15085         (output_func_start_profiler): Use new langhooks.
15086         * sdbout.c: Include langhooks.h.
15087         (sdbout_init, sdbout_finish): Use getdecls langhook.
15088         * stmt.c: Include langhooks.h.
15089         (expand_fixup, fixup_gotos): Use new langhooks.
15090         * stor-layout.c: Include langhooks.h.
15091         (variable_size): Use global_bindings_p langhook.
15092         * toplev.c (compile_file): Use getdecls langhook.
15093         * tree-inline.c (remap_block): Use insert_block langhook.
15094         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15095         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15097 2002-03-21  Richard Henderson  <rth@redhat.com>
15099         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15100         constants in .data when -fpic.
15102 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15104         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15105         where appropriate.
15107 2002-03-21  Tom Tromey  <tromey@redhat.com>
15109         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
15111 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15113         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15115         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15117 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
15118             Richard Henderson  <rth@redhat.com>
15120         PR c/5354
15121         * c-common.c (c_expand_expr): Preserve result of a statement
15122         expression if needed.
15124 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
15126         PR bootstrap/4195
15127         * genrecog.c (maybe_both_true_mode): Remove.
15128         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15129         * machmode.def (Pmode): Likewise.
15131 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
15133         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15134         (nonlocal_mentioned_p_1): New function.
15135         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15136         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15137         (mark_constant_function): Recognize pure functions.
15138         * rtl.h (global_reg_mentioned_p): New prototype.
15139         * rtlanal.c (global_reg_mentioned_p,
15140         global_reg_mentioned_p_1): New function.
15142 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15144         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
15145         UNIX assert.h.
15146         * fixinc/fixincl.x: Regenerate.
15148 2002-03-20  Jason Merrill  <jason@redhat.com>
15150         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
15152 2002-03-20  Michael Meissner  <meissner@redhat.com>
15154         * doc/invoke.texi (Optimize Options): Document that -O2 sets
15155         -fstrict-aliasing.
15157 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
15159         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
15160         ".literal_position" directive before the constant pool.
15162 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15164         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
15165         Add Craig Rodrigues.
15166         Add Brad Lucier to testers.
15168 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15170         PR target/4792
15171         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
15172         to if_then_else.
15173         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
15174         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
15175         instead of insn_extract.
15177 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15179         PR bootstrap/4192
15180         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
15182         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
15183         stmt if some case has been output.
15185 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
15187         PR c/5972
15188         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
15189         movsfcc_1, movdfcc_1): Add %O2.
15190         * config/i386/i386.c (print_operand): Handle %ON.
15191         Print . before float condition codes in Sun as cmov syntax.
15192         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
15193         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
15194         no longer true.
15196 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
15198         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
15199         return instruction if PC was popped.
15201 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
15203         * config/xtensa/xtensa.md: Remove unused type attributes.
15204         (adddi_carry, subddi_carry): Change type attribute to "multi".
15206 2002-03-19  Dale Johannesen  <dalej@apple.com>
15208         PR optimization/5999, middle-end/5731
15209         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
15210         multiplications by reciprocals.
15212 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15214         * Makefile.in: Update.
15215         * c-common.c: Include langhooks.h.
15216         (inline_forbidden_p): Use new hook.
15217         * diagnostic.c: Include langhooks.h.
15218         (format_with_decl, announce_function,
15219         default_print_error_function): Use new hook.
15220         * dwarf2out.c (dwarf2_name): Use new hook.
15221         * function.c: Include langhooks.h.
15222         (init_function_start): Use new hook.
15223         * langhooks-def.h (lhd_decl_printable_name): New.
15224         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
15225         (LANGHOOKS_INITIALIZER): Update.
15226         * langhooks.c (lhd_decl_printable_name): New.
15227         * langhooks.h (struct lang_hooks): New hook.
15228         * toplev.c (decl_name, decl_printable_name): Remove.
15229         (open_dump_file): Use new hook.
15230         (process_options): Remove old hook.
15231         * tree.h (decl_printable_name): Remove.
15232 objc:
15233         * objc-act.c (objc_init): Remove old hook.
15234         (objc_printable_name): Export.
15235         * objc-act.h (objc_printable_name): New.
15236         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
15238 2002-03-19  Jim Blandy  <jimb@redhat.com>
15240         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
15241         the start_source_file debug hook, not the current line number.
15243 2002-03-19  Richard Henderson  <rth@redhat.com>
15245         * flow.c (EH_USES): Provide default.
15246         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
15247         * doc/tm.texi (EH_USES): New.
15249         * config/ia64/ia64.c (ia64_eh_uses): New.
15250         * config/ia64/ia64-protos.h: Update.
15251         * config/ia64/ia64.h (EH_USES): New.
15253 2002-03-19  Richard Henderson  <rth@redhat.com>
15255         * varasm.c (output_constant_def): Fix stupid typo.
15257 2002-03-19  Richard Henderson  <rth@redhat.com>
15259         PR 5879
15260         * except.c (current_function_has_exception_handlers): New.
15261         * except.h: Declare it.
15262         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
15263         Combine tests that disable all sibcalls for the function.
15265 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
15267         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
15268         for INTEGER_CST.
15270 2002-03-19  Richard Henderson  <rth@redhat.com>
15272         PR 5977, 5991
15273         * config/ia64/ia64.c: Revert 2002-03-01 patch.
15274         * config/ia64/ia64.h (INIT_EXPANDERS): New.
15276 2002-03-19  Jim Blandy  <jimb@redhat.com>
15278         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
15279         name, even if the replacement list contains no tokens, as required
15280         by Dwarf.
15282 2002-03-19  Jason Merrill  <jason@redhat.com>
15284         * varasm.c (globalize_decl): Get the name from the RTL, not
15285         DECL_ASSEMBLER_NAME.
15287         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
15289 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
15291         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
15292         subdi_carry): Define.
15294 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15296         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
15297         about -fpic/-fPIC if extra_warnings set.
15299 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
15301         * expr.c (expand_expr): Sign-extend CONST_INT generated from
15302         TREE_STRING_POINTER.
15303         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
15305 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15307         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
15308         in favor of SP if FRAME_POINTER_REQUIRED is false.
15310 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
15312         * emit-rtl.c (gen_int_mode): New function.
15313         * rtl.h: Prototype for it.
15314         * combine.c (make_extraction, simplify_comparison), expmed.c
15315         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
15316         (convert_modes, store_field), optabs.c (expand_fix),
15317         simplify-rtx.c (neg_const_int, simplify_unary_real),
15319         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
15320         Use it instead of GEN_INT (trunc_int_for_mode (...)).
15322 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
15324         PR c/5656
15325         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
15326         convert_parm_for_inlining.
15327         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
15328         Define.
15329         * langhooks-def.h: Likewise.
15330         * objc/objc-lang.c: Likewise.
15331         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
15332         function.
15333         * tree-inline.c (initialize_inlined_parameters):
15334         Call convert_parm_for_inlining lang hook if needed.
15335         * c-typeck.c (c_convert_parm_for_inlining): New function.
15336         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
15338 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
15340         * calls.c (precompute_arguments): Do not assume that temporaries
15341         can be destroyed after expanding the argument.
15342         (expand_call): Likewise.
15344 2002-03-15  Eric Christopher  <echristo@redhat.com>
15346         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
15347         Fix register preference on last change.
15348         * config/mips/mips.c (mips_return_in_memory): New function.
15349         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
15350         * config/mips/mips-protos.h: Declare.
15351         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
15352         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
15354 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
15356         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
15357         a register too.
15358         (anddi3, iorsi3): Likewise.
15360         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
15361         use %gprel for symbols that are going to be placed in linkonce
15362         sections.
15364         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
15365         RETURN_ADDRESS_POINTER_REGNUM to $ra.
15366         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15367         not needed.  Disregard leaf_function_p().
15368         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15369         mips16 frame pointer.
15370         * config/mips/mips.md (store ra): Only to small SP offsets.
15371         2001-08-22  Graham Stott  <grahams@redhat.com>
15372         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15373         return a REG rtx for the return address register.
15375 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
15377         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15378         constant-pool addresses as "mode-dependent".
15379         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15381 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
15383         PR target/5740
15384         * expr.c (emit_group_load): Use extract_bit_field if
15385         needed for CONCAT arguments.
15387 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
15389         PR target/4863
15390         * arm.md (tablejump): Make this a define_expand.  For PIC add the
15391         offset to the base of the table.
15392         (thumb_tablejump): Matcher for Thumb tablejump insn.
15393         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15394         as the difference of two labels.
15395         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15396         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15397         tables in the code.
15398         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15399         * arm.c (get_jump_table_size): If the table is not in the text
15400         section, return zero.
15402 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
15404         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15405         of gen_rtx_SUBREG.
15406         (arm_reload_out_hi): Use gen_lowpart instead of
15407         gen_rtx_SUBREG to access QImode components.
15408         * config/arm/arm.md: Disable zero_extend split for QImode
15409         subregs in BIG_ENDIAN mode.
15410         (storehi_bigend): Match use of least significant byte.
15411         (storeinthi): Remove extraneous SUBREG.
15412         Add missing construction of operands[2].
15413         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15414         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15415         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15417 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
15419         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15420         any_operand.
15422 2002-03-17  Richard Henderson  <rth@redhat.com>
15424         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15425         explicitly.
15427 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15429         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15430         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15432 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15434         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15436         * predict.c (estimate_bb_frequencies): Delete unused variables.
15438 2002-03-17  Richard Henderson  <rth@redhat.com>
15440         * config/ia64/ia64.c (ia64_attribute_table): Move before
15441         targetm definition.  Make static.
15443 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
15445         * c-common.h (yyparse, c_common_parse_file): New.
15446         * c-lang.c: Include c-common.h.
15447         (LANG_HOOKS_PARSE_FILE): Redefine.
15448         * c-lex.c: Include c-common.h.
15449         (yyparse): Rename c_common_parse_file.  Call yyparse.
15450         * c-parse.in (yyparse): Remove macro.
15451         * c-tree.h (yyparse_1): Remove.
15452         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15453         (LANG_HOOKS_INITIALIZER): Update.
15454         * langhooks.h (struct lang_hoooks): New hook parse_file.
15455         * toplev.c (compile_file): Use parse_file hook.
15456         * tree.h (yyparse): Remove.
15457         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15459 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
15461         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15462         float_truncate, not fix.
15463         ("*truncdfsf2_real"): Ditto.
15464         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15466         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15468 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
15470         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15471         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
15472         where appropriate.  Make the second reference to
15473         leaf_function_p a function call, as intended.  Reindented.
15475         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15476         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15478         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15479         add register to non-constant into sp.
15481         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15482         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15483         (mips16_gp_pseudo_rtx): Lose.
15484         (INIT_EXPANDERS): Deleted.
15485         * config/mips/mips.c (mips_init_machine_status): New.
15486         (mips_free_machine_status): New.
15487         (mips_mark_machine_status): New.
15488         (override_options): Set them.
15489         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15490         (struct machine_function): ... new.  Replaced all references.
15491         (mips_add_gc_roots): Don't mark them.
15492         (embedded_pic_fnaddr_reg): New, extracted from...
15493         (embedded_pic_offset): ... here.
15494         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15495         (movsi): Likewise.
15497 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15499         * cppinit.c: Revert -MD removal.
15501 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15503         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15504         soft registers by default for 68HC12.
15505         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15506         when compiling with -fomit-frame-pointer.
15507         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15508         (expand_epilogue): Likewise.
15509         (m68hc11_gen_rotate): Use exg when rotating by 8.
15511 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15513         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15514         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15515         (splits): Remove unused add splits.
15516         ("*addhi3_68hc12"): Tune constraints.
15517         ("addhi_sp"): Try to use X instead of Y in all cases and if the
15518         constant fits in 8-bits and D is dead use abx/aby instructions.
15519         ("*addhi3"): Remove extern declaration of ix_reg.
15520         ("*subsi3"): Optimize and provide new split.
15521         ("subhi3"): Cleanup.
15522         ("*subhi3_sp"): Avoid saving X if we know it is dead.
15523         (arith splits): For 68hc12 save the address register on the stack
15524         and do the arithmetic operation with a pop.
15526 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15528         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15529         allocating QImode in address registers.
15530         ("*movqi_m68hc11"): Likewise.
15532 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
15534         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15536 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
15538         * cppinit.c (print_help): Display -MD and -MMD.
15539         Don't display usage string.  Update assertion syntax and
15540         typo.
15541         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15542         (cpp_handle_option): Update.
15544 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
15546         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15547         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15548         and define it so that regardless of target CPU size,
15549         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15550         of "int" rather than "long."
15552 2002-03-15  Richard Henderson  <rth@redhat.com>
15554         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15555         size as a tree.
15557 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15559         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15560         ("tstqi" split): Avoid using memory for tstqi on address register.
15561         (splits): Remove constraints.
15562         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15563         ("cmpdf", "cmpsf"): Remove since not used.
15564         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15565         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15567 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15569         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15570         ("neghi2"): Tighten constraints.
15571         ("one_cmplsi2"): Optimize and simplify split.
15572         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15574 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15576         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15577         and split of AND operation to clear the upper bits.
15578         ("*logicalsi3_zextqi"): Likewise.
15579         ("*logicallhi3_zexthi_ashift8"): Likewise.
15580         ("*logicalsi3_silshr16"): Likewise.
15581         ("logicalsi3_silshl16"): Likewise.
15582         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15584 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15586         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15587         (m68hc11_indirect_p): New function.
15588         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15589         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15590         TARGET_M6812.
15591         (asm_print_register): Likewise.
15592         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15593         (m68hc11_indirect_p): Declare.
15594         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15595         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15596         (TARGET_SWITCHES): New option -mrelax.
15597         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15598         destination.
15599         ("iorsi3", "xorsi3"): Likewise.
15600         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15601         ("*andhi3_mem"): New to handle destination in memory with bclr
15602         and a scratch register.
15603         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15604         ("*andhi3_const"): New when operand2 is constant.
15605         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15606         ("*andhi3_gen"): Cleanup of the old "andhi3".
15607         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15608         ("xorqi3"): Update constraints.
15610 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15612         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15613         for reg_equiv_memory_loc when the operand is a register that does
15614         not get a hard register (stack location).
15615         (tst_operand): After reload, accept all memory operand.
15616         (symbolic_memory_operand): Fix detection of symbolic references.
15617         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15618         accept symbols and any constant.
15620 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15622         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15623         note on the insn that sets the soft frame register.
15624         (must_parenthesize): ix and iy are also reserved names.
15625         (print_operand_address): One more place where parenthesis are required
15626         to avoid confusion with register names.
15627         (m68hc11_gen_movhi): Allow push of stack pointer.
15628         (m68hc11_check_z_replacement): Fix handling of parallel with a
15629         clobber.
15630         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15631         the replacement register is.
15632         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15633         and D8_REGS classes.
15634         (MODES_TIEABLE_P): All modes are tieable except QImode.
15636 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15638         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15639         (___subdi3): Likewise.
15640         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15641         (__map_data_section): Optimize 68hc11 case.
15643 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15645         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15646         than a shift to avoid adding a register with itself.
15647         (m68hc11_memory_move_cost): Take into account NO_REGS.
15648         (m68hc11_register_move_cost): Update and use memory move cost
15649         for soft registers.
15650         (m68hc11_address_cost): Make cost of valid offset not 0 so that
15651         it gives more opportunities to cse to optimize.
15652         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15653         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15655 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
15657         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15658         * c-common.def (CLEANUP_STMT): New tree node.
15659         * c-common.h (CLEANUP_DECL): New macro.
15660         (CLEANUP_EXPR): Likewise.
15661         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15662         * expr.c (expand_expr): Tidy.
15663         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15664         * tree-inline.c (initialize_inlined_parameters): Clean up
15665         new local variables.
15667 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15669         PR bootstrap/4128
15670         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15671         before movrXX only, use reg_overlap_mentioned_p.
15672         Only special case NE if just one insn can be generated.
15674 2002-03-15  Jason Merrill  <jason@redhat.com>
15676         * varasm.c (assemble_variable): Call resolve_unique_section before
15677         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
15678         of error_mark_node.
15680 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15682         PR target/5170
15683         * arm.md (split pattern for thumb shiftable immediates): Add comment
15684         explaining non-obvious test.
15686 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
15688         PR target/5712
15689         * arm.md (movaddr, movaddr_insn): Delete.
15691 2002-03-15  Jason Merrill  <jason@redhat.com>
15693         * toplev.c (wrapup_global_declarations): Clarify variable handling.
15694         -fkeep-static-consts doesn't apply to comdats.
15696 2002-03-14  Richard Henderson  <rth@redhat.com>
15698         * c-decl.c: Include c-pragma.h.
15699         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15700         (finish_function): Tidy.
15701         * c-pragma.c: Include c-common.h.
15702         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15703         (handle_pragma_weak): Use them.
15704         (init_pragma): Register pending_weaks.
15705         * c-pragma.h (maybe_apply_pragma_weak): Declare.
15706         * print-tree.c (print_node): Print DECL_WEAK.
15707         * varasm.c (mark_weak_decls): Remove.
15708         (remove_from_pending_weak_list): Remove.
15709         (add_weak): Remove.
15710         (asm_emit_uninitialised): Call globalize_decl for weak commons.
15711         (weak_decls): Make a tree_list.
15712         (declare_weak): Cons weak_decls directly.
15713         (globalize_decl): Remove weak_decls elements directly.
15714         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
15715         symbols.  Don't pretend to handle aliases.
15716         (init_varasm_once): Update weak_decls registry.
15717         * Makefile.in: Update dependencies.
15719 2002-03-14  Richard Henderson  <rth@redhat.com>
15721         PR target/5312
15722         * config/ia64/ia64.c: Include tm_p.h last.
15723         (gen_nop_type): Remove duplicate definition.
15724         (cycle_end_fill_slots): Set sched_data for second L slot.
15725         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15726         (nop_cycles_until): Fix typos.
15728 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
15730         PR optimization/5891
15731         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15733 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15735         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15736           descriptors correctly.
15738 2002-03-14  Michael Meissner  <meissner@redhat.com>
15740         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15741         100, allowing MAX_UNROLLED_INSNS to be overridden.
15743         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15744         --param.
15746         * unroll.c (params.h): Include.
15747         (MAX_UNROLLED_INSNS): Delete, now in params.h.
15749         * doc/invoke.texi (--param max-unroll-insns): Document.
15751         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15753 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15755         * arm.md: Fix warnings about constraints in peepholes and splits.
15757 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
15759         * cpphash.h (struct lexer_state): Remove line_extension member.
15760         * cpplib.c (dequote_string, do_linemarker): New functions.
15761         (linemarker_dir): New data object.
15762         (DIRECTIVE_TABLE): No longer need to interpret #line in
15763         preprocessed source.  Delete obsolete comment about return
15764         values of handlers.
15765         (end_directive, directive_diagnostics, _cpp_handle_directive):
15766         Don't muck with line_extension.
15767         (directive_diagnostics): No need to issue warnings for
15768         linemarkers here.
15769         (_cpp_handle_directive): Issue warnings for linemarkers here,
15770         when appropriate.  Dispatch linemarkers to do_linemarker, not
15771         do_line.
15772         (do_line): Code to handle linemarkers split out to do_linemarker.
15773         Convert escape sequences in filename argument, both places.
15775         * cppmacro.c (quote_string): Rename cpp_quote_string and
15776         export.  All callers changed.
15777         * cpplib.h (cpp_quote_string): Prototype.
15778         * cppmain.c (print_line): Call cpp_quote_string on to_file
15779         before printing it.
15781         * doc/cpp.texi: Document that escapes are now interpreted in
15782         #line and in linemarkers, and that non-printing characters are
15783         converted to octal escapes when linemarkers are generated.
15785 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
15787         * emit-rtl.c (try_split): Use delete_insns.
15788         * recog.c (split_all_insns): Fix terminating condition.
15790 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
15791             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
15793         PR target/5828
15794         * arm.c (arm_output_epilogue): Fix floating-point register save
15795         adjustment when using a frame pointer.
15797 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
15799         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15800         * config/mips/mips.c (compute_frame_size): Retrofit them here.
15801         (save_restore_insns, mips_expand_epilogue): And here.
15802         (build_mips16_call_stub): And here.
15803         (mips_function_value): Use the new macros to decide whether a single
15804         or complex float can be returned in floating-point registers.  Return
15805         a parallel rtx in the complex case.
15807 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15809         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15810         call after liveness analysis.
15812         * recog.c (split_insn): Use delete_insn_and_edges.
15814         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15815         instructions to have branch prediction notes.
15816         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15818 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
15820         * configure.in: Don't pass -Wno-long-long to a ADA compiler
15821         that doesn't support it.
15822         * configure: Regenerate.
15824 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15826         PR target/5626
15827         * config/sparc/sparc.md (normal_branch, inverted_branch,
15828         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15829         inverted_fp_branch): Adjust calls to output_cbranch.
15830         Set length attribute.
15831         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15832         output_v9branch.  Set length attribute.
15833         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15834         predicates.
15835         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15836         (output_cbranch): Likewise.  Handle far branches.
15837         (output_v9branch): Handle far branches.
15838         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15839         Adjust prototypes.
15840         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15841         noov_compare64_op predicates.
15843 2002-03-13  Jason Merrill  <jason@redhat.com>
15845         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15846         into the function and constify it.
15847         * gthr-dce.h, gthr-solaris.h: Likewise.
15849 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
15851         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15852         * config/rs6000/rs6000.c (rs6000_va_arg): Use
15853         std_expand_builtin_va_arg if not ABI_V4.
15855 2002-03-13  Jason Merrill  <jason@redhat.com>
15857         * varasm.c (globalize_decl): New fn.
15858         (assemble_start_function): Use it.
15859         (asm_emit_uninitialized): Use it.
15860         (assemble_alias): Use it.
15861         (assemble_variable): Use it.
15863 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
15865         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15866         2002-03-12 internal visibility change.
15867         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15868         visibility into SYMBOL_REF_FLAG.
15870 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
15872         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15873         VOIDmode operand.  Add compile-time optimization for constant results.
15875 2002-03-12  Jason Merrill  <jason@redhat.com>
15877         * c-typeck.c (convert_for_assignment): Don't allow conversions
15878         between pointers and references.  Only allow lvalues to convert to
15879         reference.
15881 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
15883         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15884         before prologue, to avoid scheduling problems.
15886 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15888         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15889         (ELIMINABLE_REGS): Add sfp->sp.
15890         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15892 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15894         PR optimization/5892
15895         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15897 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
15899         * loop.c (basic_induction_var): Don't call convert_modes if mode
15900         classes are different.
15902 2002-03-12  Richard Henderson  <rth@redhat.com>
15904         PR optimization/5901
15905         * function.c (reposition_prologue_and_epilogue_notes): Position
15906         the markers after/before the last/first insn not deleted.
15908 2002-03-12  Richard Henderson  <rth@redhat.com>
15910         PR optimization/5878
15911         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15912         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15913         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15915         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15916         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15917         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15919         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15920         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15921         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15922         also.  Don't set it if not flag_pic.
15923         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15924         to be INVALID_REGNUM when not used.
15926 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
15928         * expmed.c (store_bit_field): Reset alias set for memory.
15929         (extract_bit_field): Same.
15931 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15933         * c-common.c (c_tree_code_type, c_tree_code_length,
15934         c_tree_code_name, add_c_tree_codes): Delete.
15935         * c-common.h (add_c_tree_codes): Delete.
15936         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15937         Define.
15938         * c-objc-common.c (c_objc_common_init): Don't call
15939         add_c_tree_codes, instead set lang_unsafe_for_reeval.
15940         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15941         objc_tree_code_name, add_objc_tree_codes): Delete.
15942         (objc_init): Don't call add_objc_tree_codes.
15943         * objc/objc-lang.c (tree_code_type, tree_code_length,
15944         tree_code_name): Define.
15945         * toplev.c (lang_independent_init): Don't set
15946         tree_code_length[IDENTIFIER_NODE].
15947         * tree.c (tree_code_type, tree_code_length, tree_code_name):
15948         Delete definitions, moved to language front-ends.
15949         * tree.def (IDENTIFIER_NODE): Hardwire the length.
15950         * tree.h (tree_code_type, tree_code_length, tree_code_name):
15951         Const-ify.
15952         (tree_code_length): Change type to unsigned char.
15954 2002-03-12  Richard Henderson  <rth@redhat.com>
15956         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15957         internal visibility change.
15959 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15961         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15962         validize_mem() instead of change_address to avoid clobbering
15963         memory attributes.
15965 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15967         * c-lex.h (position_after_whitespace): Remove.
15969 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
15971         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15972         (lex_string): Use unsigned char pointers.
15974 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
15976         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15977         is not a valid memory_operand.
15979 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15981         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15982         * config/xtensa/lib1funcs.asm: Fix copyright to include
15983         special case for libgcc files.
15984         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15985         (__divsi3): Likewise.
15986         (__umodsi3): Likewise.
15987         (__modsi3): Likewise.
15988         * config/xtensa/lib2funcs.S: Fix copyright to include
15989         special case for libgcc files.
15991 2002-03-12  Tom Rix  <trix@redhat.com>
15993         * collect2.c (resolve_lib_name): Move outside of
15994         OBJECT_FORMAT_COFF ifdef.
15995         (ignore_library): Same.
15997 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
15999         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16001 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
16003         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16004         to function_section before writing out the constant pool.
16006 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
16008         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16009         zero_constant.
16010         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16012 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
16014         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16015         (adddi3): Likewise.
16016         (movdf): Likewise.
16017         (movdi): Likewise.
16018         (cmpsi splitter): Likewise.
16019         (modsi3): Fail if <= 0.
16020         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16021         redundant test when HOST_BITS_PER_WIDE_INT != 32.
16022         (reg_or_sub_cint64_operand): Likewise.
16023         (num_insns_constant_wide): Optimize sign extension.
16024         (rs6000_legitimize_address): Likewise.
16026 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
16028         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16029         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16031 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
16033         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16034         address calculation.
16036 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
16038         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16039         scratch register to DImode / TImode.
16040         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16041         register used does not overlap the target.
16043 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16045         * Makefile.in (debug.o): Depend on debug.h.
16046         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16047         * debug.c (do_nothing_debug_hooks): Likewise.
16048         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16049         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16050         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16051         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16052         * dwarfout.c (dwarf_debug_hooks): Likewise.
16053         * integrate.c (output_inline_function): Likewise.
16054         * objc/objc-act.c (synth_module_prologue): Likewise.
16055         * sdbout.c (sdb_debug_hooks): Likewise.
16056         * toplev.c (debug_hooks): Likewise.
16057         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16059 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16061         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16062         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16063         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16064         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16065         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16066         * defaults.h (POINTER_SIZE): Define.
16067         * doc/tm.texi (POINTER_SIZE): Document default.
16069 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16071         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16073 2002-03-11  Richard Henderson  <rth@redhat.com>
16075         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16076         if rebuild_label_notes_after_reload.
16078 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
16080         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
16081         emit pic register load if "internal" visibility.
16082         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16083         (cris_expand_builtin_va_arg): Do all computations on trees.
16085 2002-03-11  Richard Henderson  <rth@redhat.com>
16087         * rtlanal.c: Include recog.h.
16088         (keep_with_call_p): Fix thinko.
16089         * Makefile.in (rtlanal.o): Update dependencies.
16091 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
16093         * genflags.c (gen_insn): Use IS_VSPACE.
16094         * genoutput.c (output_insn_data): Likewise.
16095         (process_template): Likewise.
16097 2002-03-11  Richard Henderson  <rth@redhat.com>
16099         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16101 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
16103         * Makefile.in: Update.
16104         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16105         Update documentation.
16106         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16107         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16109 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
16111         * Makefile.in: Give texi2pod its input file as a command line
16112         argument, not on stdin.
16114 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
16115             Daniel Berlin  <dan@dberlin.org>
16117         C++ alias analysis improvement.
16118         * alias.c (record_component_aliases): Record aliases for base
16119         classes too.
16121 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
16123         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16125 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
16127         * toplev.c (vms_fopen): Remove, not needed.
16129         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16131         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16133         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16134         for FP, already done later.
16136         * toplev.c (debug_args): Add entry for VMS_DEBUG.
16137         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16139 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
16141         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
16142         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
16143         LARGEST_EXPONENT_IS_NORMAL for the given mode.
16144         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
16145         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
16146         (ediv, emul, eldexp, esqrt): Likewise.
16147         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
16148         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
16149         (saturate): New function.
16150         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
16151         (make_nan): Use a saturation value instead of a NaN if
16152         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
16153         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
16154         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
16155         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
16156         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
16157         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
16158         !ROUND_TOWARDS_ZERO.
16159         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
16160         (ROUND_TOWARDS_ZERO): Document.
16162 2002-03-11  Andreas Jaeger  <aj@suse.de>
16164         * cfg.c (dump_flow_info): Remove unused variable.
16166 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
16168         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
16169         computations on trees.
16171 2002-03-10  Richard Henderson  <rth@redhat.com>
16173         PR 5693:
16174         * reload.c (copy_replacements_1): New.
16175         (copy_replacements): Use it to recurse through the rtx.
16177 2002-03-10  Richard Henderson  <rth@redhat.com>
16179         * loop.c (strength_reduce): Compute number of iterations as
16180         unsigned HOST_WIDE_INT.
16182 2002-03-10  Richard Henderson  <rth@redhat.com>
16184         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
16185         to move away from the end of the block.
16187 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
16189         PR preprocessor/5899
16190         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
16192 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16194         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
16196         * attribs.c (decl_attributes): Fix signed/unsigned warning.
16198 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
16200         * config/mmix/mmix.c: Improve comments.
16201         (mmix_target_asm_function_prologue): Drop variable
16202         empty_stack_frame.  Don't allocate unused slot above fp.
16203         (mmix_target_asm_function_epilogue): Mirror prologue changes.
16204         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
16205         brace in first column.
16206         (enum reg_class): Ditto.
16207         (FIRST_PARM_OFFSET): Now 0.
16208         (USER_LABEL_PREFIX): Remove #if 0:d definition.
16210 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16212         * combine.c (make_extraction): Fix error in last change.
16214 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16216         * c4x.c (c4x_fp_reglist): Const-ify.
16217         * cris.c (cris_print_operand): Likewise.
16218         * i386.c (ix86_va_arg): Likewise.
16219         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
16220         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
16221         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
16222         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
16223         * mcore.h (regno_reg_class): Likewise.
16224         * mips.c (gen_int_relational): Likewise.
16225         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
16226         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
16227         * pdp11.c (move_costs): Likewise.
16228         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
16229         * s390.c (s390_branch_condition_mnemonic, regclass_map):
16230         Likewise.
16231         * s390.h (regclass_map): Likewise.
16232         * sh.c (shift_amounts): Likewise.
16233         * sh.md (rotlsi3): Likewise.
16235 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
16237         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
16238         (ne0+5): Use new clobber to generate proper shift pattern.
16239         Patch by Michael Matz <matz@kde.org>.
16241 2002-03-09  Andreas Schwab  <schwab@suse.de>
16243         * gcc.c (validate_all_switches): Also handle `%W{...}'.
16245 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
16247         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
16249 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
16251         PR middle-end/5877
16252         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
16253         even for non-representable constants.
16255 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16257         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
16258         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
16259         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
16260         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
16261         (pop_function_context): Compute MAY_SHARE parameter for
16262         fixup_var_refs.
16263         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
16264         (gen_mem_addressof): Call fixup_var_refs with new parm.
16266         * combine.c (make_extraction): Don't make extension of CONST_INT.
16268 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
16270         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
16271         in o32 and o64 ABIs.
16272         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
16273         but getting fixed-size structs passed in registers regardless of
16274         padding in o32 and o64 ABIs.
16276         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
16277         offset before loading address of argument passed by transparent
16278         reference.
16280 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16282         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
16284 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
16286         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
16287         marker such that registers after it are saved.
16289 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16291         * sparc.c (arith_4096_operand): Fix error in last change.
16293 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
16295         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
16296         defaults for MEABI.
16298 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16300         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
16301         vectors.
16303 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
16305         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
16307 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16309         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
16310         removed; fix return value.
16311         * combine.c (combine_instructions): Dirtify blocks where we failed to
16312         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
16313         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
16315 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16317         * gcse.c (insert_insn_end_bb): Fix typo in last change.
16319 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
16321         * recog.c (peephole2_optimize): Re-distribute EH edges.
16323 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16325         * expr.c (expand_expr): Use unsave lang hook.
16326         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
16327         (LANG_HOOKS_INITIALIZER): Update.
16328         * langhooks.h (struct lang_hooks): New hook unsave.
16329         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
16330         (unsave_expr_1): Remove unused lang_unsave_expr_now.
16331         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
16332         (unsave_expr_now): Remove.
16333         * tree.h (unsave_expr_now, lang_unsave,
16334         lang_unsave_expr_now): Remove.
16335         (lhd_unsave): New.
16337 2002-03-08  Andreas Jaeger  <aj@suse.de>
16339         * flow.c (propagate_block_delete_insn): Remove unused variable.
16341 2002-03-08  Kazu Hirata  <kazu@hxi.com>
16343         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
16344         insn length for memory load/store.
16346 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16348         * doc/install.texi (--with-libiconv-prefix): Document.
16350 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
16352         * doc/sourcebuild.texi: Fix typo.
16354 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
16356         PR c/3711
16357         * builtins.c (std_expand_builtin_va_arg): Do all computations on
16358         trees.
16360 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16362         * rtl.c (copy_most_rtx): Move from here ...
16363         * emit-rtl.c (copy_most_rtx): ... to here.
16365 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
16367         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16368         SUBTARGET_CPP_SIZE_SPEC.
16369         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16371         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16373 2002-03-07  Matt Hiller  <hiller@redhat.com>
16375         * gensupport.c (first_dir_md_include): Renamed from include;
16376         change all references.
16377         (last_dir_md_include): Renamed from last_include; change all
16378         references.
16379         (init_md_reader): Unconditionally initialize base_dir whether or
16380         not filename is a relative path.
16382 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
16384         * config/fp-bit.c (_unord_f2): Compile it in even if
16385         US_SOFTWARE_GOFAST is enabled.
16387         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16388         NULL_RTX.  Set all HFmode operations as NULL_RTX.
16389         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16390         NULL_RTX, try reversing the comparison and the operands.
16392 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16394         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16395         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16396         and MATCH_OP_DUP.
16398 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
16400         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16402 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16404         * basic-block.h (fixup_abnormal_edges): Declare.
16405         * reload1.c (fixup_abnormal_edges): New function.
16406         * reg-stack.c (convert_regs): Use it.
16408         * gcse.c (insert_insn_end_bb): Handle trapping insns.
16410         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16412 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
16414         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16415         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16416         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16417         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16418         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16419         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16420         unless x and y could be infinite.
16421         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16422         Check that the common type of both arguments is a real, even for
16423         targets without unordered comparisons.  Allow an integer argument
16424         to be compared against a real.
16425         (expand_tree_builtin): Use expand_unordered_cmp.
16426         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16427         * cse.c (fold_rtx): Likewise.  Fix indentation.
16428         * fold-const.c (fold_real_zero_addition_p): New.
16429         (fold): Use it, and the new HONOR_... macros.
16430         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16431         * jump.c (reversed_comparison_code_parts): After searching for
16432         the true comparison mode, use HONOR_NANS to decide whether it
16433         can be safely reversed.
16434         (reverse_condition_maybe_unordered): Remove IEEE check.
16435         * simplify-rtx.c (simplify_binary_operation): Use the new macros
16436         to decide which simplifications are valid.  Allow the following
16437         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16438         and (a - -b) to (a + b).
16439         (simplify_relational_operation): Use HONOR_NANS.
16440         * doc/tm.texi: Document the MODE_HAS_... macros.
16442 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
16444         * combine.c (simplify_comparison): If simplifying a logical shift
16445         right and compare with constant, force the comparison to unsigned.
16447 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
16449         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16451         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16452         -mabi=no-altivec
16453         (alt_reg_names): Remove % for vrsave.
16455 2002-03-06  Richard Henderson  <rth@redhat.com>
16457         PR optimization/5844
16458         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
16459         if used indicates we've already emitted one copy of an operand.
16460         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16461         (gen_split): Supply a non-null used.
16463 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
16465         * reload1.c (reload): Unshare all rtl after reload is done.
16467         * simplify-rtx.c (simplify_plus_minus): Do not abort,
16468         but simply fail if the expression is too complex to simplify.
16469         (simplify_gen_binary): Handle simplify_plus_minus failures.
16471 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
16473         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16474         consistently call delete_trivially_dead_insns after CSE and GCSE;
16475         fix DFI_life dumping; do jump threading after liveness; do crossjumping
16476         after liveness2; update comment in last crossjumping.
16477         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16479 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
16481         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16482         after completing fast dead code elimination.
16484         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16485         COMPARE operator.
16487 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
16489         * version.c:  Fix misplaced leading blanks on first line.
16491 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
16493         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16495 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
16497         * cfgcleanup.c (mentions_nonequal_regs): New function.
16498         (thread_jump): Use it.
16499         * toplev.c (rest_of_compilation): Run jump threading after
16500         liveness.
16502 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
16504         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16505         patch.
16507 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
16509         * predict.c (estimate_bb_frequencies): Do not reload the
16510         frequencies from notes.
16512 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
16514         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16515         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16517         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16518         delete_noop_moves): Return indeger.
16519         * flow.c (ndead): New variable.
16520         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16521         BB argument; update callers.
16522         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16523         (life_analysis): Do not call purge_all_dead_edges.
16524         (update_life_info): Return number of deleted insns; print statistics.
16525         (update_life_info_in_dirty_blocks): likewise.
16526         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16527         return number of insns deleted.
16529         * cse.c: Include timevar.h
16530         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16531         iterate until stabilizes; print statistics; return number of killed
16532         insns.
16533         * Makefile.in: (cse.o): Add timevar.h dependency
16534         * rtl.h (delete_trivially_dead_insns): New.
16535         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16536         * toplev.c (rest_of_compilation): Update callers.
16538         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16539         (try_optimize_cfg): Do not update liveness.
16540         (cleanup-cfg): Loop until try_optimize_cfg and dead code
16541         removal stabilizes; use delete_trivially_dead_insns.
16543         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16545 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
16547         * cppmain.c (setup_callbacks): Disable #pragma and #ident
16548         callbacks when processing assembly language.
16550 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16552         * pa.h (ASM_FILE_END): Define.
16553         * som.h (ASM_FILE_END): Delete.
16555         * pa.c (function_arg): Don't pass floats in general registers in
16556         indirect calls if TARGET_ELF32.
16558 2002-03-05  Richard Henderson  <rth@redhat.com>
16560         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16562 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
16564         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16566 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16568         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16569         -r command line.  Don't hide any symbols if not building
16570         shared libgcc.
16572 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
16574         * cfg.c (dump_flow_info): Warn about profile mismatches.
16575         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16576         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16578 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16580         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16581         wide volatile memory by parts.
16583 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
16585         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16586         is NULL.
16588 2002-03-05  Richard Henderson  <rth@redhat.com>
16590         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16592 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16594         * toplev.c (documented_lang_options): Document more
16595         language-specific options.
16596         * doc/invoke.texi (Warning Options): Correct documentation for
16597         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16598         * c-decl.c (c_decode_option): Use a table to handle warning options.
16600 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
16602         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16603         parameter to mmix_encode_section_info.
16604         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16605         relocatably.  Always produce ELF, not mmo if linking relocatably.
16606         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16607         first is non-zero, don't add symbol prefix.
16608         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16609         prototype accordingly.
16611 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
16613         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16615 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
16617         * configure.in: Increase required makeinfo version to 4.1.
16618         * configure: Regenerate.
16620 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
16622         * .cvsignore: Remove *.info* and genrtl*; these files are generated
16623         elsewhere now.
16625 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16627         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16628         * doc/invoke.texi: Fix @math uses.
16630 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16632         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16633         removal
16635 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
16637         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16638         (powerpc-*-eabisimaltivec*): Same.
16640         * config/rs6000/t-ppcendian: New.
16642 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16644         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16645         nonimmediate_src_operand and nonimmediate_lsrc_operand to
16646         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16648 2002-03-03  Richard Henderson  <rth@redhat.com>
16650         * toplev.c (rest_of_decl_compilation): Revert last two changes.
16652 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
16654         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16655         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16656         tree.c, config/m68k/m68k.c:
16657         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16658         REAL_ARITHMETIC blocks unconditional.  Delete some further
16659         #ifdef blocks predicated on REAL_ARITHMETIC.
16660         * flags.h, toplev.c: Delete remaining references to
16661         flag_pretend_float.
16663         * doc/invoke.texi: Remove documentation of -fpretend-float.
16664         * doc/tm.texi: Describe the various REAL_* macros as provided by
16665         real.h, not by the target configuration files.
16667         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16668         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16669         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16670         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16671         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16672         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16673         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16674         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16675         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16676         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16677         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16678         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16679         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16680         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16681         config/xtensa/xtensa.h:
16682         Do not define, undefine, or mention in comments any of
16683         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16684         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16685         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16686         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16687         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16688         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16689         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16690         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16691         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16693 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16695         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16696         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16697         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16698         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16699         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16700         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16701         Delete.
16702         * defaults.h (BITS_PER_WORD): Define.
16703         * doc/tm.texi (BITS_PER_WORD): Document default value.
16705         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16706         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16707         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16709 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16711         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16712         lieu of explicit sizeof/sizeof.
16713         * i386.c (override_options, ix86_init_mmx_sse_builtins,
16714         ix86_expand_builtin): Likewise.
16715         * mips.c (mips_add_gc_roots): Likewise.
16716         * mmix.c (mmix_output_condition): Likewise.
16717         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16718         altivec_init_builtins): Likewise.
16719         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16720         * cppexp.c (Nsuff, parse_number): Likewise.
16721         * cppinit.c (builtin_array_end): Likewise.
16722         * gcc.c (n_default_compilers, process_command): Likewise.
16723         * genpreds.c (output_predicate_decls): Likewise.
16724         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16725         * lcm.c (N_ENTITIES): Likewise.
16726         * stor-layout.c (set_sizetype): Likewise.
16728 2002-03-03  Richard Henderson  <rth@redhat.com>
16730         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16731         for types or labels.
16733 2002-03-03  Richard Henderson  <rth@redhat.com>
16735         * c-decl.c (start_decl): Initialized variables are not common.
16737 2002-03-02  Per Bothner  <per@bothner.com>
16739         * gcc.c (option_map):  Suport new --bootclasspath option.
16740         --CLASSPATH is now just an alias for --classpath.
16742 2002-03-02  Richard Henderson  <rth@redhat.com>
16744         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16745         load if "internal" visibility.
16746         * doc/extend.texi: Document visibility meanings.
16748 2002-03-02  Richard Henderson  <rth@redhat.com>
16750         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16751         to functions as well.
16753 2002-03-02  Richard Henderson  <rth@redhat.com>
16755         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16756         (handle_visibility_attribute): Don't call assemble_visibility.
16757         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16758         without asmspec.  Invoke assemble_alias when needed.
16759         * varasm.c (maybe_assemble_visibility): New.
16760         (assemble_start_function, assemble_variable, assemble_alias): Use it.
16762 2002-03-02  Richard Henderson  <rth@redhat.com>
16764         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16765         invoke ENCODE_SECTION_INFO with first call flag.
16767         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16768         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16769         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16770         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16771         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16772         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16773         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16774         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16775         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16776         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16777         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16778         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16779         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16780         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16781         config/mcore/mcore-protos.h, config/mcore/mcore.c,
16782         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16783         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16784         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16785         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16786         config/sh/sh.h, config/sparc/sparc.h,
16787         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16788         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16789         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16790         FIRST argument.  As needed, examine it and do nothing.
16792         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16793         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16794         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16796         * config/arm/t-pe (pe.o): Add dependencies.
16798 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16800         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16801         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16802         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16803         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16804         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16805         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16806         * defaults.h (BITS_PER_UNIT): Define.
16807         * doc/tm.texi (BITS_PER_UNIT): Document default value.
16809 2002-03-02  Kazu Hirata  <kazu@hxi.com>
16811         * config/h8300/h8300-protos.h: Add a prototype for
16812         compute_a_shift_length.
16813         * config/h8300/h8300.c (h8300_asm_insn_count): New.
16814         (compute_a_shift_length): Likewise.
16815         (h8300_adjust_insn_length): Do not adjust insn length of shift
16816         insns.
16817         * config/h8300/h8300.md (anonymous shift patterns): Use
16818         compute_a_shift_length.
16820 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16822         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16823         trunc_int_for_mode.
16825         * emit-rtl.c (offset_address): Call update_temp_slot_address.
16827 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16829         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16830         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16831         * flags.h (flag_zero_initialized_in_bss): Declare.
16832         * toplev.c (flag_zero_initialized_in_bss): New flag.
16833         (lang_independent_options): Add flag_zero_initialized_in_bss.
16834         * tree.c (initializer_zerop): New function.
16835         * tree.h (initializer_zerop): Declare.
16836         * varasm.c (assemble_variable): If we can emit bss, put zero
16837         initializers in the bss section.
16839 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
16841         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16842         like more than one symbol per .weak directive.
16844 2002-03-01  Richard Henderson  <rth@redhat.com>
16846         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16847         adjust argument_pointer by pretend_args_size.
16848         (ia64_va_start): Adjust va_start address by -pretend_args_size.
16850 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16852         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16854 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
16856         * toplev.c (rest_of_compilation): Delete dead jumptables before
16857         loop.
16858         * flow.c (delete_dead_jumptables): Make global.
16859         * rtl.h (delete_dead_jumptables): Declare.
16861 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
16863         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16864         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16865         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16867 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16869         * config/h8300/h8300-protos.h: Fix formatting.
16870         * config/h8300/h8300.c: Likewise.
16871         * config/h8300/h8300.h: Likewise.
16873 2002-03-01  Kazu Hirata  <kazu@hxi.com>
16875         * config/h8300/h8300.c (print_operand): Support 16-bit
16876         constant addresses.
16877         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16879 2002-02-28  Richard Henderson  <rth@redhat.com>
16881         * expmed.c (store_bit_field): Prevent generation of CONCATs;
16882         pun complex values as integers; use gen_lowpart instead of
16883         gen_rtx_SUBREG.
16884         (extract_bit_field): Likewise.
16886 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
16887             David Edelsohn  <edelsohn@gnu.org>
16889         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16890         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16891         (SUPPORTS_WEAK): Likewise.
16892         * output.h (add_weak): Add tree param.
16893         * varasm.c (add_weak): Likewise.  Save decl.
16894         (struct weak_syms): Add decl field.
16895         (mark_weak_decls): New function.
16896         (init_varasm_once): ggc_add_root mark_weak_decls.
16897         (assemble_start_function): Use ASM_WEAKEN_DECL.
16898         (assemble_variable): Likewise.
16899         (assemble_alias): Likewise.
16900         (declare_weak): Pass decl to add_weak.
16901         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16902         (remove_from_pending_weak_list): Declare and define for
16903         ASM_WEAKEN_DECL.
16904         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16905         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16906         * defaults.h (SUPPORTS_WEAK): Likewise.
16907         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16908         .weak for code sym.  Do emit .size for descriptor sym.
16909         (ASM_DECLARE_FUNCTION_SIZE): Define.
16910         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16911         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
16912         .lglobl unless TARGET_XCOFF.  Formatting fixes.
16913         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16914         .weak for code sym.
16915         (HANDLE_PRAGMA_WEAK): Remove.
16916         (ASM_WEAKEN_LABEL): Remove.
16917         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16919 2002-03-01  Jason Merrill  <jason@redhat.com>
16921         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16922         (TARGET_EXPR_CLEANUP): New macro.
16924 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
16926         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16927         to take ptr_extend into account as third type of extension.
16928         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16929         fields used by SUBREG_PROMOTED_UNSIGNED_P.
16930         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16931         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16932         * calls.c (precompute_arguments): Use new macro.
16933         (expand_call): Ditto.
16934         * combine.c (nonzero_bits): Ditto.
16935         (record_promoted_value): Ditto.
16936         * expr.c (store_expr): Ditto.
16937         (expand_expr): Ditto.
16938         * function.c (assign_parms): Ditto.
16940 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
16942         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16943         override -shared and -shared-libgcc.
16945 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
16947         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16948         of "ultrasparc".
16949         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
16950         to be broken.
16952 2002-02-28  Richard Henderson  <rth@redhat.com>
16954         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16955         4 cycle latency from MM producers.
16956         (ia64_internal_sched_reorder): Likewise with pipeline flush.
16958 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
16960         * mklibgcc.in: Don't use GNU make extension.
16962 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16964         * c-parse.in (STATIC): New terminal.
16965         (scspec): New non-terminal.  Update productions accordingly.
16966         (program): Remove bogus ifc / end ifc.
16967         (array_declarator): Simplify production using STATIC.
16969 2002-02-28  Jim Meyering  <meyering@lucent.com>
16971         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16972         \a still means TARGET_BELL.
16974 2002-02-28  Richard Henderson  <rth@redhat.com>
16976         * haifa-sched.c (sched_emit_insn): New.
16977         (schedule_block): Use last_scheduled_insn to track last insn.
16978         * sched-int.h (sched_emit_insn): Prototype.
16979         * config/ia64/ia64.c (last_issued): Remove.
16980         (ia64_variable_issue): Don't set it.
16981         (nop_cycles_until): Use sched_emit_insn.
16983 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
16985         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16986         extended constants.
16988 2002-02-28  Kazu Hirata  <kazu@hxi.com>
16990         * config/h8300/h8300.c: Fix formatting.
16991         * config/h8300/h8300.h: Likewise.
16993 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16995         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16996         which may overwrite the high byte of the frame pointer.
16998 2002-02-28  Bo Thorsen  <bo@suse.de>
17000         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17001         (STARTFILE_SPEC): Add 64 bit files.
17002         (ENDFILE_SPEC): Likewise.
17004 2002-02-28  Jason Merrill  <jason@redhat.com>
17006         * c-decl.c (finish_function): Only warn about missing return
17007         statement with -Wreturn-type.
17009 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
17011         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17013         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17014         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17016 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
17018         * basic-block.h (BB_REACHABLE): Renumber.
17019         (BB_DIRTY, BB_NEW): New flags.
17020         (clear_bb_flags): Declare.
17021         (update_life_info_in_dirty_blocks): Declare.
17022         * cfg.c (clear_bb_flags): New function.
17023         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17024         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17025         reorder_insns, emit_insn_after): Mark block as dirty.
17026         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17027         (update_life_info_in_dirty_blocks): New function.
17028         * recog.c (apply_change_group): Dirtify block.
17030         * cse.c (cse_insn): Reorder emitting of jump insn to keep
17031         cfg consistent.
17032         * gcse.c (delete_null_pointer_checks): Likewise.
17034         * toplev.c (dump_file_index): Move cse2 after bp,
17035         add DFI_null
17036         (dump_file_info): Similary.
17037         (rest_of_compilation): Avoid most of CFG rebuilds;
17038         do first if converision after null pointer checks, do cse2
17039         after branch prediction; avoid full liveness rebuild after
17040         initializing subregs.
17041         * invoke.texi (-d options): Document -du, renumber.
17043         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17044         (notice_new_block): Do not set BB_UPDATE_LIFE.
17045         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17046          merge_blocks_move_successor_nojumps, merge_blocks,
17047          try_crossjump_to_edge): Likewise.
17048         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17049         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17050         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17051         (merge_of_block): Do not use life_data_ok.
17052         (find_if_case_1): Do not use SET_UPDATE_LIFE.
17053         (if_convert): Use BB_DIRTY mechanizm to update life.
17054         * lcm.c (optimize_mode_switching): Update
17055         update_life_info_in_dirty_blocks
17057 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
17059         * Makefile.in (integrate.o): Update.
17060         * c-decl.c (copy_lang_decl): Rename.
17061         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17062         * integrate.c: Include langhooks.h.
17063         (copy_decl_for_inlining): Update to use langhook.
17064         * langhooks-def.h (lhd_do_nothing_t,
17065         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17066         (LANG_HOOKS_INITIALIZER): Update.
17067         * langhooks.c (lhd_do_nothing_t): New.
17068         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17069         * tree.h (copy_lang_decl): Remove.
17070 objc:
17071         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17073 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
17075         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17076         POST_DEC, and POST_MODIFY.
17078 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17080         * c-typeck.c (digest_init): Remove unused parameter; all
17081         callers changed.
17083 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
17085         * expmed.c (expand_shift): Correctly test for low part of a
17086         subreg.
17088 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
17090         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17091         insn UIDs with insn addresses.
17093 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17095         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17096         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17097         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17098         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17099         gcc.c, toplev.c: Delete code implementing -traditional mode.
17101         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17102         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17103         Document removal of -traditional mode for compilation, and
17104         remove documentation only relevant to that mode.
17106         * config/nextstep.h, config/ptx4.h, config/svr4.h,
17107         config/convex/convex.h, config/d30v/d30v.h,
17108         config/i386/dgux.h, config/i386/osf1elf.h,
17109         config/i386/osfelf.h, config/i386/osfrose.h,
17110         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17111         config/m68k/hp310.h, config/m88k/dgux.h,
17112         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17113         config/m88k/m88k.h, config/m88k/openbsd.h,
17114         config/mips/abi64.h, config/mips/osfrose.h,
17115         config/mips/svr4-5.h, config/mips/svr4-t.h,
17116         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17117         config/stormy16/stormy16.h: Remove all references to
17118         -traditional from target specs.  Delete all mention of the
17119         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
17120         delete a couple of commented-out definitions of
17121         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17122         to -traditional.
17124         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17125         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17127 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
17129         * mklibgcc.in: Don't use \n in a line subject to
17130         interpretation by echo.
17132 2002-02-27  Graham Stott  <grahams@redhat.com>
17134         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17135         Constify NAME.
17137         * loop.c (prescan_loop): Handle PARALLEL.
17139         * unroll.c (loop_iterations): Return 0 if the add_val for
17140         a BIV is REG.
17142         * final.c (output_operand_lossage): Constify PFX_STR.
17144         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
17146 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
17148         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
17149         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
17151 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
17153         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17155 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
17157         * cpplex.c (_cpp_lex_token): Handle directives in macro
17158         arguments.
17159         * cpplib.c (_cpp_handle_directive): Save and restore state
17160         if parsing macro args when entering a directive.
17161         * cppmacro.c (collect_args): No need to handle directives
17162         in macro arguments.
17163         (enter_macro_context, replace_args): Use the original macro
17164         definition in case it was redefined whilst collecting arguments.
17165 doc:
17166         * cpp.texi: Update.
17168 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
17170         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
17171         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
17172         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
17173         method on AIX.
17174         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
17175         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
17176         (load_toc_v4_PIC_2): Same.
17178 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
17180         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
17182 2002-02-26  Richard Henderson  <rth@redhat.com>
17184         * config/alpha/alpha.md (ashldi_se): Re-enable.
17186 2002-02-26  Richard Henderson  <rth@redhat.com>
17188         * config/alpha/alpha.c (alpha_encode_section_info): Examine
17189         MODULE_LOCAL_P; improve commentary.
17191 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
17193         * doc/cpp.texi: Clarify documentation of relationship between
17194         #line and #include.
17196 2002-02-26  Kazu Hirata  <kazu@hxi.com>
17198         * config/h8300/h8300-protos.h: Update the prototype for
17199         compute_logical_op_length.  Add the prototype for
17200         compute_logical_op_cc.
17201         * config/h8300/h8300.c (compute_logical_op_length): Figure out
17202         code from operands.
17203         (compute_logical_op_cc): New.
17204         * config/h8300/h8300.md: Combine all the logical op patterns
17205         in HImode and SImode.  Use compute_logical_op_cc.
17207 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
17209         * config/i386/i386.c (print_operand): Don't append ATT-style
17210         length suffixs to x87 opcodes when in Intel mode.
17212 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
17214         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
17215         (init_emit_once): Update calls.
17216         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
17217         (init_syntax_once): Prototype.
17219 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17221         * pa-linux.h (LIB_SPEC): Update definition.
17222         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17224 2002-02-26  Richard Henderson  <rth@redhat.com>
17226         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
17227         if we emitted a stop bit.
17229 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17231         * configure.in (libgcc_visibility): Substitute.
17232         * configure: Rebuilt.
17233         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
17234         defined symbols .hidden.
17236 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17238         * attribs.c (c_common_attribute_table): Add visibility.
17239         (handle_visibility_attribute): New function.
17240         * varasm.c (assemble_visibility): New function.
17241         * output.h (assemble_visibility): Add prototype.
17242         * tree.h (MODULE_LOCAL_P): Define.
17243         * crtstuff.c (__dso_handle): Use visibility attribute.
17244         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
17245         for MODULE_LOCAL_P symbols too.
17246         * config/ia64/ia64.c (ia64_encode_section_info): Handle
17247         MODULE_LOCAL_P symbols the same way as local symbols.
17248         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
17249         into .sdata/.sbss by the user.
17250         * doc/extend.texi (Function Attributes): Document visibility
17251         attribute.
17253 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
17255         PR debug/5770
17256         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
17257         STRING_CST initializer spanning the whole variable without
17258         embedded zeros.
17259         If expand_expr returned MEM, don't use it.
17261 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
17263         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
17264         generate a die for the lexical block.
17266 2002-02-26  Kazu Hirata  <kazu@hxi.com>
17268         * config/h8300/h8300-protos.h: Add a prototype for
17269         compute_logical_op_length.
17270         * config/h8300/h8300.c (compute_logical_op_length): New.
17271         * config/h8300/h8300.md (anonymous logical patterns): Use
17272         compute_logical_op_length for length.
17274 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17276         * dwarf2out.c (modified_type_die): Do not call type_main_variant
17277         for vectors.
17278         (gen_type_die): Same.
17280         * attribs.c (handle_vector_size_attribute): Set debug information.
17282 2002-02-26  Daniel Egger  <degger@fhm.edu>
17284         * config/rs6000/rs6000.md: Swap define_insn attributes to
17285         fix incorrect generation of merge high instructions instead
17286         of merge low.
17288 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17290         * c-typeck.c (really_start_incremental_init): Use
17291         bitsize_zero_node for vectors.
17293 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
17295         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
17296         ("*set_vrsave_internal"): Same.
17298 2002-02-25  Richard Henderson  <rth@redhat.com>
17300         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
17301         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
17303 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
17305         PR target/5755
17306         * config/i386/i386.c (ix86_return_pops_args): Only pop
17307         fake structure return argument if it was passed on the stack.
17309 2002-02-25  Jason Merrill  <jason@redhat.com>
17311         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
17312         RESULT_DECL.
17314 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17316         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
17317         link with shared_name only.
17318         * doc/invoke.texi (Link Options): Document new behavior.
17320 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17322         * c-typeck.c (push_init_level): Handle vectors.
17324 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
17326         * config/sparc/sparc.c (const64_high_operand): Zero-extend
17327         operands of SPARC_SETHI_P.
17328         (input_operand): Likewise.
17329         (sparc_emit_set_const32): Likewise.
17330         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
17331         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
17332         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
17333         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
17334         (movdi_insn_sp64_vis): Likewise.
17335         (movdi split, movdf split): Use SETHI32.
17336         * doc/md.texi: Document SPARC constraints L, M and N.
17338 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
17340         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
17341         ("*set_vrsave_internal"): use mfspr for Darwin.
17343         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
17344         gen_get_vrsave_internal.
17346 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17348         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
17350 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17352         * cpplex.c (cpp_interpret_charconst): Get signedness or
17353         otherwise of wide character constants correct.
17354         * cppexp.c (lex): Get signedness of wide charconsts correct.
17356 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17358         * optabs.c (widen_operand): Only call convert_modes for
17359         promoted SUBREG if signedness matches.
17360         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
17362 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17364         * cpplib.c (glue_header_name): Use local buffer to build up
17365         header name.
17367 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17369         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17371 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17373         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17374         H8/300[HS] separately.
17375         * config/h8300/h8300.md: Remove the early clobber constraint
17376         from bit field patterns.
17378 2002-02-23  Kazu Hirata  <kazu@hxi.com>
17380         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17381         register_operand.
17382         (mulhisi3): Likewise.
17383         (umulqisi3): Likewise.
17384         (umulhisi3): Likewise.
17386 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17388         * cppinit.c (output_deps): Correct test for stdout output.
17389         (init_dependency_output): Cure warning.
17391 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17393         * expr.c (store_expr): When converting expression to promoted
17394         equivalent type, allow using SUBREG_REG of TARGET as the target
17395         of the expansion of EXP.
17396         * loop.c (basic_induction_var, case SUBREG): Always look inside.
17397         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17398         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17399         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17400         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17402 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
17404         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17405         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17406         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17408 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
17410         PR optimization/5747
17411         * loop.c (scan_loop): Update reg info if move_movables created new
17412         pseudos.
17414 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17416         * gcc.c (init_gcc_spec): Revert last change.
17418 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
17420         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17421         gpc_reg_operand constraint.
17423 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
17425         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17426         Simplify comparison of `low'.
17427         (add_operand): Fix formatting.
17428         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17429         (mask_operand): Disallow mask to wrap in 64-bit mode.
17430         (rs6000_stack_info): Remove redundant test setting push_p.
17431         (output_toc): Fix formatting.
17432         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17433         cc_reg_not_cr0_operand constraint.
17434         (booldi3, boolcdi3 splitters): Same.
17436 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
17438         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17440 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
17442         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17443         gcc invoked with -shared-libgcc.
17445 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
17447         PR c++/5748
17448         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17449         decl if any of elements was TREE_USED.
17451 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
17453         * config/sparc/sol2.h: Don't include sys/mman.h.
17454         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17455         (arith_4096_operand): Don't throw high bits away.
17456         (const64_operand): Take sign extension of CONST_INTs into account.
17457         (const64_high_operand, sparc_emit_set_const32): Likewise.
17458         (GEN_HIGHINT64): Likewise.
17459         (sparc_emit_set_const64_quick1): Likewise.
17460         (const64_is_2insns): Likewise.
17461         (print_operand): Use trunc_int_for_mode for sign extension.
17462         * config/sparc/sparc.h (SMALL_INT32): Likewise.
17463         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17464         chars.  Assume CONST_INT is already properly sign-extended.
17465         (movdi split): Sign-extend each SImode part.
17466         (andsi3 split): Don't mask high bits off, so that result
17467         remains properly sign-extend.
17468         (iorsi3 split): Likewise.
17469         (xorsi3 split): Likewise.
17471 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
17473         * fold-const.c (fold): Fix typo in comments.
17475 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17477         * Makefile.in (langhooks.o): Update dependencies.
17479 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
17481         * langhooks.c: Include flags.h.
17483 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
17485         * testsuite/gcc.dg/attr-alwaysinline.c: New.
17487         * c-common.c (c_common_post_options): Set inline trees by
17488         default.
17490         * doc/extend.texi (Function Attributes): Document always_inline
17491         attribute.
17492         Update documentation about inlining when not optimizing.
17494         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17496         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17497         unless DECL_ALWAYS_INLINE.
17499         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17500         unless DECL_ALWAYS_INLINE.
17501         (c_disregard_inline_limits): Disregard if always_inline set.
17503         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17504         Disregard if always_inline set.
17505         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17506         unless DECL_ALWAYS_INLINE.
17508         * attribs.c (handle_always_inline_attribute): New.
17509         (c_common_attribute_table): Add always_inline.
17511         * config/rs6000/altivec.h: Add prototypes for builtins
17512         requiring the always_inline attribute.
17514 2002-02-21  Eric Christopher  <echristo@redhat.com>
17516         * expmed.c (store_bit_field): Try to simplify the subreg
17517         before generating a new one when when the mode size of
17518         value is less than maxmode.
17520 2002-02-21  Richard Henderson  <rth@redhat.com>
17522         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17523         than gen_rtx_PLUS to form the sum.
17524         * explow.c (force_reg): Rearrange to not allocate new pseudo
17525         when force_operand returns a register.
17526         * expr.c (expand_assignment): Allow offset_rtx expansion to
17527         return a sum.  Do not force addresses into registers.
17528         (expand_expr): Likewise.
17529         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17530         to canonicalize arithmetic that didn't simpify.
17531         (simplify_plus_minus): New argument force; update
17532         all callers.  Don't split CONST unless we can do something with it,
17533         and wouldn't lose the constness of the operands.
17535         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17536         that we generated earlier.
17538 2002-02-21  Tom Tromey  <tromey@redhat.com>
17540         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17541         (output_line_info): Use constant `1', with a long explanatory
17542         comment.
17543         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17545 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
17547         * jump.c (redirect_jump): If old label has no UID, don't try to
17548         delete it.
17550 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
17552         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17553         If input is constant, do shifts at compile time.
17555 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17557         * doc/extend.texi: Fix some more overfull hboxes.
17559 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17561         PR optimization/4994
17562         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17563         register moves.
17565 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17567         PR c++/4574
17568         * expr.h (expand_and): Add mode argument.
17569         * expmed.c (expand_and): Add mode argument.
17570         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17571         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17572         * except.c (expand_builtin_extract_return_addr): Likewise.
17573         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17574         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17575         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17576         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17577         * config/c4x/c4x.md: Use GEN_INT (x) instead of
17578         gen_rtx (CONST_INT, VOIDmode, x).
17580 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
17582         PR c/4697:
17583         * stmt.c (warn_if_unused_value): Move side effects test once more.
17585 2002-02-20  Torbjorn Granlund  <tege@swox.com>
17587         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17588         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17590 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
17592         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17593         SUBREG or ZERO_EXTEND.
17595 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
17597         * sh.h (current_function_anonymous_args): Remove.
17598         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17599         of current_function_varargs and current_function_stdarg is set.
17600         * sh.c (sh_expand_prologue): Check current_function_varargs /
17601         current_function_stdarg / TARGET_SH5 instead of
17602         current_function_anonymous_args.
17604         * sh64.h (TARGET_VERSION): Define.
17606 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
17608         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17609         VRSAVE_REGNO on TARGET_ALTIVEC.
17611 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
17613         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17614         bits of SImode const_int.
17615         (includes_rshift_p): Likewise.
17616         (print_operand): Call mask_operand and mask64_operand with correct
17617         mode.
17618         (rs6000_output_function_epilogue): Pad traceback table to word.
17619         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17620         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17621         mask64_operand with correct mode.
17622         (FUNCTION_ARG_REGNO_P): Correct parentheses.
17624 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17626         PR debug/4461
17627         * varasm.c (get_pool_constant_mark): New.
17628         * rtl.h (get_pool_constant_mark): Add prototype.
17629         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17630         be represented if it has not been output.
17632 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17634         * combine.c (do_SUBST): Sanity check substitutions of
17635         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17636         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17637         CONST_INT into its operand.
17638         (known_cond): Likewise, for ZERO_EXTEND.
17639         * simplify-rtx.c (simplify_unary_operation): Fix condition to
17640         allow for simplification of wide modes.  Reject CONST_INTs in
17641         ZERO_EXTEND when their actual mode is not given.
17643 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
17645         * c-decl.c (pushdecl): If no global declaration is found for an
17646         extern declaration in block scope, try a limbo one.
17648 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17650         PR c++/4401
17651         * c-common.c (pointer_int_sum): Moved from...
17652         * c-typeck.c (pointer_int_sum): ...here.
17653         * c-common.h (pointer_int_sum): Add prototype.
17655 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
17657         PR c++/5713
17658         * c-decl.c (duplicate_decls): Return 0 if issued error about
17659         redeclaration.
17661 2002-02-20  Roger Sayle  <roger@eyesopen.com>
17662             Jakub Jelinek  <jakub@redhat.com>
17664         PR c/4389
17665         * tree.c (host_integerp): Ensure that the constant integer is
17666         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17667         when pos is zero or non-zero respectively.  Clarify comment.
17668         * c-format.c (check_format_info_recurse): Fix host_integerp
17669         usage; the pos argument should be zero when assigning to a
17670         signed HOST_WIDE_INT.
17672 2002-02-20  Richard Henderson  <rth@redhat.com>
17674         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17675         of the operand, rather than assuming TImode.
17676         (ix86_expand_binop_builtin): Cope with commutative patterns
17677         using nonimmediate_operand for both operands.
17678         (ix86_expand_timode_binop_builtin): Likewise.
17679         (ix86_expand_store_builtin): Validate operand 1.
17680         (ix86_expand_unop1_builtin): Likewise.
17682 2002-02-20  Philip Blundell  <philb@gnu.org>
17684         PR 5705
17685         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17687 2002-02-20  Richard Henderson  <rth@redhat.com>
17689         PR c/5615
17690         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17692 2002-02-20  Tom Tromey  <tromey@redhat.com>
17694         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17695         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17696         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17697         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17698         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17699         unconditionally.
17701 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17703         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17704           for (const_int 0) in X not just INTVAL.
17706 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
17708         * doc/extend.texi: Avoid or reduce overfull hboxes.
17710 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
17712         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17713         operations if the field does not start at a mode boundary.
17715 2001-02-20      Joel Sherrill <joel@OARcorp.com>
17717         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17718         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17719         Also done for -Acpu and -Amachine.
17721 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17723         * cppinit.c (init_dependency_output): Take deps output file
17724         from -o if none given with -MF.  Suppress normal output.
17725         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17726         * doc/cpp.texi, doc/invoke.texi: Update.
17728 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17730         * toplev.c (output_quoted_string): Write unprintable
17731         characters with octal escapes.
17733 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17735         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17736         really_call_used[VRSAVE_REGNO] if not Altivec.
17738 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
17740         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17741         MODE_MASK.
17742         (constant_pool_expr_1): Fix formatting.
17743         (rs6000_legitimize_reload_address): Likewise.
17745 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17747         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17748         now that we have one.
17750 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
17752         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
17753         end of first block of bitfields (which was only seven bits);
17754         rename dummy to unused_1; remove comment which is no longer true.
17756 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17758         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17760 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17762         PR 5399
17763         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17764         if generating PIC.
17766         PR 5054
17767         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17768         arm_is_longcall_p rather than inspecting call-type cookie
17769         directly.
17770         (call_value_insn) [TARGET_THUMB]: Likewise.
17772 2002-02-19  Graham Stott  <grahams@redhat.com>
17774         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17776 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
17778         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17779         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17780         (FP_SAVE_INLINE): Delete.
17782         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17783         * config/rs6000/eabi.asm: Remove ABI save restore routines.
17784         * config/rs6000/t-ppccomm: Build crtsavres.o.
17785         * config/rs6000/crtsavres.asm: New file.
17787 2002-02-19  Philip Blundell  <philb@gnu.org>
17789         * config/arm/arm.c (use_return_insn): Don't reject interrupt
17790         functions.
17791         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17792         (output_return_instruction): Allow interrupt functions to return with
17793         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
17794         (arm_expand_prologue): Subtract 4 before stacking LR in an
17795         interrupt function.
17797 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
17799         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17800         decl, not just FUNCTION_DECL.
17801         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17802         (arm_assemble_integer): Likewise.
17803         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17804         marked local.
17806 2002-02-19  matthew green  <mrg@eterna.com.au>
17808         * config.gcc (sparc-*-netbsdelf*): Enable target.
17809         (sparc64-*-netbsd*): New target.
17810         * config/sparc/netbsd-elf.h: New file.
17811         * config/sparc/t-netbsd64: New file.
17813 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
17815         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17817 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
17819         * doc/invoke.texi: explicitly list the style guidelines that
17820         -Weffc++ checks for.
17822 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
17824         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17826 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
17828         PR other/5718
17829         * gcc.c (cpp_unique_options): Treat -o as indicating object file
17830         only if not -E.  If -E, pass -o through to the preprocessor.
17832 2002-02-19  Kazu Hirata  <kazu@hxi.com>
17834         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17835         register number with an appropriate macro.
17837 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
17839         * doc/rtl.texi (Constants): Close @code tag.
17841 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
17843         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17844         ("mmx_uavgv4hi3"): Same.
17845         ("pmulhrwv4hi3"): Same.
17847         * tree-inline.c (walk_tree): Handle vectors.
17849         * c-common.c (constant_expression_warning): Handle vectors.
17850         (overflow_warning): Same.
17852         * sched-deps.c (sched_analyze_2): Handle vectors.
17854         * rtlanal.c (rtx_unstable_p): Handle vectors.
17855         (rtx_varies_p): Same.
17856         (count_occurrences): Same.
17857         (regs_set_between_p): Same.
17858         (modified_between_p): Same.
17859         (modified_in_p): Same.
17860         (volatile_insn_p): Same.
17861         (volatile_refs_p): Same.
17862         (side_effects_p): Same.
17863         (may_trap_p): Same.
17864         (inequality_comparisons_p): Same.
17865         (replace_regs): Same.
17866         (computed_jump_p_1): Same.
17868         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17869         argument.
17870         (inner_mode_array): New.
17871         (copy_rtx): Handle vectors.
17872         (copy_most_rtx): Same.
17873         (rtx_equal_p): Same.
17874         (get_mode_alignment): Adjust for vectors.
17876         * resource.c (mark_referenced_resources): Handle vectors.
17877         (mark_set_resources): Same.
17879         * reload1.c (eliminate_regs): Handle vectors.
17880         (elimination_effects): Same.
17881         (scan_paradoxical_subregs): Same.
17883         * reload.c (subst_reg_equivs): Handle vectors.
17885         * regrename.c (scan_rtx): Handle vectors.
17887         * regclass.c (reg_scan_mark_refs): Handle vectors.
17889         * recog.c (find_single_use_1): Handle vectors.
17891         * local-alloc.c (equiv_init_varies_p): Handle vectors.
17892         (contains_replace_regs): Same.
17893         (memref_referenced_p): Same.
17895         * integrate.c (copy_rtx_and_substitute): Handle vectors.
17896         (subst_constants): Same.
17898         * genattrtab.c (attr_copy_rtx): Handle vectors.
17899         (encode_units_mask): Same.
17900         (clear_struct_flag): Same.
17901         (count_sub_rtxs): Same.
17903         * gcse.c (want_to_gcse_p): Handle vectors.
17904         (oprs_unchanged_p): Same.
17905         (hash_expr_1): Same.
17906         (oprs_not_set_p): Same.
17907         (expr_killed_p): Same.
17908         (compute_transp): Same.
17909         (store_ops_ok): Same.
17911         * function.c (purge_addressof_1): Do not allow paradoxical subregs
17912         of vectors.
17913         (fixup_var_refs_1): Same.
17914         (instantiate_virtual_regs_1): Same.
17916         * fold-const.c (operand_equal_p): Handle vectors.
17917         (fold): Same.
17918         (rtl_expr_nonnegative_p): Same.
17920         * flow.c (mark_used_regs): Handle vectors.
17922         * df.c (df_uses_record): Handle vectors.
17924         * cselib.c (cselib_subst_to_values): Handle vectors.
17925         (cselib_mem_conflict_p): Same.
17926         (hash_rtx): Same.
17928         * cse.c (canon_reg): Handle vectors.
17929         (fold_rt): Same.
17930         (cse_process_notes): Same.
17931         (count_reg_usage): Same.
17932         (canon_hash): Same.
17934         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17936         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17938         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17939         (gen_rtx): Handle CONST_VECTOR.
17940         (gen_const_vector_0): New.
17941         (copy_rtx_if_shared): CONST_VECTORs can be shared.
17942         (reset_used_flags): Same.
17943         (copy_insn_1): Same.
17944         (initializer_constant_valid_p): Handle VECTOR_CST.
17946         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17948         * doc/rtl.texi (Constants): Document const_vector.
17949         (CONST0_RTX): Update for vectors.
17950         (RTL sharing): Same.
17952         * print-tree.c (print_node): Add case for VECTOR_CST.
17954         * tree.h (TREE_VECTOR_CST_ELTS): New.
17955         (struct tree_vector): New.
17956         (union tree_node): Add vector node.
17957         (build_vector): Add prototype.
17959         * tree.def (VECTOR_CST): New.
17961         * tree.c (build_vector): New.
17963         * expmed.c (make_tree): Handle CONST_VECTOR.
17965         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17966         (CONST_VECTOR_ELT): New.
17967         (CONST_VECTOR_NUNITS): New.
17969         * machmode.h (GET_MODE_INNER): New.
17970         (DEF_MACHMODE): Accept 8th arg.
17972         * machmode.def: Add 8th argument for vector inner mode.
17973         Add inner vector modes for vectors.
17975         * rtl.def (VEC_CONST): Remove.
17976         (CONST_VECTOR): New.
17978         * expr.c (clear_storage): Allow vectors.
17979         (is_zeros_p): Handle VECTOR_CST.
17981         * varasm.c (output_constant_pool): Handle vectors.
17982         (rtx_const): Add veclo and vechi fields.
17983         (kind): Add RTX_VECTOR.
17984         (decode_rtx_const): Add case for vector.
17986         * config/rs6000/rs6000-protos.h: Add zero_constant.
17988         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17989         constants.  Force easy vector constants into memory.
17990         (easy_vector_constant): New.
17991         (emit_easy_vector_constant): New.
17992         (rs6000_legitimize_reload_address): Do not generate bad reloads on
17993         darwin.
17995         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17996         instruction does.
17997         ("altivec_lvxl"): Same.
17998         (altivec_lvebx): Same.
17999         (altivec_lvehx): Same.
18000         (altivec_lvewx): Same.
18001         ("*movv4si_const0"): New.
18002         ("*movv4sf_const0"): New.
18003         ("*movv8hi_const0"): New.
18004         ("*movv16qi_const0"): New.
18006 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18008         * config/h8300/h8300.c (notice_update_cc): Use
18009         cc_status.value2.
18011 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18013         * config/h8300/h8300.md (divmod patterns): Change the
18014         constraints for operands[1] to register_operand.
18016 2002-02-18  Kazu Hirata  <kazu@hxi.com>
18018         * config/h8300/h8300-protos.h: Remove the prototype for
18019         p_operand.
18020         * config/h8300/h8300.c (p_operand): Remove.
18021         * config/h8300/h8300.md: Replace p_operand with
18022         const_int_operand.
18024 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18026         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18027         comment.
18028         (output_return_instruction): Allow use of LDR to unstack
18029         return addresss even for interrupt handlers or when
18030         interworking.  If compiling for ARMv5, use interworking-safe
18031         return instructions by default.  Remove duplicated code and
18032         lengthy "strcat" sequences.
18034 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18036         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18037         (LINK_EH_SPEC): Define.
18038         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18040 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
18042         * config/s390/s390.c (s390_emit_prologue): Do not set the
18043         frame_related flag for call-clobbered registers.
18045 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
18047         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18048         (construct_container): Fix handling of SSE operands.
18049         (ix86_expand_builtin): Fix handling of 64bit pointers.
18050         (mmx_maskmovq_rex): New pattern.
18052 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
18054         * regrename.c (kill_set_value): Handle subregs properly.
18056 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
18058         * objc/objc-act.c (handle_impent): Remove leading '*'
18059         from objc_class_name.
18061 2002-02-17  Richard Henderson  <rth@redhat.com>
18063         * config/alpha/alpha.c (some_small_symbolic_operand,
18064         some_small_symbolic_operand_1, split_small_symbolic_operand,
18065         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18066         Handle small SYMBOL_REFs anywhere, not just inside memories.
18067         * config/alpha/alpha-protos.h: Update.
18068         * config/alpha/alpha.h (PREDICATE_CODES): Update.
18069         * config/alpha/alpha.md (small symbolic operand splitter): Update.
18071 2002-02-17  Roland McGrath  <roland@frob.com>
18073         * config.gcc (powerpc-*-gnu-gnualtivec*,
18074         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18075         * config/rs6000/gnu.h: New file.
18076         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18077         Grok "gnu" in rs6000_abi_name.
18078         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18079         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18080         Grok -mcall-gnu analogous to -mcall-linux et al.
18081         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18082         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18083         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18085 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
18087         PR c/3444:
18088         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18089         shortening.
18091 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18093         * config/cris/cris.h: Undefine STARTFILE_SPEC and
18094         ENDFILE_SPEC before (re)defining them.
18096 2002-02-17  Kazu Hirata  <kazu@hxi.com>
18098         * config/h8300/h8300.c: Fix formatting.
18099         * config/h8300/h8300.h: Likewise.
18101 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18103         * doc/tm.texi: Explain why empty strings should not be
18104         marked for translation.
18106 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18108         * final.c (output_operand_lossage): Changed to accept
18109         printf style arguments. Change calls where necessary.
18110         * output.h (output_operand_lossage): Change declaration
18111         accordingly. Update copyright.
18112         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18113         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18114         Update copyright date where necessary.
18116         * config/i386/i386.c (print_operand): Likewise. Remove use of
18117         sprintf.
18119         * config/cris/cris.c (cris_operand_lossage): Likewise.
18120         Rename parameter so that exgettext recognizes it as
18121         translatable message.
18122         (LOSE_AND_RETURN): Rename parameter to msgid.
18124 2002-02-17  Kazu Hirata  <kazu@hxi.com>
18126         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18127         hard coded register number with an appropriate macro.
18128         (HARD_REGNO_MODE_OK): Likewise.
18129         (ARG_POINTER_REGNUM): Likewise.
18130         (STATIC_CHAIN_REGNUM): Likewise.
18131         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18132         * config/h8300/h8300.md (define_constants): Define more
18133         register numbers.
18135 2002-02-17  Philipp Thomas  <pthomas@suse.de>
18137         * config/i386/i386.h: Don't mark empty strings for translation.
18139 2002-02-16  H.J. Lu <hjl@gnu.org>
18141         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
18143 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
18145         * cppinit.c (merge_include_chains): Check for brack being
18146         NULL before attempting to merge it with qtail.
18148 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
18150         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
18151         DBX_DEBUG.
18153 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18155         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
18157 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18159         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
18160         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
18161         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
18163 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18165         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
18166         now only if !TARGET_FIX.
18167         (*movsi_nt_vms_fix): New pattern.
18169 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
18171         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
18172         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
18173         (alpha_sa_mask, alpha_sa_size): Reflect above change.
18174         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
18175         (alpha_start_function, alpha_expand_epilogue): Likewise.
18176         (unicosmk_gen_dsib): Likewise.
18178 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18180         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
18182 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
18184         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
18185         check_and_change_labels, s390_final_chunkify): Delete.
18186         (s390_split_branches, s390_chunkify_pool): New functions.
18187         (s390_function_prologue): Call them.
18189         * config/s390/s390.h (S390_REL_MAX): Delete.
18190         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
18192         * config/s390/s390.md (cjump, icjump, jump): Fix length
18193         attribute calculation.
18196 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
18198         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
18199         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
18201 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18203         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
18204         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
18205         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
18207 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
18209         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
18211 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
18213         * reload.c (find_dummy_reload): Check that an output register
18214         is valid for its mode.
18216 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
18218         * combine.c (known_cond): After replacing the REG of a SUBREG, try
18219         to simplify it.
18221         * function.c (assign_parms): Demote promoted argument passed by
18222         transparent reference.
18224 2001-02-14      Joel Sherrill <joel@OARcorp.com>
18226         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
18227         -Acpu() and -Amachine() to eliminate warnings.
18229 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
18231         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
18233 2002-02-14  Kazu Hirata  <kazu@hxi.com>
18235         * config/h8300/h8300-protos.h: Update the prototype for
18236         const_costs.
18237         * config/h8300/h8300.c (const_costs): Treat SET as a little
18238         more expensive operation.
18239         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
18240         reference to const_costs.
18242 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
18244         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
18246 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
18248         PR c/5503:
18249         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
18250         use arguments from newtype.
18252 2002-02-13  Eric Christopher  <echristo@redhat.com>
18254         * config/mips/mips.c (override_options): Add check for march/mipsX
18255         on the same command line. Fix error message in cpu processing.
18256         Remove architecture and ISA checks.
18258 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
18260         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
18262         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
18264 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
18266         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
18267         alternatives.
18268         ("*movv8hi_internal1"): Same.
18269         ("*movv16qi_internal1"): Same.
18270         ("*movv4sf_internal1"): Same.
18272         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
18273         not push_reload for altivec modes.
18275 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
18277         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
18278         all RTEMS targets including removal of #includes from config/*/rtems*.h
18279         file and adding them to tm_file setting. Added xm_defines=POSIX to
18280         many targets.
18281         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
18282         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
18283         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
18284         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
18285         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
18286         config/m68k/rtemself.h: Ditto.
18287         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
18288         config/mips/rtems64.h: Ditto.
18289         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
18290         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
18291         Ditto.
18292         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
18293         config/sparc/rtemself.h: Ditto.
18294         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
18295         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
18296         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
18297         more like arm-elf.
18298         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
18299         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
18300         target made more similar to i386-elf.
18301         * config/i386/t-rtems-i386: Added soft float support and multilibs.
18302         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
18303         be similar to config/m68k/t-m68kelf.
18304         * gthr-rtems.h: Encapsulate with extern "C" for C++.
18306 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
18308         * regmove.c (kill_value): Handle subregs.
18310 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
18312         * i386.md (mul patterns): Allow memory operand to be first;
18313         add expanders where needed; fix constraints.
18314         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
18315         Allow memory operand to be the first.
18317         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
18318         operands.
18320 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18322         PR c/5681:
18323         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
18324         GET_MODE (x).
18326 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
18328         PR optimization/5547:
18329         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
18330         all valid IA-32 address modes involving non-scaled %ebx and
18331         GOT/GOTOFF as displacement.
18333 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
18335         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
18336         after emitting ltorg insns.
18338         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
18339         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
18340         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
18341         *abssf2): Fix "op_type" attribute.
18343 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
18345         * mkconfig.sh: Avoid using a subshell redirect.
18346         ($output.T): Change to $(output)T.
18347         (ENABLE_NLS): Remove unneeded undef.
18349         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
18350         * config/alpha/x-vms (libsubdir): Define.
18352         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
18353         register frame procedures. Optimize retrieving context.
18355         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
18356         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
18357         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
18359 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18361         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
18362         Make same change as for find_base_value.
18364 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18366         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18367         of QImode and SImode.
18369 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18371         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18372         length computation of movsi.
18373         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18375 2002-02-13  Kazu Hirata  <kazu@hxi.com>
18377         * config/h8300/h8300.md (subqi3): Tighten the predicate for
18378         operands[2] to register_operand.
18380 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18382         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18384 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
18386         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18387         for altivec_lvx* and altivec_stvx*.
18388         ("*movv4si_internal"): Add constraint for loading from GPRs.
18389         ("*movv8hi_internal1"): Same.
18390         ("*movv16qi_internal1"): Same.
18391         ("*movv4sf_internal1"): Same.
18393         * config/rs6000/rs6000.c (altivec_register_operand): New.
18395         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18396         altivec_register_operand.
18398 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
18400         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18401         handle SYMBOL_REF.
18403 2002-02-13  Stan Shebs  <shebs@apple.com>
18405         * c-typeck.c (digest_init): Handle vectors.
18406         (really_start_incremental_init): Same.
18407         (pop_init_level): Same.
18408         (process_init_element): Same.
18410         * varasm.c (output_constant): Same.
18412         * expr.c (clear_storage): Same.
18413         (store_constructor): Same.
18415 2002-02-12  Eric Christopher  <echristo@redhat.com>
18417         * explow.c (hard_function_value): Add comment explaining
18418         signed/unsigned comparison.
18420 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
18422         * jump.c (never_reached_warning): Add finish argument.
18423         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18424         real insn after end.
18425         * rtl.h (never_reached_warning): Adjust prototype.
18426         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18427         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18428         never_reached_warning.
18430 2002-02-12  Graham Stott  <grahams@redhat.com>
18432         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18434 2002-02-12  Kazu Hirata  <kazu@hxi.com>
18436         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18437         logical shifts on H8/300.
18438         (shift_alg_si): Improve several shifts on H8/300.
18439         (get_shift_alg): Likewise.
18441 2002-02-12  Graham Stott  <grahams@redhat.com>
18443         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18445 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18447         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18448         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18450 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
18452         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18453         non-CONST_INT through default_assemble_integer.
18454         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18455         <case 8>: Abort for CONST_DOUBLE.
18457 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18459         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18460         is specified.
18461         * config/pa/pa-linux.h (LIB_SPEC): Delete.
18462         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18464 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
18466         * config/stormy16/stormy16.md (zero_extendqihi2): New.
18468 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
18470         * regrename.c (regrename_optimize): Don't accept a
18471         part-clobbered register if the replaced register is not part
18472         clobbered.
18474         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18475         take padding into account when computing the argument value.
18477         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18479         * combine.c (try_combine): Apply substitutions in
18480         CALL_INSN_FUNCTION_USAGE too.
18482 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
18484         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18485         __builtin_altivec_abs*.
18486         (bdesc_abs): New.
18488         * config/rs6000/rs6000.h (rs6000_builtins): Add
18489         ALTIVEC_BUILTIN_ABS*.
18491         * config/rs6000/altivec.h: Use const char for builtins expecting
18492         literals.
18493         (vec_abs): New versions for C and C++.
18494         (vec_abss): Same.
18496 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18498         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18499         using Pmode.
18501 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18503         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18504         constant definition from h8300.md.
18505         (FRAME_POINTER_REGNUM): Likewise.
18506         * config/h8300/h8300.md (define_constants): Add FP_REG.
18508 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18510         * config/h8300/h8300.c (print_operand): Remove redundant code.
18512 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18514         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18515         * config/h8300/h8300.c (byte_reg): Make it static.
18517 2002-02-10  Richard Henderson  <rth@redhat.com>
18519         PR c/5623
18520         * c-typeck.c (incomplete_type_error): Handle flexible array members.
18522 2002-02-10  Richard Henderson  <rth@redhat.com>
18524         PR c++/5624
18525         * tree.c (append_random_chars): Don't abort if main_input_filename
18526         does not exist.
18528 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
18530         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18532 2002-02-10  Kazu Hirata  <kazu@hxi.com>
18534         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18535         (pushhi1): Likewise.
18537 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18539         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18540         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18542 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
18544         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18545         remove MASK_VIS.
18546         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
18548 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18550         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18551         a half of an SImode register on H8/300.
18553 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
18555         * i386.md (movdi_2): Add missing '!'.
18557 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18559         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
18560         definitions.
18562 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18564         * config/h8300/h8300.md (length): Correct the distance valid
18565         for the short branch.
18567 2002-02-09  Kazu Hirata  <kazu@hxi.com>
18569         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18571 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18573         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18574         registers in SImode.
18575         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18576         part-clobbered.
18578         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18579         patch.
18581         Contribute sh64-elf.
18582         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
18583         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18584         (sh_cannot_modify_jumps_p): New function.
18585         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18586         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18587         (sh_ms_bitfield_layout_p): New function.
18588         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
18589                     Zack Weinberg  <zack@codesourcery.com>
18590         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18591         expand_simple_binop instead of expand_binop.
18592         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
18593         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18594         use of .quad and .uaquad.
18595         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18596         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18597         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18598         * config/sh/sh.md (movdi_const, movdi_const_32bit,
18599         movdi_const_16bit): Make sure all CONSTs have modes.
18600         (sym2PIC): Ditto, but by adjusting all callers.
18601         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18602         if the prologue calls the SHmedia argument decoder or register
18603         saver.
18604         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18605         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18606         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18607         (sh_expand_epilogue): Don't emit USE of return target register.
18608         (prepare_move_operands): Legitimize DImode PIC addresses.
18609         (sh_media_register_for_return): Skip tr0, used to initialize the
18610         PIC register.
18611         (sh_expand_prologue): Remove explicit USE of return register.
18612         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
18613         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
18614         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18615         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18616         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18617         EXTRA_CONSTRAINT_T.
18618         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18619         (MOVI_SHORI_BASE_OPERAND_P): New.
18620         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18621         (EXTRA_CONSTRAINT_T): Define in terms of them.
18622         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18623         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18624         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18625         alternatives supporting TARGET_REGS.
18626         (UNSPEC_GOTPLT): New constant.
18627         (movdi split): Move incrementing of LABEL_NUSES...
18628         (movdi_const, movdi_const_32bit): Here.  Use
18629         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18630         (movdi_const_16bit): New.
18631         (call, call_value) [flag_pic]: Use GOTPLT.
18632         (call_pop, call_value_pop): New expands.
18633         (call_pop_compact, call_pop_rettramp): New insns.
18634         (call_value_pop_compact, call_value_pop_rettramp): New insns.
18635         (sibcall) [flag_pic]: Use GOT.
18636         (builtint_setjmp_receiver): Remove bogus, unused expand.
18637         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18638         (*pt, *ptb, ptrel): New insns.
18639         (sym2GOT): Handle DImode GOT.
18640         (sym2GOTPLT, symGOTPLT2reg): New expands.
18641         (sym2PIC): New expand.
18642         (shcompact_return_tramp): Use GOTPLT to return trampoline.
18643         (shcompact_return_tramp_i): Use return register explicitly.
18644         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18645         disable flag_reorder_blocks.
18646         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18647         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18648         clobbers, for clarity.
18649         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18650         restoring of r0 in macl as MAYBE_DEAD.
18651         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
18652         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18653         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18654         alter_subreg all over.
18655         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18656         reload, instead of emitting instructions that would require
18657         reloading.
18658         (casesi_load_media): Add missing modes.
18659         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
18660         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18661         as used if the argument decoder is called.
18662         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18663         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18664         Pmode, then extend it to DImode if necessary.
18665         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18666         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18667         constants in FPU-enabled SHmedia, let them be loaded from memory.
18668         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
18669         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18670         Adjust whitespace in assembly output templates.
18671         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
18672         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18673         mode of if_then_else.
18674         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
18675         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18676         sh.h.
18677         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
18678                     Joern Rennecke <amylaar@redhat.com>
18679         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18680         (SUBTARGET_CPP_PTR_SPEC): New.
18681         (SUBTARGET_CPP_SPEC): Remove.
18682         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18683         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18684         Fix typo in previous checkin.
18685         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
18686         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18687         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
18688                     Alexandre Oliva  <aoliva@redhat.com>
18689         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18690         what single FP register can hold for SHmedia target.
18691         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
18692                     Alexandre Oliva  <aoliva@redhat.com>
18693         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18694         Do not split into SUBREG.
18695         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
18696         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18697         and added new functions as specified in SH5 ABI r9.
18698         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
18699         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18700         8-byte boundary.
18701         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
18702         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18703         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
18704         and consttable_window_ends.
18705         2001-06-03  Graham Stott  <grahams@redhat,com>
18706         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18707         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
18708         * config/sh/sh.c (print_operand): Handle floating-point pair,
18709         vector and matrix registers.
18710         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18711         vector modes into account.
18712         * config/sh/sh.md (movv2sf): Split move between registers into
18713         movdf.
18714         (movv4sf, movv16sf): Introduce insns that get split only after
18715         reload.
18716         * config/sh/shmedia.h: Fix Copyright dates.
18717         * config/sh/ushmedia.h: Likewise.  Move loop counter
18718         declarations into conditionals that uses them.
18719         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18720         loop boundary.
18721         * config/sh/sshmedia.h: Fix Copyright dates.
18722         (sh_media_PUTCFG): Fix constraints.
18723         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
18724         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18725         ptrmemfunc_vbit_in_delta for SH5.
18726         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
18727         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18728         * invoke.texi: Likewise.
18729         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
18730         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18731         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18732         GCC_pop_shmedia_regs_nofpu): New global symbols.
18733         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18734         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18735         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18736         compact function with nonlocal labels.
18737         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18738         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18739         (initial_elimination_offset): Account for their stack space.
18740         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18741         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18742         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18743         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18744         least one of the operands to be a register.
18745         (movv2sf): Likewise.  Renamed to movv2sf_i.
18746         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18747         prepare_move_operands() before emitting SHmedia insns.
18748         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
18749         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18750         Don't save nor initialize r12.  Don't mis-align the stack.
18751         Pad the code with a nop.
18752         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
18753         stack.
18754         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
18755         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18756         [__SHMEDIA__]: Implement.
18757         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
18758         * config/sh/sh.md: Set latency of `pt' closer to reality.
18759         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18760         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18761         Set move, load and store type attributes.
18762         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18763         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18764         profiling.
18765         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18766         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18767         * config/sh/sh.c (sh_media_register_for_return): New function.
18768         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18769         branch-target register.
18770         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18771         * config/sh/sh.md (return_media_i): Use any call-clobbered
18772         branch-target register.
18773         (return_media): If r18 wasn't copied in the prologue, copy it
18774         here.
18775         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18776         Clear class FP0_REGS.
18777         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18778         from elf.h.
18779         2001-03-08  DJ Delorie  <dj@redhat.com>
18780         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18781         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
18782         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18783         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
18784         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18785         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
18786         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18787         return value correctly for call_cookie.
18788         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
18789         * config/sh/crt1.asm (start): Modified so as to call
18790         ___setup_argv_and_call_main.
18791         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
18792         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18793         SHmedia mode.
18794         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
18795         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18796         (STRIP_NAME_ENCODING): Use it.
18797         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
18798         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
18799         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18800         prepare_scc_operands().
18801         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18802         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18803         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
18804         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18805         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
18806         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18807         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18808         used in shcompact_incoming_args.
18809         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18810         change.
18811         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18812         mode.
18813         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18814         Adjust accordingly.
18815         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18816         Simplify.  Adjust.  Add sanity check.
18817         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18818         FPU_SINGLE_BIT.
18819         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18820         TARGET_SHCOMPACT.
18821         (udivsi3, divsi3): Use them.
18822         (force_mode_for_call): New insn.
18823         (call, call_value, sibcall_value): Emit it before SHcompact
18824         calls.
18825         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
18826         * config/sh/sh.md (call, call_value, sibcall): Make sure the
18827         call cookie is non-NULL before taking its value.
18828         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
18829         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18830         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
18831         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18832         block.
18833         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18834         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18835         temporary for stack adjusts.  Use MACL and MACH to pass
18836         arguments to shcompact_incoming_args.
18837         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
18838         clobber r1.
18839         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18840         (nested_trampoline): Load static chain address into r1.
18841         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18842         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
18843         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18844         fp_arith_reg_operand().
18845         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
18846         * config/sh/sh.md (casesi): Sign-extend the first two operands,
18847         and use signed compares for them.
18848         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18849         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
18850         ones properly aligned.
18851         (find_barrier): Account for extra alignment needed for 8-byte wide
18852         constants.
18853         (machine_dependent_reorg): Require a label for the second 4-byte
18854         constant after an 8-byte one.
18855         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18856         change.
18857         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18858         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18859         last_float when switching float modes.
18860         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18861         auto-increment for general-purpose registers.
18862         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18863         result.
18864         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18865         for stack adjust.
18866         * config/sh/sh.c (sh_builtin_saveregs): Support using all
18867         registers for varargs.
18868         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
18869         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18870         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18871         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18872         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18873         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
18874         call_cookie accordingly.
18875         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18876         (SHCOMPACT_BYREF): Likewise.
18877         (SHCOMPACT_FORCE_ON_STACK): New macro.
18878         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18879         (sh_builtin_saveregs): Likewise.
18880         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18881         shcompact_incoming_args): Use new shift values.  Support
18882         sequences of consecutive and non-consecutive pushes/pops.
18883         * config/sh/sh.md (return): Don't explicitly use PR_REG.
18884         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
18885         * config/sh/sh.h (TEXT_SECTION): Define.
18886         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18887         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
18888         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18889         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18890         return values on FPU-enabled SHmedia.
18891         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18892         FPU-enabled SHmedia.
18893         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18894         value is returned in a non-FP reg and is not returned by
18895         reference.
18896         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18897         jump_ind.
18898         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
18899         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18900         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18901         quad-aligned to be passed by callee-copy reference.
18902         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
18903         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18904         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18905         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
18906         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18907         copying low-numbered FP regs to r7 and r8.
18908         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18909         FP regs to general-purpose regs only if the copy was passed on the
18910         stack.
18911         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18912         copying FP reg to r9.
18913         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18914         copy FP regs to general-purpose regs only in outgoing calls.
18915         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18916         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
18917         HOST_WIDE_INT.
18918         * config/sh/sh.h (struct sh_args): Document all fields.
18919         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18920         passed partially on the stack should not consider making
18921         sibcalls.
18922         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18923         stack_regs only for incoming calls.  When passing FP args,
18924         make sure there are FP regs available before modifying
18925         call_cookie.
18926         (SHCOMPACT_BYREF): Pass double args in general-purpose
18927         registers by reference.
18928         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
18929         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18930         attempt to generate sibcalls if the caller got any arguments
18931         by reference.
18932         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18933         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18934         to 8-byte boundaries.
18935         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18936         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18937         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18938         stored in the stack.
18939         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18940         for the offsets to have the ISA bit set.
18941         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
18942         invocation.  Use beq instead of bgt to mark end of sequence of
18943         loads.
18944         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
18945         bgt to mark end of sequence of stores.
18946         * config/sh/sh.c (arith_operand): Don't check whether
18947         CONST_OK_FOR_J for now.
18948         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18949         instead of long for conversion.
18950         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
18951         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18952         before passing it to fprintf.
18953         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
18954         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18955         Call set_fpscr before reading/writing SR.
18956         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18957         Call set_fpscr.
18958         * config/sh/lib1funcs.asm: Add `.align 2' directives before
18959         SHmedia code.
18960         (FMOVD_WORKS): Define on SH5 with FPU.
18961         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
18962         setting.
18963         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18964         _fpscr_values.
18965         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
18966         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18967         address.
18968         (ia_main_table): Ditto.
18969         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
18970         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18971         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18972         the definitions from sh.h.
18973         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18974         TARGET_SH5.
18975         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18976         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18977         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18978         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
18979         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18980         Increment LABEL_NUSES.
18982         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18983         TARGET_SH5.
18984         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18985         defined.
18986         * config/sh/elf.h (SIZE_TYPE): Likewise.
18987         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18988         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18989         shcompact_incoming_args): Load switch table addresses using
18990         datalabel.
18991         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18992         (NO_BUILTIN_SIZE_TYPE): Define.
18993         (SIZE_TYPE): Don't define.
18994         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18995         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18996         definition of __SH5__=32 for -m5-compact-nofpu.
18997         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18998         ADDR_DIFF_VEC.
18999         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
19000         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19001         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
19002         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19003         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19004         (INSN_LENGTH_ALIGNMENT): Likewise.
19005         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19006         * config/sh/sh.md (call, call_value, sibcall): Simplify
19007         copying of non-branch-target register.
19008         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19009         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
19010         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19011         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
19012         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19013         floating-point values as structs.
19014         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19015         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19016         general-purpose register.
19017         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19018         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
19019         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19020         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19021         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19022         (ENCODE_SECTION_INFO): Enclose variables and constants in
19023         DATALABEL unspecs.
19024         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19025         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19026         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19027         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19028         only for LABEL_REFs.  For SYMBOL_REFs, prepend
19029         SH_DATALABEL_ENCODING to the symbol name.
19030         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19031         convert_mode().
19032         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
19033         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19034         UNSPEC_DATALABEL.
19035         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19036         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19037         (DATALABEL_REF_P): Don't require CONST.
19038         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19039         REL label.
19040         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
19041         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19042         right.
19043         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
19044         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19045         Use shallow_copy_rtx and PUT_MODE to change the mode of
19046         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19047         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19048         on SHmedia using GENERAL_REGs.
19049         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19050         bltu_media_i): Fix reversion of conditions.
19051         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
19052         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19053         * config/sh/sh.c (output_far_jump): Save r13 in macl.
19054         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
19055         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19056         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
19057         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19058         (GCC_nested_trampoline): Likewise.
19059         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19060         * config/sh/sh.c (gen_datalabel_ref): Define.
19061         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19062         (INITIALIZE_TRAMPOLINE): Likewise.
19063         (TRAMPOLINE_ADJUST_ADDRESS): Define.
19064         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19065         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19066         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19067         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19068         (ic_invalidate): Adjust for SH5.
19069         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19070         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19071         _nested_trampoline.
19072         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
19073         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19074         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19075         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
19076         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19077         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19078         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
19079         * config/sh/sh.c (target_reg_operand): Match only target-branch
19080         registers and pseudos that aren't virtual registers.
19081         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19082         Copy operands that don't match target_reg_operand to pseudos.
19083         (call_media, call_value_media, sibcall_media): Use
19084         target_reg_operand instead of target_operand.
19085         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
19086         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19087         * config/sh/sh.c (target_reg_operand): Match hardware registers
19088         other than branch-target registers.
19089         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19090         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19091         (fpscr_values) [SH5 == 32]: Define.
19092         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19093         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19094         Handle function addresses coming in SUBREGs.
19095         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
19096         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19097         shcompact_return_trampoline): Use datalabel where appropriate.
19098         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
19099         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19100         general-purpose register to copy one branch-target register to
19101         another.
19102         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
19103         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19104         SYMBOL_REFs with VOIDmode.
19105         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19106         bltu_media_i): New insns.
19107         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
19108         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19109         (INIT_CUMULATIVE_ARGS): Likewise.
19110         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
19111         * machmode.def (V16SFmode): New mode.
19112         * c-common.c (type_for_mode): Support V2SF and V16SF.
19113         * tree.c (build_common_tree_nodes_2): Likewise.
19114         * tree.h (tree_index): Likewise.
19115         * calls.c (emit_call_1): Take args_so_far.  Adjust all
19116         callers.  Introduce CALL_POPS_ARGS.
19117         * tm.texi (CALL_POPS_ARGS): Document.
19118         * config/sh/crt1.asm: Implement in SHmedia mode.
19119         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19120         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19121         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19122         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19123         Implement divsi and udivsi in SHmedia mode.  Introduce
19124         SHcompact trampolines.
19125         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19126         only in SHmedia64.
19127         (regno_reg_class): Rewrite.
19128         (fp_reg_names): Remove.
19129         (sh_register_names, sh_additional_register_names): New.
19130         (print_operand): Added `u'.  Support SUBREGs in addresses.
19131         Add parentheses around shifted CONSTs.
19132         (output_file_start): Output .mode and .abi directives.
19133         (shiftcosts, addsubcosts, multcosts): Adjust.
19134         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
19135         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
19136         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
19137         bytes, not registers.  Take into account the need for the
19138         SHcompact incoming args trampoline.  Adjust all callers.
19139         (sh_expand_prologue): Take stack_regs into account.  Call
19140         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
19141         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
19142         stack aligned as per SH5 ABI.
19143         (sh_builtin_saveregs): Support SH5 ABI.
19144         (sh_build_va_list, sh_va_start): Likewise.
19145         (initial_elimination_offset): Take alignment into account.
19146         Compute location of PR according to the SH5 stack frame.
19147         (arith_reg_operand): Reject branch-target registers.
19148         (shmedia_6bit_operand): New.
19149         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
19150         (target_reg_operand): Match DImode only.  Accept SUBREGs.
19151         (target_operand): New.
19152         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
19153         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
19154         SIBCALL_REGS for SHmedia.
19155         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
19156         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
19157         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
19158         (TARGET_SWITCHES): New SH5 flags.
19159         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
19160         VALID_REGISTER_P to disable unsupported registers.
19161         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
19162         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
19163         (FUNCTION_ARG_PADDING): Define.
19164         (FASTEST_ALIGNMENT): Adjust.
19165         (SH_REGISTER_NAMES_INITIALIZER): New.
19166         (sh_register_names): Declare.
19167         (DEBUG_REGISTER_NAMES): Define.
19168         (REGISTER_NAMES): Define based on sh_register_names.
19169         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
19170         (sh_additional_register_names): Declare.
19171         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
19172         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
19173         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
19174         (REGISTER_NATURAL_MODE): Define.
19175         (FIRST_PSEUDO_REGISTER): Adjust.
19176         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
19177         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
19178         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
19179         (VECTOR_MODE_SUPPORTED_P): Define.
19180         (REG_CLASS_CONTENTS): Adjust.
19181         (SMALL_REGISTER_CLASSES): Adjust.
19182         (REG_ALLOC_ORDER): Adjust.
19183         (INDEX_REG_CLASS): Adjust.
19184         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
19185         (CONST_OK_FOR_LETTER_P): Adjust.
19186         (PREFERRED_RELOAD_CLASS): Adjust.
19187         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
19188         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
19189         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
19190         (FIRST_FP_PARM_REG): Adjust.
19191         (CALL_POPS_ARGS): Define.
19192         (FUNCTION_ARG_REGNO_P): Adjust.
19193         (struct sh_args): New fields.
19194         (GET_SH_ARG_CLASS): Adjust.
19195         (INIT_CUMULATIVE_ARGS): Adjust.
19196         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
19197         (FUNCTION_ARG_ADVANCE): Adjust.
19198         (FUNCTION_ARG): Adjust.
19199         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
19200         (FUNCTION_ARG_CALLEE_COPIES): Define.
19201         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
19202         (STRICT_ARGUMENT_NAMING): Define.
19203         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
19204         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
19205         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
19206         (SETUP_INCOMING_VARARGS): Adjust.
19207         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
19208         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
19209         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
19210         (SUBREG_OK_FOR_INDEX_P): Adjust.
19211         (EXTRA_CONSTRAINT_S): Update.
19212         (EXTRA_CONSTRAINT_T): New.
19213         (EXTRA_CONSTRAINT): Adjust.
19214         (GO_IF_LEGITIMATE_INDEX): Adjust.
19215         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
19216         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
19217         (MOVE_MAX): Adjust.
19218         (MAX_MOVE_MAX): Define.
19219         (Pmode): Adjust.
19220         (CONST_COSTS): Adjust.
19221         (REGISTER_MOVE_COST): Adjust.
19222         (BRANCH_COST): Adjust.
19223         (TEXT_SECTION_ASM_OP): Adjust.
19224         (DBX_REGISTER_NUMBER): Adjust.
19225         (ASM_OUTPUT_DOUBLE_INT): New.
19226         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
19227         (PREDICATE_CODES): Adjust.
19228         (PROMOTE_MODE): Adjust.
19229         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
19230         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
19231         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
19232         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
19233         (DR0_REG, DR2_REG, DR4_REG): Renumber.
19234         (TR0_REG, TR1_REG, TR2_REG): New.
19235         (XD0_REG): Renumber.
19236         (UNSPEC_COMPACT_ARGS): New.
19237         (type): Added pt and ptabs.
19238         (length): Default to 4 on SHmedia.  Default pt length to 12
19239         and     20 on SHmedia32 and SHmedia64, respectively.
19240         (pt): New function unit.
19241         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
19242         Add whitespace between operands of SHmedia instructions.
19243         (movdicc): Fix.
19244         (adddi3_media, addsi3_media): Adjust constraints.
19245         (subsi3) [SHmedia]: Force operand 1 into a register.
19246         (udivsi3_i1_media, udivsi3_i4_media): New.
19247         (udivsi3): Support SHmedia.
19248         (divsi3_i1_media, divsi3_i4_media): New.
19249         (divsi3): Support SHmedia.
19250         (anddi3, iordi3, xordi3): Adjust constraints.
19251         (zero_extendhidi2, zero_extendqidi2): New.
19252         (extendsidi2, extendhidi2, extendqidi2): New.
19253         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
19254         (pop_e, pop_fpul, pop_4): Likewise.
19255         (movsi_media): Support FP and BT registers.
19256         (movsi_media_nofpu): New.  Adjust splits to DImode.
19257         (lduw, ldub): Renamed to zero_extend* above.
19258         (movqi_media): Fix typo.
19259         (movdi_media): Support FP and BT registers.
19260         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
19261         (movdi_const_32bit): New.
19262         (shori_media): Require immediate operand.  Use `u' for output.
19263         (movdf_media, movsf_media): Simplified.
19264         (movdf_media_nofpu, movsf_media_nofpu): New.
19265         (movdf, movsf): Adjust
19266         (movv2sf, movv2sf, movv16sf): New.
19267         (beq_media, beq_media_i): Adjust constraints.  Don't use
19268         scratch BT register.
19269         (bne_media, bne_media_i): Likewise.
19270         (bgt_media, bgt_media_i): Likewise.
19271         (bge_media, bge_media_i): Likewise.
19272         (bgtu_media, bgtu_media_i): Likewise.
19273         (bgeu_media, bgeu_media_i): Likewise.
19274         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
19275         bunordered): Emit jump insn.  Force operands to registers when
19276         needed.
19277         (jump_media, jump): Simplify.
19278         (call_compact, call_compact_rettramp): New.
19279         (call_value_compact, call_value_compact_rettramp): New.
19280         (call_media, call_value_media): Simplify.
19281         (sibcall_compact, sibcall_media): New.
19282         (call, call_value): Adjust for SHmedia and SHcompact.
19283         (sibcall, sibcall_value, untyped_call): Likewise.
19284         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
19285         (indirect_jump): Adjust for SHmedia.
19286         (casesi_jump_media): New.
19287         (nop): Re-enable for SHmedia.
19288         (call_site): Restrict to SH1.
19289         (casesi): Adjust for SHmedia.
19290         (casesi_shift_media, casesi_load_media): New.
19291         (return): Explicitly use PR register.  Call return trampoline
19292         on SHcompact.
19293         (return_i): Explicitly use PR register.
19294         (shcompact_return_tramp, shcompact_return_tramp_i): New.
19295         (return_media): Adjust.
19296         (shcompact_incoming_args): New.
19297         (epilogue): Adjust.
19298         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19299         (movstrsi): Disable on SH5.
19300         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
19301         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
19302         (subsf3, subsf3_media): Likewise.
19303         (mulsf3, mulsf3_media, mac_media): Likewise.
19304         (divsf3, divsf3_media): Likewise.
19305         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
19306         (floatsisf2, fux_truncsfsi2): Likewise.
19307         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
19308         constraints.
19309         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
19310         (cmpunsf_media, cmpsf): Likewise.
19311         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
19312         (abssf2, abssf2_media): Likewise.
19313         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
19314         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
19315         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
19316         (floatsidf2, fix_truncdfsi2): Likewise.
19317         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
19318         constraints.
19319         (cmpeqdf_media, cmpgtdf_media): Likewise.
19320         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
19321         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
19322         (absdf2, absdf2_media): Likewise.
19323         (extendsfdf2, extendsfdf2_media): Likewise.
19324         (truncsfdf2, truncsfdf2_media): Likewise.
19325         * config/sh/sh64.h: New file.
19326         * config/sh/t-sh64: New file.
19327         * config/sh/shmedia.h: New file.
19328         * config/sh/ushmedia.h: New file.
19329         * config/sh/sshmedia.h: New file.
19330         * configure.in: Added sh64-*-elf.
19331         * configure: Rebuilt.
19332         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
19333         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
19334         (reg_class_from_letter): Use `b' for TARGET_REGS.
19335         (print_operand): Support `%M', `%m', `AND' and
19336         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
19337         (andcosts): Adjust for SHmedia.
19338         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
19339         Likewise.
19340         (target_reg_operand): New function.
19341         * config/sh/sh-protos.h (target_reg_operand): Declare.
19342         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
19343         FP registers on SH5.
19344         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
19345         on SH4.
19346         (TARGET_REGISTER_P): New macro.
19347         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
19348         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
19349         (EXTRA_CONSTRAINT_S): New macro.
19350         (EXTRA_CONSTRAINT): Adjust.
19351         (FLOAT_TYPE_SIZE): Define to 32.
19352         (Pmode): DImode on SHmedia.
19353         (CONST_COSTS): Adjust for SHmedia literals.
19354         (PREDICATE_CODES): Added target_reg_operand.
19355         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
19356         * config/sh/sh.md: Remove all attrs from SHmedia insns.
19357         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
19358         (cmpdi): Accept SHmedia.
19359         (movdicc_false, movdicc_true): New insns.
19360         (movdicc): New expand.
19361         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
19362         no_new_pseudos.
19363         (addsi3_media): Match `S' constraint.
19364         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
19365         (negdi2): Expand for SHmedia.
19366         (one_cmpldi2): New expand.
19367         (zero_extendsidi2): Change from expand to insn.
19368         (extendsidi2): Add constraints.
19369         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
19370         LD/ST address.  Fix SI immediate loading split.
19371         (movhi_media, movqi_media, lduw, ldub): New insns.
19372         (movhi, movqi): Accept SHmedia.
19373         (shori_media, movdi_media): Relax input constraints.  Split
19374         symbolic constants.
19375         (movdf_media, movsf_media): New insn.  New split to movdi.
19376         (movdf, movsf): Match on SHmedia.
19377         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19378         bgeu_media): New insns and splits.  New insns with `_i' suffix.
19379         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19380         (bunordered): New expand.
19381         (jump_compact): Renamed from `jump'.
19382         (jump_media): New insn.
19383         (jump): New expand.
19384         (call_media, call_value_media): New insns.
19385         (call, call_value): Adjust.
19386         (indirect_jump_compact): Renamed from `indirect_jump'.
19387         (indirect_jump_media): New insn.
19388         (indirect_jump): New expand.
19389         (untyped_call, return): Accept SHmedia.
19390         (return_media): New insn.
19391         (prologue, epilogue, blockage): Accept SHmedia.
19392         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19393         (sunordered): New expand.
19394         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19395         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19396         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19397         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19398         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19399         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19400         abssf2_media): New insns.
19401         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19402         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19403         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19404         floatdidf2, floatsidf2_media, fix_truncdfdi2,
19405         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19406         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19407         absdf2_media): New insns.
19408         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19409         (extendsfdf2_media, truncdfsf2_media): New insns.
19410         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
19411         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19412         * config/sh/sh.h (CONST_OK_FOR_J): Document.
19413         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19414         * config/sh/sh.md (adddi3): New expand.
19415         (adddi3_media, adddi3z_media): New insns.
19416         (adddi3_compact): Renamed from adddi3.
19417         (addsi3_media): Use add.l r63 to add constant zero.
19418         (subdi3): New expand.
19419         (subdi3_media): New insn.
19420         (subdi3_compact): Renamed from subdi3.
19421         (mulsidi3): New expand.
19422         (mulsidi3_media): New insn.
19423         (mulsidi3_compact): Renamed from mulsidi3.
19424         (umulsidi3): New expand.
19425         (umulsidi3_media): New insn.
19426         (umulsidi3_compact): Renamed from umulsidi3.
19427         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19428         (ashlsi3, ashrsi3, lshrsi3): Use them.
19429         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19430         (ashldi3, ashrdi3, lshrdi3): Use them.
19431         (zero_extendsidi2): New expand.
19432         (extendsidi2): New insn.
19433         (movsi_media): New insn.  Split to movdi to load constants.
19434         (movsi): Enable for shmedia.
19435         (movdi_media): New insn.  Use shori_media to load wide constants.
19436         (short_media): New insn.
19437         (movdi): Enable for shmedia.
19438         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
19439         * config/sh/sh.h (CPP_SPEC): Added `m5'.
19440         (SUBTARGET_CPP_SPEC): Added `!m5'.
19441         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19442         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
19443         to all other SH variants.
19444         (TARGET_DEFAULT): Set to SH1_BIT.
19445         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19446         (BITS_PER_WORD): Raise to 64 on shmedia.
19447         (MAX_BITS_PER_WORD): Change to 64.
19448         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19449         (INT_TYPE_SIZE): Keep as 32.
19450         (UNITS_PER_WORD): Raise to 8 on shmedia.
19451         (MIN_UNITS_PER_WORD): Keep as 4.
19452         (POINTER_SIZE): Raise to 64 on shmedia.
19453         (CONST_OK_FOR_J): New macro.
19454         (CONST_OK_FOR_LETTER_P): Use it.
19455         (processor_type): Add PROCESSOR_SH5.
19456         * config/sh/sh.md: Conditionalize all expands, insns and
19457         splits to TARGET_SH1.
19458         (cpu): Added sh5.
19459         (addsi3_compact): Renamed from...
19460         (addsi3): Now an expand.
19461         (addsi3_media, subsi3_media): New insns.
19462         (subsi3): Don't negate constants with SHmedia.
19464         * hooks.c: New file.
19465         * hooks.h: New file.
19466         * Makefile.in (HOOKS_H): New.
19467         (TARGET_DEF_H): Added $(HOOKS_H).
19468         (OBJS): Added hooks.o.
19469         (cfgcleanup.o, bb-reorder.o): Added target.h.
19470         (hooks.o): Added dependencies.
19471         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19472         (TARGET_INITIALIZER): this.
19473         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19474         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19475         * bb-reorder.c: Include target.h.
19476         (reorder_basic_blocks): Skip if cannot modify jumps.
19477         * cfgcleanup.c: Include target.h.
19478         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19480 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19482         * config/mips/mips.md (casesi_internal, casesi_internal_di):
19483         Protect jump delay slot instructions with .set noreorder and
19484         .set nomacro.
19486 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
19488         * config/mips/mips.md (casesi_internal_di): Calculate
19489         the index into the target offset table correctly.
19491 2002-02-08  Richard Henderson  <rth@redhat.com>
19493         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19494         * final.c (output_addr_const): Accept and discard SUBREG.
19495         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19496         mark them unknown instead.
19497         (simplify_subtraction): Handle RTX_UNKNOWN.
19498         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19500 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
19502         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19504 2002-02-08  Richard Henderson  <rth@redhat.com>
19506         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19508 2002-02-08  Andreas Jaeger  <aj@suse.de>
19510         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19511         * config/i386/t-linux64: New file.
19513 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
19515         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19516         * c-parse.in (compstmt): Clear last_expr_type.
19518 2002-02-07  Richard Henderson  <rth@redhat.com>
19520         * loop.c (strength_reduce): Sink final_value when not
19521         eliminating a biv.
19523 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
19525         * config/sparc/freebsd.h: Fix mismatched spec {.
19527 2002-02-07  Richard Henderson  <rth@redhat.com>
19529         * cfgrtl.c: Include recog.h and insn-config.h.
19530         (keep_with_call_p): Fix general_operand invocation.
19531         * Makefile.in (cfgrtl.o): Update dependencies.
19533 2002-02-07  Kazu Hirata  <kazu@hxi.com>
19535         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19536         comment.  Accept HImode only if TARGET_H8300.
19538 2002-02-07  Eric Christopher  <echristo@redhat.com>
19540         * config/mips/crtn.asm: Cleanup #ifdefs.
19542 2002-02-07  Eric Christopher  <echristo@redhat.com>
19544         * config/mips/crti.asm: Add changes for mips16. mips16 uses
19545         register 7 as RA instead of $31.
19546         * config/mips/crtn.asm: Ditto.
19547         * config/mips/mips.c (mips_move_2words): Add case for
19548         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19549         (compute_frame_size): Fix typo.
19550         (save_restore_insns): Ditto.  Make documentation about using
19551         register $7 as return register more precise.
19552         (mips_expand_epilogue): Fix comment. Add code to work around not
19553         being able to add to the stack pointer directly.
19554         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19555         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19556         epilogue.
19558 2002-02-07  Tom Rix  <trix@redhat.com>
19560         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19561         immediates in ldu and stdu DS opcode field.
19562         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19563         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19564         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19566 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
19568         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19569         offset for stack bias.
19571 2002-02-07  H.J. Lu <hjl@gnu.org>
19573         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19575 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
19577         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19579 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
19581         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19582         * i386.c (x86_order_regs_for_local_alloc): New global function.
19583         * i386.h (REG_ALLOC_ORDER): CLeanup.
19584         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19586 2002-02-07  Richard Henderson  <rth@redhat.com>
19588         PR optimization/2463
19589         * alias.c (find_base_value): Recall base values for fixed hard regs.
19590         * loop.c (loop_regs_update): Don't use single_set on non-insns.
19592 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
19594         * config/mips/mips.md (define_delay) [mips16]: Adjust required
19595         length.
19597 2002-02-06  Richard Henderson  <rth@redhat.com>
19599         PR c/5609
19600         * stmt.c (resolve_operand_name_1): Take more care with mixed
19601         named and unnamed operands.
19603 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
19604             Jan Hubicka  <jh@suse.cz>
19606         * loop.c (remove_constant_addition): Avoid clobbering a shared
19607         CONST expression.
19609 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19611         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19612         * config/s390/t-linux64: New file.
19613         * config/s390/libgcc-glibc.ver: New file.
19615 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
19617         * config/s390/linux64.h: Delete file.
19618         * config/s390/s390x.h: New file.
19619         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19620         as target header file.
19621         * config/s390/linux.h (TARGET_VERSION): Define depending on
19622         DEFAULT_TARGET_64BIT.
19623         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19624         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19625         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19626         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19627         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19628         (EXTRA_SPEC): New define.
19629         * config/s390/s390.h (TARGET_VERSION): Define depending on
19630         DEFAULT_TARGET_64BIT.
19631         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19633 2002-02-06  Jason Merrill  <jason@redhat.com>
19635         * c-decl.c (finish_function): Warn about a non-void function with
19636         no return statement and no abnormal exit.
19637         (current_function_returns_abnormally): New variable.
19638         (start_function): Clear it.
19639         (struct c_language_function): Add returns_abnormally.
19640         (push_c_function_context): Save it.
19641         (pop_c_function_context): Restore it.
19642         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19643         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19644         an explicit return type.
19645         * c-tree.h: Declare current_function_returns_abnormally.
19646         (C_FUNCTION_IMPLICIT_INT): New macro.
19647         * c-typeck.c (build_function_call): Set it.
19648         (c_expand_return): Set current_function_returns_value even if the
19649         value is erroneous.
19651 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19653         PR c/5420:
19654         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19655         unsafe for reevaluation.
19657 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
19659         PR c/5482:
19660         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19661         EXPR_STMT, but COMPOUND_STMT, recurse into it.
19663 2002-02-06  Richard Henderson  <rth@redhat.com>
19665         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19666         be a general_operand.  Dest for function value must be a pseudo.
19668 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
19670         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19671         as SYMBOL_REFs from the constant pool.
19673 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
19675         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19676         passed by invisible reference.
19678 2002-02-05  Richard Henderson  <rth@redhat.com>
19680         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19682 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
19684         Implement using "base addresses" in insn operands as default.
19685         * config/mmix/mmix.c (mmix_conditional_register_usage): if
19686         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19687         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19688         used to read the rtx value.
19689         (mmix_target_asm_function_epilogue): Fix spacing.
19690         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19691         (mmix_legitimate_address): Ditto.
19692         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19693         should be loaded with a GETA insn.  Don't allocate needless extra
19694         char for nul termination and fix misleading comment.
19695         (mmix_print_operand_address): Handle constants if
19696         TARGET_BASE_ADDRESSES.
19697         (mmix_output_register_setting): Use base addressing if
19698         TARGET_BASE_ADDRESSES and the number of insns is 3.
19699         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19700         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19701         to use R as constraint, add LDA to match s.
19702         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19703         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19704         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19705         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19706         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19707         order with other fixed registers.
19708         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19709         other parameter/call-clobbered registers.
19710         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19711         -mbase-addresses, -mno-base-addresses.
19712         (MMIX Options): Ditto.
19714 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19716         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19718 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
19720         * config/rs6000/altivec.h: Change elem to _S_elem.
19722 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19724         * config/netbsd.h (WCHAR_TYPE): Define.
19725         (WCHAR_TYPE_SIZE): Ditto.
19726         (WINT_TYPE): Ditto.
19727         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19728         (WCHAR_UNSIGNED): Ditto.
19729         (WCHAR_TYPE_SIZE): Ditto.
19730         (WINT_TYPE): Ditto.
19731         * config/arm/netbsd.h: Likewise.
19732         * config/i386/netbsd-elf.h: Likewise.
19733         * config/i386/netbsd.h: Likewise.
19734         * config/m68k/netbsd-elf.h: Likewise.
19735         * config/m68k/netbsd.h: Likewise.
19736         * config/ns32k/netbsd.h: Likewise.
19737         * config/sparc/netbsd.h: Likewise.
19738         * config/vax/netbsd.: Likewise.
19740 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
19742         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19743         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
19744         (TARGET_INITIALIZER): this.
19745         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19746         (BITFIELD_NBYTES_LIMITED): Markup fix.
19747         * tree.h (default_ms_bitfield_layout_p): Declare.
19748         (record_layout_info): Added prev_field.
19749         * tree.c (default_ms_bitfield_layout_p): New fn.
19750         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19751         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19752         * stor-layout.c: Include target.h.
19753         (start_record_layout): Initialize prev_field.
19754         (place_field): Handle MS bit-field layout, and disregard
19755         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19756         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
19757         * Makefile.in (stor-layout.o): Adjust dependencies.
19759 2002-02-05  Jason Merrill  <jason@redhat.com>
19761         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19763 2002-02-05  Andreas Jaeger  <aj@suse.de>
19765         * crtstuff.c: Fix comments.
19767 2002-02-05  Richard Henderson  <rth@redhat.com>
19769         PR fortran/3393
19770         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19771         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19773         PR fortran/3392
19774         * config/mips/mips.c (function_arg): Handle TImode.
19775         (function_arg_advance): Likewise.
19777 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19779         * config/rs6000/altivec.h (vec_step_help): Rename to
19780         __vec_step_help.
19782 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19784         * config/rs6000/altivec.h: Fix typos.
19786 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
19788         * config/arm/netbsd.h: Correct a comment.
19790 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19792         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19793         building void typed builtins.
19795         * config/rs6000/altivec.h (vec_ld*): Fix typos.
19796         (vec_step): Implement for C++.
19798 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19800         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19802 2002-02-04  Richard Henderson  <rth@redhat.com>
19804         * combine.c (nonzero_bits): Re-introduce special case for
19805         sp/fp/ap wrt REGNO_POINTER_ALIGN.
19807 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
19809         * doc/extend.texi: Warn about unsupported usage of altivec
19810         builtins.
19812         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19813         (altivec_predicate_*): New.
19815         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19816         Add C++ version of vec_*() functions.
19818         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19819         (bdesc_2arg): Remove altivec predicates.
19820         (altivec_expand_builtin): Handle predicates.
19821         (altivec_init_builtins): Handle predicates.
19822         (altivec_expand_predicate_builtin): New.
19824 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19826         * pa.c (DO_FRAME_NOTES): Move forward.
19827         (store_reg): Revise handling of frame notes.
19828         (load_reg): Likewise.
19829         (set_reg_plus_d): Likewise.
19830         (hppa_expand_prologue): Likewise.
19831         (hppa_expand_epilogue): Likewise.
19833 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19835         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19837 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19839         PR c/4475, c++/3780:
19840         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19841         * c-common.h (SWITCH_TYPE): Define.
19842         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19843         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19844         Rename spareness variable to sparseness.
19845         (expand_end_case_type): Renamed from expand_end_case, use orig_type
19846         if non-NULL instead of TREE_TYPE (orig_index).
19847         * tree.h (expand_end_case_type): Renamed from expand_end_case.
19848         (expand_end_case): Define using expand_end_case_type.
19849         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19850         to expand_end_case_type.
19851         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19853 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19855         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19856         (BIGGEST_ALIGNMENT): Change to 128.
19858 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19860         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19862 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19864         * pa.md (call_internal_reg_64bit): Remove unused variable.
19866 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
19868         * config/arm/arm.h (machine_function): Add uses_anonymous_args
19869         field.
19870         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19871         * config/arm/arm.c (current_function_anonymous_args): Delete,
19872         replace uses with cfun->machine->uses_anonymous_args.
19873         (arm_reorg): Do not reset uses_anonymous_args.
19875         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19876         any geenral register.
19878 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
19880         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19881         the entry block.
19883 2002-02-04  Richard Henderson  <rth@redhat.com>
19885         * combine.c (force_to_mode): Remove STACK_BIAS code.
19886         (nonzero_bits): Likewise.  Replace sp/fp special case with
19887         REGNO_POINTER_ALIGN.
19889         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19890         (HARD_FRAME_POINTER_REGNUM): New.
19891         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19892         (FIXED_REGS, CALL_USED_REGS): Update.
19893         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19894         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19895         (HARD_REGNO_NREGS): Update for SFP.
19896         (STACK_POINTER_OFFSET): Include bias here ...
19897         (FIRST_PARM_OFFSET): ... not here.
19898         (STACK_BIAS): Remove.
19899         (INIT_EXPANDERS): New.
19900         (STARTING_FRAME_OFFSET): Do not include bias.
19901         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19902         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19903         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19904         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19905         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19906         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19907         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19908         (MUST_SAVE_REGISTER): Likewise.
19909         (sparc_flat_function_prologue): Likewise.
19910         (sparc_flat_function_epilogue): Likewise.
19911         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19912         (sparc_init_modes): SFP is GENERAL_REGS.
19913         (sparc_builtin_saveregs): SFP does not have bias applied.
19915 2002-02-04  Richard Henderson  <rth@redhat.com>
19917         * config/alpha/alpha.c (current_function_is_thunk): Don't check
19918         current_function_is_thunk.
19919         (alpha_sa_mask): Distinguish between current_function_is_thunk
19920         called from ASM_OUTPUT_MI_THUNK and not.
19921         (alpha_does_function_need_gp): Thunks always need gp.
19922         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19923         (alpha_output_mi_thunk_osf): New.
19924         * config/alpha/alpha-protos.h: Update.
19925         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19927 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
19929         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19930         function types, not when they're taken away.
19932 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
19934         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19935         CODE_LABEL and jump table when replacing a table jump with a
19936         simple jump.
19938 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19940         * config/s390/s390-protos.h (legitimize_la_operand,
19941         s390_secondary_input_reload_class, s390_plus_operand,
19942         s390_expand_plus_operand): Add prototypes.
19944         config/s390/s390.c (s390_secondary_input_reload_class,
19945         s390_plus_operand, s390_expand_plus_operand): New functions.
19947         (struct s390_address): New member 'pointer'.
19948         (s390_decompose_address): Compute it.
19949         (legitimate_la_operand_p): Use it.
19950         (legitimize_la_operand): New function.
19951         (movti, movdi, movdf splitters): Call it.
19953         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19954         (PREDICATE_CODES): Add s390_plus_operand.
19956         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19957         (la_ccclobber): Allow GENERAL_REGS as output operand.
19959         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19960         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19961         (*la_64, *la_31, reload_indi, reload_insi): ... these.
19963 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19965         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19966         register names for regular asm () construct.
19968 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19970         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19971         registers.
19973 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
19975         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19976         pat for recog.
19978 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
19980         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19981         constant pool to be identical by string address and index.
19983 2002-02-04  Anthony Green  <green@redhat.com>
19985         * output.h (SECTION_OVERRIDE): Define.
19986         * varasm.c (named_section): Obey SECTION_OVERRIDE.
19988 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
19990         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19991         by existing arm*-*-netbsd* (a.out) target.
19992         (ns32k-*-netbsdelf*): Likewise.
19993         (sparc-*-netbsdelf*): Likewise.
19994         (vax-*-netbsdelf*): Likewise.
19996 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
19998         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19999         headers and libobjc headers.
20001 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
20003         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20004         (_mingw.h): Remove duplicate include.
20006 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
20008         * config.gcc: Set cpu_type to m68k for 68010, as well.
20009         (m68010-*-netbsdelf*): New...
20010         (m68k*-*-netbsdelf*): ...targets.
20011         * config/m68k/netbsd-elf.h: New file.
20013 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20015         * config/h8300/h8300.c (hand_list): Move inside function_arg.
20017 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20019         * config/h8300/h8300.c (h8_push_ops): Move inside
20020         h8300_init_once.
20021         (h8_pop_ops): Likewise.
20022         (h8_move_ops): Likewise.
20024 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20026         * config/h8300/h8300.c (os_task): Make it static.
20027         (monitor): Likewise.
20028         (pragma_saveall): Likewise.
20030 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
20032         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20033         constant is a valid sign-extension for Pmode.
20035 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20037         * config/h8300/h8300.c: Fix formatting.
20039 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20041         * config/h8300/h8300.md: Fix formatting.
20043 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20045         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20046         predicates of operands[1].  Split the patterns for each
20047         processor variant.
20049 2002-02-02  Kazu Hirata  <kazu@hxi.com>
20051         * config/h8300/h8300.md (xor patterns): Tighten the predicates
20052         of operands[1] to register_operand.
20054 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
20056         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20057         * cpphash.c (_cpp_init_hashtable): Similarly.
20058         * cppinit.c (cpp_create_reader): Default the signed_char flag.
20059         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20060         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20061         (cpp_handle_option): Handle the new options.
20062         * cpplex.c (cpp_interpret_charconst): Use new flag.
20063         * cpplib.h (struct cpp_options): New member signed_char.
20064         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20065         (cpp_options): Handle -fsigned-char and -funsigned-char.
20066         (static_specs): Remove signed_char_spec.
20067         (do_spec1): Don't handle %c.
20068         * system.h: Poison SIGNED_CHAR_SPEC.
20069         * tradcif.y (yylex): Use flag_signed_char.
20070         * tradcpp.h (flag_signed_char): New.
20071         * tradcpp.c (flag_signed_char): New.
20072         (main): Handle new command-line options.
20073         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20074 config:
20075         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20076         * avr/avr.h: Remove old comments.
20077         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20078         (CC1_SPEC): Pass -fsigned-char if -mic*.
20079         (SIGNED_CHAR_SPEC): Remove.
20080 doc:
20081         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20083 2002-02-01  Eric Christopher  <echristo@redhat.com>
20085         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20086         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20087         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20088         (ASM_OUTPUT_REG_POP): Ditto.
20090 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
20092         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20093         patch.
20095 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
20097         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20099 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
20101         PR c/5304:
20102         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20103         unconditionally.
20105 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
20107         * cfganal.c: Include tm_p.h.
20108         (keep_with_call_p): Fix the test that determines if a register holds
20109         the return value of a call.
20111 2002-02-01  DJ Delorie  <dj@redhat.com>
20113         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20114         we are given conflicting registers, switch to the other one we
20115         had allocated for us.
20116         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20117         as TImode so we know when the "other" register is available.
20119 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
20121         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20122         sparc/sparc_bi.h.
20124 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
20126         * cfganal.c (keep_with_call_p): New function.
20127         (flow_call_edges_add): Prevent splitting a block between a call and
20128         a single-set instruction that should be kept in the same block.
20130 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20132         * doc/install.texi (avr): Update outdated URL.
20134 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
20136         * config/stormy16/stormy16.md (pushqi): New.
20137         (popqi): New.
20138         (pushhi): New.
20139         (pophi): New.
20140         (movhi): Remove stack operands.
20141         (movqi): Likewise.
20142         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
20143         nonimmediate_nonstack_operand.
20144         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
20145         New.
20146         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
20147         New.
20149 2002-01-31  Jason Merrill  <jason@redhat.com>
20151         * Makefile.in (c-parse.c): Handle .output file.
20152         * objc/Make-lang.in (objc-parse.c): Likewise.
20154 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
20156         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
20157         the -me[lb] option is given.  Don't output the default flag
20158         twice.
20160 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
20162         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
20163         the primary source file; this has not been done yet.
20164         * c-decl.c (c_expand_body): Reset input_filename from
20165         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
20167 2002-01-31  Kazu Hirata  <kazu@hxi.com>
20169         * rtlanal.c (subreg_regno_offset): Do not use
20170         SUBREG_REGNO_OFFSET.
20171         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
20172         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
20174 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
20176         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
20177         version rather than GNATS version in --version output.
20179 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
20181         * ifcvt.c (noce_process_if_block): Make a copy of the destination
20182         when copying back from a temporary.
20184 2002-01-30  Richard Henderson  <rth@redhat.com>
20186         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
20187         and new_dest are the same.
20189 2002-01-30  Richard Henderson  <rth@redhat.com>
20191         PR opt/5076
20192         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
20193         * rtl.c (note_insn_name): Update.
20194         * emit-rtl.c (remove_unnecessary_notes): Kill it.
20195         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
20196         to perform loop rotation.
20197         (expand_exit_loop_top_cond): New.
20198         * tree.h (expand_exit_loop_top_cond): Declare it.
20199         * c-semantics.c (genrtl_while_stmt): Use it.
20200         (genrtl_for_stmt): Likewise.
20202 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
20204         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
20205         arguments to 64-bit boundaries on 64-bit ABIs.
20207 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
20209         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
20211 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
20213         * c-decl.c (grokdeclarator): Handle type being a typedef for an
20214         invalid type.
20216 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
20218         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
20219         * config/sparc/sparc_bi.h: Remove file.
20220         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
20222 2002-01-30  Richard Henderson  <rth@redhat.com>
20224         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
20226 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
20228         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
20230 2002-01-30  Jason Merrill  <jason@redhat.com>
20232         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
20233         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
20234         (reg_save): Use DW_CFA_offset_extended_sf instead.
20236         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
20238 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20240         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
20241         in cselib_lookup.
20243 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
20245         * rs6000.md ("*call_value_local32"): Remove constraints.
20246         ("*call_value_local64"): Same.
20247         ("*call_value_indirect_nonlocal_aix32"): Same.
20248         ("*call_value_nonlocal_aix32"): Same.
20249         ("*call_value_indirect_nonlocal_aix64"): Same.
20250         ("*call_value_nonlocal_aix64"): Same.
20251         ("*call_value_nonlocal_sysv"): Same.
20253 2002-01-29  Richard Henderson  <rth@redhat.com>
20255         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
20257 2002-01-29  Richard Henderson  <rth@redhat.com>
20259         * expr.c (force_operand): Ignore flag_pic for detecting pic
20260         address loads.
20261         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
20262         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
20263         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
20264         instead of open-coded loop.
20265         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
20266         be fixed when in use.
20268 2002-01-29  Richard Henderson  <rth@redhat.com>
20270         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
20271         * sched-rgn.c (propagate_deps): Update them.
20272         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
20273         clobbers list when either gets too long.
20275 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20277         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
20278         and INDEX_REGS the same as GENERAL_REGS.
20279         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
20281 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
20283         * tree.c (build_nonstandard_integer_type): Correct prototype.
20285 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
20287         * config/s390/s390.md (movstrsico, movstrdix_64,
20288         movstrsix_31): Remove, replace by ...
20289         (movstrdi_short, movstrsi_short, movstrdi_long,
20290         movstrsi_long): ... these.  New.
20291         (movstrdi, movstrsi): Adapt.
20293         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
20294         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
20295         Remove unnecessary CC clobber.
20296         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
20297         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
20299         (divmoddi4): Don't partially initialize TImode register.
20301 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
20303         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
20305 2002-01-29  Richard Henderson  <rth@redhat.com>
20307         * flow.c (print_rtl_and_abort): Remove.
20308         (print_rtl_and_abort_fcn): Remove.
20309         (verify_local_live_at_start): Use dump_bb instead.
20310         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
20311         (verify_wide_reg_1): Return 2 on mode test failure.
20313 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
20315         PR c/3325, c/3326, c/2511, c/3347
20316         * c-decl.c (enum_decl_context): Remove BITFIELD.
20317         (grokdeclarator): Take bitfield width as an input.
20318         Ensure bitfields are given the correct type.  Perform
20319         bitfield width validation with build_bitfield_integer_type
20320         rather than waiting for finish_struct.
20321         (grok_typename, grok_typename_in_parm_context, start_decl,
20322         push_parmdecl, grokfield, start_function): Update calls to
20323         grokdeclarator.
20324         (build_bitfield_integer_type): New function.
20325         (finish_struct): Move bitfield validation to grokdeclarator
20326         and build_bitfield_integer_type.
20327         * tree.c (build_nonstandard_integer_type): New function.
20328         * tree.h (build_nonstandard_integer_type): New prototype.
20329 objc:
20330         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
20332 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
20334         PR other/1502:
20335         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
20336         don't ignore unrecognized -W* options.
20337         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
20338         * cpplib.h (cpp_handle_option): Adjust prototype.
20339         * c-decl.c (c_decode_options): Pass 0 as last argument to
20340         cpp_handle_option.
20342         PR c/2896:
20343         * gcc.c (cpp_unique_options): Split from cpp_options.
20344         (cpp_options): Source cpp_unique_options.
20345         (default_compilers): Use cpp_unique_options instead of cpp_options
20346         when used together with cc1_options.
20347         (static_specs): Add cpp_unique_options.
20348         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
20349         when used together with cc1_options.
20351 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20353         * config/h8300/h8300-protos.h: Update the prototype of
20354         output_a_shift.
20355         * config/h8300/h8300.c (output_a_shift): Remove an unused
20356         argument 'insn'.  Remove redundant code.
20357         * config/h8300/h8300.md: Adust to the new prototype of
20358         output_a_shift.
20360 2002-01-29  Kazu Hirata  <kazu@hxi.com>
20362         * config/h8300/h8300-protos.h: Update the prototypes of
20363         emit_a_rotate and expand_a_rotate.
20364         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
20365         first argument to 'enum rtx_code'.
20366         (expand_a_rotate): Likewise.
20368 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20370         * config/h8300/h8300-protos.h: Update the prototype of
20371         output_simode_bld.
20372         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20373         'log2'.
20374         * config/h8300/h8300.md: Adjust to the new prototype.
20376 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20378         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20379         redundant code.
20381 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20383         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20384         is a fixed register before returning pic_offset_table_rtx.
20385         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20386         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20388 2002-01-28  Jason Merrill  <jason@redhat.com>
20390         * dwarf2.h: Sync with src version.
20392 2002-01-28  Paul Koning  <pkoning@equallogic.com>
20394         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20395         BT_FN_VOID_PTR_VAR.
20396         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20397         * doc/extend.texi (__builtin_prefetch): Update documentation:
20398         first argument is now const void ptr.
20400 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20402         * config/h8300/h8300-protos.h: Remove an unused prototype.
20404 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
20406         * toplev.c (lang_independent_init): Round up identifier size.
20408 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20410         * config.gcc: Revert previous change.
20412 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
20414         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20416 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
20418         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20419         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
20420         other non-elf netbsd config frags.
20421         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20422         collect2 will does that.
20423         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20424         shared-lib frobbing will work.
20426 2002-01-28  Kazu Hirata  <kazu@hxi.com>
20428         * config/h8300/h8300.h: Fix formatting.
20429         * config/h8300/h8300.md: Likewise.
20431 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
20433         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20434         the old, removed AAA_standards fix.
20435         * fixinc/fixincl.x: Rebuilt.
20437 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
20439         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20440         atexit call in crtbegin, hooked in after call to frame_dummy;
20441         register EH before registering __fini__start.
20443 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
20445         * config/rs6000/altivec.h: Remove spurious semicolons.
20447 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20449         * config/h8300/h8300.md: Replace dead bit extraction patterns
20450         with ones that work.
20452 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20454         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20455         if not STRICT_ALIGNMENT.
20456         * rtl.h (MEM_ALIGN): Likewise.
20458 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20460         * doc/invoke.texi (-fdump-translation-unit): Revert this
20461         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20463 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20465         * config/h8300/h8300.md (define_constants): New.
20466         (anonymous patterns) Use defined constants appropriately.
20468 2002-01-27  Kazu Hirata  <kazu@hxi.com>
20470         * config/h8300/h8300.c (function_arg): Remove redundant code.
20472 2002-01-26  Richard Henderson  <rth@redhat.com>
20474         * sched-deps.c (reg_pending_uses_head): New.
20475         (reg_pending_barrier): Rename from reg_pending_sets_all.
20476         (find_insn_list): Don't mark inline.
20477         (find_insn_mem_list): Remove.
20478         (add_dependence_list, add_dependence_list_and_free): New.
20479         (flush_pending_lists): Replace only_write param with separate
20480         for_read and for_write parameters.  Update all callers.  Use
20481         add_dependence_list_and_free.
20482         (sched_analyze_1): Do not add reg dependencies here; just set
20483         the pending bits.  Use add_dependence_list.
20484         (sched_analyze_2): Likewise.
20485         (sched_analyze_insn): Replace schedule_barrier_found with
20486         reg_pending_barrier.  Add all dependencies for pending reg
20487         uses, sets, and clobbers.
20488         (sched_analyze): Don't add reg dependencies for calls, just
20489         set pending bits.  Use regs_invalidated_by_call.  Treat
20490         sched_before_next_call as a normal list, not a fake insn.
20491         (init_deps): No funny init for sched_before_next_call.
20492         (free_deps): Free pending mems lists.  Don't zero reg_last.
20493         (init_deps_global): Init reg_pending_uses.
20494         (finish_deps_global): Free it.
20495         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
20496         (find_insn_mem_list): Remove.
20497         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20498         (propagate_deps): Use them.  Zero temp mem lists.
20500 2002-01-26  Richard Henderson  <rth@redhat.com>
20502         * Makefile.in (CRTSTUFF_CFLAGS): New.
20503         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20504         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20505         crtstuff.c instead of alpha assembly version.
20506         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20507         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
20508         not FORCE_{INIT,FINI}_SECTION_ALIGN.
20509         (__do_global_dtors_aux): Mark used.
20510         (frame_dummy, __do_global_ctors_aux): Mark used.
20511         (fini_dummy, init_dummy): Remove.
20513         * config/alpha/crtbegin.asm: Remove file.
20514         * config/alpha/crtend.asm: Remove file.
20515         * config/alpha/t-crtbe: Remove file.
20516         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20517         (LINK_EH_SPEC): New.
20519         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20520         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
20521         calling constructors.
20522         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20524         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20525         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20526         CRT_END_INIT_DUMMY hack.
20527         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20528         FORCE_{INIT,FINI}_SECTION_ALIGN.
20530         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20531         FORCE_{INIT,FINI}_SECTION_ALIGN.
20533         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20534         invocation sequence.
20535         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20537         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20538         (FORCE_CODE_SECTION_ALIGN): New.
20540 2002-01-26  Richard Henderson  <rth@redhat.com>
20542         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20544 2002-01-26  Richard Henderson  <rth@redhat.com>
20546         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20547         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20549 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20551         * config/h8300/h8300.md: Remove bit extraction patterns that
20552         cannot be triggered.
20553         Restrict each bit extraction pattern to a variant on which the
20554         pattern is tested.
20556 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
20558         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20560 2002-01-26  Kazu Hirata  <kazu@hxi.com>
20562         * config/h8300/h8300.md: Remove bit test patterns that cannot
20563         be triggered.
20564         Restrict each bit test pattern to a variant on which the
20565         pattern is tested.
20567 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20569         * builtins.c (expand_builtin_strncat): Remove redundant check for
20570         INTEGER_CST.
20572 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20574         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20575         default setting.
20576         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20577         existing setting.
20579 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20581         * dbxout.c (dbxout_init): Use assemble_name rather than just
20582         stripping off the first character.
20583         (dbxout_source_file): Likewise.
20585 2002-01-25  DJ Delorie  <dj@redhat.com>
20587         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20588         using rtx_equal_p, not by comparing pointers.
20590 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
20592         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20593         for PIC_OFFSET_TABLE_REGNUM.
20594         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20596 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
20598         * config.gcc (x86_64-*-freebsd*): New target.
20599         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20600         value.
20601         (i[34567]86-*-freebsd*): Don't include svr4.h.
20602         * config/i386/freebsd64.h: New file.
20604 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
20606         * config/alpha/x-vms (version): Make static.
20608         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20609         in previous checkin.
20611         * Makefile.in (install-headers-cp): New target.
20612         * config.gcc (alpha-dec-*vms*): Install headers with
20613         install-headers-cp
20615 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
20617         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20618         avoid it's copies.
20620 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20622         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20623         of compare_tree_int.
20624         (expand_builtin_strncat): Likewise.
20625         * c-decl.c (finish_struct): Use tree_low_cst.
20626         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20627         * tree.c (compare_tree_int): Likewise.
20629 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
20631         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20632         adjustments even if they are implemented by more than two insns.
20634 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
20636         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20637         * df.h (struct ref): Kill B.
20638         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20640         * basic-block.h (PROP_EQUAL_NOTES): New flag.
20641         * flow.c (propagate_one_insn): Use it.
20642         (mark_used_regs): Handle NIL.
20644 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
20646         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20647         to help folding.
20649 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
20651         * rs6000.md (prefetch): Make address V4SI mode so that the address
20652         is restricted to legitimate form for instruction.
20654 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
20656         * doc/install.texi (xtensa-*-elf): New target.
20657         (xtensa-*-linux*): New target.
20658         * doc/contrib.texi: Add myself.
20660 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
20662         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20663         purpose register to hold an SImode (or smaller) value.
20665 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
20667         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20668         registry only.
20669         * crtstuff.c: Likewise.
20671 2002-01-25  Kazu Hirata  <kazu@hxi.com>
20673         * config/h8300/h8300.md (negation patterns): Tighten
20674         predicates to register_operand.
20676 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
20678         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20679         mode, not Pmode.
20681         * builtins.c (expand_builtin_prefetch): Same.
20683 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20685         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20686         modes.
20688 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20690         * config/h8300/h8300.c (print_operand): Remove support for
20691         operand character 'A'.
20692         * config/h8300/h8300.md (three anonymous patterns): Replace
20693         operand character 'A' with either 'T' or 'S'.
20695 2002-01-24  Kazu Hirata  <kazu@hxi.com>
20697         * config/h8300/h8300.c (print_operand): Remove support for
20698         operand character 'U'.
20700 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
20702         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20704 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
20706         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20707         values to be assigned to the stack pointer.
20709 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20711         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20712         to const_double needs to be done right for big-endian systems.
20714 2002-01-24  Jason Merrill  <jason@redhat.com>
20716         PR c++/2432
20717         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20718         to can_throw_internal.
20720 2002-01-23  Richard Henderson  <rth@redhat.com>
20722         * fold-const.c (fold): Change UINT_MAX test to check vs precision
20723         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
20725 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20727         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20728         (symGOT2reg): Use them, then set as GOT value as unchanging.
20729         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
20730         as a temporary, if possible.
20731         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
20732         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20734 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20736         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20737         accept to accept 0x80 as operands[2].
20739 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
20741         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20743 2002-01-23  Richard Henderson  <rth@redhat.com>
20745         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20747 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
20749         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20750         (parmlist_or_identifiers_1): Verify that only a parmlist follows
20751         an attribute.
20753 2002-01-23  Richard Henderson  <rth@redhat.com>
20755         * expr.c (move_by_pieces_1): Extend size before negation.
20757         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20758         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20759         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20760         * config/m68k/t-m68kelf: Likewise.
20762 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
20764         * config/xtensa/elf.h: New file.
20765         * config/xtensa/lib1funcs.asm: New file.
20766         * config/xtensa/lib2funcs.S: New file.
20767         * config/xtensa/linux.h: New file.
20768         * config/xtensa/t-xtensa: New file.
20769         * config/xtensa/xtensa-config.h: New file.
20770         * config/xtensa/xtensa-protos.h: New file.
20771         * config/xtensa/xtensa.c: New file.
20772         * config/xtensa/xtensa.h: New file.
20773         * config/xtensa/xtensa.md: New file.
20774         * config.gcc (xtensa-*-elf*): New target.
20775         (xtensa-*-linux*): New target.
20776         * cse.c (canon_hash): Compare rtx pointers instead of register
20777         numbers.  This is required for the Xtensa port.
20778         * integrate.c (copy_insn_list): Handle case where the static
20779         chain is in memory and the memory address has to be copied to
20780         a register.
20781         * doc/invoke.texi (Option Summary): Add Xtensa options.
20782         (Xtensa Options): New node.
20783         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20785 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20787         * diagnostic.c (internal_error): Do ICE suppression only
20788         when ENABLE_CHECKING is not defined.
20790         * c-typeck.c (require_complete_type): Return error_mark_node
20791         if type is error_mark_node.
20793 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
20795         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20796         -Os and issue a warning.
20798 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
20800         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20801         current (lack of) need for host configuration by hand.
20803         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20804         references.  Documentation of some target macros moved from
20805         hostconfig.texi to tm.texi.
20807 2002-01-23  Will Cohen  <wcohen@redhat.com>
20809         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20810         defined.
20812 2002-01-23  Kazu Hirata  <kazu@hxi.com>
20814         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20815         operand[3].
20817 2002-01-23  Jason Merrill  <jason@redhat.com>
20819         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20821         * function.c (assign_parms): Don't put args of inline functions
20822         into registers when not optimizing.
20824 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
20826         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20827         (prologue_use): New pattern.
20828         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20829         preference to gen_rtx_USE.
20830         (thumb_expand_prologue): Use gen_prologue_use in preference to
20831         gen_rtx_USE.
20832         (thumb_expand_epilogue): Use gen_prologue_use in preference to
20833         gen_rtx_USE.
20835 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
20837         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20839 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20841         PR c/3504
20842         * doc/extend.texi: Correct documentation of __alignof__.
20844 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
20846         * params.h: Rename arguments of DEFPARAM so that it will be
20847         recognized as a translation keyword.
20849 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20851         * extend.texi: Document altivec functions.
20852         Fix N-bit adjectives in X86 builtin documentation.
20854 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20856         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20857         auto_inc_dec values.
20859 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
20861         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20862         after backslash.
20863         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20865 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
20867         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20869 2002-01-22  Richard Henderson  <rth@redhat.com>
20871         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20872         copy_insn not copy_rtx.
20874 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
20876         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20877         "nonzero" as that might add "1" bits.  Ensure "constop" is
20878         properly sign extened.
20879         (force_to_mode): Tweak for sign extended constop.
20881 2002-01-22  Richard Henderson  <rth@redhat.com>
20883         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20884         for_each_rtx instead of assuming we're already looking at the MEM.
20885         (split_small_symbolic_mem_operand): Likewise.
20886         * config/alpha/alpha.h (PREDICATE_CODES): Update.
20887         * config/alpha/alpha.md (small symbolic memory splitters): Update.
20889 2002-01-22  Richard Henderson  <rth@redhat.com>
20891         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20892         sequence number for the literal.
20893         (divmoddi_internal_er): Likewise.
20895 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20897         PR java/4972
20898         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20899         in LIBICONV variable.
20900         * configure: Regenerated.
20902 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
20904         * dependence.c (build_def_use): Remove array_idx.
20906         * dwarfout.c (last_filename): Remove.
20907         (output_compile_unit_die): Remove last_filename.
20909 2002-01-22  Roger Sayle  <roger@eyesopen.com>
20910             Richard Henderson  <rth@redhat.com>
20912         PR opt/3640
20913         * fold-const.c (fold): Optimize unsigned comparisons against
20914         UINT_MAX (and similar unsigned constants).
20916 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
20918         * Makefile.in (loop.o): Depend on OPTABS_H.
20919         * loop.c (emit_prefetch_instructions): Check the prefetch operand
20920         against the predicate.
20922         PR target/5379
20923         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20924         for the address operand.
20926 2002-01-22  Richard Henderson  <rth@redhat.com>
20928         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20930 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20932         PR other/5450
20933         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20934         preprocessor flags.
20936 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
20938         * config.gcc (x86_64-*-netbsd*): New target.
20939         * config/i386/netbsd64.h: New file.
20941 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20943         * regrename.c (kill_value): Fix typo.
20945 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
20947         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
20949         * config/rs6000/rs6000.h: Same.
20951         * function.c (instantiate_virtual_regs): Remove
20952         STARTING_FRAME_PHASE.
20953         (assign_stack_local_1): Same.
20954         Calculate frame phase.
20956 2002-01-22  Nick Clifton  <nickc@redhat.com>
20958         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20959         variable declaration to outer scope in order to simplify
20960         future extensions.
20961         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20962         arm_hard_regno_mode_ok.
20963         * config/arm/arm-protos.h: Add a prototype for
20964         arm_hard_regno_mode_ok.
20965         * config/arm/arm.c (soft_df_operand): Remove now redundant
20966         check for DImode values using IP_REGNUM.
20967         (nonimmediate_soft_df_operand): Remove now redundant check for
20968         DImode values using IP_REGNUM.
20969         (arm_hard_regno_mode_ok): New function. New check: make sure
20970         that DImode values are not stored in IP_REGNUM.
20972         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20973         note with a USE.
20974         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20976 2002-01-22  Jason Merrill  <jason@redhat.com>
20978         * c-semantics.c (genrtl_compound_stmt): Only check nesting
20979         consistency if this COMPOUND_STMT is scoped.
20981 2002-01-22  Kazu Hirata  <kazu@hxi.com>
20983         * predict.c: Fix formatting.
20984         * print-tree.c: Likewise.
20985         * protoize.c: Likewise.
20986         * real.h: Likewise.
20987         * rtl.h: Likewise.
20988         * sbitmap.h: Likewise.
20989         * scan.c: Likewise.
20990         * sched-deps.c: Likewise.
20991         * sched-vis.c: Likewise.
20992         * sdbout.c: Likewise.
20993         * sibcall.c: Likewise.
20994         * ssa.c: Likewise.
20995         * ssa-ccp.c: Likewise.
20996         * ssa-dce.c: Likewise.
20997         * stmt.c: Likewise.
20998         * stor-layout.c: Likewise.
20999         * system.h: Likewise.
21001 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21003         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21004         if fits in bounds of base type.
21006         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21007         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21008         (add_bound_info, default): If can't find a context, make a
21009         SAVE_EXPR.
21010         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21012 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
21014         * c-typeck.c (parser_build_binary_op): If result from
21015         build_binary_op is ERROR_MARK just return error_mark_node without
21016         further processing.
21018 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
21020         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21021         Split a.out-specific bits into...
21022         * config/netbsd-aout.h: ...this.
21023         * config/netbsd-elf.h: New file.
21024         * config/alpha/netbsd-elf.h: Remove.
21025         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21026         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21027         (STARTFILE_SPEC): Remove redundant definition.
21028         (ENDFILE_SPEC): Likewise.
21029         (LINK_SPEC): Likewise.
21030         (CPP_SPEC): Likewise.
21031         (ASM_SPEC): Likewise.
21032         (LIB_SPEC): Likewise.
21033         (SWITCH_TAKES_ARG): Likewise.
21034         (TARGET_MEM_FUNCTIONS): Likewise.
21035         (CPP_PREDEFINES): Redefine.
21036         (ASM_FINAL_SPEC): Remove redefinition.
21037         (ASM_COMMENT_START): Redefine.
21038         (FUNCTION_PROFILER): Define.
21039         (TARGET_VERSION): Redefine.
21040         Comment and formatting cleanup.
21041         * config/i386/netbsd.h: Include <netbsd-aout.h>.
21042         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21043         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21044         big- or little-endian.
21045         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21046         * config.gcc (*-*-netbsd*): Add definitions common to all
21047         NetBSD configs.
21048         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21049         gnu_ld definitions.  Add netbsd-elf.h to and remove
21050         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
21051         tmake_file, and don't lose previous tmake_file contents.
21052         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21053         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21054         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
21055         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21056         (mipsel-*-netbsd*): Rename this to...
21057         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
21058         mips/little.h to tm_file for mips*el-*.
21059         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21060         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21061         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21063 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21065         * pa-protos.h (reg_before_reload_operand): New function prototype.
21066         * pa.c (reg_before_reload_operand): New function implementation.
21067         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
21068         contraints to "*m".
21070 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21072         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21074 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21076         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21077         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21078         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21079         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21080         (ENDFILE_SPEC): Undefine.
21081         (STARTFILE_SPEC): Redefine for PA.
21083 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21085         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21087 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
21089         * config.gcc: Add entries to supported PowerPC --with-cpu
21090         types.
21092 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
21094         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21095         true for 64-bit mode only SSE registers in 32-bit mode.
21097 2002-01-21  Kazu Hirata  <kazu@hxi.com>
21099         * unwind-dw2.c: Fix formatting.
21100         * unwind-dw2-fde.c: Likewise.
21101         * unwind-dw2-fde.h: Likewise.
21102         * unwind-pe.h: Likewise.
21103         * varasm.c: Likewise.
21104         * varray.h: Likewise.
21106 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
21108         Remove workaround for register stack overwrite bug in mmix.
21109         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21110         support for TARGET_REG_STACK_FILL_BUG.
21111         * config/mmix/mmix.h: Remove member has_call_without_parameters.
21112         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21113         Delete.
21114         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21115         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21116         -mno-reg-stack-fill-bug-workaround.
21117         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21118         machine member has_call_without_parameters.
21119         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21120         -mreg-stack-fill-bug-workaround and
21121         -mno-reg-stack-fill-bug-workaround.
21122         (MMIX Options): Ditto.
21124 2002-01-21  Kazu Hirata  <kazu@hxi.com>
21126         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21127         as appropriate.
21128         Remove redundant code.
21130 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
21132         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21133         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21134         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21135         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21136         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21137         out target macro definitions and non-target-specific comments
21138         mostly taken from old versions of the manual.
21140 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21142         * config/h8300/h8300.h: Fix comment formatting.
21143         * config/ia64/aix.h: Likewise.
21144         * config/ia64/ia64-protos.h: Likewise.
21145         * config/ia64/ia64.c: Likewise.
21146         * config/ia64/ia64.h: Likewise.
21147         * config/ia64/ia64intrin.h: Likewise.
21148         * config/ia64/linux.h: Likewise.
21149         * config/ia64/unwind-aix.c: Likewise.
21150         * config/ia64/unwind-ia64.c: Likewise.
21152 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21154         * config/h8300/h8300.c: Revise comments about shift code.
21156 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21158         * config/h8300/h8300.c (function_arg): Update a comment.
21160 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21162         * config/h8300/h8300.md: Update the comments at the beginning
21163         of the file.
21165 2002-01-20  Kazu Hirata  <kazu@hxi.com>
21167         * config/i370/i370.c: Fix comment formatting.
21168         * config/i370/i370.h: Likewise.
21169         * config/i370/i370.md: Likewise.
21170         * config/i370/linux.h: Likewise.
21172 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21174         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
21176         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
21177         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
21178         in incomplete case.
21180 2002-01-20  Graham Stott  <grahams@redhat.com>
21182         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
21184 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21186         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
21188 2002-01-19  Tom Rix  <trix@redhat.com>
21190         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
21192 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
21194         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
21196         * function.c (assign_stack_local_1): Adjust x_frame_offset with
21197         STARTING_FRAME_PHASE.
21198         (STARTING_FRAME_PHASE): New.
21199         (instantiate_virtual_regs): Check saneness of
21200         STARTING_FRAME_PHASE.
21202         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
21204 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
21206         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
21208 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21210         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
21211         be used for bootstrapping GCC 3.0.
21213 2002-01-18  Kazu Hirata  <kazu@hxi.com>
21215         * config/h8300/h8300.md: Fix an insn length.
21217 2002-01-18  Kazu Hirata  <kazu@hxi.com>
21219         * bitmap.h: Fix comment formatting.
21220         * combine.c: Likewise.
21221         * cppfiles.c: Likewise.
21222         * c-pragma.h: Likewise.
21223         * c-typeck.c: Likewise.
21224         * df.c: Likewise.
21225         * dwarf2out.c: Likewise.
21226         * function.c: Likewise.
21227         * gcc.c: Likewise.
21228         * genattrtab.c: Likewise.
21229         * gthr-win32.h: Likewise.
21230         * haifa-sched.c: Likewise.
21231         * predict.c: Likewise.
21232         * rtlanal.c: Likewise.
21233         * rtl.h: Likewise.
21234         * unwind-dw2-fde.h: Likewise.
21235         * unwind-pe.h: Likewise.
21236         * vmsdbgout.c: Likewise.
21238 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21240         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
21241         if type_required and passed decl.
21243 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
21245         * config.gcc (cpu_type): Include altivec.h in powerpc
21246         extra_headers.
21247         Same for darwin.
21249         * config/rs6000/altivec.h: New.
21251 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
21253         * doc/install.texi (*-ibm-aix*): Update assembler and exception
21254         handling information.
21255         * doc/trouble.texi (Interoperation): Add libstdc++ information
21256         for AIX.
21257         (Misunderstandings): Add template instantiation and static template
21258         member information for AIX.
21260 2002-01-17  Jason Merrill  <jason@redhat.com>
21262         * dbxout.c (dbxout_type): Support const and volatile.
21264         * except.c (add_partial_entry): Remove backwards compatibility code.
21265         (end_protect_partials): Likewise.
21267 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
21269         * config/ia64/ia64.md (prologue_use): New.
21270         * config/ia64/ia64.c (ia64_expand_prologue): Use
21271         gen_prologue_use instead of gen_rtx_USE.
21272         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
21273         as CODE_FOR_pred_rel_mutex.
21274         (ia64_sched_reorder2): Likewise.
21276 2002-01-16  Eric Christopher  <echristo@redhat.com>
21278         * config/mips/r3900.h: Reformat.
21279         (SUBTARGET_CPP_SIZE_SPEC): Remove.
21280         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
21281         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
21282         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
21283         * config/mips/t-elf: Remove mips3 multilib.
21285 2002-01-16  H.J. Lu <hjl@gnu.org>
21287         * config/mips/linux.h: Include "mips/abi64.h".
21289 2002-01-16  H.J. Lu <hjl@gnu.org>
21291         * config/mips/t-linux: New.
21293         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
21295         * config/mips/linux.h: Don't include "gofast.h".
21296         (INIT_SUBTARGET_OPTABS): Removed.
21298 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21300         * config/h8300/h8300-protos.h: Replace emit_a_shift with
21301         output_a_shift.
21302         * config/h8300/h8300.c: Likewise.
21303         * config/h8300/h8300.md: Likewise.
21305 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21307         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
21308         spaces after an opcode name.
21309         (pushqi1_h8300hs): Likewise.
21310         (pushhi1_h8300hs): Likewise.
21312 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21314         * doc/extend.texi: Replace "option" with "attribute"
21315         appropriately.
21317 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21319         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
21320         (and:DI () (const_int -8)).
21321         (split_small_symbolic_mem_operand): Split
21322         (mem (and:DI () (const_int -8)).
21324 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21326         PR target/5309:
21327         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
21328         same way as TYPE_IMUL.
21329         (ultrasparc_sched_reorder): Likewise.
21330         * config/sparc/sparc.md (type): Add comment to update
21331         ultrasparc_sched_reorder when making changes.
21333 2002-01-16  Kazu Hirata  <kazu@hxi.com>
21335         * doc/invoke.texi: Change the dump file name of block
21336         reordering pass from 28.bbro to 29.bbro.
21337         Mention -dk option.
21339 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21341         * i386.md (minsf splitter): Fix pasto.
21343 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21345         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
21346         to frame pointer initialisation instruction.
21347         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
21348         initialisation instruction.
21349         (soft_df_operand): Do not accept the IP register.
21350         (nonimmediate_soft_df_operand): Do not accept the IP register.
21352 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
21354         PR target/5357:
21355         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
21356         MASK_V8 being both set.
21358 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
21360         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
21361         insn for GOT register; add REG_MAYBE_DEAD notes instead.
21362         config/s390/s390.md (call, call_value): Add GOT register to
21363         CALL_INSN_FUNCTION_USAGE where needed.
21364         (call_exp, call_value_exp): New.
21366 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
21368         * config/arm/arm.c: General formatting tidy up.
21370 2002-01-16  Graham Stott  <grahams@redhat.com>
21372         * calls.c (try_to_integrate): Use "(size_t)" intermediate
21373         cast and when casting an integer literal to "rtx" pointer.
21374         (expand_call): Likewise.
21375         * flow.c (try_pre_increment): Likewise.
21376         (find_use_as_address): Likewise.
21377         * integrate.c (expand_iline_function): Likewise.
21378         * regmove.c (try_auto_increment): Likewise.
21380 2002-01-16  Graham Stott  <grahams@redhat.com>
21382         * sched-rgn.c (passed): Use sbitmap_free.
21383         (header): Likewise.
21384         (inner): Likewise.
21385         (in_queue): Likewise.
21386         (in_stack): Likewise.
21388 2002-01-15  Eric Christopher  <echristo@redhat.com>
21390         * flow.c (propagate_one_insn): Change to use fatal_insn.
21392 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21394         * expmed.c (extract_fixed_bit_field): Remove unused code.
21395         * system.h: Poison SLOW_ZERO_EXTEND.
21396         * doc/tm.texi: Remove.
21397         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21398         * config/arm/arm.h: Likewise.
21399         * config/avr/avr.h: Likewise.
21400         * config/clipper/clipper.h: Likewise.
21401         * config/convex/convex.h: Likewise.
21402         * config/d30v/d30v.h: Likewise.
21403         * config/dsp16xx/dsp16xx.h: Likewise.
21404         * config/elxsi/elxsi.h: Likewise.
21405         * config/fr30/fr30.h: Likewise.
21406         * config/h8300/h8300.h: Likewise.
21407         * config/i370/i370.h: Likewise.
21408         * config/i386/i386.h: Likewise.
21409         * config/m68k/m68k.h: Likewise.
21410         * config/mips/mips.h: Likewise.
21411         * config/ns32k/ns32k.h: Likewise.
21412         * config/pdp11/pdp11.h: Likewise.
21413         * config/pj/pj.h: Likewise.
21414         * config/s390/s390.h: Likewise.
21415         * config/sh/sh.h: Likewise.
21416         * config/stormy16/stormy16.h: Likewise.
21417         * config/v850/v850.h: Likewise.
21418         * config/vax/vax.h: Likewise.
21419         * config/we32k/we32k.h: Likewise.
21421 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21423         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21424         (altivec_lvsl): Change constraint to b.
21425         (altivec_lvsr): Same.
21426         (altivec_lvebx): Same.
21427         (altivec_lvehx): Same.
21428         (altivec_lvewx): Same.
21429         (altivec_lvxl): Same.
21430         (altivec_lvx): Same.
21431         (altivec_stvx): Add parallel.
21432         (altivec_stvxl): Same.
21433         (altivec_stvehx): Same.
21434         (altivec_stvebx): Same.
21435         (altivec_stvebx): Same.
21437 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
21439         * config.gcc: Change altivec.h to altivec-defs.h.
21441         * config/rs6000/altivec.h: Delete.
21443         * config/rs6000/altivec-defs.h: Add.
21445 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21447         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21448         and UMOD modes.
21450         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21451         less than or equal to eight bytes.
21453         * vax.md (andsi3): Remove constraints and change SET destination
21454         operand type to nonimmediate_operand.
21455         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
21456         when it is a CONST_INT.
21458 2002-01-15  Jason Merrill  <jason@redhat.com>
21460         * c-common.def (FILE_STMT): New code.
21461         * c-common.c (statement_code_p): It's a statement.
21462         * c-common.h (stmt_tree_s): Add x_last_filename.
21463         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21464         (last_expr_filename): New macro.
21465         * c-semantics.c (begin_stmt_tree): Initialize it.
21466         (add_stmt): If the filename changed, also insert a
21467         FILE_STMT.
21468         (expand_stmt): Handle seeing one.
21470 2002-01-15  Eric Christopher  <echristo@redhat.com>
21472         * flow.c (propagate_one_insn): Add error message and print out
21473         insn for debugging.
21475 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21477         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21478         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21479         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21480         TRAMPOLINE_ALIGNMENT.
21481         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
21482         to be in bits.
21483         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21484         PCC_BITFIELD_TYPE_MATTERS.
21485         * config/interix.h (STDC_VALUE): Remove.  Use
21486         STDC_0_IN_SYSTEM_HEADERS.
21487         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21488         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21489         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21491 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21493         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21494         not work on this platform currently.
21496 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
21498         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21499         readonly_warning in _().
21501 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
21503         * gcc.c (delete_if_ordinary): Backout previous change.
21505 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21507         * config/h8300/h8300.c (print_operand): Remove support for
21508         unused operand characters.
21510         * read-rtl.c: Fix formatting.
21511         * real.c: Likewise.
21512         * recog.c: Likewise.
21513         * regclass.c: Likewise.
21514         * regmove.c: Likewise.
21515         * reg-stack.c: Likewise.
21516         * reload1.c: Likewise.
21517         * rtlanal.c: Likewise.
21519 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21521         * config/i386/i386.c: Fix formatting.
21523 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
21525         * c-typeck.c (process_init_element): Don't save_expr
21526         COMPOUND_LITERAL_EXPR if just its initializer will be used.
21528 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
21530         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21531         emit optional traceback table if optimize_size or TARGET_ELF.
21532         * config/rs6000/rs6000.md (prefetch): New.
21534 2002-01-15  Andreas Jaeger  <aj@suse.de>
21536         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21538 2002-01-15  Kazu Hirata  <kazu@hxi.com>
21540         * mips-tfile.c: Fix formatting.
21542 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21544         * unroll.c (final_reg_note_copy): Fix previous commit.
21546 2002-01-14  Kazu Hirata  <kazu@hxi.com>
21548         * config/h8300/h8300-protos.h: Remove the prototype for
21549         eq_operator.
21550         * config/h8300/h8300.c (eq_operator): Remove.
21552 2002-01-14  Richard Henderson  <rth@redhat.com>
21554         * config/i386/i386.md (prefetch): Tidy.
21555         (prefetch_3dnow): Fix locality operand.
21557 2002-01-14  Richard Henderson  <rth@redhat.com>
21559         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21560         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21562 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
21564         * reload1.c (reload_combine): Pass reg_sum replacement through
21565         copy_rtx in loop performing multiple changes.
21567 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
21569         * except.c (remove_unreachable_regions): New.
21570         (free_eh_status): Clear exception_handler_labels.
21571         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21572         (find_exception_handler_labels): Don't add the same label more than
21573         once.
21574         (remove_exception_handler_label): Don't die if
21575         find_exception_handler_labels hasn't been called for the current
21576         function yet.
21578 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
21580         * toplev.c (rest_of_compilation): Rebuild jump labels after
21581         gcse.
21583 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
21585         * doc/extend.texi: Move documentation of X86 built-in functions
21586         here.
21587         * doc/invoke.texi: From here.
21588         * doc/sourcebuild.texi: Document location of documentation for
21589         machine built-in functions.
21591 2002-01-13  Christopher Faylor  <cgf@redhat.com>
21593         * cppfiles.c (TEST_THRESHOLD): New macro.
21594         (SHOULD_MMAP): Ditto.
21595         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21596         be used.
21598 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
21600         * unroll.c (final_reg_note_copy): Properly handle
21601         REG_LABEL
21602         (unroll_loops): Fix LOOP_CONDITION heuristics.
21604 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
21606         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21607         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21609 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21611         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21612         threaded loop.
21614 2002-01-14  Tom Rix  <trix@redhat.com>
21616         * config/rs6000/rs6000.md: Fix typo with sradi.
21618 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
21620         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21621         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21622         (clrstrdi, clrstrsi): Adapt callers.
21624         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21626         (movti splitter): Never use register 0 as base register.
21628 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
21630         * combine.c (simplify_shift_const): Always generate new rtx
21631         for shift expression instead of reusing given expression.
21633 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21635         * config/alpha/alpha.c (alpha_expand_mov): Don't call
21636         alpha_legitimize_address unless mode is Pmode.
21638 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
21640         * doc/md.texi (Modifiers): Document the '*' constraint for the
21641         user.
21643         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21644         * doc/extend.texi (Function Attributes): 'interrupt' is valid
21645         for xstormy16 too.
21647 2002-01-13  Richard Henderson  <rth@redhat.com>
21649         * reload.c (find_reloads): Use a hard reg destination as reload reg
21650         for an input reload of the source.
21652 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
21654         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21655         more generic.
21657 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
21659         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21660         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21662         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21664 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21666         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21668 2002-01-12  Tom Rix  <trix@redhat.com>
21670         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21671         TARGET_POWERPC64.
21673 2002-01-12  Richard Henderson  <rth@redhat.com>
21675         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21677         * doc/invoke.texi: Update Alpha options.
21679         * doc/invoke.texi: Update i386 built-in function lists.
21681 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
21683         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21684         referencing outside.
21686 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21688         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21689         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21690         offsets, and change line folding.
21691         * optabs.c (expand_binop): Remove warnings.
21692         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21694 2002-01-12  Graham Stott <grahams@redhat.com>
21696         * attribs.c (handle_deprecated_attribute): constify WHAT.
21697         * diagnostic.c (warn_deprecated_use): Add braces, fixes
21698         dangling else warning and constify WHAT.
21699         * except.h (struct function, struct inline_remap): Move
21700         struct tag forward defs before all prototypes.
21701         (duplicate_eh_regions): Whitespace.
21703 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
21705         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21706         MODE_BASE_REG_CLASS.
21707         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21709 2002-01-12  Richard Henderson  <rth@redhat.com>
21711         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21712         (ix86_expand_vector_move): New.
21713         (bdesc_2arg): Remove andps, andnps, orps, xorps.
21714         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
21715         Remove old prefetch builtins.  Special case the logicals removed above.
21716         (ix86_expand_builtin): Likewise.
21717         (safe_vector_operand): Use V4SFmode, not TImode.
21718         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
21719         (ix86_expand_timode_binop_builtin): New.
21720         * config/i386/i386-protos.h: Update.
21721         * config/i386/i386.h (enum ix86_builtins): Update.
21722         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21723         Use ix86_expand_vector_move in vector move expanders.
21724         (movti_internal, movti_rex64): Add xorps alternative.
21725         (sse_clrv4sf): Rename and adjust from sse_clrti.
21726         (prefetch): Don't work so hard.
21727         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21728         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21729         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21731 2002-01-11  Richard Henderson  <rth@redhat.com>
21733         * config/i386/mmintrin.h: New file.
21734         * config/i386/xmmintrin.h: New file.
21735         * config.gcc (i?86-*-*): Add extra_headers.
21736         * simplify-rtx.c (simplify_unary_operation): Handle saturating
21737         truncation codes.
21738         (simplify_binary_operation): Handle saturating arithmetic codes.
21739         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21740         not the lowpart subreg.
21741         (ix86_expand_builtin): Return a TImode dummy register instead of 0
21742         on error.
21743         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21745 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21747         * conflict.c (conflict_graph_compute): Free regsets when finished.
21748         * ssa.c (compute_coalesced_reg_partition): Likewise.
21750 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21752         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21753         every where we allocate a register.
21755 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
21757         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21758         * lcm.c (compute_earliest, compute_farthest): Likewise.
21760 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21762         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21764 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
21766         * doc/rtl.texi (Insns): Fix 2 typos.
21768 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
21770         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
21771         options.  Use @table @gcctabopt for MMIX options.  Add index
21772         entries for MMIX options.  Start new paragraph with first
21773         heading of the machine-dependent options.
21775 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21777         PR other/5299
21778         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21779         * combine.c (force_to_mode): Same.
21780         * reload1.c (clear_reload_reg_in_use): Same.
21782 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
21784         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21785         and 'subtargets'.
21787 2002-01-11  Andreas Jaeger  <aj@suse.de>,
21788             Brad Lucier <lucier@math.purdue.edu>
21790         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21791         mcpu.
21793 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
21795         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21796         Protect with IN_LIBGCC.
21797         (LINK_EH_SPEC): Add required trailing space.
21799 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
21801         * c-tree.h: Move function declarations so that they are listed
21802         under the filename which contains them.
21803         (check_identifier, finish_decl_top_level,
21804         lookup_name_current_level_global, shadow_record_fields): Remove.
21806 2002-01-11  Andreas Jaeger  <aj@suse.de>
21808         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21809         march.
21811 2002-01-10  Richard Henderson  <rth@redhat.com>
21813         * config/alpha/alpha.c (print_operand): Add 'J'.
21814         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21815         new operand with the sequence number for the lituse.  When splitting
21816         the insns, use gen_movdi_er_high_g and generate a sequence number.
21817         (gen_movdi_er_high_g): Print the sequence number if non-zero.
21819 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
21821         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21822         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21823         stvxl.
21824         (altivec_expand_builtin): Same.
21825         (altivec_expand_stv_builtin): New.
21827         * config/rs6000/rs6000.h (rs6000_builtins): Same.
21829         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21830         ("altivec_lvehx"): New.
21831         ("altivec_lvewx"): New.
21832         ("altivec_lvxl"): New.
21833         ("altivec_lvx"): New.
21834         ("altivec_stvx"): New.
21835         ("altivec_stvebx"): New.
21836         ("altivec_stvehx"): New.
21837         ("altivec_stvewx"): New.
21838         ("altivec_stvxl"): New.
21840 2002-01-10  Richard Henderson  <rth@redhat.com>
21842         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21843         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
21844         care not to delete instructions twice.
21846 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21848         * toplev.c: Don't declare environ (it's not used anywhere).
21849         * configure.in: Don't check for declaration of environ.
21850         * config/i386/xm-mingw32.h: Don't #define environ.
21851         * config.in, configure: Regenerate.
21853 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
21855         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21856         * configure: Regenerate.
21858         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21859         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21860         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21861         alpha/xm-vms.h.
21862         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21863         LIMITS_H_TEST here, not in m68k/x-next.
21864         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21865         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21867         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21868         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21869         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
21871         * config/i386/x-djgpp: Renamed i386/t-djgpp.
21872         * config/m88k/x-dolph: Renamed m88k/t-dolph.
21873         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21874         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
21875         replacement of quadlib.asm with quadlib.c.
21877         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21878         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21879         config/rs6000/xm-beos.h: Delete file.
21881         * config.gcc: Update to match above changes.
21883 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21885         * config/h8300/h8300.h: Fix comment typos.
21886         * config/h8300/h8300.md: Likewise.
21887         * config/h8300/lib1funcs.asm: Likewise.
21889 2002-01-10  Dale Johannesen  <dalej@apple.com>
21891         PR optimization/5269
21892         * unroll.c (precondition_loop_p): Make *increment be the correct
21893         sign when n_iterations known, to avoid confusing caller.
21895 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21897         * doc/extend.texi (deprecated): Fix a typo.
21899 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21901         * basic-block.h (update_br_prob_note): Declare.
21902         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21903         (try_forward_edges): Care negative frequencies and update note.
21904         (outgoing_edges_match): Tweek conditional merging heuristics.
21905         (try_crossjump_to_edge): use update_br_prob_note.
21906         * cfglayout.c (fixup_reorder_chain): Likewise.
21907         * cfrtl.c (update_br_prob_note): New.
21908         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21910         * i386.c (ix86_decompose_address): Return -1 if address contains
21911         shift.
21912         (legitimate_address_p): Require ix86_decompose_address to return 1.
21914         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21915         (cprop_insn): Likewise.
21917 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21919         * toplev.c: Fix formatting.
21920         * tree.c: Likewise.
21921         * tree-dump.c: Likewise.
21922         * unroll.c: Likewise.
21923         * unwind-dw2.c: Likewise.
21924         * unwind-dw2-fde.c: Likewise.
21925         * unwind-dw2-fde-glibc.c: Likewise.
21926         * unwind-sjlj.c: Likewise.
21928 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
21930         * doc/invoke.texi: Document PDP-11 options.
21932 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21934         * config/h8300/h8300.h: Fix formatting.
21936 2002-01-10  Ira Ruben   <ira@apple.com>
21938         Add __attribute__ ((deprecated)).
21939         * extend.texi: Document __attribute__ ((deprecated)).
21940         * invoke.texi: Document -Wno-deprecated-declarations.
21941         * testsuite/g++.dg/other/deprecated.C: New C++ test.
21942         * testsuite/gcc.dg/deprecated.c: New C test.
21943         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21944         (c_common_attribute_table): Add "deprecated" entry.
21945         (handle_deprecated_attribute): New function.
21946         * c-decl.c (deprecated_states): New enum.
21947         deprecated_state: State of "deprecated" handling.
21948         (start_decl): Set deprecated_state based on attributes.
21949         (grokdeclarator): Test for deprecated uses, propagate attribute.
21950         * c-typeck.c (build_component_ref): Test for deprecated fields.
21951         (build_external_ref): Test for deprecated primaries.
21952         * diagnostic.c (warn_deprecated_use) New function to issue
21953         warnings about __attribute__ ((depricated)) references.
21954         * flags.h (warn_deprecated_decl): Extern declared for
21955         -W[no-]deprecated-declarations option.
21956         * print-tree.c (print_node): Show deprecated flag status.
21957         * toplev.c (warn_deprecated_decl): Defined.
21958         (W_options): Added "deprecated-declaration".
21959         * toplev.h (warn_deprecated_use): Extern declared.
21960         * tree.h (struct tree_common): Define deprecated_flag.
21961         (TREE_DEPRECATED): New macro to access flag.
21962         * cp/call.c (build_call): Test for deprecated calls.
21963         * cp/class.c (add_implicitly_declared_members): Set global
21964         flag to tell grokdeclarator to not issue deprecated warnings.
21965         * cp/cp-tree.h: Add extern for adding_implicit_members.
21966         * cp/decl.c (deprecated_states): New enum.
21967         (start_decl): Set deprecated_state based on attributes.
21968         (grokdeclarator): Test for deprecated uses, propagate attribute.
21969         * cp/lex.c (do_identifier): Test for deprecated primaries.
21970         * cp/typeck.c (build_component_ref): Test for deprecated fields.
21972 2002-01-10  Ira Ruben   <ira@apple.com>
21974         Fix to assign attributes to inline member functions.
21975         * cp/decl.c (start_method): Handle attrlist.
21977 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21979         * combine.c (expand_field_assignment): Use subreg_lsb().
21981 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
21983         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21984         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21985         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21986         Recurse for any operand of AND as long as constant is non-zero.
21988 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21990         * config/h8300/h8300.md: Remove constraints from expanders.
21992 2002-01-10  Kazu Hirata  <kazu@hxi.com>
21994         * varasm.c: Fix formatting.
21995         * varray.c: Likewise.
21996         * vmsdbgout.c: Likewise.
21997         * xcoffout.c: Likewise.
21999 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
22001         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22002         update edge probabilities to match.
22004 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
22006         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22007         dependencies.
22008         * doc/languages.texi, doc/sourcebuild.texi: New files.
22009         * doc/configfiles.texi: Make a subsubsection.  Update.
22010         * doc/configterms.texi: Add @node.  Remove warning that this isn't
22011         instructions for building GCC.
22012         * doc/makefile.texi: Make a subsection.
22013         * doc/gccint.texi: Update.
22015 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
22017         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22019 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
22021         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22023 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
22025         * optabs.c (expand_fix): Look for wider integer modes first.
22027         * i386.md (mov?f): Avoid the fake const double trick for medium
22028         memory model.
22029         (min?f*/max?f*): Prohibit memory operands for i387 variant.
22030         (fop_df_4): Disable for SSE compilation.
22032 2002-01-10  Graham Stott  <grahams@redhat.com>
22034         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22035         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22037 2002-01-10  Richard Henderson  <rth@redhat.com>
22039         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22041 2002-01-10  Richard Henderson  <rth@redhat.com>
22043         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22044         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
22046 2002-01-10  Kazu Hirata  <kazu@hxi.com>
22048         * combine.c (can_combine_p): Fix a comment typo.
22050 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
22052         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22053         empty list correctly.  Change loop index $t to $f for
22054         consistency with rest of Makefile.
22056 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
22058         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22059         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22061         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22062         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22063         (altivec_init_builtins): Same.
22064         (altivec_expand_unop_builtin): Return NULL_RTX on error.
22065         (altivec_expand_binop_builtin): Same.
22066         (altivec_expand_ternop_builtin): Same.
22067         (bdesc_dst): New.
22069         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22070         ("altivec_vctuxs"): Fix typo.
22071         ("altivec_vnmsubfp"): Same.
22072         ("altivec_dssall"): New.
22073         ("altivec_mfvscr"): New.
22074         ("altivec_dss"): New.
22075         ("altivec_lvsl"): New.
22076         ("altivec_lvsr"): New.
22077         ("altivec_dstt"): New.
22078         ("altivec_dstst"): New.
22079         ("altivec_dststt"): New.
22080         ("altivec_dst"): New.
22082         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22083         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22085 2002-01-09  Richard Henderson  <rth@redhat.com>
22087         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22089 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
22091         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22092         function.
22093         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22094         prototype.
22095         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22097 2002-01-09  Kazu Hirata  <kazu@hxi.com>
22099         * read-rtl.c: Fix formatting.
22100         * real.c: Likewise.
22101         * regclass.c: Likewise.
22102         * regrename.c: Likewise.
22103         * reg-stack.c: Likewise.
22104         * reload1.c: Likewise.
22105         * reload.c: Likewise.
22106         * rtl.c: Likewise.
22108 2002-01-09  Kazu Hirata  <kazu@hxi.com>
22110         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22111         to extract items in the expr_list chain.
22113 2002-01-09  Richard Henderson  <rth@redhat.com>
22115         * config/vax/vax.c (vax_rtx_cost): Never abort.
22117         * config/vax/vax.h (REAL_ARITHMETIC): Define.
22119 2002-01-09  Jan Hubicka  <jh@suse.cz>
22121         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22123 2002-01-09  Richard Henderson  <rth@redhat.com>
22125         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22126         Unify code from various alternatives.
22128 2002-01-09  Richard Henderson  <rth@redhat.com>
22130         * regrename.c (copy_value): Ignore the copy if the source register
22131         is present in the value chain with a narrower mode.
22133 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
22135         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22136         for the c4x target. Also improve layout.
22138 2002-01-09  Richard Henderson  <rth@redhat.com>
22140         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
22141         * config/m32r/m32r.md (and ior xor splitters): Swap operands
22142         to match insn patterns.
22144 2002-01-09  Richard Henderson  <rth@redhat.com>
22146         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
22147         (copyprop_hardreg_forward_1): Likewise.
22149 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22151         * pa.md (decrement_and_branch_until_zero): Change predicate for
22152         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
22154 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
22156         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
22157         gets undefined. For Darwin.
22159 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22161         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
22163 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
22165         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
22167 2002-01-08  Richard Henderson  <rth@redhat.com>
22169         * regrename.c (copy_value): Ignore overlapping copies.
22171 2002-01-08  Richard Henderson  <rth@redhat.com>
22173         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
22174         as needed to avoid shared structure.
22176 2002-01-08  Kazu Hirata  <kazu@hxi.com>
22178         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
22179         H8/300H and H8/S.
22181 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22183         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
22184         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
22185         documentation of obsolete macros.
22186         * system.h: Poison these macros.
22187         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
22188         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
22189         config/c4x/c4x.h, config/clipper/clipper.h,
22190         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
22191         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
22192         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
22193         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
22194         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
22195         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
22196         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22197         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
22198         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
22199         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22200         config/sparc/sparc.h, config/stormy16/stormy16.h,
22201         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
22202         definitions and commented out definitions of obsolete macros.
22203         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
22204         of MAX_INT_TYPE_SIZE.
22206 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
22208         * config/s390/s390.c (s390_preferred_reload_class): Never
22209         return ADDR_REGS if it isn't a subset of the given class.
22210         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
22211         FP_REGS, but all superclasses as well.
22213         * config/s390/s390.c (s390_function_profiler): Fix thinko.
22215         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
22216         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
22217         must not be a const_int.
22219 2002-01-08  Richard Henderson  <rth@redhat.com>
22221         * Makefile.in (toplev.o): Depend on options.h.
22222         (gcc.o): Depend on specs.h.
22224 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
22226         * expr.c (store_expr): Convert VOIDmode constants back to target's
22227         mode.
22229 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
22231         * doc/invoke.texi: Markup gcc as @command.  Refer to
22232         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
22233         of http://gcc.gnu.org/thanks.html.
22235 2002-01-08  Dale Johannesen  <dalej@apple.com>
22237         * config/rs6000/rs6000.md: Add missing int register
22238         target case to movdf_low.
22240 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
22242         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
22243         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
22244         (cppinit.o): Depend on except.h.
22245         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
22246         s-specs): New rules.
22248         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
22249         Don't create specs.h/options.h/gencheck.h here.  Remove
22250         unnecessary variable settings from last argument of AC_OUTPUT.
22251         * config.in, configure: Regenerate.
22252         * intl.c: Hardcode package name as "gcc".
22254         * cppinit.c: Include except.h.
22255         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
22256         appropriate.
22257         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
22258         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
22259         (!)USING_SJLJ_EXCEPTIONS.
22260         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
22262 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22264         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
22265         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
22266         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
22267         documentation of obsolete macros.
22268         * system.h: Poison these macros.
22269         * config/d30v/d30v.h, config/ns32k/encore.h,
22270         config/stormy16/stormy16.h: Remove definitions and commented out
22271         definitions of obsolete macros.
22273 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
22275         * objc/objc-act.c (handle_class_ref): Mark the declaration of
22276         %sobjc_class_ref_%s as used - to prevent unwanted compiler
22277         warnings.
22279 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
22281         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
22282         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
22283         to insn adjusting stack/frame pointer.
22284         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
22285         accept operands that cause the insn to be non-splittable.
22287 2002-01-08  Graham Stott  <grahams@redhat.com>
22289         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
22290         (C_TYPE_FIELDS_VOLATILE): Likewise.
22291         (C_TYPE_BEING_DEFINED): Likewise.
22292         (C_IS_RESERVED_WORD): Likewise.
22293         (C_TYPE_VARIABLE_SIZE): Likewise.
22294         (C_DECL_VARIABLE_SIZE): Likewise.
22295         (C_MISSING_PROTOTYPE_WARNED): Likewise.
22296         (C_SET_EXP_ORIGINAL_CODE): Likewise.
22297         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
22298         parenthesis.
22299         (C_DECL_ANTICIPATED): Likewise.
22300         (c_build_type_variant): Add parenthesis.
22302 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
22304         * gcc.c (option_map): Remove --version.
22305         (process_command): Handle -fversion following the GNU Coding
22306         Standards.  Partially addresses PR other/704.
22308 2002-01-08  Graham Stott  <grahams@redhat.com>
22310         * combine.c (combine_instructions): Fix typo.
22312 2002-01-08  Graham Stott  <grahams@redhat.com>
22314         * debug.h: Use "tree" and "rtx" throughout.
22316         * debug.c: Likewise.
22318 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
22320         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
22321         constant pool, use the pool's version of the symbol instead.
22323 2002-01-07  Richard Henderson  <rth@redhat.com>
22325         * regrename.c (find_oldest_value_reg): Ignore the value chain if
22326         the original register was copied in a mode with a fewer number of
22327         hard registers than the desired mode.
22328         (copyprop_hardreg_forward_1): Likewise.
22329         (debug_value_data): Fix loop test.
22330         * toplev.c (parse_options_and_default_flags): Reenable
22331         -fcprop-registers at -O1.
22333 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22335         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
22336         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
22338         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
22339         predicates.
22341         * config/rs6000/rs6000.md: Add altivec predicate patterns.
22343 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22345         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
22346         (pa_output_function_prologue): Output local label at the beginning of
22347         the prologue when profiling.
22348         (hppa_profile_hook): Use the local label rather than the function label.
22349         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
22351 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22353         * config/rs6000/rs6000.c (print_operand): Remove extra space.
22354         (altivec_expand_unop_builtin): Fix thinko.
22355         (altivec_expand_binop_builtin): Same.
22356         (altivec_expand_ternop_builtin): Same.
22357         (altivec_expand_builtin): Same.
22359 2002-01-07  Richard Henderson  <rth@redhat.com>
22361         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
22363 2002-01-07  Jason Merrill  <jason@redhat.com>
22365         * unwind-dw2.c (execute_cfa_program): Use < again.
22367 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22369         * predict.c (combine_predictions_for_insn): Avoid division by zero.
22371 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
22373         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22374         Don't allow -1 - x -> ~x simplifications in the first pass.
22376 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
22378         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22379         arguments.
22380         (altivec_expand_binop_builtin): Same.
22381         (altivec_expand_unop_builtin): Same.
22382         (print_operand): Fix typo.
22383         (bdesc_1arg): Add vupk* variants.
22385         * rs6000.h (rs6000_builtins): Add vupk* enums.
22387         * rs6000.md: Add altivec_vupk* variants.
22389 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
22391         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22392         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22393         and last update dates.
22395 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
22397         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22399 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
22401         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22402         * config/avr/avr.h (CPP_SPEC): Likewise.
22403         (LINK_SPEC): Likewise.
22404         (CRT_BINUTILS_SPECS): Likewise.
22405         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22406         * doc/invoke.texi (AVR Options): Document them.
22408 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
22410         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22411         LABEL_NUSES.
22413 2002-01-07  Graham Stott  <grahams@redhat.com>
22415         * config/i386/i386.h: Update copyright date.
22416         (HALF_PIC_PTR): Add parenthesis.
22417         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22418         (CONSTANT_ALIGNMENT): Add parenthesis.
22419         (DATA_ALIGNMENT): Likewise.
22420         (LOCAL_ALIGNMENT): Likewise.
22421         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22422         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22423         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22424         (HARD_REGNO_NREGS): Add paranethesis.
22425         (VALID_SSE_REG_MODE): Whitespace.
22426         (VALID_MMX_REG_MODE): Whitespace.
22427         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22428         (ix86_hard_regno_mode_ok): Add parenthesis.
22429         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22430         (RETURN_IN_MEMORY): Whitespace.
22431         (N_REG_CLASSES): Add parenthesis.
22432         (INTEGER_CLASS_P): Add parenthesis and wrap.
22433         (FLOAT_CLASS_P): Likewise.
22434         (SSE_CLASS_P): Likewise.
22435         (MMX_CLASS_P): Likewise.
22436         (MAYBE_INTEGER_CLASS_P): Likewise.
22437         (MAYBE_FLOAT_CLASS_P): Likewise.
22438         (MAYBE_SSE_CLASS_P): Likewise.
22439         (MAYBE_MMX_CLASS_P): Likewise.
22440         (Q_CLASS_P): Likewise.
22441         (GENERAL_REGNO_P): Uppercase macro parameter.
22442         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22443         (FP_REGNO_P): Likewise.
22444         (ANY_FP_REGNO_P): Uppercase macro parameter.
22445         (SSE_REGNO_P): Likewise.
22446         (SSE_REGNO): Likewise.
22447         (SSE_REG_P): Likewise.
22448         (SSE_FLOAT_MODE_P): Likewise.
22449         (MMX_REGNO_P): Likewise.
22450         (MMX_REG_P):Likewise.
22451         (STACK_REG_P): Likewise.
22452         (NON_STACK_REG_P): Likewise.
22453         (STACK_TOP_P): Likewise.
22454         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22455         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22456         (SECONDARY_MEMORY_NEEDED): Likewise.
22457         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22458         (MD_ASM_CLOBBERS): Whitespace and wrap.
22459         (MUST_PASS_IN_STACK): Whitespace and wrap.
22460         (RETURN_POPS_ARGS): Add parenthesis.
22461         (INIT_CUMULATIVE_ARGS): Likewise.
22462         (FUNCTION_ARG): Likewise.
22463         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22464         (SETUP_INCOMING_VARARGS): Likewise.
22465         (BUILD_VA_LIST_TYPE):  Add parenthesis.
22466         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22467         parenthsis.
22468         (EXPAND_BUILTIN_VA_ARG): Likewise.
22469         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22470         (INITIALIZE_TRAMPOLINE): Add parenthesis.
22471         (INITIAL_ELIMINATION_OFFSET): Likewise.
22472         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22473         (REGNO_OK_FOR_BASE_P): Likewise.
22474         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22475         (REGNO_OK_FOR_DIREG_P): Likewise.
22476         (REG_OK_FOR_INDEX_P): Whitespace.
22477         (REG_OK_FOR_BASE_P): Whitespace.
22478         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22479         parenthesis.
22480         (FIND_BASE_TERM): Fix typo.
22481         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
22482         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22483         (SYMBOLIC_CONST; Whitespace.
22484         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
22485         (ENCODE_SECTION_INFO): Whitespace.
22486         (FINALIZE_PIC): Remove do { ... } while (0).
22487         (PROMOTE_MODE): Wrap in do { ... } while (0).
22488         (CONST_COSTS): Whitespace.
22489         (RTX_COSTS): Add paramethesis, whitespace and wrap.
22490         (REGISTER_MOVE_COST): Add parenthesis.
22491         (MEMORY_MOVE_COST): Likewise.
22492         (EXTRA_CC_MODES): Whitespace.
22493         (SELECT_CC_MODE): Add parenthesis and whitespace.
22494         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22495         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22496         (ASM_OUTPUT_LABEL): Add paramethesis.
22497         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22498         (ASM_OUTPUT_REG_POP): Likewise.
22499         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22500         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22502         * config/i386/i386.c: Update copyright.
22503         (CHECK_STACK_LIMIT): Add parenthesis.
22504         (AT_BP): Uppercase macro parameter.
22505         (x86_64_int_parameter_registers): Constify.
22506         (x86_64_int_return_registers): Likewise.
22507         (ix86_compare_op0): Use rtx.
22508         (construct_container): Constify INTREG parameter.
22509         (function_arg): Use rtx.
22511         * diagnostic.h: Update copyright date.
22512         (output_buffer_state): Add parenthesis.
22513         (output_buffer_format_args): Likewise.
22515         * combine.c (combine_instructions): Replace XEXP (links, 0)
22516         with link.
22518 2002-01-06  H.J. Lu <hjl@gnu.org>
22520         * cfgcleanup.c (thread_jump): Fix 2 typos.
22522 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
22524         * config.gcc: Add support for --enable-altivec.
22526 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22528         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22530 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
22532         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22533         __objc_class_name_*.
22535 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
22537         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22539 2002-01-06  Richard Henderson  <rth@redhat.com>
22541         * reorg.c (emit_delay_sequence): Remove death notes, not merely
22542         nop them out.  Increment label reference count for REG_LABEL.
22543         (fill_slots_from_thread): Frob label reference count around
22544         delete_related_insns.
22546 2002-01-05  Richard Henderson  <rth@redhat.com>
22548         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22549         jump threading.
22551 2002-01-05  Richard Henderson  <rth@redhat.com>
22553         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22554         * integrate.c (output_inline_function): Likewise.
22555         * toplev.c (rest_of_compilation): Do it here instead.  Move call
22556         to remove_unnecessary_notes after emitting abstract instance.
22557         Force an emitted nested function to have its parent emited as well.
22558         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22559         for null.
22560         (rtl_for_decl_location): Do not look at reload data structures
22561         before reload has run.
22563 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22565         * cse.c: Fix formatting.
22566         * dwarf2asm.c: Likewise.
22567         * dwarf2out.c: Likewise.
22568         * explow.c: Likewise.
22569         * expmed.c: Likewise.
22570         * function.c: Likewise.
22571         * gcov.c: Likewise.
22572         * gencheck.c: Likewise.
22573         * genrecog.c: Likewise.
22574         * ggc-common.c: Likewise.
22575         * ggc-page.c: Likewise.
22576         * global.c: Likewise.
22578 2002-01-05  Kazu Hirata  <kazu@hxi.com>
22580         * combine.c: Fix formatting.
22582 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
22584         PR middle-end/1557
22585         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22587 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
22589         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22590         as 1 for __powerpc64__ as well.
22592         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22594         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22595         return it.
22597 2002-01-05  Daniel Berlin  <dan@dberlin.org>
22599         * lcm.c: Revert change, due to performance regression it causes on
22600         SPEC because it's slightly more conservative (sigh, I hate
22601         edge-based LCM).
22603 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
22605         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22607 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
22609         * doc/cppinternals.texi: Update.
22611 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
22613         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22614         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22615         negatives.
22616         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
22617         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22618         kludge for pre-october-14th mmix versions to handle new-found bug
22619         with PUSHJ/PUSHGO and the register stack.
22620         * config/mmix/mmix.h (struct machine_function): Rename member
22621         has_call_value_without_parameters to has_call_without_parameters.
22622         All referers changed.
22623         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22624         TARGET_MASK_BRANCH_PREDICT): New macros.
22625         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22626         -mno-reg-stack-fill-bug-workaround.
22627         * config/mmix/mmix.md ("call"): Set struct machine member
22628         has_call_without_parameters.
22630 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
22632         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22634 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
22636         * cfgcleanup.c: Include tm_p.h
22637         (mark_effect): Fix handling of hard register; fix handling of SET
22639 2002-01-04  Kazu Hirata  <kazu@hxi.com>
22641         * config/h8300/h8300.md (anonymous patterns): Check that
22642         operands are registers before using REGNO on them.
22644 2002-01-03  Roland McGrath  <roland@frob.com>
22646         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22648 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
22650         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22651         * c-common.h (genrtl_expr_stmt_value): Likewise.
22652         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22653         (expand_expr_stmt_value): Add maybe_last argument.
22654         Don't warn about statement with no effect if it is the last statement
22655         in expression statement.
22656         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22657         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22658         expand_expr_stmt_value.
22659         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22660         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22661         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22662         as maybe_last to expand_expr_stmt_value.
22664 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
22666         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22667         be passed in, do not build it.
22668         (c_begin_if_stmt): New function.
22669         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22670         * c-common.h (c_expand_start_cond): Update prototype.
22671         (c_begin_if_stmt): Prototype new function.
22672         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22673         * c-parse.in (if_prefix): Use c_begin_if_stmt,
22674         c_begin_while_stmt and c_finish_while_stmt_cond.
22676 2002-01-04  William Cohen  <wcohen@redhat.com>
22678         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22679         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22680         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22681         * config/pa/som.h (ASM_FILE_START): Likewise.
22683 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
22685         * lcm.c: Include df.h.
22686         Add available_transfer_function prototype.
22687         (compute_available): Rework to use iterative dataflow framework.
22688         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22689         with bb_info in df.h
22690         (available_transfer_function): New function.
22692         * Makefile.in (lcm.o): add df.h to dependencies.
22694 2002-01-04  Richard Henderson  <rth@redhat.com>
22696         * config/alpha/alpha.c (some_operand): Accept HIGH.
22697         (input_operand): Likewise; accept simple references to globals.
22698         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22699         (alpha_const_double_ok_for_letter_p): Likewise.
22700         (alpha_extra_constraint): Likewise.
22701         (alpha_preferred_reload_class): Likewise.  Do not force
22702         symbolic constants to memory.
22703         (alpha_legitimate_address_p): Accept simple references
22704         to small_symbolic_operand.
22705         (alpha_legitimize_address): New arg scratch.  Be prepared to be
22706         called when no_new_pseudos.  Emit simple symbolic references.
22707         Split integers into low, high, and rest.
22708         (alpha_expand_mov): Use alpha_legitimize_address.
22709         (some_small_symbolic_mem_operand): New.
22710         (split_small_symbolic_mem_operand): New.
22711         * config/alpha/alpha-protos.h: Update.
22712         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22713         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22714         (EXTRA_CONSTRAINT): Likewise.
22715         (PREFERRED_RELOAD_CLASS): Likewise.
22716         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22717         (PREDICATE_CODES): Update.
22718         * config/alpha/alpha.md: New post-reload splitters to convert
22719         simplfied symbolic operands to the form that references $29.
22720         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22721         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22723 2002-01-03  Richard Henderson  <rth@redhat.com>
22725         * local-alloc.c (function_invariant_p): Update commentary.
22727 2002-01-04  H.J. Lu <hjl@gnu.org>
22729         * toplev.c (rest_of_compilation): Fix a typo when calling
22730         cleanup_cfg.
22732 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22734         * c-common.c: Fix formatting.
22735         * diagnostic.c: Likewise.
22736         * doloop.c: Likewise.
22737         * dwarf2out.c: Likewise.
22739 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22741         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22742         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22744 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22746         * cpperror.c: Update comments and copyright.
22747         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22748         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22750 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22752         * collect2.c (main): Use strcmp when testing for "-shared".
22754 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
22756         * cppmacro.c: Don't include intl.h.  Update comments.
22757         (new_number_token): Allocate enough buffer for 64-bit unsigned
22758         integers; update prototype.
22759         * cppmain.c: Update comments.
22761 2002-01-03  William Cohen  <wcohen@redhat.com>
22763         * function.h (struct function): Add profile.
22764         (current_function_profile): New.
22765         doc/extend.texi: Update documentation.
22766         * final.c (final_start_function): Use current_function_profile
22767         instead of profile_flag.
22768         (profile_after_prologue): Likewise.
22769         * function.c (expand_function_start): Likewise.
22770         (expand_function_start): Likewise.
22771         * config/alpha/alpha.c (direct_call_operand):
22772         (alpha_does_function_need_gp): Likewise.
22773         (alpha_expand_prologue): Likewise.
22774         * config/arm/arm.c (arm_expand_prologue): Likewise.
22775         thumb_expand_prologue: Likewise.
22776         * config/d30v/d30v.c (d30v_stack_info): Likewise.
22777         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22778         (fr30_expand_prologue): Likewise.
22779         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22780         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22781         * config/i386/i386.h (FINALIZE_PIC): Likewise.
22782         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22783         * config/i960/i960.c (i960_output_function_prologue): Likewise.
22784         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22785         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22786         (m32r_expand_prologue): Likewise.
22787         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22788         (m88k_expand_prologue): Likewise.
22789         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22790         * config/mips/mips.c (compute_frame_size): Likewise.
22791         (mips_expand_prologue): Likewise.
22792         (mips_can_use_return_insn): Likewise.
22793         * config/pa/elf.h (ASM_FILE_START): Likewise.
22794         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22795         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22796         * config/pa/som.h (ASM_FILE_START): Likewise.
22797         * config/romp/romp.c (romp_using_r14): Likewise.
22798         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22799         (rs6000_stack_info): Likewise.
22800         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22801         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22802         * config/v850/v850.c (compute_register_save_size): Likewise.
22804 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
22806         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22807         gen_lowpart_common fails, use gen_lowpart_SUBREG.
22809 2002-01-03  Turly O'Connor  <turly@apple.com>
22811         * darwin.c (machopic_output_possible_stub_label): Don't generate
22812         stub routines for pseudo-stubs which we've just defined.
22814 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22816         * builtins.c: Fix formatting.
22817         * c-typeck.c: Likewise.
22818         * combine.c: Likewise.
22819         * expr.c: Likewise.
22820         * loop.c: Likewise.
22822 2002-01-03  Andreas Schwab  <schwab@suse.de>
22824         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22825         and return true if _cpp_push_next_buffer pushed a new include
22826         file.
22827         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22828         _cpp_pop_file_buffer did not push a new file.
22829         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22831 2002-01-02  Eric Christopher  <echristo@redhat.com>
22833         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22834         FIND_REG_INC_NOTE call. Update copyright.
22835         * loop.c (canonicalize_condition): Ditto.
22836         * reorg.c (delete_scheduled_jump): Ditto.
22838 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22840         * gcse.c: Fix formatting.
22842 2002-01-03  Graham Stott  <grahams@redhat.com>
22844         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22845         forward defs for struct tags rtx_def, union_tree, rtvec_def
22846         also output corresponding typedefs for rtx, tree, and rtvec.
22848         * system.h: Move forward defs for struct tags rtx_def, union_tree,
22849         rtvec_def along with corresponding typedefs for rtx, tree, and
22850         rtvec to config.h, hconfig.h, tconfig.h.
22852 2002-01-03  Graham Stott  <grahams@redhat.com>
22854         * tree.h: Update copyright date.
22855         (IS_EXPR_CODE_CLASS): Add parenthesis.
22856         (TREE_SET_CODE): Add whitespace.
22857         (TREE_CHECK): Add parenthesis.
22858         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22859         (CST_OR_CONSTRUCTOR_CHECK):
22860         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22861         (TREE_SYMBOL_REFERENCED): Whitespace.
22862         (INT_CST_LT): Likewise.
22863         (INT_CST_LT_UNSIGNED): Likewise.
22864         (tree_real_cst): Unwrap comment.
22865         (tree_string): Likewise.
22866         (tree_complex): Likewise.
22867         (IDENTIFIER_POINTER): correct cast.
22868         (SAVE_EXPR_CONTEXT): Whitespace.
22869         (EXPR_WFL_FILENAME_NODE): Likewise.
22870         (EXPR_WFL_FILENAME): Remove parenthesis.
22871         (DECL_ORIGIN): Add parenthesis.
22872         (DECL_FROM_INLINE): Use NULL_TREE.
22873         (build_int_2): Whitespace.
22874         (build_type_variant): Add parenthesis.
22876         * gcc/jcf-parse.c: Update copyright date.
22877         (yyparse): Constify resource_filename.
22879 2002-01-03  Graham Stott  <grahams@redhat.com>
22881         * rtl.h: Update copyright date.
22882         (RTL_CHECK1): Wrap long line.
22883         (RTL_CHECK2): Likewise.
22884         (RTL_CHECKC1): Wrap long line and whitespace.
22885         (RTL_CHECKC2): Likewise.
22886         (XWINT): Whitespace.
22887         (XINT): Likewise.
22888         (XSTR): Likewise.
22889         (XEXP): Likewise.
22890         (XVEC): Likewise.
22891         (XMODE): Likewise.
22892         (XBITMAP): Likewise.
22893         (XTREE): Likewise.
22894         (XBBDEF): Likewise.
22895         (XTMPL): Likewise.
22896         (X0WINT): Likewise.
22897         (X0INT):Likewise.
22898         (X0UINT): Likewise.
22899         (X0STR): Likewise.
22900         (X0EXP): Likewise.
22901         (X0VEC): Likewise.
22902         (X0MODE): Likewise.
22903         (X0BITMAP): Likewise.
22904         (X0TREE): Likewise.
22905         (X0BBDEF): Likewise.
22906         (X0ADVFLAGS): Likewise.
22907         (X0CSELIB): Likewise.
22908         (X0MEMATTR): Likewise.
22909         (XCWINT): Likewise.
22910         (XCINT): Likewise.
22911         (XCUINT): Likewise.
22912         (XCSTR): Likewise.
22913         (XCEXP): Likewise.
22914         (XCVEC): Likewise.
22915         (XCMODE): Likewise.
22916         (XCBITMAP): Likewise.
22917         (XCTREE): Likewise.
22918         (XCBBDEF): Likewise.
22919         (XCADVFLAGS): Likewise.
22920         (XCCSELIB): Likewise.
22921         (XC2EXP): Likewise.
22922         (INSN_UID): Likewise.
22923         (PREV_INSN): Likewise.
22924         (PATTERN): Likewise.
22925         (INSN_CODE): Likewise.
22926         (PUT_REG_NOTE_KIND): Likewise.
22927         (CODE_LABEL_NUMBER): Likewise.
22928         (NOTE_SOURCE_FILE): Likewise.
22929         (NOTE_BLOCK): Likewise.
22930         (NOTE_EH_HANDLER): Likewise.
22931         (NOTE_RANGE_INFO): Likewise.
22932         (NOTE_LIVE_INFO): Likewise.
22933         (NOTE_BASIC_BLOCK): Likewise.
22934         (NOTE_EXPECTED_VALUE): Likewise.
22935         (NOTE_LINE_NUMBER): Likewise.
22936         (LABEL_NAME): Likewise.
22937         (LABEL_NUSES): Likewise.
22938         (LABEL_ALTERNATE_NAME): Likewise.
22939         (ADDRESSOF_DECL): Likewise.
22940         (JUMP_LABEL): Likewise.
22941         (LABEL_NEXTREF): Likewise.
22942         (REGNO): Likewise.
22943         (ORIGINAL_REGNO: Likewise.
22944         (HARD_REGISTER_NUM_P): Add parenthesis.
22945         (SUBREG_REG): Whitespace.
22946         (SUBREG_BYTE): Likewise.
22947         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22948         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22949         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22950         (ASM_OPERANDS_INPUT_VEC): Likewise.
22951         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22952         (ASM_OPERANDS_INPUT): Likewise.
22953         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22954         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22955         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22956         (ASM_OPERANDS_INPUT_MODE): Likewise.
22957         (ASM_OPERANDS_SOURCE_FILE): Likewise.
22958         (ASM_OPERANDS_SOURCE_LINE): Likewise.
22959         (MEM_SET_IN_STRUCT_P): Minor reformat.
22960         (TRAP_CONDITION): Whitespace.
22961         (TRAP_CODE): Likewise.
22962         (COND_EXEC_TEST): Likewise.
22963         (COND_EXEC_CODE): Likewise.
22964         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22965         (PHI_NODE_P): Add parenthesis.
22966         (plus_constant): Whitespace and add parenthesis.
22968 2002-01-03  Kazu Hirata  <kazu@hxi.com>
22970         * config/avr/avr.c: Fix comment typos.
22971         * config/c4x/c4x.md: Likewise.
22972         * config/dsp16xx/dsp16xx.h: Likewise.
22973         * config/dsp16xx/dsp16xx.md: Likewise.
22974         * config/i386/i386.md: Likewise.
22975         * config/ia64/ia64.c: Likewise.
22976         * config/m32r/m32r.h: Likewise.
22977         * config/m68hc11/m68hc11.md: Likewise.
22978         * config/mmix/mmix.c: Likewise.
22979         * config/mn10200/mn10200.c: Likewise.
22980         * config/romp/romp.c: Likewise.
22981         * config/sh/sh.c: Likewise.
22982         * config/stormy16/stormy16.c: Likewise.
22983         * config/stormy16/stormy16.h: Likewise.
22984         * config/stormy16/stormy16.md: Likewise.
22986 2002-01-03  Graham Stott  <grahams@redhat.com>
22988         * loop.h: Update copyright date.
22989         (LOOP_MOVABLES): Fix typo.
22990         (LOOP_REGS): Likewise.
22991         (LOOP_IVS): Likewise.
22993 2002-01-03  Graham Stott  <grahams@redhat.com>
22995         * cppinit.c: Update copyright date.
22996         Don't include output.h
22997         * Makefile.in: Update copyright date.
22998         Update dependency.
23000 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23002         PR c/5226
23003         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23004         (-pthread) Add to RS/6000 options.
23006 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23008         * except.c: Fix comment typos.
23009         * loop.c: Likewise.
23010         * varasm.c: Likewise.
23011         * doc/tm.texi: Fix a typo.
23013 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
23015         * c-typeck.c (output_init_element): Allow initializing static storage
23016         duration objects with compound literals.
23018 2002-01-02  Richard Henderson  <rth@redhat.com>
23020         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23021         after abusing it.
23023 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23025         * gcc.c (default_compilers): Const-ify.
23026         * mips-tdump.c (stab_names): Likewise.
23027         * mips-tfile.c (map_coff_types, map_coff_storage,
23028         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23029         pseudo_ops_t, pseudo_ops): Likewise.
23030         * protoize.c (default_include): Likewise
23032         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23033         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23034         Add array size in declaration.
23035         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23036         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23037         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23038         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23039         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23040         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23041         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23042         emtens, make_nan): Const-ify.
23043         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23044         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23046 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
23048         * config.gcc (ia64-*-*): Set extra_headers.
23049         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
23050         * config/alpha/t-osf: Remove.
23051         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23053 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
23055         * config/rs6000/t-aix43: Revert previous change.
23057 2002-01-02  Jason Merrill  <jason@redhat.com>
23059         * c-decl.c (c_expand_body): Call outlining_inline_function when
23060         emitting an inline function out of line.
23062 2002-01-02  Richard Henderson  <rth@redhat.com>
23064         * dwarf2out.c (limbo_die_node): Add created_for member.
23065         (new_die): New argument created_for.  Update all callers.
23066         (mark_limbo_die_list): New.
23067         (dwarf2out_init): Register limbo_die_list as a root.
23068         (dwarf2out_finish): Force insert limbo dies into their function
23069         context.
23071 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
23073         PR c++/5089
23074         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23076 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23078         * config/h8300/fixunssfsi.c: Update copyright.
23079         Fix comment typos.
23080         Fix formatting.
23081         * config/h8300/h8300.c: Update copyright.
23082         Eliminate warnings.
23084 2002-01-02  Kazu Hirata  <kazu@hxi.com>
23086         * config/romp/romp.c: Fix comment formatting.
23087         * config/romp/romp.h: Likewise.
23088         * config/romp/romp.md: Likewise.
23089         * config/s390/s390.c: Likewise.
23090         * config/stormy16/stormy16.c: Likewise.
23091         * config/stormy16/stormy16.h: Likewise.
23093 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
23095         * c-common.h (genrtl_expr_stmt_value): Declare.
23096         * c-semantics.c (genrtl_goto_stmt): Redirect to...
23097         (genrtl_goto_stmt_value): ... this new function.  Pass new
23098         argument down to expand_expr_stmt_value, taking
23099         TREE_ADDRESSABLE into account.
23100         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23101         STMT_EXPR as addressable, i.e., one whose result we want.
23102         * expr.c (expand_expr): Don't save expression statement value
23103         of labeled_blocks or loop_exprs.
23104         * stmt.c (expand_expr_stmt): Redirect to...
23105         (expand_expr_stmt_value): ... this new function.  Use new
23106         argument to tell whether to save expression value.
23107         (expand_end_stmt_expr): Reset last_expr_type and
23108         last_expr_value if we don't have either.
23109         * tree-inline.c (declare_return_variable): Mark its use
23110         statement as addressable.
23111         * tree.h: Document new use of TREE_ADDRESSABLE.
23112         (expand_expr_stmt_value): Declare.
23114 2002-01-01  Tom Rix  <trix@redhat.com>
23116         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23117         rs6000_emit_allocate_stack.
23119 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
23121         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23122         ${srcdir}/ginclude/ to every entry in extra_headers.
23123         * configure: Regenerate.
23124         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23125         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23126         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23127         * ginclude/proto.h: Rename to config/convex/proto.h.
23129 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23131         * attribs.c (handle_vector_size_attribute): Use host_integerp
23132         and tree_int_cst; remove warnings.
23133         * caller-save.c (insert_restore): Add cast to get rid of warning.
23134         (insert_save): Likewise.
23135         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23136         * regmove.c (find_matches): Add temporary var to kill a warning.
23138 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
23140         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
23141         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
23142         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
23143         (vms-dwarf2eh.o): Add Makefile rule.
23144         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
23145         * config/alpha/vms-dwarf2eh.asm: New file.
23147         * gcc.c (delete_if_ordinary): Delete all versions.
23149 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
23151         * config/mmix/mmix.md: Update FIXME to not mention
23152         define_constants.
23153         (MMIX_rJ_REGNUM): New define_constants constant.
23154         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
23155         "*movdicc_real"): Adjust contraints formatting.
23156         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
23157         for branch prediction.
23158         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
23159         output template.
23160         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
23161         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
23162         number.  Delete related FIXMEs.
23163         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
23164         from number to MMIX_rJ_REGNUM.
23165         (TARGET_MASK_BRANCH_PREDICT): New.
23166         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
23167         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
23168         value.  Add -mbranch-predict and -mno-branch-predict.
23169         (TARGET_VERSION): Drop date.
23170         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
23171         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
23172         for finding out global symbols.
23173         (mmix_asm_output_labelref): Revert condition for global symbol.
23174         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
23175         (mmix_print_operand_punct_valid_p): A '+' is valid.
23177 See ChangeLog.6 for earlier changes.