OSDN Git Service

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