OSDN Git Service

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