* timevar.h (struct timevar_time_def): Change element type to float.
[official-gcc.git] / gcc / ChangeLog
blob390955df9436e7a6dfd96ea7b50d9160fd19f890
1 2001-08-18  Richard Henderson  <rth@redhat.com>
3         * timevar.h (struct timevar_time_def): Change element type to float.
4         (ticks_to_msec, clocks_to_msec): Likewise.
5         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
6         (get_time): Likewise.
7         (timevar_print): Adjust zero check and printing to match.
9 2001-08-18  Zack Weinberg  <zackw@panix.com>
11         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
12         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
13         Eliminate overfull or underfull hboxes.
15 2001-08-18  Zack Weinberg  <zackw@panix.com>
17         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
19 2001-08-18  Zack Weinberg  <zackw@panix.com>
21         * haifa-sched.c: Convert to target hooks.  Macros replaced
22         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
23         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
24         MD_SCHED_FINISH, and HAVE_cycle_display.
25         * target-def.h (TARGET_SCHED_ADJUST_COST,
26         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
27         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
28         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
29         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
30         New hook #defines to be overridden.
31         (TARGET_SCHED): Bring them all together.
32         (TARGET_INITIALIZER): Update.
33         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
34         instead of 'struct rtx_def *' throughout.
35         (struct sched): New set of hooks for the scheduler.
36         * Makefile.in (haifa-sched.o): Depend on target.h.
37         * doc/tm.texi: Document the new scheduler hooks, together in
38         their own section, instead of scattered around.
39         Fix a bunch of underfull/overfull hboxes.
41         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
42         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
43         sparc.h: Don't define any of the old scheduler macros.
45         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
46         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
47         sparc.c: Create hook functions from code extracted from
48         corresponding target header, or make existing hooks static, as
49         appropriate.  Set the appropriate entries in targetm.
51         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
52         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
53         rs6000-protos.h, s390-protos.h, sparc-protos.h:
54         Remove prototypes for functions which are now static.
56         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
57         related gunk; the Haifa scheduler is now the only choice.
59 2001-08-18  Zack Weinberg  <zackw@panix.com>
61         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
62         * genopinit.c: Put floating point divide insns in sdiv_optab.
63         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
64         * config/gofast.h, config/c4x/c4x.h,
65         config/ia64/hpux_longdouble.h, config/mips/mips.h,
66         config/pa/long_double.h, config/rs6000/sysv4.h,
67         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
68         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
69         (init_optabs): Use init_optabv for overflow-trapping optabs.
70         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
71         cmp_optab RTX codes so have_insn_for can find them.
73         * optabs.c (expand_simple_binop, expand_simple_unop,
74         have_insn_for, gen_sub3_insn): New interfaces.
75         * expr.h: Prototype new functions.
76         (enum optab_methods): Move here from optabs.h.
78         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
79         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
80         Use new functions instead of working directly with optabs.
81         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
82         unroll.c: Don't include optabs.h.
83         * caller-save.c, combine.c, function.c, stmt.c: Just include
84         insn-codes.h, not optabs.h.
85         * Makefile.in: Update dependencies.
87         * combine.c (make_compound_operation, simplify_comparison):
88         Fix typos testing for this or that instruction.
90 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
92         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
93         generating libgcc.a.
95 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
97         * except.c (TYPE_HASH): Delete.
99         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
100         HOST_WIDE_INT.
102         * tree.c (TYPE_HASH): Delete.
104         * tree.h (TYPE_HASH): Define.
106 2001-08-18  Graham Stott  <grahams@redhat.com>
108         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
109         define_split.
110         (adddi3_internal_2+2): Likewise.
111         (eh_set_lr_di+1): Likewise.
113 2001-08-17  Richard Henderson  <rth@redhat.com>
115         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
116         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
117         * dwarf2asm.c: ... here.
118         * dwarfout.c: Remove them.
120         * varasm.c (assemble_integer): Add align parameter.
121         (assemble_real, output_constant, output_constructor): Likewise.
122         * output.h: Update decls.
123         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
124         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
125         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
126         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
127         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
128         Update all callers.
130         * final.c (end_final): Abort profile block generation if we
131         havn't layed it out properly.
132         * output.h (assemble_eh_integer): Remove stale decl.
133         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
134         (min_align): New.
135         (assemble_integer): Handle unaligned data.
136         (assemble_real): Abort on unaligned data.
137         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
138         anything useful.
139         (default_dtor_section_asm_out_destructor): Use assemble_align.
140         (default_named_section_asm_out_constructor): Likewise.
141         (default_ctor_section_asm_out_constructor): Likewise.
142         * config/darwin.c (machopic_asm_out_constructor): Likewise.
143         (machopic_asm_out_destructor): Likewise.
144         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
145         (nextstep_asm_out_destructor): Likewise.
146         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
147         (vms_asm_out_destructor): Likewise.
149 2001-08-17  Richard Henderson  <rth@redhat.com>
151         * config/mips/iris6.h (TARGET_IRIX6): New.
152         (current_section_name, current_section_flags): New.
153         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
154         (MAX_OFILE_ALIGNMENT): New.
155         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
156         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
157         (copy_file_data): Split out from
158         (mips_asm_file_end): ... here.
159         (mips_asm_file_start): Remove extra .section directive.  Use
160         tmpfile instead of mips_make_temp_file.
161         (mips_unique_section): Use const char * as needed for warnings.
162         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
163         re-add align parameter.
164         (iris6_asm_named_section): New.
165         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
166         (iris6_asm_output_align, iris6_section_align_1): New.
167         (iris6_asm_file_start, iris6_asm_file_end): New.
168         * config/mips/mips-protos.h: Update decls.
170 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
172         * doc/install.texi (Install GCC): Add links to build status pages.
173         (Specific): Ditto.
174         (Final install): Ditto; request updates for specific info
176 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
178         * cpperror.c (print_location):  Don't take a file name; use the
179         line map instead.
180         (_cpp_begin_message): Similarly.
181         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
182         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
183         (cpp_pedwarn_with_file_and_line): Remove.
184         * cppfiles.c (stack_include_file): Update; set filename to stdin
185         here when appropriate.
186         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
187         (_cpp_begin_message): Don't take a file name.
188         * cppinit.c: Add comment.
189         * cpplex.c: Fix end-of-directive indicator.
190         * cpplib.c: Don't include intl.h.
191         (run_directive, do_diagnostic): Update.
192         (do_line): Update to not use nominal_fname.
193         (cpp_push_buffer): Don't take a filename.
194         * cpplib.h (struct ht): Remove.
195         (cpp_push_buffer): Don't take a filename.
196         (cpp_pedwarn_with_file_and_line): Remove.
197         * cppmacro.c (struct cpp_macro): Remove file.
198         (builtin_macro): Update.
199         (_cpp_create_definition): Update.
200         * cppmain.c: Correct comment.
201         * fix-header.c (read_scan_file): Update.
203 2001-08-17  Kazu Hirata  <kazu@hxi.com>
205         * sbitmap.c: Fix comment formatting.
206         * sched-deps.c: Likewise.
207         * sibcall.c: Likewise.
208         * simplify-rtx.c: Likewise.
209         * ssa.c: Likewise.
210         * ssa-ccp.c: Likewise.
211         * stor-layout.c: Likewise.
212         * timevar.c: Likewise.
213         * toplev.c: Likewise.
214         * unwind-dw2.c: Likewise.
215         * unwind-dw2-fde.c: Likewise.
216         * varasm.c: Likewise.
218 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
220         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
221         or larger than an integer in memory.
223 2001-08-17  Zack Weinberg  <zackw@panix.com>
225         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
226         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
227         * rtl.h: Don't forward-declare union tree_node here.  Don't
228         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
229         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
230         and tree respectively.
231         * tree.h: Don't forward-declare struct rtx_def here.  Don't
232         typedef tree here.  Change all uses of struct rtx_def *,
233         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
234         and tree respectively.
236 2001-08-17  Richard Henderson  <rth@redhat.com>
238         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
239         config/mips/openbsd.h: Fix typos last change.
241 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
243         * doc/invoke.texi (Optimize Options): The default for
244         -finline-limit is 600.
246 2001-08-17  Richard Henderson  <rth@redhat.com>
248         * varasm.c (text_section): Allow TEXT_SECTION to override the
249         printing of TEXT_SECTION_ASM_OP.
250         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
251         (DATA_SECTION, BSS_SECTION): Remove.
252         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
253         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
254         Rename from s/_NAME//.
255         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
256         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
257         (TEXT_SECTION): ... here.  New.
258         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
259         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
260         * config/mips/openbsd.h: Likewise.
261         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
262         (mips_asm_file_end): Likewise test.
263         (mips_output_function_epilogue): Likewise.  Switch back to data
264         section after emitting the function.
266         * doc/tm.texi (Sections): Document TEXT_SECTION.
268 2001-08-17  Richard Henderson  <rth@redhat.com>
270         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
271         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
273 2001-08-17  Richard Henderson  <rth@redhat.com>
275         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
276         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
277         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
278         Add aligned attribute.
280 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
282         * config/sh/sh.md: Add modes to unspecs in first insn to match
283         those in the second.
285         * Makefile.in: Fix collect2 copy for Cygwin.
287 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
289         Install the proper patch.
290         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
291         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
292         (expand_function_start): Likewise.
293         * stmt.c (expand_decl): Likewise.
294         * varasm.c (make_decl_rtx): Likewise.
296 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
298         * final.c: Undo my previous accidental checkin.
299         * output.h: Likewise.
300         * tm.texi: Likewise.
302 2001-08-16  Richard Henderson  <rth@redhat.com>
304         * varasm.c (named_section_flags): Remove align parameter.
305         * varasm.c, dwarf2out.c: Update all callers.
306         * output.h: Update prototypes.
308         * target.h (target.asm_out.named_section): Remove align parameter.
309         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
310         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
311         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
312         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
313         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
315         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
316         (get_named_section_flags, set_named_section_flags): New.
317         (named_section_flags): Use them.
318         (named_section): Do decl vs section flags check here...
319         (default_section_type_flags): ... not here.
320         (init_varasm_once): Create in_named_htab.
321         (resolve_unique_section): Mark reloc unused.
323 2001-08-16  Richard Henderson  <rth@redhat.com>
325         * varasm.c (force_const_mem): Keep pool alignment in bits.
326         (output_constant_pool): Use assemble_align.
328 2001-08-16  Zack Weinberg  <zackw@panix.com>
330         * doc/tm.texi: Remove extra @table command.
332 2001-08-16  Zack Weinberg  <zackw@panix.com>
334         * final.c (shorten_branches): Clear the end of the label_align
335         array only if we made it larger.  Break up messy expressions
336         for clarity.
338         * diagnostic.c (internal_error): Check for error recursion
339         before doing ICE suppression.
341         * timevar.c: Timing variables now count in milliseconds.
342         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
343         (get_time): Not here.
344         (timevar_print): Don't print any timer whose user, cpu, and
345         wall times are all zero as displayed.
346         * timevar.h: Update comment aboout units.  Make timevar
347         counters unsigned.
349 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
351         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
352         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
353         (expand_function_start): Likewise.
354         * stmt.c (expand_decl): Likewise.
355         * varasm.c (make_decl_rtx): Likewise.
357 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
359         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
360         (finalize_record_size): Don't set TYPE_USER_ALIGN.
362 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
364         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
365         variables.
367 2001-08-16  Andreas Jaeger  <aj@suse.de>
369         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
370         prototype.
372 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
374         * rtl.h (only_sets_cc0_p): New prototype.
375         * jump.c (sets_cc0_p): Handle INSN.
376         (only_sets_cc0_p): New function.
377         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
378         (tidy_fallthru_edge): Likewise.
379         * integrate.c (copy_insn_list): Likewise.
380         * unroll.c (unroll_loop): Likewise.
381         (copy_loop_body): Likewise.
383 2001-08-15  Jason Eckhardt  <jle@redhat.com>
385         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
387 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
389         * predict.c (struct block_info_def): Remove nvisited.
390         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
391         (estimate_bb_frequencies): Call mark_dfs_back_edges.
393         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
394         (ix86_adjust_cost): Teach scheduler that latency to load operand can
395         be masked.
397 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
399         * predict.def: Update hitrates.
401 2001-08-15  Richard Henderson  <rth@redhat.com>
403         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
405 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
407         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
408         note from its associated jump.
410 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
412         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
413         also on 64-bit s390x targets.
415 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
417         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
418         function.
419         (arm_expand_prologue): Handled nested functions which take a
420         variable argument list.
421         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
422         macro with an invocation of
423         arm_compute_initial_elimination_offset.
424         * config/arm/arm-protos.h: Prototype
425         arm_compute_initial_elimination_offset.
427 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
429         * doc/install.texi (Specific, avr): Fix markup.
430         (Specific, c4x): Ditto.
432 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
434         * predict.c (dump_prediction): Change `bool' parameter to `int'.
436 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
438         * Makefile.in (OBJS): Add rtl-error.o
439         (rtl-error.o): New rule.
440         (diagnostic.o): Adjust dependency.
441         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
442         error_for_asm, _fatal_insn, _fatal_insn_not_found,
443         warning_for_asm): Move to...
444         rtl-error.c: ...here.  New file.
446 2001-08-14  Richard Henderson  <rth@redhat.com>
448         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
449         if USING_SJLJ_EXCEPTIONS.
451 2001-08-14  Steve Ellcey <sje@cup.hp.com>
453         * tlink.c (scan_linker_output): Check string for unsatisfied in
454         addition to undefined and unresolved.
456 2001-08-14  Graham Stott  <grahams@redhat.com>
458         * libgcc2.c (*): Replace EH_FRAME_SECTION with
459         EH_FRAME_SECTION_NAME.
461 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
463         * genattrtab.c (simplify_test_exp_in_temp): New function.
464         (simplify_test_exp): Avoid explicit use of temporary obstack.
465         (simplify_cond, insert_right_side, evaluate_eq_attr,
466         simplify_and_tree, simplify_or_tree, eliminate_known_true):
467         Use simplify_test_exp_in_temp.
468         (optimize_attrs): Iterate until expression stabilizes.
470 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
472         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
473         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
475 2001-08-13  Richard Henderson  <rth@redhat.com>
477         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
478         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
479         * config/arm/conix-elf.h: Likewise.
481 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
483         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
484         in gcc.c.
485         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
487         * gcse.c (hash_scan_set): Expressions that are set as part of
488         jump instructions are not available.
490 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
492         * config/s390/s390.c (print_operand, s390_function_prologue,
493         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
495 2001-08-13  Richard Henderson  <rth@redhat.com>
497         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
498         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
499         * doc/tm.texi (Exception Region Output): Document it.
501 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
503         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
504         DWARF2 instead of stabs by default.
506 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
508         * config/rs6000/rs6000.c: Include optabs.h.
510 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
512         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
513         save/restore routines.
514         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
516 2001-08-13  Andreas Jaeger  <aj@suse.de>
518         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
519         the english is correct.
521 2001-08-13  Zack Weinberg  <zackw@panix.com>
523         * expr.h: Split out optab- and libfunc-related code to...
524         * optabs.h, libfuncs.h: ... these new headers.
526         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
527         (OPTABS_H): New.
528         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
529         dependencies.
530         * mkconfig.sh: Don't include insn-codes.h from config.h.
532         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
533         enum insn_code is available.  Move reload_in_optab and
534         reload_out_optab array declarations to optabs.h.
535         * regmove.c (gen_add3_insn): Move to optabs.c, export from
536         there, prototype in expr.h.
537         * gencodes.c: Cleanup: zap global variables, don't use
538         printf where puts will do, don't bother defining MAX_INSN_CODE
539         which nothing uses, let CODE_FOR_nothing get its value implicitly.
541         * genemit.c, genopinit.c: Include optabs.h in generated file.
542         * genoutput.c: Include insn-codes.h in generated file.
543         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
544         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
545         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
546         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
547         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
548         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
549         Include optabs.h.
550         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
551         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
552         config/m88k/m88k.c, config/sparc/sparc.c:
553         Include libfuncs.h.
554         * reload.c: Include expr.h and optabs.h before reload.h.
555         * config/alpha/alpha.c: Include tree.h before reload.h.
556         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
557         and reload.h in that order.
558         * config/sparc/sparc.c: Include debug.h.
559         * recog.c: Include insn-codes.h.
561 2001-08-13  Andreas Jaeger  <aj@suse.de>
563         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
564         s390*linux.
566 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
568         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
569         * gcc.c (init_spec): Fix typo in comment.
570         * varasm.c (data_section): Fix typo in comment.
572 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
574         * predict.c (dump_prediction): New argument "USED".
575         (combine_predictions_for_insn): Determine the used heuristics,
576         output the case no heuristic applied.
577         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
579 2001-08-13  Andreas Jaeger  <aj@suse.de>
581         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
582         register %rip.
584 2001-08-13  Kazu Hirata  <kazu@hxi.com>
586         * jump.c: Fix formatting.
588 2001-08-13  Kazu Hirata  <kazu@hxi.com>
590         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
591         length.
593 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
595         * loop.c (check_dbra_loop): Use condjump_label to compute
596         jump_label.
598         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
599         to better document the files they're in.
601 2001-08-12  Zack Weinberg  <zackw@panix.com>
603         * recog.h (struct insn_operand_data): Shrink 'mode' field
604         to 16 bits.
606 2001-08-12  Kazu Hirata  <kazu@hxi.com>
608         * gcc.c: Fix comment formatting.
609         * gccspec.c: Likewise.
610         * gcov.c: Likewise.
611         * gcse.c: Likewise.
612         * genemit.c: Likewise.
613         * gengenrtl.c: Likewise.
614         * genrecog.c: Likewise.
615         * gensupport.c: Likewise.
616         * ggc-page.c: Likewise.
617         * global.c: Likewise.
618         * graph.c: Likewise.
619         * ifcvt.c: Likewise.
620         * integrate.c: Likewise.
621         * lcm.c: Likewise.
622         * libgcc2.c: Likewise.
623         * loop.c: Likewise.
624         * mbchar.c: Likewise.
625         * optabs.c: Likewise.
626         * predict.c: Likewise.
627         * prefix.c: Likewise.
628         * profile.c: Likewise.
629         * protoize.c: Likewise.
630         * real.c: Likewise.
631         * recog.c: Likewise.
632         * regclass.c: Likewise.
633         * regmove.c: Likewise.
634         * reg-stack.c: Likewise.
635         * reload1.c: Likewise.
636         * resource.c: Likewise.
637         * rtlanal.c: Likewise.
638         * rtl.c: Likewise.
640 2001-08-12  Kazu Hirata  <kazu@hxi.com>
642         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
643         a tree representing a constant is passed to the macro.
645 2001-08-12  Richard Henderson  <rth@redhat.com>
647         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
648         (rs6000_elf_asm_out_destructor): New.
649         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
650         (DTORS_SECTION_ASM_OP): Remove.
651         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
652         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
654 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
656         Revert:
657         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
658         * gcc.c (set_collect_gcc_options): New function, split out from
659         main.
660         Ignore elided switches.
661         (do_spec_1): Invoke before executing command.
662         (set_input): Export.
663         Move declaration ...
664         * gcc.h (set_input): ... here.
665         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
666         file.
668 2001-08-12  Richard Henderson  <rth@redhat.com>
670         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
671         thinko wrt TARGET_RELOCATABLE.
673 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
675         * fix-header.c (cb_file_change): Update prototype.
677 2001-08-11  Zack Weinberg  <zackw@panix.com>
679         * toplev.c (set_float_handler): Make static.
680         * toplev.h: Don't prototype set_float_handler.
682         * simplify-rtx.c: Don't include setjmp.h.
683         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
684         New functions.
685         (simplify_unary_operation, simplify_binary_operation): Use them,
686         via do_float_handler.
688         * fold-const.c: Don't include setjmp.h.
689         (exact_real_inverse_1): New function.
690         (exact_real_inverse): Use it, via do_float_handler.
692         * varasm.c: Don't include setjmp.h.
693         (assemble_real_1): New function.
694         (assemble_real): Use it, via do_float_handler.
695         Call internal_error if we get a trap here.
697         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
698         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
700 2001-08-11  Zack Weinberg  <zackw@panix.com>
702         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
703         STACK_BOUNDARY if not already defined.
705         * calls.c, function.c, reload1.c, explow.c: Don't default
706         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
707         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
709         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
710         to run-time test.
712         * doc/tm.texi: Document that STACK_BOUNDARY is required;
713         clarify difference between it and PREFERRED_STACK_BOUNDARY.
715 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
717         * cppmacro.c (enter_macro_context): Push macro expansions even
718         if empty.
720 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
722         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
723         (rs6000_elf_section_type_flags): Actually return a value.
725 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
727         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
728         Clean up code: add missing comments and prototypes, fix warnings,
729         remove obsolete code, fix spacing to conform to coding style.
731 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
733         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
734         and TARGET_ASM_CLOSE_PAREN.
735         (regclass_map): CC register belongs to class NO_REGS.
736         (legitimize_pic_address): Don't generate unnecessary moves
737         (to avoid confusing loop optimization).
738         (check_and_change_labels): Replace jump_long by indirect_jump.
739         (s390_final_chunkify): Don't start a new literal pool on section
740         switch in 64-bit code.
741         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
743         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
744         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
745         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
746         modes correctly.
747         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
748         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
749         (CONST_COSTS): Fixed incorrect costs.
751         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
752         Use emit_jump instead of emit_jump_insn (gen_jump).
753         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
754         (to avoid confusing flow analysis).
755         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
756         (casesi, casesi_jump): New.
757         (jump_long): Removed.  Functionality merged into indirect_jump.
758         (indirect_jump): Accept address_operand, not just register_operand.
759         (cjump_long, icjump_long): Use same logic as indirect_jump.
760         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
761         Fixed broken setjmp/longjmp handling.
762         (do_builtin_setjmp_setup): Removed.
764         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
765         broken GNU as versions that don't accept .quad with large
766         negative values.  Use hexadecimal output instead.
767         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
768         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
769         FUNCTION_EPILOGUE): Removed.  Now in targetm.
771         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
773         * config/s390/fixdfdi.h: Add missing copyright statement.
774         Fix type conflicts on 64-bit.  Add missing SFmode routines.
776         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
777         email address.
779 2001-08-11  Richard Henderson  <rth@redhat.com>
781         * rtl.h (REG_EH_RETHROW): Remove.
782         * rtl.c (reg_note_name): Update.
783         * combine.c (distribute_notes): Don't check for it.
785 2001-08-11  Richard Henderson  <rth@redhat.com>
787         * combine.c (distribute_notes): Place REG_SETJMP.
789 2001-08-11  Richard Henderson  <rth@redhat.com>
791         * doc/extend.texi (Arrays and pointers implementation): Discourage
792         relying on sign-extension of pointers.
794 2001-08-11  H.J. Lu <hjl@gnu.org>
796         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
797         in_dtors.
798         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
799         RDATA_SECTION_ASM_OP.
801 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
803         * doc/install.texi (Specific, c4x): Fix cross-reference to the
804         main manual to work both for info and HTML versions.
806 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
807             Matt Kraai <kraai@alumni.carnegiemellon.edu>
809         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
810         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
811         (struct cpp_pool): New member first.
812         * cppinit.c (append_include_chain): Plug memory leaks.
813         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
814         Allocate pragma structures from the (aligned) macro pool to
815         avoid leaking memory.
816         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
817         so we don't leak memory.
818         * hashtable.c (ht_destroy): New.
819         * hashtable.h (ht_destroy): New.
821 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
822             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
824         * c-lex.c (map): Make const.
825         (cb_file_change): Update for callback passing a line map.
826         Don't assume we have a previous map.  Remove sanity check
827         about popping too many files.
828         * cpperror.c (print_location): Make map const.
829         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
830         (cpp_make_system_header): Similarly.
831         (search_from): Similarly.
832         (_cpp_execute_include): Don't remember where we came from.
833         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
834         (struct cpp_reader): Make map const.
835         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
836         * cpplib.c (do_line): Update; line maps now hold sysp.
837         (cpp_push_buffer): Similarly.
838         (_cpp_do_file_change): Similarly; callback with map instead.
839         (cpp_get_line_maps): Constify return value.
840         (_cpp_pop_buffer): Update.
841         * cpplib.h (struct cpp_file_change): Remove.
842         (struct cpp_callbacks): Update.
843         (cpp_get_line_maps): Constify return value.
844         * cppmacro.c (_cpp_create_definition): Update.
845         * cppmain.c (struct printer): Constify map.
846         (maybe_print_line): Similarly.
847         (print_line): Similarly.  Deduce flags 1 and 2 here.
848         (cb_file_change): Update.
849         * line-map.c (free_line_maps): Warn regardless.
850         (add_line_map): Return pointer to const.  When passed NULL to_file
851         with LC_LEAVE, use the obvious values for the return point so the
852         caller doesn't have to figure them out.
853         (lookup_line): Return pointer to const.
854         (print_containing_files): Take pointer to const.
855         * line-map.h (struct line_map): New members reason, sysp.
856         (add_line_map): Return pointer to const.
857         (lookup_line): Similarly.
858         (print_containing_files): Take pointer to const.
860 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
861             Richard Henderson  <rth@redhat.com>
863         * regmove.c (regmove_optimize): Avoid setting a register twice in
864         a parallel set.
866 2001-08-10  Richard Henderson  <rth@redhat.com>
868         * doc/extend.texi (Arrays and pointers implementation): Document
869         behavior of pointer/integer conversion.
871 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
873         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
875 2001-08-10  Richard Henderson  <rth@redhat.com>
877         * doc/extend.texi (C Implementation): New chapter.
878         * doc/gcc.texi (Top): Link it in.
880 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
882         * doc/install.texi (Specific): Fix CVS merge botch.
884 2001-08-10  Richard Henderson  <rth@redhat.com>
886         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
887         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
889 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
891         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
892         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
893         this macro is now required.
895         * cselib.c (cselib_process_insn), flow.c (propagate_block),
896         loop.c (find_and_verify_loops), reload.c (reload): Check
897         for rtx code of CALL_INSN, not CALL, when deciding if we
898         need to check for REG_SETJMP note.
900         * gcse.c (compute_hash_table, compute_store_table): Update
901         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
902         logic.
904         * config/avr/avr.c: Fix typo.
905         * config/convex/convex.c (expand_movstr): Use adjust_address.
906         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
907         variable.
908         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
909         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
910         Fix typo.
911         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
912         Do define STACK_BOUNDARY.
913         * config/i370/i370.c: Include expr.h.
914         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
915         config/pa/som.h, config/v850/v850.h: Take in_ctors and
916         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
917         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
918         * config/m88k/m88k.c: Include c-tree.h after expr.h.
919         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
920         * config/romp/romp.c: Include expr.h after tree.h.
921         Include toplev.h.
922         (output_fpop): Use xmalloc, not oballoc.
923         * config/we32k/we32k.c: Include expr.h.
925 2001-08-10  Kazu Hirata  <kazu@hxi.com>
927         * config/h8300/h8300.h: Fix formatting.
929 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
931         * c-common.h (RETURN_NULLIFIED_P): Lose.
932         * c-semantics.c (genrtl_return_stmt): Don't check it.
934 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
936         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
937         (mips_annotate_frame_insn): New function.
938         (mips_emit_frame_related_store): New function.
939         (save_restore_insns): Don't mark instructions that set up the base
940         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
941         the store instructions instead.
942         (mips_expand_prologue): If the stack size is moved into a temporary
943         register, do not mark that move as frame-related.  Add a
944         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
946 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
948         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
949         stack slot as unchanging if current_function_calls_eh_return.
951 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
953         * config/mips/mips.md (reload_outcc): Use HARD_REGNO_NREGS to
954         access the second half of the TFmode scratch operand.
956 2001-08-10  Anthony Green  <green@redhat.com>
958         * java/class.c (emit_register_classes): Conditionalize code on
959         JCR_SECTION_NAME.
961 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
963         * doc/install.texi (Specific, avr): Fix cross-reference to the
964         main manual to work both for info and HTML versions.
966 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
968         * stmt.c (expand_null_return_1): Remove code to generate simple returns
969         and "use_goto" argument.
970         (expand_null_return, expand_value_return): Update all callers.
971         * function.c (expand_function_end): Remove code to generate simple
972         return.
973         * config/vax/vax.md (epilogue): New expander for function return.
974         * doc/md.texi (epilogue): Remove "if defined".
976 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
978         * Makefile.in: Partially revert my previous change:
979         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
980         of the hashtab.o and safe-ctype.o rules.
982 2001-08-09  Richard Henderson  <rth@redhat.com>
984         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
985         (USE_COLLECT2): Remove duplicate definition.
986         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
987         (use_collect2): Remove dead code.
988         * configure.in (use_collect2): Remove will_use_collect2 and
989         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
990         * configure: Rebuild.
992         * target.h (targetm.asm_out.constructor): New.
993         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
994         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
995         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
996         * varasm.c (in_ctors, in_dtors): New.
997         (assemble_constructor, assemble_destructor): Remove.
998         (default_stabs_asm_out_destructor): New.
999         (default_named_section_asm_out_destructor): New.
1000         (dtors_section, default_dtor_section_asm_out_destructor): New.
1001         (default_stabs_asm_out_constructor): New.
1002         (default_named_section_asm_out_constructor): New.
1003         (ctors_section, default_ctor_section_asm_out_constructor): New.
1004         * output.h: Update declarations.
1005         * c-decl.c (c_expand_body): Use target hooks instead of
1006         assemble_constructor and assemble_destructor.
1007         * profile.c (output_func_start_profiler): Likewise.
1008         * objc/objc-act.c (finish_objc): Likewise.
1009         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
1010         for the constructor.
1011         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
1013         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
1014         (DTORS_SECTION_ASM_OP): Likewise.
1015         (__CTOR_LIST__): Use attribute section when possible.
1016         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
1018         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
1019         ASM_OUTPUT_CONSTRUCTOR.
1021         * config/darwin.c (machopic_asm_out_constructor): New.
1022         (machopic_asm_out_destructor): New.
1023         * config/darwin-protos.h: Update declarations.
1024         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1025         (ASM_OUTPUT_DESTRUCTOR): Remove.
1026         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1027         * config/nextstep.c (nextstep_asm_out_constructor): New.
1028         (nextstep_asm_out_destructor): New.
1029         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1030         (ASM_OUTPUT_DESTRUCTOR): Remove.
1031         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1032         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
1033         ASM_OUTPUT_*STRUCTOR.
1034         * config/i386/aix386ng.h: Likewise.
1036         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
1037         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
1038         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
1039         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1040         * config/lynx.h: Likewise.
1041         * config/netware.h: Likewise.
1042         * config/psos.h: Likewise.
1043         * config/alpha/alpha-interix.h: Likewise.
1044         * config/alpha/elf.h: Likewise.
1045         * config/arc/arc.h: Likewise.
1046         * config/arm/aof.h: Likewise.
1047         * config/arm/coff.h: Likewise.
1048         * config/arm/elf.h: Likewise.
1049         * config/c4x/c4x.h: Likewise.
1050         * config/h8300/h8300.h: Likewise.
1051         * config/i386/cygwin.h: Likewise.
1052         * config/i386/djgpp.h: Likewise.
1053         * config/i386/i386-coff.h: Likewise.
1054         * config/i386/i386-interix.h: Likewise.
1055         * config/i386/sco5.h: Likewise.
1056         * config/i386/vsta.h: Likewise.
1057         * config/i386/win32.h: Likewise.
1058         * config/i960/i960-coff.h: Likewise.
1059         * config/ia64/sysv4.h: Likewise.
1060         * config/m68hc11/m68hc11.h: Likewise.
1061         * config/m68k/coff.h: Likewise.
1062         * config/m68k/mot3300.h: Likewise.
1063         * config/m88k/m88k.h: Likewise.
1064         * config/mcore/mcore-pe.h: Likewise.
1065         * config/mcore/mcore.h: Likewise.
1066         * config/mips/elf.h: Likewise.
1067         * config/mips/elf64.h: Likewise.
1068         * config/mips/iris6.h: Likewise.
1069         * config/pa/pa64-hpux.h: Likewise.
1070         * config/rs6000/sysv4.h: Likewise.
1071         * config/sh/sh.h: Likewise.
1072         * config/sparc/litecoff.h: Likewise.
1074         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
1075         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
1076         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1077         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1078         (ASM_OUTPUT_DESTRUCTOR): Remove.
1079         * config/a29k/a29k.c: Move include of tree.h.
1080         * config/a29k/udi.h: Delete file.
1081         * config/alpha/alpha.c (vms_asm_out_constructor): New.
1082         (vms_asm_out_destructor): New.
1083         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
1084         (EXTRA_SECTION_FUNCTIONS): Likewise.
1085         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1086         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1087         * config/c4x/c4x.c: Move include of tree.h.
1088         * config/clipper/clipper.c (clix_asm_out_constructor): New.
1089         (clix_asm_out_destructor): New.
1090         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1091         (ASM_OUTPUT_DESTRUCTOR): Remove.
1092         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1093         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1094         (TARGET_ASM_CONSTRUCTOR): New.
1095         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
1096         (sco_asm_out_constructor): New.
1097         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
1098         * config/i386/svr3gas.h: Remove stack grows up code.
1099         Remove code duplicated from i386/sysv3.h.
1100         (TARGET_ASM_CONSTRUCTOR): New.
1101         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1102         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
1103         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1104         (TARGET_ASM_CONSTRUCTOR): New.
1105         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
1106         (m68hc11_asm_out_destructor): New.
1107         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
1108         (TARGET_ASM_DESTRUCTOR): New.
1109         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
1110         * config/m68k/dpx2.h: Properly undef all the bits inherited from
1111         config/svr3.h pertaining to section manipulation.
1112         * config/m68k/dpx2g.h: Remove #if 0 code.
1113         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
1114         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
1115         (ASM_OUTPUT_CONSTRUCTOR): Remove.
1116         (TARGET_ASM_CONSTRUCTOR): New.
1117         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
1118         (m88k_svr3_asm_out_constructor): New.
1119         (m88k_svr3_asm_out_destructor): New.
1120         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1121         (ASM_OUTPUT_DESTRUCTOR): Remove.
1122         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1123         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
1124         * config/rs6000/aix.h: Likewise.
1125         * config/mips/rtems64.h: Don't undef removed constructor related bits.
1126         * config/mips/vxworks.h: Likewise.
1127         * config/rs6000/lynx.h: Likewise.
1128         * config/sh/elf.h: Likewise.
1129         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
1130         (DTORS_SECTION_ASM_OP): New.
1131         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1132         (ASM_OUTPUT_DESTRUCTOR): Remove.
1133         * config/sparc/sol2-sld-64.h: Likewise.
1134         * config/vax/vax.c (vms_asm_out_constructor): New.
1135         (vms_asm_out_destructor): New.
1136         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1137         (ASM_OUTPUT_DESTRUCTOR): Remove.
1138         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1140         * doc/tm.texi (@node Initialization): Update.
1142 2001-08-09  Richard Henderson  <rth@redhat.com>
1144         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
1145         (__do_global_dtors_aux): Use gp-relative static data to avoid
1146         one dynamic relocation.
1147         (__do_frame_setup): Register Java classes.
1148         * config/alpha/crtend.asm (__JCR_END__): New.
1150 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
1152         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
1153         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
1154         (GEN, STAGESTUFF): Add new files.
1155         (insn-constants.h, s-constants, tm-preds.h, s-preds,
1156         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
1157         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
1158         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
1159         as well as insn-codes.h and insn-flags.h in config.h; and no
1160         extra headers in tconfig.h and hconfig.h.
1162         * gencodes.c: Eliminate code to generate predicate declarations
1163         or #defines for md-file constants.
1164         * genconstants.c, genpreds.c: New files.
1166         * i386.md: Re-order guard expressions such that TARGET_64BIT
1167         comes first, when this permits better optimization.  Add
1168         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
1169         why this is desirable.
1171 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
1173         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
1174         (find_fde_for_dso): Remove.
1175         (_Unwind_IteratePhdrCallback): New.
1176         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
1177         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
1179 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1181         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
1182         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
1184 2001-08-09  Graham Stott  <grahams@redhat.com>
1186         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
1187         (vis_no_unit): Use it.
1188         (visualize_no_unit): Add the insn only if room exists.
1190 2001-08-09  Graham Stott  <grahams@redhat.com>
1192         * predict.c (estimate_probability): Replace magic numbers with
1193         appropriate enumeration.
1195 2001-08-09  Graham Stott  <grahams@redhat.com>
1197         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
1198         parameter.
1199         (EXTRACT_FLAGS): Likewise.
1201 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
1203         * config/mips/mips.c    (mips_legitimate_address_p): Check for
1204         CONST_INT in last patch.
1206 2001-08-08  Anthony Green  <green@redhat.com>
1208         * java/class.c (emit_register_classes): Use assemble_jcr if
1209         possible.  Keep the original mechanism as a fallback.
1210         * defaults.h (JCR_SECTION_NAME): Define if we have named section
1211         and weak symbol support.
1212         * crtstuff.c (__JCR_LIST__): Define.
1213         (__JCR_END__): Define.
1214         (_Jv_RegiserClasses): Define weak symbol if possible.
1215         (__do_global_ctors_aux): Register classes for ELF targets with
1216         weak symbol support.
1218 2001-08-08  Kazu Hirata  <kazu@hxi.com>
1220         * dbxout.c: Fix comment formatting.
1221         * dependence.c: Likewise.
1222         * df.c: Likewise.
1223         * diagnostic.c: Likewise.
1224         * dominance.c: Likewise.
1225         * doprint.c: Likewise.
1226         * dwarf2out.c: Likewise.
1227         * dwarfout.c: Likewise.
1228         * emit-rtl.c: Likewise.
1229         * except.c: Likewise.
1230         * explow.c: Likewise.
1231         * expmed.c: Likewise.
1232         * expr.c: Likewise.
1233         * flow.c: Likewise.
1234         * fold-const.c: Likewise.
1235         * function.c: Likewise.
1237 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1239         * global.c (retry_global_alloc): Avoid shadowing allocno.
1241 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
1243         * except.c (remove_fixup_regions): Fix typo.
1245 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
1247         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
1248         unsigned HOST_WIDE_INT to avoid warning.
1249         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
1250         * flow.c (set_block_for_new_insns): Likewise.
1252 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
1254         * sibcall.c (return_value_pseudo): New static variable.
1255         (skip_copy_to_return_value): Handle return_value_pseudo.
1256         (call_ends_block_p): Ensure that return_value_pseudo is set.
1257         (optimize_sibling_and_tail_recursive_call): Discover the
1258         load of pseudo return value in alternate exit block.
1260 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
1262         * calls.c (ECF_ALWAYS_RETURN): New constant.
1263         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
1264         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
1265         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
1266         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
1267         * rtl.c (reg_note_name): New name.
1268         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
1270 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
1272         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
1274 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
1276         * alias.c (get_alias_set): Return a previously calculated
1277         alias set for a VAR_DECL.
1278         * function.c (gen_mem_addressof): Calculate the alias set before
1279         touching the RTL.
1281 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
1283         * predict.def: Set hitrates according our experimental run.
1285 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
1287         * i386.h (HARD_REGNO_RENAME_OK): New macro.
1289 2001-08-08  H.J. Lu <hjl@gnu.org>
1291         * config/mips/mips.c (mips_unique_section): New. Copied from
1292         config/mips/elf.h.
1294         * config/mips/mips-protos.h (mips_unique_section): New
1295         prototype.
1297         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
1299         * config/mips/little.h: New. Generic little endian mips
1300         targets. Only mips*-*-linux* is converted to use it so far.
1302         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
1303         (WCHAR_TYPE): Defined
1304         (WCHAR_TYPE_SIZE): Likewise.
1305         (INIT_SUBTARGET_OPTABS): Likewise.
1306         (BSS_SECTION_ASM_OP): Likewise.
1307         (SBSS_SECTION_ASM_OP): Likewise.
1308         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1309         (ASM_DECLARE_OBJECT_NAME): Likewise.
1310         (UNIQUE_SECTION): Likewise.
1311         (EXTRA_SECTIONS): Likewise.
1312         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
1313         (ASM_OUTPUT_DESTRUCTOR): Likewise.
1314         (ASM_OUTPUT_DEF): Likewise.
1315         (HANDLE_SYSV_PRAGMA): Removed.
1316         (NO_IMPLICIT_EXTERN_C): Likewise.
1317         (TARGET_MEM_FUNCTIONS): Likewise.
1318         (STARTFILE_SPEC): Likewise.
1319         (ENDFILE_SPEC): Likewise.
1320         (LIB_SPEC): Likewise.
1321         (INVOKE__main): Likewise.
1322         (CTOR_LIST_BEGIN): Likewise.
1323         (CTOR_LIST_END): Likewise.
1324         (DTOR_LIST_BEGIN): Likewise.
1325         (DTOR_LIST_END): Likewise.
1326         (SET_ASM_OP): Likewise.
1327         (ASM_OUTPUT_SOURCE_LINE): Likewise.
1328         (ASM_OUTPUT_DEF): Likewise.
1329         (ASM_OUTPUT_IDENT): Likewise.
1331         * config/mips/mips.h (ASM_SPEC): Undefine before define.
1332         (CPLUSPLUS_CPP_SPEC): Likewise.
1333         (ASM_APP_ON) Redefine only if not defined.
1334         (ASM_APP_OFF): Likewise.
1335         (ASM_OUTPUT_SOURCE_LINE): Likewise.
1336         (ASM_OUTPUT_IDENT): Likewise.
1338         * config.gcc: Update tm_file for Linux/mips.
1340 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
1342         * cselib.c (cselib_record_sets): If insn is predicated, turn
1343         sources into IF_THEN_ELSEs.
1345         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
1346         Turn into define_insn_and_split.
1348         * sched-deps.c: Include "cselib.h".
1349         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
1350         Use cselib to turn memory addresses into VALUEs.
1351         (sched_analyze): Call cselib_init/cselib_finish if necessary.
1352         * sched-int.h (struct sched_info): New member USE_CSELIB.
1353         * sched-ebb.c (ebb_sched_info): Initialize it.
1354         * sched-rgn.c (rgn_sched_info): Likewise.
1355         * Makefile.in (sched-deps.o): Update dependencies.
1357         * cselib.h (cselib_subst_to_values): Declare.
1358         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
1359         that have no value and autoincs to be handled by generating a new
1360         dummy value.
1362 2001-08-08  Graham Stott  <grahams@redhat.com>
1364         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
1365         within fixed length SEQUENCE.
1367 2001-08-08  Graham Stott  <grahams@redhat.com>
1369         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
1370         (diagnostic_prefixing_rule): Likewise.
1371         (diagnostic_line_cutoff): Likewise.
1372         (diagnostic_kind_count): Likewise.
1374 2001-08-08  Graham Stott  <grahams@redhat.com>
1376         * alias.c (find_base_decl): Delete redundent assignment.
1378 2001-08-08  Graham Stott  <grahams@redhat.com>
1380         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
1381         (abs): Uppercase and paranthesize macro parameter.
1382         (MEM_DEPENDENCY): Add whitespace.
1384 2001-08-08  Graham Stott  <grahams@redhat.com>
1386         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
1387         failure check for CONST_INT
1389 2001-08-08  Graham Stott  <grahams@redhat.com>
1391         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
1392         (libcall_dead_p): Likewise.
1394         (mark_used_regs): Constify fmt.
1395         (find_use_as_address): Likewise.
1397 2001-08-08  Graham Stott  <grahams@redhat.com>
1399         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
1400          parameter.
1402 2001-08-08  Graham Stott  <grahams@redhat.com>
1404         * combine.c (combine_simplify_rtx): Update comment and
1405         remove erroneous test.
1407 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1409         * cppinit.c (cpp_finish): Pop the final buffer without comment.
1410         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
1411         take care to avoid multiple no-newline at EOF warnings in that
1412         case.
1414 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
1416         * calls.c (expand_call): Do not emit INSN_SETJMP note.
1417         (emit_library_call_value_1): Likewise.
1418         (emit_call_1): Emit REG_SETJMP note.
1419         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
1420         of INSN_SETJMP
1421         * cselib.c (cselib_process_insn): Likewise.
1422         * flow.c (propagate_block): Likewise.
1423         * loop.c (find_and_verify_loops): Likewise.
1424         * reload.c (find_equiv_regs): Likewise.
1425         * reload1.c (reload): Likewise.
1426         * resource.c (mark_referenced_resources,
1427         mark_set_resources): Likewise.
1428         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
1429         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
1430         * haifa-sched.c (unlink_other_notes): Likewise.
1431         (reemit_notes): Likewise.
1432         * sched-ebb.c (sched_ebb): Likewise.
1433         * sched-rgc.c (sched_region): Likewise.
1434         * rtl.c (note_insn_name): Likewise.
1435         (reg_note_name): Add REG_SETJMP
1436         * rtl.h (reg_note): Add REG_SETJMP.
1437         (insn_note): Remove NOTE_INSN_SETJMP.
1439         * profile.c (branch_prob): Add fake edges for setjmp.
1441 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
1443         * config.gcc: Quote target_cpu_default2 correctly for
1444         powerpc*-*-* targets.
1446 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1448         * cpplib.h, line-map.h: Update comments.
1449         * cppmain.c (printer_init): Move inline.
1450         (maybe_print_line, print_line): Take a map pointer.
1451         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
1452         (cb_file_change): Don't use prior value of print.map.
1454 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
1456         * doc/install.texi: Document fine-grained multilib configuration.
1458 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
1460         * rtlanal.c (find_first_parameter_load): Call note_stores
1461         only on the instructions.
1463 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1465         * alias.c (nonlocal_mentioned_p):
1466         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
1467         * calls.c (emit_call_1): Likewise.
1468         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
1469         * cselib.c (cselib_process_insn): Likewise.
1470         * df.c (df_insns_modify): Likewise.
1471         * flow.c (need_fake_edge_p): Likewise.
1472         (propagate_one_insn): Likewise.
1473         * haifa-sched.c (reemit_notes): Likewise.
1474         * integrate.c (copy_insn_list): Likewise.
1475         * jump.c (delete_prior_computation): Likewise.
1476         * local-alloc.c (validate_equiv_mem): Likewise.
1477         * loop.c (scan_loop): Likewise.
1478         * predict.c (estimate_probability): Likewise.
1479         * reload.c (reload): Likewise.
1480         * sched-deps (sched_analyze): Likewise.
1481         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
1482         * gcse.c (compute_hash_table): Likewise.
1483         (mark_call): Likewise.
1484         (store_killed_in_insn): Likewise.
1486 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
1488         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
1490 2001-08-06  Richard Henderson  <rth@redhat.com>
1492         * varasm.c (assemble_gc_entry): Remove.
1493         * output.h: Likewise.
1495 2001-08-06  Richard Henderson  <rth@redhat.com>
1497         * varasm.c (assemble_constructor): Take a symbol_ref and a
1498         priority instead of a bare string.  Move priority handling
1499         here from cp/decl2.c.
1500         * output.h: Update decls.
1502         * c-decl.c (c_expand_body): Update calls to assemble_constructor
1503         and assemble_destructor.
1504         * profile.c (output_func_start_profiler): Likewise.
1505         * objc/objc-act.c (finish_objc): Likewise.
1506         (build_module_descriptor): Return the symbol not the symbol name.
1508 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
1510         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
1511         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
1512         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
1513         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
1514         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
1515         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
1517 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1519         * cpperror.c (print_containing_files): Moved to line-map.c.
1520         (print_location): line-map.c handles re-listing or otherwise.
1521         * cpphash.h (struct lexer_state): Remove next_bol.
1522         (struct cpp_buffer): Remove include_stack_listed.
1523         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
1524         Remove faked buffer handling.
1525         (_cpp_do_file_change): Tweak.
1526         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
1527         * cppmain.c (struct printer): Remove filename.
1528         (print_line, cb_file_change): Update accordingly.
1529         * line-map.c: Include intl.h.
1530         (init_line_maps): Initialize last_listed.
1531         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
1532         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
1533         (print_containing_files): New.
1534         * line-map.h (struct line_maps): New member last_listed.
1535         (print_containing_files, INCLUDED_FROM): New.
1536         * Makefile.in: Update.
1537         * po/POTFILES.in: Add line-map.c.
1539 2001-08-06  Richard Henderson  <rth@redhat.com>
1541         * except.c (convert_from_eh_region_ranges_1): Never mark
1542         USE or CLOBBER insns as throwing.
1544         * expr.c (store_constructor): Don't clobber memory targets.
1546 2001-08-06  Andreas Jaeger  <aj@suse.de>
1548         * profile.c (branch_prob): Remove unused variable insn.
1550         * Makefile.in (local-alloc.o): Add dependency on except.h.
1552         * local-alloc.c: Include except.h for can_throw_internal prototype.
1554 2001-08-06  Richard Henderson  <rth@redhat.com>
1556         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
1557         * function.c (expand_main_function): Implement it.
1558         * doc/tm.texi: Document it.
1560 2001-08-06  Stan Shebs  <shebs@apple.com>
1562         * doc/install.texi: Document powerpc-*-darwin* details.
1564 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
1566         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
1567         (ASM_CPU_SPEC): Move back to rs6000.h
1568         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
1570         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
1572         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
1573         readded.
1575         * config/rs6000/linux64.h: Ditto.
1577         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
1578         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
1579         nothing.
1581         Remove accidently readded definitions of FUNCTION_PROLOGUE,
1582         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
1584         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
1585         to rs6000.h
1587 2001-08-05  Richard Henderson  <rth@redhat.com>
1589         * local-alloc.c (update_equiv_regs): Do not move insns that
1590         can throw.
1592 2001-08-05  Jan Hubicka  <jh@suse.cz>
1594         * Makefile.in (reload1.o): Add dedendancy on except.h
1595         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
1596         prototypes.
1597         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
1598         indicating wehther edges has been cleaned up.
1599         * reload1.c: Inlucde except.h
1600         (fixup_abnormal_edges): Accept deleted insns.
1601         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
1602         after combine.
1604 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1606         * cpplib.c (do_line): Correct line number after pop_buffer.
1608 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1610         PR preprocessor/3824
1611         * line-map.c: Update comments.
1612         * line-map.h: Update comments.
1613         * tradcif.y: Don't consider large numbers unsigned.
1615 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1617         PR preprocessor/3081
1618         * c-lex.c (map): New.
1619         (cb_file_change): Update map and use it.
1620         (cb_def_pragma, cb_define, cb_undef): Use map and line.
1621         (c_lex): Update to use map.
1622         * cpperror.c (print_location): Move to using logical line numbers.
1623         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
1624         (cpp_make_system_header): Similarly.
1625         (_cpp_execute_include): Stop line numbering hacks.  Store the
1626         line we will return to.
1627         * cpphash.h (CPP_BUF_LINE): Remove.
1628         (struct cpp_buffer): Remove lineno and pseudo_newlines.
1629         Add map and return_to_line.
1630         (_cpp_do_file_change): Update.
1631         * cppinit.c (cpp_start_read): Update line kludge.
1632         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
1633         (trigraph_ok): Use logical line numbers for diagnostics.
1634         (skip_block_comment): Likewise.
1635         (skip_whitespace): Likewise.
1636         (skip_line_comment): Use pfile->line instead.
1637         (_cpp_lex_token): Update to use logical line numbering exclusively.
1638         Handle BOL locally.  Accept new lines in directives, but keep
1639         pfile->line decremented.  Diagnostics use logical lines.  Update
1640         directive handling.
1641         * cpplib.c (SEEN_EOL): New.
1642         (skip_rest_of_line, check_eol): Use it.
1643         (end_directive): Increase line number when accepting the newline
1644         at the end of a directive.
1645         (run_directive): Simplify.
1646         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
1647         (_cpp_do_file_change): Update to take buffer line number as an
1648         argument, and store the current map in the cpp_reader.  Remove
1649         line number kludges.
1650         (_cpp_do__Pragma): Restore output position after a _Pragma.
1651         (cpp_push_buffer): Don't set output line or lineno.
1652         (_cpp_pop_buffer): Transfer more info from a faked buffer.
1653         Remove line kludge.  Set output_line.
1654         * cppmacro.c (builtin_macro): Update handling of __LINE__.
1655         (parse_arg): Use logical lines.
1656         (save_lookahead_token): Save EOFs too now.
1657         * cppmain.c (struct printer): Fix comments.
1658         (printer_init): Simplify, let caller do errors.
1659         (scan_translation_unit, check_multiline_token, dump_macro): Update.
1660         (maybe_print_line): Simplify.
1661         (print_line): Don't print a linemarker if -P.
1662         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
1663         (cb_file_change): Simplify.
1664         * line-map.h (LAST_SOURCE_LINE): Fix.
1665         (CURRENT_LINE_MAP): New.
1667 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
1669         * doloop.c (doloop_modify_runtime): Properly compute number of
1670         iterations if loop was unrolled.
1672         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
1673         if their CSELIB_VAL_PTRs are.
1675         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
1676         (setup_spill_pointers): Initialize it.
1677         (spill_restore_mem): Set it.
1678         (do_spill, do_restore): Use it to add REG_INC note.
1679         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
1681         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
1682         asms if other insns are available.
1684         * config/ia64/ia64.c (condop_operator): New predicate.
1685         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
1686         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
1687         patterns.
1689         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
1690         temporary register than directly using a MEM.
1692 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
1694         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
1695         parameter in last change.
1697 2001-08-04  Zack Weinberg  <zackw@panix.com>
1699         * sparc.md: Don't use #if inside C test expression.
1701 2001-08-04  Richard Henderson  <rth@redhat.com>
1703         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
1705 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1707         * cpphash.h (struct cpp_reader): New member directive_line.
1708         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
1709         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
1710         do_pragma): Pass line to callbacks.
1711         (start_directive): Record line of directive.
1712         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
1713         cb_include): Similarly.
1714         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
1715         Similarly.
1717 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
1719         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
1720         comment.
1722 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1724         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
1726         * reload1.c (fixup_abnormal_edges): New static function.
1727         (reload): Use it.
1729         * flow.c (need_fake_edge_p): New function.
1730         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
1731         avoid call insn to be very last insn in the insn stream.
1733         * profile.c (branch_prob): Call flow_call_edges_add instead of
1734         doing that by hand; cleanup cfg to re-merge basic blocks once
1735         we are done.
1737 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1739         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
1740         are also on line-map.h.
1741         * cppfiles.c (stack_include_file): Update.
1742         * cpphash.h (struct cpp_buffer): New member return_at_eof.
1743         (_cpp_pop_buffer): New.
1744         * cppinit.c (cpp_destroy, cpp_finish): Update.
1745         (do_includes): Mark each buffer to return at EOF.
1746         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
1747         return as requested.
1748         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
1749         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
1750         * cpplib.h (cpp_pop_buffer): Remove.
1751         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
1752         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
1753         buffers.
1754         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
1755         to pop buffers.
1756         (do_preprocessing): Update.
1757         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
1758         * c-parse.in (_yylex): Similarly.
1759         * scan-decls.c (scan_decls): Similarly.
1760         * line-map.h: Update comments.
1762         * objc/Make-lang.in (objc-act.o): Update dependencies.
1764 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1766         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
1767         and soft register for operand 0.
1768         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
1770 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1772         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
1773         register for operand 0.
1774         ("bitcmpqi_z_used"): Allow memory for operand 0.
1775         (split "bitcmpqi"): New split to handle address reg as operand 1.
1777 2001-08-04  Andreas Jaeger  <aj@suse.de>
1779         * gcse.c: Revert Daniel's last patch.
1781 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
1783         * sparc-protos.h: Add prototypes for fp_zero_operand and
1784         reg_or_0_operand.
1785         * sh-protos.h: Add prototype for fpul_operand.
1787 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
1789         * doc/extend.texi (Other Builtins): Fix typo in last change.
1791 2001-08-03  Richard Henderson  <rth@redhat.com>
1793         * target.h (gcc_target): Add asm_out.named_section,
1794         section_type_flags, have_named_sections.
1795         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
1796         (TARGET_HAVE_NAMED_SECTIONS): New.
1797         (TARGET_SECTION_TYPE_FLAGS): New.
1799         * Makefile.in (toplev.o): Depend on TARGET_H.
1800         (varasm.o, dbxout.o): Likewise.
1801         * c-common.c (decl_attributes): Check targetm.have_named_sections
1802         instead of ifdef ASM_OUTPUT_SECTION_NAME.
1803         * dbxout.c (dbxout_function_decl): Likewise.
1804         (dbxout_function_end): Likewise.
1805         * toplev.c (compile_file): Likewise.
1806         * varasm.c (exception_section): Likewise.
1807         * cp/decl2.c (finish_objects): Likewise.
1809         * defaults.h (EH_FRAME_SECTION): Remove.
1810         (EH_FRAME_SECTION_ASM_OP): Remove.
1811         (EH_FRAME_SECTION_NAME): New.
1812         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
1813         (UNIQUE_SECTION_P): Remove.
1814         * dwarf2out.c (SECTION_FORMAT): Remove.
1815         (ASM_OUTPUT_SECTION): Remove.
1816         (output_call_frame_info): Use named_section_flags.
1817         (output_comp_unit, dwarf2out_start_source_file): Likewise.
1818         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
1819         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
1820         * varasm.c (in_eh_frame, eh_frame_section): Remove.
1821         (named_section_flags): New.
1822         (named_section): Use it and targetm.section_type_flags.
1823         (resolve_unique_section): New.
1824         (assemble_start_function): Use it.
1825         (asm_emit_uninitialised, assemble_variable): Likewise.
1826         (default_section_type_flags): New.
1827         (default_no_named_section, default_elf_asm_named_section): New.
1828         (default_coff_asm_named_section, default_pe_asm_named_section): New.
1829         * output.h: Update varasm.c decls.
1830         (SECTION_*): New flags.
1832         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
1833         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
1835         * config/elfos.h (UNIQUE_SECTION_P): Remove.
1836         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
1837         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
1838         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1839         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
1840         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
1841         * config/mips/elf.h, config/mips/elf64.h: Likewise.
1842         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
1843         * config/pa/pa64-hpux.h,
1845         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
1846         (TARGET_ASM_NAMED_SECTION): New.
1847         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
1848         * config/alpha/vms.h, config/arm/coff.h: Likewise.
1849         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
1850         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
1851         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
1852         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
1853         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1854         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
1855         * config/i386/sco5.h, config/i386/win32.h: Likewise.
1856         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
1857         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
1858         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
1859         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
1860         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
1861         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
1862         * config/sparc/sysv4.h: Likewise.
1864         * config/nextstep.h: Error until named sections implemented.
1866         * config/a29k/a29k.c (a29k_asm_named_section): New.
1867         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
1868         (vms_section_type_flags, vms_asm_named_section): New.
1869         * config/arm/arm.c (arm_elf_asm_named_section): New.
1870         * config/avr/avr.c (asm_output_section_name): Remove.
1871         * config/avr/avr-protos.h: Update.
1872         * config/c4x/c4x.c (c4x_asm_named_section): New.
1873         * config/h8300/h8300.c (h8300_asm_named_section): New.
1874         * config/i386/i386.c (sco_asm_named_section): New.
1875         * config/i386/winnt.c (SECTION_PE_SHARED): New.
1876         (i386_pe_section_type_flags): New.
1877         (i386_pe_asm_named_section): New.
1878         * config/i386/i386-protos.h: Update.
1879         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
1880         * config/mcore/mcore.c (mcore_asm_named_section): New.
1881         * config/mips/mips.c (iris6_asm_named_section): New.
1882         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
1883         instead of UNIQUE_SECTION_P.
1884         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
1885         (xcoff_asm_named_section): New.
1886         * config/sh/sh.c (sh_asm_named_section): New.
1887         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
1889         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
1890         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
1891         (EH_FRAME_SECTION_NAME): New.
1892         (EXCEPTION_SECTION): New.
1893         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
1894         (DEBUG_*_SECTION): Remove.
1895         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
1896         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
1897         (EH_FRAME_SECTION_ASM_OP): Remove.
1899         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
1900         (ASM_OUTPUT_SECTION_NAME): Remove.
1901         (TARGET_ASM_NAMED_SECTION): New.
1902         (TARGET_HAVE_NAMED_SECTIONS): New.
1903         (TARGET_SECTION_TYPE_FLAGS): New.
1904         (EH_FRAME_SECTION_ASM_OP): Remove.
1905         (EH_FRAME_SECTION_NAME): New.
1907 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
1909         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
1910         for complex expressions when cfun == 0.
1911         * doc/extend.texi: Document that __builtin_constant_p can be
1912         used in data initializers as well as functions.
1914 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
1916         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
1917         variable I locally, instead of expecting a declaration in the
1918         calling context.
1920 2001-08-03  Richard Henderson  <rth@redhat.com>
1922         * except.c (collect_one_action_chain): Add an explicit cleanup
1923         action if regions surrounding a catch were encoded entirely
1924         within the call-site entry.
1926 2001-08-03  Richard Henderson  <rth@redhat.com>
1928         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
1929         don't take REGNO of a non-register.
1931 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1933         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
1934         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
1935         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
1936         (__gthread_mutex_init_function): New function for mutex initialization.
1938 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1940         * Makefile.in: Revert screwed up commit.
1942 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1944         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
1945         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
1946         merged by linker script to get a final _exit().
1947         (__do_global_dtors): New for destructor handling in specific exit
1948         section.
1949         (__do_global_ctors): New for constructors in specific install section.
1950         (__map_data_section): Map data sections before running constructors.
1951         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
1952         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
1953         (DTORS_SECTION_ASM_OP): Likewise.
1954         (CTORS_SECTION_FUNCTION): Define to force a reference to
1955         __do_global_ctors.
1956         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
1958 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1960         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
1962         * Makefile.in: Add df.h to gcse.c dependencies.
1964 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1966         * varasm.c (output_constant_def_contents): Use for the length of a
1967         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
1968         depending on which is larger.
1970 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1972         * gcse.c: Include df.h for use as a dataflow analyzer.
1973         Remove regvec.
1974         Declaration of reg_set_info: gone.
1975         New df_analyzer variable used by store motion.
1976         (reg_set_info): Deleted.
1977         (mark_mem_regs): New function, analyze regs used by a mem.
1978         (store_ops_ok): Use dataflow analyzer results to determine if
1979         necessary regs are changed in the block.
1980         (find_moveable_store): Remove check for symbol ref, we can handle
1981         much more complex expressions now.
1982         (compute_store_table): Remove most of the code, it's unnecessary
1983         now that the dataflow analyzer records the info for us.
1984         (store_killed_after): Add parameter to say whether to do the
1985         store_ops_okay test, used to speed up testing when we already know
1986         the answer, and just want to know if the store itself was killed.
1987         (build_store_vector): Largely rewritten to calculate the various
1988         vectors properly, and somewhat optimized.
1989         (store_motion): Init the df_analyzer, get REG_DEF chains.
1990         Also handle trapping expressions (since mems almost always trap)
1991         (simple_mem): Redefine what a simple mem is.
1993 2001-08-03  DJ Delorie  <dj@redhat.com>
1995         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
1996         set from a constant part of the condition.
1998 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
2000         * mkdeps.c (deps_add_default_target): Make local variable
2001         ``start'' a const char pointer.
2002         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
2004 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2006         * doc/install.texi (Configuration): Fix markup.
2007         (Specific, i?86-*-udk): Likewise.
2008         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
2009         --with-gnu-ld.
2010         Document --enable-threads and --enable-libgcj status.
2011         (Specific, mips-sgi-irix*): Canonicalize triples.
2012         (Specific, mips-sgi-irix5): Warn about problems with this config.
2013         Mention required GNU as patch.
2014         Native assembler problems are fixed.
2015         (Specific, mips-sgi-irix6): Update O32 ABI support status.
2016         Document --enable-threads and --enable-libgcj status.
2018 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
2020         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
2021         of mkinstalldirs.
2023 2001-08-03  Richard Henderson  <rth@redhat.com>
2025         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
2026         constant data.
2028 2001-08-03  Richard Henderson  <rth@redhat.com>
2030         * rtlanal.c (find_first_parameter_load): Stop if we
2031         reach a CODE_LABEL at BOUNDARY.
2033 2001-08-03  Richard Henderson  <rth@redhat.com>
2035         * config/alpha/alpha.md (force_movdi): New insn.
2036         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
2037         Tweek FRP marking of VMS prologue insns.
2038         * config/alpha/vms.h (EPILOGUE_USES): New.
2040 2001-08-02  Richard Henderson  <rth@redhat.com>
2042         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
2044 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
2046         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
2047         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
2048         config/convex/convex.h, config/d30v/d30v.c,
2049         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
2050         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
2051         config/mips/mips.h, config/mn10200/mn10200.h,
2052         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
2053         config/v850/v850.h, config/vax/openbsd.h,
2054         config/vax/openbsd1.h, config/vax/ultrix.h,
2055         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
2056         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
2057         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
2058         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
2059         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
2060         in comments and documentation.
2062 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2064         * line-map.c: New.
2065         * line-map.h: New.
2066         * Makefile.in (line-map.o): New.
2067         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
2068         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
2069         * cpperror.c (print_containing_files): Similarly.
2070         (print_location): Update.  Don't output a space before _Pragma.
2071         * cppfiles.c (stack_include_file): Set to line 1 immediately.
2072         (stack_include_filee, cpp_make_system_header): Update.
2073         (_cpp_execute_include): Get logical line number right for calling
2074         as-yet-unterminated #include.
2075         * cpphash.h (struct cpp_reader): Add line_maps.
2076         (_cpp_do_file_change): Update.
2077         * cppinit.c (cpp_create_reader): Initialize line maps.
2078         (cpp_destroy): Destroy line maps.
2079         (cpp_start_read): Get logical line number right.
2080         * cpplex.c (parse_string): Only warn once for multi-line strings.
2081         Use boolean variable for null warning.
2082         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
2083         already.
2084         (do_include_common): End the directive early.
2085         (do_line): Don't warn about out-of-range lines in preprocessed
2086         source.  Update.  Remove unused variables.
2087         (_cpp_do_file_change): Update for new line mapping.
2088         (pragma_cb): New typedef.
2089         (cpp_register_pragma): Stop looking ahead before calling the
2090         handler.  Clean up.
2091         (do_pragma_system_header): End directive early.
2092         (cpp_get_line_maps): New.
2093         (cpp_pop_buffer): Fudge logical line.  Update.
2094         * cpplib.h: Include line-map.h
2095         (enum cpp_fc_reason): Remove.
2096         (struct cpp_file_change): Update.
2097         (cpp_get_line_maps): New.
2098         * cppmain.c (struct_printer): New member map.
2099         (cb_file_change): Update for new mappings.
2100         * fix-header.c (cb_file_change): Similarly.
2102 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
2104         * Makefile.in (libgcc.mk): Define mkinstalldirs.
2105         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
2107 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
2109         * config/vax/vax.c: include expr.h.
2111 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
2113         * Makefile.in ($(srcdir)/configure): Only rebuild in
2114         maintainer mode.
2115         ($(srcdir)/config.in): Only define in maintainer mode.
2116         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
2118 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
2120         * doc/install.texi (Install GCC: Binaries): Update Bull info.
2122 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2124         * gcc.c (set_collect_gcc_options): New function, split out from
2125         main.
2126         Ignore elided switches.
2127         (do_spec_1): Invoke before executing command.
2128         (set_input): Export.
2129         Move declaration ...
2130         * gcc.h (set_input): ... here.
2131         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2132         file.
2134 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
2136         Kill -fhonor-std.
2137         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
2138         interaction.
2139         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
2141 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
2143         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
2144         for the unnamed instructions it expands to.
2146 2001-08-02  Richard Henderson  <rth@redhat.com>
2148         * regclass.c (call_really_used_regs): Conditionally define.
2149         (init_reg_sets_1): Don't use it if not defined.
2150         (fix_register): Similarly, don't set it.
2152 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2154         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
2155         Correct comment that had been missed in the previous change.
2157 2001-08-01  Stan Shebs  <shebs@apple.com>
2159         * config/darwin.c (machopic_stub_name): Try matching by name.
2160         (update_stubs): New function.
2161         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
2162         unconditionally.
2164 2001-08-01  Richard Henderson  <rth@redhat.com>
2166         * except.c (output_function_exception_table): Use assemble_align.
2167         * varasm.c (assemble_eh_label): Remove.
2168         (assemble_eh_align, assemble_eh_integer): Remove.
2170 2001-08-01  Robert Lipe  <robertl@caldera.com>
2172         * dwarfout.c: Remove reference to README.DWARF.
2174 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
2176         * regclass.c (call_really_used_regs): New array for registers which
2177         are actually used by a call.
2178         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
2179         new array.
2180         (fix_register): Set call_really_used too.
2181         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
2182         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
2184 2001-08-01  Richard Henderson  <rth@redhat.com>
2186         * read-rtl.c (read_name): Consider \r whitespace.
2188 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
2190         * config.gcc: Recognize powerpc-*-netbsd*.
2192         * doc/install.texi (Host/target specific installation notes for
2193         GCC): Mention powerpc-*-netbsd*.
2195         * config/rs6000/netbsd.h: New file.
2196         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
2197         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
2198         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
2199         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
2200         (TARGET_VERSION): Redefine.
2202         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
2203         mcall-netbsd as a match for mcall-sysv.
2204         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
2205         (ncrti.S, ncrtn.S): New targets.
2206         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
2208         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
2209         "netbsd' as a V4 ABI.
2210         (ASM_SPEC): Check for -mcall-netbsd.
2211         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
2212         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
2213         (LIB_SPEC, ENDFILE_SPEC): Ditto.
2214         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
2215         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
2216         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
2217         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
2219         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
2220         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
2222 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2224         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
2225         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
2226         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
2227         including "unwind-pe.h".
2229 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
2231         * rs6000.md (define_splits): Kill unused constraints.
2233 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
2234                               Jan Hubicka  <jh@suse.cz>
2236         * function.c (thread_prologue_and_epilogue_insns): Kill code
2237         dealing with non-existent CFG.
2239 2001-08-01  Kazu Hirata  <kazu@hxi.com>
2241         * alias.c: Fix comment formatting.
2242         * bitmap.c: Likewise.
2243         * builtins.c: Likewise.
2244         * calls.c: Likewise.
2245         * c-common.c: Likewise.
2246         * c-decl.c: Likewise.
2247         * c-dump.c: Likewise.
2248         * c-lex.c: Likewise.
2249         * collect2.c: Likewise.
2250         * combine.c: Likewise.
2251         * conflict.c: Likewise.
2252         * cppfiles.c: Likewise.
2253         * cppinit.c: Likewise.
2254         * cpplex.c: Likewise.
2255         * cpplib.c: Likewise.
2256         * cppmacro.c: Likewise.
2257         * cppspec.c: Likewise.
2258         * c-pragma.c: Likewise.
2259         * crtstuff.c: Likewise.
2260         * cse.c: Likewise.
2261         * cselib.c: Likewise.
2262         * c-semantics.c: Likewise.
2263         * c-typeck.c: Likewise.
2265 2001-08-01  H.J. Lu <hjl@gnu.org>
2267         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
2269 2001-08-01  H.J. Lu <hjl@gnu.org>
2271         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
2273 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
2275         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
2276         contextualizing Objective-C class name lookup by the lexer.
2277         (typespec_reserved_nonattr): Disable ObjC class name lookup after
2278         seeing a TYPESPEC.
2279         (protocoldef): Add support for forward @protocol declarations.
2280         (yylexname): Suppress ObjC class name lookup in certain contexts;
2281         re-enable after lookup is complete.
2282         (_yylex): Re-enable ObjC class name lookup when certain
2283         punctuation marks are seen.
2285         * objc/objc-act.c (check_protocol_recursively): New function used
2286         for finding circular dependencies in protocols.
2287         (objc_declare_protocols): New function for handling forward
2288         @protocol declarations.
2289         (receiver_is_class_object): Detect the case when 'self' is used
2290         inside of a class method.
2291         (build_message_expr): Issue a warning if class method is desired
2292         but instance method is found instead.
2293         (conforms_to_protocol): Streamline.
2294         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
2295         protocol Foo, even if 'Bar foo' does not.
2296         (check_protocols): Streamline.
2297         (start_protocol): Add checks for circular and duplicate protocol
2298         definitions.
2299         (encode_aggregate_within): For typedefs of structs, encode the
2300         underlying struct.
2301         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
2302         (objc_declare_protocols): New prototype.
2304 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2306         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
2307         * cpplex.c (handle_newline): Update prototype.  Maintain logical
2308         line number.
2309         (skip_escaped_newlines, skip_block_comment, parse_string):
2310         Update accordingly.
2311         (_cpp_lex_token): Update, and store token position within the token.
2312         * cpplib.h (struct cpp_token): Add line and column entries.
2313         * cppmacro.c (replace_args): Position stringified tokens correctly.
2315 2001-08-01  Andreas Jaeger  <aj@suse.de>
2317         * basic-block.h: Add prototype for last_loop_beg_note.
2319 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
2321         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
2322         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
2323         comment.
2324         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
2325         while handling WITH_CLEANUP_EXPR node. Use second operand calling
2326         expand_decl_cleanup.
2327         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
2328         the first RTX.
2329         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
2330         operand while calling simple_cst_equal.
2331         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
2332         operand is the cleanup expression, the third is the RTL_EXPR.
2333         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
2335 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
2337         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
2339 2001-07-31  matthew green  <mrg@eterna.com.au>
2341         * config.gcc (i386-*-netbsdelf): New description.
2342         * config/i386/netbsd-elf.h: New file.
2344 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
2346         * loop.c (check_dbra_loop): Use single_set to compute
2347         jump_label.
2349 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
2351         PowerPC reorg and support for powerpc64-*-linux*.
2353         Also fixes emitting of constants on 32 bit and 64 bit
2354         platforms.
2356         * config.gcc: powerpc64-*-linux* is a new target.
2357         Things that needed aix.h now also include xcoff.h
2359         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
2360         xcoff.h.
2361         Move AIX specific stuff into aix.h.
2362         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
2363         with more than just XCOFF now.
2364         (SET_ASM_OP): Remove, now defined where needed.
2365         (FUNCTION_PROLOGUE): New macro definition.
2366         (FUNCTION_EPILOGUE): New macro definition.
2367         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
2369         * config/rs6000/xcoff.h: New file.
2371         * config/rs6000/linux64.h: New file.
2373         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
2375 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
2377         * rs6000.c (print_operand_address): Handle ELF syntax.
2378         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
2379         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
2380         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
2382 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
2384         * rs6000.c (rs6000_override_options): Only disable
2385         flag_function_sections for XCOFF.
2386         (exact_log2_cint_operand): New predicate.
2387         (reg_or_{add,sub}_cint64_operand): New predicates.
2388         (add_operand): Compare CONST_INT with fewer function calls.
2389         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
2390         (print_operand, case 'p'): Ensure positive operand.
2391         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
2392         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
2393         (PREDICATE_CODES): Add new predicates.
2394         * rs6000.md (addsi3): Split 32-bit constants more correctly.
2395         (divsi3, modsi3): Ensure positive power-of-2.
2396         (adddi3): Use new predicate.  Split 32-bit constants more
2397         correctly.  Re-arrange splitter to handle any constant.
2398         (subdi3): Use new predicate.
2399         (divdi3, moddi3): Ensure positive power-of-2.
2400         (movdi): Use rs6000_emit_set_const.
2401         (load_toc_v4_pic_di): Delete.
2403 2001-07-31  Graham Stott <grahams@redhat.com>
2405         * function.c (pad_below): Revert 2001-07-26 patch.
2407 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
2409         * reg-stack (convert_regs_1): Fix best edge condition.
2411 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
2413         * jump.c (duplicate_loop_exit_test): Better test for jumps
2414         entering the loop; create loop pre_header.
2416 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
2418         * doc/install.texi: Add s390 and s390x as new targets.
2419         * doc/invoke.texi: Add documantation of S/390 and zSeries
2420         target options.
2421         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
2423 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
2425         * config/m68k/m68k.md: Replace all general_operand with
2426         nonimmediate_operand for all destinations.
2427         * config/m68k/m68k.c (not_sp_operand): Likewise.
2429 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
2431         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
2433 2001-07-30  Richard Henderson  <rth@redhat.com>
2435         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
2436         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
2438 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
2440         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
2441         Add missing doc strings
2442         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
2443         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
2445 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
2447         * i386.c (ix86_output_main_function_alignment_hack): New function.
2448         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
2450         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
2451         edges by EDGE_DFS_BACK flag.
2452         (dump_edge_info): Add dfs_back flag.
2453         * basic-block.h (EDGE_DFS_BACK): New constant.
2454         (mark_dfs_back_edges): Declare.
2455         * alias.c (loop_p): Remove.
2456         (mark_constant_function): Use mark_dfs_back_edges.
2458         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
2459         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
2460         (compensate_edge): Break out from ...
2461         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
2462         (convert_regs_2): Set block_done once block is really done;
2463         Do updating of the predecesors counts.
2465         * toplev.c (rest_of_compilation): Recompute block_for_insn
2466         before post-reload cfg_cleanup.
2467         * function.c (thread_prologue_epilogue_insns):
2468         Call set_block_for_new_insns when emitting prologue directly.
2470 2001-07-30  Andreas Jaeger  <aj@suse.de>
2472         * jump.c: Add prototype for mark_modified_reg.
2474         * cse.c (set_live_p): Add unused attribute.
2476         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
2477         overflow.
2478         (scan_for_source_files): Use long for count to avoid overflow.
2479         (output_data): Likewise.
2480         (output_data): Don't use string concatatenation to silence gcc
2481         -traditional.
2483         * predict.c: Fix typos and grammar.
2485         * gcse.c (insert_insn_end_bb): Remove unused variables.
2487 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
2489         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
2490         (attempt_auto_inc): LIkewise.
2491         (mark_used_reg): Likewise.
2492         (try_pre_increment_1): Likewise.
2493         * regclass.c (regclass): Likewise.
2494         * global.c (allocno_compare): Update comment; change scaling factor.
2495         * local-alloc.c (QTY_CMP_PRI): Likewise.
2496         * regs.h (REG_FREQ_FROM_BB): New.
2497         (REG_FREQ_MAX): Likewise.
2499 2001-07-30  H.J. Lu <hjl@gnu.org>
2501         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
2502         -D_GNU_SOURCE.
2504 2001-07-30  H.J. Lu  (hjl@gnu.org)
2506         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
2507         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
2508         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
2510 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2512         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
2513         as -mthumb-interwork when -mcpu=arm7 is specified.
2515 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
2517         * predict.def (noreturn, loop branch, loop exit): Mark as first
2518         match heuristics.
2520 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
2522         * combine.c (try_combine): Avoid barrier after noop jumps.
2524 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2526         * cpphash.h (struct cpp_reader): Remove import_warning.
2527         * cpplib.c (skip_rest_of_line): Don't bother turning off
2528         macro expansion.
2529         (parse_include): Move include handling to...
2530         (do_include_common): ... here.  Move import warning from...
2531         (do_import): ... here.
2532         (do_pragma_poison): Don't do a callback for poison identifiers.
2533         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
2534         * cppmain.c (setup_callbacks): Similarly.
2536 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
2538         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
2539         handle multiple sets.
2540         * except.c (sjlj_mark_call_sites): .... here.
2541         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
2543 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
2545         Suggested by Richard Henderson and Richard Kenner:
2546         * combine.c (recog_for_combine): Use the fake recog
2547         only if instruction does not match.
2548         * rtl.h (NOOP_MOVE_INSN_CODE): New.
2549         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
2551         * combine.c (try_combine): Discover noop jump as direct jump.
2553 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
2555         * df.c (df_rd_global_compute): Add successors to worklist, not
2556         current item.
2557         (df_ru_global_compute): Ditto.
2559 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
2561         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
2562         increment REG_N_SETS.
2564 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
2566         * sbitmap.h: New prototype for sbitmap_a_xor_b.
2568         * sbitmap.c (sbitmap_a_xor_b): New function.
2569         ifdef the basic block stuff on IN_GCC.
2571 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2573         * cppexp.c (parse_defined): Always record the macro name.
2574         (lex): Don't worry about identifiers, or special-case
2575         CPP_NOT here.
2576         (_cpp_parse_expr): Figure out at the end of the routine
2577         whether we saw a valid !defined() expression.
2578         * cppfiles.c (stack_include_file): Update for mi_valid.
2579         (_cpp_pop_file_buffer): Similarly.
2580         * cpplex.c (_cpp_lex_token): Similarly.
2581         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
2582         mi_if_not_defined, mi_lexed): Remove.
2583         (mi_valid): New.
2584         * cpplib.c (do_if): Simplify.
2585         (do_endif, push_conditional, _cpp_handle_directive): Update
2586         for renaming of mi_state to mi_valid.
2587 doc:
2588         * cpp.texi: Add index entries for digraphs, and add comment
2589         that C++ refers to them as alternative tokens.
2591 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
2593         * basic-block.h (CLEANUP_PRE_LOOP): New.
2594         * except.c (finish_eh_generation): Update call of cleanup_cfg.
2595         * sibcall.c (optimize_sibling_calls): Likewise.
2596         * toplev.c (rest_of_compilation): Likewise.
2597         * flow.c (try_forward_edges): Take argument MODE;
2598         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
2599         (try_optimize_cfg): Update call of try_forward_edges.
2601 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
2602                                Jan Hubicka  <jh@suse.cz>
2604         * (validate_replace_rtx_1): Fix simplification of MINUS.
2606 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2608         PR preprocessor/3669
2609         * cppinit.c (init_dependency_output): Turn off dump requests
2610         if sending dependencies to stdout.
2612 2001-07-28  Richard Henderson  <rth@redhat.com>
2614         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
2615         not optimizing.
2617 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
2619         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
2621 2001-07-28  Kazu Hirata  <kazu@hxi.com>
2623         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
2624         is VAR_DECL first to prevent an ICE.
2626 2001-07-28  Richard Henderson  <rth@redhat.com>
2628         * varasm.c (immed_real_const_1): Don't elide special cases for
2629         nested functions.
2630         (clear_const_double_mem): Clear const_tiny_rtx too.
2632 2001-07-28  Richard Henderson  <rth@redhat.com>
2634         * dwarf2out.c (dw_val_class_offset): New.
2635         (struct dw_ranges_struct, dw_ranges_ref): New.
2636         (ranges_table, ranges_table_allocated): New.
2637         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
2638         (add_AT_offset, add_ranges, output_ranges): New.
2639         (print_die, output_die): Handle dw_val_class_offset.
2640         (attr_checksum, size_of_die, value_format): Likewise.
2641         (gen_lexical_block_die): Handle non-contiguous blocks.
2642         (gen_block_die): Likewise.
2643         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
2644         if needed.  Dump the ranges table.
2645         * final.c (final_start_function): Remove unnecessary notes and
2646         rebuild the block tree before numbering the blocks.
2647         * function.c (reorder_blocks_0): Walk the existing block tree
2648         to unmark all blocks.
2649         (reorder_blocks_1): Create block fragments when duplicate block
2650         notes are seen.
2651         (reorder_fix_fragments): New.
2652         (reorder_blocks): Call it.
2653         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
2655 2001-07-28  Richard Henderson  <rth@redhat.com>
2657         * emit-rtl.c (adjust_address): Make a copy of the memory address.
2659 2001-07-28  Richard Henderson  <rth@redhat.com>
2661         * flow.c (add_to_mem_set_list): New function.
2662         (init_propagate_block_info): Use it.
2663         (mark_set_1): Likewise.
2664         (insn_dead_p): Canonicalize memory address for dead store
2665         comparison.  Allow wider mode stores to kill narrower mode stores.
2666         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
2667         (invalidate_mems_from_set): Don't handle MEMs.
2669 2001-07-28  Kazu Hirata  <kazu@hxi.com>
2671         * config/h8300/h8300.h: Fix formatting.
2673 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
2675         * basic-block.h (EDGE_FREQUENCY): New macro.
2676         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
2677         for new BB/edges.
2678         * flow.c (find_sub_basic_blocks): Likewise.
2679         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
2680         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
2682         * predict.c (DEF_PREDICTOR): New argument FLAGS.
2683         (HITRATE): New macro.
2684         (PRED_FLAG_FIRST_MATCH): New constant.
2685         (predictor_info): New field flgags.
2686         (combine_predictions_for_insn): Use DS theory to combine
2687         probabilities; set the edge probabilities when finished.
2688         (estimate_probability): Avoid duplicated matches
2689         of LOOP_BRANCH heuristics for nested loops; update comment.
2690         * predict.def: Add flags for each prediction, set probabilities
2691         according to B&L paper.
2692         * predict.h (DEF_PREDICTOR): New argument FLAGS.
2694         * profile.c (compute_branch_probabilities):  Cleanup way the edge
2695         probabilities are computed and REG_BR_PROB notes are dropped; if
2696         values does not match, emit error.
2697         (init_branch_prob): Do error instead of warning when profile driven
2698         feedback is missing or corrupt.
2700 2001-07-27  DJ Delorie  <dj@redhat.com>
2702         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
2703         against a constant, try to adjust the compare to have the desired
2704         constant in it so that min/max optimizations happen more often.
2706 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
2708         * flow.c (last_loop_beg_note): New function.
2709         (redirect_edge_and_branch): Use it.
2710         (split_edge): Likewise.
2712         * alias.c (loop_p): Avoid uninitialized memory access.
2714         * flow.c (try_forward_edges): Avoid accessing freed memory.
2716         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
2717         variable access.
2719 2001-07-26  Andrew Haley  <aph@redhat.com>
2720         Joern Rennecke <amylaar@redhat.com>
2722         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
2723         (SUBTARGET_CPP_ENDIAN_SPEC): New.
2724         (SUBTARGET_CPP_SPEC): New.
2725         (CPP_SPEC): Remove.
2726         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
2727         (SUBTARGET_CPP_PTR_SPEC): New.
2728         (CPP_DEFAULT_CPU_SPEC): New.
2729         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
2730         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
2731         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
2732         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
2733         (SUBTARGET_CPP_SPEC): Define as an empty string.
2735 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2737         * doc/install.texi (Configuration): Properly link the host
2738         specific instructions also when generating HTML.
2740 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
2742         * flow.c (redirect_edge_and_branch_force): Test
2743         target->global_live_at_start.
2745 2001-07-26  Richard Henderson  <rth@redhat.com>
2747         * simplify-rtx.c (avoid_constant_pool_reference): Export.
2748         * rtl.h (avoid_constant_pool_reference): Declare it.
2749         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
2750         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
2752 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
2754         * rtl.h (cleanup_barriers): Declare.
2755         * jump.c (cleanup_barriers): New function.
2756         * toplev.c (rest_of_compilation): Call cleanup_barriers
2757         before loop optimizer and after bb_reorder.
2759         * flow.c (back_edge_of_syntactic_loop_p): New.
2760         (split_edge): Use it.
2762 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2764         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
2766 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
2768         * cse.c (cse_process_notes): Replace any registers if the address
2769         remains valid.
2771 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
2773         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
2774         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
2775         (propagate_block): Update prototype.
2776         * flow.c (update_life_info): Simplify the CFG and
2777         recalculate the global regs which are alive when
2778         removing dead code during a global update.
2779         (propagate_block): Return non-zero if an INSN is
2780         deleted.
2782 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2784         * Makefile.in (LIBICONV): Define.
2786 2001-07-26  Catherine Moore  <clm@redhat.com>
2788         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
2789         of conditional to avoid tree checking errors.
2791 2001-07-26  Kazu Hirata  <kazu@hxi.com>
2793         * regmove.c (regmove_optimize): Don't replace a reg with
2794         another reg of a different mode.
2796 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
2798         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
2799         limit length of dependancy flush list.
2800         * params.h (MAX_PENDING_LIST_LENGTH): Define.
2801         * sched-int.h  (struct deps): Add pending_flush_length field.
2802         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
2803         has 1 element in it.
2804         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
2805         (sched_analyze): After a jump, if the pending memory flush list is too
2806         large, flush the pending lists.
2807         (init_deps): Initialize pending_flush_length to 0.
2808         * doc/invoke.texi (max_pending_list_length): Document parameter.
2810 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2812         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
2813         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
2814         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
2816 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2818         * cpphash.h (struct_lexer_state): Delete was_skipping.
2819         Move skipping here from struct cpp_reader.
2820         * cpplex.c (parse_identifier): Update.
2821         (_cpp_lex_token): Don't skip tokens in a directive.
2822         * cpplib.c (struct if_stack): Update.
2823         (start_directive, end_directive): Don't change skipping state.
2824         (_cpp_handle_directive): Update.
2825         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
2826         (do_else, do_endif): Update; only check for excess tokens if not
2827         in a skipped conditional block.
2828         (push_conditional): Update for new struct if_stack.
2830 2001-07-26  Graham Stott  <grahams@redhat.com>
2832         * function.c (locate_and_pad_parm): Also pad initial offset
2833         so that the total argument size also includes the padding.
2835 2001-07-26  Graham Stott <grahams@redhat.com>
2837         * gensupport.c (alter_output_for_insn): Correct enable checking failure
2838         change XSTR to XTMPL.
2840         (process_one_cond_exec): Likewise
2842 2001-07-25  Richard Henderson  <rth@redhat.com>
2844         * varasm.c (assemble_variable): Create DECL_RTL before setting
2845         TREE_ASM_WRITTEN.
2847 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
2849         * predict.c (estimate_probability): Avoid duplicated predictions.
2851         * loop.c (find_and_verify_loops): Grok multiple barriers.
2853 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2855         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
2857         * dbxout.c: Consistently use putc instead of fputc.
2858         (print_wide_int): New function; call instead of direct fprintf.
2859         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
2860         (dbxout_type_fields, dbxout_type_method_1): Likewise.
2861         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
2862         (print_int_cst_octal): Likewise.
2863         (print_octal): Show we wrote characters.
2864         (dbxout_type): Set have_used_extensions in more places.
2866 2001-07-25  Catherine Moore  <clm@redhat.com>
2868         * config/v850/v850.c (v850_va_arg):  Use addr
2869         instead of valist to build incr.
2871 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
2873         * flow.c (delete_dead_jumptables): New function.
2874         (life_analyzis): Call it.
2875         * bb-reorder.c (skip_insns_after_block): Handle contradictory
2876         sequences.
2878 2001-07-25  Richard Henderson  <rth@redhat.com>
2880         * except.c (reachable_handlers): Handle a region being removed
2881         out from under a RESX.
2883 2001-07-25  Richard Henderson  <rth@redhat.com>
2885         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
2886         swap GE/GT if it is an fp comparison.
2888 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
2890         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
2891         operands.
2893 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
2895         * ssa.c (rename_insn_1): Do not wrap an assignment to a
2896         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
2897         glitch.
2899         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
2900         throw an exception.
2901         (visit_expression): When attempting to simplify an expression,
2902         retrieve any modes for arguments before they are simplified
2903         to constants.
2905 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
2906             Janis Johnson  <janis@us.ibm.com>
2908         * stmt.c (expand_goto): A nonlocal goto can be a call too.
2909         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
2910         pointer parameters to match documented usage of nonlocal_goto.
2911         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
2912         parameters to their correct order.
2913         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
2914         parameters to their correct order.
2916 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
2918         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
2920 2001-07-25  Jan Hubicka  <jh@suse.cz>
2921             Richard Henderson  <rth@redhat.com>
2923         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
2924         the sequence.
2925         (make_edges): New argument update_p; populate the edge cache if set.
2926         (find_basic_blocks): Update make_edges invocation.
2928 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2930         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
2932 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2934         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
2935         -Acpu and -Amachine.h.
2936         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
2937         Corrected header to say ELF not a.out.
2938         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
2939         when given -msoft-float.
2941 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2943         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
2944         extra multilib parts like arm-elf.
2945         (i960-*-coff*, i960-*-rtems): Should not use collect2.
2946         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
2947         crtfini.o as extra multilib parts.
2949 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2951         * configure.in: Add rtems as a supported thread model.
2952         * gthr-rtems.h: Add missing entry point __gthread_active_p.
2953         * configure: Rebuilt.
2955 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
2957         * stor-layout.c (get_mode_alignment): make it work when
2958         BITS_PER_UNIT is not a power of two.
2959         * builtins.c (get_pointer_alignment): Likewise.
2961 2001-07-24  Richard Henderson  <rth@redhat.com>
2963         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
2964         the retrieved constant into the expected mode.
2966 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
2968         * flow.c (try_simplify_condjump): Avoid duplicated edges.
2969         (verify_flow_info): Check for duplicated edges; clarify
2970         error reporting.
2972         * flow.c (block_label): Update basic_block_for_insn.
2973         (commit_edge_insertions): Call compute_bb_for_insn.
2975         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
2976         returns too.
2978         * flow.c (redirect_edge_and_branch,
2979         try_optimize_cfg): Use redirect_edge_succ_nodup
2980         (redirect_edge_succ_nodup): New.
2981         * basic_block.h (redirect_edge_succ_nodup): Declare.
2983         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
2984         after gcse.
2986 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
2988         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
2989         (try_crossjump_to_edge): Update commetns.
2990         (try_crossjump_bb): Likewise.
2992 2001-07-24  Richard Henderson  <rth@redhat.com>
2994         * combine.c (distribute_notes): Move set of need_refresh
2995         for noop_move_p down to catch all cases.
2997 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
2999         * recog.c (split_all_insns_noflow): New.
3000         * rtl.h (split_all_insns_noflow): Declare.
3001         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
3002         * m68hc11.c (m68hc11_reorg): Likewise.
3003         * sh.c (machine_dependent_reorg): Likewise.
3004         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
3005         call.
3007 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
3009         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
3010         (ashlsi3_n splitter): Likewise.
3011         (lshrsi3_n splitter): Likewise.
3013         (GOTaddr2picreg): Make const SImode.
3014         (sym_label2reg): Likewise.
3015         (symGOT2reg): Likewise.
3016         (symGOTOFF2reg) Likewise.
3018         (casesi_worker_0): Make unspec SImode.
3020 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
3022         * config/sh/sh.c (barrier_align): Check that an operand really is
3023         an insn before extracting its INSN_CODE.
3025 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
3027         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
3028         dangling else.
3030         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
3031         for SImode to prevent overflow.
3033 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3035         * config/mips/irix6-libc-compat.c: New file.
3036         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
3037         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
3038         passing workaround.
3040 2001-07-24  lars brinkhoff  <lars@nocrew.org>
3042         * rtl.texi (REG_POINTER): Document.
3043         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
3044         QFmode, HFmode, TQFmode, QCmode, and HCmode.
3046 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
3048         * flow.c (delete_noop_moves): Do not confuse libcall regions.
3050 2001-07-23  Richard Henderson  <rth@redhat.com>
3052         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
3054 2001-07-23  Kazu Hirata  <kazu@hxi.com>
3056         * config/h8300/h8300-protos.h: Add a prototype for
3057         general_operand_dst_push.
3058         * config/h8300/h8300.c (general_operand_dst_push): New.
3059         * config/h8300/h8300.h (OK_FOR_T): New.
3060         (EXTRA_CONSTRAINT): Use it.
3061         * config/h8300/h8300.md (movqi_push): Remove and integrate into
3062         the existing movqi pattern.
3063         (movhi_push): Likewise.
3065         * reload.c: Fix comment typos.
3067 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
3069         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
3071 2001-07-23  H.J. Lu  (hjl@gnu.org)
3073         * doc/extend.texi: Update __builtin_return_address and
3074         __builtin_frame_address.
3076 2001-07-23  Richard Henderson  <rth@redhat.com>
3078         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
3079         before CSE.
3080         * config/i386/i386.md: New setcc+movzbl peephole2.
3082 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3084         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
3085         * objc/objc-act.c: Include debug.h.
3086         (synth_module_prologue): Save and restore debug hooks too.
3088 2001-07-23  lars brinkhoff  <lars@nocrew.org>
3090         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
3091         and C4X_FLOAT_FORMAT.
3092         (BOOL_TYPE_SIZE): Document.
3094 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
3096         * unroll.c (loop_iterations): Fix miscalculation of initial
3097         giv offset.
3099 2001-07-13  Andrew Haley  <aph@redhat.com>
3101         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
3102         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
3103         * config/sh/sh.c (sh_can_redirect_branch): New function.
3104         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
3105         * reorg.c (steal_delay_list_from_target): Use
3106         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
3108 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
3110         * flow.c (try_simplify_condjump): Unlink insn chain on
3111         fallthru edge; use can_fallthru.
3113 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
3115         * basic-block.h (find_sub_basic_block): Declare.
3116         * flow.c (make_edges): New arguments MIN and MAX;
3117         (find_sub_basic_blocks): Revamp to use make_edges
3118         and purge_dead_edges.
3119         (find_basic_blocks): Update call of find_sub_basic_block.
3121         * recog.c (split_all_insns): Always expect CFG to be consistent;
3122         call find_sub_basic_blocks in case something has changed.
3123         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
3124         has been built.
3126         * basic-block.h (delete_noop_moves): Declare.
3127         * combine.c (combine_instructions): Call it.
3128         (recog_for_combine): Tolerate noop moves
3129         (distribute_notes): Force refresh when register dies at noop move.
3130         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
3131         too.
3132         (life_analysis): Update delete_noop_moves call.
3133         (set_noop_p): Move too ...
3134         * rtlanal.c (noop_move_p): ... here.
3135         * rtl.h (noop_move_p): Declare.
3137         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
3138         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
3139         after combine.
3140         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
3141         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
3143 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
3145         * reload.c (push_reload): Fix typo in comment.
3146         (find_reloads_address): Ditto.
3147         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
3149 2001-07-22  Richard Henderson  <rth@redhat.com>
3151         * flow.c: Grammar check and clarify a lot of comments.
3152         (try_simplify_condjump): Rename variables to be clearer.
3153         (try_forward_edges): Skip complex and fallthru edges.
3154         Rearrange tests to avoid duplicate checks.
3155         (flow_find_cross_jump): Likewise.
3156         (outgoing_edges_match): Allow match if neither branch has
3157         probability data.  Loosen probability match to 5%.
3158         (try_crossjump_to_edge): Hoist repeated indirection into
3159         local variables.
3160         (try_crossjump_bb): Don't check complex edges.  Eliminate
3161         redundant crossjump tests.
3162         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
3163         checks before more expensive checks.
3165 2001-07-22  Richard Henderson  <rth@redhat.com>
3167         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
3168         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
3169         arguments.
3171 2001-07-22  Richard Henderson  <rth@redhat.com>
3173         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
3174         (const_sint32_operand): Likewise.
3175         * m68k.md (anon mulsi pattern): Use const_int_operand not
3176         const_sint32_operand.
3177         (umulsi3_highpart): Zero extend a constant input.
3178         (smulsi3_highpart): Don't bother checking SImode constant.
3179         (const_umulsi3_highpart): Give op3 DImode.
3180         (const_smulsi3_highpart): Likewise.
3182 2001-07-22  Richard Henderson  <rth@redhat.com>
3184         * flow.c (split_block): Make sure bb_note is included in the
3185         new block when splitting before a label.
3187 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
3189         * basic-block.h (redirect_edge_and_branch_force,
3190         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
3191         * flow.c (redirect_edge_and_branch_force,
3192         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
3193         (redirect_edge_and_branch_force): Fix copying of lifeness information.
3194         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
3195         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
3196         instead of label; update CFG after transformation.
3197         (find_if_case_1): Update call, use redirect_edge_and_branch_force
3198         for finishing the transformation; handle even case where ELSE
3199         does not follow THEN.
3200         (find_if_case_2): Update call of dead_or_predictable; simplify
3201         CFG update.
3203         * emit-rtl.c (split_branch_probability): New global variable.
3204         (try_split): Take care to set split_branch_probability and
3205         create REG_BR_PROB note for new jump insns.
3206         * md.texi (define_split): Document new feature.
3208         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
3210 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3212         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
3213         (asm_out_file): Remove redundant declaration.
3214         (assemble_asm): Remove old #if 0 block.
3215         (assemble_variable): Remove end of function; debug output is
3216         now handled with global_decl.  Remove old #if 0 block.  Update.
3217         Remove saved_in_section and associated no-op code.
3218         * Makefile.in (varasm.o): Correct dependencies.
3220 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
3222         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3223         the definition in defaults.h.
3225 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
3227         * jump.c: Update comments.
3228         (delete_barrier_successors, delete_unreferenced_labels,
3229         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
3230         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
3231         jump_optimize, jump_optimize_minimal): Kill.
3232         (rebuild_jump_labels): Move code from jump_optimize_1.
3233         (purge_line_number_notes): Likewise.
3234         (copy_loop_headers): Likewise.
3235         * reg-stack.c: Update comment.
3236         * stmt.c: Likewise.
3237         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
3238         JUMP_AFTER_REGSCAN): Kill.
3239         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
3240         purge_line_number_notes and copy_loop_headers.
3242 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
3243            Richard Henderson  <rth@redhat.com>
3245         * dbxout.c (dbxout_global_decl): New.
3246         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
3247         * sdbout.c (sdbout_finish): New.
3248         (sdbout_debug_hooks): Use it, add comments.
3249         (sdbout_global_decl): Defer initialised public vars to
3250         sdbout_finish.
3251         * varasm.c (assemble_variable): Don't output debug information
3252         for file-scope variables.
3254 2001-07-22  Richard Henderson  <rth@redhat.com>
3256         * config/alpha/alpha.c (get_trap_mode_suffix): New.
3257         (get_round_mode_suffix): New.
3258         (print_operand): Use them for [/].  Remove support for [&'`()+].
3259         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
3260         * config/alpha/alpha.md (attr round_suffix): New.
3261         (attr trap_suffix): New.
3262         (all insns): Set them appropriately.  Use %/ instead of the
3263         myriad punctuators.
3265 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3267         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
3269 2001-07-22  Richard Henderson  <rth@redhat.com>
3271         * regrename.c (regrename_optimize): Compute nregs for each
3272         potential target register.
3274 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
3275            Richard Henderson  <rth@redhat.com>
3277         * dbxout.c (dbxout_global_decl): New.
3278         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
3279         * sdbout.c (sdbout_finish): New.
3280         (sdbout_debug_hooks): Use it, add comments.
3281         (sdbout_global_decl): Defer initialised public vars to
3282         sdbout_finish.
3283         * varasm.c (assemble_variable): Don't output debug information
3284         for file-scope variables.
3286 2001-07-21  H.J. Lu  (hjl@gnu.org)
3288         * config/mips/mips.c (mips_cpu): Moved into ...
3289         (override_options): Here.
3291         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
3292         mips_tune.
3293         (mips_cpu): Removed.
3295 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3297         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
3298         ("iorqi3"): Likewise.
3299         ("xorqi3"): Likewise.
3300         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
3301         ("*subhi3_sp): Likewise.
3302         ("*subhi3"): Likewise.
3303         ("extendhisi2"): Accept D, X and Y as source operand to avoid
3304         reload problems.
3306 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
3308         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
3309         * config/freebsd.h: Likewise.
3310         * config/linux.h: Likewise.
3311         * config/openbsd.h: Likewise.
3312         * config/alpha/linux-elf.h: Likewise.
3313         * config/arm/linux-elf.h: Likewise.
3314         * config/d30v/d30v.h: Likewise.
3315         * config/fr30/fr30.h: Likewise.
3316         * config/ia64/aix.h: Likewise.
3317         * config/ia64/ia64.h: Likewise.
3318         * config/mips/linux.h: Likewise.
3319         * config/pj/pj.h: Likewise.
3320         * config/rs6000/linux.h: Likewise.
3321         * config/sparc/linux.h: Likewise.
3322         * config/sparc/linux64.h: Likewise.
3324 2001-07-20  Bruce Korb  <bkorb@gnu.org>
3326         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
3327         because getc() and char* may disagree on signedness.
3329 2001-07-20  Richard Henderson  <rth@redhat.com>
3331         * doc/rtl.texi (REG_DEAD): Update for current semantics.
3333         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
3334         insns to delete in the presence of cc0 in a jump insn.
3336 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
3337                                Jan Hubicka  <jh@suse.cz>
3339         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
3340         of doing the change by hand.
3342 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
3344         * rtlanal.c (set_noop_p): Return true for noop jumps.
3346         * expr.c (emit_single_push_insn): Add call to push expander.
3347         * expr.h (optab_index): Add OTI_push
3348         (push_optab): New constant.
3349         * genopinit.c (optabs): Add push_optab.
3350         * optabs.c (init_optab): Init push optab.
3351         * md.texi (push??1): Document
3353 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3355         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
3356         expand to emit the pattern; put a REG_INC note for push/pop
3357         instructions.
3358         ("movdf", "movdf_internal"): Likewise.
3359         ("movsi", "movsi_internal"): Likewise.
3360         ("movsf", "movsf_internal"): Likewise.
3361         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
3363 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3365         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
3366         gen_highpart.
3368 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
3370         * params.def: Change default max inline insns to 100.
3372 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
3374         * combine.c (combine_simplify_rtx): Generate a new shift operation
3375         when simplifying the first operand of a (neg (ashift)) expression.
3377 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3379         * regclass.c (N_REG_INTS): Use only 32 bits per element.
3381 2001-07-20  Kelley Cook  <kelley.cook@home.com>
3383         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
3384         information.   Move rest into ...
3385         (*-*-solaris): ... here.  Eliminate redundant information and
3386         reword necessary packages section.  Delete 4.x assembler bug info.
3387         (sparc-sun-*): Merge into ...
3388         (sparc-sun-sunos*): here.
3390 2001-07-20  Catherine Moore  <clm@redhat.com>
3392         * config/v850/v850.md (casesi): Generate LABEL_REF
3393         with Pmode.
3395 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
3397         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
3398         * i386.c (ix86_zero_extend_to_Pmode): Make global.
3399         * i386.md (strclrsi expander): Use it.
3401 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3403         * integrate.c (copy_insn_list): handle
3404         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
3405         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
3406         identically as to CODE_LABEL.
3408         * fold-const (fold): Convert A/B/C to A/(B*C) and
3409         A/(B/C) to (A/B)*C
3411         * except.c (connect_post_landing_pads): Delete the RESX insns.
3413 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
3415         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
3417         * config/mips/mips.md (nmadd/nmsub): Use macro.
3419 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
3421         * cppinit.c (remove_dup_dir): Make static.
3422         (remove_dup_dirs): Make static. Only warn about preempting a
3423         system directory with a non-system directory.
3425 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
3427         * ifcvt.c (noce_try_store_flag_constants): Correct order
3428         of parameters to trunc_int_for_mode.
3430 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
3432         * reorg.c (fill_simple_delay_slots): If an instruction might throw
3433         an exception that will be caught within this function, do not fill
3434         its delay slot with any subsequent instruction.
3436 2001-07-19  Steve Ellcey <sje@cup.hp.com>
3438         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
3439         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
3440         pointer extension instruction.
3441         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
3442         * simplify-rtx.c (simplify_unary_operation) Likewise.
3443         * explow.c (convert_memory_address) Check value of
3444         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
3445         less than zero.
3446         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
3447         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
3448         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
3449         Add Multilib Support.
3450         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
3451         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
3452         Add Multilib Support.
3453         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
3454         support.
3455         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
3456         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
3457         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
3459 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
3461         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
3462         old and new operands in `<', `3' and `b'.
3464 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3466         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
3467         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
3468         (toplev.o): Don't depend on xcoffout.h.
3469         * c-decl.c: Include debug.h
3470         (duplicate_decls): Use debug hook.
3471         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
3472         (dbx_debug_hooks, xcoff_debug_hooks): Update.
3473         (dbxout_types): Remove.
3474         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
3475         * debug.c (do_nothing_debug_hooks): Update.
3476         (debug_true_tree, debug_nothing_rtx): New.
3477         * debug.h (struct rtx_def): New.
3478         (struct gcc_debug_hooks): New hooks ignore_block,
3479         outlining_inline_function and label.
3480         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
3481         dwarf2out_frame_finish): New.
3482         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
3483         Make static, update prototype.
3484         (dwarf2_debug_hooks): Update.
3485         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
3486         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
3487         * dwarfout.c (dwarf_debug_hooks): Update.
3488         * emit-rtl.c: Include debug.h.
3489         (remove_unnecessary_notes): Use debug hook.
3490         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
3491         (final_scan_insn): Use debug hook.
3492         * integrate.c (output_inline_function): Use debug hook.
3493         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
3494         (sdb_debug_hooks): Update.
3495         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
3496         * toplev.c: Don't include xcoffout.h.
3497         (note_outlining_of_inline_function, debug_ignore_block): Remove.
3498         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
3499         Remove.
3500         * tree.h (dwarf2out_do_frame): Remove.
3502 2001-07-19  Catherine Moore  <clm@cygnus.com>
3504         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
3506 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
3508         * reload1.c (eliminate_regs_in_insn): When updating a set
3509         to the frame pointer to the hardware frame pointer, perform
3510         the update always not just when REPLACE is set.
3512         * reload1.c (choose_reload_regs): Don't inherit a reload
3513         that crosses multiple registers if registers past the first
3514         don't fit in the desired class.
3516         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
3517         when negating constants.
3519 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
3521         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
3522         * doc/tree.texi: Ditto.
3524 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
3525             Jakub Jelinek  <jakub@redhat.com>
3527         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
3528         (extract_cie_info): Handle "eh" augmentation properly,
3529         remember eh_ptr.
3530         (struct frame_state, __frame_state_for): New.
3532 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3534         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
3535         HANDLE_SYSV_PRAGMA): Define.
3536         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
3537         previous args.
3538         (copy_object): Caller changed.
3540 2001-07-19  Andreas Schwab  <schwab@suse.de>
3542         * configure.in (assembler dwarf2 debug_line support): Define nop
3543         insn for m68k.
3544         * configure: Regenerated.
3546 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3548         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
3549         dwarfout.h.
3550         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
3551         to conditionally compiled block.
3552         (dbx_debug_hooks, xcoff_debug_hooks): Update.
3553         * dbxout.h (dbxout_function): Remove.
3554         * debug.c (do_nothing_debug_hooks): Update.
3555         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
3556         global_decl, deferred_inline_function.
3557         * dwarf2out.c (dwarf2_debug_hooks): Update.
3558         (dwarf2out_global_decl): New.
3559         * dwarfout.c: Don't include dwarfout.h.
3560         (dwarfout_global_decl, dwarfout_function_decl,
3561         dwarfout_deferred_inline_function): New.
3562         (dwarf_debug_hooks): Update.
3563         * dwarfout.h: Remove.
3564         * final.c: Don't include dwarfout.h.
3565         * sdbout.c (sdbout_global_decl): New.
3566         (sdbout_debug_hooks): Update.
3567         * toplev.c: Don't include dwarfout.h.
3568         (check_global_declarations, rest_of_compilation): Use new debug hooks.
3569         (note_deferral_of_defined_inline_function): Remove.
3570         * toplev.h (note_deferral_of_defined_inline_function): Remove.
3571         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
3572         * ch/lex.c: Don't include dwarfout.h.
3573         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
3574         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
3575         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
3576         * cp/optimize.c: Include debug.h.
3577         (maybe_clone_body): Use debug hook.
3578         * cp/semantics.c: Include debug.h.
3579         (expand_body): Use debug hook.
3580         * po/POTFILES.in: Remove dwarfout.h.
3582 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3584         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
3585         * c-parse.in (yyerror, _yylex): Similarly.
3586         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
3587         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
3588         Update comments.
3589         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
3590         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
3592 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
3594         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
3595         in-class declaration at -g1.  Fixes c++/2814.
3597 2001-07-18  Richard Henderson  <rth@redhat.com>
3599         * doc/md.texi (reload_in/out): Document restrictions in predicates
3600         and constraints for these patterns.  Document empty string matching
3601         ALL_REGS.
3603 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3605         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
3607 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3609         * cse.c: Undo my previous patch.
3611 2001-07-18  Tom Tromey  <tromey@redhat.com>
3613         For PR java/2812:
3614         * configure: Rebuilt.
3615         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
3616         instead.
3617         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
3619 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
3620                                Jan Hubicka  <jh@suse.cz>
3622         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
3623         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
3624         * jump.c (mark_jump_label): Do not forward branches.
3626 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
3628         * cse.c (delete_trivially_dead_insns): Delete the libcall block
3629         when return value is unused.
3631 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3633         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
3635 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3637         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
3638         on error.  We can't blindly return the result of
3639         pthread_mutex_trylock because it returns a positive number on
3640         error, while we must return -1 on error.
3641         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
3642         fixes.
3643         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
3645 2001-07-18  Andreas Jaeger  <aj@suse.de>
3647         * integrate.c (output_inline_function): Correct type of debug_hooks.
3649 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
3651         * combine.c (combine_simplify_rtx): DIV can be treated
3652         associatively for floats if unsafe math optimisations are enabled.
3654 2001-07-17  Richard Henderson  <rth@redhat.com>
3656         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
3658 2001-07-17  Richard Henderson  <rth@redhat.com>
3660         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
3661         don't force the function address into a register.
3662         (expand_call, emit_library_call_value_1): Update callers.
3663         * builtins.c (expand_builtin_apply): Likewise.
3664         * expr.h (prepare_call_address): Update decl.
3666 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
3668         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
3669         config directory.
3670         * config/i386/chorus.h: Move up.
3671         * config/sparc/chorus.h: Likewise.
3672         * config/rs6000/chorus.h: Likewise.
3673         * config/chorus.h: Moved here.
3675 2001-07-17  Andreas Schwab  <schwab@suse.de>
3677        * configure.in  (assembler eh_frame optimization): Handle big
3678        endian.
3679        * configure: Regenerated.
3681 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
3683         * expr.c (epxand_expr): Convert divisions into multiplications by
3684         reciprocals if -ffast-math.
3686 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3688         * dbxout.c (dbxout_really_begin_function): Rename to
3689         dbxout_begin_function.
3690         (dbx_debug_hooks, xcoff_debug_hooks): Update.
3691         (dbxout_begin_function): Remove.
3692         (dbxout_function): Update.
3693         (dbxout_source_line): Update prototype.
3694         * dbxout.h (dbxout_begin_function): Remove.
3695         * debug.c (do_nothing_debug_hooks): Update.
3696         (debug_nothing_tree): Update.
3697         (debug_nothing_charstar_rtx): Remove.
3698         * debug.h (union tree_node): Declare.
3699         (struct rtx_def): Remove.
3700         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
3701         begin_function.  Change source_line prototype.
3702         (debug_nothing_tree): New.
3703         (debug_nothing_charstar_rtx): Delete.
3704         (dwarf2out_begin_prologue): Moved from ...
3705         * tree.h: ... here.
3706         * dwarf2out.c (dwarf2_debug_hooks): Update.
3707         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
3708         debug info, call dwarf2out_source_line.
3709         (dwarf2out_souce_line): Update prototype.
3710         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
3711         Change prototype, make static.
3712         (dwarfout_source_line): Update prototype.
3713         (dwarf_debug_hooks): Update.
3714         * dwarfout.h (dwarfout_begin_function): Remove.
3715         * final.c (final_start_function, final_scan_insn): Use appropriate
3716         debug hooks, update to use notice_source_line.
3717         (output_source_line): Rename notice_source_line.  Don't call the
3718         source_line debug hook.
3719         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
3720         make static, update prototype.
3721         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
3722         prototype.
3723         (sdbout_end_prologue): New.
3724         (sdbout_source_line): Update prototype.
3725         (sdbout_debug_hooks): Update.
3726         (sdbout_symbol): Remove unused var.
3727         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
3728         Delete.
3729         * varasm.c: Include debug.h.
3730         (assemble_start_function): Use begin_function debug_hook.
3731         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
3732         update with prototype.
3733         (xcoffout_source_line): Update prototype.
3734         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
3735         update prototype.
3736         (xcoffout_source_line): Update prototype.
3738 2001-07-17  Richard Henderson  <rth@redhat.com>
3740         * c-typeck.c (build_binary_op): Do not shorten unsigned
3741         right shift after sign extension.
3743 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
3745         * combine.c (combine_simplify_rtx): Attempt to simplify
3746         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
3748         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
3749         (simplify_binary_operation, simplify_unary_operation,
3750          simplify_relational_operation): Use it.
3752         * combine.c (combine_simplify_rtx): Don't do associative law
3753         on divisions; allow associative law on floats.
3755 2001-07-17  H.J. Lu <hjl@gnu.org>
3756             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3758         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
3759         ASM_OUTPUT_WEAK_ALIAS are defined.
3760         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
3761         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
3762         Moved ...
3763         * config/mips/iris5.h: ... here.
3764         (HANDLE_SYSV_PRAGMA): Defined as 1.
3765         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
3766         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
3767         symbol.
3769 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3771         * c-parse.in (all_prefix_attributes): New variable.
3772         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
3773         (maybe_resetattrs): New production.
3774         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
3775         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
3776         notype_initdcl, nested_function, notype_nested_function,
3777         component_decl, components, components_notype,
3778         component_declarator, component_notype_declarator,
3779         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
3780         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
3781         after a comma being applied to more than one declarator.
3782         * doc/extend.texi (Attribute Syntax): Update.  Remove
3783         documentation of bugs that are no longer present.
3785 2001-07-13  Eric Christopher  <echristo@redhat.com>
3787         * config/mips/mips.h: Change TUNE_MIPS* options to use
3788         mips_tune.
3789         (EXTRA_SPECS): Add cc1_cpu_spec.
3790         * config/mips/mips.md (muldf3): Fix typo.
3792 2001-07-16  Richard Henderson  <rth@redhat.com>
3794         * config/m68k/m68k.c: Include expr.h and reload.h.
3795         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
3796         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
3798 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
3799             Richard Henderson  <rth@redhat.com>
3801         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
3802         (insn_live_p): Fix fall off end of function.
3803         (dead_libcall_p): Remove COUNTS argument; update callers.
3804         (delete_trivially_dead_insns): Remove unused variables.
3806 2001-07-17  Andreas Jaeger  <aj@suse.de>
3808         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
3809         x86-64 pic support.
3811         * lcm.c (optimize_mode_switching): Avoid warning for unused
3812         variable if !NORMAL_MODE.
3814         * flow.c (try_crossjump_to_edge): Remove unused variable.
3816 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3818         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
3819         atexit declaration in stdlib.h.
3821 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
3823         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
3825 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3827         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
3828         * except.c (finish_eh_generation): Update call of cleanup_cfg;
3829         do rebuild_jump_labels instead of jump_optimize
3830         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
3831         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
3832         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
3834         * flow.c: Include timevar.h
3835         (find_basic_block): Push/pop timevar;
3836         (cleanup_cfg): Likewise.
3837         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
3838         * Makefile: Add dependencies on timevar.h
3840         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
3841         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
3843         * rtl.h (delete_trivially_dead_insns): Add new parameter.
3844         * toplev.c (rest_of_compilation): Update calls.
3845         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
3846         (delete_trivially_dead_insns): ... here; accept new argument
3847         preserve_basic_blocks; preserve basic blocks if set.
3849         * reg-stack.c (stack_regs_mentioned): Return 0 if
3850         stack_regs_mentioned_data is not initialized.
3851         (reg_to_stack): Make stack_regs_mentioned survive after the
3852         reg-stack is completted; do not call cleanup_cfg.
3853         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
3854         make cleanup_cfg after bb-reorder to output to debug file.
3856 2001-07-16  Richard Henderson  <rth@redhat.com>
3858         * regclass.c (init_reg_sets): Use only 32 bits per initializer
3859         from int_reg_class_contents.
3861 2001-07-16  Richard Henderson  <rth@redhat.com>
3863         * hard-reg-set.h (regs_invalidated_by_call): Declare.
3864         * regclass.c (regs_invalidated_by_call): Move from cse.c.
3865         (init_reg_sets_1): Move initialization from cse_main.
3866         * cse.c (regs_invalidated_by_call): Move to regclass.c.
3867         (cse_main): Move its initialization also.
3868         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
3869         * flow.c (propagate_one_insn): Likewise.
3870         * gcse.c (compute_hash_table): Likewise.
3871         (compute_kill_rd, compute_store_table): Likewise.
3872         * sched-deps.c (sched_analyze_1): Likewise.
3874 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
3876         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
3877         gen_rtx_SET.
3879 2001-07-16  Steve Ellcey <sje@cup.hp.com>
3881         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
3882         in if statement so we don't access undefined memory.
3884 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
3886         * gcse.c: Update comment at top.
3887         Update comment on mem handling.
3888         mem_last_set, mem_first_set, mem_set_in_block: gone.
3889         Declaration of reg_set_info: gone.
3890         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
3891         pointless with load_killed_in_block_p (they are *more*
3892         conservative then it, not less, and less accurate).
3893         (oprs_not_set_p): Ditto.
3894         (alloc_gcse_mem): Don't allocate mem_set_in_block
3895         (free_gcse_mem): Don't free it, either.
3896         (record_last_mem_set_info): Update comment in front, remove
3897         mem_*set_* stuff. Note the reason we don't handle stores directly
3898         here.
3899         (compute_hash_table): Update comments to reflect reality. Remove
3900         mem_*set_* references.
3901         (reset_opr_set_tables): Remove mem_*set_* references.
3902         (mark_call): Ditto.
3903         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
3904         (mark_clobber): Ditto (on both parts, we double set here too).
3905         (expr_killed_p): Remove mem_set_in_block test.
3906         (compute_transp): Remove mem_set_in_block test.
3908         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
3909         of edge, and removal of phi alternative to dump file.
3910         (ssa_ccp_substitute_constants): Add note about register now being
3911         constant, and which uses were replaced in what insns to dump file.
3913 2001-07-16  Andreas Jaeger  <aj@suse.de>
3915         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
3916         variables of type HOST_WIDEST_INT.
3918         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
3919         (__bb_exit_func): Correct type of count_max to avoid overflow.
3920         (num_digits): Handle long long argument.
3922         * combine.c (gen_lowpart_for_combine): Remove unused variable.
3924 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3926         * output.h (sdb_begin_function_line): Restore as an extern
3927         variable.
3928         * sdbout.c (sdb_begin_function_line): Make extern.
3930 2001-07-15  Richard Henderson  <rth@redhat.com>
3932         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
3933         * genrecog.c (maybe_both_true_mode): New.
3934         (maybe_both_true_2): Use it.
3935         (write_switch): Don't put Pmode in a switch.
3936         * rtl.c (mode arrays): Don't explicitly size them.
3938 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3940         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
3941         handling; move unconditional splitting before mode switching.
3943         * i386.md (type): Add fistp type.
3944         (i387, length_attr, scheduling definitions): Handle this type.
3945         (fix_trunc?f?i2): Revamp to use mode switching.
3946         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
3947         * i386.h (fp_cw_mode): New enum
3948         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
3949         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
3951 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3953         * Makefile.in (integrate.o): Add debug.h.
3954         * integrate.c (debug.h): Add.
3955         (output_inline_function): Save, reset, and restore debug_hooks.
3957 2001-07-15  Richard Henderson  <rth@redhat.com>
3959         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
3960         instead of COMPARE for the EQUIV expression.
3962 2001-07-15  Richard Henderson  <rth@redhat.com>
3964         * flow.c (redirect_edge_and_branch_force): Initialize
3965         global_live_at_start and global_live_at_end.
3966         (allocate_bb_life_data): Export.
3967         * basic-block.h (allocate_bb_life_data): Declare.
3968         * toplev.c (rest_of_compilation): Call it.
3970 2001-07-15  Richard Henderson  <rth@redhat.com>
3972         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
3973         (alpha_tablejump_best_label): New.
3974         * config/alpha/alpha-protos.h: Declare them.
3975         * config/alpha/alpha.md: Use braced strings for code blocks.
3976         (tablejump_osf): Break out add with r29.
3977         (tablejump_osf_internal): Remove.
3978         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
3979         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
3981 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
3983         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
3984         of the movable.
3986         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
3988         * i386-protos.h (ix86_split_fp_branch): Update prototype.
3989         (ix86_fp_jump_nontrivial_p): New.
3990         * i386.md (fp_jcc_?): Update call of split_fp_branch;
3991         use ix86_fp_jump_nontrivial_p.
3992         * i386.c (ix86_fp_jump_nontrivial_p): New.
3993         (ix86_split_fp_branch): Accept code instead of rtx.
3994         (ix86_expand_compare): Expand comparison early in case
3995         doing so is resonably cheap.
3997 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
3999         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
4000         not 'machine'.
4001         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
4002         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
4004 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4006         * dbxout.c (dbxout_source_line): Make static, update prototype.
4007         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
4008         (dbxout_init, dbxout_finish, dbxout_source_line,
4009         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
4010         * dbxout.h (dbxout_source_line): Delete.
4011         * debug.c (debug_nothing_file, debug_nothing_file_int,
4012         debug_nothing_file_charstar_rtx): New.
4013         (do_nothing_debug_hooks): Update.
4014         (debug_nothing_void, debug_nothing_charstar_rtx,
4015         dwarf2out_end_epilogue): New.
4016         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
4017         * debug.h (struct rtx_def): Declare.
4018         (gcc_debug_hooks): New hooks source_line, end_epilogue
4019         and end_function.
4020         (debug_nothing_void, debug_nothing_charstar_rtx,
4021         dwarf2out_end_epilogue): New.
4022         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
4023         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
4024         (dwarf2_debug_hooks): Update.
4025         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
4026         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
4027         * dwarf2out.h (dwarf2out_source_line): Remove.
4028         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
4029         Make static, update prototype.
4030         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
4031         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
4032         (dwarf_debug_hooks): Update.
4033         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
4034         dwarfout_end_function): Remove.
4035         * final.c (profile_function): Use debug hooks for ending functions
4036         and epilogues.
4037         (output_source_line, final_end_function): Update prototype,
4038         use debug hooks.
4039         (final_start_function, final_scan_insn): Update.
4040         * output.h (sdb_begin_function_line): Remove.
4041         (final_end_function): Update prototype.
4042         * sdbout.c (sdb_begin_function_line): Make static.
4043         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
4044         (sdbout_source_line): New.
4045         (sdbout_end_epilogue, sdbout_end_function): Make static, update
4046         prototypes.
4047         (sdb_debug_hooks): Update.
4048         (sdbout_init, sdbout_source_line,
4049         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
4050         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
4051         * toplev.c (compile_file, rest_of_compilation): Update.
4052         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
4053         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
4054         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
4055         Update for prototype changes.
4056         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
4057         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
4059 2001-07-15  Richard Henderson  <rth@redhat.com>
4061         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
4062         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
4063         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
4064         * config/alpha/alpha.c: Likewise.
4065         * config/alpha/alpha.md: Likewise.
4066         * config/alpha/alpha32.h: Likewise.
4067         * config/alpha/vms.h: Likewise.
4068         (OPEN_VMS): Remove.
4070 2001-07-14  Richard Henderson  <rth@redhat.com>
4072         * config/alpha/alpha.md: Use define_constants for unspec values.
4073         Substitute throughout.
4075 2001-07-14  Tim Josling  <tej@melbpc.org.au>
4077         * tree.def (EXPON_EXPR) remove. Never supported anyway.
4079 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4081         * pa.md: Remove unused constraints from define_split's.
4083 2001-04-14  Richard Henderson  <rth@redhat.com>
4085         * ifcvt.c (find_cond_trap): Test for exit block.
4087 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
4089         Re-install recently reverted patch.
4090         * emit-rtl.c (try_split): Update mark_jump_label call.
4091         * flow.c (find_sub_basic_blocks): Likewise.
4092         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
4093         jump_back_p): Kill.
4094         (mark_all_labels): Kill second parameter.
4095         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
4096         (rebuild_jump_labels, jump_optimize_minimal): Update call
4097         of jump_optimize_1.
4098         (jump_optimize_1): Kill crossjumping code.
4099         (mark_jump_label): Kill cross_jump parameter.
4100         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
4101         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
4102         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
4103          splitting.
4104         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
4105         DFI_bpro.
4106         (dump_file_info): Likewise.
4107         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
4108         reorganize passes to do reg-stack first, bb-reorder second.
4109         * invoke.texi (-d letters doc): Remove the jump2 pass.
4111 2001-07-14  Richard Henderson  <rth@redhat.com>
4113         * ifcvt.c (find_cond_trap): New.
4114         (find_if_header): Call it.
4115         (merge_if_block): Relax existing jump sanity check.
4116         * jump.c (jump_optimize_1): Remove conditional trap handling.
4118 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
4120         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
4121         millicode.
4122         (insn_refs_are_delayed): Correct comment.
4123         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
4124         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
4125         instead of r31.  Make associated insn !TARGET_64BIT, and
4126         provide an additional 64-bit insn that clobbers r2.
4127         (divsi3): Likewise.
4128         (udivsi3): Likewise.
4129         (modsi3): Likewise.
4130         (umodsi3): Likewise.
4132 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
4134         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
4136         * flow.c (redirect_edge_and_branch_force, split_edge,
4137         try_crossjump_to_edge): Use set_block_for_new_insns.
4138         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
4140 2001-07-13  H.J. Lu  (hjl@gnu.org)
4142         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
4143         the correct patch.
4145 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
4147         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
4149 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
4151         * c-common.c (decl_attributes): Take a pointer to the node to
4152         which attributes are to be attached, and a flags argument.
4153         * c-common.h (enum attribute_flags): New.
4154         (decl_attributes): Update prototype.
4155         * c-decl.c (start_decl, push_parm_decl, finish_struct,
4156         finish_enum, start_function): Update calls to decl_attributes.
4157         * c-parse.in (component_declarator, component_notype_declarator,
4158         label): Update calls to decl_attributes.
4160 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
4162         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
4163         * config/avr/avr.c (legitimate_address_p): Return value changed
4164         from letter to register classes. For better debugging.
4166 2001-07-13  Kazu Hirata  <kazu@hxi.com>
4168         * jump.c (reversed_comparison_code_parts): Fix comment typos.
4170 2001-07-13  H.J. Lu  (hjl@gnu.org)
4172         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
4174 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
4176         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
4177         correctly for shared configurations.
4178         * config/t-libgcc-pic:  New.
4179         * config/{i386,m68k,sparc}/t-openbsd:  New.
4180         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
4181         Support -shared.  Support debugging libraries with -g.
4182         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
4183         frame information does not emit pointer diffs.
4184         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
4185         emit pointer diffs.
4187 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
4189         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
4191 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
4193         * combine.c (try_combine): Ensure const_int pow2 is positive.
4195 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
4197         * config.gcc: Add configuration for s/390.
4198         * config/s390/s390.c: New. Subroutines for code generation.
4199         * config/s390/s390.h: New. Definitions for s/390.
4200         * config/s390/s390-protos.h: New. Prototypes.
4201         * config/s390/linux.h: New. Definitions for linux for s/390.
4202         * config/s390/linux64.h: New. Definitions for linux for zSeries.
4203         * config/s390/t-linux: New. Makefile fragment.
4204         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
4205         * config/s390/fixdfdi.h: New. Fix L_fix*di.
4207 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
4209         * emit-rtl.c (try_split): Update mark_jump_label call.
4210         * flow.c (find_sub_basic_blocks): Likewise.
4211         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
4212         jump_back_p): Kill.
4213         (mark_all_labels): Kill second parameter.
4214         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
4215         (rebuild_jump_labels, jump_optimize_minimal): Update call
4216         of jump_optimize_1.
4217         (jump_optimize_1): Kill crossjumping code.
4218         (mark_jump_label): Kill cross_jump parameter.
4219         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
4220         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
4221         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
4222          splitting.
4223         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
4224         DFI_bpro.
4225         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
4226         reorganize passes to do reg-stack first, bb-reorder second.
4227         * invoke.texi (-d letters doc): Remove the jump2 pass.
4229 2001-07-12  Steve Ellcey <sje@cup.hp.com>
4231         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
4233 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
4235         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
4236         basic blocks.
4237         (verify_flow_info): Make diagnostics prettier.
4239 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
4241         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
4243         * flow.c (outgoing_edges_match): Return early if condition reversal
4244         failed.
4246 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
4248         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
4249         (mips_move_2words): When splitting a move into two instructions,
4250         prefix the second address operand with '%D'.
4252 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4254         * Makefile.in (final.o): Depend on debug.h.
4255         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
4256         (dbx_debug_hooks): Add new hooks.
4257         (xcoff_debug_hooks): New.
4258         * debug.c (debug_nothing_file_int_int): New.
4259         (do_nothing_debug_hooks): Update.
4260         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
4261         (debug_nothing_file_int_int): New.
4262         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
4263         static, update prototype.
4264         (dwarf2_debug_hooks): Update.
4265         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
4266         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
4267         static, update prototype.
4268         (dwarf_debug_hooks): Update.
4269         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
4270         * final.c: Include debug.h.
4271         (final_scan_insn): Use debug hooks when beginning and ending blocks.
4272         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
4273         static, update prototype.
4274         (sdb_debug_hooks): Update.
4275         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
4276         * toplev.c: Distinguish between xcoff and dbx.
4278         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
4279         Call all debug hooks, not just dwarf ones.
4281 2001-07-11  Timothy Wall  <twall@redhat.com>
4283         * config.gcc: Add configuration for AIX5/IA64.
4284         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
4285         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
4286         support prefix/suffix code.
4287         * config/ia64/t-aix: New.  Makefile fragment.
4288         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
4290 2001-07-11  Kazu Hirata  <kazu@hxi.com>
4292         * recog.c (validate_change): Fix a comment typo.
4294 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4296         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
4297         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
4298         hooks directly.
4299         * dbxout.c (dbx_debug_hooks): Add new hooks.
4300         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
4301         make static.
4302         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
4303         make static.
4304         * dbxout.h (dbxout_start_new_source_file,
4305         dbxout_resume_previous_source_file): Delete.
4306         * debug.c (do_nothing_debug_hooks): Add new hooks.
4307         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
4308         (debug_nothing_int_charstar, debug_nothing_int): New.
4309         * debug.h (gcc_debug_hooks): New hooks define, undef,
4310         start_source_file and end_source_file.
4311         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
4312         (debug_nothing_int_charstar, debug_nothing_int): New.
4313         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
4314         the conditionally compiled section.
4315         (dwarf2out_start_source_file, dwarf2out_end_source_file,
4316         dwarf2out_define, dwarf2out_undef): Make static.
4317         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
4318         dwarf2out_define, dwarf2out_undef): Remove.
4319         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
4320         (dwarfout_start_source_file, dwarfout_end_source_file,
4321         dwarfout_define, dwarfout_undef): Make static.
4322         (dwarfout_start_source_file_check,
4323         dwarfout_end_source_file_check): New.
4324         (dwarfout_define, dwarfout_finish): Update.
4325         * dwarfout.h (dwarfout_start_new_source_file,
4326         dwarfout_resume_previous_source_file, dwarfout_define,
4327         dwarfout_undef): Remove.
4328         * sdbout.c (sdb_debug_hooks): Add new hooks.
4329         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
4330         make static.
4331         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
4332         make static, take an arg.
4333         * sdbout.h (sdbout_start_new_source_file,
4334         sdbout_resume_previous_source_file): Delete.
4335         * toplev.c (debug_start_source_file, debug_end_source_file,
4336         debug_define, debug_undef): Delete.
4337         * toplev.h (debug_start_source_file, debug_end_source_file,
4338         debug_define, debug_undef): Delete.
4340         * java/jcf-parse.c: Include debug.h.
4341         (parse_class_file): Update to use debug hooks directly.
4342         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
4344 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4346         * alias.c (set_mem_alias_set): New function.
4347         * rtl.h (set_mem_alias_set): Declare it.
4348         * builtins.c (expand_builtin_return_addr): Call it instead of
4349         using MEM_ALIAS_SET accessor.
4350         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
4351         (get_memory_rtx, expand_builtin_va_arg): Likewise.
4352         (expand_builtin_va_copy):Likewise.
4353         * caller-save.c (setup_save_areas): Likewise.
4354         * calls.c (compute_argument_addresses): Likewise.
4355         * explow.c (set_mem_attributes): Likewise.
4356         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
4357         (expand_assignment, store_constructor_field, store_field): Likewise.
4358         (expand_expr_unaligned): Likewise.
4359         * function.c (assign_stack_temp_for_type): Likewise.
4360         (put_reg_into_stack, gen_mem_addressof): Likewise.
4361         * ifcvt.c (noce_try_cmove_arith): Likewise.
4362         * reload1.c (reload, alter_reg): Likewise.
4363         * config/alpha/alpha.c (get_aligned_mem): Likewise.
4364         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
4365         (alpha_expand_unaligned_store): Likewise
4366         (alpha_expand_unaligned_load_words): Likewise.
4367         (alpha_expand_unaligned_store_words): Likewise.
4368         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
4369         (alpha_expand_epilogue): Likewise.
4370         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4371         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
4372         * config/i386/i386.c (legitimize_pic_address): Likewise.
4373         * config/i960/i960.c (setup_incoming_varargs): Likewise.
4374         * config/ia64/ia64.c (spill_restore_mem): Likewise.
4375         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4376         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
4377         * config/mips/mips.c (mips_va_arg): Likewise.
4378         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4379         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4380         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4381         (setup_incoming_varargs, rs6000_va_arg): Likewise.
4382         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
4383         (rs6000_emit_epilogue): Likewise.
4384         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
4385         * config/sparc/sparc.c (sparc_va_arg): Likewise.
4386         * config/v850/v850.c (v850_va_arg): Likewise.
4388 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
4390         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
4391         when fallthru edge is present.
4392         (mege_blocks): Handle case where creation of jump insn
4393         is required.
4395         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
4396         CLEANUP_POST_REGSTACK): New constants.
4397         * except.c (finish_eh_generation): Update call of cleanup_cfg,
4398         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
4399         * output.h (cleanup_cfg): Update prototype.
4400         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
4401         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
4402         cleanup_cfg call; kill missleading comment.
4403         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
4404         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
4405         parameter; control optimizations performed using it.
4406         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4407         try_crossjump_bb): New functions.
4409 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4411         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
4412         extern.
4413         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
4414         pa_output_function_prologue.
4415         * pa-protos.h (pa_output_function_prologue): New prototype.
4417 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4419         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
4420         and low to get correct sign extension in low+high test.
4422 2001-07-11  Janis Johnson <janis@us.ibm.com>
4424         * gcov.c (arcdata): Use gcov_type to fix branch percentage
4425         for large hit count.
4427         * profile.c (branch_prob): Fix .bbg info for computed gotos
4428         and C++ EH code.
4430 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
4432         * stmt.c (parse_output_constraint): New function, split out
4433         from ...
4434         (expand_asm_operands): ... here.  Use parse_output_constraint.
4435         * tree.h (parse_output_constraint): Declare it.
4437 2001-07-11  Richard Henderson  <rth@redhat.com>
4439         * bitmap.c: Comment some functions; fiddle whitespace.
4440         (bitmap_free): Don't export.
4441         (bitmap_element_allocate): Use memset.
4442         * bitmap.h (bitmap_free): Don't declare.
4444 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
4446         * gcse.c, lcm.c, sched-deps.c:
4447         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
4449         * flow.c (flow_loops_find): Free dom if we found no loops, since
4450         we aren't going to save it.
4452         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
4453         done.
4455 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
4457         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
4459 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4461         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
4462         #ifndef DWARF2_DEBUGGING_INFO.
4464 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
4466         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
4468 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
4470         * config/mips/mips.c (gen_int_relational): Tell the caller not to
4471         reverse a branch if a NE comparison is implemented with GTU.
4473 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
4474             H.J. Lu  <hjl@gnu.org>
4476         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
4477         constant addresses.
4478         (call_internal2): Likewise.
4479         (call_value_internal1): Likewise.
4480         (call_value_internal2): Likewise.
4481         (call_value_multiple_internal1): Likewise.
4482         (call_value_multiple_internal2): Likewise.
4484 2001-07-10  Kazu Hirata  <kazu@hxi.com>
4486         * calls.c (emit_library_call_value_1): Fix a comment typo.
4487         * dwarf2out.c (mem_loc_descriptor): Likewise.
4488         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
4490 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
4492         * simplify-rtx.c (simplify_subreg): Fix typo in comment
4494 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4496         * recog.c (offsettable_address_p): Handle LO_SUM case.
4497         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
4498         instead of plus_constant.
4500 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4502         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
4503         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
4505 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4507         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
4508         adjust_address_nv instead of plus_constant.
4510 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4512         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
4513         dwarf2out.o): Depend on debug.h, wrap long lines.
4514         * dbxout.c: Include debug.h.
4515         (dbx_debug_hooks): New.
4516         (dbxout_init): Make static, take just 2 args.
4517         (dbxout_finish): Make static.
4518         * dbxout.h (dbxout_init, dbxout_finish): Delete.
4519         * debug.c: New file.
4520         * debug.h: New file.
4521         * dwarf2out.c: Include debug.h.
4522         (dwarf2_debug_hooks): New.
4523         (dwarf2out_init): Make static.
4524         (dwarf2out_finish): Make static, take 2 args.
4525         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
4526         * dwarfout.c: Include debug.h.
4527         (dwarf_debug_hooks): New.
4528         (dwarfout_init): Make static.
4529         (dwarfout_finish): Make static, take 2 args.
4530         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
4531         * sdbout.c: Include debug.h.
4532         (sdb_debug_hooks): New.
4533         (sdbout_init): Make static, take 2 args.
4534         * sdbout.h (sdbout_init): Delete.
4535         * toplev.c: Include debug.h.
4536         (debug_hooks): New.
4537         (compile_file): Set deubg_hooks based on command line options.
4538         Use the hooks unconditionally rather than conditional compilation.
4540 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
4542         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
4543         first_insn_after_basic_block_note instead.
4545         * df.c (df_bb_refs_unlink): #if 0 out for now.
4547 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
4549         * ssa.h: Add prototype for ssa_const_prop
4550         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
4551         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
4552         (ssa_fast_dce): Remove unused variable
4554 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4556         * diagnostic.c (finish_diagnostic): Rename to
4557         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
4558         calls thourghout.
4560 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
4562         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
4563         .loc support.
4565         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
4566         (dump_file): Only pad the demangled name with spaces if the
4567         mangled name was padded with spaces.
4569 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
4571         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
4572         edge detection.
4574 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4576         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
4577         extraction if no direct load if either EXPAND_CONST_ADDRESS or
4578         EXPAND_INITIALIZER.
4580         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
4581         whether can put offset inside LO_SUM to check mode alignment, not size.
4583 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4585         * doc/tm.texi (Misc): Fix thinko.
4587 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
4589         * regmove.c (replace_in_call_usage): Fix warnings.
4590         * sched-deps.c (add_dependence): Fix warnings.
4591         * simplify-rtx.c (simplify_subreg): Likewise.
4592         Return NULL_RTX instead of NULL.
4594         * reg-stack.c (emit_swap_insn): Eliminate warnings.
4595         (subst_asm_stack_regs): Likewise.
4597         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
4598         warnings.
4600         * dwarf2out.c (output_call_frame_info): Declare i as int.
4601         (build_abbrev_table): Declare n_alloc as int.
4602         (dwarf2out_finish): Initialize die.
4603         * except.c: Declare sjlj_funcdef_number as unsigned.
4604         (connect_post_landing_pads): Declare j as unsigned.
4605         (convert_to_eh_region_ranges): Initialize call_site.
4606         (output_function_exception_table): Initialize tt_format_size.
4607         * expr.c (move_by_pieces_1): Initialize to1.
4608         (store_constructor): Initialize minelt and maxelt.
4609         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
4610         * function.c (instantiate_decls): Avoid signed/unsigned warning.
4612         * c-decl.c (combine_parm_decls): Unused, remove.
4613         * c-tree.h: Remove prototype for combine_parm_decls.
4615         * reload.c (push_reload): Fix warning.
4616         (regno_clobbered_p): Likewise.
4617         * reload1.c (replace_pseudos_in_call_usage): Likewise.
4618         (reload_combine): Likewise.
4620         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
4621         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
4622         warnings.
4623         * bitmap.c (bitmap_operation): Change user.
4624         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
4626 2001-07-10  Eric Christopher  <echristo@redhat.com>
4628         * config/mips/mips.c (override_options): Fix typo.
4630 2001-07-09  Stan Shebs  <shebs@apple.com>
4632         * target.h (struct gcc_target): New fields init_builtins and
4633         expand_builtin.
4634         * target-def.h (TARGET_INIT_BUILTINS): New macro.
4635         (TARGET_EXPAND_BUILTIN): New macro.
4636         (TARGET_INITIALIZER): Add them.
4637         * builtins.c: Include target.h.
4638         (expand_builtin): Use targetm.expand_builtin.
4639         (default_init_builtins): New function.
4640         (default_expand_builtin): New function.
4641         * expr.h (default_init_builtins): Declare.
4642         (default_expand_builtin): Declare.
4643         * c-common.c (c_common_nodes_and_builtins): Use
4644         targetm.init_builtins.
4645         * defaults.h (MD_INIT_BUILTINS): Remove.
4646         * Makefile.in (builtins.o): Depend on target.h.
4648         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
4649         (TARGET_EXPAND_BUILTIN): Define.
4650         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
4651         (MD_EXPAND_BUILTIN): Remove.
4653         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
4654         (TARGET_EXPAND_BUILTIN): Define.
4655         (c4x_init_builtins): Make endlink arg a local.
4656         (c4x_print_operand): Fix typos in adjust_address usages.
4657         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
4658         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
4659         (MD_EXPAND_BUILTIN): Remove.
4661         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
4662         (TARGET_EXPAND_BUILTIN): Define.
4663         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
4664         (ix86_init_builtins): Call new function only if TARGET_MMX.
4665         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
4666         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
4667         (MD_EXPAND_BUILTIN): Remove.
4669         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
4670         (TARGET_EXPAND_BUILTIN): Define.
4671         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
4672         (MD_EXPAND_BUILTIN): Remove.
4674         * doc/tm.texi: Document these changes.
4676 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
4678         * basic-block.h (tree_node): Forward declare if needed.
4679         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
4680         (BLOCK_HEAD_TREE): Define.
4681         (BLOCK_END_TREE): Define.
4682         (struct loops): Rename field 'tree' to 'tree_root'.
4683         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
4684         'end_tree'.
4685         (flow_loops_tree_build): Rename reference to field 'tree' to
4686         'tree_root'.
4687         (flow_loops_level_compute): Ditto.
4688         * predict.c (estimate_bb_frequencies): Ditto.
4689         * tree.h (struct tree_common): Add field 'aux'.
4691 2001-07-09  Stan Shebs  <shebs@apple.com>
4693         * config/darwin.c (darwin_encode_section_info): Don't mark any
4694         DECL_EXTERNAL node as defined.
4696 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4698         * pa.c (pa_init_machine_status, pa_mark_machine_status,
4699         pa_free_machine_status, hppa_init_pic_save): Delete.
4700         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
4701         (hppa_profile_hook): Use hppa_pic_save_rtx.
4702         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
4703         hppa_init_pic_save): Delete.
4704         (hppa_pic_save_rtx): Declare.
4705         * pa.md (call, call_value, sibcall, sibcall_value,
4706         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
4708 2001-07-09  Kazu Hirata  <kazu@hxi.com>
4710         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
4711         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
4713 2001-07-09  Andreas Jaeger  <aj@suse.de>
4715         * output.h: Add declaration of final_forward_branch_p.
4717         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
4719         * varray.c: Include errors.h for internal_error and trim_filename
4720         declarations.
4722         * Makefile.in (varray.o): Add errors.h.
4724 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
4726         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
4727         * optabs.c (have_add2_insn): Check whether the add insn chosen
4728         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
4729         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
4731 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
4733         * Makefile.in (OBJS): Add ssa-ccp.o
4734         (ssa-ccp.o): Add dependencies.
4735         * toplev.c (DFI_ssa_ccp): New dump file enum.
4736         (dump_file): Add entry for dumping after SSA CCP.
4737         (flag_ssa_ccp): New flag variable.
4738         (f_options): Add -fssa-ccp.
4739         (rest_of_compilation): Run SSA CCP if requested.
4740         * timevar.def (TV_SSA_CCP): New timevar.
4741         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
4742         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
4743         Fix minor typo in SSA DCE documentation.
4744         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
4745         Add documentation for new dump option.  Renumber dump files
4746         appropriately.
4748 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
4750         * emit-rtl.c (gen_highpart_mode): New.
4751         * rtl.h (gen_highpart_mode): Declare.
4752         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
4753         operand can be VOIDmode constant.
4755 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
4757         * flow.c (redirect_edge_and_branch_force): New.
4758         (can_fallthru): Ensure that basic blocks are succeeding.
4759         (try_optimize_cfg): Do not delete basic block if it is the last one.
4761         * flow.c (try_redirect_by_replacing_jump): Do not remove
4762         jumps with side effects, unlink chain on fallthru edge;
4763         set block for new jump instruction; avoid basic block to
4764         over by line number note.
4766         * flow.c (try_simplify_condjump): Verify that the condjump
4767         is not always falling trought.
4769         Re-install patch:
4770         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
4772         * flow.c (forwarder_block_p): Fix for fallthru blocks.
4773         (try_redirect_by_replacing_jump): Update properly the count
4774         and frequency information.
4776 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4778         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
4779         address that is a LO_SUM specially.
4780         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
4782         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
4784         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
4785         (operand_subword): Use them.
4786         (change_address_1): Renamed from change_address; new arg VALIDATE.
4787         * expr.h: Reflect above changes; change_address now macro.
4788         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
4789         making MEM.
4790         * cselib.c (add_mem_for_addr): Likewise.
4791         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
4792         * regmove.c (try_apply_stack_adjustment): Likewise.
4793         * reload.c (push_reload, make_memloc): Likewise.
4794         * reload1.c (eliminate_regs): Likewise.
4795         * simplify-rtx.c (simplify_replace_rtx): Likewise.
4796         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
4797         adjust_addess.
4798         * combine.c (make_extraction, simplify_shift_const): Likewise.
4799         (gen_lowpart_for_combine): Likewise.
4800         * cse.c (gen_lowpart_if_possible): Likewise.
4801         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
4802         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
4803         * optabs.c (gen_move_insn): Likewise.
4804         * reload1.c (alter_reg): Likewise.
4805         * simplify-rtx.c (simplify_subreg): Likewise.
4806         * stmt.c (expand_anon_union_decl): Likewise.
4807         * recog.c (validate_replace_rtx_1): Likewise.
4808         (expr.h): Include.
4809         * Makefile.in (recog.o): Add $(EXPR_H).
4810         * explow.c (stabilize): Call replace_equiv_address.
4811         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
4812         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
4814 2001-07-03  Andrew Haley  <aph@redhat.com>
4816         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
4817         the mode of the memory location.
4819 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
4821         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
4823 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4825         * final.c (output_addr_const): Use target opening and
4826         closing parentheses.
4827         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
4828         defaults, add to TARGET_ASM_OUT.
4829         * target.h (struct gcc_target): Add open_paren and close_paren.
4830         * doc/md.texi: Update.
4831         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
4832         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
4833         TARGET_ASM_CLOSE_PAREN.
4834         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4835         Override.
4836         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4837         Override.
4838         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4839         * config/a29k/a29k.h: Similarly.
4840         * config/alpha/alpha.h: Similarly.
4841         * config/arc/arc.h: Similarly.
4842         * config/arm/aof.h: Similarly.
4843         * config/arm/aout.h: Similarly.
4844         * config/avr/avr.h: Similarly.
4845         * config/c4x/c4x.h: Similarly.
4846         * config/clipper/clipper.h: Similarly.
4847         * config/convex/convex.h: Similarly.
4848         * config/d30v/d30v.h: Similarly.
4849         * config/dsp16xx/dsp16xx.h: Similarly.
4850         * config/elxsi/elxsi.h: Similarly.
4851         * config/fr30/fr30.h: Similarly.
4852         * config/h8300/h8300.h: Similarly.
4853         * config/i370/i370.h: Similarly.
4854         * config/i386/i386.h: Similarly.
4855         * config/i860/i860.h: Similarly.
4856         * config/i960/i960.h: Similarly.
4857         * config/ia64/ia64.h: Similarly.
4858         * config/m32r/m32r.h: Similarly.
4859         * config/m68hc11/m68hc11.h: Similarly.
4860         * config/m68k/m68k.h: Similarly.
4861         * config/m88k/m88k.h: Similarly.
4862         * config/mcore/mcore.h: Similarly.
4863         * config/mips/mips.h: Similarly.
4864         * config/mn10200/mn10200.h: Similarly.
4865         * config/mn10300/mn10300.h: Similarly.
4866         * config/ns32k/ns32k.h: Similarly.
4867         * config/pa/pa.h: Similarly.
4868         * config/pdp11/pdp11.h: Similarly.
4869         * config/pj/pj.h: Similarly.
4870         * config/romp/romp.h: Similarly.
4871         * config/rs6000/rs6000.h: Similarly.
4872         * config/sh/sh.h: Similarly.
4873         * config/sparc/sparc.h: Similarly.
4874         * config/v850/v850.h: Similarly.
4875         * config/vax/vax.h: Similarly.
4876         * config/we32k/we32k.h: Similarly.
4878 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4880         * doc/c-tree.texi: Document representation of attributes.
4882 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4884         * doc/tm.texi: Update some places for the rename of target to
4885         targetm.  Fix typo.
4887 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4889         * target.h (struct gcc_target): Add insert_attributes.
4890         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
4891         (TARGET_INITIALIZER): Update.
4892         * tree.c, tree.h (default_insert_attributes): New function.
4893         Update comments on other default functions to refer to targetm,
4894         not target.
4895         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
4896         TARGET_INSERT_ATTRIBUTES.
4897         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
4898         * c-common.c (decl_attributes): Use targetm.insert_attributes.
4899         Don't use PRAGMA_INSERT_ATTRIBUTES.
4900         * Makefile.in (c-common.o): Depend on $(TARGET_H).
4901         * c-decl.c (start_decl, start_function): Don't call
4902         SET_DEFAULT_DECL_ATTRIBUTES.
4903         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4904         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
4905         declare.
4906         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
4907         (c4x_check_attribute): Avoid modifying attribute list itself.
4908         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
4909         Make static.
4910         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
4911         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
4912         declare.
4913         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
4914         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
4915         Make static.
4916         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4917         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
4918         declare.
4919         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
4920         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
4921         Adjust parameters.  Make static.
4923 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4925         * c-common.c (decl_attributes): Only take a single attributes
4926         parameter.
4927         * c-common.h (decl_attributes): Update prototype.
4928         * c-decl.c (start_decl, start_function): Only take a single
4929         attributes parameter.  Update calls to decl_attributes.
4930         (finish_struct, finish_enum): Update calls to decl_attributes.
4931         (push_parm_decl): Expect unified list of attributes.  Update call
4932         to decl_attributes.
4933         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
4934         notype_nested_function, component_declarator,
4935         component_notype_declarator, label): Update calls to
4936         decl_attributes.
4937         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
4938         lists that are passed to push_parm_decl.
4939         * c-tree.h (start_function, start_decl): Update prototypes.
4940         * config/sh/sh-protos.h, config/sh/sh.c
4941         (sh_pragma_insert_attributes): Only take a single attributes
4942         parameter.
4943         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
4944         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
4945         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
4946         build_module_descriptor, generate_static_references,
4947         generate_strings, build_selector_translation_table,
4948         generate_descriptor_table, generate_protocols,
4949         generate_ivars_list, generate_dispatch_table,
4950         generate_protocol_list, generate_category,
4951         generate_shared_structures, really_start_method, add_objc_decls,
4952         generate_classref_translation_entry): Update calls to start_decl
4953         and start_function.
4954         (build_tmp_function_decl, start_method_def): Unify attribute lists
4955         that are passed to push_parm_decl.
4957 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4959         * final.c (no_asm_to_stream): New.
4960         (final_scan_insn): Use target structures for prologue ends
4961         and epilogue starts.
4962         * output.h (no_asm_to_stream): New.
4963         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
4964         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
4965         (TARGET_ASM_OUT): Update.
4966         * target.h (struct gcc_target): New members function_end_prologue
4967         and function_begin_epilogue.
4968         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
4969         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
4970         * config/alpha/alpha.c (output_end_prologue): Rename to
4971         alpha_output_function_end_prologue.  Use in target struct
4972         and make static.
4973         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
4974         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
4975         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
4976         ia64_output_function_end_prologue.  Use in target struct
4977         and make static.
4978         (ia64_function_prologue, ia64_funciton_epilogue): Rename
4979         mistyped prototypes.
4980         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
4981         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
4982         Delete.
4983         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
4984         an use in target struct, make static.
4985         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
4986         Delete.
4988 2001-07-08  Richard Henderson  <rth@redhat.com>
4990         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
4992 2001-07-08  Richard Henderson  <rth@redhat.com>
4994         * config/i386/i386.md: Remove constraints strings from define_split
4995         and define_peephole2 patterns.
4996         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
4997         (eh_return): Use them.
4999 2001-07-08  Richard Henderson  <rth@redhat.com>
5001         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
5002         Document MD_FALLBACK_FRAME_STATE_FOR.
5004 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5006         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
5007         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
5008         elimination.
5009         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
5011 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
5013         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
5014         of the label inside NAME as opposed to just the end of NAME.
5016 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5018         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
5019         * config/alpha/alpha.c (alpha_init_machine_status,
5020         alpha_mark_machine_status, alpha_free_machine_status): Delete.
5021         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
5022         (vms_valid_decl_attribute_p): Make static, conditionally compile.
5023         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
5025 2001-07-06  Stan Shebs  <shebs@apple.com>
5027         * target.h (targetm): Rename global from "target", so as not to
5028         conflict with local variables.
5029         * c-decl.c: Ditto.
5030         * c-typeck.c: Ditto.
5031         * final.c: Ditto.
5032         * tree.c: Ditto.
5033         * cp/decl.c: Ditto.
5034         * cp/decl2.c: Ditto.
5035         * cp/typeck.c: Ditto.
5036         * 1750a/1750a.c: Ditto.
5037         * a29k/a29k.c: Ditto.
5038         * arc/arc.c: Ditto.
5039         * arm/arm.c: Ditto.
5040         * avr/avr.c: Ditto.
5041         * clipper/clipper.c: Ditto.
5042         * convex/convex.c: Ditto.
5043         * d30v/d30v.c: Ditto.
5044         * dsp16xx/dsp16xx.c: Ditto.
5045         * elxsi/elxsi.c: Ditto.
5046         * fr30/fr30.c: Ditto.
5047         * h8300/h8300.c: Ditto.
5048         * i370/i370.c: Ditto.
5049         * i386/i386.c: Ditto.
5050         * i860/i860.c: Ditto.
5051         * i960/i960.c: Ditto.
5052         * ia64/ia64.c: Ditto.
5053         * m32r/m32r.c: Ditto.
5054         * m68hc11/m68hc11.c: Ditto.
5055         * m68k/m68k.c: Ditto.
5056         * m88k/m88k.c: Ditto.
5057         * mips/mips.c: Ditto.
5058         * ns32k/ns32k.c: Ditto.
5059         * pa/pa.c: Ditto.
5060         * pdp11/pdp11.c: Ditto.
5061         * romp/romp.c: Ditto.
5062         * rs6000/rs6000.c: Ditto.
5063         * sh/sh.c: Ditto.
5064         * sparc/sparc.c: Ditto.
5065         * vax/vax.c: Ditto.
5066         * we32k/we32k.c: Ditto.
5067         * doc/tm.texi: Update the manual to match.
5069 2001-07-06  Richard Henderson  <rth@redhat.com>
5071         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
5072         DWARF2_UNWIND_INFO not just whether it is defined.
5074 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
5076         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
5077         call to simplify_binary_operation returns a new pattern.
5079 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5081         * glimits.h (__SHRT_MAX__): New.
5082         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
5083         (SHRT_MAX): Define in terms of __SHRT_MAX__.
5085 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
5087         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
5088         avoid warnings.
5090 2001-07-06  Richard Henderson  <rth@redhat.com>
5092         * bitmap.c (bitmap_release_memory): Move adjacent to the
5093         allocation functions.
5094         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
5095         the implementation.  Binary search for the set bit.
5096         (bitmap_union_of_diff): Allocate the temporary on the stack
5097         instead of using xmalloc.
5099 2001-07-06  Richard Henderson  <rth@redhat.com>
5101         * genrecog.c (validate_pattern): Warn for constraints in
5102         define_{expand,split,peephole2}.  Remove strict_low_part
5103         before looking up match_dup.
5105 2001-07-06  DJ Delorie  <dj@redhat.com>
5107         * doc/gcc.texi (Makefile): Rename to be a more general purpose
5108         chapter about various build hints and history.  Add section
5109         talking about the various types of native and cross builds.
5111 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5113         * Makefile.in (final.o): Depend on target.h.
5114         * final.c: Include target.h.
5115         (default_function_pro_epilogue): New.
5116         (final_start_function): Use target structure for function prologues.
5117         (final_end_function): Use target structure for function epilogues.
5118         * fold-const.c (real_hex_to_f): Constify s and p.
5119         * output.h (default_function_pro_epilogue): New.
5120         * real.h (real_hex_to_f): Update prototype.
5121         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
5122         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
5123         (TARGET_INITIALIZER): Update.
5124         * target.h (gcc_target): Add struct asm_out.
5125         * doc/tm.texi: Update.
5127 config:
5128         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
5129         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
5130         in cpu/cpu.c, or rename old functions consistently.  Take
5131         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
5132         redundant macros and prototypes.  Make new functions static.
5134         * 1750a/1750a.c: Similarly.
5135         * 1750a/1750a.h: Similarly.
5136         * a29k/a29k-protos.h: Similarly.
5137         * a29k/a29k.c: Similarly.
5138         * a29k/a29k.h: Similarly.
5139         * arc/arc-protos.h: Similarly.
5140         * arc/arc.c: Similarly.
5141         * arc/arc.h: Similarly.
5142         * arm/arm-protos.h: Similarly.
5143         * arm/arm.c: Similarly.
5144         * arm/arm.h: Similarly.
5145         * avr/avr-protos.h: Similarly.
5146         * avr/avr.c: Similarly.
5147         * avr/avr.h: Similarly.
5148         * clipper/clipper-protos.h: Similarly.
5149         * clipper/clipper.c: Similarly.
5150         * clipper/clipper.h: Similarly.
5151         * convex/convex.c: Similarly.
5152         * convex/convex.h: Similarly.
5153         * d30v/d30v-protos.h: Similarly.
5154         * d30v/d30v.c: Similarly.
5155         * d30v/d30v.h: Similarly.
5156         * d30v/d30v.md: Similarly.
5157         * dsp16xx/dsp16xx-protos.h: Similarly.
5158         * dsp16xx/dsp16xx.c: Similarly.
5159         * dsp16xx/dsp16xx.h: Similarly.
5160         * elxsi/elxsi.c: Similarly.
5161         * elxsi/elxsi.h: Similarly.
5162         * fr30/fr30.c: Similarly.
5163         * fr30/fr30.md: Similarly.
5164         * h8300/h8300-protos.h: Similarly.
5165         * h8300/h8300.c: Similarly.
5166         * h8300/h8300.h: Similarly.
5167         * i370/i370-protos.h: Similarly.
5168         * i370/i370.c: Similarly.
5169         * i370/i370.h: Similarly.
5170         * i386/i386.c: Similarly.
5171         * i386/osf1elf.h: Similarly.
5172         * i386/osfrose.h: Similarly.
5173         * i860/i860-protos.h: Similarly.
5174         * i860/i860.c: Similarly.
5175         * i860/i860.h: Similarly.
5176         * i960/i960-protos.h: Similarly.
5177         * i960/i960.c: Similarly.
5178         * i960/i960.h: Similarly.
5179         * ia64/ia64-protos.h: Similarly.
5180         * ia64/ia64.c: Similarly.
5181         * ia64/ia64.h: Similarly.
5182         * m32r/m32r-protos.h: Similarly.
5183         * m32r/m32r.c: Similarly.
5184         * m32r/m32r.h: Similarly.
5185         * m68hc11/m68hc11-protos.h: Similarly.
5186         * m68hc11/m68hc11.c: Similarly.
5187         * m68hc11/m68hc11.h: Similarly.
5188         * m68k/crds.h: Similarly.
5189         * m68k/dpx2.h: Similarly.
5190         * m68k/m68k-protos.h: Similarly.
5191         * m68k/m68k.c: Similarly.
5192         * m68k/m68k.h: Similarly.
5193         * m68k/news.h: Similarly.
5194         * m88k/m88k-protos.h: Similarly.
5195         * m88k/m88k.c: Similarly.
5196         * m88k/m88k.h: Similarly.
5197         * mips/mips-protos.h: Similarly.
5198         * mips/mips.c: Similarly.
5199         * mips/mips.h: Similarly.
5200         * ns32k/merlin.h: Similarly.
5201         * ns32k/ns32k.c: Similarly.
5202         * ns32k/ns32k.h: Similarly.
5203         * ns32k/tek6000.h: Similarly.
5204         * pa/pa-protos.h: Similarly.
5205         * pa/pa.c: Similarly.
5206         * pa/pa.h: Similarly.
5207         * pdp11/2bsd.h: Similarly.
5208         * pdp11/pdp11-protos.h: Similarly.
5209         * pdp11/pdp11.c: Similarly.
5210         * pdp11/pdp11.h: Similarly.
5211         * romp/romp-protos.h: Similarly.
5212         * romp/romp.c: Similarly.
5213         * romp/romp.h: Similarly.
5214         * rs6000/rs6000-protos.h: Similarly.
5215         * rs6000/rs6000.c: Similarly.
5216         * rs6000/rs6000.h: Similarly.
5217         * rs6000/sysv4.h: Similarly.
5218         * sh/sh-protos.h: Similarly.
5219         * sh/sh.c: Similarly.
5220         * sh/sh.h: Similarly.
5221         * sparc/sparc-protos.h: Similarly.
5222         * sparc/sparc.c: Similarly.
5223         * sparc/sparc.h: Similarly.
5224         * vax/vax.c: Similarly.
5225         * vax/vax.h: Similarly.
5226         * vax/vms.h: Similarly.
5227         * we32k/we32k.c: Similarly.
5228         * we32k/we32k.h: Similarly.
5230 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
5232         * basic-block.h (first_insn_after_basic_block_note): Declare.
5233         * flow.c (first_insn_after_basic_block_note): Define.  Moved
5234         from...
5235         * ssa.c (first_insn_after_basic_block_note): Remove.
5236         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
5237         necessary.
5238         (ssa_eliminate_dead_code): Properly update the CFG and PHI
5239         nodes when we find a dead conditional branch.  Insert BARRIERs
5240         after any blocks with no successors, but which do not have
5241         any BARRIERs.
5243 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
5245         * varray.c (varray_check_failed): Use internal_error.
5247 2001-07-05  Andrew Haley  <aph@redhat.com>
5249         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
5250         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
5251         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
5253 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
5255         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
5256         reference if the target constant is also a SYMBOL_REF.
5258 2001-07-05  Eric Christopher  <echristo@redhat.com>
5260         * config/mips/mips.h (MASK_MIPS3900): Remove.
5261         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
5262         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
5263         (TARGET_MIPS3900): Change to use mips_arch.
5264         (TARGET_MIPS4000): New.
5265         (TARGET_MIPS4100): New.
5266         (TARGET_MIPS4300): New.
5267         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
5268         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
5269         for -mipsX.
5270         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
5271         (ISA_HAS_BRANCHLIKELY): To here.
5272         (CC1_CPU_SPEC):  New.
5273         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
5274         (mips_arch_string): Declare.
5275         (mips_arch): Declare.
5276         (TARGET_OPTIONS): Add -march and -mtune.
5278         * config/mips/mips.c (mips_arch_string): New.
5279         (mips_arch): New.
5280         (override_options): Handle -march for codegen and -mtune
5281         for scheduling. Use mips_arch. Move tx39 target default here.
5282         (mips_parse_cpu): Move error message to override_options.
5284         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
5286         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
5288         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
5289         (MIPS Options): Ditto.  Change mcpu entry to historical text.
5291 2001-07-05  H.J. Lu  (hjl@gnu.org)
5293         * config/mips/mips.c (mips_parse_cpu): New function to parse
5294         -march=*/-mcpu=*.
5296 2001-07-05  Jim Wilson  <wilson@redhat.com>
5298         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
5299         * config/ia64/t-ia64: Likewise.
5300         (LIB1ASMFUNCS): Update comment.
5302 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
5304         * doc/install.texi (Install GCC: Binaries): Fix typo.
5306 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5308         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
5309         reference using the stack pointer, adjust it since we push Y
5310         temporarily.
5311         ("*ashrsi3"): Likewise.
5312         ("*lshrsi3"): Likewise.
5314 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5316         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
5317         when -fomit-frame-pointer is used.
5319 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
5321         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
5322         (try_redirect_by_replacing_jump): Reverse updating properly the
5323         count and frequency information.  Reverse removing cc0 setter.
5324         (forwarder_block_p): Reverse fixing for fallthru blocks.
5326 2001-07-05  DJ Delorie  <dj@redhat.com>
5328         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
5329         (translate_options): If the above is defined, use it to map
5330         given options to new options.
5331         * doc/tm.texi: Document it.
5333 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
5334             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5336         * doc/invoke.texi (Optimize Options): Document that -fgcse may
5337         cause programs using computed gotos to run more slowly.
5339 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5341         * doc/install.texi (Specific): Markup, spelling and typo fixes.
5342         Fixed sorting.
5343         Consistently require binutils 2.11.2, not prereleases.
5344         (Specific, decstation-*): Canonicalize as mips-dec-*.
5345         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
5346         always necessary.
5347         (Specific, m68k-altos): Removed reference to README.altos, deleted.
5348         (Specific, mips-*): Reword MIPS C compiler requirements.
5349         (Specific, powerpc*-*-*): New, mention --with-cpu once.
5350         (Specific, sunv5): Removed, obsolete.
5352 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5354         * dwarf2out.c (output_loc_list): Use an all ones mask for
5355         .text asm output and don't rely on long long
5356         literals. Reformat some long lines.
5358 2001-07-05  Andreas Jaeger  <aj@suse.de>
5360         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
5361         section.
5363 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
5365         * dwarf2out.c (dwarf2out_define): Update comment.
5366         (dwarf2out_undef): Ditto.
5367         (dwarf2out_start_source_file): Ditto.
5368         (dwarf2out_end_source_file): Ditto.
5369         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
5370         since we never call the start/end debug hook for the primary file.
5372 2001-07-04  Kazu Hirata  <kazu@hxi.com>
5374         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
5375         from shll.
5377 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
5379         * cppinit.c (remove_dup_dirs): Inform if a system include
5380         directory is being reordered.
5381         * doc/invoke.texi (Directory Options): GCC warns if you hide a
5382         system include.
5383         * doc/cpp.texi (Search Paths): Likewise.
5384         * doc/gcc.texi (Interoperation): Remove information about
5385         -I/usr/include.
5387 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
5389         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
5390         (VARRAY_TOP_CHAR_PTR): Likewise.
5392 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5394         * gcc.c (process_command): Don't assign elements of a const char*.
5396 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5398         * emit-rtl.c (change_address): Don't abort if invalid address while
5399         reload is in progress.
5401 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
5403         * c-lex.c (cb_file_change): Pass line number to
5404         debug_start_source_file.
5405         (cb_undefine): Pass correct line number to debug_undef.
5407         * toplev.c (debug_start_source_file): Add line number to
5408         parameters. Pass it along to dwarf2out_start_source_file.
5409         (decode_g_option): Stop resetting debug level back to normal when
5410         we change debug formats, unless the current level is
5411         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
5412         3).
5414         * toplev.h (debug_start_source_file): Add line number to
5415         parameters.
5417         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
5418         parameters.
5420         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
5421         parameters.
5422         Output debug_macinfo data for starting file if requested.
5423         (dwarf2out_end_source_file): Output debug_macinfo data for ending
5424         file if requested.
5425         (dwarf2out_define): Output debug_macinfo data for defining a macro
5426         if requested.
5427         (dwarf2out_undef): Output debug_macinfo data for undefining a
5428         macro if requested.
5429         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
5430         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
5431         (macinfo_section_label): New. DWARF2 macro info section label.
5432         (dwarf2out_init): If we want macro info, output the start label
5433         for the section.
5434         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
5435         attribute to the compilation unit die pointing to the macro info.
5437 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
5439         * dwarf2out.c (new_loc_list): Move to inside #ifdef
5440         DWARF2_DEBUGGING_INFO.
5441         (add_loc_descr_to_loc_list): Ditto.
5442         (output_loc_list): Ditto.
5443         Also, fix thinko in curr not being initialized.
5444         (gen_internal_sym): Ditto.
5446 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5448         * emit-rtl.c (replace_equiv_address): New function.
5449         * expr.h (replace_equiv_address): New declaration.
5450         * explow.c (validize_mem): Call it instead of change_address and
5451         also call if -fforce-addr and address is constant.
5452         * expr.c: Replace more calls to change_address with adjust_address
5453         and/or replace_equiv_address or to validize_mem.
5454         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
5455         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
5456         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
5457         * config/i370/i370.md, config/i860/i860.md: Likewise.
5458         * config/i960/i960.md, config/mips/mips.c: Likewise.
5459         * config/mips/mips.md, config/pa/pa.md: Likewise.
5460         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
5461         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
5463 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5465         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
5467         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
5468         function.
5470 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5472         * doc/include: New directory.
5473         * doc/fdl.texi: Move to doc/include/fdl.texi.
5474         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
5475         * doc/include/funding.texi, doc/include/gpl.texi: New files.
5476         * doc/gcc.texi: Use funding.texi and gpl.texi.
5477         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
5478         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
5479         Update dependencies and use -I $(docdir)/include.
5481 2001-07-04  Anthony Green  <green@redhat.com>
5483         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
5485 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5487         * doc/install.texi (sparc64-*-*): Remove garbage.
5489 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
5491         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
5492         Fix typo in last change to use adjust_address.
5494 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5496         * doc/install.texi (Specific): Update information for *-*-solaris*.
5498 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5500         * explow.c (plus_constant_wide): Reinitialize Y for restart.
5502 2001-07-03  Stan Shebs  <shebs@apple.com>
5504         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
5505         case for flag_no_mach_text_sections.
5506         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
5507         * config/darwin.c (flag_no_mach_text_sections): Remove.
5508         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
5510 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5512         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
5513         and avoid checking for constant as first operand.
5514         * recog.c (find_constant_term_loc): No longer static.
5515         (adj_offettable_operand): Delete.
5516         * rtl.h (adj_offsettable_operand): Delete declaration.
5517         (find_constant_term): Add declaration.
5518         * caller-save.c: Replace calls to adj_offsettable_operand with calls
5519         to adjust_address.
5520         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
5521         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
5522         * config/i386/i386.c, config/i386/i386.md: Likewise.
5523         * config/i860/i860.c, config/i960/i960.c: Likewise.
5524         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
5525         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
5526         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
5527         * config/mips/mips.c, config/mips/mips.md: Likewise.
5528         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
5529         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
5530         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
5531         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
5532         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
5533         * config/ns32k/ns32k.md: Likewise.
5535 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
5537         * rtl.c (copy_rtx): Handle 'T' format letter.
5538         * gensupport.c (collect_insn_data): Likewise.
5539         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
5541 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
5543         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
5544         -B option.  Use 'dir' not 'foo' as example directory name.
5546 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5548         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5549         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
5551 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
5553         * doc/cppinternals.texi: Improve formatting and logical markup.
5555 2001-07-03  Andreas Jaeger  <aj@suse.de>
5557         * Makefile.in (insn-recog.o): Add dependency on reload.h.
5559         * genrecog.c (write_header): Include reload.h for prototypes in
5560         insn-recog.c.
5562 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5564 config:
5565         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
5566         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5567         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
5568         i386_pe_valid_type_attribute_p): Add.
5569         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
5570         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
5572 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5574         * explow.c (plus_constant_wide, case LO_SUM): New case.
5575         (plus_constant_for_output_wide): Delete.
5576         * rtl.h (plus_constant_for_output): Delete.
5577         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
5578         instead of plus_constant_for_output.
5579         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
5580         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
5581         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
5582         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
5583         * config/sparc/sparc.md: Likewise.
5584         Convert some change_address calls to adjust_address.
5586 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
5588         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
5589         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
5590         documentation of -std and -Wwrite-strings.
5592 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
5594         * cse.c (canon_hash): Don't register registers in very small
5595         register classes, as extending their lifetime might cause
5596         reload to fail.
5598 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
5600         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
5602         * flow.c (forwarder_block_p): Fix for fallthru blocks.
5603         (try_redirect_by_replacing_jump): Update properly the count
5604         and frequency information.
5606 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
5608         * toplev.c (dump_file_index): Move SSA dumps just after first
5609         jump dump.
5610         (dump_file): Corresponding changes.
5611         (rest_of_compilation): Move SSA path to just after the first
5612         jump pass.
5613         * doc/gcc.texi (Passes): Update due to movement of SSA path.
5614         * doc/invoke.texi: Update dump file #s as they were completely
5615         out of date with reality.
5617 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
5619         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
5621         * expr.c (emit_move_insn_1): Deal with non-default
5622         STACK_PUSH_CODE.
5624         * expr.c (emit_single_push_insn): Fix warning.
5626 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5628         * expr.c (emit_move_insn_1): Avoid modifying
5629         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
5631 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5633         * emit-rtl.c (adjust_address): New function.
5634         * expr.h (adjust_address): Add declaration.
5635         * builtins.c: Replace some calls to change_address with calls to it
5636         or to validize_mem.
5637         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
5638         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
5639         * config/arm/arm.c, config/convex/convex.c: Likewise.
5640         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
5641         * config/i386/i386.c, config/i386/i386.md: Likewise.
5642         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
5643         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
5644         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
5645         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
5646         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
5648 2001-07-02  Jim Wilson  <wilson@redhat.com>
5650         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
5652 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
5654         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
5655         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
5657 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
5659         * cppinit.c (lang_defaults): New table.
5660         (set_lang): Just read from lang_defaults into the live options
5661         structure.
5663 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
5665         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
5666         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
5667         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
5669 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5671         * doc/install.texi: Various spelling and markup fixes.
5672         (Installing GCC): Component specific installation instructions are
5673         gone.
5674         Fix reference.
5675         Warn about removing old install dir in the presence of shared libs.
5676         (Configuration): Invoke with options target to match configure
5677         --help.
5678         Consistently refer to gas, gld pathnames.
5679         Invert --enable-multilib documentation.
5680         Remove references to old compiler versions.
5682 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5684         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
5686 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5688         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
5689         section.
5690         (Specific, mips*-sgi-irix5): Note IDO download.
5691         Reworded MIPS C hints.
5692         Use GNU as instead of GAS.
5693         Markup fixes.
5694         Removed SGI Freeware reference, IRIX 6 only.
5695         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
5696         Note N64 library requirement/workaround.
5697         Update O32 hints.
5698         Complete list of structure passing bug victims.
5700 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5702         * doc/install.texi: Remove CVS Id.
5704 2001-07-02  Andreas Jaeger  <aj@suse.de>
5706         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
5707         (find_inherently_necessary): Remove unused variable.
5709 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
5711         * c-common.h (TDI_inlined): New ast dump phase.
5712         (dump_flag_name): New function.
5713         * c-dump.c (dump_files): Add inlined phase.
5714         (dump_flag_name): Define.
5715         * doc/invoke.texi (-fdump-ast-inlined): Document.
5717 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5719         * stor-layout.c (layout_decl): Revert change to handling of alignment
5720         in packed types.
5722 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5724         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
5725         for FIELD_DECL.
5727 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
5729         * doc/tm.texi (FUNCTION_ARG): Document that the last call
5730         is special.
5732 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
5734         * tlink.c (recompile_files): Remove COMPILER_PATH and
5735         LIBRARY_PATH from the environment.
5737 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
5739         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
5740         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
5741         enumerators.
5742         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
5744         * c-parse.in (OBJC_STRING): Kill.
5745         (objc_string): Decompose to [objc_string] '@' STRING.
5746         (reswords): Take the leading '@' off all the Objective C keywords.
5747         (objc_rid_sans_at): Kill.
5748         (init_reswords): Don't initialize it.
5749         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
5750         (_yylex): Kill reconsider label.  Look ahead one token after
5751         an '@'; if we get an identifier, check whether it's an
5752         Objective C @-keyword.  If so, return the keyword.  Otherwise,
5753         put back the token and return the '@' as a terminal.
5755         * cpplib.c (lex_macro_node): Remove unnecessary check for
5756         leading '@' on identifier.  Clarify control flow and commentary.
5758 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5760         * cse.c (new_label_ref): Variable deleted.
5761         (insert): Remove set of new_label_ref.
5762         (check_for_label_ref): New function.
5763         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
5765 See ChangeLog.5 for earlier changes.