OSDN Git Service

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