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