OSDN Git Service

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