OSDN Git Service

2001-07-30 H.J. Lu <hjl@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-07-30  H.J. Lu <hjl@gnu.org>
2
3         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
4         -D_GNU_SOURCE.
5
6 2001-07-30  H.J. Lu  (hjl@gnu.org)
7
8         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
9         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
11
12 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
13
14         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
15         as -mthumb-interwork when -mcpu=arm7 is specified.
16
17 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
18
19         * predict.def (noreturn, loop branch, loop exit): Mark as first
20         match heuristics.
21
22 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
23
24         * combine.c (try_combine): Avoid barrier after noop jumps.
25
26 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
27
28         * cpphash.h (struct cpp_reader): Remove import_warning.
29         * cpplib.c (skip_rest_of_line): Don't bother turning off
30         macro expansion.
31         (parse_include): Move include handling to...
32         (do_include_common): ... here.  Move import warning from...
33         (do_import): ... here.
34         (do_pragma_poison): Don't do a callback for poison identifiers.
35         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
36         * cppmain.c (setup_callbacks): Similarly.
37
38 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
39
40         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
41         handle multiple sets.
42         * except.c (sjlj_mark_call_sites): .... here.
43         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
44
45 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
46
47         Suggested by Richard Henderson and Richard Kenner:
48         * combine.c (recog_for_combine): Use the fake recog
49         only if instruction does not match.
50         * rtl.h (NOOP_MOVE_INSN_CODE): New.
51         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
52
53         * combine.c (try_combine): Discover noop jump as direct jump.
54
55 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
56
57         * df.c (df_rd_global_compute): Add successors to worklist, not
58         current item.
59         (df_ru_global_compute): Ditto.
60
61 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
62
63         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
64         increment REG_N_SETS.
65
66 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
67
68         * sbitmap.h: New prototype for sbitmap_a_xor_b.
69
70         * sbitmap.c (sbitmap_a_xor_b): New function.
71         ifdef the basic block stuff on IN_GCC.
72
73 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
74
75         * cppexp.c (parse_defined): Always record the macro name.
76         (lex): Don't worry about identifiers, or special-case
77         CPP_NOT here.
78         (_cpp_parse_expr): Figure out at the end of the routine
79         whether we saw a valid !defined() expression.
80         * cppfiles.c (stack_include_file): Update for mi_valid.
81         (_cpp_pop_file_buffer): Similarly.
82         * cpplex.c (_cpp_lex_token): Similarly.
83         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
84         mi_if_not_defined, mi_lexed): Remove.
85         (mi_valid): New.
86         * cpplib.c (do_if): Simplify.
87         (do_endif, push_conditional, _cpp_handle_directive): Update
88         for renaming of mi_state to mi_valid.
89 doc:
90         * cpp.texi: Add index entries for digraphs, and add comment
91         that C++ refers to them as alternative tokens.
92
93 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
94
95         * basic-block.h (CLEANUP_PRE_LOOP): New.
96         * except.c (finish_eh_generation): Update call of cleanup_cfg.
97         * sibcall.c (optimize_sibling_calls): Likewise.
98         * toplev.c (rest_of_compilation): Likewise.
99         * flow.c (try_forward_edges): Take argument MODE;
100         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
101         (try_optimize_cfg): Update call of try_forward_edges.
102
103 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
104                                Jan Hubicka  <jh@suse.cz>
105
106         * (validate_replace_rtx_1): Fix simplification of MINUS.
107
108 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
109
110         PR preprocessor/3669
111         * cppinit.c (init_dependency_output): Turn off dump requests
112         if sending dependencies to stdout.
113
114 2001-07-28  Richard Henderson  <rth@redhat.com>
115
116         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
117         not optimizing.
118
119 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
120
121         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
122
123 2001-07-28  Kazu Hirata  <kazu@hxi.com>
124
125         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
126         is VAR_DECL first to prevent an ICE.
127
128 2001-07-28  Richard Henderson  <rth@redhat.com>
129
130         * varasm.c (immed_real_const_1): Don't elide special cases for
131         nested functions.
132         (clear_const_double_mem): Clear const_tiny_rtx too.
133
134 2001-07-28  Richard Henderson  <rth@redhat.com>
135
136         * dwarf2out.c (dw_val_class_offset): New.
137         (struct dw_ranges_struct, dw_ranges_ref): New.
138         (ranges_table, ranges_table_allocated): New.
139         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
140         (add_AT_offset, add_ranges, output_ranges): New.
141         (print_die, output_die): Handle dw_val_class_offset.
142         (attr_checksum, size_of_die, value_format): Likewise.
143         (gen_lexical_block_die): Handle non-contiguous blocks.
144         (gen_block_die): Likewise.
145         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
146         if needed.  Dump the ranges table.
147         * final.c (final_start_function): Remove unnecessary notes and
148         rebuild the block tree before numbering the blocks.
149         * function.c (reorder_blocks_0): Walk the existing block tree
150         to unmark all blocks.
151         (reorder_blocks_1): Create block fragments when duplicate block
152         notes are seen.
153         (reorder_fix_fragments): New.
154         (reorder_blocks): Call it.
155         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
156
157 2001-07-28  Richard Henderson  <rth@redhat.com>
158
159         * emit-rtl.c (adjust_address): Make a copy of the memory address.
160
161 2001-07-28  Richard Henderson  <rth@redhat.com>
162
163         * flow.c (add_to_mem_set_list): New function.
164         (init_propagate_block_info): Use it.
165         (mark_set_1): Likewise.
166         (insn_dead_p): Canonicalize memory address for dead store
167         comparison.  Allow wider mode stores to kill narrower mode stores.
168         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
169         (invalidate_mems_from_set): Don't handle MEMs.
170
171 2001-07-28  Kazu Hirata  <kazu@hxi.com>
172
173         * config/h8300/h8300.h: Fix formatting.
174
175 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
176
177         * basic-block.h (EDGE_FREQUENCY): New macro.
178         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
179         for new BB/edges.
180         * flow.c (find_sub_basic_blocks): Likewise.
181         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
182         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
183
184         * predict.c (DEF_PREDICTOR): New argument FLAGS.
185         (HITRATE): New macro.
186         (PRED_FLAG_FIRST_MATCH): New constant.
187         (predictor_info): New field flgags.
188         (combine_predictions_for_insn): Use DS theory to combine
189         probabilities; set the edge probabilities when finished.
190         (estimate_probability): Avoid duplicated matches
191         of LOOP_BRANCH heuristics for nested loops; update comment.
192         * predict.def: Add flags for each prediction, set probabilities
193         according to B&L paper.
194         * predict.h (DEF_PREDICTOR): New argument FLAGS.
195
196         * profile.c (compute_branch_probabilities):  Cleanup way the edge
197         probabilities are computed and REG_BR_PROB notes are dropped; if
198         values does not match, emit error.
199         (init_branch_prob): Do error instead of warning when profile driven
200         feedback is missing or corrupt.
201
202 2001-07-27  DJ Delorie  <dj@redhat.com>
203
204         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
205         against a constant, try to adjust the compare to have the desired
206         constant in it so that min/max optimizations happen more often.
207
208 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
209
210         * flow.c (last_loop_beg_note): New function.
211         (redirect_edge_and_branch): Use it.
212         (split_edge): Likewise.
213
214         * alias.c (loop_p): Avoid uninitialized memory access.
215
216         * flow.c (try_forward_edges): Avoid accessing freed memory.
217
218         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
219         variable access.
220
221 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
222
223         * doc/install.texi (Configuration): Properly link the host
224         specific instructions also when generating HTML.
225
226 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
227
228         * flow.c (redirect_edge_and_branch_force): Test
229         target->global_live_at_start.
230
231 2001-07-26  Richard Henderson  <rth@redhat.com>
232
233         * simplify-rtx.c (avoid_constant_pool_reference): Export.
234         * rtl.h (avoid_constant_pool_reference): Declare it.
235         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
236         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
237
238 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
239
240         * rtl.h (cleanup_barriers): Declare.
241         * jump.c (cleanup_barriers): New function.
242         * toplev.c (rest_of_compilation): Call cleanup_barriers
243         before loop optimizer and after bb_reorder.
244
245         * flow.c (back_edge_of_syntactic_loop_p): New.
246         (split_edge): Use it.
247
248 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
249
250         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
251
252 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
253
254         * cse.c (cse_process_notes): Replace any registers if the address
255         remains valid.
256
257 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
258
259         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
260         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
261         (propagate_block): Update prototype.
262         * flow.c (update_life_info): Simplify the CFG and
263         recalculate the global regs which are alive when
264         removing dead code during a global update.
265         (propagate_block): Return non-zero if an INSN is
266         deleted.
267
268 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
269
270         * Makefile.in (LIBICONV): Define.
271
272 2001-07-26  Catherine Moore  <clm@redhat.com>
273
274         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
275         of conditional to avoid tree checking errors.
276
277 2001-07-26  Kazu Hirata  <kazu@hxi.com>
278
279         * regmove.c (regmove_optimize): Don't replace a reg with
280         another reg of a different mode.
281
282 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
283
284         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to 
285         limit length of dependancy flush list.
286         * params.h (MAX_PENDING_LIST_LENGTH): Define.
287         * sched-int.h  (struct deps): Add pending_flush_length field.
288         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
289         has 1 element in it.
290         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
291         (sched_analyze): After a jump, if the pending memory flush list is too
292         large, flush the pending lists.
293         (init_deps): Initialize pending_flush_length to 0.
294         * doc/invoke.texi (max_pending_list_length): Document parameter.
295
296 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
297
298         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
299         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
300         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
301
302 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
303
304         * cpphash.h (struct_lexer_state): Delete was_skipping.
305         Move skipping here from struct cpp_reader.
306         * cpplex.c (parse_identifier): Update.
307         (_cpp_lex_token): Don't skip tokens in a directive.
308         * cpplib.c (struct if_stack): Update.
309         (start_directive, end_directive): Don't change skipping state.
310         (_cpp_handle_directive): Update.
311         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
312         (do_else, do_endif): Update; only check for excess tokens if not
313         in a skipped conditional block.
314         (push_conditional): Update for new struct if_stack.
315
316 2001-07-26  Graham Stott  <grahams@redhat.com>
317
318         * function.c (locate_and_pad_parm): Also pad initial offset
319         so that the total argument size also includes the padding.
320
321 2001-07-26  Graham Stott <grahams@redhat.com>
322
323         * gensupport.c (alter_output_for_insn): Correct enable checking failure
324         change XSTR to XTMPL.
325
326         (process_one_cond_exec): Likewise
327
328 2001-07-25  Richard Henderson  <rth@redhat.com>
329
330         * varasm.c (assemble_variable): Create DECL_RTL before setting
331         TREE_ASM_WRITTEN.
332
333 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
334
335         * predict.c (estimate_probability): Avoid duplicated predictions.
336
337         * loop.c (find_and_verify_loops): Grok multiple barriers.
338
339 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
340
341         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
342
343         * dbxout.c: Consistently use putc instead of fputc.
344         (print_wide_int): New function; call instead of direct fprintf.
345         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
346         (dbxout_type_fields, dbxout_type_method_1): Likewise.
347         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
348         (print_int_cst_octal): Likewise.
349         (print_octal): Show we wrote characters.
350         (dbxout_type): Set have_used_extensions in more places.
351
352 2001-07-25  Catherine Moore  <clm@redhat.com>
353
354         * config/v850/v850.c (v850_va_arg):  Use addr
355         instead of valist to build incr.
356
357 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
358
359         * flow.c (delete_dead_jumptables): New function.
360         (life_analyzis): Call it.
361         * bb-reorder.c (skip_insns_after_block): Handle contradictory
362         sequences.
363
364 2001-07-25  Richard Henderson  <rth@redhat.com>
365
366         * except.c (reachable_handlers): Handle a region being removed
367         out from under a RESX.
368
369 2001-07-25  Richard Henderson  <rth@redhat.com>
370
371         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
372         swap GE/GT if it is an fp comparison.
373
374 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
375
376         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
377         operands.
378
379 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
380
381         * ssa.c (rename_insn_1): Do not wrap an assignment to a 
382         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
383         glitch.
384
385         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
386         throw an exception.
387         (visit_expression): When attempting to simplify an expression,
388         retrieve any modes for arguments before they are simplified
389         to constants.
390
391 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
392             Janis Johnson  <janis@us.ibm.com>
393
394         * stmt.c (expand_goto): A nonlocal goto can be a call too.
395         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
396         pointer parameters to match documented usage of nonlocal_goto.
397         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
398         parameters to their correct order.
399         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
400         parameters to their correct order.
401
402 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
403
404         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
405
406 2001-07-25  Jan Hubicka  <jh@suse.cz>
407             Richard Henderson  <rth@redhat.com>
408
409         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
410         the sequence.
411         (make_edges): New argument update_p; populate the edge cache if set.
412         (find_basic_blocks): Update make_edges invocation.
413
414 2001-07-24  Joel Sherrill <joel@OARcorp.com>
415
416         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
417
418 2001-07-24  Joel Sherrill <joel@OARcorp.com>
419
420         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
421         -Acpu and -Amachine.h.
422         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
423         Corrected header to say ELF not a.out. 
424         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT 
425         when given -msoft-float.
426
427 2001-07-24  Joel Sherrill <joel@OARcorp.com>
428
429         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
430         extra multilib parts like arm-elf.
431         (i960-*-coff*, i960-*-rtems): Should not use collect2.
432         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
433         crtfini.o as extra multilib parts.
434
435 2001-07-24  Joel Sherrill <joel@OARcorp.com>
436
437         * configure.in: Add rtems as a supported thread model.
438         * gthr-rtems.h: Add missing entry point __gthread_active_p.
439         * configure: Rebuilt.
440
441 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
442
443         * stor-layout.c (get_mode_alignment): make it work when
444         BITS_PER_UNIT is not a power of two.
445         * builtins.c (get_pointer_alignment): Likewise.
446
447 2001-07-24  Richard Henderson  <rth@redhat.com>
448
449         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
450         the retrieved constant into the expected mode.
451
452 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
453
454         * flow.c (try_simplify_condjump): Avoid duplicated edges.
455         (verify_flow_info): Check for duplicated edges; clarify
456         error reporting.
457
458         * flow.c (block_label): Update basic_block_for_insn.
459         (commit_edge_insertions): Call compute_bb_for_insn.
460
461         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
462         returns too.
463
464         * flow.c (redirect_edge_and_branch,
465         try_optimize_cfg): Use redirect_edge_succ_nodup
466         (redirect_edge_succ_nodup): New.
467         * basic_block.h (redirect_edge_succ_nodup): Declare.
468
469         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
470         after gcse.
471
472 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
473
474         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
475         (try_crossjump_to_edge): Update commetns.
476         (try_crossjump_bb): Likewise.
477
478 2001-07-24  Richard Henderson  <rth@redhat.com>
479
480         * combine.c (distribute_notes): Move set of need_refresh
481         for noop_move_p down to catch all cases.
482
483 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
484
485         * recog.c (split_all_insns_noflow): New.
486         * rtl.h (split_all_insns_noflow): Declare.
487         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
488         * m68hc11.c (m68hc11_reorg): Likewise.
489         * sh.c (machine_dependent_reorg): Likewise.
490         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
491         call.
492
493 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
494
495         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
496         (ashlsi3_n splitter): Likewise.
497         (lshrsi3_n splitter): Likewise.
498
499         (GOTaddr2picreg): Make const SImode.
500         (sym_label2reg): Likewise.
501         (symGOT2reg): Likewise.
502         (symGOTOFF2reg) Likewise.
503
504         (casesi_worker_0): Make unspec SImode.
505
506 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
507
508         * config/sh/sh.c (barrier_align): Check that an operand really is
509         an insn before extracting its INSN_CODE.
510
511 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
512
513         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
514         dangling else.
515
516         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
517         for SImode to prevent overflow.
518
519 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
520
521         * config/mips/irix6-libc-compat.c: New file.
522         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
523         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
524         passing workaround.
525
526 2001-07-24  lars brinkhoff  <lars@nocrew.org>
527
528         * rtl.texi (REG_POINTER): Document.
529         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
530         QFmode, HFmode, TQFmode, QCmode, and HCmode.
531
532 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
533
534         * flow.c (delete_noop_moves): Do not confuse libcall regions.
535
536 2001-07-23  Richard Henderson  <rth@redhat.com>
537
538         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
539
540 2001-07-23  Kazu Hirata  <kazu@hxi.com>
541
542         * config/h8300/h8300-protos.h: Add a prototype for
543         general_operand_dst_push.
544         * config/h8300/h8300.c (general_operand_dst_push): New.
545         * config/h8300/h8300.h (OK_FOR_T): New.
546         (EXTRA_CONSTRAINT): Use it.
547         * config/h8300/h8300.md (movqi_push): Remove and integrate into
548         the existing movqi pattern.
549         (movhi_push): Likewise.
550
551         * reload.c: Fix comment typos.
552
553 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
554
555         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
556
557 2001-07-23  H.J. Lu  (hjl@gnu.org)
558
559         * doc/extend.texi: Update __builtin_return_address and
560         __builtin_frame_address.
561
562 2001-07-23  Richard Henderson  <rth@redhat.com>
563
564         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
565         before CSE.
566         * config/i386/i386.md: New setcc+movzbl peephole2.
567
568 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
569
570         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
571         * objc/objc-act.c: Include debug.h.
572         (synth_module_prologue): Save and restore debug hooks too.
573
574 2001-07-23  lars brinkhoff  <lars@nocrew.org>
575
576         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
577         and C4X_FLOAT_FORMAT.
578         (BOOL_TYPE_SIZE): Document.
579
580 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
581
582         * unroll.c (loop_iterations): Fix miscalculation of initial
583         giv offset.
584
585 2001-07-13  Andrew Haley  <aph@redhat.com>
586
587         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
588         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
589         * config/sh/sh.c (sh_can_redirect_branch): New function.
590         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
591         * reorg.c (steal_delay_list_from_target): Use
592         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
593
594 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
595
596         * flow.c (try_simplify_condjump): Unlink insn chain on
597         fallthru edge; use can_fallthru.
598
599 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
600
601         * basic-block.h (find_sub_basic_block): Declare.
602         * flow.c (make_edges): New arguments MIN and MAX;
603         (find_sub_basic_blocks): Revamp to use make_edges
604         and purge_dead_edges.
605         (find_basic_blocks): Update call of find_sub_basic_block.
606
607         * recog.c (split_all_insns): Always expect CFG to be consistent;
608         call find_sub_basic_blocks in case something has changed.
609         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
610         has been built.
611
612         * basic-block.h (delete_noop_moves): Declare.
613         * combine.c (combine_instructions): Call it.
614         (recog_for_combine): Tolerate noop moves
615         (distribute_notes): Force refresh when register dies at noop move.
616         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
617         too.
618         (life_analysis): Update delete_noop_moves call.
619         (set_noop_p): Move too ...
620         * rtlanal.c (noop_move_p): ... here.
621         * rtl.h (noop_move_p): Declare.
622
623         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
624         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
625         after combine.
626         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
627         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
628
629 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
630
631         * reload.c (push_reload): Fix typo in comment.
632         (find_reloads_address): Ditto.
633         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
634
635 2001-07-22  Richard Henderson  <rth@redhat.com>
636
637         * flow.c: Grammar check and clarify a lot of comments.
638         (try_simplify_condjump): Rename variables to be clearer.
639         (try_forward_edges): Skip complex and fallthru edges.
640         Rearrange tests to avoid duplicate checks.
641         (flow_find_cross_jump): Likewise.
642         (outgoing_edges_match): Allow match if neither branch has
643         probability data.  Loosen probability match to 5%.
644         (try_crossjump_to_edge): Hoist repeated indirection into 
645         local variables.
646         (try_crossjump_bb): Don't check complex edges.  Eliminate
647         redundant crossjump tests.
648         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
649         checks before more expensive checks.
650
651 2001-07-22  Richard Henderson  <rth@redhat.com>
652
653         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
654         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
655         arguments.
656
657 2001-07-22  Richard Henderson  <rth@redhat.com>
658
659         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
660         (const_sint32_operand): Likewise.
661         * m68k.md (anon mulsi pattern): Use const_int_operand not
662         const_sint32_operand.
663         (umulsi3_highpart): Zero extend a constant input.
664         (smulsi3_highpart): Don't bother checking SImode constant.
665         (const_umulsi3_highpart): Give op3 DImode.
666         (const_smulsi3_highpart): Likewise.
667
668 2001-07-22  Richard Henderson  <rth@redhat.com>
669
670         * flow.c (split_block): Make sure bb_note is included in the
671         new block when splitting before a label.
672
673 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
674
675         * basic-block.h (redirect_edge_and_branch_force,
676         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
677         * flow.c (redirect_edge_and_branch_force,
678         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
679         (redirect_edge_and_branch_force): Fix copying of lifeness information.
680         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
681         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
682         instead of label; update CFG after transformation.
683         (find_if_case_1): Update call, use redirect_edge_and_branch_force
684         for finishing the transformation; handle even case where ELSE
685         does not follow THEN.
686         (find_if_case_2): Update call of dead_or_predictable; simplify
687         CFG update.
688
689         * emit-rtl.c (split_branch_probability): New global variable.
690         (try_split): Take care to set split_branch_probability and
691         create REG_BR_PROB note for new jump insns.
692         * md.texi (define_split): Document new feature.
693
694         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
695
696 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
697
698         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
699         (asm_out_file): Remove redundant declaration.
700         (assemble_asm): Remove old #if 0 block.
701         (assemble_variable): Remove end of function; debug output is
702         now handled with global_decl.  Remove old #if 0 block.  Update.
703         Remove saved_in_section and associated no-op code.
704         * Makefile.in (varasm.o): Correct dependencies.
705
706 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
707
708         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
709         the definition in defaults.h.
710
711 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
712
713         * jump.c: Update comments.
714         (delete_barrier_successors, delete_unreferenced_labels,
715         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
716         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
717         jump_optimize, jump_optimize_minimal): Kill.
718         (rebuild_jump_labels): Move code from jump_optimize_1.
719         (purge_line_number_notes): Likewise.
720         (copy_loop_headers): Likewise.
721         * reg-stack.c: Update comment.
722         * stmt.c: Likewise.
723         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
724         JUMP_AFTER_REGSCAN): Kill.
725         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
726         purge_line_number_notes and copy_loop_headers.
727
728 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
729            Richard Henderson  <rth@redhat.com>
730
731         * dbxout.c (dbxout_global_decl): New.
732         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
733         * sdbout.c (sdbout_finish): New.
734         (sdbout_debug_hooks): Use it, add comments.
735         (sdbout_global_decl): Defer initialised public vars to
736         sdbout_finish.
737         * varasm.c (assemble_variable): Don't output debug information
738         for file-scope variables.
739
740 2001-07-22  Richard Henderson  <rth@redhat.com>
741
742         * config/alpha/alpha.c (get_trap_mode_suffix): New.
743         (get_round_mode_suffix): New.
744         (print_operand): Use them for [/].  Remove support for [&'`()+].
745         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
746         * config/alpha/alpha.md (attr round_suffix): New.
747         (attr trap_suffix): New.
748         (all insns): Set them appropriately.  Use %/ instead of the
749         myriad punctuators.
750
751 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
752
753         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
754
755 2001-07-22  Richard Henderson  <rth@redhat.com>
756
757         * regrename.c (regrename_optimize): Compute nregs for each
758         potential target register.
759
760 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
761            Richard Henderson  <rth@redhat.com>
762
763         * dbxout.c (dbxout_global_decl): New.
764         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
765         * sdbout.c (sdbout_finish): New.
766         (sdbout_debug_hooks): Use it, add comments.
767         (sdbout_global_decl): Defer initialised public vars to
768         sdbout_finish.
769         * varasm.c (assemble_variable): Don't output debug information
770         for file-scope variables.
771
772 2001-07-21  H.J. Lu  (hjl@gnu.org)
773
774         * config/mips/mips.c (mips_cpu): Moved into ...
775         (override_options): Here.
776
777         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
778         mips_tune.
779         (mips_cpu): Removed.
780
781 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
782
783         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
784         ("iorqi3"): Likewise.
785         ("xorqi3"): Likewise.
786         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
787         ("*subhi3_sp): Likewise.
788         ("*subhi3"): Likewise.
789         ("extendhisi2"): Accept D, X and Y as source operand to avoid 
790         reload problems.
791
792 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
793
794         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
795         * config/freebsd.h: Likewise.
796         * config/linux.h: Likewise.
797         * config/openbsd.h: Likewise.
798         * config/alpha/linux-elf.h: Likewise.
799         * config/arm/linux-elf.h: Likewise.
800         * config/d30v/d30v.h: Likewise.
801         * config/fr30/fr30.h: Likewise.
802         * config/ia64/aix.h: Likewise.
803         * config/ia64/ia64.h: Likewise.
804         * config/mips/linux.h: Likewise.
805         * config/pj/pj.h: Likewise.
806         * config/rs6000/linux.h: Likewise.
807         * config/sparc/linux.h: Likewise.
808         * config/sparc/linux64.h: Likewise.
809
810 2001-07-20  Bruce Korb  <bkorb@gnu.org>
811
812         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
813         because getc() and char* may disagree on signedness.
814
815 2001-07-20  Richard Henderson  <rth@redhat.com>
816
817         * doc/rtl.texi (REG_DEAD): Update for current semantics.
818
819         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
820         insns to delete in the presence of cc0 in a jump insn.
821
822 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
823                                Jan Hubicka  <jh@suse.cz>
824
825         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
826         of doing the change by hand.
827
828 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
829
830         * rtlanal.c (set_noop_p): Return true for noop jumps.
831
832         * expr.c (emit_single_push_insn): Add call to push expander.
833         * expr.h (optab_index): Add OTI_push
834         (push_optab): New constant.
835         * genopinit.c (optabs): Add push_optab.
836         * optabs.c (init_optab): Init push optab.
837         * md.texi (push??1): Document
838
839 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
840
841         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
842         expand to emit the pattern; put a REG_INC note for push/pop 
843         instructions.
844         ("movdf", "movdf_internal"): Likewise.
845         ("movsi", "movsi_internal"): Likewise.
846         ("movsf", "movsf_internal"): Likewise.
847         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
848
849 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
850
851         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
852         gen_highpart.
853
854 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
855
856         * params.def: Change default max inline insns to 100.
857
858 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
859
860         * combine.c (combine_simplify_rtx): Generate a new shift operation
861         when simplifying the first operand of a (neg (ashift)) expression.
862
863 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
864
865         * regclass.c (N_REG_INTS): Use only 32 bits per element.
866
867 2001-07-20  Kelley Cook  <kelley.cook@home.com>
868
869         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
870         information.   Move rest into ...
871         (*-*-solaris): ... here.  Eliminate redundant information and
872         reword necessary packages section.  Delete 4.x assembler bug info.
873         (sparc-sun-*): Merge into ...
874         (sparc-sun-sunos*): here.
875
876 2001-07-20  Catherine Moore  <clm@redhat.com>
877
878         * config/v850/v850.md (casesi): Generate LABEL_REF
879         with Pmode.
880
881 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
882
883         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
884         * i386.c (ix86_zero_extend_to_Pmode): Make global.
885         * i386.md (strclrsi expander): Use it.
886
887 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
888
889         * integrate.c (copy_insn_list): handle
890         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
891         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
892         identically as to CODE_LABEL.
893
894         * fold-const (fold): Convert A/B/C to A/(B*C) and
895         A/(B/C) to (A/B)*C
896
897         * except.c (connect_post_landing_pads): Delete the RESX insns.
898
899 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
900
901         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
902
903         * config/mips/mips.md (nmadd/nmsub): Use macro.
904
905 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
906
907         * cppinit.c (remove_dup_dir): Make static.
908         (remove_dup_dirs): Make static. Only warn about preempting a
909         system directory with a non-system directory.
910
911 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
912
913         * ifcvt.c (noce_try_store_flag_constants): Correct order
914         of parameters to trunc_int_for_mode.
915
916 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
917
918         * reorg.c (fill_simple_delay_slots): If an instruction might throw
919         an exception that will be caught within this function, do not fill
920         its delay slot with any subsequent instruction.
921
922 2001-07-19  Steve Ellcey <sje@cup.hp.com>
923
924         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
925         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
926         pointer extension instruction.
927         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
928         * simplify-rtx.c (simplify_unary_operation) Likewise.
929         * explow.c (convert_memory_address) Check value of 
930         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
931         less than zero.
932         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
933         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
934         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
935         Add Multilib Support.
936         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
937         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
938         Add Multilib Support.
939         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
940         support.
941         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
942         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
943         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
944
945 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
946
947         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
948         old and new operands in `<', `3' and `b'.
949
950 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
951
952         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
953         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
954         (toplev.o): Don't depend on xcoffout.h.
955         * c-decl.c: Include debug.h
956         (duplicate_decls): Use debug hook.
957         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
958         (dbx_debug_hooks, xcoff_debug_hooks): Update.
959         (dbxout_types): Remove.
960         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
961         * debug.c (do_nothing_debug_hooks): Update.
962         (debug_true_tree, debug_nothing_rtx): New.
963         * debug.h (struct rtx_def): New.
964         (struct gcc_debug_hooks): New hooks ignore_block,
965         outlining_inline_function and label.
966         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
967         dwarf2out_frame_finish): New.
968         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
969         Make static, update prototype.
970         (dwarf2_debug_hooks): Update.
971         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
972         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
973         * dwarfout.c (dwarf_debug_hooks): Update.
974         * emit-rtl.c: Include debug.h.
975         (remove_unnecessary_notes): Use debug hook.
976         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
977         (final_scan_insn): Use debug hook.
978         * integrate.c (output_inline_function): Use debug hook.
979         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
980         (sdb_debug_hooks): Update.
981         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
982         * toplev.c: Don't include xcoffout.h.
983         (note_outlining_of_inline_function, debug_ignore_block): Remove.
984         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
985         Remove.
986         * tree.h (dwarf2out_do_frame): Remove.
987
988 2001-07-19  Catherine Moore  <clm@cygnus.com>
989
990         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore. 
991
992 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
993
994         * reload1.c (eliminate_regs_in_insn): When updating a set
995         to the frame pointer to the hardware frame pointer, perform
996         the update always not just when REPLACE is set.
997
998         * reload1.c (choose_reload_regs): Don't inherit a reload
999         that crosses multiple registers if registers past the first
1000         don't fit in the desired class.
1001
1002         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
1003         when negating constants.
1004
1005 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1006
1007         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
1008         * doc/tree.texi: Ditto.
1009
1010 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
1011             Jakub Jelinek  <jakub@redhat.com>
1012
1013         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
1014         (extract_cie_info): Handle "eh" augmentation properly,
1015         remember eh_ptr.
1016         (struct frame_state, __frame_state_for): New.
1017
1018 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1019
1020         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
1021         HANDLE_SYSV_PRAGMA): Define.
1022         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
1023         previous args.
1024         (copy_object): Caller changed.
1025
1026 2001-07-19  Andreas Schwab  <schwab@suse.de>
1027
1028         * configure.in (assembler dwarf2 debug_line support): Define nop
1029         insn for m68k.
1030         * configure: Regenerated.
1031
1032 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1033
1034         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
1035         dwarfout.h.
1036         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
1037         to conditionally compiled block.
1038         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1039         * dbxout.h (dbxout_function): Remove.
1040         * debug.c (do_nothing_debug_hooks): Update.
1041         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
1042         global_decl, deferred_inline_function.
1043         * dwarf2out.c (dwarf2_debug_hooks): Update.
1044         (dwarf2out_global_decl): New.
1045         * dwarfout.c: Don't include dwarfout.h.
1046         (dwarfout_global_decl, dwarfout_function_decl,
1047         dwarfout_deferred_inline_function): New.
1048         (dwarf_debug_hooks): Update.
1049         * dwarfout.h: Remove.
1050         * final.c: Don't include dwarfout.h.
1051         * sdbout.c (sdbout_global_decl): New.
1052         (sdbout_debug_hooks): Update.
1053         * toplev.c: Don't include dwarfout.h.
1054         (check_global_declarations, rest_of_compilation): Use new debug hooks.
1055         (note_deferral_of_defined_inline_function): Remove.
1056         * toplev.h (note_deferral_of_defined_inline_function): Remove.
1057         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
1058         * ch/lex.c: Don't include dwarfout.h.
1059         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
1060         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
1061         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
1062         * cp/optimize.c: Include debug.h.
1063         (maybe_clone_body): Use debug hook.
1064         * cp/semantics.c: Include debug.h.
1065         (expand_body): Use debug hook.
1066         * po/POTFILES.in: Remove dwarfout.h.
1067
1068 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1069
1070         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
1071         * c-parse.in (yyerror, _yylex): Similarly.
1072         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
1073         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
1074         Update comments.
1075         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
1076         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
1077
1078 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
1079
1080         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
1081         in-class declaration at -g1.  Fixes c++/2814.
1082
1083 2001-07-18  Richard Henderson  <rth@redhat.com>
1084
1085         * doc/md.texi (reload_in/out): Document restrictions in predicates
1086         and constraints for these patterns.  Document empty string matching
1087         ALL_REGS.
1088
1089 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1090
1091         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
1092
1093 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1094
1095         * cse.c: Undo my previous patch.
1096
1097 2001-07-18  Tom Tromey  <tromey@redhat.com>
1098
1099         For PR java/2812:
1100         * configure: Rebuilt.
1101         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
1102         instead.
1103         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
1104
1105 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
1106                                Jan Hubicka  <jh@suse.cz>
1107
1108         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
1109         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
1110         * jump.c (mark_jump_label): Do not forward branches.
1111
1112 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1113
1114         * cse.c (delete_trivially_dead_insns): Delete the libcall block
1115         when return value is unused.
1116
1117 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1118
1119         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
1120
1121 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1122
1123         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
1124         on error.  We can't blindly return the result of
1125         pthread_mutex_trylock because it returns a positive number on
1126         error, while we must return -1 on error.
1127         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
1128         fixes.  
1129         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
1130
1131 2001-07-18  Andreas Jaeger  <aj@suse.de>
1132
1133         * integrate.c (output_inline_function): Correct type of debug_hooks.
1134
1135 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
1136
1137         * combine.c (combine_simplify_rtx): DIV can be treated
1138         associatively for floats if unsafe math optimisations are enabled.
1139
1140 2001-07-17  Richard Henderson  <rth@redhat.com>
1141
1142         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
1143
1144 2001-07-17  Richard Henderson  <rth@redhat.com>
1145
1146         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
1147         don't force the function address into a register.
1148         (expand_call, emit_library_call_value_1): Update callers.
1149         * builtins.c (expand_builtin_apply): Likewise.
1150         * expr.h (prepare_call_address): Update decl.
1151
1152 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
1153
1154         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
1155         config directory.
1156         * config/i386/chorus.h: Move up.
1157         * config/sparc/chorus.h: Likewise.
1158         * config/rs6000/chorus.h: Likewise.
1159         * config/chorus.h: Moved here.
1160
1161 2001-07-17  Andreas Schwab  <schwab@suse.de>
1162
1163        * configure.in  (assembler eh_frame optimization): Handle big
1164        endian.
1165        * configure: Regenerated.
1166
1167 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
1168
1169         * expr.c (epxand_expr): Convert divisions into multiplications by
1170         reciprocals if -ffast-math.
1171
1172 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1173
1174         * dbxout.c (dbxout_really_begin_function): Rename to
1175         dbxout_begin_function.
1176         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1177         (dbxout_begin_function): Remove.
1178         (dbxout_function): Update.
1179         (dbxout_source_line): Update prototype.
1180         * dbxout.h (dbxout_begin_function): Remove.
1181         * debug.c (do_nothing_debug_hooks): Update.
1182         (debug_nothing_tree): Update.
1183         (debug_nothing_charstar_rtx): Remove.
1184         * debug.h (union tree_node): Declare.
1185         (struct rtx_def): Remove.
1186         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
1187         begin_function.  Change source_line prototype.
1188         (debug_nothing_tree): New.
1189         (debug_nothing_charstar_rtx): Delete.
1190         (dwarf2out_begin_prologue): Moved from ...
1191         * tree.h: ... here.
1192         * dwarf2out.c (dwarf2_debug_hooks): Update.
1193         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
1194         debug info, call dwarf2out_source_line.
1195         (dwarf2out_souce_line): Update prototype.
1196         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
1197         Change prototype, make static.
1198         (dwarfout_source_line): Update prototype.
1199         (dwarf_debug_hooks): Update.
1200         * dwarfout.h (dwarfout_begin_function): Remove.
1201         * final.c (final_start_function, final_scan_insn): Use appropriate
1202         debug hooks, update to use notice_source_line.
1203         (output_source_line): Rename notice_source_line.  Don't call the
1204         source_line debug hook.
1205         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
1206         make static, update prototype.
1207         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
1208         prototype.
1209         (sdbout_end_prologue): New.
1210         (sdbout_source_line): Update prototype.
1211         (sdbout_debug_hooks): Update.
1212         (sdbout_symbol): Remove unused var.
1213         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
1214         Delete.
1215         * varasm.c: Include debug.h.
1216         (assemble_start_function): Use begin_function debug_hook.
1217         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
1218         update with prototype.
1219         (xcoffout_source_line): Update prototype.
1220         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
1221         update prototype.
1222         (xcoffout_source_line): Update prototype.
1223
1224 2001-07-17  Richard Henderson  <rth@redhat.com>
1225
1226         * c-typeck.c (build_binary_op): Do not shorten unsigned
1227         right shift after sign extension.
1228
1229 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
1230
1231         * combine.c (combine_simplify_rtx): Attempt to simplify
1232         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
1233
1234         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
1235         (simplify_binary_operation, simplify_unary_operation,
1236          simplify_relational_operation): Use it.
1237
1238         * combine.c (combine_simplify_rtx): Don't do associative law
1239         on divisions; allow associative law on floats.
1240
1241 2001-07-17  H.J. Lu <hjl@gnu.org>
1242             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1243
1244         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
1245         ASM_OUTPUT_WEAK_ALIAS are defined.
1246         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
1247         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
1248         Moved ...
1249         * config/mips/iris5.h: ... here.
1250         (HANDLE_SYSV_PRAGMA): Defined as 1.
1251         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
1252         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
1253         symbol.
1254
1255 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1256
1257         * c-parse.in (all_prefix_attributes): New variable.
1258         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
1259         (maybe_resetattrs): New production.
1260         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
1261         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
1262         notype_initdcl, nested_function, notype_nested_function,
1263         component_decl, components, components_notype,
1264         component_declarator, component_notype_declarator,
1265         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
1266         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
1267         after a comma being applied to more than one declarator.
1268         * doc/extend.texi (Attribute Syntax): Update.  Remove
1269         documentation of bugs that are no longer present.
1270
1271 2001-07-13  Eric Christopher  <echristo@redhat.com>
1272
1273         * config/mips/mips.h: Change TUNE_MIPS* options to use
1274         mips_tune.
1275         (EXTRA_SPECS): Add cc1_cpu_spec.
1276         * config/mips/mips.md (muldf3): Fix typo.
1277
1278 2001-07-16  Richard Henderson  <rth@redhat.com>
1279
1280         * config/m68k/m68k.c: Include expr.h and reload.h.
1281         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
1282         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
1283
1284 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
1285             Richard Henderson  <rth@redhat.com>
1286
1287         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
1288         (insn_live_p): Fix fall off end of function.
1289         (dead_libcall_p): Remove COUNTS argument; update callers.
1290         (delete_trivially_dead_insns): Remove unused variables.
1291
1292 2001-07-17  Andreas Jaeger  <aj@suse.de>
1293
1294         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
1295         x86-64 pic support.
1296
1297         * lcm.c (optimize_mode_switching): Avoid warning for unused
1298         variable if !NORMAL_MODE.
1299
1300         * flow.c (try_crossjump_to_edge): Remove unused variable.
1301
1302 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1303
1304         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
1305         atexit declaration in stdlib.h.
1306
1307 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
1308
1309         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
1310
1311 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
1312
1313         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
1314         * except.c (finish_eh_generation): Update call of cleanup_cfg;
1315         do rebuild_jump_labels instead of jump_optimize
1316         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
1317         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
1318         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
1319
1320         * flow.c: Include timevar.h
1321         (find_basic_block): Push/pop timevar;
1322         (cleanup_cfg): Likewise.
1323         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
1324         * Makefile: Add dependencies on timevar.h
1325
1326         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
1327         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
1328
1329         * rtl.h (delete_trivially_dead_insns): Add new parameter.
1330         * toplev.c (rest_of_compilation): Update calls.
1331         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
1332         (delete_trivially_dead_insns): ... here; accept new argument
1333         preserve_basic_blocks; preserve basic blocks if set.
1334
1335         * reg-stack.c (stack_regs_mentioned): Return 0 if
1336         stack_regs_mentioned_data is not initialized.
1337         (reg_to_stack): Make stack_regs_mentioned survive after the
1338         reg-stack is completted; do not call cleanup_cfg.
1339         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
1340         make cleanup_cfg after bb-reorder to output to debug file.
1341
1342 2001-07-16  Richard Henderson  <rth@redhat.com>
1343
1344         * regclass.c (init_reg_sets): Use only 32 bits per initializer
1345         from int_reg_class_contents.
1346
1347 2001-07-16  Richard Henderson  <rth@redhat.com>
1348
1349         * hard-reg-set.h (regs_invalidated_by_call): Declare.
1350         * regclass.c (regs_invalidated_by_call): Move from cse.c.
1351         (init_reg_sets_1): Move initialization from cse_main.
1352         * cse.c (regs_invalidated_by_call): Move to regclass.c.
1353         (cse_main): Move its initialization also.
1354         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
1355         * flow.c (propagate_one_insn): Likewise.
1356         * gcse.c (compute_hash_table): Likewise.
1357         (compute_kill_rd, compute_store_table): Likewise.
1358         * sched-deps.c (sched_analyze_1): Likewise.
1359
1360 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
1361
1362         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
1363         gen_rtx_SET.
1364
1365 2001-07-16  Steve Ellcey <sje@cup.hp.com>
1366
1367         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
1368         in if statement so we don't access undefined memory.
1369
1370 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
1371
1372         * gcse.c: Update comment at top.
1373         Update comment on mem handling.
1374         mem_last_set, mem_first_set, mem_set_in_block: gone.
1375         Declaration of reg_set_info: gone.
1376         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
1377         pointless with load_killed_in_block_p (they are *more*
1378         conservative then it, not less, and less accurate).
1379         (oprs_not_set_p): Ditto.
1380         (alloc_gcse_mem): Don't allocate mem_set_in_block
1381         (free_gcse_mem): Don't free it, either.
1382         (record_last_mem_set_info): Update comment in front, remove
1383         mem_*set_* stuff. Note the reason we don't handle stores directly
1384         here.
1385         (compute_hash_table): Update comments to reflect reality. Remove
1386         mem_*set_* references.
1387         (reset_opr_set_tables): Remove mem_*set_* references.
1388         (mark_call): Ditto.
1389         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
1390         (mark_clobber): Ditto (on both parts, we double set here too).
1391         (expr_killed_p): Remove mem_set_in_block test.
1392         (compute_transp): Remove mem_set_in_block test.
1393
1394         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
1395         of edge, and removal of phi alternative to dump file.
1396         (ssa_ccp_substitute_constants): Add note about register now being
1397         constant, and which uses were replaced in what insns to dump file.
1398
1399 2001-07-16  Andreas Jaeger  <aj@suse.de>
1400
1401         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
1402         variables of type HOST_WIDEST_INT.
1403
1404         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
1405         (__bb_exit_func): Correct type of count_max to avoid overflow.
1406         (num_digits): Handle long long argument.
1407
1408         * combine.c (gen_lowpart_for_combine): Remove unused variable.
1409
1410 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1411
1412         * output.h (sdb_begin_function_line): Restore as an extern
1413         variable.
1414         * sdbout.c (sdb_begin_function_line): Make extern.
1415
1416 2001-07-15  Richard Henderson  <rth@redhat.com>
1417
1418         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
1419         * genrecog.c (maybe_both_true_mode): New.
1420         (maybe_both_true_2): Use it.
1421         (write_switch): Don't put Pmode in a switch.
1422         * rtl.c (mode arrays): Don't explicitly size them.
1423
1424 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1425
1426         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
1427         handling; move unconditional splitting before mode switching.
1428
1429         * i386.md (type): Add fistp type.
1430         (i387, length_attr, scheduling definitions): Handle this type.
1431         (fix_trunc?f?i2): Revamp to use mode switching.
1432         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
1433         * i386.h (fp_cw_mode): New enum
1434         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
1435         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
1436
1437 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1438
1439         * Makefile.in (integrate.o): Add debug.h.
1440         * integrate.c (debug.h): Add.
1441         (output_inline_function): Save, reset, and restore debug_hooks.
1442
1443 2001-07-15  Richard Henderson  <rth@redhat.com>
1444
1445         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
1446         instead of COMPARE for the EQUIV expression.
1447
1448 2001-07-15  Richard Henderson  <rth@redhat.com>
1449
1450         * flow.c (redirect_edge_and_branch_force): Initialize
1451         global_live_at_start and global_live_at_end.
1452         (allocate_bb_life_data): Export.
1453         * basic-block.h (allocate_bb_life_data): Declare.
1454         * toplev.c (rest_of_compilation): Call it.
1455
1456 2001-07-15  Richard Henderson  <rth@redhat.com>
1457
1458         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
1459         (alpha_tablejump_best_label): New.
1460         * config/alpha/alpha-protos.h: Declare them.
1461         * config/alpha/alpha.md: Use braced strings for code blocks.
1462         (tablejump_osf): Break out add with r29.
1463         (tablejump_osf_internal): Remove.
1464         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
1465         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
1466
1467 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
1468
1469         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
1470         of the movable.
1471
1472         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
1473
1474         * i386-protos.h (ix86_split_fp_branch): Update prototype.
1475         (ix86_fp_jump_nontrivial_p): New.
1476         * i386.md (fp_jcc_?): Update call of split_fp_branch;
1477         use ix86_fp_jump_nontrivial_p.
1478         * i386.c (ix86_fp_jump_nontrivial_p): New.
1479         (ix86_split_fp_branch): Accept code instead of rtx.
1480         (ix86_expand_compare): Expand comparison early in case
1481         doing so is resonably cheap.
1482
1483 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
1484
1485         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
1486         not 'machine'.
1487         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
1488         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
1489
1490 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1491
1492         * dbxout.c (dbxout_source_line): Make static, update prototype.
1493         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
1494         (dbxout_init, dbxout_finish, dbxout_source_line,
1495         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
1496         * dbxout.h (dbxout_source_line): Delete.
1497         * debug.c (debug_nothing_file, debug_nothing_file_int,
1498         debug_nothing_file_charstar_rtx): New.
1499         (do_nothing_debug_hooks): Update.
1500         (debug_nothing_void, debug_nothing_charstar_rtx,
1501         dwarf2out_end_epilogue): New.
1502         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
1503         * debug.h (struct rtx_def): Declare.
1504         (gcc_debug_hooks): New hooks source_line, end_epilogue
1505         and end_function.
1506         (debug_nothing_void, debug_nothing_charstar_rtx,
1507         dwarf2out_end_epilogue): New.
1508         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
1509         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
1510         (dwarf2_debug_hooks): Update.
1511         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
1512         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
1513         * dwarf2out.h (dwarf2out_source_line): Remove.
1514         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
1515         Make static, update prototype.
1516         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
1517         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
1518         (dwarf_debug_hooks): Update.
1519         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
1520         dwarfout_end_function): Remove.
1521         * final.c (profile_function): Use debug hooks for ending functions
1522         and epilogues.
1523         (output_source_line, final_end_function): Update prototype,
1524         use debug hooks.
1525         (final_start_function, final_scan_insn): Update.
1526         * output.h (sdb_begin_function_line): Remove.
1527         (final_end_function): Update prototype.
1528         * sdbout.c (sdb_begin_function_line): Make static.
1529         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
1530         (sdbout_source_line): New.
1531         (sdbout_end_epilogue, sdbout_end_function): Make static, update
1532         prototypes.
1533         (sdb_debug_hooks): Update.
1534         (sdbout_init, sdbout_source_line,
1535         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
1536         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
1537         * toplev.c (compile_file, rest_of_compilation): Update.
1538         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
1539         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
1540         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
1541         Update for prototype changes.
1542         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
1543         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
1544
1545 2001-07-15  Richard Henderson  <rth@redhat.com>
1546
1547         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
1548         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
1549         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
1550         * config/alpha/alpha.c: Likewise.
1551         * config/alpha/alpha.md: Likewise.
1552         * config/alpha/alpha32.h: Likewise.
1553         * config/alpha/vms.h: Likewise.
1554         (OPEN_VMS): Remove.
1555
1556 2001-07-14  Richard Henderson  <rth@redhat.com>
1557
1558         * config/alpha/alpha.md: Use define_constants for unspec values.
1559         Substitute throughout.
1560
1561 2001-07-14  Tim Josling  <tej@melbpc.org.au>
1562
1563         * tree.def (EXPON_EXPR) remove. Never supported anyway.
1564
1565 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1566
1567         * pa.md: Remove unused constraints from define_split's.
1568
1569 2001-04-14  Richard Henderson  <rth@redhat.com>
1570
1571         * ifcvt.c (find_cond_trap): Test for exit block.
1572
1573 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
1574
1575         Re-install recently reverted patch.
1576         * emit-rtl.c (try_split): Update mark_jump_label call.
1577         * flow.c (find_sub_basic_blocks): Likewise.
1578         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
1579         jump_back_p): Kill.
1580         (mark_all_labels): Kill second parameter.
1581         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
1582         (rebuild_jump_labels, jump_optimize_minimal): Update call
1583         of jump_optimize_1.
1584         (jump_optimize_1): Kill crossjumping code.
1585         (mark_jump_label): Kill cross_jump parameter.
1586         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
1587         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
1588         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
1589          splitting.
1590         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
1591         DFI_bpro.
1592         (dump_file_info): Likewise.
1593         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
1594         reorganize passes to do reg-stack first, bb-reorder second.
1595         * invoke.texi (-d letters doc): Remove the jump2 pass.
1596
1597 2001-07-14  Richard Henderson  <rth@redhat.com>
1598
1599         * ifcvt.c (find_cond_trap): New.
1600         (find_if_header): Call it.
1601         (merge_if_block): Relax existing jump sanity check.
1602         * jump.c (jump_optimize_1): Remove conditional trap handling.
1603
1604 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
1605
1606         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
1607         millicode.
1608         (insn_refs_are_delayed): Correct comment.
1609         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
1610         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
1611         instead of r31.  Make associated insn !TARGET_64BIT, and
1612         provide an additional 64-bit insn that clobbers r2.
1613         (divsi3): Likewise.
1614         (udivsi3): Likewise.
1615         (modsi3): Likewise.
1616         (umodsi3): Likewise.
1617
1618 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
1619
1620         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
1621
1622         * flow.c (redirect_edge_and_branch_force, split_edge,
1623         try_crossjump_to_edge): Use set_block_for_new_insns.
1624         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
1625
1626 2001-07-13  H.J. Lu  (hjl@gnu.org)
1627
1628         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
1629         the correct patch.
1630
1631 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
1632
1633         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
1634
1635 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
1636
1637         * c-common.c (decl_attributes): Take a pointer to the node to
1638         which attributes are to be attached, and a flags argument.
1639         * c-common.h (enum attribute_flags): New.
1640         (decl_attributes): Update prototype.
1641         * c-decl.c (start_decl, push_parm_decl, finish_struct,
1642         finish_enum, start_function): Update calls to decl_attributes.
1643         * c-parse.in (component_declarator, component_notype_declarator,
1644         label): Update calls to decl_attributes.
1645
1646 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
1647
1648         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
1649         * config/avr/avr.c (legitimate_address_p): Return value changed
1650         from letter to register classes. For better debugging.
1651
1652 2001-07-13  Kazu Hirata  <kazu@hxi.com>
1653
1654         * jump.c (reversed_comparison_code_parts): Fix comment typos.
1655
1656 2001-07-13  H.J. Lu  (hjl@gnu.org)
1657
1658         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
1659
1660 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
1661
1662         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
1663         correctly for shared configurations.
1664         * config/t-libgcc-pic:  New.
1665         * config/{i386,m68k,sparc}/t-openbsd:  New.
1666         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
1667         Support -shared.  Support debugging libraries with -g.
1668         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
1669         frame information does not emit pointer diffs.
1670         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
1671         emit pointer diffs.
1672
1673 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
1674
1675         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
1676
1677 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
1678
1679         * combine.c (try_combine): Ensure const_int pow2 is positive.
1680
1681 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
1682
1683         * config.gcc: Add configuration for s/390.
1684         * config/s390/s390.c: New. Subroutines for code generation.
1685         * config/s390/s390.h: New. Definitions for s/390.
1686         * config/s390/s390-protos.h: New. Prototypes.
1687         * config/s390/linux.h: New. Definitions for linux for s/390.
1688         * config/s390/linux64.h: New. Definitions for linux for zSeries.
1689         * config/s390/t-linux: New. Makefile fragment.
1690         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
1691         * config/s390/fixdfdi.h: New. Fix L_fix*di.
1692
1693 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
1694
1695         * emit-rtl.c (try_split): Update mark_jump_label call.
1696         * flow.c (find_sub_basic_blocks): Likewise.
1697         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
1698         jump_back_p): Kill.
1699         (mark_all_labels): Kill second parameter.
1700         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
1701         (rebuild_jump_labels, jump_optimize_minimal): Update call
1702         of jump_optimize_1.
1703         (jump_optimize_1): Kill crossjumping code.
1704         (mark_jump_label): Kill cross_jump parameter.
1705         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
1706         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
1707         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
1708          splitting.
1709         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
1710         DFI_bpro.
1711         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
1712         reorganize passes to do reg-stack first, bb-reorder second.
1713         * invoke.texi (-d letters doc): Remove the jump2 pass.
1714
1715 2001-07-12  Steve Ellcey <sje@cup.hp.com>
1716
1717         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
1718
1719 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1720
1721         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
1722         basic blocks.
1723         (verify_flow_info): Make diagnostics prettier.
1724
1725 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
1726
1727         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
1728
1729         * flow.c (outgoing_edges_match): Return early if condition reversal
1730         failed.
1731
1732 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
1733
1734         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
1735         (mips_move_2words): When splitting a move into two instructions,
1736         prefix the second address operand with '%D'.
1737
1738 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
1739
1740         * Makefile.in (final.o): Depend on debug.h.
1741         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
1742         (dbx_debug_hooks): Add new hooks.
1743         (xcoff_debug_hooks): New.
1744         * debug.c (debug_nothing_file_int_int): New.
1745         (do_nothing_debug_hooks): Update.
1746         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
1747         (debug_nothing_file_int_int): New.
1748         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
1749         static, update prototype.
1750         (dwarf2_debug_hooks): Update.
1751         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
1752         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
1753         static, update prototype.
1754         (dwarf_debug_hooks): Update.
1755         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
1756         * final.c: Include debug.h.
1757         (final_scan_insn): Use debug hooks when beginning and ending blocks.
1758         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
1759         static, update prototype.
1760         (sdb_debug_hooks): Update.
1761         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
1762         * toplev.c: Distinguish between xcoff and dbx.
1763
1764         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
1765         Call all debug hooks, not just dwarf ones.
1766
1767 2001-07-11  Timothy Wall  <twall@redhat.com>
1768
1769         * config.gcc: Add configuration for AIX5/IA64.
1770         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
1771         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
1772         support prefix/suffix code.
1773         * config/ia64/t-aix: New.  Makefile fragment.
1774         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
1775
1776 2001-07-11  Kazu Hirata  <kazu@hxi.com>
1777
1778         * recog.c (validate_change): Fix a comment typo.
1779
1780 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1781
1782         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
1783         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
1784         hooks directly.
1785         * dbxout.c (dbx_debug_hooks): Add new hooks.
1786         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
1787         make static.
1788         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
1789         make static.
1790         * dbxout.h (dbxout_start_new_source_file,
1791         dbxout_resume_previous_source_file): Delete.
1792         * debug.c (do_nothing_debug_hooks): Add new hooks.
1793         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
1794         (debug_nothing_int_charstar, debug_nothing_int): New.
1795         * debug.h (gcc_debug_hooks): New hooks define, undef,
1796         start_source_file and end_source_file.
1797         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
1798         (debug_nothing_int_charstar, debug_nothing_int): New.
1799         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
1800         the conditionally compiled section.
1801         (dwarf2out_start_source_file, dwarf2out_end_source_file,
1802         dwarf2out_define, dwarf2out_undef): Make static.
1803         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
1804         dwarf2out_define, dwarf2out_undef): Remove.
1805         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
1806         (dwarfout_start_source_file, dwarfout_end_source_file,
1807         dwarfout_define, dwarfout_undef): Make static.
1808         (dwarfout_start_source_file_check,
1809         dwarfout_end_source_file_check): New.
1810         (dwarfout_define, dwarfout_finish): Update.
1811         * dwarfout.h (dwarfout_start_new_source_file,
1812         dwarfout_resume_previous_source_file, dwarfout_define,
1813         dwarfout_undef): Remove.
1814         * sdbout.c (sdb_debug_hooks): Add new hooks.
1815         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
1816         make static.
1817         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
1818         make static, take an arg.
1819         * sdbout.h (sdbout_start_new_source_file,
1820         sdbout_resume_previous_source_file): Delete.
1821         * toplev.c (debug_start_source_file, debug_end_source_file,
1822         debug_define, debug_undef): Delete.
1823         * toplev.h (debug_start_source_file, debug_end_source_file,
1824         debug_define, debug_undef): Delete.
1825
1826         * java/jcf-parse.c: Include debug.h.
1827         (parse_class_file): Update to use debug hooks directly.
1828         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
1829
1830 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1831
1832         * alias.c (set_mem_alias_set): New function.
1833         * rtl.h (set_mem_alias_set): Declare it.
1834         * builtins.c (expand_builtin_return_addr): Call it instead of
1835         using MEM_ALIAS_SET accessor.
1836         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
1837         (get_memory_rtx, expand_builtin_va_arg): Likewise.
1838         (expand_builtin_va_copy):Likewise.
1839         * caller-save.c (setup_save_areas): Likewise.
1840         * calls.c (compute_argument_addresses): Likewise.
1841         * explow.c (set_mem_attributes): Likewise.
1842         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
1843         (expand_assignment, store_constructor_field, store_field): Likewise.
1844         (expand_expr_unaligned): Likewise.
1845         * function.c (assign_stack_temp_for_type): Likewise.
1846         (put_reg_into_stack, gen_mem_addressof): Likewise.
1847         * ifcvt.c (noce_try_cmove_arith): Likewise.
1848         * reload1.c (reload, alter_reg): Likewise.
1849         * config/alpha/alpha.c (get_aligned_mem): Likewise.
1850         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
1851         (alpha_expand_unaligned_store): Likewise
1852         (alpha_expand_unaligned_load_words): Likewise.
1853         (alpha_expand_unaligned_store_words): Likewise.
1854         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
1855         (alpha_expand_epilogue): Likewise.
1856         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1857         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
1858         * config/i386/i386.c (legitimize_pic_address): Likewise.
1859         * config/i960/i960.c (setup_incoming_varargs): Likewise.
1860         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1861         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1862         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
1863         * config/mips/mips.c (mips_va_arg): Likewise.
1864         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1865         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1866         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1867         (setup_incoming_varargs, rs6000_va_arg): Likewise.
1868         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
1869         (rs6000_emit_epilogue): Likewise.
1870         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
1871         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1872         * config/v850/v850.c (v850_va_arg): Likewise.
1873
1874 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
1875
1876         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
1877         when fallthru edge is present.
1878         (mege_blocks): Handle case where creation of jump insn
1879         is required.
1880
1881         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
1882         CLEANUP_POST_REGSTACK): New constants.
1883         * except.c (finish_eh_generation): Update call of cleanup_cfg,
1884         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
1885         * output.h (cleanup_cfg): Update prototype.
1886         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
1887         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
1888         cleanup_cfg call; kill missleading comment.
1889         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
1890         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
1891         parameter; control optimizations performed using it.
1892         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
1893         try_crossjump_bb): New functions.
1894
1895 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1896
1897         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
1898         extern.
1899         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
1900         pa_output_function_prologue.
1901         * pa-protos.h (pa_output_function_prologue): New prototype.
1902
1903 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1904
1905         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
1906         and low to get correct sign extension in low+high test.
1907
1908 2001-07-11  Janis Johnson <janis@us.ibm.com>
1909
1910         * gcov.c (arcdata): Use gcov_type to fix branch percentage
1911         for large hit count.
1912
1913         * profile.c (branch_prob): Fix .bbg info for computed gotos
1914         and C++ EH code.
1915
1916 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
1917
1918         * stmt.c (parse_output_constraint): New function, split out
1919         from ...
1920         (expand_asm_operands): ... here.  Use parse_output_constraint.
1921         * tree.h (parse_output_constraint): Declare it.
1922
1923 2001-07-11  Richard Henderson  <rth@redhat.com>
1924
1925         * bitmap.c: Comment some functions; fiddle whitespace.
1926         (bitmap_free): Don't export.
1927         (bitmap_element_allocate): Use memset.
1928         * bitmap.h (bitmap_free): Don't declare.
1929
1930 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
1931
1932         * gcse.c, lcm.c, sched-deps.c:
1933         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
1934
1935         * flow.c (flow_loops_find): Free dom if we found no loops, since
1936         we aren't going to save it.
1937
1938         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
1939         done.
1940
1941 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
1942
1943         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
1944
1945 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1946
1947         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
1948         #ifndef DWARF2_DEBUGGING_INFO.
1949
1950 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
1951
1952         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
1953
1954 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
1955
1956         * config/mips/mips.c (gen_int_relational): Tell the caller not to
1957         reverse a branch if a NE comparison is implemented with GTU.
1958
1959 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
1960             H.J. Lu  <hjl@gnu.org>
1961
1962         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
1963         constant addresses.
1964         (call_internal2): Likewise.
1965         (call_value_internal1): Likewise.
1966         (call_value_internal2): Likewise.
1967         (call_value_multiple_internal1): Likewise.
1968         (call_value_multiple_internal2): Likewise.
1969
1970 2001-07-10  Kazu Hirata  <kazu@hxi.com>
1971
1972         * calls.c (emit_library_call_value_1): Fix a comment typo.
1973         * dwarf2out.c (mem_loc_descriptor): Likewise.
1974         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
1975
1976 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
1977
1978         * simplify-rtx.c (simplify_subreg): Fix typo in comment
1979
1980 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1981
1982         * recog.c (offsettable_address_p): Handle LO_SUM case.
1983         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
1984         instead of plus_constant.
1985
1986 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1987
1988         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
1989         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
1990
1991 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1992
1993         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
1994         adjust_address_nv instead of plus_constant.
1995
1996 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1997
1998         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
1999         dwarf2out.o): Depend on debug.h, wrap long lines.
2000         * dbxout.c: Include debug.h.
2001         (dbx_debug_hooks): New.
2002         (dbxout_init): Make static, take just 2 args.
2003         (dbxout_finish): Make static.
2004         * dbxout.h (dbxout_init, dbxout_finish): Delete.
2005         * debug.c: New file.
2006         * debug.h: New file.
2007         * dwarf2out.c: Include debug.h.
2008         (dwarf2_debug_hooks): New.
2009         (dwarf2out_init): Make static.
2010         (dwarf2out_finish): Make static, take 2 args.
2011         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
2012         * dwarfout.c: Include debug.h.
2013         (dwarf_debug_hooks): New.
2014         (dwarfout_init): Make static.
2015         (dwarfout_finish): Make static, take 2 args.
2016         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
2017         * sdbout.c: Include debug.h.
2018         (sdb_debug_hooks): New.
2019         (sdbout_init): Make static, take 2 args.
2020         * sdbout.h (sdbout_init): Delete.
2021         * toplev.c: Include debug.h.
2022         (debug_hooks): New.
2023         (compile_file): Set deubg_hooks based on command line options.
2024         Use the hooks unconditionally rather than conditional compilation.
2025
2026 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
2027
2028         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
2029         first_insn_after_basic_block_note instead.
2030
2031         * df.c (df_bb_refs_unlink): #if 0 out for now.
2032
2033 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
2034
2035         * ssa.h: Add prototype for ssa_const_prop
2036         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
2037         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
2038         (ssa_fast_dce): Remove unused variable
2039
2040 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2041
2042         * diagnostic.c (finish_diagnostic): Rename to
2043         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
2044         calls thourghout.
2045
2046 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
2047
2048         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
2049         .loc support.
2050
2051         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
2052         (dump_file): Only pad the demangled name with spaces if the
2053         mangled name was padded with spaces.
2054
2055 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
2056
2057         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
2058         edge detection.
2059
2060 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2061
2062         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
2063         extraction if no direct load if either EXPAND_CONST_ADDRESS or
2064         EXPAND_INITIALIZER.
2065
2066         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
2067         whether can put offset inside LO_SUM to check mode alignment, not size.
2068
2069 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2070
2071         * doc/tm.texi (Misc): Fix thinko.
2072
2073 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
2074
2075         * regmove.c (replace_in_call_usage): Fix warnings.
2076         * sched-deps.c (add_dependence): Fix warnings.
2077         * simplify-rtx.c (simplify_subreg): Likewise.
2078         Return NULL_RTX instead of NULL.
2079
2080         * reg-stack.c (emit_swap_insn): Eliminate warnings.
2081         (subst_asm_stack_regs): Likewise.
2082
2083         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
2084         warnings.
2085
2086         * dwarf2out.c (output_call_frame_info): Declare i as int.
2087         (build_abbrev_table): Declare n_alloc as int.
2088         (dwarf2out_finish): Initialize die.
2089         * except.c: Declare sjlj_funcdef_number as unsigned.
2090         (connect_post_landing_pads): Declare j as unsigned.
2091         (convert_to_eh_region_ranges): Initialize call_site.
2092         (output_function_exception_table): Initialize tt_format_size.
2093         * expr.c (move_by_pieces_1): Initialize to1.
2094         (store_constructor): Initialize minelt and maxelt.
2095         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
2096         * function.c (instantiate_decls): Avoid signed/unsigned warning.
2097
2098         * c-decl.c (combine_parm_decls): Unused, remove.
2099         * c-tree.h: Remove prototype for combine_parm_decls.
2100
2101         * reload.c (push_reload): Fix warning.
2102         (regno_clobbered_p): Likewise.
2103         * reload1.c (replace_pseudos_in_call_usage): Likewise.
2104         (reload_combine): Likewise.
2105
2106         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
2107         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
2108         warnings.
2109         * bitmap.c (bitmap_operation): Change user.
2110         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2111
2112 2001-07-10  Eric Christopher  <echristo@redhat.com>
2113
2114         * config/mips/mips.c (override_options): Fix typo.
2115
2116 2001-07-09  Stan Shebs  <shebs@apple.com>
2117
2118         * target.h (struct gcc_target): New fields init_builtins and
2119         expand_builtin.
2120         * target-def.h (TARGET_INIT_BUILTINS): New macro.
2121         (TARGET_EXPAND_BUILTIN): New macro.
2122         (TARGET_INITIALIZER): Add them.
2123         * builtins.c: Include target.h.
2124         (expand_builtin): Use targetm.expand_builtin.
2125         (default_init_builtins): New function.
2126         (default_expand_builtin): New function.
2127         * expr.h (default_init_builtins): Declare.
2128         (default_expand_builtin): Declare.
2129         * c-common.c (c_common_nodes_and_builtins): Use
2130         targetm.init_builtins.
2131         * defaults.h (MD_INIT_BUILTINS): Remove.
2132         * Makefile.in (builtins.o): Depend on target.h.
2133
2134         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
2135         (TARGET_EXPAND_BUILTIN): Define.
2136         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
2137         (MD_EXPAND_BUILTIN): Remove.
2138
2139         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
2140         (TARGET_EXPAND_BUILTIN): Define.
2141         (c4x_init_builtins): Make endlink arg a local.
2142         (c4x_print_operand): Fix typos in adjust_address usages.
2143         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
2144         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
2145         (MD_EXPAND_BUILTIN): Remove.
2146
2147         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
2148         (TARGET_EXPAND_BUILTIN): Define.
2149         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
2150         (ix86_init_builtins): Call new function only if TARGET_MMX.
2151         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
2152         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
2153         (MD_EXPAND_BUILTIN): Remove.
2154
2155         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
2156         (TARGET_EXPAND_BUILTIN): Define.
2157         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
2158         (MD_EXPAND_BUILTIN): Remove.
2159
2160         * doc/tm.texi: Document these changes.
2161
2162 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
2163
2164         * basic-block.h (tree_node): Forward declare if needed.
2165         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
2166         (BLOCK_HEAD_TREE): Define.
2167         (BLOCK_END_TREE): Define.
2168         (struct loops): Rename field 'tree' to 'tree_root'.
2169         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
2170         'end_tree'.
2171         (flow_loops_tree_build): Rename reference to field 'tree' to
2172         'tree_root'.
2173         (flow_loops_level_compute): Ditto.
2174         * predict.c (estimate_bb_frequencies): Ditto.
2175         * tree.h (struct tree_common): Add field 'aux'.
2176
2177 2001-07-09  Stan Shebs  <shebs@apple.com>
2178
2179         * config/darwin.c (darwin_encode_section_info): Don't mark any
2180         DECL_EXTERNAL node as defined.
2181
2182 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2183
2184         * pa.c (pa_init_machine_status, pa_mark_machine_status,
2185         pa_free_machine_status, hppa_init_pic_save): Delete.
2186         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
2187         (hppa_profile_hook): Use hppa_pic_save_rtx.
2188         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
2189         hppa_init_pic_save): Delete.
2190         (hppa_pic_save_rtx): Declare.
2191         * pa.md (call, call_value, sibcall, sibcall_value,
2192         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
2193
2194 2001-07-09  Kazu Hirata  <kazu@hxi.com>
2195
2196         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
2197         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
2198
2199 2001-07-09  Andreas Jaeger  <aj@suse.de>
2200
2201         * output.h: Add declaration of final_forward_branch_p.
2202
2203         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
2204
2205         * varray.c: Include errors.h for internal_error and trim_filename
2206         declarations.
2207
2208         * Makefile.in (varray.o): Add errors.h.
2209
2210 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
2211
2212         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
2213         * optabs.c (have_add2_insn): Check whether the add insn chosen
2214         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
2215         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
2216
2217 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
2218
2219         * Makefile.in (OBJS): Add ssa-ccp.o
2220         (ssa-ccp.o): Add dependencies.
2221         * toplev.c (DFI_ssa_ccp): New dump file enum.
2222         (dump_file): Add entry for dumping after SSA CCP.
2223         (flag_ssa_ccp): New flag variable.
2224         (f_options): Add -fssa-ccp.
2225         (rest_of_compilation): Run SSA CCP if requested.
2226         * timevar.def (TV_SSA_CCP): New timevar.
2227         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
2228         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
2229         Fix minor typo in SSA DCE documentation.
2230         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
2231         Add documentation for new dump option.  Renumber dump files
2232         appropriately.
2233
2234 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
2235
2236         * emit-rtl.c (gen_highpart_mode): New.
2237         * rtl.h (gen_highpart_mode): Declare.
2238         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
2239         operand can be VOIDmode constant.
2240
2241 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2242
2243         * flow.c (redirect_edge_and_branch_force): New.
2244         (can_fallthru): Ensure that basic blocks are succeeding.
2245         (try_optimize_cfg): Do not delete basic block if it is the last one.
2246
2247         * flow.c (try_redirect_by_replacing_jump): Do not remove
2248         jumps with side effects, unlink chain on fallthru edge;
2249         set block for new jump instruction; avoid basic block to
2250         over by line number note.
2251
2252         * flow.c (try_simplify_condjump): Verify that the condjump
2253         is not always falling trought.
2254
2255         Re-install patch:
2256         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
2257
2258         * flow.c (forwarder_block_p): Fix for fallthru blocks.
2259         (try_redirect_by_replacing_jump): Update properly the count
2260         and frequency information.
2261
2262 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2263
2264         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
2265         address that is a LO_SUM specially.
2266         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
2267
2268         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
2269
2270         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
2271         (operand_subword): Use them.
2272         (change_address_1): Renamed from change_address; new arg VALIDATE.
2273         * expr.h: Reflect above changes; change_address now macro.
2274         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
2275         making MEM.
2276         * cselib.c (add_mem_for_addr): Likewise.
2277         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2278         * regmove.c (try_apply_stack_adjustment): Likewise.
2279         * reload.c (push_reload, make_memloc): Likewise.
2280         * reload1.c (eliminate_regs): Likewise.
2281         * simplify-rtx.c (simplify_replace_rtx): Likewise.
2282         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
2283         adjust_addess.
2284         * combine.c (make_extraction, simplify_shift_const): Likewise.
2285         (gen_lowpart_for_combine): Likewise.
2286         * cse.c (gen_lowpart_if_possible): Likewise.
2287         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2288         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
2289         * optabs.c (gen_move_insn): Likewise.
2290         * reload1.c (alter_reg): Likewise.
2291         * simplify-rtx.c (simplify_subreg): Likewise.
2292         * stmt.c (expand_anon_union_decl): Likewise.
2293         * recog.c (validate_replace_rtx_1): Likewise.
2294         (expr.h): Include.
2295         * Makefile.in (recog.o): Add $(EXPR_H).
2296         * explow.c (stabilize): Call replace_equiv_address.
2297         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2298         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
2299
2300 2001-07-03  Andrew Haley  <aph@redhat.com>
2301
2302         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
2303         the mode of the memory location.
2304
2305 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
2306
2307         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
2308
2309 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2310
2311         * final.c (output_addr_const): Use target opening and
2312         closing parentheses.
2313         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
2314         defaults, add to TARGET_ASM_OUT.
2315         * target.h (struct gcc_target): Add open_paren and close_paren.
2316         * doc/md.texi: Update.
2317         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
2318         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
2319         TARGET_ASM_CLOSE_PAREN.
2320         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
2321         Override.
2322         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
2323         Override.
2324         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
2325         * config/a29k/a29k.h: Similarly.
2326         * config/alpha/alpha.h: Similarly.
2327         * config/arc/arc.h: Similarly.
2328         * config/arm/aof.h: Similarly.
2329         * config/arm/aout.h: Similarly.
2330         * config/avr/avr.h: Similarly.
2331         * config/c4x/c4x.h: Similarly.
2332         * config/clipper/clipper.h: Similarly.
2333         * config/convex/convex.h: Similarly.
2334         * config/d30v/d30v.h: Similarly.
2335         * config/dsp16xx/dsp16xx.h: Similarly.
2336         * config/elxsi/elxsi.h: Similarly.
2337         * config/fr30/fr30.h: Similarly.
2338         * config/h8300/h8300.h: Similarly.
2339         * config/i370/i370.h: Similarly.
2340         * config/i386/i386.h: Similarly.
2341         * config/i860/i860.h: Similarly.
2342         * config/i960/i960.h: Similarly.
2343         * config/ia64/ia64.h: Similarly.
2344         * config/m32r/m32r.h: Similarly.
2345         * config/m68hc11/m68hc11.h: Similarly.
2346         * config/m68k/m68k.h: Similarly.
2347         * config/m88k/m88k.h: Similarly.
2348         * config/mcore/mcore.h: Similarly.
2349         * config/mips/mips.h: Similarly.
2350         * config/mn10200/mn10200.h: Similarly.
2351         * config/mn10300/mn10300.h: Similarly.
2352         * config/ns32k/ns32k.h: Similarly.
2353         * config/pa/pa.h: Similarly.
2354         * config/pdp11/pdp11.h: Similarly.
2355         * config/pj/pj.h: Similarly.
2356         * config/romp/romp.h: Similarly.
2357         * config/rs6000/rs6000.h: Similarly.
2358         * config/sh/sh.h: Similarly.
2359         * config/sparc/sparc.h: Similarly.
2360         * config/v850/v850.h: Similarly.
2361         * config/vax/vax.h: Similarly.
2362         * config/we32k/we32k.h: Similarly.
2363
2364 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2365
2366         * doc/c-tree.texi: Document representation of attributes.
2367
2368 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2369
2370         * doc/tm.texi: Update some places for the rename of target to
2371         targetm.  Fix typo.
2372
2373 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2374
2375         * target.h (struct gcc_target): Add insert_attributes.
2376         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
2377         (TARGET_INITIALIZER): Update.
2378         * tree.c, tree.h (default_insert_attributes): New function.
2379         Update comments on other default functions to refer to targetm,
2380         not target.
2381         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
2382         TARGET_INSERT_ATTRIBUTES.
2383         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
2384         * c-common.c (decl_attributes): Use targetm.insert_attributes.
2385         Don't use PRAGMA_INSERT_ATTRIBUTES.
2386         * Makefile.in (c-common.o): Depend on $(TARGET_H).
2387         * c-decl.c (start_decl, start_function): Don't call
2388         SET_DEFAULT_DECL_ATTRIBUTES.
2389         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
2390         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
2391         declare.
2392         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
2393         (c4x_check_attribute): Avoid modifying attribute list itself.
2394         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
2395         Make static.
2396         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
2397         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
2398         declare.
2399         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
2400         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
2401         Make static.
2402         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
2403         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
2404         declare.
2405         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
2406         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
2407         Adjust parameters.  Make static.
2408
2409 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2410
2411         * c-common.c (decl_attributes): Only take a single attributes
2412         parameter.
2413         * c-common.h (decl_attributes): Update prototype.
2414         * c-decl.c (start_decl, start_function): Only take a single
2415         attributes parameter.  Update calls to decl_attributes.
2416         (finish_struct, finish_enum): Update calls to decl_attributes.
2417         (push_parm_decl): Expect unified list of attributes.  Update call
2418         to decl_attributes.
2419         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
2420         notype_nested_function, component_declarator,
2421         component_notype_declarator, label): Update calls to
2422         decl_attributes.
2423         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
2424         lists that are passed to push_parm_decl.
2425         * c-tree.h (start_function, start_decl): Update prototypes.
2426         * config/sh/sh-protos.h, config/sh/sh.c
2427         (sh_pragma_insert_attributes): Only take a single attributes
2428         parameter.
2429         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
2430         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
2431         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
2432         build_module_descriptor, generate_static_references,
2433         generate_strings, build_selector_translation_table,
2434         generate_descriptor_table, generate_protocols,
2435         generate_ivars_list, generate_dispatch_table,
2436         generate_protocol_list, generate_category,
2437         generate_shared_structures, really_start_method, add_objc_decls,
2438         generate_classref_translation_entry): Update calls to start_decl
2439         and start_function.
2440         (build_tmp_function_decl, start_method_def): Unify attribute lists
2441         that are passed to push_parm_decl.
2442
2443 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2444
2445         * final.c (no_asm_to_stream): New.
2446         (final_scan_insn): Use target structures for prologue ends
2447         and epilogue starts.
2448         * output.h (no_asm_to_stream): New.
2449         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
2450         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
2451         (TARGET_ASM_OUT): Update.
2452         * target.h (struct gcc_target): New members function_end_prologue
2453         and function_begin_epilogue.
2454         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
2455         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
2456         * config/alpha/alpha.c (output_end_prologue): Rename to
2457         alpha_output_function_end_prologue.  Use in target struct
2458         and make static.
2459         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
2460         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
2461         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
2462         ia64_output_function_end_prologue.  Use in target struct
2463         and make static.
2464         (ia64_function_prologue, ia64_funciton_epilogue): Rename
2465         mistyped prototypes.
2466         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
2467         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
2468         Delete.
2469         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
2470         an use in target struct, make static.
2471         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
2472         Delete.
2473
2474 2001-07-08  Richard Henderson  <rth@redhat.com>
2475
2476         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
2477
2478 2001-07-08  Richard Henderson  <rth@redhat.com>
2479
2480         * config/i386/i386.md: Remove constraints strings from define_split
2481         and define_peephole2 patterns.
2482         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
2483         (eh_return): Use them.
2484
2485 2001-07-08  Richard Henderson  <rth@redhat.com>
2486
2487         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
2488         Document MD_FALLBACK_FRAME_STATE_FOR.
2489
2490 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2491
2492         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
2493         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
2494         elimination.
2495         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
2496
2497 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
2498
2499         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
2500         of the label inside NAME as opposed to just the end of NAME.
2501
2502 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2503
2504         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
2505         * config/alpha/alpha.c (alpha_init_machine_status,
2506         alpha_mark_machine_status, alpha_free_machine_status): Delete.
2507         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
2508         (vms_valid_decl_attribute_p): Make static, conditionally compile.
2509         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
2510
2511 2001-07-06  Stan Shebs  <shebs@apple.com>
2512
2513         * target.h (targetm): Rename global from "target", so as not to
2514         conflict with local variables.
2515         * c-decl.c: Ditto.
2516         * c-typeck.c: Ditto.
2517         * final.c: Ditto.
2518         * tree.c: Ditto.
2519         * cp/decl.c: Ditto.
2520         * cp/decl2.c: Ditto.
2521         * cp/typeck.c: Ditto.
2522         * 1750a/1750a.c: Ditto.
2523         * a29k/a29k.c: Ditto.
2524         * arc/arc.c: Ditto.
2525         * arm/arm.c: Ditto.
2526         * avr/avr.c: Ditto.
2527         * clipper/clipper.c: Ditto.
2528         * convex/convex.c: Ditto.
2529         * d30v/d30v.c: Ditto.
2530         * dsp16xx/dsp16xx.c: Ditto.
2531         * elxsi/elxsi.c: Ditto.
2532         * fr30/fr30.c: Ditto.
2533         * h8300/h8300.c: Ditto.
2534         * i370/i370.c: Ditto.
2535         * i386/i386.c: Ditto.
2536         * i860/i860.c: Ditto.
2537         * i960/i960.c: Ditto.
2538         * ia64/ia64.c: Ditto.
2539         * m32r/m32r.c: Ditto.
2540         * m68hc11/m68hc11.c: Ditto.
2541         * m68k/m68k.c: Ditto.
2542         * m88k/m88k.c: Ditto.
2543         * mips/mips.c: Ditto.
2544         * ns32k/ns32k.c: Ditto.
2545         * pa/pa.c: Ditto.
2546         * pdp11/pdp11.c: Ditto.
2547         * romp/romp.c: Ditto.
2548         * rs6000/rs6000.c: Ditto.
2549         * sh/sh.c: Ditto.
2550         * sparc/sparc.c: Ditto.
2551         * vax/vax.c: Ditto.
2552         * we32k/we32k.c: Ditto.
2553         * doc/tm.texi: Update the manual to match.
2554
2555 2001-07-06  Richard Henderson  <rth@redhat.com>
2556
2557         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
2558         DWARF2_UNWIND_INFO not just whether it is defined.
2559
2560 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
2561
2562         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
2563         call to simplify_binary_operation returns a new pattern.
2564
2565 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2566
2567         * glimits.h (__SHRT_MAX__): New.
2568         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
2569         (SHRT_MAX): Define in terms of __SHRT_MAX__.
2570
2571 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
2572
2573         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
2574         avoid warnings.
2575
2576 2001-07-06  Richard Henderson  <rth@redhat.com>
2577
2578         * bitmap.c (bitmap_release_memory): Move adjacent to the
2579         allocation functions.
2580         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
2581         the implementation.  Binary search for the set bit.
2582         (bitmap_union_of_diff): Allocate the temporary on the stack
2583         instead of using xmalloc.
2584
2585 2001-07-06  Richard Henderson  <rth@redhat.com>
2586
2587         * genrecog.c (validate_pattern): Warn for constraints in
2588         define_{expand,split,peephole2}.  Remove strict_low_part
2589         before looking up match_dup.
2590
2591 2001-07-06  DJ Delorie  <dj@redhat.com>
2592
2593         * doc/gcc.texi (Makefile): Rename to be a more general purpose
2594         chapter about various build hints and history.  Add section
2595         talking about the various types of native and cross builds.
2596
2597 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2598
2599         * Makefile.in (final.o): Depend on target.h.
2600         * final.c: Include target.h.
2601         (default_function_pro_epilogue): New.
2602         (final_start_function): Use target structure for function prologues.
2603         (final_end_function): Use target structure for function epilogues.
2604         * fold-const.c (real_hex_to_f): Constify s and p.
2605         * output.h (default_function_pro_epilogue): New.
2606         * real.h (real_hex_to_f): Update prototype.
2607         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
2608         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
2609         (TARGET_INITIALIZER): Update.
2610         * target.h (gcc_target): Add struct asm_out.
2611         * doc/tm.texi: Update.
2612
2613 config:
2614         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
2615         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
2616         in cpu/cpu.c, or rename old functions consistently.  Take
2617         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
2618         redundant macros and prototypes.  Make new functions static.
2619
2620         * 1750a/1750a.c: Similarly.
2621         * 1750a/1750a.h: Similarly.
2622         * a29k/a29k-protos.h: Similarly.
2623         * a29k/a29k.c: Similarly.
2624         * a29k/a29k.h: Similarly.
2625         * arc/arc-protos.h: Similarly.
2626         * arc/arc.c: Similarly.
2627         * arc/arc.h: Similarly.
2628         * arm/arm-protos.h: Similarly.
2629         * arm/arm.c: Similarly.
2630         * arm/arm.h: Similarly.
2631         * avr/avr-protos.h: Similarly.
2632         * avr/avr.c: Similarly.
2633         * avr/avr.h: Similarly.
2634         * clipper/clipper-protos.h: Similarly.
2635         * clipper/clipper.c: Similarly.
2636         * clipper/clipper.h: Similarly.
2637         * convex/convex.c: Similarly.
2638         * convex/convex.h: Similarly.
2639         * d30v/d30v-protos.h: Similarly.
2640         * d30v/d30v.c: Similarly.
2641         * d30v/d30v.h: Similarly.
2642         * d30v/d30v.md: Similarly.
2643         * dsp16xx/dsp16xx-protos.h: Similarly.
2644         * dsp16xx/dsp16xx.c: Similarly.
2645         * dsp16xx/dsp16xx.h: Similarly.
2646         * elxsi/elxsi.c: Similarly.
2647         * elxsi/elxsi.h: Similarly.
2648         * fr30/fr30.c: Similarly.
2649         * fr30/fr30.md: Similarly.
2650         * h8300/h8300-protos.h: Similarly.
2651         * h8300/h8300.c: Similarly.
2652         * h8300/h8300.h: Similarly.
2653         * i370/i370-protos.h: Similarly.
2654         * i370/i370.c: Similarly.
2655         * i370/i370.h: Similarly.
2656         * i386/i386.c: Similarly.
2657         * i386/osf1elf.h: Similarly.
2658         * i386/osfrose.h: Similarly.
2659         * i860/i860-protos.h: Similarly.
2660         * i860/i860.c: Similarly.
2661         * i860/i860.h: Similarly.
2662         * i960/i960-protos.h: Similarly.
2663         * i960/i960.c: Similarly.
2664         * i960/i960.h: Similarly.
2665         * ia64/ia64-protos.h: Similarly.
2666         * ia64/ia64.c: Similarly.
2667         * ia64/ia64.h: Similarly.
2668         * m32r/m32r-protos.h: Similarly.
2669         * m32r/m32r.c: Similarly.
2670         * m32r/m32r.h: Similarly.
2671         * m68hc11/m68hc11-protos.h: Similarly.
2672         * m68hc11/m68hc11.c: Similarly.
2673         * m68hc11/m68hc11.h: Similarly.
2674         * m68k/crds.h: Similarly.
2675         * m68k/dpx2.h: Similarly.
2676         * m68k/m68k-protos.h: Similarly.
2677         * m68k/m68k.c: Similarly.
2678         * m68k/m68k.h: Similarly.
2679         * m68k/news.h: Similarly.
2680         * m88k/m88k-protos.h: Similarly.
2681         * m88k/m88k.c: Similarly.
2682         * m88k/m88k.h: Similarly.
2683         * mips/mips-protos.h: Similarly.
2684         * mips/mips.c: Similarly.
2685         * mips/mips.h: Similarly.
2686         * ns32k/merlin.h: Similarly.
2687         * ns32k/ns32k.c: Similarly.
2688         * ns32k/ns32k.h: Similarly.
2689         * ns32k/tek6000.h: Similarly.
2690         * pa/pa-protos.h: Similarly.
2691         * pa/pa.c: Similarly.
2692         * pa/pa.h: Similarly.
2693         * pdp11/2bsd.h: Similarly.
2694         * pdp11/pdp11-protos.h: Similarly.
2695         * pdp11/pdp11.c: Similarly.
2696         * pdp11/pdp11.h: Similarly.
2697         * romp/romp-protos.h: Similarly.
2698         * romp/romp.c: Similarly.
2699         * romp/romp.h: Similarly.
2700         * rs6000/rs6000-protos.h: Similarly.
2701         * rs6000/rs6000.c: Similarly.
2702         * rs6000/rs6000.h: Similarly.
2703         * rs6000/sysv4.h: Similarly.
2704         * sh/sh-protos.h: Similarly.
2705         * sh/sh.c: Similarly.
2706         * sh/sh.h: Similarly.
2707         * sparc/sparc-protos.h: Similarly.
2708         * sparc/sparc.c: Similarly.
2709         * sparc/sparc.h: Similarly.
2710         * vax/vax.c: Similarly.
2711         * vax/vax.h: Similarly.
2712         * vax/vms.h: Similarly.
2713         * we32k/we32k.c: Similarly.
2714         * we32k/we32k.h: Similarly.
2715
2716 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
2717
2718         * basic-block.h (first_insn_after_basic_block_note): Declare.
2719         * flow.c (first_insn_after_basic_block_note): Define.  Moved
2720         from...
2721         * ssa.c (first_insn_after_basic_block_note): Remove.
2722         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
2723         necessary.
2724         (ssa_eliminate_dead_code): Properly update the CFG and PHI
2725         nodes when we find a dead conditional branch.  Insert BARRIERs
2726         after any blocks with no successors, but which do not have
2727         any BARRIERs.
2728
2729 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
2730
2731         * varray.c (varray_check_failed): Use internal_error.
2732
2733 2001-07-05  Andrew Haley  <aph@redhat.com>
2734
2735         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
2736         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
2737         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
2738
2739 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
2740
2741         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
2742         reference if the target constant is also a SYMBOL_REF.
2743
2744 2001-07-05  Eric Christopher  <echristo@redhat.com>
2745
2746         * config/mips/mips.h (MASK_MIPS3900): Remove.
2747         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
2748         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
2749         (TARGET_MIPS3900): Change to use mips_arch.
2750         (TARGET_MIPS4000): New.
2751         (TARGET_MIPS4100): New.
2752         (TARGET_MIPS4300): New.
2753         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
2754         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
2755         for -mipsX.
2756         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
2757         (ISA_HAS_BRANCHLIKELY): To here.
2758         (CC1_CPU_SPEC):  New.
2759         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
2760         (mips_arch_string): Declare.
2761         (mips_arch): Declare.
2762         (TARGET_OPTIONS): Add -march and -mtune.
2763
2764         * config/mips/mips.c (mips_arch_string): New.
2765         (mips_arch): New.
2766         (override_options): Handle -march for codegen and -mtune
2767         for scheduling. Use mips_arch. Move tx39 target default here.
2768         (mips_parse_cpu): Move error message to override_options.
2769
2770         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
2771
2772         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
2773
2774         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
2775         (MIPS Options): Ditto.  Change mcpu entry to historical text.
2776
2777 2001-07-05  H.J. Lu  (hjl@gnu.org)
2778
2779         * config/mips/mips.c (mips_parse_cpu): New function to parse
2780         -march=*/-mcpu=*.
2781
2782 2001-07-05  Jim Wilson  <wilson@redhat.com>
2783
2784         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
2785         * config/ia64/t-ia64: Likewise.
2786         (LIB1ASMFUNCS): Update comment.
2787
2788 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
2789
2790         * doc/install.texi (Install GCC: Binaries): Fix typo.
2791
2792 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2793
2794         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
2795         reference using the stack pointer, adjust it since we push Y
2796         temporarily.
2797         ("*ashrsi3"): Likewise.
2798         ("*lshrsi3"): Likewise.
2799
2800 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2801
2802         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
2803         when -fomit-frame-pointer is used.
2804
2805 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
2806
2807         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
2808         (try_redirect_by_replacing_jump): Reverse updating properly the
2809         count and frequency information.  Reverse removing cc0 setter.
2810         (forwarder_block_p): Reverse fixing for fallthru blocks.
2811
2812 2001-07-05  DJ Delorie  <dj@redhat.com>
2813
2814         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
2815         (translate_options): If the above is defined, use it to map
2816         given options to new options.
2817         * doc/tm.texi: Document it.
2818
2819 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
2820             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2821
2822         * doc/invoke.texi (Optimize Options): Document that -fgcse may
2823         cause programs using computed gotos to run more slowly.
2824
2825 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2826
2827         * doc/install.texi (Specific): Markup, spelling and typo fixes.
2828         Fixed sorting.
2829         Consistently require binutils 2.11.2, not prereleases.
2830         (Specific, decstation-*): Canonicalize as mips-dec-*.
2831         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
2832         always necessary.
2833         (Specific, m68k-altos): Removed reference to README.altos, deleted.
2834         (Specific, mips-*): Reword MIPS C compiler requirements.
2835         (Specific, powerpc*-*-*): New, mention --with-cpu once.
2836         (Specific, sunv5): Removed, obsolete.
2837
2838 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
2839
2840         * dwarf2out.c (output_loc_list): Use an all ones mask for
2841         .text asm output and don't rely on long long
2842         literals. Reformat some long lines.
2843
2844 2001-07-05  Andreas Jaeger  <aj@suse.de>
2845
2846         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
2847         section.
2848
2849 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
2850
2851         * dwarf2out.c (dwarf2out_define): Update comment.
2852         (dwarf2out_undef): Ditto.
2853         (dwarf2out_start_source_file): Ditto.
2854         (dwarf2out_end_source_file): Ditto.
2855         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
2856         since we never call the start/end debug hook for the primary file.
2857
2858 2001-07-04  Kazu Hirata  <kazu@hxi.com>
2859
2860         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
2861         from shll.
2862
2863 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
2864
2865         * cppinit.c (remove_dup_dirs): Inform if a system include
2866         directory is being reordered.
2867         * doc/invoke.texi (Directory Options): GCC warns if you hide a
2868         system include.
2869         * doc/cpp.texi (Search Paths): Likewise.
2870         * doc/gcc.texi (Interoperation): Remove information about
2871         -I/usr/include.
2872
2873 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
2874
2875         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
2876         (VARRAY_TOP_CHAR_PTR): Likewise.
2877
2878 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2879
2880         * gcc.c (process_command): Don't assign elements of a const char*.
2881
2882 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2883
2884         * emit-rtl.c (change_address): Don't abort if invalid address while
2885         reload is in progress.
2886
2887 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
2888
2889         * c-lex.c (cb_file_change): Pass line number to
2890         debug_start_source_file.
2891         (cb_undefine): Pass correct line number to debug_undef.
2892
2893         * toplev.c (debug_start_source_file): Add line number to
2894         parameters. Pass it along to dwarf2out_start_source_file.
2895         (decode_g_option): Stop resetting debug level back to normal when
2896         we change debug formats, unless the current level is
2897         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
2898         3).
2899
2900         * toplev.h (debug_start_source_file): Add line number to
2901         parameters.
2902
2903         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
2904         parameters.
2905
2906         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
2907         parameters.
2908         Output debug_macinfo data for starting file if requested.
2909         (dwarf2out_end_source_file): Output debug_macinfo data for ending
2910         file if requested.
2911         (dwarf2out_define): Output debug_macinfo data for defining a macro
2912         if requested.
2913         (dwarf2out_undef): Output debug_macinfo data for undefining a
2914         macro if requested.
2915         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
2916         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
2917         (macinfo_section_label): New. DWARF2 macro info section label.
2918         (dwarf2out_init): If we want macro info, output the start label
2919         for the section.
2920         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
2921         attribute to the compilation unit die pointing to the macro info.
2922
2923 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
2924
2925         * dwarf2out.c (new_loc_list): Move to inside #ifdef
2926         DWARF2_DEBUGGING_INFO.
2927         (add_loc_descr_to_loc_list): Ditto.
2928         (output_loc_list): Ditto.
2929         Also, fix thinko in curr not being initialized.
2930         (gen_internal_sym): Ditto.
2931
2932 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2933
2934         * emit-rtl.c (replace_equiv_address): New function.
2935         * expr.h (replace_equiv_address): New declaration.
2936         * explow.c (validize_mem): Call it instead of change_address and
2937         also call if -fforce-addr and address is constant.
2938         * expr.c: Replace more calls to change_address with adjust_address
2939         and/or replace_equiv_address or to validize_mem.
2940         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
2941         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
2942         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
2943         * config/i370/i370.md, config/i860/i860.md: Likewise.
2944         * config/i960/i960.md, config/mips/mips.c: Likewise.
2945         * config/mips/mips.md, config/pa/pa.md: Likewise.
2946         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
2947         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
2948
2949 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2950
2951         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
2952
2953         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
2954         function.
2955
2956 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2957
2958         * doc/include: New directory.
2959         * doc/fdl.texi: Move to doc/include/fdl.texi.
2960         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
2961         * doc/include/funding.texi, doc/include/gpl.texi: New files.
2962         * doc/gcc.texi: Use funding.texi and gpl.texi.
2963         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
2964         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
2965         Update dependencies and use -I $(docdir)/include.
2966
2967 2001-07-04  Anthony Green  <green@redhat.com>
2968
2969         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
2970
2971 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2972
2973         * doc/install.texi (sparc64-*-*): Remove garbage.
2974
2975 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
2976
2977         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
2978         Fix typo in last change to use adjust_address.
2979
2980 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2981
2982         * doc/install.texi (Specific): Update information for *-*-solaris*.
2983
2984 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2985
2986         * explow.c (plus_constant_wide): Reinitialize Y for restart.
2987
2988 2001-07-03  Stan Shebs  <shebs@apple.com>
2989
2990         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
2991         case for flag_no_mach_text_sections.
2992         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
2993         * config/darwin.c (flag_no_mach_text_sections): Remove.
2994         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
2995
2996 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2997
2998         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
2999         and avoid checking for constant as first operand.
3000         * recog.c (find_constant_term_loc): No longer static.
3001         (adj_offettable_operand): Delete.
3002         * rtl.h (adj_offsettable_operand): Delete declaration.
3003         (find_constant_term): Add declaration.
3004         * caller-save.c: Replace calls to adj_offsettable_operand with calls
3005         to adjust_address.
3006         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
3007         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
3008         * config/i386/i386.c, config/i386/i386.md: Likewise.
3009         * config/i860/i860.c, config/i960/i960.c: Likewise.
3010         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
3011         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
3012         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
3013         * config/mips/mips.c, config/mips/mips.md: Likewise.
3014         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
3015         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
3016         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
3017         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
3018         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
3019         * config/ns32k/ns32k.md: Likewise.
3020
3021 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
3022
3023         * rtl.c (copy_rtx): Handle 'T' format letter.
3024         * gensupport.c (collect_insn_data): Likewise.
3025         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
3026
3027 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
3028
3029         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
3030         -B option.  Use 'dir' not 'foo' as example directory name.
3031
3032 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3033
3034         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3035         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
3036
3037 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3038
3039         * doc/cppinternals.texi: Improve formatting and logical markup.
3040
3041 2001-07-03  Andreas Jaeger  <aj@suse.de>
3042
3043         * Makefile.in (insn-recog.o): Add dependency on reload.h.
3044
3045         * genrecog.c (write_header): Include reload.h for prototypes in
3046         insn-recog.c.
3047
3048 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3049
3050 config:
3051         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
3052         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
3053         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
3054         i386_pe_valid_type_attribute_p): Add.
3055         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
3056         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
3057
3058 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3059
3060         * explow.c (plus_constant_wide, case LO_SUM): New case.
3061         (plus_constant_for_output_wide): Delete.
3062         * rtl.h (plus_constant_for_output): Delete.
3063         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
3064         instead of plus_constant_for_output.
3065         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
3066         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
3067         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
3068         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
3069         * config/sparc/sparc.md: Likewise.
3070         Convert some change_address calls to adjust_address.
3071
3072 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3073
3074         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
3075         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
3076         documentation of -std and -Wwrite-strings.
3077
3078 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
3079
3080         * cse.c (canon_hash): Don't register registers in very small
3081         register classes, as extending their lifetime might cause
3082         reload to fail.
3083
3084 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3085
3086         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
3087
3088         * flow.c (forwarder_block_p): Fix for fallthru blocks.
3089         (try_redirect_by_replacing_jump): Update properly the count
3090         and frequency information.
3091
3092 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
3093
3094         * toplev.c (dump_file_index): Move SSA dumps just after first
3095         jump dump.
3096         (dump_file): Corresponding changes.
3097         (rest_of_compilation): Move SSA path to just after the first
3098         jump pass.
3099         * doc/gcc.texi (Passes): Update due to movement of SSA path.
3100         * doc/invoke.texi: Update dump file #s as they were completely
3101         out of date with reality.
3102
3103 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
3104
3105         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
3106
3107         * expr.c (emit_move_insn_1): Deal with non-default
3108         STACK_PUSH_CODE.
3109
3110         * expr.c (emit_single_push_insn): Fix warning.
3111
3112 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3113
3114         * expr.c (emit_move_insn_1): Avoid modifying
3115         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
3116
3117 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3118
3119         * emit-rtl.c (adjust_address): New function.
3120         * expr.h (adjust_address): Add declaration.
3121         * builtins.c: Replace some calls to change_address with calls to it
3122         or to validize_mem.
3123         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
3124         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
3125         * config/arm/arm.c, config/convex/convex.c: Likewise.
3126         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
3127         * config/i386/i386.c, config/i386/i386.md: Likewise.
3128         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
3129         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
3130         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
3131         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
3132         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
3133
3134 2001-07-02  Jim Wilson  <wilson@redhat.com>
3135
3136         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
3137
3138 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
3139
3140         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
3141         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
3142
3143 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
3144
3145         * cppinit.c (lang_defaults): New table.
3146         (set_lang): Just read from lang_defaults into the live options
3147         structure.
3148
3149 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
3150
3151         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
3152         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
3153         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
3154
3155 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3156
3157         * doc/install.texi: Various spelling and markup fixes.
3158         (Installing GCC): Component specific installation instructions are
3159         gone.
3160         Fix reference.
3161         Warn about removing old install dir in the presence of shared libs.
3162         (Configuration): Invoke with options target to match configure
3163         --help.
3164         Consistently refer to gas, gld pathnames.
3165         Invert --enable-multilib documentation.
3166         Remove references to old compiler versions.
3167
3168 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3169
3170         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
3171
3172 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3173
3174         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
3175         section.
3176         (Specific, mips*-sgi-irix5): Note IDO download.
3177         Reworded MIPS C hints.
3178         Use GNU as instead of GAS.
3179         Markup fixes.
3180         Removed SGI Freeware reference, IRIX 6 only.
3181         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
3182         Note N64 library requirement/workaround.
3183         Update O32 hints.
3184         Complete list of structure passing bug victims.
3185
3186 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3187
3188         * doc/install.texi: Remove CVS Id.
3189
3190 2001-07-02  Andreas Jaeger  <aj@suse.de>
3191
3192         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
3193         (find_inherently_necessary): Remove unused variable.
3194
3195 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3196
3197         * c-common.h (TDI_inlined): New ast dump phase.
3198         (dump_flag_name): New function.
3199         * c-dump.c (dump_files): Add inlined phase.
3200         (dump_flag_name): Define.
3201         * doc/invoke.texi (-fdump-ast-inlined): Document.
3202
3203 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3204
3205         * stor-layout.c (layout_decl): Revert change to handling of alignment
3206         in packed types.
3207
3208 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3209
3210         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
3211         for FIELD_DECL.
3212
3213 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
3214
3215         * doc/tm.texi (FUNCTION_ARG): Document that the last call
3216         is special.
3217
3218 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3219
3220         * tlink.c (recompile_files): Remove COMPILER_PATH and
3221         LIBRARY_PATH from the environment.
3222
3223 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
3224
3225         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
3226         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
3227         enumerators.
3228         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
3229
3230         * c-parse.in (OBJC_STRING): Kill.
3231         (objc_string): Decompose to [objc_string] '@' STRING.
3232         (reswords): Take the leading '@' off all the Objective C keywords.
3233         (objc_rid_sans_at): Kill.
3234         (init_reswords): Don't initialize it.
3235         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
3236         (_yylex): Kill reconsider label.  Look ahead one token after
3237         an '@'; if we get an identifier, check whether it's an
3238         Objective C @-keyword.  If so, return the keyword.  Otherwise,
3239         put back the token and return the '@' as a terminal.
3240
3241         * cpplib.c (lex_macro_node): Remove unnecessary check for
3242         leading '@' on identifier.  Clarify control flow and commentary.
3243
3244 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3245
3246         * cse.c (new_label_ref): Variable deleted.
3247         (insert): Remove set of new_label_ref.
3248         (check_for_label_ref): New function.
3249         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
3250
3251 See ChangeLog.5 for earlier changes.